@botpress/webchat 4.4.4 → 4.4.5
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 +416 -412
- package/dist/index.umd.cjs +22 -22
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -91,7 +91,7 @@ function Ol(...e) {
|
|
|
91
91
|
function xn(...e) {
|
|
92
92
|
return E.useCallback(Ol(...e), e);
|
|
93
93
|
}
|
|
94
|
-
var Av = Symbol.for("react.lazy"),
|
|
94
|
+
var Av = Symbol.for("react.lazy"), po = E[" use ".trim().toString()];
|
|
95
95
|
function Tv(e) {
|
|
96
96
|
return typeof e == "object" && e !== null && "then" in e;
|
|
97
97
|
}
|
|
@@ -102,7 +102,7 @@ function ih(e) {
|
|
|
102
102
|
function Iv(e) {
|
|
103
103
|
const t = /* @__PURE__ */ Ov(e), n = E.forwardRef((r, i) => {
|
|
104
104
|
let { children: o, ...s } = r;
|
|
105
|
-
ih(o) && typeof
|
|
105
|
+
ih(o) && typeof po == "function" && (o = po(o._payload));
|
|
106
106
|
const a = E.Children.toArray(o), l = a.find(Dv);
|
|
107
107
|
if (l) {
|
|
108
108
|
const u = l.props.children, f = a.map((c) => c === l ? E.Children.count(u) > 1 ? E.Children.only(null) : E.isValidElement(u) ? u.props.children : null : c);
|
|
@@ -116,7 +116,7 @@ function Iv(e) {
|
|
|
116
116
|
function Ov(e) {
|
|
117
117
|
const t = E.forwardRef((n, r) => {
|
|
118
118
|
let { children: i, ...o } = n;
|
|
119
|
-
if (ih(i) && typeof
|
|
119
|
+
if (ih(i) && typeof po == "function" && (i = po(i._payload)), E.isValidElement(i)) {
|
|
120
120
|
const s = Nv(i), a = Mv(o, i.props);
|
|
121
121
|
return i.type !== E.Fragment && (a.ref = r ? Ol(r, s) : s), E.cloneElement(i, a);
|
|
122
122
|
}
|
|
@@ -1029,15 +1029,15 @@ function _l(e, t, n = !1) {
|
|
|
1029
1029
|
const r = 10 ** t;
|
|
1030
1030
|
return (n ? Math.trunc : Math.round)(e * r) / r;
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function ci(e) {
|
|
1033
1033
|
return e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0);
|
|
1034
1034
|
}
|
|
1035
1035
|
function Hr(e) {
|
|
1036
|
-
return
|
|
1036
|
+
return ci(e) ? 366 : 365;
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function mo(e, t) {
|
|
1039
1039
|
const n = cb(t - 1, 12) + 1, r = e + (t - n) / 12;
|
|
1040
|
-
return n === 2 ?
|
|
1040
|
+
return n === 2 ? ci(r) ? 29 : 28 : [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][n - 1];
|
|
1041
1041
|
}
|
|
1042
1042
|
function Fl(e) {
|
|
1043
1043
|
let t = Date.UTC(
|
|
@@ -1051,7 +1051,7 @@ function Fl(e) {
|
|
|
1051
1051
|
);
|
|
1052
1052
|
return e.year < 100 && e.year >= 0 && (t = new Date(t), t.setUTCFullYear(t.getUTCFullYear() - 1900)), +t;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function go(e) {
|
|
1055
1055
|
const t = (e + Math.floor(e / 4) - Math.floor(e / 100) + Math.floor(e / 400)) % 7, n = e - 1, r = (n + Math.floor(n / 4) - Math.floor(n / 100) + Math.floor(n / 400)) % 7;
|
|
1056
1056
|
return t === 4 || r === 3 ? 53 : 52;
|
|
1057
1057
|
}
|
|
@@ -1083,7 +1083,7 @@ function Lh(e) {
|
|
|
1083
1083
|
throw new Tt(`Invalid unit value ${e}`);
|
|
1084
1084
|
return t;
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function yo(e, t) {
|
|
1087
1087
|
const n = {};
|
|
1088
1088
|
for (const r in e)
|
|
1089
1089
|
if (or(e, r)) {
|
|
@@ -1458,7 +1458,7 @@ class $t {
|
|
|
1458
1458
|
return this.explanation ? `${this.reason}: ${this.explanation}` : this.reason;
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
|
-
class
|
|
1461
|
+
class fi {
|
|
1462
1462
|
/**
|
|
1463
1463
|
* The type of zone
|
|
1464
1464
|
* @abstract
|
|
@@ -1537,7 +1537,7 @@ class ci {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
1539
|
let ds = null;
|
|
1540
|
-
class $l extends
|
|
1540
|
+
class $l extends fi {
|
|
1541
1541
|
/**
|
|
1542
1542
|
* Get a singleton instance of the local zone
|
|
1543
1543
|
* @return {SystemZone}
|
|
@@ -1578,9 +1578,9 @@ class $l extends ci {
|
|
|
1578
1578
|
return !0;
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
|
-
let
|
|
1581
|
+
let no = {};
|
|
1582
1582
|
function kb(e) {
|
|
1583
|
-
return
|
|
1583
|
+
return no[e] || (no[e] = new Intl.DateTimeFormat("en-US", {
|
|
1584
1584
|
hour12: !1,
|
|
1585
1585
|
timeZone: e,
|
|
1586
1586
|
year: "numeric",
|
|
@@ -1590,7 +1590,7 @@ function kb(e) {
|
|
|
1590
1590
|
minute: "2-digit",
|
|
1591
1591
|
second: "2-digit",
|
|
1592
1592
|
era: "short"
|
|
1593
|
-
})),
|
|
1593
|
+
})), no[e];
|
|
1594
1594
|
}
|
|
1595
1595
|
const Eb = {
|
|
1596
1596
|
year: 0,
|
|
@@ -1613,21 +1613,21 @@ function Ab(e, t) {
|
|
|
1613
1613
|
}
|
|
1614
1614
|
return r;
|
|
1615
1615
|
}
|
|
1616
|
-
let
|
|
1617
|
-
class sn extends
|
|
1616
|
+
let Ti = {};
|
|
1617
|
+
class sn extends fi {
|
|
1618
1618
|
/**
|
|
1619
1619
|
* @param {string} name - Zone name
|
|
1620
1620
|
* @return {IANAZone}
|
|
1621
1621
|
*/
|
|
1622
1622
|
static create(t) {
|
|
1623
|
-
return
|
|
1623
|
+
return Ti[t] || (Ti[t] = new sn(t)), Ti[t];
|
|
1624
1624
|
}
|
|
1625
1625
|
/**
|
|
1626
1626
|
* Reset local caches. Should only be necessary in testing scenarios.
|
|
1627
1627
|
* @return {void}
|
|
1628
1628
|
*/
|
|
1629
1629
|
static resetCache() {
|
|
1630
|
-
|
|
1630
|
+
Ti = {}, no = {};
|
|
1631
1631
|
}
|
|
1632
1632
|
/**
|
|
1633
1633
|
* Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.
|
|
@@ -1710,7 +1710,7 @@ class sn extends ci {
|
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
1712
|
let hs = null;
|
|
1713
|
-
class dt extends
|
|
1713
|
+
class dt extends fi {
|
|
1714
1714
|
/**
|
|
1715
1715
|
* Get a singleton instance of UTC
|
|
1716
1716
|
* @return {FixedOffsetZone}
|
|
@@ -1781,7 +1781,7 @@ class dt extends ci {
|
|
|
1781
1781
|
return !0;
|
|
1782
1782
|
}
|
|
1783
1783
|
}
|
|
1784
|
-
class Tb extends
|
|
1784
|
+
class Tb extends fi {
|
|
1785
1785
|
constructor(t) {
|
|
1786
1786
|
super(), this.zoneName = t;
|
|
1787
1787
|
}
|
|
@@ -1821,7 +1821,7 @@ class Tb extends ci {
|
|
|
1821
1821
|
function dn(e, t) {
|
|
1822
1822
|
if (xe(e) || e === null)
|
|
1823
1823
|
return t;
|
|
1824
|
-
if (e instanceof
|
|
1824
|
+
if (e instanceof fi)
|
|
1825
1825
|
return e;
|
|
1826
1826
|
if (sb(e)) {
|
|
1827
1827
|
const n = e.toLowerCase();
|
|
@@ -1990,7 +1990,7 @@ function Lb(e) {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
return t;
|
|
1992
1992
|
}
|
|
1993
|
-
function
|
|
1993
|
+
function Ii(e, t, n, r, i) {
|
|
1994
1994
|
const o = e.listingMode(n);
|
|
1995
1995
|
return o === "error" ? null : o === "en" ? r(t) : i(t);
|
|
1996
1996
|
}
|
|
@@ -2088,13 +2088,13 @@ class He {
|
|
|
2088
2088
|
return this.clone({ ...t, defaultToEN: !1 });
|
|
2089
2089
|
}
|
|
2090
2090
|
months(t, n = !1, r = !0) {
|
|
2091
|
-
return
|
|
2091
|
+
return Ii(this, t, r, $h, () => {
|
|
2092
2092
|
const i = n ? { month: t, day: "numeric" } : { month: t }, o = n ? "format" : "standalone";
|
|
2093
2093
|
return this.monthsCache[o][t] || (this.monthsCache[o][t] = Pb((s) => this.extract(s, i, "month"))), this.monthsCache[o][t];
|
|
2094
2094
|
});
|
|
2095
2095
|
}
|
|
2096
2096
|
weekdays(t, n = !1, r = !0) {
|
|
2097
|
-
return
|
|
2097
|
+
return Ii(this, t, r, Hh, () => {
|
|
2098
2098
|
const i = n ? { weekday: t, year: "numeric", month: "long", day: "numeric" } : { weekday: t }, o = n ? "format" : "standalone";
|
|
2099
2099
|
return this.weekdaysCache[o][t] || (this.weekdaysCache[o][t] = Lb(
|
|
2100
2100
|
(s) => this.extract(s, i, "weekday")
|
|
@@ -2102,7 +2102,7 @@ class He {
|
|
|
2102
2102
|
});
|
|
2103
2103
|
}
|
|
2104
2104
|
meridiems(t = !0) {
|
|
2105
|
-
return
|
|
2105
|
+
return Ii(
|
|
2106
2106
|
this,
|
|
2107
2107
|
void 0,
|
|
2108
2108
|
t,
|
|
@@ -2119,7 +2119,7 @@ class He {
|
|
|
2119
2119
|
);
|
|
2120
2120
|
}
|
|
2121
2121
|
eras(t, n = !0) {
|
|
2122
|
-
return
|
|
2122
|
+
return Ii(this, t, n, jh, () => {
|
|
2123
2123
|
const r = { era: t };
|
|
2124
2124
|
return this.eraCache[t] || (this.eraCache[t] = [he.utc(-40, 1, 1), he.utc(2017, 1, 1)].map(
|
|
2125
2125
|
(i) => this.extract(i, r, "era")
|
|
@@ -2203,11 +2203,11 @@ function yr(e, t) {
|
|
|
2203
2203
|
milliseconds: Ll(e[t + 3])
|
|
2204
2204
|
}, null, t + 4];
|
|
2205
2205
|
}
|
|
2206
|
-
function
|
|
2206
|
+
function di(e, t) {
|
|
2207
2207
|
const n = !e[t] && !e[t + 1], r = Bo(e[t + 1], e[t + 2]), i = n ? null : dt.instance(r);
|
|
2208
2208
|
return [{}, i, t + 3];
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function hi(e, t) {
|
|
2211
2211
|
const n = e[t] ? sn.create(e[t]) : null;
|
|
2212
2212
|
return [{}, n, t + 1];
|
|
2213
2213
|
}
|
|
@@ -2282,22 +2282,22 @@ function o0(e) {
|
|
|
2282
2282
|
const s0 = pr(Hb, zl), a0 = pr(Ub, zl), l0 = pr(jb, zl), u0 = pr(qh), Kh = mr(
|
|
2283
2283
|
Kb,
|
|
2284
2284
|
yr,
|
|
2285
|
-
|
|
2286
|
-
|
|
2285
|
+
di,
|
|
2286
|
+
hi
|
|
2287
2287
|
), c0 = mr(
|
|
2288
2288
|
Vb,
|
|
2289
2289
|
yr,
|
|
2290
|
-
|
|
2291
|
-
|
|
2290
|
+
di,
|
|
2291
|
+
hi
|
|
2292
2292
|
), f0 = mr(
|
|
2293
2293
|
Wb,
|
|
2294
2294
|
yr,
|
|
2295
|
-
|
|
2296
|
-
|
|
2295
|
+
di,
|
|
2296
|
+
hi
|
|
2297
2297
|
), d0 = mr(
|
|
2298
2298
|
yr,
|
|
2299
|
-
|
|
2300
|
-
|
|
2299
|
+
di,
|
|
2300
|
+
hi
|
|
2301
2301
|
);
|
|
2302
2302
|
function h0(e) {
|
|
2303
2303
|
return gr(
|
|
@@ -2328,8 +2328,8 @@ function v0(e) {
|
|
|
2328
2328
|
}
|
|
2329
2329
|
const b0 = pr(qb, Yb), w0 = pr(Yh), x0 = mr(
|
|
2330
2330
|
yr,
|
|
2331
|
-
|
|
2332
|
-
|
|
2331
|
+
di,
|
|
2332
|
+
hi
|
|
2333
2333
|
);
|
|
2334
2334
|
function S0(e) {
|
|
2335
2335
|
return gr(
|
|
@@ -2487,7 +2487,7 @@ class Ee {
|
|
|
2487
2487
|
`Duration.fromObject: argument expected to be an object, got ${t === null ? "null" : typeof t}`
|
|
2488
2488
|
);
|
|
2489
2489
|
return new Ee({
|
|
2490
|
-
values:
|
|
2490
|
+
values: yo(t, Ee.normalizeUnit),
|
|
2491
2491
|
loc: He.fromObject(n),
|
|
2492
2492
|
conversionAccuracy: n.conversionAccuracy
|
|
2493
2493
|
});
|
|
@@ -2801,7 +2801,7 @@ class Ee {
|
|
|
2801
2801
|
*/
|
|
2802
2802
|
set(t) {
|
|
2803
2803
|
if (!this.isValid) return this;
|
|
2804
|
-
const n = { ...this.values, ...
|
|
2804
|
+
const n = { ...this.values, ...yo(t, Ee.normalizeUnit) };
|
|
2805
2805
|
return Cn(this, { values: n });
|
|
2806
2806
|
}
|
|
2807
2807
|
/**
|
|
@@ -3399,7 +3399,7 @@ class We {
|
|
|
3399
3399
|
return We.fromDateTimes(t(this.s), t(this.e));
|
|
3400
3400
|
}
|
|
3401
3401
|
}
|
|
3402
|
-
let
|
|
3402
|
+
let Oi = class {
|
|
3403
3403
|
/**
|
|
3404
3404
|
* Return whether the specified zone contains a DST.
|
|
3405
3405
|
* @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
|
|
@@ -3926,16 +3926,16 @@ function np(e, t, n) {
|
|
|
3926
3926
|
return i === 0 ? 7 : i;
|
|
3927
3927
|
}
|
|
3928
3928
|
function rp(e, t, n) {
|
|
3929
|
-
return n + (
|
|
3929
|
+
return n + (ci(e) ? tp : ep)[t - 1];
|
|
3930
3930
|
}
|
|
3931
3931
|
function ip(e, t) {
|
|
3932
|
-
const n =
|
|
3932
|
+
const n = ci(e) ? tp : ep, r = n.findIndex((o) => o < t), i = t - n[r];
|
|
3933
3933
|
return { month: r + 1, day: i };
|
|
3934
3934
|
}
|
|
3935
3935
|
function Na(e) {
|
|
3936
3936
|
const { year: t, month: n, day: r } = e, i = rp(t, n, r), o = np(t, n, r);
|
|
3937
3937
|
let s = Math.floor((i - o + 10) / 7), a;
|
|
3938
|
-
return s < 1 ? (a = t - 1, s =
|
|
3938
|
+
return s < 1 ? (a = t - 1, s = go(a)) : s > go(t) ? (a = t + 1, s = 1) : a = t, { weekYear: a, weekNumber: s, weekday: o, ...zo(e) };
|
|
3939
3939
|
}
|
|
3940
3940
|
function lc(e) {
|
|
3941
3941
|
const { weekYear: t, weekNumber: n, weekday: r } = e, i = np(t, 1, 4), o = Hr(t);
|
|
@@ -3953,7 +3953,7 @@ function uc(e) {
|
|
|
3953
3953
|
return { year: t, month: r, day: i, ...zo(e) };
|
|
3954
3954
|
}
|
|
3955
3955
|
function K0(e) {
|
|
3956
|
-
const t = $o(e.weekYear), n = nn(e.weekNumber, 1,
|
|
3956
|
+
const t = $o(e.weekYear), n = nn(e.weekNumber, 1, go(e.weekYear)), r = nn(e.weekday, 1, 7);
|
|
3957
3957
|
return t ? n ? r ? !1 : Dt("weekday", e.weekday) : Dt("week", e.week) : Dt("weekYear", e.weekYear);
|
|
3958
3958
|
}
|
|
3959
3959
|
function G0(e) {
|
|
@@ -3961,7 +3961,7 @@ function G0(e) {
|
|
|
3961
3961
|
return t ? n ? !1 : Dt("ordinal", e.ordinal) : Dt("year", e.year);
|
|
3962
3962
|
}
|
|
3963
3963
|
function op(e) {
|
|
3964
|
-
const t = $o(e.year), n = nn(e.month, 1, 12), r = nn(e.day, 1,
|
|
3964
|
+
const t = $o(e.year), n = nn(e.month, 1, 12), r = nn(e.day, 1, mo(e.year, e.month));
|
|
3965
3965
|
return t ? n ? r ? !1 : Dt("day", e.day) : Dt("month", e.month) : Dt("year", e.year);
|
|
3966
3966
|
}
|
|
3967
3967
|
function sp(e) {
|
|
@@ -3969,7 +3969,7 @@ function sp(e) {
|
|
|
3969
3969
|
return o ? s ? a ? l ? !1 : Dt("millisecond", i) : Dt("second", r) : Dt("minute", n) : Dt("hour", t);
|
|
3970
3970
|
}
|
|
3971
3971
|
const ys = "Invalid DateTime", cc = 864e13;
|
|
3972
|
-
function
|
|
3972
|
+
function Ri(e) {
|
|
3973
3973
|
return new $t("unsupported zone", `the zone "${e.name}" is not supported`);
|
|
3974
3974
|
}
|
|
3975
3975
|
function vs(e) {
|
|
@@ -4008,7 +4008,7 @@ function fc(e, t) {
|
|
|
4008
4008
|
millisecond: n.getUTCMilliseconds()
|
|
4009
4009
|
};
|
|
4010
4010
|
}
|
|
4011
|
-
function
|
|
4011
|
+
function ro(e, t, n) {
|
|
4012
4012
|
return ap(Fl(e), t, n);
|
|
4013
4013
|
}
|
|
4014
4014
|
function dc(e, t) {
|
|
@@ -4016,7 +4016,7 @@ function dc(e, t) {
|
|
|
4016
4016
|
...e.c,
|
|
4017
4017
|
year: r,
|
|
4018
4018
|
month: i,
|
|
4019
|
-
day: Math.min(e.c.day,
|
|
4019
|
+
day: Math.min(e.c.day, mo(r, i)) + Math.trunc(t.days) + Math.trunc(t.weeks) * 7
|
|
4020
4020
|
}, s = Ee.fromObject({
|
|
4021
4021
|
years: t.years - Math.trunc(t.years),
|
|
4022
4022
|
quarters: t.quarters - Math.trunc(t.quarters),
|
|
@@ -4045,7 +4045,7 @@ function Or(e, t, n, r, i, o) {
|
|
|
4045
4045
|
new $t("unparsable", `the input "${i}" can't be parsed as ${r}`)
|
|
4046
4046
|
);
|
|
4047
4047
|
}
|
|
4048
|
-
function
|
|
4048
|
+
function Di(e, t, n = !0) {
|
|
4049
4049
|
return e.isValid ? gt.create(He.create("en-US"), {
|
|
4050
4050
|
allowZ: n,
|
|
4051
4051
|
forceSimple: !0
|
|
@@ -4131,7 +4131,7 @@ function mc(e, t) {
|
|
|
4131
4131
|
if (a)
|
|
4132
4132
|
return he.invalid(a);
|
|
4133
4133
|
const l = n.offset(i);
|
|
4134
|
-
[o, s] =
|
|
4134
|
+
[o, s] = ro(e, l, n);
|
|
4135
4135
|
}
|
|
4136
4136
|
return new he({ ts: o, zone: n, loc: r, o: s });
|
|
4137
4137
|
}
|
|
@@ -4156,7 +4156,7 @@ class he {
|
|
|
4156
4156
|
*/
|
|
4157
4157
|
constructor(t) {
|
|
4158
4158
|
const n = t.zone || Je.defaultZone;
|
|
4159
|
-
let r = t.invalid || (Number.isNaN(t.ts) ? new $t("invalid input") : null) || (n.isValid ? null :
|
|
4159
|
+
let r = t.invalid || (Number.isNaN(t.ts) ? new $t("invalid input") : null) || (n.isValid ? null : Ri(n));
|
|
4160
4160
|
this.ts = xe(t.ts) ? Je.now() : t.ts;
|
|
4161
4161
|
let i = null, o = null;
|
|
4162
4162
|
if (!r)
|
|
@@ -4248,7 +4248,7 @@ class he {
|
|
|
4248
4248
|
ts: r,
|
|
4249
4249
|
zone: i,
|
|
4250
4250
|
loc: He.fromObject(n)
|
|
4251
|
-
}) : he.invalid(
|
|
4251
|
+
}) : he.invalid(Ri(i));
|
|
4252
4252
|
}
|
|
4253
4253
|
/**
|
|
4254
4254
|
* Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
|
|
@@ -4322,8 +4322,8 @@ class he {
|
|
|
4322
4322
|
t = t || {};
|
|
4323
4323
|
const r = dn(n.zone, Je.defaultZone);
|
|
4324
4324
|
if (!r.isValid)
|
|
4325
|
-
return he.invalid(
|
|
4326
|
-
const i = Je.now(), o = xe(n.specificOffset) ? r.offset(i) : n.specificOffset, s =
|
|
4325
|
+
return he.invalid(Ri(r));
|
|
4326
|
+
const i = Je.now(), o = xe(n.specificOffset) ? r.offset(i) : n.specificOffset, s = yo(t, pc), a = !xe(s.ordinal), l = !xe(s.year), u = !xe(s.month) || !xe(s.day), f = l || u, c = s.weekYear || s.weekNumber, h = He.fromObject(n);
|
|
4327
4327
|
if ((f || a) && c)
|
|
4328
4328
|
throw new _r(
|
|
4329
4329
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
@@ -4341,7 +4341,7 @@ class he {
|
|
|
4341
4341
|
const y = d ? K0(s) : a ? G0(s) : op(s), w = y || sp(s);
|
|
4342
4342
|
if (w)
|
|
4343
4343
|
return he.invalid(w);
|
|
4344
|
-
const C = d ? lc(s) : a ? uc(s) : s, [S, k] =
|
|
4344
|
+
const C = d ? lc(s) : a ? uc(s) : s, [S, k] = ro(C, o, r), I = new he({
|
|
4345
4345
|
ts: S,
|
|
4346
4346
|
zone: r,
|
|
4347
4347
|
o: k,
|
|
@@ -4663,7 +4663,7 @@ class he {
|
|
|
4663
4663
|
* @type {string}
|
|
4664
4664
|
*/
|
|
4665
4665
|
get monthShort() {
|
|
4666
|
-
return this.isValid ?
|
|
4666
|
+
return this.isValid ? Oi.months("short", { locObj: this.loc })[this.month - 1] : null;
|
|
4667
4667
|
}
|
|
4668
4668
|
/**
|
|
4669
4669
|
* Get the human readable long month name, such as 'October'.
|
|
@@ -4672,7 +4672,7 @@ class he {
|
|
|
4672
4672
|
* @type {string}
|
|
4673
4673
|
*/
|
|
4674
4674
|
get monthLong() {
|
|
4675
|
-
return this.isValid ?
|
|
4675
|
+
return this.isValid ? Oi.months("long", { locObj: this.loc })[this.month - 1] : null;
|
|
4676
4676
|
}
|
|
4677
4677
|
/**
|
|
4678
4678
|
* Get the human readable short weekday, such as 'Mon'.
|
|
@@ -4681,7 +4681,7 @@ class he {
|
|
|
4681
4681
|
* @type {string}
|
|
4682
4682
|
*/
|
|
4683
4683
|
get weekdayShort() {
|
|
4684
|
-
return this.isValid ?
|
|
4684
|
+
return this.isValid ? Oi.weekdays("short", { locObj: this.loc })[this.weekday - 1] : null;
|
|
4685
4685
|
}
|
|
4686
4686
|
/**
|
|
4687
4687
|
* Get the human readable long weekday, such as 'Monday'.
|
|
@@ -4690,7 +4690,7 @@ class he {
|
|
|
4690
4690
|
* @type {string}
|
|
4691
4691
|
*/
|
|
4692
4692
|
get weekdayLong() {
|
|
4693
|
-
return this.isValid ?
|
|
4693
|
+
return this.isValid ? Oi.weekdays("long", { locObj: this.loc })[this.weekday - 1] : null;
|
|
4694
4694
|
}
|
|
4695
4695
|
/**
|
|
4696
4696
|
* Get the UTC offset of this DateTime in minutes
|
|
@@ -4744,7 +4744,7 @@ class he {
|
|
|
4744
4744
|
* @type {boolean}
|
|
4745
4745
|
*/
|
|
4746
4746
|
get isInLeapYear() {
|
|
4747
|
-
return
|
|
4747
|
+
return ci(this.year);
|
|
4748
4748
|
}
|
|
4749
4749
|
/**
|
|
4750
4750
|
* Returns the number of days in this DateTime's month
|
|
@@ -4753,7 +4753,7 @@ class he {
|
|
|
4753
4753
|
* @type {number}
|
|
4754
4754
|
*/
|
|
4755
4755
|
get daysInMonth() {
|
|
4756
|
-
return
|
|
4756
|
+
return mo(this.year, this.month);
|
|
4757
4757
|
}
|
|
4758
4758
|
/**
|
|
4759
4759
|
* Returns the number of days in this DateTime's year
|
|
@@ -4772,7 +4772,7 @@ class he {
|
|
|
4772
4772
|
* @type {number}
|
|
4773
4773
|
*/
|
|
4774
4774
|
get weeksInWeekYear() {
|
|
4775
|
-
return this.isValid ?
|
|
4775
|
+
return this.isValid ? go(this.weekYear) : NaN;
|
|
4776
4776
|
}
|
|
4777
4777
|
/**
|
|
4778
4778
|
* Returns the resolved Intl options for this DateTime.
|
|
@@ -4824,11 +4824,11 @@ class he {
|
|
|
4824
4824
|
let i = this.ts;
|
|
4825
4825
|
if (n || r) {
|
|
4826
4826
|
const o = t.offset(this.ts), s = this.toObject();
|
|
4827
|
-
[i] =
|
|
4827
|
+
[i] = ro(s, o, t);
|
|
4828
4828
|
}
|
|
4829
4829
|
return Ir(this, { ts: i, zone: t });
|
|
4830
4830
|
} else
|
|
4831
|
-
return he.invalid(
|
|
4831
|
+
return he.invalid(Ri(t));
|
|
4832
4832
|
}
|
|
4833
4833
|
/**
|
|
4834
4834
|
* "Set" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.
|
|
@@ -4861,7 +4861,7 @@ class he {
|
|
|
4861
4861
|
*/
|
|
4862
4862
|
set(t) {
|
|
4863
4863
|
if (!this.isValid) return this;
|
|
4864
|
-
const n =
|
|
4864
|
+
const n = yo(t, pc), r = !xe(n.weekYear) || !xe(n.weekNumber) || !xe(n.weekday), i = !xe(n.ordinal), o = !xe(n.year), s = !xe(n.month) || !xe(n.day), a = o || s, l = n.weekYear || n.weekNumber;
|
|
4865
4865
|
if ((a || i) && l)
|
|
4866
4866
|
throw new _r(
|
|
4867
4867
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
@@ -4869,8 +4869,8 @@ class he {
|
|
|
4869
4869
|
if (s && i)
|
|
4870
4870
|
throw new _r("Can't mix ordinal dates with month/day");
|
|
4871
4871
|
let u;
|
|
4872
|
-
r ? u = lc({ ...Na(this.c), ...n }) : xe(n.ordinal) ? (u = { ...this.toObject(), ...n }, xe(n.day) && (u.day = Math.min(
|
|
4873
|
-
const [f, c] =
|
|
4872
|
+
r ? u = lc({ ...Na(this.c), ...n }) : xe(n.ordinal) ? (u = { ...this.toObject(), ...n }, xe(n.day) && (u.day = Math.min(mo(u.year, u.month), u.day))) : u = uc({ ...gs(this.c), ...n });
|
|
4873
|
+
const [f, c] = ro(u, this.o, this.zone);
|
|
4874
4874
|
return Ir(this, { ts: f, o: c });
|
|
4875
4875
|
}
|
|
4876
4876
|
/**
|
|
@@ -5049,7 +5049,7 @@ class he {
|
|
|
5049
5049
|
* @return {string}
|
|
5050
5050
|
*/
|
|
5051
5051
|
toISOWeekDate() {
|
|
5052
|
-
return
|
|
5052
|
+
return Di(this, "kkkk-'W'WW-c");
|
|
5053
5053
|
}
|
|
5054
5054
|
/**
|
|
5055
5055
|
* Returns an ISO 8601-compliant string representation of this DateTime's time component
|
|
@@ -5090,7 +5090,7 @@ class he {
|
|
|
5090
5090
|
* @return {string}
|
|
5091
5091
|
*/
|
|
5092
5092
|
toRFC2822() {
|
|
5093
|
-
return
|
|
5093
|
+
return Di(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", !1);
|
|
5094
5094
|
}
|
|
5095
5095
|
/**
|
|
5096
5096
|
* Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.
|
|
@@ -5101,7 +5101,7 @@ class he {
|
|
|
5101
5101
|
* @return {string}
|
|
5102
5102
|
*/
|
|
5103
5103
|
toHTTP() {
|
|
5104
|
-
return
|
|
5104
|
+
return Di(this.toUTC(), "EEE, dd LLL yyyy HH:mm:ss 'GMT'");
|
|
5105
5105
|
}
|
|
5106
5106
|
/**
|
|
5107
5107
|
* Returns a string representation of this DateTime appropriate for use in SQL Date
|
|
@@ -5125,7 +5125,7 @@ class he {
|
|
|
5125
5125
|
*/
|
|
5126
5126
|
toSQLTime({ includeOffset: t = !0, includeZone: n = !1, includeOffsetSpace: r = !0 } = {}) {
|
|
5127
5127
|
let i = "HH:mm:ss.SSS";
|
|
5128
|
-
return (n || t) && (r && (i += " "), n ? i += "z" : t && (i += "ZZ")),
|
|
5128
|
+
return (n || t) && (r && (i += " "), n ? i += "z" : t && (i += "ZZ")), Di(this, i, !0);
|
|
5129
5129
|
}
|
|
5130
5130
|
/**
|
|
5131
5131
|
* Returns a string representation of this DateTime appropriate for use in SQL DateTime
|
|
@@ -5567,7 +5567,7 @@ function vc(e) {
|
|
|
5567
5567
|
return { ...t, [i]: r };
|
|
5568
5568
|
}, {});
|
|
5569
5569
|
}
|
|
5570
|
-
const rw = 2.4, iw = 0.2126729, ow = 0.7151522, sw = 0.072175, aw = 0.56, lw = 0.57, uw = 0.62, cw = 0.65,
|
|
5570
|
+
const rw = 2.4, iw = 0.2126729, ow = 0.7151522, sw = 0.072175, aw = 0.56, lw = 0.57, uw = 0.62, cw = 0.65, Mi = 0.022, bc = 1.414, fw = 1.14, dw = 1.14, hw = 0.035991, pw = 27.7847239587675, mw = 27.7847239587675, wc = 0.027, xc = 0.027, Sc = 1e-3, gw = 5e-4;
|
|
5571
5571
|
function kc(e) {
|
|
5572
5572
|
const { r: t, g: n, b: r } = e, i = (o) => (o / 255) ** rw;
|
|
5573
5573
|
return iw * i(t) + ow * i(n) + sw * i(r);
|
|
@@ -5576,7 +5576,7 @@ function Ec(e, t) {
|
|
|
5576
5576
|
if (!e || !t)
|
|
5577
5577
|
return 0;
|
|
5578
5578
|
let n = kc(Pa(e)), r = kc(Pa(t)), i = 0, o = 0;
|
|
5579
|
-
return n = n >
|
|
5579
|
+
return n = n > Mi ? n : n + (Mi - n) ** bc, r = r > Mi ? r : r + (Mi - r) ** bc, Math.abs(r - n) < gw ? 0 : (r > n ? (i = (r ** aw - n ** lw) * fw, o = i < Sc ? 0 : i < hw ? i - i * pw * wc : i - wc) : (i = (r ** cw - n ** uw) * dw, o = i > -Sc ? 0 : i > -0.035991 ? i - i * mw * xc : i + xc), Math.abs(o * 100));
|
|
5580
5580
|
}
|
|
5581
5581
|
const yw = (e, t, n) => {
|
|
5582
5582
|
const r = e;
|
|
@@ -5841,7 +5841,7 @@ function Ww(e) {
|
|
|
5841
5841
|
function Tc(e) {
|
|
5842
5842
|
return e.replace(Vw, "") === "";
|
|
5843
5843
|
}
|
|
5844
|
-
class
|
|
5844
|
+
class pi {
|
|
5845
5845
|
/**
|
|
5846
5846
|
* @param {SchemaType['property']} property
|
|
5847
5847
|
* Property.
|
|
@@ -5856,14 +5856,14 @@ class hi {
|
|
|
5856
5856
|
this.normal = n, this.property = t, r && (this.space = r);
|
|
5857
5857
|
}
|
|
5858
5858
|
}
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5859
|
+
pi.prototype.normal = {};
|
|
5860
|
+
pi.prototype.property = {};
|
|
5861
|
+
pi.prototype.space = void 0;
|
|
5862
5862
|
function pp(e, t) {
|
|
5863
5863
|
const n = {}, r = {};
|
|
5864
5864
|
for (const i of e)
|
|
5865
5865
|
Object.assign(n, i.property), Object.assign(r, i.normal);
|
|
5866
|
-
return new
|
|
5866
|
+
return new pi(n, r, t);
|
|
5867
5867
|
}
|
|
5868
5868
|
function La(e) {
|
|
5869
5869
|
return e.toLowerCase();
|
|
@@ -5949,7 +5949,7 @@ function vr(e) {
|
|
|
5949
5949
|
);
|
|
5950
5950
|
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[La(r)] = r, n[La(o.attribute)] = r;
|
|
5951
5951
|
}
|
|
5952
|
-
return new
|
|
5952
|
+
return new pi(t, n, e.space);
|
|
5953
5953
|
}
|
|
5954
5954
|
const mp = vr({
|
|
5955
5955
|
properties: {
|
|
@@ -7321,7 +7321,7 @@ function $1(e, t) {
|
|
|
7321
7321
|
return r.type, /** @type {Child | undefined} */
|
|
7322
7322
|
e.evaluater.evaluateExpression(r.expression);
|
|
7323
7323
|
}
|
|
7324
|
-
|
|
7324
|
+
Jr(e, t.position);
|
|
7325
7325
|
}
|
|
7326
7326
|
function B1(e, t) {
|
|
7327
7327
|
if (t.data && t.data.estree && e.evaluater)
|
|
@@ -7329,7 +7329,7 @@ function B1(e, t) {
|
|
|
7329
7329
|
/** @type {Child | undefined} */
|
|
7330
7330
|
e.evaluater.evaluateProgram(t.data.estree)
|
|
7331
7331
|
);
|
|
7332
|
-
|
|
7332
|
+
Jr(e, t.position);
|
|
7333
7333
|
}
|
|
7334
7334
|
function z1(e, t, n) {
|
|
7335
7335
|
const r = e.schema;
|
|
@@ -7414,7 +7414,7 @@ function q1(e, t) {
|
|
|
7414
7414
|
e.evaluater.evaluateExpression(a.argument)
|
|
7415
7415
|
);
|
|
7416
7416
|
} else
|
|
7417
|
-
|
|
7417
|
+
Jr(e, t.position);
|
|
7418
7418
|
else {
|
|
7419
7419
|
const i = r.name;
|
|
7420
7420
|
let o;
|
|
@@ -7423,7 +7423,7 @@ function q1(e, t) {
|
|
|
7423
7423
|
const a = r.value.data.estree.body[0];
|
|
7424
7424
|
a.type, o = e.evaluater.evaluateExpression(a.expression);
|
|
7425
7425
|
} else
|
|
7426
|
-
|
|
7426
|
+
Jr(e, t.position);
|
|
7427
7427
|
else
|
|
7428
7428
|
o = r.value === null ? !0 : r.value;
|
|
7429
7429
|
n[i] = /** @type {Props[keyof Props]} */
|
|
@@ -7510,9 +7510,9 @@ function Ap(e, t, n) {
|
|
|
7510
7510
|
}
|
|
7511
7511
|
if (e.evaluater)
|
|
7512
7512
|
return e.evaluater.evaluateExpression(r);
|
|
7513
|
-
|
|
7513
|
+
Jr(e);
|
|
7514
7514
|
}
|
|
7515
|
-
function
|
|
7515
|
+
function Jr(e, t) {
|
|
7516
7516
|
const n = new at(
|
|
7517
7517
|
"Cannot handle MDX estrees without `createEvaluater`",
|
|
7518
7518
|
{
|
|
@@ -7658,7 +7658,7 @@ function Bt(e) {
|
|
|
7658
7658
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
7659
7659
|
}
|
|
7660
7660
|
const ft = Sn(/[A-Za-z]/), st = Sn(/[\dA-Za-z]/), nx = Sn(/[#-'*+\--9=?A-Z^-~]/);
|
|
7661
|
-
function
|
|
7661
|
+
function vo(e) {
|
|
7662
7662
|
return (
|
|
7663
7663
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
7664
7664
|
// character DEL
|
|
@@ -7976,7 +7976,7 @@ function hx(e, t, n) {
|
|
|
7976
7976
|
return d === 58 ? (e.consume(d), r = 0, l) : (d === 43 || d === 45 || d === 46 || st(d)) && r++ < 32 ? (e.consume(d), a) : (r = 0, u(d));
|
|
7977
7977
|
}
|
|
7978
7978
|
function l(d) {
|
|
7979
|
-
return d === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.exit("autolink"), t) : d === null || d === 32 || d === 60 ||
|
|
7979
|
+
return d === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.exit("autolink"), t) : d === null || d === 32 || d === 60 || vo(d) ? n(d) : (e.consume(d), l);
|
|
7980
7980
|
}
|
|
7981
7981
|
function u(d) {
|
|
7982
7982
|
return d === 64 ? (e.consume(d), f) : nx(d) ? (e.consume(d), u) : n(d);
|
|
@@ -7995,7 +7995,7 @@ function hx(e, t, n) {
|
|
|
7995
7995
|
return n(d);
|
|
7996
7996
|
}
|
|
7997
7997
|
}
|
|
7998
|
-
const
|
|
7998
|
+
const mi = {
|
|
7999
7999
|
partial: !0,
|
|
8000
8000
|
tokenize: px
|
|
8001
8001
|
};
|
|
@@ -8521,7 +8521,7 @@ function Pp(e, t, n, r, i, o, s, a, l) {
|
|
|
8521
8521
|
let f = 0;
|
|
8522
8522
|
return c;
|
|
8523
8523
|
function c(v) {
|
|
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 ||
|
|
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
|
}), p(v));
|
|
8527
8527
|
}
|
|
@@ -8537,7 +8537,7 @@ function Pp(e, t, n, r, i, o, s, a, l) {
|
|
|
8537
8537
|
return v === 60 || v === 62 || v === 92 ? (e.consume(v), d) : d(v);
|
|
8538
8538
|
}
|
|
8539
8539
|
function p(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++, p) : v === 41 ? (e.consume(v), f--, p) : v === null || v === 32 || v === 40 ||
|
|
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++, p) : v === 41 ? (e.consume(v), f--, p) : v === null || v === 32 || v === 40 || vo(v) ? n(v) : (e.consume(v), v === 92 ? g : p);
|
|
8541
8541
|
}
|
|
8542
8542
|
function g(v) {
|
|
8543
8543
|
return v === 40 || v === 41 || v === 92 ? (e.consume(v), p) : p(v);
|
|
@@ -8916,7 +8916,7 @@ function Zx(e, t, n) {
|
|
|
8916
8916
|
function Jx(e, t, n) {
|
|
8917
8917
|
return r;
|
|
8918
8918
|
function r(i) {
|
|
8919
|
-
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(
|
|
8919
|
+
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(mi, t, n);
|
|
8920
8920
|
}
|
|
8921
8921
|
}
|
|
8922
8922
|
const Xx = {
|
|
@@ -9200,7 +9200,7 @@ function pS(e, t) {
|
|
|
9200
9200
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), ke(e, t, "linePrefix");
|
|
9201
9201
|
}
|
|
9202
9202
|
}
|
|
9203
|
-
const
|
|
9203
|
+
const io = {
|
|
9204
9204
|
name: "thematicBreak",
|
|
9205
9205
|
tokenize: mS
|
|
9206
9206
|
};
|
|
@@ -9244,7 +9244,7 @@ function vS(e, t, n) {
|
|
|
9244
9244
|
if (r.containerState.type || (r.containerState.type = m, e.enter(m, {
|
|
9245
9245
|
_container: !0
|
|
9246
9246
|
})), m === "listUnordered")
|
|
9247
|
-
return e.enter("listItemPrefix"), d === 42 || d === 45 ? e.check(
|
|
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);
|
|
9250
9250
|
}
|
|
@@ -9255,7 +9255,7 @@ function vS(e, t, n) {
|
|
|
9255
9255
|
}
|
|
9256
9256
|
function u(d) {
|
|
9257
9257
|
return e.enter("listItemMarker"), e.consume(d), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || d, e.check(
|
|
9258
|
-
|
|
9258
|
+
mi,
|
|
9259
9259
|
// Can’t be empty when interrupting.
|
|
9260
9260
|
r.interrupt ? n : f,
|
|
9261
9261
|
e.attempt(gS, h, c)
|
|
@@ -9273,7 +9273,7 @@ function vS(e, t, n) {
|
|
|
9273
9273
|
}
|
|
9274
9274
|
function bS(e, t, n) {
|
|
9275
9275
|
const r = this;
|
|
9276
|
-
return r.containerState._closeFlow = void 0, e.check(
|
|
9276
|
+
return r.containerState._closeFlow = void 0, e.check(mi, i, o);
|
|
9277
9277
|
function i(a) {
|
|
9278
9278
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, ke(e, t, "listItemIndent", r.containerState.size + 1)(a);
|
|
9279
9279
|
}
|
|
@@ -9361,7 +9361,7 @@ const CS = {
|
|
|
9361
9361
|
function AS(e) {
|
|
9362
9362
|
const t = this, n = e.attempt(
|
|
9363
9363
|
// Try to parse a blank line.
|
|
9364
|
-
|
|
9364
|
+
mi,
|
|
9365
9365
|
r,
|
|
9366
9366
|
// Try to parse initial flow (essentially, only code).
|
|
9367
9367
|
e.attempt(this.parser.constructs.flowInitial, i, ke(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Dx, i)), "linePrefix"))
|
|
@@ -9495,11 +9495,11 @@ const DS = {
|
|
|
9495
9495
|
32: ks
|
|
9496
9496
|
}, PS = {
|
|
9497
9497
|
35: Ux,
|
|
9498
|
-
42:
|
|
9499
|
-
45: [Wc,
|
|
9498
|
+
42: io,
|
|
9499
|
+
45: [Wc, io],
|
|
9500
9500
|
60: qx,
|
|
9501
9501
|
61: Wc,
|
|
9502
|
-
95:
|
|
9502
|
+
95: io,
|
|
9503
9503
|
96: jc,
|
|
9504
9504
|
126: jc
|
|
9505
9505
|
}, LS = {
|
|
@@ -10756,14 +10756,14 @@ const Ck = {
|
|
|
10756
10756
|
tableRow: wk,
|
|
10757
10757
|
text: kk,
|
|
10758
10758
|
thematicBreak: Ek,
|
|
10759
|
-
toml:
|
|
10760
|
-
yaml:
|
|
10761
|
-
definition:
|
|
10762
|
-
footnoteDefinition:
|
|
10759
|
+
toml: Ni,
|
|
10760
|
+
yaml: Ni,
|
|
10761
|
+
definition: Ni,
|
|
10762
|
+
footnoteDefinition: Ni
|
|
10763
10763
|
};
|
|
10764
|
-
function
|
|
10764
|
+
function Ni() {
|
|
10765
10765
|
}
|
|
10766
|
-
const jp = -1, Wo = 0, Wr = 1,
|
|
10766
|
+
const jp = -1, Wo = 0, Wr = 1, bo = 2, Xl = 3, eu = 4, tu = 5, nu = 6, Vp = 7, Wp = 8, Zc = typeof self == "object" ? self : globalThis, Ak = (e, t) => {
|
|
10767
10767
|
const n = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
10768
10768
|
if (e.has(i))
|
|
10769
10769
|
return e.get(i);
|
|
@@ -10778,7 +10778,7 @@ const jp = -1, Wo = 0, Wr = 1, vo = 2, Xl = 3, eu = 4, tu = 5, nu = 6, Vp = 7, W
|
|
|
10778
10778
|
a.push(r(l));
|
|
10779
10779
|
return a;
|
|
10780
10780
|
}
|
|
10781
|
-
case
|
|
10781
|
+
case bo: {
|
|
10782
10782
|
const a = n({}, i);
|
|
10783
10783
|
for (const [l, u] of s)
|
|
10784
10784
|
a[r(l)] = r(u);
|
|
@@ -10829,7 +10829,7 @@ const jp = -1, Wo = 0, Wr = 1, vo = 2, Xl = 3, eu = 4, tu = 5, nu = 6, Vp = 7, W
|
|
|
10829
10829
|
case "Array":
|
|
10830
10830
|
return [Wr, Hn];
|
|
10831
10831
|
case "Object":
|
|
10832
|
-
return [
|
|
10832
|
+
return [bo, Hn];
|
|
10833
10833
|
case "Date":
|
|
10834
10834
|
return [Xl, Hn];
|
|
10835
10835
|
case "RegExp":
|
|
@@ -10841,8 +10841,8 @@ const jp = -1, Wo = 0, Wr = 1, vo = 2, Xl = 3, eu = 4, tu = 5, nu = 6, Vp = 7, W
|
|
|
10841
10841
|
case "DataView":
|
|
10842
10842
|
return [Wr, n];
|
|
10843
10843
|
}
|
|
10844
|
-
return n.includes("Array") ? [Wr, n] : n.includes("Error") ? [Vp, n] : [
|
|
10845
|
-
},
|
|
10844
|
+
return n.includes("Array") ? [Wr, n] : n.includes("Error") ? [Vp, n] : [bo, n];
|
|
10845
|
+
}, Pi = ([e, t]) => e === Wo && (t === "function" || t === "symbol"), Ok = (e, t, n, r) => {
|
|
10846
10846
|
const i = (s, a) => {
|
|
10847
10847
|
const l = r.push(s) - 1;
|
|
10848
10848
|
return n.set(a, l), l;
|
|
@@ -10878,7 +10878,7 @@ const jp = -1, Wo = 0, Wr = 1, vo = 2, Xl = 3, eu = 4, tu = 5, nu = 6, Vp = 7, W
|
|
|
10878
10878
|
f.push(o(h));
|
|
10879
10879
|
return c;
|
|
10880
10880
|
}
|
|
10881
|
-
case
|
|
10881
|
+
case bo: {
|
|
10882
10882
|
if (l)
|
|
10883
10883
|
switch (l) {
|
|
10884
10884
|
case "BigInt":
|
|
@@ -10892,7 +10892,7 @@ const jp = -1, Wo = 0, Wr = 1, vo = 2, Xl = 3, eu = 4, tu = 5, nu = 6, Vp = 7, W
|
|
|
10892
10892
|
return o(s.toJSON());
|
|
10893
10893
|
const f = [], c = i([a, f], s);
|
|
10894
10894
|
for (const h of Ik(s))
|
|
10895
|
-
(e || !
|
|
10895
|
+
(e || !Pi(Mr(s[h]))) && f.push([o(h), o(s[h])]);
|
|
10896
10896
|
return c;
|
|
10897
10897
|
}
|
|
10898
10898
|
case Xl:
|
|
@@ -10904,13 +10904,13 @@ const jp = -1, Wo = 0, Wr = 1, vo = 2, Xl = 3, eu = 4, tu = 5, nu = 6, Vp = 7, W
|
|
|
10904
10904
|
case tu: {
|
|
10905
10905
|
const f = [], c = i([a, f], s);
|
|
10906
10906
|
for (const [h, d] of s)
|
|
10907
|
-
(e || !(
|
|
10907
|
+
(e || !(Pi(Mr(h)) || Pi(Mr(d)))) && f.push([o(h), o(d)]);
|
|
10908
10908
|
return c;
|
|
10909
10909
|
}
|
|
10910
10910
|
case nu: {
|
|
10911
10911
|
const f = [], c = i([a, f], s);
|
|
10912
10912
|
for (const h of s)
|
|
10913
|
-
(e || !
|
|
10913
|
+
(e || !Pi(Mr(h))) && f.push(o(h));
|
|
10914
10914
|
return c;
|
|
10915
10915
|
}
|
|
10916
10916
|
}
|
|
@@ -10921,7 +10921,7 @@ const jp = -1, Wo = 0, Wr = 1, vo = 2, Xl = 3, eu = 4, tu = 5, nu = 6, Vp = 7, W
|
|
|
10921
10921
|
}, Xc = (e, { json: t, lossy: n } = {}) => {
|
|
10922
10922
|
const r = [];
|
|
10923
10923
|
return Ok(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
10924
|
-
},
|
|
10924
|
+
}, wo = typeof structuredClone == "function" ? (
|
|
10925
10925
|
/* c8 ignore start */
|
|
10926
10926
|
(e, t) => t && ("json" in t || "lossy" in t) ? Jc(Xc(e, t)) : structuredClone(e)
|
|
10927
10927
|
) : (e, t) => Jc(Xc(e, t));
|
|
@@ -10990,7 +10990,7 @@ function Mk(e) {
|
|
|
10990
10990
|
type: "element",
|
|
10991
10991
|
tagName: o,
|
|
10992
10992
|
properties: {
|
|
10993
|
-
...
|
|
10993
|
+
...wo(s),
|
|
10994
10994
|
id: "footnote-label"
|
|
10995
10995
|
},
|
|
10996
10996
|
children: [{ type: "text", value: i }]
|
|
@@ -11179,10 +11179,10 @@ function Uk(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: p, ...g } = f, v =
|
|
11182
|
+
const { children: p, ...g } = f, v = wo(g);
|
|
11183
11183
|
return v.children = a.all(f), v;
|
|
11184
11184
|
}
|
|
11185
|
-
return
|
|
11185
|
+
return wo(f);
|
|
11186
11186
|
}
|
|
11187
11187
|
return (a.options.unknownHandler || Wk)(a, f, c);
|
|
11188
11188
|
}
|
|
@@ -11219,7 +11219,7 @@ function Vk(e, t) {
|
|
|
11219
11219
|
const s = "children" in n ? n.children : [n];
|
|
11220
11220
|
n = { type: "element", tagName: r, properties: {}, children: s };
|
|
11221
11221
|
}
|
|
11222
|
-
n.type === "element" && o && Object.assign(n.properties,
|
|
11222
|
+
n.type === "element" && o && Object.assign(n.properties, wo(o)), "children" in n && n.children && i !== null && i !== void 0 && (n.children = i);
|
|
11223
11223
|
}
|
|
11224
11224
|
return n;
|
|
11225
11225
|
}
|
|
@@ -11271,18 +11271,18 @@ function nf(e) {
|
|
|
11271
11271
|
if (e)
|
|
11272
11272
|
throw e;
|
|
11273
11273
|
}
|
|
11274
|
-
var
|
|
11274
|
+
var oo = Object.prototype.hasOwnProperty, Kp = Object.prototype.toString, rf = Object.defineProperty, of = Object.getOwnPropertyDescriptor, sf = function(t) {
|
|
11275
11275
|
return typeof Array.isArray == "function" ? Array.isArray(t) : Kp.call(t) === "[object Array]";
|
|
11276
11276
|
}, af = function(t) {
|
|
11277
11277
|
if (!t || Kp.call(t) !== "[object Object]")
|
|
11278
11278
|
return !1;
|
|
11279
|
-
var n =
|
|
11279
|
+
var n = oo.call(t, "constructor"), r = t.constructor && t.constructor.prototype && oo.call(t.constructor.prototype, "isPrototypeOf");
|
|
11280
11280
|
if (t.constructor && !n && !r)
|
|
11281
11281
|
return !1;
|
|
11282
11282
|
var i;
|
|
11283
11283
|
for (i in t)
|
|
11284
11284
|
;
|
|
11285
|
-
return typeof i > "u" ||
|
|
11285
|
+
return typeof i > "u" || oo.call(t, i);
|
|
11286
11286
|
}, lf = function(t, n) {
|
|
11287
11287
|
rf && n.name === "__proto__" ? rf(t, n.name, {
|
|
11288
11288
|
enumerable: !0,
|
|
@@ -11292,7 +11292,7 @@ var io = Object.prototype.hasOwnProperty, Kp = Object.prototype.toString, rf = O
|
|
|
11292
11292
|
}) : t[n.name] = n.newValue;
|
|
11293
11293
|
}, uf = function(t, n) {
|
|
11294
11294
|
if (n === "__proto__")
|
|
11295
|
-
if (
|
|
11295
|
+
if (oo.call(t, n)) {
|
|
11296
11296
|
if (of)
|
|
11297
11297
|
return of(t, n).value;
|
|
11298
11298
|
} else return;
|
|
@@ -11372,7 +11372,7 @@ const qt = { basename: Zk, dirname: Jk, extname: Xk, join: eE, sep: "/" };
|
|
|
11372
11372
|
function Zk(e, t) {
|
|
11373
11373
|
if (t !== void 0 && typeof t != "string")
|
|
11374
11374
|
throw new TypeError('"ext" argument must be a string');
|
|
11375
|
-
|
|
11375
|
+
gi(e);
|
|
11376
11376
|
let n = 0, r = -1, i = e.length, o;
|
|
11377
11377
|
if (t === void 0 || t.length === 0 || t.length > e.length) {
|
|
11378
11378
|
for (; i--; )
|
|
@@ -11398,7 +11398,7 @@ function Zk(e, t) {
|
|
|
11398
11398
|
return n === r ? r = s : r < 0 && (r = e.length), e.slice(n, r);
|
|
11399
11399
|
}
|
|
11400
11400
|
function Jk(e) {
|
|
11401
|
-
if (
|
|
11401
|
+
if (gi(e), e.length === 0)
|
|
11402
11402
|
return ".";
|
|
11403
11403
|
let t = -1, n = e.length, r;
|
|
11404
11404
|
for (; --n; )
|
|
@@ -11411,7 +11411,7 @@ function Jk(e) {
|
|
|
11411
11411
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
11412
11412
|
}
|
|
11413
11413
|
function Xk(e) {
|
|
11414
|
-
|
|
11414
|
+
gi(e);
|
|
11415
11415
|
let t = e.length, n = -1, r = 0, i = -1, o = 0, s;
|
|
11416
11416
|
for (; t--; ) {
|
|
11417
11417
|
const a = e.codePointAt(t);
|
|
@@ -11431,11 +11431,11 @@ function Xk(e) {
|
|
|
11431
11431
|
function eE(...e) {
|
|
11432
11432
|
let t = -1, n;
|
|
11433
11433
|
for (; ++t < e.length; )
|
|
11434
|
-
|
|
11434
|
+
gi(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
11435
11435
|
return n === void 0 ? "." : tE(n);
|
|
11436
11436
|
}
|
|
11437
11437
|
function tE(e) {
|
|
11438
|
-
|
|
11438
|
+
gi(e);
|
|
11439
11439
|
const t = e.codePointAt(0) === 47;
|
|
11440
11440
|
let n = nE(e, !t);
|
|
11441
11441
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
@@ -11471,7 +11471,7 @@ function nE(e, t) {
|
|
|
11471
11471
|
}
|
|
11472
11472
|
return n;
|
|
11473
11473
|
}
|
|
11474
|
-
function
|
|
11474
|
+
function gi(e) {
|
|
11475
11475
|
if (typeof e != "string")
|
|
11476
11476
|
throw new TypeError(
|
|
11477
11477
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
@@ -12084,7 +12084,7 @@ class iu extends lE {
|
|
|
12084
12084
|
*/
|
|
12085
12085
|
parse(t) {
|
|
12086
12086
|
this.freeze();
|
|
12087
|
-
const n =
|
|
12087
|
+
const n = Li(t), r = this.parser || this.Parser;
|
|
12088
12088
|
return Os("parse", r), r(String(n), n);
|
|
12089
12089
|
}
|
|
12090
12090
|
/**
|
|
@@ -12133,7 +12133,7 @@ class iu extends lE {
|
|
|
12133
12133
|
const r = this;
|
|
12134
12134
|
return this.freeze(), Os("process", this.parser || this.Parser), Rs("process", this.compiler || this.Compiler), n ? i(void 0, n) : new Promise(i);
|
|
12135
12135
|
function i(o, s) {
|
|
12136
|
-
const a =
|
|
12136
|
+
const a = Li(t), l = (
|
|
12137
12137
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
12138
12138
|
/** @type {unknown} */
|
|
12139
12139
|
r.parse(a)
|
|
@@ -12238,7 +12238,7 @@ class iu extends lE {
|
|
|
12238
12238
|
const i = this.transformers;
|
|
12239
12239
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? o(void 0, r) : new Promise(o);
|
|
12240
12240
|
function o(s, a) {
|
|
12241
|
-
const l =
|
|
12241
|
+
const l = Li(n);
|
|
12242
12242
|
i.run(t, l, u);
|
|
12243
12243
|
function u(f, c, h) {
|
|
12244
12244
|
const d = (
|
|
@@ -12304,7 +12304,7 @@ class iu extends lE {
|
|
|
12304
12304
|
*/
|
|
12305
12305
|
stringify(t, n) {
|
|
12306
12306
|
this.freeze();
|
|
12307
|
-
const r =
|
|
12307
|
+
const r = Li(n), i = this.compiler || this.Compiler;
|
|
12308
12308
|
return Rs("stringify", i), ff(t), i(t, r);
|
|
12309
12309
|
}
|
|
12310
12310
|
/**
|
|
@@ -12447,7 +12447,7 @@ function df(e, t, n) {
|
|
|
12447
12447
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
12448
12448
|
);
|
|
12449
12449
|
}
|
|
12450
|
-
function
|
|
12450
|
+
function Li(e) {
|
|
12451
12451
|
return fE(e) ? e : new Gp(e);
|
|
12452
12452
|
}
|
|
12453
12453
|
function fE(e) {
|
|
@@ -13102,10 +13102,10 @@ function dC(e) {
|
|
|
13102
13102
|
);
|
|
13103
13103
|
return t;
|
|
13104
13104
|
}
|
|
13105
|
-
function
|
|
13105
|
+
function Xr(e) {
|
|
13106
13106
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
13107
13107
|
}
|
|
13108
|
-
function
|
|
13108
|
+
function xo(e, t, n) {
|
|
13109
13109
|
const r = ar(e), i = ar(t);
|
|
13110
13110
|
return r === void 0 ? i === void 0 ? (
|
|
13111
13111
|
// Letter inside:
|
|
@@ -13148,14 +13148,14 @@ function rm(e, t, n, r) {
|
|
|
13148
13148
|
...s.current()
|
|
13149
13149
|
})
|
|
13150
13150
|
);
|
|
13151
|
-
const u = l.charCodeAt(0), f =
|
|
13151
|
+
const u = l.charCodeAt(0), f = xo(
|
|
13152
13152
|
r.before.charCodeAt(r.before.length - 1),
|
|
13153
13153
|
u,
|
|
13154
13154
|
i
|
|
13155
13155
|
);
|
|
13156
|
-
f.inside && (l =
|
|
13157
|
-
const c = l.charCodeAt(l.length - 1), h =
|
|
13158
|
-
h.inside && (l = l.slice(0, -1) +
|
|
13156
|
+
f.inside && (l = Xr(u) + l.slice(1));
|
|
13157
|
+
const c = l.charCodeAt(l.length - 1), h = xo(r.after.charCodeAt(0), c, i);
|
|
13158
|
+
h.inside && (l = l.slice(0, -1) + Xr(c));
|
|
13159
13159
|
const d = s.move(i);
|
|
13160
13160
|
return o(), n.attentionEncodeSurroundingInfo = {
|
|
13161
13161
|
after: h.outside,
|
|
@@ -13199,7 +13199,7 @@ function mC(e, t, n, r) {
|
|
|
13199
13199
|
`,
|
|
13200
13200
|
...o.current()
|
|
13201
13201
|
});
|
|
13202
|
-
return /^[\t ]/.test(u) && (u =
|
|
13202
|
+
return /^[\t ]/.test(u) && (u = Xr(u.charCodeAt(0)) + u.slice(1)), u = u ? s + " " + u : s, n.options.closeAtx && (u += " " + s), l(), a(), u;
|
|
13203
13203
|
}
|
|
13204
13204
|
im.peek = gC;
|
|
13205
13205
|
function im(e) {
|
|
@@ -13504,14 +13504,14 @@ function dm(e, t, n, r) {
|
|
|
13504
13504
|
...s.current()
|
|
13505
13505
|
})
|
|
13506
13506
|
);
|
|
13507
|
-
const u = l.charCodeAt(0), f =
|
|
13507
|
+
const u = l.charCodeAt(0), f = xo(
|
|
13508
13508
|
r.before.charCodeAt(r.before.length - 1),
|
|
13509
13509
|
u,
|
|
13510
13510
|
i
|
|
13511
13511
|
);
|
|
13512
|
-
f.inside && (l =
|
|
13513
|
-
const c = l.charCodeAt(l.length - 1), h =
|
|
13514
|
-
h.inside && (l = l.slice(0, -1) +
|
|
13512
|
+
f.inside && (l = Xr(u) + l.slice(1));
|
|
13513
|
+
const c = l.charCodeAt(l.length - 1), h = xo(r.after.charCodeAt(0), c, i);
|
|
13514
|
+
h.inside && (l = l.slice(0, -1) + Xr(c));
|
|
13515
13515
|
const d = s.move(i + i);
|
|
13516
13516
|
return o(), n.attentionEncodeSurroundingInfo = {
|
|
13517
13517
|
after: h.outside,
|
|
@@ -13853,7 +13853,7 @@ function XC(e, t, n) {
|
|
|
13853
13853
|
return c === 47 ? (e.consume(c), o ? u : (o = !0, l)) : n(c);
|
|
13854
13854
|
}
|
|
13855
13855
|
function u(c) {
|
|
13856
|
-
return c === null ||
|
|
13856
|
+
return c === null || vo(c) || Pe(c) || Nn(c) || jo(c) ? n(c) : e.attempt(pm, e.attempt(mm, f), n)(c);
|
|
13857
13857
|
}
|
|
13858
13858
|
function f(c) {
|
|
13859
13859
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
|
|
@@ -14119,7 +14119,7 @@ function cA(e, t, n) {
|
|
|
14119
14119
|
}
|
|
14120
14120
|
}
|
|
14121
14121
|
function fA(e, t, n) {
|
|
14122
|
-
return e.check(
|
|
14122
|
+
return e.check(mi, t, e.attempt(oA, t, n));
|
|
14123
14123
|
}
|
|
14124
14124
|
function dA(e) {
|
|
14125
14125
|
e.exit("gfmFootnoteDefinition");
|
|
@@ -14377,7 +14377,7 @@ function wA(e, t) {
|
|
|
14377
14377
|
start: Object.assign({}, m.start),
|
|
14378
14378
|
// Note: correct end is set later.
|
|
14379
14379
|
end: Object.assign({}, m.end)
|
|
14380
|
-
}, h.add(n, 0, [["enter", f, t]])), i = m.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, s[2] === 0 && (o[1] !== 0 && (s[0] = s[1], c =
|
|
14380
|
+
}, h.add(n, 0, [["enter", f, t]])), i = m.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.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)) : m.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])) : m.type === "tableHead" ? (a = !0, l = n) : m.type === "tableRow" || m.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 && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") && (s[3] = n);
|
|
14381
14381
|
}
|
|
14382
14382
|
for (l !== 0 && xf(h, t, l, u, f), h.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
14383
14383
|
const d = t.events[n];
|
|
@@ -14385,7 +14385,7 @@ function wA(e, t) {
|
|
|
14385
14385
|
}
|
|
14386
14386
|
return e;
|
|
14387
14387
|
}
|
|
14388
|
-
function
|
|
14388
|
+
function _i(e, t, n, r, i, o) {
|
|
14389
14389
|
const s = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
|
|
14390
14390
|
n[0] !== 0 && (o.end = Object.assign({}, qn(t.events, n[0])), e.add(n[0], 0, [["exit", o, t]]));
|
|
14391
14391
|
const l = qn(t.events, n[1]);
|
|
@@ -15726,7 +15726,7 @@ const zT = [
|
|
|
15726
15726
|
} };
|
|
15727
15727
|
return t = e(r, i, a), a;
|
|
15728
15728
|
}, VT = (e) => e ? Ef(e) : Ef;
|
|
15729
|
-
var Ya = { exports: {} }, _s = {},
|
|
15729
|
+
var Ya = { exports: {} }, _s = {}, Fi = { exports: {} }, Fs = {};
|
|
15730
15730
|
/**
|
|
15731
15731
|
* @license React
|
|
15732
15732
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -15854,7 +15854,7 @@ function qT() {
|
|
|
15854
15854
|
}
|
|
15855
15855
|
var Tf;
|
|
15856
15856
|
function Rm() {
|
|
15857
|
-
return Tf || (Tf = 1, process.env.NODE_ENV === "production" ?
|
|
15857
|
+
return Tf || (Tf = 1, process.env.NODE_ENV === "production" ? Fi.exports = WT() : Fi.exports = qT()), Fi.exports;
|
|
15858
15858
|
}
|
|
15859
15859
|
/**
|
|
15860
15860
|
* @license React
|
|
@@ -15985,7 +15985,7 @@ const XT = (e) => {
|
|
|
15985
15985
|
);
|
|
15986
15986
|
const t = typeof e == "function" ? VT(e) : e, n = (r, i) => JT(t, r, i);
|
|
15987
15987
|
return Object.assign(n, t), n;
|
|
15988
|
-
}, kn = (e) => XT,
|
|
15988
|
+
}, kn = (e) => XT, so = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Ka = /* @__PURE__ */ new Map(), $i = (e) => {
|
|
15989
15989
|
const t = Ka.get(e);
|
|
15990
15990
|
return t ? Object.fromEntries(
|
|
15991
15991
|
Object.entries(t.stores).map(([n, r]) => [n, r.getState()])
|
|
@@ -16008,11 +16008,11 @@ const XT = (e) => {
|
|
|
16008
16008
|
const { enabled: o, anonymousActionType: s, store: a, ...l } = t;
|
|
16009
16009
|
let u;
|
|
16010
16010
|
try {
|
|
16011
|
-
u = (o ?? (
|
|
16011
|
+
u = (o ?? (so ? "production" : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
16012
16012
|
} catch {
|
|
16013
16013
|
}
|
|
16014
16014
|
if (!u)
|
|
16015
|
-
return (
|
|
16015
|
+
return (so ? "production" : void 0) !== "production" && o && console.warn(
|
|
16016
16016
|
"[zustand devtools middleware] Please install/enable Redux devtools extension"
|
|
16017
16017
|
), e(n, r, i);
|
|
16018
16018
|
const { connection: f, ...c } = eI(a, u, l);
|
|
@@ -16028,7 +16028,7 @@ const XT = (e) => {
|
|
|
16028
16028
|
type: `${a}/${w.type}`
|
|
16029
16029
|
},
|
|
16030
16030
|
{
|
|
16031
|
-
|
|
16031
|
+
...$i(l.name),
|
|
16032
16032
|
[a]: i.getState()
|
|
16033
16033
|
}
|
|
16034
16034
|
), y);
|
|
@@ -16048,7 +16048,7 @@ const XT = (e) => {
|
|
|
16048
16048
|
let p = !1;
|
|
16049
16049
|
const g = i.dispatch;
|
|
16050
16050
|
i.dispatch = (...v) => {
|
|
16051
|
-
(
|
|
16051
|
+
(so ? "production" : void 0) !== "production" && v[0].type === "__setState" && !p && (console.warn(
|
|
16052
16052
|
'[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'
|
|
16053
16053
|
), p = !0), g(...v);
|
|
16054
16054
|
};
|
|
@@ -16090,20 +16090,20 @@ const XT = (e) => {
|
|
|
16090
16090
|
case "DISPATCH":
|
|
16091
16091
|
switch (p.payload.type) {
|
|
16092
16092
|
case "RESET":
|
|
16093
|
-
return d(m), a === void 0 ? f == null ? void 0 : f.init(i.getState()) : f == null ? void 0 : f.init(
|
|
16093
|
+
return d(m), a === void 0 ? f == null ? void 0 : f.init(i.getState()) : f == null ? void 0 : f.init($i(l.name));
|
|
16094
16094
|
case "COMMIT":
|
|
16095
16095
|
if (a === void 0) {
|
|
16096
16096
|
f == null || f.init(i.getState());
|
|
16097
16097
|
return;
|
|
16098
16098
|
}
|
|
16099
|
-
return f == null ? void 0 : f.init(
|
|
16099
|
+
return f == null ? void 0 : f.init($i(l.name));
|
|
16100
16100
|
case "ROLLBACK":
|
|
16101
16101
|
return zs(p.state, (v) => {
|
|
16102
16102
|
if (a === void 0) {
|
|
16103
16103
|
d(v), f == null || f.init(i.getState());
|
|
16104
16104
|
return;
|
|
16105
16105
|
}
|
|
16106
|
-
d(v[a]), f == null || f.init(
|
|
16106
|
+
d(v[a]), f == null || f.init($i(l.name));
|
|
16107
16107
|
});
|
|
16108
16108
|
case "JUMP_TO_STATE":
|
|
16109
16109
|
case "JUMP_TO_ACTION":
|
|
@@ -16163,12 +16163,12 @@ function Ko(e, t) {
|
|
|
16163
16163
|
removeItem: (i) => n.removeItem(i)
|
|
16164
16164
|
};
|
|
16165
16165
|
}
|
|
16166
|
-
const
|
|
16166
|
+
const ei = (e) => (t) => {
|
|
16167
16167
|
try {
|
|
16168
16168
|
const n = e(t);
|
|
16169
16169
|
return n instanceof Promise ? n : {
|
|
16170
16170
|
then(r) {
|
|
16171
|
-
return
|
|
16171
|
+
return ei(r)(n);
|
|
16172
16172
|
},
|
|
16173
16173
|
catch(r) {
|
|
16174
16174
|
return this;
|
|
@@ -16180,7 +16180,7 @@ const Xr = (e) => (t) => {
|
|
|
16180
16180
|
return this;
|
|
16181
16181
|
},
|
|
16182
16182
|
catch(r) {
|
|
16183
|
-
return
|
|
16183
|
+
return ei(r)(n);
|
|
16184
16184
|
}
|
|
16185
16185
|
};
|
|
16186
16186
|
}
|
|
@@ -16213,7 +16213,7 @@ const Xr = (e) => (t) => {
|
|
|
16213
16213
|
r,
|
|
16214
16214
|
i
|
|
16215
16215
|
);
|
|
16216
|
-
const f =
|
|
16216
|
+
const f = ei(o.serialize), c = () => {
|
|
16217
16217
|
const g = o.partialize({ ...r() });
|
|
16218
16218
|
let v;
|
|
16219
16219
|
const y = f({ state: g, version: o.version }).then(
|
|
@@ -16242,7 +16242,7 @@ const Xr = (e) => (t) => {
|
|
|
16242
16242
|
return;
|
|
16243
16243
|
s = !1, a.forEach((y) => y(r()));
|
|
16244
16244
|
const v = ((g = o.onRehydrateStorage) == null ? void 0 : g.call(o, r())) || void 0;
|
|
16245
|
-
return
|
|
16245
|
+
return ei(u.getItem.bind(u))(o.name).then((y) => {
|
|
16246
16246
|
if (y)
|
|
16247
16247
|
return o.deserialize(y);
|
|
16248
16248
|
}).then((y) => {
|
|
@@ -16340,7 +16340,7 @@ const Xr = (e) => (t) => {
|
|
|
16340
16340
|
return y((w = r()) != null ? w : h);
|
|
16341
16341
|
});
|
|
16342
16342
|
const v = ((g = o.onRehydrateStorage) == null ? void 0 : g.call(o, (p = r()) != null ? p : h)) || void 0;
|
|
16343
|
-
return
|
|
16343
|
+
return ei(u.getItem.bind(u))(o.name).then((y) => {
|
|
16344
16344
|
if (y)
|
|
16345
16345
|
if (typeof y.version == "number" && y.version !== o.version) {
|
|
16346
16346
|
if (o.migrate)
|
|
@@ -16385,7 +16385,7 @@ const Xr = (e) => (t) => {
|
|
|
16385
16385
|
l.delete(p);
|
|
16386
16386
|
})
|
|
16387
16387
|
}, o.skipHydration || m(), d || h;
|
|
16388
|
-
}, iI = (e, t) => "getStorage" in t || "serialize" in t || "deserialize" in t ? ((
|
|
16388
|
+
}, iI = (e, t) => "getStorage" in t || "serialize" in t || "deserialize" in t ? ((so ? "production" : void 0) !== "production" && console.warn(
|
|
16389
16389
|
"[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."
|
|
16390
16390
|
), nI(e, t)) : rI(e, t), Go = iI, oI = (e, t) => kn()(
|
|
16391
16391
|
wr(
|
|
@@ -16473,7 +16473,7 @@ const Xr = (e) => (t) => {
|
|
|
16473
16473
|
), js = {}, lI = (e = "bp-webchat", t) => {
|
|
16474
16474
|
const n = `${e}-client`;
|
|
16475
16475
|
return js[n] || (js[n] = aI(n, t)), js[n];
|
|
16476
|
-
},
|
|
16476
|
+
}, ti = kn()(
|
|
16477
16477
|
wr(
|
|
16478
16478
|
(e) => ({
|
|
16479
16479
|
eventEmitter: dh(),
|
|
@@ -16557,7 +16557,7 @@ const Xr = (e) => (t) => {
|
|
|
16557
16557
|
const t = `${e}-sound`;
|
|
16558
16558
|
return qs[t] || (qs[t] = dI(t)), qs[t];
|
|
16559
16559
|
}, pI = ({ text: e, buttonValue: t, variant: n, groupId: r, reusable: i, sendMessage: o, isReadOnly: s, ...a }) => {
|
|
16560
|
-
const l =
|
|
16560
|
+
const l = ti((w) => w.eventEmitter), [u, f] = Te(!1), [c, h] = Te(!1), [d, m] = Te(!1), {
|
|
16561
16561
|
message: {
|
|
16562
16562
|
blocks: { button: p }
|
|
16563
16563
|
}
|
|
@@ -17096,26 +17096,26 @@ function EI(e, t) {
|
|
|
17096
17096
|
function CI(e) {
|
|
17097
17097
|
return Math.round(e * 100) / 100;
|
|
17098
17098
|
}
|
|
17099
|
-
function
|
|
17100
|
-
return
|
|
17099
|
+
function ni(e) {
|
|
17100
|
+
return ri(e).map(Number);
|
|
17101
17101
|
}
|
|
17102
17102
|
function zt(e) {
|
|
17103
|
-
return e[
|
|
17103
|
+
return e[yi(e)];
|
|
17104
17104
|
}
|
|
17105
|
-
function
|
|
17105
|
+
function yi(e) {
|
|
17106
17106
|
return Math.max(0, e.length - 1);
|
|
17107
17107
|
}
|
|
17108
17108
|
function fu(e, t) {
|
|
17109
|
-
return t ===
|
|
17109
|
+
return t === yi(e);
|
|
17110
17110
|
}
|
|
17111
17111
|
function Lf(e, t = 0) {
|
|
17112
17112
|
return Array.from(Array(e), (n, r) => t + r);
|
|
17113
17113
|
}
|
|
17114
|
-
function
|
|
17114
|
+
function ri(e) {
|
|
17115
17115
|
return Object.keys(e);
|
|
17116
17116
|
}
|
|
17117
17117
|
function Km(e, t) {
|
|
17118
|
-
return [e, t].reduce((n, r) => (
|
|
17118
|
+
return [e, t].reduce((n, r) => (ri(r).forEach((i) => {
|
|
17119
17119
|
const o = n[i], s = r[i], a = Pf(o) && Pf(s);
|
|
17120
17120
|
n[i] = a ? Km(o, s) : s;
|
|
17121
17121
|
}), n), {});
|
|
@@ -17145,7 +17145,7 @@ function AI(e, t) {
|
|
|
17145
17145
|
measure: s
|
|
17146
17146
|
};
|
|
17147
17147
|
}
|
|
17148
|
-
function
|
|
17148
|
+
function ii() {
|
|
17149
17149
|
let e = [];
|
|
17150
17150
|
function t(i, o, s, a = {
|
|
17151
17151
|
passive: !0
|
|
@@ -17169,7 +17169,7 @@ function ri() {
|
|
|
17169
17169
|
return r;
|
|
17170
17170
|
}
|
|
17171
17171
|
function TI(e, t, n, r) {
|
|
17172
|
-
const i =
|
|
17172
|
+
const i = ii(), o = 1e3 / 60;
|
|
17173
17173
|
let s = null, a = 0, l = 0;
|
|
17174
17174
|
function u() {
|
|
17175
17175
|
i.add(e, "visibilitychange", () => {
|
|
@@ -17295,7 +17295,7 @@ function OI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, m, p, g, v, y) {
|
|
|
17295
17295
|
direction: C
|
|
17296
17296
|
} = e, S = ["INPUT", "SELECT", "TEXTAREA"], k = {
|
|
17297
17297
|
passive: !1
|
|
17298
|
-
}, I =
|
|
17298
|
+
}, I = ii(), R = ii(), N = Pn(50, 225).constrain(d.measure(20)), A = {
|
|
17299
17299
|
mouse: 300,
|
|
17300
17300
|
touch: 400
|
|
17301
17301
|
}, O = {
|
|
@@ -17619,7 +17619,7 @@ function HI(e, t, n, r, i, o) {
|
|
|
17619
17619
|
return Lf(w);
|
|
17620
17620
|
}
|
|
17621
17621
|
if (y) {
|
|
17622
|
-
const w =
|
|
17622
|
+
const w = yi(o) - zt(g)[0] + 1;
|
|
17623
17623
|
return Lf(w, zt(g)[0]);
|
|
17624
17624
|
}
|
|
17625
17625
|
return m;
|
|
@@ -17781,7 +17781,7 @@ function Qm(e, t) {
|
|
|
17781
17781
|
};
|
|
17782
17782
|
}
|
|
17783
17783
|
function WI(e, t, n, r, i, o, s, a, l) {
|
|
17784
|
-
const f =
|
|
17784
|
+
const f = ni(i), c = ni(i).reverse(), h = v().concat(y());
|
|
17785
17785
|
function d(I, R) {
|
|
17786
17786
|
return I.reduce((N, A) => N - i[A], R);
|
|
17787
17787
|
}
|
|
@@ -17886,7 +17886,7 @@ function YI(e, t, n, r) {
|
|
|
17886
17886
|
a && a.disconnect(), l = !0;
|
|
17887
17887
|
}
|
|
17888
17888
|
function c(m) {
|
|
17889
|
-
return
|
|
17889
|
+
return ri(i).reduce((p, g) => {
|
|
17890
17890
|
const v = parseInt(g), {
|
|
17891
17891
|
isIntersecting: y
|
|
17892
17892
|
} = i[v];
|
|
@@ -17941,11 +17941,11 @@ function GI(e, t, n, r, i, o, s, a, l) {
|
|
|
17941
17941
|
direction: c
|
|
17942
17942
|
} = e, h = uu(n);
|
|
17943
17943
|
function d(v, y) {
|
|
17944
|
-
return
|
|
17944
|
+
return ni(v).filter((w) => w % y === 0).map((w) => v.slice(w, w + y));
|
|
17945
17945
|
}
|
|
17946
17946
|
function m(v) {
|
|
17947
|
-
return v.length ?
|
|
17948
|
-
const S = zt(y) || 0, k = S === 0, I = w ===
|
|
17947
|
+
return v.length ? ni(v).reduce((y, w, C) => {
|
|
17948
|
+
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, $ = Ue(N - O - (R + A));
|
|
17949
17949
|
return C && $ > t + l && y.push(w), I && y.push(v.length), y;
|
|
17950
17950
|
}, []).map((y, w, C) => {
|
|
17951
17951
|
const S = Math.max(C[w - 1] || 0);
|
|
@@ -17990,7 +17990,7 @@ function QI(e, t, n, r, i, o, s) {
|
|
|
17990
17990
|
scrollContainLimit: W
|
|
17991
17991
|
} = _I($, j, x, y, I), G = _ ? q : x, {
|
|
17992
17992
|
limit: J
|
|
17993
|
-
} = FI(j, G, c), ie = Gm(
|
|
17993
|
+
} = FI(j, G, c), ie = Gm(yi(G), f, c), K = ie.clone(), ee = ni(n), F = ({
|
|
17994
17994
|
dragHandler: de,
|
|
17995
17995
|
scrollBody: qe,
|
|
17996
17996
|
scrollBounds: Ge,
|
|
@@ -18009,7 +18009,7 @@ function QI(e, t, n, r, i, o, s) {
|
|
|
18009
18009
|
slideLooper: Qe,
|
|
18010
18010
|
dragHandler: Ct,
|
|
18011
18011
|
animation: lt,
|
|
18012
|
-
eventHandler:
|
|
18012
|
+
eventHandler: Ai,
|
|
18013
18013
|
scrollBounds: mv,
|
|
18014
18014
|
options: {
|
|
18015
18015
|
loop: Lu
|
|
@@ -18018,8 +18018,8 @@ function QI(e, t, n, r, i, o, s) {
|
|
|
18018
18018
|
const Fu = de.settled(), gv = !mv.shouldConstrain(), $u = Lu ? Fu : Fu && gv, Bu = $u && !Ct.pointerDown();
|
|
18019
18019
|
Bu && lt.stop();
|
|
18020
18020
|
const yv = Ge.get() * _u + Et.get() * (1 - _u);
|
|
18021
|
-
et.set(yv), Lu && (Nt.loop(de.direction()), Qe.loop()), qe.to(et.get()), Bu &&
|
|
18022
|
-
}, pe = TI(r, i, () => F(se), (de) => te(se, de)), Ie = 0.68, Z = G[ie.get()], le = $r(Z), fe = $r(Z), ce = $r(Z), Ce = $r(Z), $e = PI(le, ce, fe, Ce, h, Ie), Oe = UI(c, G, j, J, Ce), je = jI(pe, ie, K, $e, Oe, Ce, s), X = BI(J), oe =
|
|
18021
|
+
et.set(yv), Lu && (Nt.loop(de.direction()), Qe.loop()), qe.to(et.get()), Bu && Ai.emit("settle"), $u || Ai.emit("scroll");
|
|
18022
|
+
}, pe = TI(r, i, () => F(se), (de) => te(se, de)), Ie = 0.68, Z = G[ie.get()], le = $r(Z), fe = $r(Z), ce = $r(Z), Ce = $r(Z), $e = PI(le, ce, fe, Ce, h, Ie), Oe = UI(c, G, j, J, Ce), je = jI(pe, ie, K, $e, Oe, Ce, s), X = BI(J), oe = ii(), z = YI(t, n, s, p), {
|
|
18023
18023
|
slideRegistry: Y
|
|
18024
18024
|
} = HI(_, y, G, W, M, ee), re = VI(e, n, Y, je, $e, oe, s, k), se = {
|
|
18025
18025
|
ownerDocument: r,
|
|
@@ -18116,11 +18116,11 @@ function XI(e) {
|
|
|
18116
18116
|
return Km(o, s || {});
|
|
18117
18117
|
}
|
|
18118
18118
|
function n(o) {
|
|
18119
|
-
const s = o.breakpoints || {}, a =
|
|
18119
|
+
const s = o.breakpoints || {}, a = ri(s).filter((l) => e.matchMedia(l).matches).map((l) => s[l]).reduce((l, u) => t(l, u), {});
|
|
18120
18120
|
return t(o, a);
|
|
18121
18121
|
}
|
|
18122
18122
|
function r(o) {
|
|
18123
|
-
return o.map((s) =>
|
|
18123
|
+
return o.map((s) => ri(s.breakpoints || {})).reduce((s, a) => s.concat(a), []).map(e.matchMedia);
|
|
18124
18124
|
}
|
|
18125
18125
|
return {
|
|
18126
18126
|
mergeOptions: t,
|
|
@@ -18145,8 +18145,8 @@ function eO(e) {
|
|
|
18145
18145
|
destroy: r
|
|
18146
18146
|
};
|
|
18147
18147
|
}
|
|
18148
|
-
function
|
|
18149
|
-
const r = e.ownerDocument, i = r.defaultView, o = XI(i), s = eO(o), a =
|
|
18148
|
+
function So(e, t, n) {
|
|
18149
|
+
const r = e.ownerDocument, i = r.defaultView, o = XI(i), s = eO(o), a = ii(), l = ZI(), {
|
|
18150
18150
|
mergeOptions: u,
|
|
18151
18151
|
optionsAtMedia: f,
|
|
18152
18152
|
optionsMediaQueries: c
|
|
@@ -18155,7 +18155,7 @@ function xo(e, t, n) {
|
|
|
18155
18155
|
off: d,
|
|
18156
18156
|
emit: m
|
|
18157
18157
|
} = l, p = O;
|
|
18158
|
-
let g = !1, v, y = u(JI,
|
|
18158
|
+
let g = !1, v, y = u(JI, So.globalOptions), w = u(y), C = [], S, k, I;
|
|
18159
18159
|
function R() {
|
|
18160
18160
|
const {
|
|
18161
18161
|
container: ee,
|
|
@@ -18267,7 +18267,7 @@ function xo(e, t, n) {
|
|
|
18267
18267
|
};
|
|
18268
18268
|
return A(t, n), setTimeout(() => l.emit("init"), 0), K;
|
|
18269
18269
|
}
|
|
18270
|
-
|
|
18270
|
+
So.globalOptions = void 0;
|
|
18271
18271
|
function du(e = {}, t = []) {
|
|
18272
18272
|
const n = Se(e), r = Se(t), [i, o] = Te(), [s, a] = Te(), l = Me(() => {
|
|
18273
18273
|
i && i.reInit(n.current, r.current);
|
|
@@ -18278,8 +18278,8 @@ function du(e = {}, t = []) {
|
|
|
18278
18278
|
kI(r.current, t) || (r.current = t, l());
|
|
18279
18279
|
}, [t, l]), _e(() => {
|
|
18280
18280
|
if (SI() && s) {
|
|
18281
|
-
|
|
18282
|
-
const u =
|
|
18281
|
+
So.globalOptions = du.globalOptions;
|
|
18282
|
+
const u = So(s, n.current, r.current);
|
|
18283
18283
|
return o(u), () => u.destroy();
|
|
18284
18284
|
} else
|
|
18285
18285
|
o(void 0);
|
|
@@ -18325,7 +18325,7 @@ const _f = Math.floor;
|
|
|
18325
18325
|
function Jm(e) {
|
|
18326
18326
|
return Xm(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
18327
18327
|
}
|
|
18328
|
-
function
|
|
18328
|
+
function vi(e) {
|
|
18329
18329
|
var t;
|
|
18330
18330
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
18331
18331
|
}
|
|
@@ -18334,22 +18334,22 @@ function tO(e) {
|
|
|
18334
18334
|
return (t = (Xm(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
18335
18335
|
}
|
|
18336
18336
|
function Xm(e) {
|
|
18337
|
-
return e instanceof Node || e instanceof
|
|
18337
|
+
return e instanceof Node || e instanceof vi(e).Node;
|
|
18338
18338
|
}
|
|
18339
18339
|
function Ot(e) {
|
|
18340
|
-
return e instanceof Element || e instanceof
|
|
18340
|
+
return e instanceof Element || e instanceof vi(e).Element;
|
|
18341
18341
|
}
|
|
18342
18342
|
function lr(e) {
|
|
18343
|
-
return e instanceof HTMLElement || e instanceof
|
|
18343
|
+
return e instanceof HTMLElement || e instanceof vi(e).HTMLElement;
|
|
18344
18344
|
}
|
|
18345
18345
|
function Ja(e) {
|
|
18346
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
18346
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof vi(e).ShadowRoot;
|
|
18347
18347
|
}
|
|
18348
18348
|
function nO(e) {
|
|
18349
18349
|
return ["html", "body", "#document"].includes(Jm(e));
|
|
18350
18350
|
}
|
|
18351
18351
|
function rO(e) {
|
|
18352
|
-
return
|
|
18352
|
+
return vi(e).getComputedStyle(e);
|
|
18353
18353
|
}
|
|
18354
18354
|
function iO(e) {
|
|
18355
18355
|
if (Jm(e) === "html")
|
|
@@ -18447,7 +18447,7 @@ function og(e) {
|
|
|
18447
18447
|
function nt(e) {
|
|
18448
18448
|
e.preventDefault(), e.stopPropagation();
|
|
18449
18449
|
}
|
|
18450
|
-
const ur = Math.min, wt = Math.max,
|
|
18450
|
+
const ur = Math.min, wt = Math.max, ko = Math.round, Bi = Math.floor, Kt = (e) => ({
|
|
18451
18451
|
x: e,
|
|
18452
18452
|
y: e
|
|
18453
18453
|
});
|
|
@@ -18457,7 +18457,7 @@ function $f(e, t, n) {
|
|
|
18457
18457
|
function Zo(e, t) {
|
|
18458
18458
|
return typeof e == "function" ? e(t) : e;
|
|
18459
18459
|
}
|
|
18460
|
-
function
|
|
18460
|
+
function bi(e) {
|
|
18461
18461
|
return e.split("-")[0];
|
|
18462
18462
|
}
|
|
18463
18463
|
function hu(e) {
|
|
@@ -18470,11 +18470,11 @@ function cO(e) {
|
|
|
18470
18470
|
return e === "y" ? "height" : "width";
|
|
18471
18471
|
}
|
|
18472
18472
|
const fO = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
18473
|
-
function
|
|
18474
|
-
return fO.has(
|
|
18473
|
+
function wi(e) {
|
|
18474
|
+
return fO.has(bi(e)) ? "y" : "x";
|
|
18475
18475
|
}
|
|
18476
18476
|
function dO(e) {
|
|
18477
|
-
return sg(
|
|
18477
|
+
return sg(wi(e));
|
|
18478
18478
|
}
|
|
18479
18479
|
function hO(e) {
|
|
18480
18480
|
return {
|
|
@@ -18493,7 +18493,7 @@ function pO(e) {
|
|
|
18493
18493
|
left: e
|
|
18494
18494
|
};
|
|
18495
18495
|
}
|
|
18496
|
-
function
|
|
18496
|
+
function Eo(e) {
|
|
18497
18497
|
const {
|
|
18498
18498
|
x: t,
|
|
18499
18499
|
y: n,
|
|
@@ -18516,7 +18516,7 @@ function Bf(e, t, n) {
|
|
|
18516
18516
|
reference: r,
|
|
18517
18517
|
floating: i
|
|
18518
18518
|
} = e;
|
|
18519
|
-
const o =
|
|
18519
|
+
const o = wi(t), s = dO(t), a = cO(s), l = bi(t), u = o === "y", f = r.x + r.width / 2 - i.width / 2, c = r.y + r.height / 2 - i.height / 2, h = r[a] / 2 - i[a] / 2;
|
|
18520
18520
|
let d;
|
|
18521
18521
|
switch (l) {
|
|
18522
18522
|
case "top":
|
|
@@ -18636,7 +18636,7 @@ async function ag(e, t) {
|
|
|
18636
18636
|
elementContext: c = "floating",
|
|
18637
18637
|
altBoundary: h = !1,
|
|
18638
18638
|
padding: d = 0
|
|
18639
|
-
} = Zo(t, e), m = pO(d), g = a[h ? c === "floating" ? "reference" : "floating" : c], v =
|
|
18639
|
+
} = Zo(t, e), m = pO(d), g = a[h ? c === "floating" ? "reference" : "floating" : c], v = Eo(await o.getClippingRect({
|
|
18640
18640
|
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)),
|
|
18641
18641
|
boundary: u,
|
|
18642
18642
|
rootBoundary: f,
|
|
@@ -18652,7 +18652,7 @@ async function ag(e, t) {
|
|
|
18652
18652
|
} : {
|
|
18653
18653
|
x: 1,
|
|
18654
18654
|
y: 1
|
|
18655
|
-
}, S =
|
|
18655
|
+
}, S = Eo(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
18656
18656
|
elements: a,
|
|
18657
18657
|
rect: y,
|
|
18658
18658
|
offsetParent: w,
|
|
@@ -18671,7 +18671,7 @@ async function yO(e, t) {
|
|
|
18671
18671
|
placement: n,
|
|
18672
18672
|
platform: r,
|
|
18673
18673
|
elements: i
|
|
18674
|
-
} = e, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s =
|
|
18674
|
+
} = e, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = bi(n), a = hu(n), l = wi(n) === "y", u = gO.has(s) ? -1 : 1, f = o && l ? -1 : 1, c = Zo(t, e);
|
|
18675
18675
|
let {
|
|
18676
18676
|
mainAxis: h,
|
|
18677
18677
|
crossAxis: d,
|
|
@@ -18743,7 +18743,7 @@ const vO = function(e) {
|
|
|
18743
18743
|
} = Zo(e, t), u = {
|
|
18744
18744
|
x: n,
|
|
18745
18745
|
y: r
|
|
18746
|
-
}, f = await ag(t, l), c = bi(
|
|
18746
|
+
}, f = await ag(t, l), c = wi(bi(i)), h = sg(c);
|
|
18747
18747
|
let d = u[h], m = u[c];
|
|
18748
18748
|
if (o) {
|
|
18749
18749
|
const g = h === "y" ? "top" : "left", v = h === "y" ? "bottom" : "right", y = d + f[g], w = d - f[v];
|
|
@@ -18786,7 +18786,7 @@ const vO = function(e) {
|
|
|
18786
18786
|
apply: l = () => {
|
|
18787
18787
|
},
|
|
18788
18788
|
...u
|
|
18789
|
-
} = Zo(e, t), f = await ag(t, u), c =
|
|
18789
|
+
} = Zo(e, t), f = await ag(t, u), c = bi(i), h = hu(i), d = wi(i) === "y", {
|
|
18790
18790
|
width: m,
|
|
18791
18791
|
height: p
|
|
18792
18792
|
} = o.floating;
|
|
@@ -18839,7 +18839,7 @@ function zf(e) {
|
|
|
18839
18839
|
return !Jo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof kt(e).ShadowRoot;
|
|
18840
18840
|
}
|
|
18841
18841
|
const xO = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
18842
|
-
function
|
|
18842
|
+
function xi(e) {
|
|
18843
18843
|
const {
|
|
18844
18844
|
overflow: t,
|
|
18845
18845
|
overflowX: n,
|
|
@@ -18911,7 +18911,7 @@ function bn(e) {
|
|
|
18911
18911
|
}
|
|
18912
18912
|
function ug(e) {
|
|
18913
18913
|
const t = bn(e);
|
|
18914
|
-
return cr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Gt(t) &&
|
|
18914
|
+
return cr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Gt(t) && xi(t) ? t : ug(t);
|
|
18915
18915
|
}
|
|
18916
18916
|
function mn(e, t, n) {
|
|
18917
18917
|
var r;
|
|
@@ -18919,7 +18919,7 @@ function mn(e, t, n) {
|
|
|
18919
18919
|
const i = ug(e), o = i === ((r = e.ownerDocument) == null ? void 0 : r.body), s = kt(i);
|
|
18920
18920
|
if (o) {
|
|
18921
18921
|
const a = Xa(s);
|
|
18922
|
-
return t.concat(s, s.visualViewport || [],
|
|
18922
|
+
return t.concat(s, s.visualViewport || [], xi(i) ? i : [], a && n ? mn(a) : []);
|
|
18923
18923
|
}
|
|
18924
18924
|
return t.concat(i, mn(i, [], n));
|
|
18925
18925
|
}
|
|
@@ -18929,7 +18929,7 @@ function Xa(e) {
|
|
|
18929
18929
|
function cg(e) {
|
|
18930
18930
|
const t = jt(e);
|
|
18931
18931
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
18932
|
-
const i = Gt(e), o = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, a =
|
|
18932
|
+
const i = Gt(e), o = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, a = ko(n) !== o || ko(r) !== s;
|
|
18933
18933
|
return a && (n = o, r = s), {
|
|
18934
18934
|
width: n,
|
|
18935
18935
|
height: r,
|
|
@@ -18948,7 +18948,7 @@ function Xn(e) {
|
|
|
18948
18948
|
height: i,
|
|
18949
18949
|
$: o
|
|
18950
18950
|
} = cg(t);
|
|
18951
|
-
let s = (o ?
|
|
18951
|
+
let s = (o ? ko(n.width) : n.width) / r, a = (o ? ko(n.height) : n.height) / i;
|
|
18952
18952
|
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
18953
18953
|
x: s,
|
|
18954
18954
|
y: a
|
|
@@ -18980,7 +18980,7 @@ function Ln(e, t, n, r) {
|
|
|
18980
18980
|
l *= g.x, u *= g.y, f *= g.x, c *= g.y, l += w, u += C, m = kt(p), p = Xa(m);
|
|
18981
18981
|
}
|
|
18982
18982
|
}
|
|
18983
|
-
return
|
|
18983
|
+
return Eo({
|
|
18984
18984
|
width: f,
|
|
18985
18985
|
height: c,
|
|
18986
18986
|
x: l,
|
|
@@ -19013,7 +19013,7 @@ function MO(e) {
|
|
|
19013
19013
|
scrollTop: 0
|
|
19014
19014
|
}, u = Kt(1);
|
|
19015
19015
|
const f = Kt(0), c = Gt(r);
|
|
19016
|
-
if ((c || !c && !o) && ((kr(r) !== "body" ||
|
|
19016
|
+
if ((c || !c && !o) && ((kr(r) !== "body" || xi(s)) && (l = es(r)), Gt(r))) {
|
|
19017
19017
|
const d = Ln(r);
|
|
19018
19018
|
u = Xn(r), f.x = d.x + r.clientLeft, f.y = d.y + r.clientTop;
|
|
19019
19019
|
}
|
|
@@ -19087,7 +19087,7 @@ function Uf(e, t, n) {
|
|
|
19087
19087
|
height: t.height
|
|
19088
19088
|
};
|
|
19089
19089
|
}
|
|
19090
|
-
return
|
|
19090
|
+
return Eo(r);
|
|
19091
19091
|
}
|
|
19092
19092
|
function hg(e, t) {
|
|
19093
19093
|
const n = bn(e);
|
|
@@ -19102,7 +19102,7 @@ function $O(e, t) {
|
|
|
19102
19102
|
let s = o ? bn(e) : e;
|
|
19103
19103
|
for (; Ut(s) && !cr(s); ) {
|
|
19104
19104
|
const a = jt(s), l = pu(s);
|
|
19105
|
-
!l && a.position === "fixed" && (i = null), (o ? !l && !i : !l && a.position === "static" && !!i && _O.has(i.position) ||
|
|
19105
|
+
!l && a.position === "fixed" && (i = null), (o ? !l && !i : !l && a.position === "static" && !!i && _O.has(i.position) || xi(s) && !l && hg(e, s)) ? r = r.filter((f) => f !== s) : i = a, s = bn(s);
|
|
19106
19106
|
}
|
|
19107
19107
|
return t.set(e, r), r;
|
|
19108
19108
|
}
|
|
@@ -19145,7 +19145,7 @@ function HO(e, t, n) {
|
|
|
19145
19145
|
l.x = ts(i);
|
|
19146
19146
|
}
|
|
19147
19147
|
if (r || !r && !o)
|
|
19148
|
-
if ((kr(t) !== "body" ||
|
|
19148
|
+
if ((kr(t) !== "body" || xi(i)) && (a = es(t)), r) {
|
|
19149
19149
|
const d = Ln(t, !0, o, t);
|
|
19150
19150
|
l.x = d.x + t.clientLeft, l.y = d.y + t.clientTop;
|
|
19151
19151
|
} else i && u();
|
|
@@ -19234,7 +19234,7 @@ function WO(e, t) {
|
|
|
19234
19234
|
} = u;
|
|
19235
19235
|
if (a || t(), !h || !d)
|
|
19236
19236
|
return;
|
|
19237
|
-
const m =
|
|
19237
|
+
const m = Bi(c), p = Bi(i.clientWidth - (f + h)), g = Bi(i.clientHeight - (c + d)), v = Bi(f), w = {
|
|
19238
19238
|
rootMargin: -m + "px " + -p + "px " + -g + "px " + -v + "px",
|
|
19239
19239
|
threshold: wt(0, ur(1, l)) || 1
|
|
19240
19240
|
};
|
|
@@ -19313,8 +19313,8 @@ const YO = vO, KO = bO, GO = wO, QO = (e, t, n) => {
|
|
|
19313
19313
|
});
|
|
19314
19314
|
};
|
|
19315
19315
|
var ZO = typeof document < "u", JO = function() {
|
|
19316
|
-
},
|
|
19317
|
-
function
|
|
19316
|
+
}, ao = ZO ? hr : JO;
|
|
19317
|
+
function Co(e, t) {
|
|
19318
19318
|
if (e === t)
|
|
19319
19319
|
return !0;
|
|
19320
19320
|
if (typeof e != typeof t)
|
|
@@ -19326,7 +19326,7 @@ function Eo(e, t) {
|
|
|
19326
19326
|
if (Array.isArray(e)) {
|
|
19327
19327
|
if (n = e.length, n !== t.length) return !1;
|
|
19328
19328
|
for (r = n; r-- !== 0; )
|
|
19329
|
-
if (!
|
|
19329
|
+
if (!Co(e[r], t[r]))
|
|
19330
19330
|
return !1;
|
|
19331
19331
|
return !0;
|
|
19332
19332
|
}
|
|
@@ -19337,7 +19337,7 @@ function Eo(e, t) {
|
|
|
19337
19337
|
return !1;
|
|
19338
19338
|
for (r = n; r-- !== 0; ) {
|
|
19339
19339
|
const o = i[r];
|
|
19340
|
-
if (!(o === "_owner" && e.$$typeof) && !
|
|
19340
|
+
if (!(o === "_owner" && e.$$typeof) && !Co(e[o], t[o]))
|
|
19341
19341
|
return !1;
|
|
19342
19342
|
}
|
|
19343
19343
|
return !0;
|
|
@@ -19353,7 +19353,7 @@ function Vf(e, t) {
|
|
|
19353
19353
|
}
|
|
19354
19354
|
function Gs(e) {
|
|
19355
19355
|
const t = E.useRef(e);
|
|
19356
|
-
return
|
|
19356
|
+
return ao(() => {
|
|
19357
19357
|
t.current = e;
|
|
19358
19358
|
}), t;
|
|
19359
19359
|
}
|
|
@@ -19379,7 +19379,7 @@ function XO(e) {
|
|
|
19379
19379
|
middlewareData: {},
|
|
19380
19380
|
isPositioned: !1
|
|
19381
19381
|
}), [h, d] = E.useState(r);
|
|
19382
|
-
|
|
19382
|
+
Co(h, r) || d(r);
|
|
19383
19383
|
const [m, p] = E.useState(null), [g, v] = E.useState(null), y = E.useCallback((B) => {
|
|
19384
19384
|
B !== k.current && (k.current = B, p(B));
|
|
19385
19385
|
}, []), w = E.useCallback((B) => {
|
|
@@ -19401,21 +19401,21 @@ function XO(e) {
|
|
|
19401
19401
|
// setting it to `true` when `open === false` (must be specified).
|
|
19402
19402
|
isPositioned: $.current !== !1
|
|
19403
19403
|
};
|
|
19404
|
-
L.current && !
|
|
19404
|
+
L.current && !Co(R.current, b) && (R.current = b, rh.flushSync(() => {
|
|
19405
19405
|
c(b);
|
|
19406
19406
|
}));
|
|
19407
19407
|
});
|
|
19408
19408
|
}, [h, t, n, O, $]);
|
|
19409
|
-
|
|
19409
|
+
ao(() => {
|
|
19410
19410
|
u === !1 && R.current.isPositioned && (R.current.isPositioned = !1, c((B) => ({
|
|
19411
19411
|
...B,
|
|
19412
19412
|
isPositioned: !1
|
|
19413
19413
|
})));
|
|
19414
19414
|
}, [u]);
|
|
19415
19415
|
const L = E.useRef(!1);
|
|
19416
|
-
|
|
19416
|
+
ao(() => (L.current = !0, () => {
|
|
19417
19417
|
L.current = !1;
|
|
19418
|
-
}), []),
|
|
19418
|
+
}), []), ao(() => {
|
|
19419
19419
|
if (C && (k.current = C), S && (I.current = S), C && S) {
|
|
19420
19420
|
if (A.current)
|
|
19421
19421
|
return A.current(C, S, P);
|
|
@@ -19473,29 +19473,29 @@ const eR = (e, t) => ({
|
|
|
19473
19473
|
* tabbable 6.3.0
|
|
19474
19474
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
19475
19475
|
*/
|
|
19476
|
-
var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], el = /* @__PURE__ */ rR.join(","), yg = typeof Element > "u",
|
|
19477
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
19476
|
+
var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], el = /* @__PURE__ */ rR.join(","), yg = typeof Element > "u", oi = yg ? function() {
|
|
19477
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ao = !yg && Element.prototype.getRootNode ? function(e) {
|
|
19478
19478
|
var t;
|
|
19479
19479
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
19480
19480
|
} : function(e) {
|
|
19481
19481
|
return e == null ? void 0 : e.ownerDocument;
|
|
19482
|
-
},
|
|
19482
|
+
}, si = function(t, n) {
|
|
19483
19483
|
var r;
|
|
19484
19484
|
n === void 0 && (n = !0);
|
|
19485
|
-
var i = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), o = i === "" || i === "true", s = o || n && t &&
|
|
19485
|
+
var i = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), o = i === "" || i === "true", s = o || n && t && si(t.parentNode);
|
|
19486
19486
|
return s;
|
|
19487
19487
|
}, iR = function(t) {
|
|
19488
19488
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
19489
19489
|
return r === "" || r === "true";
|
|
19490
19490
|
}, oR = function(t, n, r) {
|
|
19491
|
-
if (
|
|
19491
|
+
if (si(t))
|
|
19492
19492
|
return [];
|
|
19493
19493
|
var i = Array.prototype.slice.apply(t.querySelectorAll(el));
|
|
19494
|
-
return n &&
|
|
19494
|
+
return n && oi.call(t, el) && i.unshift(t), i = i.filter(r), i;
|
|
19495
19495
|
}, tl = function(t, n, r) {
|
|
19496
19496
|
for (var i = [], o = Array.from(t); o.length; ) {
|
|
19497
19497
|
var s = o.shift();
|
|
19498
|
-
if (!
|
|
19498
|
+
if (!si(s, !1))
|
|
19499
19499
|
if (s.tagName === "SLOT") {
|
|
19500
19500
|
var a = s.assignedElements(), l = a.length ? a : s.children, u = tl(l, !0, r);
|
|
19501
19501
|
r.flatten ? i.push.apply(i, u) : i.push({
|
|
@@ -19503,10 +19503,10 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19503
19503
|
candidates: u
|
|
19504
19504
|
});
|
|
19505
19505
|
} else {
|
|
19506
|
-
var f =
|
|
19506
|
+
var f = oi.call(s, el);
|
|
19507
19507
|
f && r.filter(s) && (n || !t.includes(s)) && i.push(s);
|
|
19508
19508
|
var c = s.shadowRoot || // check for an undisclosed shadow
|
|
19509
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(s), h = !
|
|
19509
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(s), h = !si(c, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
|
|
19510
19510
|
if (c && h) {
|
|
19511
19511
|
var d = tl(c === !0 ? s.children : c.children, !0, r);
|
|
19512
19512
|
r.flatten ? i.push.apply(i, d) : i.push({
|
|
@@ -19545,7 +19545,7 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19545
19545
|
}, fR = function(t) {
|
|
19546
19546
|
if (!t.name)
|
|
19547
19547
|
return !0;
|
|
19548
|
-
var n = t.form ||
|
|
19548
|
+
var n = t.form || Ao(t), r = function(a) {
|
|
19549
19549
|
return n.querySelectorAll('input[type="radio"][name="' + a + '"]');
|
|
19550
19550
|
}, i;
|
|
19551
19551
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
@@ -19563,12 +19563,12 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19563
19563
|
}, hR = function(t) {
|
|
19564
19564
|
return dR(t) && !fR(t);
|
|
19565
19565
|
}, pR = function(t) {
|
|
19566
|
-
var n, r = t &&
|
|
19566
|
+
var n, r = t && Ao(t), i = (n = r) === null || n === void 0 ? void 0 : n.host, o = !1;
|
|
19567
19567
|
if (r && r !== t) {
|
|
19568
19568
|
var s, a, l;
|
|
19569
19569
|
for (o = !!((s = i) !== null && s !== void 0 && (a = s.ownerDocument) !== null && a !== void 0 && a.contains(i) || t != null && (l = t.ownerDocument) !== null && l !== void 0 && l.contains(t)); !o && i; ) {
|
|
19570
19570
|
var u, f, c;
|
|
19571
|
-
r =
|
|
19571
|
+
r = Ao(i), i = (u = r) === null || u === void 0 ? void 0 : u.host, o = !!((f = i) !== null && f !== void 0 && (c = f.ownerDocument) !== null && c !== void 0 && c.contains(i));
|
|
19572
19572
|
}
|
|
19573
19573
|
}
|
|
19574
19574
|
return o;
|
|
@@ -19595,15 +19595,15 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19595
19595
|
}
|
|
19596
19596
|
if (getComputedStyle(t).visibility === "hidden")
|
|
19597
19597
|
return !0;
|
|
19598
|
-
var s =
|
|
19599
|
-
if (
|
|
19598
|
+
var s = oi.call(t, "details>summary:first-of-type"), a = s ? t.parentElement : t;
|
|
19599
|
+
if (oi.call(a, "details:not([open]) *"))
|
|
19600
19600
|
return !0;
|
|
19601
19601
|
if (!r || r === "full" || // full-native can run this branch when it falls through in case
|
|
19602
19602
|
// Element#checkVisibility is unsupported
|
|
19603
19603
|
r === "full-native" || r === "legacy-full") {
|
|
19604
19604
|
if (typeof i == "function") {
|
|
19605
19605
|
for (var l = t; t; ) {
|
|
19606
|
-
var u = t.parentElement, f =
|
|
19606
|
+
var u = t.parentElement, f = Ao(t);
|
|
19607
19607
|
if (u && !u.shadowRoot && i(u) === !0)
|
|
19608
19608
|
return Wf(t);
|
|
19609
19609
|
t.assignedSlot ? t = t.assignedSlot : !u && f !== t.ownerDocument ? t = f.host : t = u;
|
|
@@ -19624,7 +19624,7 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19624
19624
|
for (var r = 0; r < n.children.length; r++) {
|
|
19625
19625
|
var i = n.children.item(r);
|
|
19626
19626
|
if (i.tagName === "LEGEND")
|
|
19627
|
-
return
|
|
19627
|
+
return oi.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
|
|
19628
19628
|
}
|
|
19629
19629
|
return !0;
|
|
19630
19630
|
}
|
|
@@ -19635,7 +19635,7 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19635
19635
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
19636
19636
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
19637
19637
|
// note related to `candidateSelectors`)
|
|
19638
|
-
|
|
19638
|
+
si(n) || lR(n) || mR(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
19639
19639
|
uR(n) || gR(n));
|
|
19640
19640
|
}, qf = function(t, n) {
|
|
19641
19641
|
return !(hR(n) || bg(n) < 0 || !yR(t, n));
|
|
@@ -19666,8 +19666,8 @@ var rR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
19666
19666
|
shadowRootFilter: vR
|
|
19667
19667
|
}) : r = oR(t, n.includeContainer, qf.bind(null, n)), xg(r);
|
|
19668
19668
|
};
|
|
19669
|
-
const vu = "ArrowUp", ns = "ArrowDown", fr = "ArrowLeft",
|
|
19670
|
-
function
|
|
19669
|
+
const vu = "ArrowUp", ns = "ArrowDown", fr = "ArrowLeft", Si = "ArrowRight";
|
|
19670
|
+
function zi(e, t, n) {
|
|
19671
19671
|
return Math.floor(e / t) !== n;
|
|
19672
19672
|
}
|
|
19673
19673
|
function Yr(e, t) {
|
|
@@ -19736,20 +19736,20 @@ function bR(e, t) {
|
|
|
19736
19736
|
disabledIndices: s
|
|
19737
19737
|
}))), Yr(e, c) && (c = u)), r === "both") {
|
|
19738
19738
|
const h = _f(u / o);
|
|
19739
|
-
n.key ===
|
|
19739
|
+
n.key === Si && (f && nt(n), u % o !== o - 1 ? (c = it(e, {
|
|
19740
19740
|
startingIndex: u,
|
|
19741
19741
|
disabledIndices: s
|
|
19742
|
-
}), i &&
|
|
19742
|
+
}), i && zi(c, o, h) && (c = it(e, {
|
|
19743
19743
|
startingIndex: u - u % o - 1,
|
|
19744
19744
|
disabledIndices: s
|
|
19745
19745
|
}))) : i && (c = it(e, {
|
|
19746
19746
|
startingIndex: u - u % o - 1,
|
|
19747
19747
|
disabledIndices: s
|
|
19748
|
-
})),
|
|
19748
|
+
})), zi(c, o, h) && (c = u)), n.key === fr && (f && nt(n), u % o !== 0 ? (c = it(e, {
|
|
19749
19749
|
startingIndex: u,
|
|
19750
19750
|
disabledIndices: s,
|
|
19751
19751
|
decrement: !0
|
|
19752
|
-
}), i &&
|
|
19752
|
+
}), i && zi(c, o, h) && (c = it(e, {
|
|
19753
19753
|
startingIndex: u + (o - u % o),
|
|
19754
19754
|
decrement: !0,
|
|
19755
19755
|
disabledIndices: s
|
|
@@ -19757,7 +19757,7 @@ function bR(e, t) {
|
|
|
19757
19757
|
startingIndex: u + (o - u % o),
|
|
19758
19758
|
decrement: !0,
|
|
19759
19759
|
disabledIndices: s
|
|
19760
|
-
})),
|
|
19760
|
+
})), zi(c, o, h) && (c = u));
|
|
19761
19761
|
const d = _f(l / o) === h;
|
|
19762
19762
|
Yr(e, c) && (i && d ? c = n.key === fr ? l : it(e, {
|
|
19763
19763
|
startingIndex: u - u % o - 1,
|
|
@@ -19781,15 +19781,15 @@ function en(e, t) {
|
|
|
19781
19781
|
i ? o() : Kf = requestAnimationFrame(o);
|
|
19782
19782
|
}
|
|
19783
19783
|
var Xe = typeof document < "u" ? hr : _e;
|
|
19784
|
-
function
|
|
19785
|
-
return
|
|
19784
|
+
function To() {
|
|
19785
|
+
return To = Object.assign ? Object.assign.bind() : function(e) {
|
|
19786
19786
|
for (var t = 1; t < arguments.length; t++) {
|
|
19787
19787
|
var n = arguments[t];
|
|
19788
19788
|
for (var r in n)
|
|
19789
19789
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
19790
19790
|
}
|
|
19791
19791
|
return e;
|
|
19792
|
-
},
|
|
19792
|
+
}, To.apply(this, arguments);
|
|
19793
19793
|
}
|
|
19794
19794
|
let Zs = !1, wR = 0;
|
|
19795
19795
|
const Gf = () => "floating-ui-" + wR++;
|
|
@@ -19822,7 +19822,7 @@ const ER = /* @__PURE__ */ E.createContext(null), CR = /* @__PURE__ */ E.createC
|
|
|
19822
19822
|
var e;
|
|
19823
19823
|
return ((e = E.useContext(ER)) == null ? void 0 : e.id) || null;
|
|
19824
19824
|
}, rs = () => E.useContext(CR);
|
|
19825
|
-
function
|
|
19825
|
+
function ai(e) {
|
|
19826
19826
|
return "data-floating-ui-" + e;
|
|
19827
19827
|
}
|
|
19828
19828
|
function gn(e) {
|
|
@@ -19864,7 +19864,7 @@ function TR(e, t) {
|
|
|
19864
19864
|
}
|
|
19865
19865
|
return i(t, 0), e.find((o) => o.id === n);
|
|
19866
19866
|
}
|
|
19867
|
-
let Un = /* @__PURE__ */ new WeakMap(),
|
|
19867
|
+
let Un = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakSet(), Ui = {}, Js = 0;
|
|
19868
19868
|
const IR = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, kg = (e) => e && (e.host || kg(e.parentNode)), OR = (e, t) => t.map((n) => {
|
|
19869
19869
|
if (e.contains(n))
|
|
19870
19870
|
return n;
|
|
@@ -19873,8 +19873,8 @@ const IR = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, k
|
|
|
19873
19873
|
}).filter((n) => n != null);
|
|
19874
19874
|
function RR(e, t, n, r) {
|
|
19875
19875
|
const i = "data-floating-ui-inert", o = r ? "inert" : n ? "aria-hidden" : null, s = OR(t, e), a = /* @__PURE__ */ new Set(), l = new Set(s), u = [];
|
|
19876
|
-
|
|
19877
|
-
const f =
|
|
19876
|
+
Ui[i] || (Ui[i] = /* @__PURE__ */ new WeakMap());
|
|
19877
|
+
const f = Ui[i];
|
|
19878
19878
|
s.forEach(c), h(t), a.clear();
|
|
19879
19879
|
function c(d) {
|
|
19880
19880
|
!d || a.has(d) || (a.add(d), d.parentNode && c(d.parentNode));
|
|
@@ -19885,15 +19885,15 @@ function RR(e, t, n, r) {
|
|
|
19885
19885
|
h(m);
|
|
19886
19886
|
else {
|
|
19887
19887
|
const p = o ? m.getAttribute(o) : null, g = p !== null && p !== "false", v = (Un.get(m) || 0) + 1, y = (f.get(m) || 0) + 1;
|
|
19888
|
-
Un.set(m, v), f.set(m, y), u.push(m), v === 1 && g &&
|
|
19888
|
+
Un.set(m, v), f.set(m, y), u.push(m), v === 1 && g && Hi.add(m), y === 1 && m.setAttribute(i, ""), !g && o && m.setAttribute(o, "true");
|
|
19889
19889
|
}
|
|
19890
19890
|
});
|
|
19891
19891
|
}
|
|
19892
19892
|
return Js++, () => {
|
|
19893
19893
|
u.forEach((d) => {
|
|
19894
19894
|
const m = (Un.get(d) || 0) - 1, p = (f.get(d) || 0) - 1;
|
|
19895
|
-
Un.set(d, m), f.set(d, p), m || (!
|
|
19896
|
-
}), Js--, Js || (Un = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(),
|
|
19895
|
+
Un.set(d, m), f.set(d, p), m || (!Hi.has(d) && o && d.removeAttribute(o), Hi.delete(d)), p || d.removeAttribute(i);
|
|
19896
|
+
}), Js--, Js || (Un = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakSet(), Ui = {});
|
|
19897
19897
|
};
|
|
19898
19898
|
}
|
|
19899
19899
|
function Qf(e, t, n) {
|
|
@@ -19954,7 +19954,7 @@ let NR;
|
|
|
19954
19954
|
function Zf(e) {
|
|
19955
19955
|
e.key === "Tab" && (e.target, clearTimeout(NR));
|
|
19956
19956
|
}
|
|
19957
|
-
const
|
|
19957
|
+
const Io = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
19958
19958
|
const [r, i] = E.useState();
|
|
19959
19959
|
Xe(() => (rg() && i("button"), document.addEventListener("keydown", Zf), () => {
|
|
19960
19960
|
document.removeEventListener("keydown", Zf);
|
|
@@ -19965,10 +19965,10 @@ const To = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
|
19965
19965
|
// Role is only for VoiceOver
|
|
19966
19966
|
role: r,
|
|
19967
19967
|
"aria-hidden": r ? void 0 : !0,
|
|
19968
|
-
[
|
|
19968
|
+
[ai("focus-guard")]: "",
|
|
19969
19969
|
style: xu
|
|
19970
19970
|
};
|
|
19971
|
-
return /* @__PURE__ */ E.createElement("span",
|
|
19971
|
+
return /* @__PURE__ */ E.createElement("span", To({}, t, o));
|
|
19972
19972
|
}), Tg = /* @__PURE__ */ E.createContext(null);
|
|
19973
19973
|
function PR(e) {
|
|
19974
19974
|
let {
|
|
@@ -19991,7 +19991,7 @@ function PR(e) {
|
|
|
19991
19991
|
root: f,
|
|
19992
19992
|
portalContext: c,
|
|
19993
19993
|
uniqueId: h
|
|
19994
|
-
} = a, d = u ? document.getElementById(u) : null, m =
|
|
19994
|
+
} = a, d = u ? document.getElementById(u) : null, m = ai("portal");
|
|
19995
19995
|
if (d) {
|
|
19996
19996
|
const p = document.createElement("div");
|
|
19997
19997
|
p.id = h, p.setAttribute(m, ""), d.appendChild(p), i(p);
|
|
@@ -20041,7 +20041,7 @@ function LR(e) {
|
|
|
20041
20041
|
portalNode: o,
|
|
20042
20042
|
setFocusManagerState: a
|
|
20043
20043
|
}), [i, o])
|
|
20044
|
-
}, h && o && /* @__PURE__ */ E.createElement(
|
|
20044
|
+
}, h && o && /* @__PURE__ */ E.createElement(Io, {
|
|
20045
20045
|
"data-type": "outside",
|
|
20046
20046
|
ref: l,
|
|
20047
20047
|
onFocus: (d) => {
|
|
@@ -20056,7 +20056,7 @@ function LR(e) {
|
|
|
20056
20056
|
}), h && o && /* @__PURE__ */ E.createElement("span", {
|
|
20057
20057
|
"aria-owns": o.id,
|
|
20058
20058
|
style: xu
|
|
20059
|
-
}), o && /* @__PURE__ */ kv(t, o), h && o && /* @__PURE__ */ E.createElement(
|
|
20059
|
+
}), o && /* @__PURE__ */ kv(t, o), h && o && /* @__PURE__ */ E.createElement(Io, {
|
|
20060
20060
|
"data-type": "outside",
|
|
20061
20061
|
ref: u,
|
|
20062
20062
|
onFocus: (d) => {
|
|
@@ -20071,7 +20071,7 @@ function LR(e) {
|
|
|
20071
20071
|
}));
|
|
20072
20072
|
}
|
|
20073
20073
|
const Ig = () => E.useContext(Tg), _R = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
20074
|
-
return /* @__PURE__ */ E.createElement("button",
|
|
20074
|
+
return /* @__PURE__ */ E.createElement("button", To({}, t, {
|
|
20075
20075
|
type: "button",
|
|
20076
20076
|
ref: n,
|
|
20077
20077
|
tabIndex: -1,
|
|
@@ -20130,7 +20130,7 @@ function FR(e) {
|
|
|
20130
20130
|
function U(x) {
|
|
20131
20131
|
const j = x.relatedTarget;
|
|
20132
20132
|
queueMicrotask(() => {
|
|
20133
|
-
const q = !(pt(v, j) || pt(y, j) || pt(j, y) || pt(R == null ? void 0 : R.portalNode, j) || j != null && j.hasAttribute(
|
|
20133
|
+
const q = !(pt(v, j) || pt(y, j) || pt(j, y) || pt(R == null ? void 0 : R.portalNode, j) || j != null && j.hasAttribute(ai("focus-guard")) || I && (er(I.nodesRef.current, d).find((W) => {
|
|
20134
20134
|
var G, J;
|
|
20135
20135
|
return pt((G = W.context) == null ? void 0 : G.elements.floating, j) || pt((J = W.context) == null ? void 0 : J.elements.domReference, j);
|
|
20136
20136
|
}) || AR(I.nodesRef.current, d).find((W) => {
|
|
@@ -20148,7 +20148,7 @@ function FR(e) {
|
|
|
20148
20148
|
}, [r, v, y, l, d, I, R, m, f]), E.useEffect(() => {
|
|
20149
20149
|
var M;
|
|
20150
20150
|
if (r) return;
|
|
20151
|
-
const U = Array.from((R == null || (M = R.portalNode) == null ? void 0 : M.querySelectorAll("[" +
|
|
20151
|
+
const U = Array.from((R == null || (M = R.portalNode) == null ? void 0 : M.querySelectorAll("[" + ai("portal") + "]")) || []);
|
|
20152
20152
|
if (y) {
|
|
20153
20153
|
const x = [y, ...U, A.current, O.current, C.current.includes("reference") || D ? v : null].filter((q) => q != null), j = l ? Qf(x, w, !w) : Qf(x);
|
|
20154
20154
|
return () => {
|
|
@@ -20226,7 +20226,7 @@ function FR(e) {
|
|
|
20226
20226
|
}, typeof u == "string" ? u : "Dismiss");
|
|
20227
20227
|
}
|
|
20228
20228
|
const b = !r && w && !D && (_ || l);
|
|
20229
|
-
return /* @__PURE__ */ E.createElement(E.Fragment, null, b && /* @__PURE__ */ E.createElement(
|
|
20229
|
+
return /* @__PURE__ */ E.createElement(E.Fragment, null, b && /* @__PURE__ */ E.createElement(Io, {
|
|
20230
20230
|
"data-type": "inside",
|
|
20231
20231
|
ref: R == null ? void 0 : R.beforeInsideRef,
|
|
20232
20232
|
onFocus: (M) => {
|
|
@@ -20242,7 +20242,7 @@ function FR(e) {
|
|
|
20242
20242
|
(U = R.beforeOutsideRef.current) == null || U.focus();
|
|
20243
20243
|
}
|
|
20244
20244
|
}
|
|
20245
|
-
}), !D && V("start"), n, V("end"), b && /* @__PURE__ */ E.createElement(
|
|
20245
|
+
}), !D && V("start"), n, V("end"), b && /* @__PURE__ */ E.createElement(Io, {
|
|
20246
20246
|
"data-type": "inside",
|
|
20247
20247
|
ref: R == null ? void 0 : R.afterInsideRef,
|
|
20248
20248
|
onFocus: (M) => {
|
|
@@ -20386,7 +20386,7 @@ function VR(e, t) {
|
|
|
20386
20386
|
const $ = k.current;
|
|
20387
20387
|
if (k.current = !1, $ || typeof S == "function" && !S(O))
|
|
20388
20388
|
return;
|
|
20389
|
-
const P = ig(O), L = "[" +
|
|
20389
|
+
const P = ig(O), L = "[" + ai("inert") + "]", _ = Ft(l).querySelectorAll(L);
|
|
20390
20390
|
let D = Ot(P) ? P : null;
|
|
20391
20391
|
for (; D && !nO(D); ) {
|
|
20392
20392
|
const V = iO(D);
|
|
@@ -20599,16 +20599,16 @@ function is(e, t, n) {
|
|
|
20599
20599
|
}
|
|
20600
20600
|
}
|
|
20601
20601
|
function td(e, t) {
|
|
20602
|
-
return is(t, e === vu || e === ns, e === fr || e ===
|
|
20602
|
+
return is(t, e === vu || e === ns, e === fr || e === Si);
|
|
20603
20603
|
}
|
|
20604
20604
|
function ea(e, t, n) {
|
|
20605
|
-
return is(t, e === ns, n ? e === fr : e ===
|
|
20605
|
+
return is(t, e === ns, n ? e === fr : e === Si) || e === "Enter" || e == " " || e === "";
|
|
20606
20606
|
}
|
|
20607
20607
|
function YR(e, t, n) {
|
|
20608
|
-
return is(t, n ? e === fr : e ===
|
|
20608
|
+
return is(t, n ? e === fr : e === Si, e === ns);
|
|
20609
20609
|
}
|
|
20610
20610
|
function nd(e, t, n) {
|
|
20611
|
-
return is(t, n ? e ===
|
|
20611
|
+
return is(t, n ? e === Si : e === fr, e === vu);
|
|
20612
20612
|
}
|
|
20613
20613
|
function KR(e, t) {
|
|
20614
20614
|
const {
|
|
@@ -20954,7 +20954,7 @@ function QR(e, t) {
|
|
|
20954
20954
|
}
|
|
20955
20955
|
const ZR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
|
|
20956
20956
|
var _, D, H, B, V;
|
|
20957
|
-
const i =
|
|
20957
|
+
const i = ti((b) => b.messageContainerRef), o = ti((b) => b.portalContainer), [s, a] = E.useState(!1), [l, u] = E.useState(null), [f, c] = E.useState(null), {
|
|
20958
20958
|
message: {
|
|
20959
20959
|
blocks: { dropdown: h }
|
|
20960
20960
|
}
|
|
@@ -21175,9 +21175,9 @@ const tD = ({ disabled: e, onFileSelected: t }) => {
|
|
|
21175
21175
|
)
|
|
21176
21176
|
] });
|
|
21177
21177
|
}, nD = ({ name: e, type: t, instance: n, status: r, removeFile: i }) => {
|
|
21178
|
-
const { loader: o, fileIcon: s, removeIcon: a, errorIcon: l, previewImage: u } = ge.composer.fileWidget, f = ["PNG", "JPEG", "JPG"].includes(
|
|
21179
|
-
return r === "loading" ? /* @__PURE__ */ T(
|
|
21180
|
-
|
|
21178
|
+
const { loader: o, fileIcon: s, removeIcon: a, errorIcon: l, previewImage: u } = ge.composer.fileWidget, f = ["PNG", "JPEG", "JPG"].includes(Vi(n.name));
|
|
21179
|
+
return r === "loading" ? /* @__PURE__ */ T(ji, { name: e, status: r, removeButton: /* @__PURE__ */ T("div", { ...o }), extension: Vi(n.name), children: /* @__PURE__ */ T("div", { ...s.container, children: /* @__PURE__ */ T(ta, { type: t, ...s.icon }) }) }) : r === "error" ? /* @__PURE__ */ T(
|
|
21180
|
+
ji,
|
|
21181
21181
|
{
|
|
21182
21182
|
name: e,
|
|
21183
21183
|
status: r,
|
|
@@ -21189,25 +21189,25 @@ const tD = ({ disabled: e, onFileSelected: t }) => {
|
|
|
21189
21189
|
] })
|
|
21190
21190
|
}
|
|
21191
21191
|
) : r == "uploaded" && f ? /* @__PURE__ */ T(
|
|
21192
|
-
|
|
21192
|
+
ji,
|
|
21193
21193
|
{
|
|
21194
21194
|
name: e,
|
|
21195
21195
|
status: r,
|
|
21196
21196
|
removeButton: /* @__PURE__ */ T(rd, { removeFile: () => i(e) }),
|
|
21197
|
-
extension:
|
|
21197
|
+
extension: Vi(n.name),
|
|
21198
21198
|
children: /* @__PURE__ */ T("div", { ...s.container, children: /* @__PURE__ */ T("img", { src: URL.createObjectURL(n), alt: e, ...u }) })
|
|
21199
21199
|
}
|
|
21200
21200
|
) : /* @__PURE__ */ T(
|
|
21201
|
-
|
|
21201
|
+
ji,
|
|
21202
21202
|
{
|
|
21203
21203
|
name: e,
|
|
21204
21204
|
status: r,
|
|
21205
21205
|
removeButton: /* @__PURE__ */ T(Cm, { onClick: () => i(e), ...a }),
|
|
21206
|
-
extension:
|
|
21206
|
+
extension: Vi(n.name),
|
|
21207
21207
|
children: /* @__PURE__ */ T("div", { ...s.container, children: /* @__PURE__ */ T(ta, { type: t, ...s.icon }) })
|
|
21208
21208
|
}
|
|
21209
21209
|
);
|
|
21210
|
-
},
|
|
21210
|
+
}, ji = ({ name: e, status: t, removeButton: n, children: r, extension: i }) => {
|
|
21211
21211
|
const { container: o, metadata: s } = ge.composer.fileWidget;
|
|
21212
21212
|
return /* @__PURE__ */ ae("div", { "data-status": t, title: e, ...o, children: [
|
|
21213
21213
|
n,
|
|
@@ -21217,7 +21217,7 @@ const tD = ({ disabled: e, onFileSelected: t }) => {
|
|
|
21217
21217
|
/* @__PURE__ */ T("div", { ...s.type, children: i })
|
|
21218
21218
|
] })
|
|
21219
21219
|
] });
|
|
21220
|
-
}, ta = ({ type: e, ...t }) => e === "image" ? /* @__PURE__ */ T(iT, { ...t }) : e === "video" ? /* @__PURE__ */ T(PT, { ...t }) : e === "audio" ? /* @__PURE__ */ T(Im, { ...t }) : /* @__PURE__ */ T(Am, { ...t }),
|
|
21220
|
+
}, ta = ({ type: e, ...t }) => e === "image" ? /* @__PURE__ */ T(iT, { ...t }) : e === "video" ? /* @__PURE__ */ T(PT, { ...t }) : e === "audio" ? /* @__PURE__ */ T(Im, { ...t }) : /* @__PURE__ */ T(Am, { ...t }), Vi = (e) => {
|
|
21221
21221
|
if (!e) return "File";
|
|
21222
21222
|
const t = e.split(".").pop();
|
|
21223
21223
|
return t ? t.toUpperCase() : "File";
|
|
@@ -21579,7 +21579,7 @@ const bD = ({
|
|
|
21579
21579
|
}
|
|
21580
21580
|
)
|
|
21581
21581
|
);
|
|
21582
|
-
var il = { exports: {} },
|
|
21582
|
+
var il = { exports: {} }, Wi = { exports: {} }, Re = {};
|
|
21583
21583
|
/** @license React v16.13.1
|
|
21584
21584
|
* react-is.production.min.js
|
|
21585
21585
|
*
|
|
@@ -21748,7 +21748,7 @@ function kD() {
|
|
|
21748
21748
|
}
|
|
21749
21749
|
var fd;
|
|
21750
21750
|
function Mg() {
|
|
21751
|
-
return fd || (fd = 1, process.env.NODE_ENV === "production" ?
|
|
21751
|
+
return fd || (fd = 1, process.env.NODE_ENV === "production" ? Wi.exports = SD() : Wi.exports = kD()), Wi.exports;
|
|
21752
21752
|
}
|
|
21753
21753
|
/*
|
|
21754
21754
|
object-assign
|
|
@@ -22321,7 +22321,7 @@ var DD = /* @__PURE__ */ new Map([
|
|
|
22321
22321
|
["mov", "video/quicktime"],
|
|
22322
22322
|
["msg", "application/vnd.ms-outlook"]
|
|
22323
22323
|
]);
|
|
22324
|
-
function
|
|
22324
|
+
function ki(e, t) {
|
|
22325
22325
|
var n = MD(e);
|
|
22326
22326
|
if (typeof n.path != "string") {
|
|
22327
22327
|
var r = e.webkitRelativePath;
|
|
@@ -22356,24 +22356,24 @@ var ND = [
|
|
|
22356
22356
|
function PD(e) {
|
|
22357
22357
|
return xr(this, void 0, void 0, function() {
|
|
22358
22358
|
return Sr(this, function(t) {
|
|
22359
|
-
return
|
|
22359
|
+
return Oo(e) && LD(e.dataTransfer) ? [2, BD(e.dataTransfer, e.type)] : _D(e) ? [2, FD(e)] : Array.isArray(e) && e.every(function(n) {
|
|
22360
22360
|
return "getFile" in n && typeof n.getFile == "function";
|
|
22361
22361
|
}) ? [2, $D(e)] : [2, []];
|
|
22362
22362
|
});
|
|
22363
22363
|
});
|
|
22364
22364
|
}
|
|
22365
22365
|
function LD(e) {
|
|
22366
|
-
return
|
|
22366
|
+
return Oo(e);
|
|
22367
22367
|
}
|
|
22368
22368
|
function _D(e) {
|
|
22369
|
-
return
|
|
22369
|
+
return Oo(e) && Oo(e.target);
|
|
22370
22370
|
}
|
|
22371
|
-
function
|
|
22371
|
+
function Oo(e) {
|
|
22372
22372
|
return typeof e == "object" && e !== null;
|
|
22373
22373
|
}
|
|
22374
22374
|
function FD(e) {
|
|
22375
22375
|
return ol(e.target.files).map(function(t) {
|
|
22376
|
-
return
|
|
22376
|
+
return ki(t);
|
|
22377
22377
|
});
|
|
22378
22378
|
}
|
|
22379
22379
|
function $D(e) {
|
|
@@ -22387,7 +22387,7 @@ function $D(e) {
|
|
|
22387
22387
|
}))];
|
|
22388
22388
|
case 1:
|
|
22389
22389
|
return t = n.sent(), [2, t.map(function(r) {
|
|
22390
|
-
return
|
|
22390
|
+
return ki(r);
|
|
22391
22391
|
})];
|
|
22392
22392
|
}
|
|
22393
22393
|
});
|
|
@@ -22406,7 +22406,7 @@ function BD(e, t) {
|
|
|
22406
22406
|
return r = i.sent(), [2, vd(Pg(r))];
|
|
22407
22407
|
case 2:
|
|
22408
22408
|
return [2, vd(ol(e.files).map(function(o) {
|
|
22409
|
-
return
|
|
22409
|
+
return ki(o);
|
|
22410
22410
|
}))];
|
|
22411
22411
|
}
|
|
22412
22412
|
});
|
|
@@ -22441,7 +22441,7 @@ function bd(e) {
|
|
|
22441
22441
|
var t = e.getAsFile();
|
|
22442
22442
|
if (!t)
|
|
22443
22443
|
return Promise.reject("".concat(e, " is not a File"));
|
|
22444
|
-
var n =
|
|
22444
|
+
var n = ki(t);
|
|
22445
22445
|
return Promise.resolve(n);
|
|
22446
22446
|
}
|
|
22447
22447
|
function HD(e) {
|
|
@@ -22495,7 +22495,7 @@ function UD(e) {
|
|
|
22495
22495
|
return Sr(this, function(t) {
|
|
22496
22496
|
return [2, new Promise(function(n, r) {
|
|
22497
22497
|
e.file(function(i) {
|
|
22498
|
-
var o =
|
|
22498
|
+
var o = ki(i, e.fullPath);
|
|
22499
22499
|
n(o);
|
|
22500
22500
|
}, function(i) {
|
|
22501
22501
|
r(i);
|
|
@@ -22554,7 +22554,7 @@ function Sd(e) {
|
|
|
22554
22554
|
function _g(e, t, n) {
|
|
22555
22555
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
22556
22556
|
}
|
|
22557
|
-
function
|
|
22557
|
+
function li(e, t) {
|
|
22558
22558
|
return GD(e) || KD(e, t) || Fg(e, t) || YD();
|
|
22559
22559
|
}
|
|
22560
22560
|
function YD() {
|
|
@@ -22639,14 +22639,14 @@ function On(e) {
|
|
|
22639
22639
|
function nM(e) {
|
|
22640
22640
|
var t = e.files, n = e.accept, r = e.minSize, i = e.maxSize, o = e.multiple, s = e.maxFiles, a = e.validator;
|
|
22641
22641
|
return !o && t.length > 1 || o && s >= 1 && t.length > s ? !1 : t.every(function(l) {
|
|
22642
|
-
var u = $g(l, n), f =
|
|
22642
|
+
var u = $g(l, n), f = li(u, 1), c = f[0], h = Bg(l, r, i), d = li(h, 1), m = d[0], p = a ? a(l) : null;
|
|
22643
22643
|
return c && m && !p;
|
|
22644
22644
|
});
|
|
22645
22645
|
}
|
|
22646
|
-
function
|
|
22646
|
+
function Ro(e) {
|
|
22647
22647
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
|
22648
22648
|
}
|
|
22649
|
-
function
|
|
22649
|
+
function qi(e) {
|
|
22650
22650
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(t) {
|
|
22651
22651
|
return t === "Files" || t === "application/x-moz-file";
|
|
22652
22652
|
}) : !!e.target && !!e.target.files;
|
|
@@ -22671,7 +22671,7 @@ function Wt() {
|
|
|
22671
22671
|
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), s = 1; s < i; s++)
|
|
22672
22672
|
o[s - 1] = arguments[s];
|
|
22673
22673
|
return t.some(function(a) {
|
|
22674
|
-
return !
|
|
22674
|
+
return !Ro(r) && a && a.apply(void 0, [r].concat(o)), Ro(r);
|
|
22675
22675
|
});
|
|
22676
22676
|
};
|
|
22677
22677
|
}
|
|
@@ -22681,10 +22681,10 @@ function sM() {
|
|
|
22681
22681
|
function aM(e) {
|
|
22682
22682
|
if (On(e)) {
|
|
22683
22683
|
var t = Object.entries(e).filter(function(n) {
|
|
22684
|
-
var r =
|
|
22684
|
+
var r = li(n, 2), i = r[0], o = r[1], s = !0;
|
|
22685
22685
|
return zg(i) || (console.warn('Skipped "'.concat(i, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), s = !1), (!Array.isArray(o) || !o.every(Hg)) && (console.warn('Skipped "'.concat(i, '" because an invalid file extension was provided.')), s = !1), s;
|
|
22686
22686
|
}).reduce(function(n, r) {
|
|
22687
|
-
var i =
|
|
22687
|
+
var i = li(r, 2), o = i[0], s = i[1];
|
|
22688
22688
|
return Sd(Sd({}, n), {}, _g({}, o, s));
|
|
22689
22689
|
}, {});
|
|
22690
22690
|
return [{
|
|
@@ -22698,7 +22698,7 @@ function aM(e) {
|
|
|
22698
22698
|
function lM(e) {
|
|
22699
22699
|
if (On(e))
|
|
22700
22700
|
return Object.entries(e).reduce(function(t, n) {
|
|
22701
|
-
var r =
|
|
22701
|
+
var r = li(n, 2), i = r[0], o = r[1];
|
|
22702
22702
|
return [].concat(wd(t), [i], wd(o));
|
|
22703
22703
|
}, []).filter(function(t) {
|
|
22704
22704
|
return zg(t) || Hg(t);
|
|
@@ -22797,7 +22797,7 @@ function ze(e) {
|
|
|
22797
22797
|
function ll(e, t, n) {
|
|
22798
22798
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
22799
22799
|
}
|
|
22800
|
-
function
|
|
22800
|
+
function Do(e, t) {
|
|
22801
22801
|
if (e == null) return {};
|
|
22802
22802
|
var n = SM(e, t), r, i;
|
|
22803
22803
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -22815,7 +22815,7 @@ function SM(e, t) {
|
|
|
22815
22815
|
return n;
|
|
22816
22816
|
}
|
|
22817
22817
|
var ku = /* @__PURE__ */ rt(function(e, t) {
|
|
22818
|
-
var n = e.children, r =
|
|
22818
|
+
var n = e.children, r = Do(e, fM), i = Vg(r), o = i.open, s = Do(i, dM);
|
|
22819
22819
|
return xv(t, function() {
|
|
22820
22820
|
return {
|
|
22821
22821
|
open: o
|
|
@@ -23057,8 +23057,8 @@ function Vg() {
|
|
|
23057
23057
|
var W = Me(function(X) {
|
|
23058
23058
|
R ? R(X) : console.error(X);
|
|
23059
23059
|
}, [R]), G = Me(function(X) {
|
|
23060
|
-
X.preventDefault(), X.persist(), Ce(X), j.current = [].concat(mM(j.current), [X.target]),
|
|
23061
|
-
if (!(
|
|
23060
|
+
X.preventDefault(), X.persist(), Ce(X), j.current = [].concat(mM(j.current), [X.target]), qi(X) && Promise.resolve(i(X)).then(function(oe) {
|
|
23061
|
+
if (!(Ro(X) && !I)) {
|
|
23062
23062
|
var z = oe.length, Y = z > 0 && nM({
|
|
23063
23063
|
files: oe,
|
|
23064
23064
|
accept: A,
|
|
@@ -23080,7 +23080,7 @@ function Vg() {
|
|
|
23080
23080
|
});
|
|
23081
23081
|
}, [i, u, W, I, A, s, o, a, l, N]), J = Me(function(X) {
|
|
23082
23082
|
X.preventDefault(), X.persist(), Ce(X);
|
|
23083
|
-
var oe =
|
|
23083
|
+
var oe = qi(X);
|
|
23084
23084
|
if (oe && X.dataTransfer)
|
|
23085
23085
|
try {
|
|
23086
23086
|
X.dataTransfer.dropEffect = "copy";
|
|
@@ -23097,7 +23097,7 @@ function Vg() {
|
|
|
23097
23097
|
isDragActive: !1,
|
|
23098
23098
|
isDragAccept: !1,
|
|
23099
23099
|
isDragReject: !1
|
|
23100
|
-
}),
|
|
23100
|
+
}), qi(X) && f && f(X));
|
|
23101
23101
|
}, [L, f, I]), K = Me(function(X, oe) {
|
|
23102
23102
|
var z = [], Y = [];
|
|
23103
23103
|
X.forEach(function(re) {
|
|
@@ -23108,8 +23108,8 @@ function Vg() {
|
|
|
23108
23108
|
var lt = [Ge, Qe];
|
|
23109
23109
|
Ct && (lt = lt.concat(Ct)), Y.push({
|
|
23110
23110
|
file: re,
|
|
23111
|
-
errors: lt.filter(function(
|
|
23112
|
-
return
|
|
23111
|
+
errors: lt.filter(function(Ai) {
|
|
23112
|
+
return Ai;
|
|
23113
23113
|
})
|
|
23114
23114
|
});
|
|
23115
23115
|
}
|
|
@@ -23124,8 +23124,8 @@ function Vg() {
|
|
|
23124
23124
|
type: "setFiles"
|
|
23125
23125
|
}), h && h(z, Y, oe), Y.length > 0 && m && m(Y, oe), z.length > 0 && d && d(z, oe);
|
|
23126
23126
|
}, [V, a, A, s, o, l, h, d, m, N]), ee = Me(function(X) {
|
|
23127
|
-
X.preventDefault(), X.persist(), Ce(X), j.current = [],
|
|
23128
|
-
|
|
23127
|
+
X.preventDefault(), X.persist(), Ce(X), j.current = [], qi(X) && Promise.resolve(i(X)).then(function(oe) {
|
|
23128
|
+
Ro(X) && !I || K(oe, X);
|
|
23129
23129
|
}).catch(function(oe) {
|
|
23130
23130
|
return W(oe);
|
|
23131
23131
|
}), V({
|
|
@@ -23178,7 +23178,7 @@ function Vg() {
|
|
|
23178
23178
|
I && oe.stopPropagation();
|
|
23179
23179
|
}, $e = ct(function() {
|
|
23180
23180
|
return function() {
|
|
23181
|
-
var X = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, oe = X.refKey, z = oe === void 0 ? "ref" : oe, Y = X.role, re = X.onKeyDown, se = X.onFocus, de = X.onBlur, qe = X.onClick, Ge = X.onDragEnter, et = X.onDragOver, Et = X.onDragLeave, Nt = X.onDrop, Qe =
|
|
23181
|
+
var X = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, oe = X.refKey, z = oe === void 0 ? "ref" : oe, Y = X.role, re = X.onKeyDown, se = X.onFocus, de = X.onBlur, qe = X.onClick, Ge = X.onDragEnter, et = X.onDragOver, Et = X.onDragLeave, Nt = X.onDrop, Qe = Do(X, hM);
|
|
23182
23182
|
return ze(ze(ll({
|
|
23183
23183
|
onKeyDown: fe(Wt(re, te)),
|
|
23184
23184
|
onFocus: fe(Wt(se, pe)),
|
|
@@ -23197,7 +23197,7 @@ function Vg() {
|
|
|
23197
23197
|
X.stopPropagation();
|
|
23198
23198
|
}, []), je = ct(function() {
|
|
23199
23199
|
return function() {
|
|
23200
|
-
var X = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, oe = X.refKey, z = oe === void 0 ? "ref" : oe, Y = X.onChange, re = X.onClick, se =
|
|
23200
|
+
var X = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, oe = X.refKey, z = oe === void 0 ? "ref" : oe, Y = X.onChange, re = X.onClick, se = Do(X, pM), de = ll({
|
|
23201
23201
|
accept: A,
|
|
23202
23202
|
multiple: a,
|
|
23203
23203
|
type: "file",
|
|
@@ -23300,8 +23300,8 @@ const EM = ({ children: e }) => {
|
|
|
23300
23300
|
showInputModal: i
|
|
23301
23301
|
},
|
|
23302
23302
|
children: [
|
|
23303
|
-
/* @__PURE__ */ T(
|
|
23304
|
-
|
|
23303
|
+
/* @__PURE__ */ T(ui, { open: n.open, onOpenChange: (s) => r((a) => ({ ...a, open: s })), children: /* @__PURE__ */ T(
|
|
23304
|
+
ui.Content,
|
|
23305
23305
|
{
|
|
23306
23306
|
title: n.title,
|
|
23307
23307
|
description: n.description,
|
|
@@ -23354,12 +23354,12 @@ const EM = ({ children: e }) => {
|
|
|
23354
23354
|
] })
|
|
23355
23355
|
] });
|
|
23356
23356
|
};
|
|
23357
|
-
let
|
|
23357
|
+
let Yi;
|
|
23358
23358
|
const TM = new Uint8Array(16);
|
|
23359
23359
|
function IM() {
|
|
23360
|
-
if (!
|
|
23360
|
+
if (!Yi && (Yi = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Yi))
|
|
23361
23361
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
23362
|
-
return
|
|
23362
|
+
return Yi(TM);
|
|
23363
23363
|
}
|
|
23364
23364
|
const tt = [];
|
|
23365
23365
|
for (let e = 0; e < 256; ++e)
|
|
@@ -23377,7 +23377,7 @@ function DM(e, t, n) {
|
|
|
23377
23377
|
const r = e.random || (e.rng || IM)();
|
|
23378
23378
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, OM(r);
|
|
23379
23379
|
}
|
|
23380
|
-
function
|
|
23380
|
+
function Gr(e) {
|
|
23381
23381
|
var s;
|
|
23382
23382
|
const { metadata: t, conversationId: n, userId: r } = e, { payload: i, disableInput: o } = MM(e.payload);
|
|
23383
23383
|
return {
|
|
@@ -23424,20 +23424,20 @@ const MM = (e) => {
|
|
|
23424
23424
|
throw new Error(`Unsuported message type ${t}`);
|
|
23425
23425
|
}
|
|
23426
23426
|
}
|
|
23427
|
-
},
|
|
23427
|
+
}, Ei = (e) => ({
|
|
23428
23428
|
block: e,
|
|
23429
23429
|
type: "bubble"
|
|
23430
23430
|
}), Wg = (e) => ({
|
|
23431
23431
|
payload: { type: "audio", url: e.audioUrl }
|
|
23432
23432
|
}), NM = (e) => ({
|
|
23433
|
-
payload:
|
|
23433
|
+
payload: Ei(Jg(e))
|
|
23434
23434
|
}), PM = (e) => ({
|
|
23435
23435
|
payload: {
|
|
23436
23436
|
type: "carousel",
|
|
23437
23437
|
blocks: e.items.map((t) => Jg({ ...t }))
|
|
23438
23438
|
}
|
|
23439
23439
|
}), LM = (e) => {
|
|
23440
|
-
const t = e.options.map((o) => ({ title: o.label, value: o.value })), n = e.text, r = DM(), i =
|
|
23440
|
+
const t = e.options.map((o) => ({ title: o.label, value: o.value })), n = e.text, r = DM(), i = Ei({
|
|
23441
23441
|
type: "text",
|
|
23442
23442
|
text: n
|
|
23443
23443
|
});
|
|
@@ -23476,7 +23476,7 @@ const MM = (e) => {
|
|
|
23476
23476
|
text: n
|
|
23477
23477
|
}), {
|
|
23478
23478
|
disableInput: !0,
|
|
23479
|
-
payload:
|
|
23479
|
+
payload: Ei({
|
|
23480
23480
|
type: "column",
|
|
23481
23481
|
blocks: r
|
|
23482
23482
|
})
|
|
@@ -23497,9 +23497,9 @@ const MM = (e) => {
|
|
|
23497
23497
|
title: e.title ?? e.address ?? "View on map"
|
|
23498
23498
|
}
|
|
23499
23499
|
}), Gg = (e) => ({
|
|
23500
|
-
payload:
|
|
23500
|
+
payload: Ei({ type: "text", text: e.markdown })
|
|
23501
23501
|
}), Qg = (e) => ({
|
|
23502
|
-
payload:
|
|
23502
|
+
payload: Ei({ type: "text", text: e.text, value: e.value })
|
|
23503
23503
|
}), Zg = (e) => ({
|
|
23504
23504
|
payload: { type: "video", url: e.videoUrl }
|
|
23505
23505
|
}), FM = (e) => ({ payload: {
|
|
@@ -24059,11 +24059,11 @@ function Nd(e) {
|
|
|
24059
24059
|
}
|
|
24060
24060
|
var iy = (e) => {
|
|
24061
24061
|
throw TypeError(e);
|
|
24062
|
-
}, Eu = (e, t, n) => t.has(e) || iy("Cannot " + n), ye = (e, t, n) => (Eu(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Ze = (e, t, n) => t.has(e) ? iy("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Be = (e, t, n, r) => (Eu(e, t, "write to private field"), t.set(e, n), n), Xt = (e, t, n) => (Eu(e, t, "access private method"), n), mt, Rn, Yn,
|
|
24063
|
-
class
|
|
24062
|
+
}, Eu = (e, t, n) => t.has(e) || iy("Cannot " + n), ye = (e, t, n) => (Eu(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Ze = (e, t, n) => t.has(e) ? iy("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Be = (e, t, n, r) => (Eu(e, t, "write to private field"), t.set(e, n), n), Xt = (e, t, n) => (Eu(e, t, "access private method"), n), mt, Rn, Yn, lo, Mo, Qr, Qn, Zr, pn, Kn, tr, Gn, Br, _t, fl, dl, hl, Pd, pl, ml, zr, gl, yl;
|
|
24063
|
+
class uo extends EventTarget {
|
|
24064
24064
|
constructor(t, n) {
|
|
24065
24065
|
var r, i;
|
|
24066
|
-
super(), Ze(this, _t), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, Ze(this, mt), Ze(this, Rn), Ze(this, Yn), Ze(this,
|
|
24066
|
+
super(), Ze(this, _t), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, Ze(this, mt), Ze(this, Rn), Ze(this, Yn), Ze(this, lo), Ze(this, Mo), Ze(this, Qr), Ze(this, Qn), Ze(this, Zr, null), Ze(this, pn), Ze(this, Kn), Ze(this, tr, null), Ze(this, Gn, null), Ze(this, Br, null), Ze(this, dl, async (o) => {
|
|
24067
24067
|
var s;
|
|
24068
24068
|
ye(this, Kn).reset();
|
|
24069
24069
|
const { body: a, redirected: l, status: u, headers: f } = o;
|
|
@@ -24096,7 +24096,7 @@ class lo extends EventTarget {
|
|
|
24096
24096
|
}), Ze(this, hl, (o) => {
|
|
24097
24097
|
Be(this, pn, void 0), !(o.name === "AbortError" || o.type === "aborted") && Xt(this, _t, gl).call(this, cl(o));
|
|
24098
24098
|
}), Ze(this, pl, (o) => {
|
|
24099
|
-
typeof o.id == "string" && Be(this,
|
|
24099
|
+
typeof o.id == "string" && Be(this, Zr, o.id);
|
|
24100
24100
|
const s = new MessageEvent(o.event || "message", {
|
|
24101
24101
|
data: o.data,
|
|
24102
24102
|
origin: ye(this, Yn) ? ye(this, Yn).origin : ye(this, Rn).origin,
|
|
@@ -24104,7 +24104,7 @@ class lo extends EventTarget {
|
|
|
24104
24104
|
});
|
|
24105
24105
|
ye(this, Gn) && (!o.event || o.event === "message") && ye(this, Gn).call(this, s), this.dispatchEvent(s);
|
|
24106
24106
|
}), Ze(this, ml, (o) => {
|
|
24107
|
-
Be(this,
|
|
24107
|
+
Be(this, Qr, o);
|
|
24108
24108
|
}), Ze(this, yl, () => {
|
|
24109
24109
|
Be(this, Qn, void 0), ye(this, mt) === this.CONNECTING && Xt(this, _t, fl).call(this);
|
|
24110
24110
|
});
|
|
@@ -24121,7 +24121,7 @@ class lo extends EventTarget {
|
|
|
24121
24121
|
Be(this, Kn, AN({
|
|
24122
24122
|
onEvent: ye(this, pl),
|
|
24123
24123
|
onRetry: ye(this, ml)
|
|
24124
|
-
})), Be(this, mt, this.CONNECTING), Be(this,
|
|
24124
|
+
})), Be(this, mt, this.CONNECTING), Be(this, Qr, 3e3), Be(this, Mo, (r = n == null ? void 0 : n.fetch) != null ? r : globalThis.fetch), Be(this, lo, (i = n == null ? void 0 : n.withCredentials) != null ? i : !1), Xt(this, _t, fl).call(this);
|
|
24125
24125
|
}
|
|
24126
24126
|
/**
|
|
24127
24127
|
* Returns the state of this EventSource object's connection. It can have the values described below.
|
|
@@ -24152,7 +24152,7 @@ class lo extends EventTarget {
|
|
|
24152
24152
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
|
|
24153
24153
|
*/
|
|
24154
24154
|
get withCredentials() {
|
|
24155
|
-
return ye(this,
|
|
24155
|
+
return ye(this, lo);
|
|
24156
24156
|
}
|
|
24157
24157
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */
|
|
24158
24158
|
get onerror() {
|
|
@@ -24194,7 +24194,7 @@ class lo extends EventTarget {
|
|
|
24194
24194
|
ye(this, Qn) && clearTimeout(ye(this, Qn)), ye(this, mt) !== this.CLOSED && (ye(this, pn) && ye(this, pn).abort(), Be(this, mt, this.CLOSED), Be(this, pn, void 0));
|
|
24195
24195
|
}
|
|
24196
24196
|
}
|
|
24197
|
-
mt = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(),
|
|
24197
|
+
mt = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), lo = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), Kn = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), Gn = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakSet(), /**
|
|
24198
24198
|
* Connect to the given URL and start receiving events
|
|
24199
24199
|
*
|
|
24200
24200
|
* @internal
|
|
@@ -24214,7 +24214,7 @@ Pd = function() {
|
|
|
24214
24214
|
// [spec] …will have their mode set to "cors"…
|
|
24215
24215
|
mode: "cors",
|
|
24216
24216
|
redirect: "follow",
|
|
24217
|
-
headers: { Accept: "text/event-stream", ...ye(this,
|
|
24217
|
+
headers: { Accept: "text/event-stream", ...ye(this, Zr) ? { "Last-Event-ID": ye(this, Zr) } : void 0 },
|
|
24218
24218
|
cache: "no-store",
|
|
24219
24219
|
signal: (e = ye(this, pn)) == null ? void 0 : e.signal
|
|
24220
24220
|
};
|
|
@@ -24244,23 +24244,23 @@ gl = function(e, t) {
|
|
|
24244
24244
|
return;
|
|
24245
24245
|
Be(this, mt, this.CONNECTING);
|
|
24246
24246
|
const r = new Md("error", { code: t, message: e });
|
|
24247
|
-
(n = ye(this, tr)) == null || n.call(this, r), this.dispatchEvent(r), Be(this, Qn, setTimeout(ye(this, yl), ye(this,
|
|
24247
|
+
(n = ye(this, tr)) == null || n.call(this, r), this.dispatchEvent(r), Be(this, Qn, setTimeout(ye(this, yl), ye(this, Qr)));
|
|
24248
24248
|
}, yl = /* @__PURE__ */ new WeakMap(), /**
|
|
24249
24249
|
* ReadyState representing an EventSource currently trying to connect
|
|
24250
24250
|
*
|
|
24251
24251
|
* @public
|
|
24252
24252
|
*/
|
|
24253
|
-
|
|
24253
|
+
uo.CONNECTING = 0, /**
|
|
24254
24254
|
* ReadyState representing an EventSource connection that is open (eg connected)
|
|
24255
24255
|
*
|
|
24256
24256
|
* @public
|
|
24257
24257
|
*/
|
|
24258
|
-
|
|
24258
|
+
uo.OPEN = 1, /**
|
|
24259
24259
|
* ReadyState representing an EventSource connection that is closed (eg disconnected)
|
|
24260
24260
|
*
|
|
24261
24261
|
* @public
|
|
24262
24262
|
*/
|
|
24263
|
-
|
|
24263
|
+
uo.CLOSED = 2;
|
|
24264
24264
|
function ON() {
|
|
24265
24265
|
const e = "document" in globalThis ? globalThis.document : void 0;
|
|
24266
24266
|
return e && typeof e == "object" && "baseURI" in e && typeof e.baseURI == "string" ? e.baseURI : void 0;
|
|
@@ -24373,7 +24373,7 @@ const oy = () => {
|
|
|
24373
24373
|
} catch {
|
|
24374
24374
|
return e;
|
|
24375
24375
|
}
|
|
24376
|
-
}, uy = (e, t) => new
|
|
24376
|
+
}, uy = (e, t) => new uo(e, {
|
|
24377
24377
|
fetch: (n, r) => fetch(n, {
|
|
24378
24378
|
...r,
|
|
24379
24379
|
headers: {
|
|
@@ -24444,7 +24444,7 @@ const BL = (e) => {
|
|
|
24444
24444
|
}, $N = () => {
|
|
24445
24445
|
const e = Date.now() - fy, t = Math.floor(e / 1e3), n = e % 1e3;
|
|
24446
24446
|
return `+${t}.${n.toString().padStart(3, "0")}s`;
|
|
24447
|
-
}, BN = (e) => e === void 0 ? "undefined" : e === null ? "null" : e instanceof Error ? { error: e.message, stack: e.stack } : e,
|
|
24447
|
+
}, BN = (e) => e === void 0 ? "undefined" : e === null ? "null" : e instanceof Error ? { error: e.message, stack: e.stack } : e, Ki = (e) => {
|
|
24448
24448
|
const t = _N[e] || "#666", n = (r, ...i) => {
|
|
24449
24449
|
if (!cy && r !== "warn" && r !== "error") return;
|
|
24450
24450
|
const o = $N(), s = `%c[bp:${e}]%c ${o} %c${r.toUpperCase()}%c`, a = [
|
|
@@ -24468,10 +24468,10 @@ const BL = (e) => {
|
|
|
24468
24468
|
error: (...r) => n("error", ...r)
|
|
24469
24469
|
};
|
|
24470
24470
|
}, dy = {
|
|
24471
|
-
webchat:
|
|
24472
|
-
client:
|
|
24473
|
-
store:
|
|
24474
|
-
events:
|
|
24471
|
+
webchat: Ki("webchat"),
|
|
24472
|
+
client: Ki("client"),
|
|
24473
|
+
store: Ki("store"),
|
|
24474
|
+
events: Ki("events")
|
|
24475
24475
|
};
|
|
24476
24476
|
function Ld() {
|
|
24477
24477
|
const [e, t] = Te(!1), n = Se(null);
|
|
@@ -24537,7 +24537,7 @@ function hy({
|
|
|
24537
24537
|
userToken: $
|
|
24538
24538
|
});
|
|
24539
24539
|
S(B), c(L.id), h({ userId: H.id, userToken: H.userKey });
|
|
24540
|
-
const b = Nm(L.id), M = _.reverse().map(
|
|
24540
|
+
const b = Nm(L.id), M = _.reverse().map(Gr).filter(Boolean);
|
|
24541
24541
|
b.getState().setMessages(M);
|
|
24542
24542
|
const U = Lm(L.id);
|
|
24543
24543
|
U.getState().setParticipants(D);
|
|
@@ -24550,9 +24550,13 @@ function hy({
|
|
|
24550
24550
|
Nr.error("connection error", { error: q, conversationId: L.id }), I((W) => W || Ho(q)), w("error"), v.emit("error", new Error(`Connection to conversation lost: ${q == null ? void 0 : q.message}`));
|
|
24551
24551
|
}),
|
|
24552
24552
|
P("message_created", (q) => {
|
|
24553
|
-
const W =
|
|
24553
|
+
const W = Gr(q);
|
|
24554
24554
|
b.getState().saveMessage(W), H.id !== W.authorId && (s == null || s(), m(!1), g(!1), v.emit("isTyping", { isTyping: !1, timeout: 0 })), v.emit("message", W);
|
|
24555
24555
|
}),
|
|
24556
|
+
P("message_updated", (q) => {
|
|
24557
|
+
const W = Gr(q);
|
|
24558
|
+
b.getState().saveMessage(W);
|
|
24559
|
+
}),
|
|
24556
24560
|
P("message_status_changed", (q) => {
|
|
24557
24561
|
var W;
|
|
24558
24562
|
q.newStatus === "processing" && b.getState().updateMessage((W = q.message.metadata) == null ? void 0 : W.clientMessageId, {
|
|
@@ -24659,7 +24663,7 @@ const my = ({
|
|
|
24659
24663
|
conversationId: o,
|
|
24660
24664
|
...s
|
|
24661
24665
|
}) => {
|
|
24662
|
-
const { container: a } = ge, l =
|
|
24666
|
+
const { container: a } = ge, l = ti((g) => g.setMessageContainerRef), f = Pm(o || "default", i)((g) => g.uploadFile), [c, h] = Te(0), d = Se(null);
|
|
24663
24667
|
_e(() => {
|
|
24664
24668
|
l(d);
|
|
24665
24669
|
}, [d, l]);
|
|
@@ -24906,19 +24910,19 @@ function t2(e) {
|
|
|
24906
24910
|
}
|
|
24907
24911
|
});
|
|
24908
24912
|
return E.useEffect(() => {
|
|
24909
|
-
const u =
|
|
24913
|
+
const u = Gi(r.current);
|
|
24910
24914
|
o.current = a === "mounted" ? u : "none";
|
|
24911
24915
|
}, [a]), vn(() => {
|
|
24912
24916
|
const u = r.current, f = i.current;
|
|
24913
24917
|
if (f !== e) {
|
|
24914
|
-
const h = o.current, d =
|
|
24918
|
+
const h = o.current, d = Gi(u);
|
|
24915
24919
|
e ? l("MOUNT") : d === "none" || (u == null ? void 0 : u.display) === "none" ? l("UNMOUNT") : l(f && h !== d ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
24916
24920
|
}
|
|
24917
24921
|
}, [e, l]), vn(() => {
|
|
24918
24922
|
if (t) {
|
|
24919
24923
|
let u;
|
|
24920
24924
|
const f = t.ownerDocument.defaultView ?? window, c = (d) => {
|
|
24921
|
-
const p =
|
|
24925
|
+
const p = Gi(r.current).includes(CSS.escape(d.animationName));
|
|
24922
24926
|
if (d.target === t && p && (l("ANIMATION_END"), !i.current)) {
|
|
24923
24927
|
const g = t.style.animationFillMode;
|
|
24924
24928
|
t.style.animationFillMode = "forwards", u = f.setTimeout(() => {
|
|
@@ -24926,7 +24930,7 @@ function t2(e) {
|
|
|
24926
24930
|
});
|
|
24927
24931
|
}
|
|
24928
24932
|
}, h = (d) => {
|
|
24929
|
-
d.target === t && (o.current =
|
|
24933
|
+
d.target === t && (o.current = Gi(r.current));
|
|
24930
24934
|
};
|
|
24931
24935
|
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", c), t.addEventListener("animationend", c), () => {
|
|
24932
24936
|
f.clearTimeout(u), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", c), t.removeEventListener("animationend", c);
|
|
@@ -24940,7 +24944,7 @@ function t2(e) {
|
|
|
24940
24944
|
}, [])
|
|
24941
24945
|
};
|
|
24942
24946
|
}
|
|
24943
|
-
function
|
|
24947
|
+
function Gi(e) {
|
|
24944
24948
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
24945
24949
|
}
|
|
24946
24950
|
function n2(e) {
|
|
@@ -24950,7 +24954,7 @@ function n2(e) {
|
|
|
24950
24954
|
}
|
|
24951
24955
|
var r2 = E[" useId ".trim().toString()] || (() => {
|
|
24952
24956
|
}), i2 = 0;
|
|
24953
|
-
function
|
|
24957
|
+
function co(e) {
|
|
24954
24958
|
const [t, n] = E.useState(r2());
|
|
24955
24959
|
return vn(() => {
|
|
24956
24960
|
n((r) => r ?? String(i2++));
|
|
@@ -24976,7 +24980,7 @@ var as = "Collapsible", [o2] = gy(as), [s2, Au] = o2(as), by = E.forwardRef(
|
|
|
24976
24980
|
{
|
|
24977
24981
|
scope: n,
|
|
24978
24982
|
disabled: o,
|
|
24979
|
-
contentId:
|
|
24983
|
+
contentId: co(),
|
|
24980
24984
|
open: l,
|
|
24981
24985
|
onOpenToggle: E.useCallback(() => u((f) => !f), [u]),
|
|
24982
24986
|
children: /* @__PURE__ */ T(
|
|
@@ -25669,7 +25673,7 @@ function Ry({
|
|
|
25669
25673
|
clientMessageId: m,
|
|
25670
25674
|
delivered: !1
|
|
25671
25675
|
}
|
|
25672
|
-
}, g =
|
|
25676
|
+
}, g = Gr(p);
|
|
25673
25677
|
g.status = "pending", s(g), await e.createMessage({
|
|
25674
25678
|
conversationId: t,
|
|
25675
25679
|
payload: d,
|
|
@@ -25677,7 +25681,7 @@ function Ry({
|
|
|
25677
25681
|
});
|
|
25678
25682
|
},
|
|
25679
25683
|
setMessages: (d) => {
|
|
25680
|
-
const m = d.map((p) =>
|
|
25684
|
+
const m = d.map((p) => Gr(p)).filter(Boolean);
|
|
25681
25685
|
l(m);
|
|
25682
25686
|
},
|
|
25683
25687
|
clearMessages: u,
|
|
@@ -25967,7 +25971,7 @@ const tn = /* @__PURE__ */ new WeakMap(), rn = () => {
|
|
|
25967
25971
|
), wl = Object, be = (e) => e === ot, Yt = (e) => typeof e == "function", wn = (e, t) => ({
|
|
25968
25972
|
...e,
|
|
25969
25973
|
...t
|
|
25970
|
-
}), _y = (e) => Yt(e.then), fa = {},
|
|
25974
|
+
}), _y = (e) => Yt(e.then), fa = {}, Qi = {}, Du = "undefined", Ci = typeof window != Du, xl = typeof document != Du, A2 = Ci && "Deno" in window, T2 = () => Ci && typeof window.requestAnimationFrame != Du, Fy = (e, t) => {
|
|
25971
25975
|
const n = tn.get(e);
|
|
25972
25976
|
return [
|
|
25973
25977
|
// Getter
|
|
@@ -25976,17 +25980,17 @@ const tn = /* @__PURE__ */ new WeakMap(), rn = () => {
|
|
|
25976
25980
|
(r) => {
|
|
25977
25981
|
if (!be(t)) {
|
|
25978
25982
|
const i = e.get(t);
|
|
25979
|
-
t in
|
|
25983
|
+
t in Qi || (Qi[t] = i), n[5](t, wn(i, r), i || fa);
|
|
25980
25984
|
}
|
|
25981
25985
|
},
|
|
25982
25986
|
// Subscriber
|
|
25983
25987
|
n[6],
|
|
25984
25988
|
// Get server cache snapshot
|
|
25985
|
-
() => !be(t) && t in
|
|
25989
|
+
() => !be(t) && t in Qi ? Qi[t] : !be(t) && e.get(t) || fa
|
|
25986
25990
|
];
|
|
25987
25991
|
};
|
|
25988
25992
|
let Sl = !0;
|
|
25989
|
-
const I2 = () => Sl, [kl, El] =
|
|
25993
|
+
const I2 = () => Sl, [kl, El] = Ci && window.addEventListener ? [
|
|
25990
25994
|
window.addEventListener.bind(window),
|
|
25991
25995
|
window.removeEventListener.bind(window)
|
|
25992
25996
|
] : [
|
|
@@ -26012,27 +26016,27 @@ const I2 = () => Sl, [kl, El] = Ei && window.addEventListener ? [
|
|
|
26012
26016
|
}, N2 = {
|
|
26013
26017
|
initFocus: R2,
|
|
26014
26018
|
initReconnect: D2
|
|
26015
|
-
}, zd = !yt.useId, nr = !
|
|
26019
|
+
}, zd = !yt.useId, nr = !Ci || A2, P2 = (e) => T2() ? window.requestAnimationFrame(e) : setTimeout(e, 1), da = nr ? _e : hr, ha = typeof navigator < "u" && navigator.connection, Hd = !nr && ha && ([
|
|
26016
26020
|
"slow-2g",
|
|
26017
26021
|
"2g"
|
|
26018
|
-
].includes(ha.effectiveType) || ha.saveData),
|
|
26022
|
+
].includes(ha.effectiveType) || ha.saveData), Zi = /* @__PURE__ */ new WeakMap(), L2 = (e) => wl.prototype.toString.call(e), pa = (e, t) => e === `[object ${t}]`;
|
|
26019
26023
|
let _2 = 0;
|
|
26020
26024
|
const Cl = (e) => {
|
|
26021
26025
|
const t = typeof e, n = L2(e), r = pa(n, "Date"), i = pa(n, "RegExp"), o = pa(n, "Object");
|
|
26022
26026
|
let s, a;
|
|
26023
26027
|
if (wl(e) === e && !r && !i) {
|
|
26024
|
-
if (s =
|
|
26025
|
-
if (s = ++_2 + "~",
|
|
26028
|
+
if (s = Zi.get(e), s) return s;
|
|
26029
|
+
if (s = ++_2 + "~", Zi.set(e, s), Array.isArray(e)) {
|
|
26026
26030
|
for (s = "@", a = 0; a < e.length; a++)
|
|
26027
26031
|
s += Cl(e[a]) + ",";
|
|
26028
|
-
|
|
26032
|
+
Zi.set(e, s);
|
|
26029
26033
|
}
|
|
26030
26034
|
if (o) {
|
|
26031
26035
|
s = "#";
|
|
26032
26036
|
const l = wl.keys(e).sort();
|
|
26033
26037
|
for (; !be(a = l.pop()); )
|
|
26034
26038
|
be(e[a]) || (s += a + ":" + Cl(e[a]) + ",");
|
|
26035
|
-
|
|
26039
|
+
Zi.set(e, s);
|
|
26036
26040
|
}
|
|
26037
26041
|
} else
|
|
26038
26042
|
s = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
|
@@ -26211,7 +26215,7 @@ const Ud = (e, t) => {
|
|
|
26211
26215
|
r && o && (n.use = r.concat(o)), i && s && (n.fallback = wn(i, s));
|
|
26212
26216
|
}
|
|
26213
26217
|
return n;
|
|
26214
|
-
}, V2 = Po({}), W2 = "$inf$", zy =
|
|
26218
|
+
}, V2 = Po({}), W2 = "$inf$", zy = Ci && window.__SWR_DEVTOOLS_USE__, q2 = zy ? window.__SWR_DEVTOOLS_USE__ : [], Y2 = () => {
|
|
26215
26219
|
zy && (window.__SWR_DEVTOOLS_REACT__ = yt);
|
|
26216
26220
|
}, K2 = (e) => Yt(e[1]) ? [
|
|
26217
26221
|
e[0],
|
|
@@ -26621,7 +26625,7 @@ const sP = ({
|
|
|
26621
26625
|
const G = ct(() => i ? Kv(r, f, i.userId, D, L) : [], [L, D, r, i, f]), J = ct(() => {
|
|
26622
26626
|
var ee, F;
|
|
26623
26627
|
return ((F = (ee = r.at(-1)) == null ? void 0 : ee.metadata) == null ? void 0 : F.conversationStatus) === "closed";
|
|
26624
|
-
}, [r]), ie = Se(null), K =
|
|
26628
|
+
}, [r]), ie = Se(null), K = ti((ee) => ee.setPortalContainer);
|
|
26625
26629
|
return _e(() => (K(ie.current), () => {
|
|
26626
26630
|
K(null);
|
|
26627
26631
|
}), [K]), /* @__PURE__ */ ae(Mt, { children: [
|
|
@@ -27058,7 +27062,7 @@ function Qd() {
|
|
|
27058
27062
|
const e = document.createElement("span");
|
|
27059
27063
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
27060
27064
|
}
|
|
27061
|
-
var
|
|
27065
|
+
var fo = "right-scroll-bar-position", ho = "width-before-scroll-bar", EP = "with-scroll-bars-hidden", CP = "--removed-body-scroll-bar-size";
|
|
27062
27066
|
function wa(e, t) {
|
|
27063
27067
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
27064
27068
|
}
|
|
@@ -27199,8 +27203,8 @@ ls.defaultProps = {
|
|
|
27199
27203
|
inert: !1
|
|
27200
27204
|
};
|
|
27201
27205
|
ls.classNames = {
|
|
27202
|
-
fullWidth:
|
|
27203
|
-
zeroRight:
|
|
27206
|
+
fullWidth: ho,
|
|
27207
|
+
zeroRight: fo
|
|
27204
27208
|
};
|
|
27205
27209
|
var NP = function() {
|
|
27206
27210
|
if (typeof __webpack_nonce__ < "u")
|
|
@@ -27290,19 +27294,19 @@ var FP = function() {
|
|
|
27290
27294
|
].filter(Boolean).join(""), `
|
|
27291
27295
|
}
|
|
27292
27296
|
|
|
27293
|
-
.`).concat(
|
|
27297
|
+
.`).concat(fo, ` {
|
|
27294
27298
|
right: `).concat(a, "px ").concat(r, `;
|
|
27295
27299
|
}
|
|
27296
27300
|
|
|
27297
|
-
.`).concat(
|
|
27301
|
+
.`).concat(ho, ` {
|
|
27298
27302
|
margin-right: `).concat(a, "px ").concat(r, `;
|
|
27299
27303
|
}
|
|
27300
27304
|
|
|
27301
|
-
.`).concat(
|
|
27305
|
+
.`).concat(fo, " .").concat(fo, ` {
|
|
27302
27306
|
right: 0 `).concat(r, `;
|
|
27303
27307
|
}
|
|
27304
27308
|
|
|
27305
|
-
.`).concat(
|
|
27309
|
+
.`).concat(ho, " .").concat(ho, ` {
|
|
27306
27310
|
margin-right: 0 `).concat(r, `;
|
|
27307
27311
|
}
|
|
27308
27312
|
|
|
@@ -27330,12 +27334,12 @@ var FP = function() {
|
|
|
27330
27334
|
}, Il = !1;
|
|
27331
27335
|
if (typeof window < "u")
|
|
27332
27336
|
try {
|
|
27333
|
-
var
|
|
27337
|
+
var Ji = Object.defineProperty({}, "passive", {
|
|
27334
27338
|
get: function() {
|
|
27335
27339
|
return Il = !0, !0;
|
|
27336
27340
|
}
|
|
27337
27341
|
});
|
|
27338
|
-
window.addEventListener("test",
|
|
27342
|
+
window.addEventListener("test", Ji, Ji), window.removeEventListener("test", Ji, Ji);
|
|
27339
27343
|
} catch {
|
|
27340
27344
|
Il = !1;
|
|
27341
27345
|
}
|
|
@@ -27402,7 +27406,7 @@ var jn = Il ? { passive: !1 } : !1, qP = function(e) {
|
|
|
27402
27406
|
l && (t.contains(a) || t === a)
|
|
27403
27407
|
);
|
|
27404
27408
|
return (f && Math.abs(c) < 1 || !f && Math.abs(h) < 1) && (u = !0), u;
|
|
27405
|
-
},
|
|
27409
|
+
}, Xi = function(e) {
|
|
27406
27410
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
27407
27411
|
}, eh = function(e) {
|
|
27408
27412
|
return [e.deltaX, e.deltaY];
|
|
@@ -27436,7 +27440,7 @@ function nL(e) {
|
|
|
27436
27440
|
var a = E.useCallback(function(p, g) {
|
|
27437
27441
|
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
27438
27442
|
return !s.current.allowPinchZoom;
|
|
27439
|
-
var v =
|
|
27443
|
+
var v = Xi(p), y = n.current, w = "deltaX" in p ? p.deltaX : y[0] - v[0], C = "deltaY" in p ? p.deltaY : y[1] - v[1], S, k = p.target, I = Math.abs(w) > Math.abs(C) ? "h" : "v";
|
|
27440
27444
|
if ("touches" in p && I === "h" && k.type === "range")
|
|
27441
27445
|
return !1;
|
|
27442
27446
|
var R = Xd(I, k);
|
|
@@ -27451,7 +27455,7 @@ function nL(e) {
|
|
|
27451
27455
|
}, []), l = E.useCallback(function(p) {
|
|
27452
27456
|
var g = p;
|
|
27453
27457
|
if (!(!Vn.length || Vn[Vn.length - 1] !== o)) {
|
|
27454
|
-
var v = "deltaY" in g ? eh(g) :
|
|
27458
|
+
var v = "deltaY" in g ? eh(g) : Xi(g), y = t.current.filter(function(S) {
|
|
27455
27459
|
return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && XP(S.delta, v);
|
|
27456
27460
|
})[0];
|
|
27457
27461
|
if (y && y.should) {
|
|
@@ -27473,11 +27477,11 @@ function nL(e) {
|
|
|
27473
27477
|
});
|
|
27474
27478
|
}, 1);
|
|
27475
27479
|
}, []), f = E.useCallback(function(p) {
|
|
27476
|
-
n.current =
|
|
27480
|
+
n.current = Xi(p), r.current = void 0;
|
|
27477
27481
|
}, []), c = E.useCallback(function(p) {
|
|
27478
27482
|
u(p.type, eh(p), p.target, a(p, e.lockRef.current));
|
|
27479
27483
|
}, []), h = E.useCallback(function(p) {
|
|
27480
|
-
u(p.type,
|
|
27484
|
+
u(p.type, Xi(p), p.target, a(p, e.lockRef.current));
|
|
27481
27485
|
}, []);
|
|
27482
27486
|
E.useEffect(function() {
|
|
27483
27487
|
return Vn.push(o), e.setCallbacks({
|
|
@@ -27513,7 +27517,7 @@ var oL = function(e) {
|
|
|
27513
27517
|
return null;
|
|
27514
27518
|
var t = Array.isArray(e) ? e[0] : e;
|
|
27515
27519
|
return t.ownerDocument.body;
|
|
27516
|
-
}, Wn = /* @__PURE__ */ new WeakMap(),
|
|
27520
|
+
}, Wn = /* @__PURE__ */ new WeakMap(), eo = /* @__PURE__ */ new WeakMap(), to = {}, ka = 0, ev = function(e) {
|
|
27517
27521
|
return e && (e.host || ev(e.parentNode));
|
|
27518
27522
|
}, sL = function(e, t) {
|
|
27519
27523
|
return t.map(function(n) {
|
|
@@ -27526,8 +27530,8 @@ var oL = function(e) {
|
|
|
27526
27530
|
});
|
|
27527
27531
|
}, aL = function(e, t, n, r) {
|
|
27528
27532
|
var i = sL(t, Array.isArray(e) ? e : [e]);
|
|
27529
|
-
|
|
27530
|
-
var o =
|
|
27533
|
+
to[n] || (to[n] = /* @__PURE__ */ new WeakMap());
|
|
27534
|
+
var o = to[n], s = [], a = /* @__PURE__ */ new Set(), l = new Set(i), u = function(c) {
|
|
27531
27535
|
!c || a.has(c) || (a.add(c), u(c.parentNode));
|
|
27532
27536
|
};
|
|
27533
27537
|
i.forEach(u);
|
|
@@ -27538,7 +27542,7 @@ var oL = function(e) {
|
|
|
27538
27542
|
else
|
|
27539
27543
|
try {
|
|
27540
27544
|
var d = h.getAttribute(r), m = d !== null && d !== "false", p = (Wn.get(h) || 0) + 1, g = (o.get(h) || 0) + 1;
|
|
27541
|
-
Wn.set(h, p), o.set(h, g), s.push(h), p === 1 && m &&
|
|
27545
|
+
Wn.set(h, p), o.set(h, g), s.push(h), p === 1 && m && eo.set(h, !0), g === 1 && h.setAttribute(n, "true"), m || h.setAttribute(r, "true");
|
|
27542
27546
|
} catch (v) {
|
|
27543
27547
|
console.error("aria-hidden: cannot operate on ", h, v);
|
|
27544
27548
|
}
|
|
@@ -27547,8 +27551,8 @@ var oL = function(e) {
|
|
|
27547
27551
|
return f(t), a.clear(), ka++, function() {
|
|
27548
27552
|
s.forEach(function(c) {
|
|
27549
27553
|
var h = Wn.get(c) - 1, d = o.get(c) - 1;
|
|
27550
|
-
Wn.set(c, h), o.set(c, d), h || (
|
|
27551
|
-
}), ka--, ka || (Wn = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(),
|
|
27554
|
+
Wn.set(c, h), o.set(c, d), h || (eo.has(c) || c.removeAttribute(r), eo.delete(c)), d || c.removeAttribute(n);
|
|
27555
|
+
}), ka--, ka || (Wn = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), eo = /* @__PURE__ */ new WeakMap(), to = {});
|
|
27552
27556
|
};
|
|
27553
27557
|
}, lL = function(e, t, n) {
|
|
27554
27558
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -27576,9 +27580,9 @@ var oL = function(e) {
|
|
|
27576
27580
|
scope: t,
|
|
27577
27581
|
triggerRef: a,
|
|
27578
27582
|
contentRef: l,
|
|
27579
|
-
contentId:
|
|
27580
|
-
titleId:
|
|
27581
|
-
descriptionId:
|
|
27583
|
+
contentId: co(),
|
|
27584
|
+
titleId: co(),
|
|
27585
|
+
descriptionId: co(),
|
|
27582
27586
|
open: u,
|
|
27583
27587
|
onOpenChange: f,
|
|
27584
27588
|
onOpenToggle: E.useCallback(() => f((c) => !c), [f]),
|
|
@@ -27777,7 +27781,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
27777
27781
|
t && i && (document.getElementById(t) || console.warn(r));
|
|
27778
27782
|
}, [r, e, t]), null;
|
|
27779
27783
|
}, bL = nv, wL = iv, xL = sv, SL = lv, kL = cv, EL = dv;
|
|
27780
|
-
function
|
|
27784
|
+
function ui({
|
|
27781
27785
|
open: e,
|
|
27782
27786
|
onOpenChange: t,
|
|
27783
27787
|
children: n
|
|
@@ -27808,9 +27812,9 @@ function CL({
|
|
|
27808
27812
|
] })
|
|
27809
27813
|
] }) });
|
|
27810
27814
|
}
|
|
27811
|
-
|
|
27812
|
-
|
|
27813
|
-
|
|
27815
|
+
ui.Button = wL;
|
|
27816
|
+
ui.Close = EL;
|
|
27817
|
+
ui.Content = CL;
|
|
27814
27818
|
const AL = rt(({ children: e, onClick: t, avatarUrl: n, botName: r, description: i, onClose: o, ...s }, a) => {
|
|
27815
27819
|
const { messagePreview: l } = ge, { container: u, closeButton: f, message: c, avatar: h, description: d } = l ?? {};
|
|
27816
27820
|
return /* @__PURE__ */ ae("div", { ...s, ...u, ref: a, onClick: t, children: [
|
|
@@ -27855,7 +27859,7 @@ export {
|
|
|
27855
27859
|
_m as MessageContext,
|
|
27856
27860
|
Cy as MessageList,
|
|
27857
27861
|
AL as MessagePreview,
|
|
27858
|
-
|
|
27862
|
+
ui as Modal,
|
|
27859
27863
|
Fm as ModalContext,
|
|
27860
27864
|
EM as ModalProvider,
|
|
27861
27865
|
ws as NETWORK_ERROR,
|
|
@@ -27878,7 +27882,7 @@ export {
|
|
|
27878
27882
|
hI as getUseChatSoundStore,
|
|
27879
27883
|
lI as getUseWebchatClientStore,
|
|
27880
27884
|
MM as integrationMessagePayloadToBlockPayload,
|
|
27881
|
-
|
|
27885
|
+
Gr as integrationMessageToBlockMessage,
|
|
27882
27886
|
Mw as isCommonApiErrorType,
|
|
27883
27887
|
Pw as isEventError,
|
|
27884
27888
|
Sw as isFileType,
|
|
@@ -27895,7 +27899,7 @@ export {
|
|
|
27895
27899
|
k2 as useUser,
|
|
27896
27900
|
HL as useWebchat,
|
|
27897
27901
|
Cu as useWebchatContext,
|
|
27898
|
-
|
|
27902
|
+
ti as useWebchatStore,
|
|
27899
27903
|
ge as webchatClasses,
|
|
27900
27904
|
fp as webhookHandlerErrorMap
|
|
27901
27905
|
};
|