@theroutingcompany/components 0.0.6 → 0.0.7
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as J from "react";
|
|
2
|
-
import de, { createContext as _t, useMemo as
|
|
2
|
+
import de, { createContext as _t, useMemo as xe, createElement as _, useContext as Ae, useCallback as K, useLayoutEffect as fr, useRef as z, useEffect as q, useState as ee, forwardRef as F, Children as Qe, isValidElement as xt, cloneElement as St, Fragment as pt, useReducer as pp } from "react";
|
|
3
3
|
import * as js from "react-dom";
|
|
4
4
|
import hp, { flushSync as Bs, createPortal as di } from "react-dom";
|
|
5
5
|
import I, { keyframes as gr } from "styled-components";
|
|
@@ -18,7 +18,7 @@ function T() {
|
|
|
18
18
|
function Ep(e, t) {
|
|
19
19
|
const r = /* @__PURE__ */ _t(t);
|
|
20
20
|
function n(i) {
|
|
21
|
-
const { children: a, ...s } = i, c =
|
|
21
|
+
const { children: a, ...s } = i, c = xe(
|
|
22
22
|
() => s,
|
|
23
23
|
Object.values(s)
|
|
24
24
|
);
|
|
@@ -48,7 +48,7 @@ function De(e, t = []) {
|
|
|
48
48
|
a
|
|
49
49
|
];
|
|
50
50
|
function l(f) {
|
|
51
|
-
const { scope: h, children: p, ...v } = f, b = (h == null ? void 0 : h[e][c]) || s, m =
|
|
51
|
+
const { scope: h, children: p, ...v } = f, b = (h == null ? void 0 : h[e][c]) || s, m = xe(
|
|
52
52
|
() => v,
|
|
53
53
|
Object.values(v)
|
|
54
54
|
);
|
|
@@ -73,7 +73,7 @@ function De(e, t = []) {
|
|
|
73
73
|
const i = r.map((a) => /* @__PURE__ */ _t(a));
|
|
74
74
|
return function(s) {
|
|
75
75
|
const c = (s == null ? void 0 : s[e]) || i;
|
|
76
|
-
return
|
|
76
|
+
return xe(
|
|
77
77
|
() => ({
|
|
78
78
|
[`__scope${e}`]: {
|
|
79
79
|
...s,
|
|
@@ -111,7 +111,7 @@ function Tp(...e) {
|
|
|
111
111
|
...f
|
|
112
112
|
};
|
|
113
113
|
}, {});
|
|
114
|
-
return
|
|
114
|
+
return xe(
|
|
115
115
|
() => ({
|
|
116
116
|
[`__scope${t.scopeName}`]: a
|
|
117
117
|
}),
|
|
@@ -158,7 +158,7 @@ function ke(e) {
|
|
|
158
158
|
const t = z(e);
|
|
159
159
|
return q(() => {
|
|
160
160
|
t.current = e;
|
|
161
|
-
}),
|
|
161
|
+
}), xe(
|
|
162
162
|
() => (...r) => {
|
|
163
163
|
var n;
|
|
164
164
|
return (n = t.current) === null || n === void 0 ? void 0 : n.call(t, ...r);
|
|
@@ -303,13 +303,13 @@ const Ks = /* @__PURE__ */ _t({
|
|
|
303
303
|
(A) => h(A)
|
|
304
304
|
), m = Array.from(u.layers), [y] = [
|
|
305
305
|
...u.layersWithOutsidePointerEventsDisabled
|
|
306
|
-
].slice(-1), $ = m.indexOf(y), w = f ? m.indexOf(f) : -1, g = u.layersWithOutsidePointerEventsDisabled.size > 0,
|
|
307
|
-
const L = A.target,
|
|
306
|
+
].slice(-1), $ = m.indexOf(y), w = f ? m.indexOf(f) : -1, g = u.layersWithOutsidePointerEventsDisabled.size > 0, D = w >= $, M = zp((A) => {
|
|
307
|
+
const L = A.target, Z = [
|
|
308
308
|
...u.branches
|
|
309
309
|
].some(
|
|
310
310
|
(E) => E.contains(L)
|
|
311
311
|
);
|
|
312
|
-
!
|
|
312
|
+
!D || Z || (i == null || i(A), s == null || s(A), A.defaultPrevented || c == null || c());
|
|
313
313
|
}, p), R = Vp((A) => {
|
|
314
314
|
const L = A.target;
|
|
315
315
|
[
|
|
@@ -341,12 +341,12 @@ const Ks = /* @__PURE__ */ _t({
|
|
|
341
341
|
}, []), /* @__PURE__ */ _(oe.div, T({}, l, {
|
|
342
342
|
ref: b,
|
|
343
343
|
style: {
|
|
344
|
-
pointerEvents: g ?
|
|
344
|
+
pointerEvents: g ? D ? "auto" : "none" : void 0,
|
|
345
345
|
...e.style
|
|
346
346
|
},
|
|
347
347
|
onFocusCapture: G(e.onFocusCapture, R.onFocusCapture),
|
|
348
348
|
onBlurCapture: G(e.onBlurCapture, R.onBlurCapture),
|
|
349
|
-
onPointerDownCapture: G(e.onPointerDownCapture,
|
|
349
|
+
onPointerDownCapture: G(e.onPointerDownCapture, M.onPointerDownCapture)
|
|
350
350
|
}));
|
|
351
351
|
}), Fp = /* @__PURE__ */ F((e, t) => {
|
|
352
352
|
const r = Ae(Ks), n = z(null), o = pe(t, n);
|
|
@@ -818,13 +818,13 @@ function ih() {
|
|
|
818
818
|
r = $("react.element"), n = $("react.portal"), e.Fragment = $("react.fragment"), o = $("react.strict_mode"), i = $("react.profiler"), a = $("react.provider"), s = $("react.context"), c = $("react.forward_ref"), l = $("react.suspense"), u = $("react.suspense_list"), f = $("react.memo"), h = $("react.lazy"), p = $("react.block"), v = $("react.server.block"), b = $("react.fundamental"), $("react.scope"), $("react.opaque.id"), m = $("react.debug_trace_mode"), $("react.offscreen"), y = $("react.legacy_hidden");
|
|
819
819
|
}
|
|
820
820
|
var w = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
|
|
821
|
-
function
|
|
821
|
+
function D(x) {
|
|
822
822
|
if (x === null || typeof x != "object")
|
|
823
823
|
return null;
|
|
824
824
|
var V = w && x[w] || x[g];
|
|
825
825
|
return typeof V == "function" ? V : null;
|
|
826
826
|
}
|
|
827
|
-
var
|
|
827
|
+
var M = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
828
828
|
function R(x) {
|
|
829
829
|
{
|
|
830
830
|
for (var V = arguments.length, U = new Array(V > 1 ? V - 1 : 0), le = 1; le < V; le++)
|
|
@@ -834,10 +834,10 @@ function ih() {
|
|
|
834
834
|
}
|
|
835
835
|
function A(x, V, U) {
|
|
836
836
|
{
|
|
837
|
-
var le =
|
|
838
|
-
if (
|
|
839
|
-
var me = re(
|
|
840
|
-
ge +=
|
|
837
|
+
var le = M.ReactDebugCurrentFrame, ge = "";
|
|
838
|
+
if (ye) {
|
|
839
|
+
var me = re(ye.type), ve = ye._owner;
|
|
840
|
+
ge += Y(me, ye._source, ve && re(ve.type));
|
|
841
841
|
}
|
|
842
842
|
ge += le.getStackAddendum(), ge !== "" && (V += "%s", U = U.concat([ge]));
|
|
843
843
|
var ue = U.map(function(Ce) {
|
|
@@ -847,18 +847,18 @@ function ih() {
|
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
849
|
var L = !1;
|
|
850
|
-
function
|
|
850
|
+
function Z(x) {
|
|
851
851
|
return !!(typeof x == "string" || typeof x == "function" || x === e.Fragment || x === i || x === m || x === o || x === l || x === u || x === y || L || typeof x == "object" && x !== null && (x.$$typeof === h || x.$$typeof === f || x.$$typeof === a || x.$$typeof === s || x.$$typeof === c || x.$$typeof === b || x.$$typeof === p || x[0] === v));
|
|
852
852
|
}
|
|
853
853
|
var E = /^(.*)[\\\/]/;
|
|
854
|
-
function
|
|
854
|
+
function Y(x, V, U) {
|
|
855
855
|
var le = "";
|
|
856
856
|
if (V) {
|
|
857
857
|
var ge = V.fileName, me = ge.replace(E, "");
|
|
858
858
|
if (/^index\./.test(me)) {
|
|
859
|
-
var
|
|
860
|
-
if (
|
|
861
|
-
var ue =
|
|
859
|
+
var ve = ge.match(E);
|
|
860
|
+
if (ve) {
|
|
861
|
+
var ue = ve[1];
|
|
862
862
|
if (ue) {
|
|
863
863
|
var Ce = ue.replace(E, "");
|
|
864
864
|
me = Ce + "/" + me;
|
|
@@ -871,11 +871,11 @@ function ih() {
|
|
|
871
871
|
return `
|
|
872
872
|
in ` + (x || "Unknown") + le;
|
|
873
873
|
}
|
|
874
|
-
var
|
|
874
|
+
var k = 1;
|
|
875
875
|
function S(x) {
|
|
876
|
-
return x._status ===
|
|
876
|
+
return x._status === k ? x._result : null;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function ie(x, V, U) {
|
|
879
879
|
var le = V.displayName || V.name || "";
|
|
880
880
|
return x.displayName || (le !== "" ? U + "(" + le + ")" : U);
|
|
881
881
|
}
|
|
@@ -907,7 +907,7 @@ function ih() {
|
|
|
907
907
|
case a:
|
|
908
908
|
return "Context.Provider";
|
|
909
909
|
case c:
|
|
910
|
-
return
|
|
910
|
+
return ie(x, x.render, "ForwardRef");
|
|
911
911
|
case f:
|
|
912
912
|
return re(x.type);
|
|
913
913
|
case p:
|
|
@@ -921,32 +921,32 @@ function ih() {
|
|
|
921
921
|
}
|
|
922
922
|
return null;
|
|
923
923
|
}
|
|
924
|
-
var
|
|
925
|
-
|
|
926
|
-
var
|
|
924
|
+
var be = {};
|
|
925
|
+
M.ReactDebugCurrentFrame;
|
|
926
|
+
var ye = null;
|
|
927
927
|
function ne(x) {
|
|
928
|
-
|
|
928
|
+
ye = x;
|
|
929
929
|
}
|
|
930
930
|
function P(x, V, U, le, ge) {
|
|
931
931
|
{
|
|
932
932
|
var me = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
933
|
-
for (var
|
|
934
|
-
if (me(x,
|
|
933
|
+
for (var ve in x)
|
|
934
|
+
if (me(x, ve)) {
|
|
935
935
|
var ue = void 0;
|
|
936
936
|
try {
|
|
937
|
-
if (typeof x[
|
|
938
|
-
var Ce = Error((le || "React class") + ": " + U + " type `" +
|
|
937
|
+
if (typeof x[ve] != "function") {
|
|
938
|
+
var Ce = Error((le || "React class") + ": " + U + " type `" + ve + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof x[ve] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
939
939
|
throw Ce.name = "Invariant Violation", Ce;
|
|
940
940
|
}
|
|
941
|
-
ue = x[
|
|
941
|
+
ue = x[ve](V, ve, le, U, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
942
942
|
} catch (Ue) {
|
|
943
943
|
ue = Ue;
|
|
944
944
|
}
|
|
945
|
-
ue && !(ue instanceof Error) && (ne(ge), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", le || "React class", U,
|
|
945
|
+
ue && !(ue instanceof Error) && (ne(ge), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", le || "React class", U, ve, typeof ue), ne(null)), ue instanceof Error && !(ue.message in be) && (be[ue.message] = !0, ne(ge), R("Failed %s type: %s", U, ue.message), ne(null));
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
|
-
var
|
|
949
|
+
var N = M.ReactCurrentOwner, W = Object.prototype.hasOwnProperty, B = {
|
|
950
950
|
key: !0,
|
|
951
951
|
ref: !0,
|
|
952
952
|
__self: !0,
|
|
@@ -970,9 +970,9 @@ function ih() {
|
|
|
970
970
|
return x.key !== void 0;
|
|
971
971
|
}
|
|
972
972
|
function ce(x, V) {
|
|
973
|
-
if (typeof x.ref == "string" &&
|
|
974
|
-
var U = re(
|
|
975
|
-
X[U] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', re(
|
|
973
|
+
if (typeof x.ref == "string" && N.current && V && N.current.stateNode !== V) {
|
|
974
|
+
var U = re(N.current.type);
|
|
975
|
+
X[U] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', re(N.current.type), x.ref), X[U] = !0);
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
function se(x, V) {
|
|
@@ -997,13 +997,13 @@ function ih() {
|
|
|
997
997
|
});
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
|
-
var
|
|
1000
|
+
var _e = function(x, V, U, le, ge, me, ve) {
|
|
1001
1001
|
var ue = {
|
|
1002
1002
|
$$typeof: r,
|
|
1003
1003
|
type: x,
|
|
1004
1004
|
key: V,
|
|
1005
1005
|
ref: U,
|
|
1006
|
-
props:
|
|
1006
|
+
props: ve,
|
|
1007
1007
|
_owner: me
|
|
1008
1008
|
};
|
|
1009
1009
|
return ue._store = {}, Object.defineProperty(ue._store, "validated", {
|
|
@@ -1025,26 +1025,26 @@ function ih() {
|
|
|
1025
1025
|
};
|
|
1026
1026
|
function Te(x, V, U, le, ge) {
|
|
1027
1027
|
{
|
|
1028
|
-
var me,
|
|
1028
|
+
var me, ve = {}, ue = null, Ce = null;
|
|
1029
1029
|
U !== void 0 && (ue = "" + U), te(V) && (ue = "" + V.key), Q(V) && (Ce = V.ref, ce(V, ge));
|
|
1030
1030
|
for (me in V)
|
|
1031
|
-
W.call(V, me) && !B.hasOwnProperty(me) && (
|
|
1031
|
+
W.call(V, me) && !B.hasOwnProperty(me) && (ve[me] = V[me]);
|
|
1032
1032
|
if (x && x.defaultProps) {
|
|
1033
1033
|
var Ue = x.defaultProps;
|
|
1034
1034
|
for (me in Ue)
|
|
1035
|
-
|
|
1035
|
+
ve[me] === void 0 && (ve[me] = Ue[me]);
|
|
1036
1036
|
}
|
|
1037
1037
|
if (ue || Ce) {
|
|
1038
1038
|
var at = typeof x == "function" ? x.displayName || x.name || "Unknown" : x;
|
|
1039
|
-
ue && se(
|
|
1039
|
+
ue && se(ve, at), Ce && we(ve, at);
|
|
1040
1040
|
}
|
|
1041
|
-
return
|
|
1041
|
+
return _e(x, ue, Ce, ge, le, N.current, ve);
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
var Ve =
|
|
1045
|
-
|
|
1044
|
+
var Ve = M.ReactCurrentOwner;
|
|
1045
|
+
M.ReactDebugCurrentFrame;
|
|
1046
1046
|
function Ie(x) {
|
|
1047
|
-
|
|
1047
|
+
ye = x;
|
|
1048
1048
|
}
|
|
1049
1049
|
var je;
|
|
1050
1050
|
je = !1;
|
|
@@ -1112,10 +1112,10 @@ Check the top-level render call using <` + U + ">.");
|
|
|
1112
1112
|
else if (Pe(x))
|
|
1113
1113
|
x._store && (x._store.validated = !0);
|
|
1114
1114
|
else if (x) {
|
|
1115
|
-
var ge =
|
|
1115
|
+
var ge = D(x);
|
|
1116
1116
|
if (typeof ge == "function" && ge !== x.entries)
|
|
1117
|
-
for (var me = ge.call(x),
|
|
1118
|
-
Pe(
|
|
1117
|
+
for (var me = ge.call(x), ve; !(ve = me.next()).done; )
|
|
1118
|
+
Pe(ve.value) && Ot(ve.value, V);
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
@@ -1156,8 +1156,8 @@ Check the top-level render call using <` + U + ">.");
|
|
|
1156
1156
|
}
|
|
1157
1157
|
function We(x, V, U, le, ge, me) {
|
|
1158
1158
|
{
|
|
1159
|
-
var
|
|
1160
|
-
if (!
|
|
1159
|
+
var ve = Z(x);
|
|
1160
|
+
if (!ve) {
|
|
1161
1161
|
var ue = "";
|
|
1162
1162
|
(x === void 0 || typeof x == "object" && x !== null && Object.keys(x).length === 0) && (ue += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1163
1163
|
var Ce = Me(ge);
|
|
@@ -1168,7 +1168,7 @@ Check the top-level render call using <` + U + ">.");
|
|
|
1168
1168
|
var at = Te(x, V, U, ge, me);
|
|
1169
1169
|
if (at == null)
|
|
1170
1170
|
return at;
|
|
1171
|
-
if (
|
|
1171
|
+
if (ve) {
|
|
1172
1172
|
var kt = V.children;
|
|
1173
1173
|
if (kt !== void 0)
|
|
1174
1174
|
if (le)
|
|
@@ -1283,7 +1283,7 @@ var Xs = ch(), Mn = function() {
|
|
|
1283
1283
|
onScrollCapture: Mn,
|
|
1284
1284
|
onWheelCapture: Mn,
|
|
1285
1285
|
onTouchMoveCapture: Mn
|
|
1286
|
-
}), o = n[0], i = n[1], a = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, f = e.shards, h = e.sideCar, p = e.noIsolation, v = e.inert, b = e.allowPinchZoom, m = e.as, y = m === void 0 ? "div" : m, $ = qs(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), w = h, g = rh([r, t]),
|
|
1286
|
+
}), o = n[0], i = n[1], a = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, f = e.shards, h = e.sideCar, p = e.noIsolation, v = e.inert, b = e.allowPinchZoom, m = e.as, y = m === void 0 ? "div" : m, $ = qs(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), w = h, g = rh([r, t]), D = Ke(Ke({}, $), o);
|
|
1287
1287
|
return /* @__PURE__ */ fe(vi, {
|
|
1288
1288
|
children: [u && /* @__PURE__ */ C(w, {
|
|
1289
1289
|
sideCar: Xs,
|
|
@@ -1294,10 +1294,10 @@ var Xs = ch(), Mn = function() {
|
|
|
1294
1294
|
setCallbacks: i,
|
|
1295
1295
|
allowPinchZoom: !!b,
|
|
1296
1296
|
lockRef: r
|
|
1297
|
-
}), a ? J.cloneElement(J.Children.only(s), Ke(Ke({},
|
|
1297
|
+
}), a ? J.cloneElement(J.Children.only(s), Ke(Ke({}, D), {
|
|
1298
1298
|
ref: g
|
|
1299
1299
|
})) : /* @__PURE__ */ C(y, {
|
|
1300
|
-
...Ke({},
|
|
1300
|
+
...Ke({}, D, {
|
|
1301
1301
|
className: c,
|
|
1302
1302
|
ref: g
|
|
1303
1303
|
}),
|
|
@@ -1522,31 +1522,31 @@ function Dh(e) {
|
|
|
1522
1522
|
var s = J.useCallback(function(b, m) {
|
|
1523
1523
|
if ("touches" in b && b.touches.length === 2)
|
|
1524
1524
|
return !a.current.allowPinchZoom;
|
|
1525
|
-
var y = Rr(b), $ = r.current, w = "deltaX" in b ? b.deltaX : $[0] - y[0], g = "deltaY" in b ? b.deltaY : $[1] - y[1],
|
|
1526
|
-
if ("touches" in b && R === "h" &&
|
|
1525
|
+
var y = Rr(b), $ = r.current, w = "deltaX" in b ? b.deltaX : $[0] - y[0], g = "deltaY" in b ? b.deltaY : $[1] - y[1], D, M = b.target, R = Math.abs(w) > Math.abs(g) ? "h" : "v";
|
|
1526
|
+
if ("touches" in b && R === "h" && M.type === "range")
|
|
1527
1527
|
return !1;
|
|
1528
|
-
var A = $a(R,
|
|
1528
|
+
var A = $a(R, M);
|
|
1529
1529
|
if (!A)
|
|
1530
1530
|
return !0;
|
|
1531
|
-
if (A ?
|
|
1531
|
+
if (A ? D = R : (D = R === "v" ? "h" : "v", A = $a(R, M)), !A)
|
|
1532
1532
|
return !1;
|
|
1533
|
-
if (!n.current && "changedTouches" in b && (w || g) && (n.current =
|
|
1533
|
+
if (!n.current && "changedTouches" in b && (w || g) && (n.current = D), !D)
|
|
1534
1534
|
return !0;
|
|
1535
|
-
var L = n.current ||
|
|
1535
|
+
var L = n.current || D;
|
|
1536
1536
|
return Ch(L, m, b, L === "h" ? w : g, !0);
|
|
1537
1537
|
}, []), c = J.useCallback(function(b) {
|
|
1538
1538
|
var m = b;
|
|
1539
1539
|
if (!(!At.length || At[At.length - 1] !== i)) {
|
|
1540
|
-
var y = "deltaY" in m ? ya(m) : Rr(m), $ = t.current.filter(function(
|
|
1541
|
-
return
|
|
1540
|
+
var y = "deltaY" in m ? ya(m) : Rr(m), $ = t.current.filter(function(D) {
|
|
1541
|
+
return D.name === m.type && D.target === m.target && Rh(D.delta, y);
|
|
1542
1542
|
})[0];
|
|
1543
1543
|
if ($ && $.should) {
|
|
1544
1544
|
m.cancelable && m.preventDefault();
|
|
1545
1545
|
return;
|
|
1546
1546
|
}
|
|
1547
1547
|
if (!$) {
|
|
1548
|
-
var w = (a.current.shards || []).map(_a).filter(Boolean).filter(function(
|
|
1549
|
-
return
|
|
1548
|
+
var w = (a.current.shards || []).map(_a).filter(Boolean).filter(function(D) {
|
|
1549
|
+
return D.contains(m.target);
|
|
1550
1550
|
}), g = w.length > 0 ? s(m, w[0]) : !a.current.noIsolation;
|
|
1551
1551
|
g && m.cancelable && m.preventDefault();
|
|
1552
1552
|
}
|
|
@@ -2382,7 +2382,7 @@ const _i = {
|
|
|
2382
2382
|
let D0 = Boolean(typeof window < "u" && window.document && window.document.createElement);
|
|
2383
2383
|
function I0(e) {
|
|
2384
2384
|
let t = Ae(wc);
|
|
2385
|
-
return t === _i && !D0 && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),
|
|
2385
|
+
return t === _i && !D0 && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."), xe(() => e || `react-aria${t.prefix}-${++t.current}`, [
|
|
2386
2386
|
e
|
|
2387
2387
|
]);
|
|
2388
2388
|
}
|
|
@@ -2755,42 +2755,42 @@ function Pi(e) {
|
|
|
2755
2755
|
target: null,
|
|
2756
2756
|
isOverTarget: !1,
|
|
2757
2757
|
pointerType: null
|
|
2758
|
-
}), { addGlobalListener: y, removeAllGlobalListeners: $ } = Cc(), w =
|
|
2759
|
-
let g = m.current,
|
|
2760
|
-
let { onPressStart:
|
|
2761
|
-
|
|
2758
|
+
}), { addGlobalListener: y, removeAllGlobalListeners: $ } = Cc(), w = xe(() => {
|
|
2759
|
+
let g = m.current, D = (E, Y) => {
|
|
2760
|
+
let { onPressStart: k, onPressChange: S, isDisabled: ie } = p.current;
|
|
2761
|
+
ie || g.didFirePressStart || (k && k({
|
|
2762
2762
|
type: "pressstart",
|
|
2763
|
-
pointerType:
|
|
2763
|
+
pointerType: Y,
|
|
2764
2764
|
target: E.currentTarget,
|
|
2765
2765
|
shiftKey: E.shiftKey,
|
|
2766
2766
|
metaKey: E.metaKey,
|
|
2767
2767
|
ctrlKey: E.ctrlKey,
|
|
2768
2768
|
altKey: E.altKey
|
|
2769
2769
|
}), S && S(!0), g.didFirePressStart = !0, b(!0));
|
|
2770
|
-
},
|
|
2771
|
-
let { onPressEnd: S, onPressChange:
|
|
2770
|
+
}, M = (E, Y, k = !0) => {
|
|
2771
|
+
let { onPressEnd: S, onPressChange: ie, onPress: re, isDisabled: be } = p.current;
|
|
2772
2772
|
!g.didFirePressStart || (g.ignoreClickAfterPress = !0, g.didFirePressStart = !1, S && S({
|
|
2773
2773
|
type: "pressend",
|
|
2774
|
-
pointerType:
|
|
2774
|
+
pointerType: Y,
|
|
2775
2775
|
target: E.currentTarget,
|
|
2776
2776
|
shiftKey: E.shiftKey,
|
|
2777
2777
|
metaKey: E.metaKey,
|
|
2778
2778
|
ctrlKey: E.ctrlKey,
|
|
2779
2779
|
altKey: E.altKey
|
|
2780
|
-
}),
|
|
2780
|
+
}), ie && ie(!1), b(!1), re && k && !be && re({
|
|
2781
2781
|
type: "press",
|
|
2782
|
-
pointerType:
|
|
2782
|
+
pointerType: Y,
|
|
2783
2783
|
target: E.currentTarget,
|
|
2784
2784
|
shiftKey: E.shiftKey,
|
|
2785
2785
|
metaKey: E.metaKey,
|
|
2786
2786
|
ctrlKey: E.ctrlKey,
|
|
2787
2787
|
altKey: E.altKey
|
|
2788
2788
|
}));
|
|
2789
|
-
}, R = (E,
|
|
2790
|
-
let { onPressUp:
|
|
2791
|
-
S ||
|
|
2789
|
+
}, R = (E, Y) => {
|
|
2790
|
+
let { onPressUp: k, isDisabled: S } = p.current;
|
|
2791
|
+
S || k && k({
|
|
2792
2792
|
type: "pressup",
|
|
2793
|
-
pointerType:
|
|
2793
|
+
pointerType: Y,
|
|
2794
2794
|
target: E.currentTarget,
|
|
2795
2795
|
shiftKey: E.shiftKey,
|
|
2796
2796
|
metaKey: E.metaKey,
|
|
@@ -2798,22 +2798,22 @@ function Pi(e) {
|
|
|
2798
2798
|
altKey: E.altKey
|
|
2799
2799
|
});
|
|
2800
2800
|
}, A = (E) => {
|
|
2801
|
-
g.isPressed && (g.isOverTarget &&
|
|
2801
|
+
g.isPressed && (g.isOverTarget && M(Ze(g.target, E), g.pointerType, !1), g.isPressed = !1, g.isOverTarget = !1, g.activePointerId = null, g.pointerType = null, $(), u || Ir(g.target));
|
|
2802
2802
|
}, L = {
|
|
2803
2803
|
onKeyDown(E) {
|
|
2804
|
-
zn(E.nativeEvent, E.currentTarget) && E.currentTarget.contains(E.target) ? (Ea(E.target, E.key) && E.preventDefault(), E.stopPropagation(), !g.isPressed && !E.repeat && (g.target = E.currentTarget, g.isPressed = !0,
|
|
2804
|
+
zn(E.nativeEvent, E.currentTarget) && E.currentTarget.contains(E.target) ? (Ea(E.target, E.key) && E.preventDefault(), E.stopPropagation(), !g.isPressed && !E.repeat && (g.target = E.currentTarget, g.isPressed = !0, D(E, "keyboard"), y(document, "keyup", Z, !1))) : E.key === "Enter" && Oo(E.currentTarget) && E.stopPropagation();
|
|
2805
2805
|
},
|
|
2806
2806
|
onKeyUp(E) {
|
|
2807
2807
|
zn(E.nativeEvent, E.currentTarget) && !E.repeat && E.currentTarget.contains(E.target) && R(Ze(g.target, E), "keyboard");
|
|
2808
2808
|
},
|
|
2809
2809
|
onClick(E) {
|
|
2810
|
-
E && !E.currentTarget.contains(E.target) || E && E.button === 0 && (E.stopPropagation(), a && E.preventDefault(), !g.ignoreClickAfterPress && !g.ignoreEmulatedMouseEvents && (g.pointerType === "virtual" || To(E.nativeEvent)) && (!a && !c && jt(E.currentTarget),
|
|
2810
|
+
E && !E.currentTarget.contains(E.target) || E && E.button === 0 && (E.stopPropagation(), a && E.preventDefault(), !g.ignoreClickAfterPress && !g.ignoreEmulatedMouseEvents && (g.pointerType === "virtual" || To(E.nativeEvent)) && (!a && !c && jt(E.currentTarget), D(E, "virtual"), R(E, "virtual"), M(E, "virtual")), g.ignoreEmulatedMouseEvents = !1, g.ignoreClickAfterPress = !1);
|
|
2811
2811
|
}
|
|
2812
|
-
},
|
|
2812
|
+
}, Z = (E) => {
|
|
2813
2813
|
if (g.isPressed && zn(E, g.target)) {
|
|
2814
2814
|
Ea(E.target, E.key) && E.preventDefault(), E.stopPropagation(), g.isPressed = !1;
|
|
2815
|
-
let
|
|
2816
|
-
|
|
2815
|
+
let Y = E.target;
|
|
2816
|
+
M(Ze(g.target, E), "keyboard", g.target.contains(Y)), $(), g.target instanceof HTMLElement && g.target.contains(Y) && (Oo(g.target) || g.target.getAttribute("role") === "link") && g.target.click();
|
|
2817
2817
|
}
|
|
2818
2818
|
};
|
|
2819
2819
|
if (typeof PointerEvent < "u") {
|
|
@@ -2823,7 +2823,7 @@ function Pi(e) {
|
|
|
2823
2823
|
g.pointerType = "virtual";
|
|
2824
2824
|
return;
|
|
2825
2825
|
}
|
|
2826
|
-
Vn(S.currentTarget) && S.preventDefault(), g.pointerType = S.pointerType, S.stopPropagation(), g.isPressed || (g.isPressed = !0, g.isOverTarget = !0, g.activePointerId = S.pointerId, g.target = S.currentTarget, !a && !c && jt(S.currentTarget), u || Pa(g.target),
|
|
2826
|
+
Vn(S.currentTarget) && S.preventDefault(), g.pointerType = S.pointerType, S.stopPropagation(), g.isPressed || (g.isPressed = !0, g.isOverTarget = !0, g.activePointerId = S.pointerId, g.target = S.currentTarget, !a && !c && jt(S.currentTarget), u || Pa(g.target), D(S, g.pointerType), y(document, "pointermove", E, !1), y(document, "pointerup", Y, !1), y(document, "pointercancel", k, !1));
|
|
2827
2827
|
}
|
|
2828
2828
|
}, L.onMouseDown = (S) => {
|
|
2829
2829
|
!S.currentTarget.contains(S.target) || S.button === 0 && (Vn(S.currentTarget) && S.preventDefault(), S.stopPropagation());
|
|
@@ -2831,55 +2831,55 @@ function Pi(e) {
|
|
|
2831
2831
|
!S.currentTarget.contains(S.target) || g.pointerType === "virtual" || S.button === 0 && Mt(S, S.currentTarget) && R(S, g.pointerType || S.pointerType);
|
|
2832
2832
|
};
|
|
2833
2833
|
let E = (S) => {
|
|
2834
|
-
S.pointerId === g.activePointerId && (Mt(S, g.target) ? g.isOverTarget || (g.isOverTarget = !0,
|
|
2835
|
-
},
|
|
2836
|
-
S.pointerId === g.activePointerId && g.isPressed && S.button === 0 && (Mt(S, g.target) ?
|
|
2837
|
-
},
|
|
2834
|
+
S.pointerId === g.activePointerId && (Mt(S, g.target) ? g.isOverTarget || (g.isOverTarget = !0, D(Ze(g.target, S), g.pointerType)) : g.isOverTarget && (g.isOverTarget = !1, M(Ze(g.target, S), g.pointerType, !1), p.current.shouldCancelOnPointerExit && A(S)));
|
|
2835
|
+
}, Y = (S) => {
|
|
2836
|
+
S.pointerId === g.activePointerId && g.isPressed && S.button === 0 && (Mt(S, g.target) ? M(Ze(g.target, S), g.pointerType) : g.isOverTarget && M(Ze(g.target, S), g.pointerType, !1), g.isPressed = !1, g.isOverTarget = !1, g.activePointerId = null, g.pointerType = null, $(), u || Ir(g.target));
|
|
2837
|
+
}, k = (S) => {
|
|
2838
2838
|
A(S);
|
|
2839
2839
|
};
|
|
2840
2840
|
L.onDragStart = (S) => {
|
|
2841
2841
|
!S.currentTarget.contains(S.target) || A(S);
|
|
2842
2842
|
};
|
|
2843
2843
|
} else {
|
|
2844
|
-
L.onMouseDown = (
|
|
2845
|
-
|
|
2846
|
-
}, L.onMouseEnter = (
|
|
2847
|
-
!
|
|
2848
|
-
}, L.onMouseLeave = (
|
|
2849
|
-
!
|
|
2850
|
-
}, L.onMouseUp = (
|
|
2851
|
-
!
|
|
2844
|
+
L.onMouseDown = (k) => {
|
|
2845
|
+
k.button !== 0 || !k.currentTarget.contains(k.target) || (Vn(k.currentTarget) && k.preventDefault(), k.stopPropagation(), !g.ignoreEmulatedMouseEvents && (g.isPressed = !0, g.isOverTarget = !0, g.target = k.currentTarget, g.pointerType = To(k.nativeEvent) ? "virtual" : "mouse", !a && !c && jt(k.currentTarget), D(k, g.pointerType), y(document, "mouseup", E, !1)));
|
|
2846
|
+
}, L.onMouseEnter = (k) => {
|
|
2847
|
+
!k.currentTarget.contains(k.target) || (k.stopPropagation(), g.isPressed && !g.ignoreEmulatedMouseEvents && (g.isOverTarget = !0, D(k, g.pointerType)));
|
|
2848
|
+
}, L.onMouseLeave = (k) => {
|
|
2849
|
+
!k.currentTarget.contains(k.target) || (k.stopPropagation(), g.isPressed && !g.ignoreEmulatedMouseEvents && (g.isOverTarget = !1, M(k, g.pointerType, !1), p.current.shouldCancelOnPointerExit && A(k)));
|
|
2850
|
+
}, L.onMouseUp = (k) => {
|
|
2851
|
+
!k.currentTarget.contains(k.target) || !g.ignoreEmulatedMouseEvents && k.button === 0 && R(k, g.pointerType);
|
|
2852
2852
|
};
|
|
2853
|
-
let E = (
|
|
2854
|
-
if (
|
|
2853
|
+
let E = (k) => {
|
|
2854
|
+
if (k.button === 0) {
|
|
2855
2855
|
if (g.isPressed = !1, $(), g.ignoreEmulatedMouseEvents) {
|
|
2856
2856
|
g.ignoreEmulatedMouseEvents = !1;
|
|
2857
2857
|
return;
|
|
2858
2858
|
}
|
|
2859
|
-
Mt(
|
|
2859
|
+
Mt(k, g.target) ? M(Ze(g.target, k), g.pointerType) : g.isOverTarget && M(Ze(g.target, k), g.pointerType, !1), g.isOverTarget = !1;
|
|
2860
2860
|
}
|
|
2861
2861
|
};
|
|
2862
|
-
L.onTouchStart = (
|
|
2863
|
-
if (!
|
|
2862
|
+
L.onTouchStart = (k) => {
|
|
2863
|
+
if (!k.currentTarget.contains(k.target))
|
|
2864
2864
|
return;
|
|
2865
|
-
|
|
2866
|
-
let S = Y0(
|
|
2867
|
-
!S || (g.activePointerId = S.identifier, g.ignoreEmulatedMouseEvents = !0, g.isOverTarget = !0, g.isPressed = !0, g.target =
|
|
2868
|
-
}, L.onTouchMove = (
|
|
2869
|
-
if (!
|
|
2865
|
+
k.stopPropagation();
|
|
2866
|
+
let S = Y0(k.nativeEvent);
|
|
2867
|
+
!S || (g.activePointerId = S.identifier, g.ignoreEmulatedMouseEvents = !0, g.isOverTarget = !0, g.isPressed = !0, g.target = k.currentTarget, g.pointerType = "touch", !a && !c && jt(k.currentTarget), u || Pa(g.target), D(k, g.pointerType), y(window, "scroll", Y, !0));
|
|
2868
|
+
}, L.onTouchMove = (k) => {
|
|
2869
|
+
if (!k.currentTarget.contains(k.target) || (k.stopPropagation(), !g.isPressed))
|
|
2870
2870
|
return;
|
|
2871
|
-
let S = Sa(
|
|
2872
|
-
S && Mt(S,
|
|
2873
|
-
}, L.onTouchEnd = (
|
|
2874
|
-
if (!
|
|
2871
|
+
let S = Sa(k.nativeEvent, g.activePointerId);
|
|
2872
|
+
S && Mt(S, k.currentTarget) ? g.isOverTarget || (g.isOverTarget = !0, D(k, g.pointerType)) : g.isOverTarget && (g.isOverTarget = !1, M(k, g.pointerType, !1), p.current.shouldCancelOnPointerExit && A(k));
|
|
2873
|
+
}, L.onTouchEnd = (k) => {
|
|
2874
|
+
if (!k.currentTarget.contains(k.target) || (k.stopPropagation(), !g.isPressed))
|
|
2875
2875
|
return;
|
|
2876
|
-
let S = Sa(
|
|
2877
|
-
S && Mt(S,
|
|
2878
|
-
}, L.onTouchCancel = (
|
|
2879
|
-
!
|
|
2876
|
+
let S = Sa(k.nativeEvent, g.activePointerId);
|
|
2877
|
+
S && Mt(S, k.currentTarget) ? (R(k, g.pointerType), M(k, g.pointerType)) : g.isOverTarget && M(k, g.pointerType, !1), g.isPressed = !1, g.activePointerId = null, g.isOverTarget = !1, g.ignoreEmulatedMouseEvents = !0, u || Ir(g.target), $();
|
|
2878
|
+
}, L.onTouchCancel = (k) => {
|
|
2879
|
+
!k.currentTarget.contains(k.target) || (k.stopPropagation(), g.isPressed && A(k));
|
|
2880
2880
|
};
|
|
2881
|
-
let
|
|
2882
|
-
g.isPressed &&
|
|
2881
|
+
let Y = (k) => {
|
|
2882
|
+
g.isPressed && k.target.contains(g.target) && A({
|
|
2883
2883
|
currentTarget: g.target,
|
|
2884
2884
|
shiftKey: !1,
|
|
2885
2885
|
ctrlKey: !1,
|
|
@@ -2887,8 +2887,8 @@ function Pi(e) {
|
|
|
2887
2887
|
altKey: !1
|
|
2888
2888
|
});
|
|
2889
2889
|
};
|
|
2890
|
-
L.onDragStart = (
|
|
2891
|
-
!
|
|
2890
|
+
L.onDragStart = (k) => {
|
|
2891
|
+
!k.currentTarget.contains(k.target) || A(k);
|
|
2892
2892
|
};
|
|
2893
2893
|
}
|
|
2894
2894
|
return L;
|
|
@@ -3580,14 +3580,14 @@ function Sb(e, t, r) {
|
|
|
3580
3580
|
].reverse(), g = new Map(w.map((R, A) => [
|
|
3581
3581
|
R,
|
|
3582
3582
|
A
|
|
3583
|
-
])),
|
|
3583
|
+
])), D = new RegExp(`[${w.join("")}]`, "g");
|
|
3584
3584
|
return {
|
|
3585
3585
|
minusSign: f,
|
|
3586
3586
|
plusSign: h,
|
|
3587
3587
|
decimal: p,
|
|
3588
3588
|
group: v,
|
|
3589
3589
|
literals: $,
|
|
3590
|
-
numeral:
|
|
3590
|
+
numeral: D,
|
|
3591
3591
|
index: (R) => String(g.get(R))
|
|
3592
3592
|
};
|
|
3593
3593
|
}
|
|
@@ -3677,17 +3677,17 @@ function kb(e) {
|
|
|
3677
3677
|
return t || (t = new bb(e), Fa.set(e, t)), t;
|
|
3678
3678
|
}
|
|
3679
3679
|
function sn(e) {
|
|
3680
|
-
let { locale: t } = Vc(), r =
|
|
3680
|
+
let { locale: t } = Vc(), r = xe(() => kb(e), [
|
|
3681
3681
|
e
|
|
3682
3682
|
]);
|
|
3683
|
-
return
|
|
3683
|
+
return xe(() => new mb(t, r), [
|
|
3684
3684
|
t,
|
|
3685
3685
|
r
|
|
3686
3686
|
]);
|
|
3687
3687
|
}
|
|
3688
3688
|
function Db(e = {}) {
|
|
3689
3689
|
let { locale: t } = Vc();
|
|
3690
|
-
return
|
|
3690
|
+
return xe(() => new No(t, e), [
|
|
3691
3691
|
t,
|
|
3692
3692
|
e
|
|
3693
3693
|
]);
|
|
@@ -4111,9 +4111,9 @@ const Va = (e) => ({
|
|
|
4111
4111
|
}, f = Xt(a), h = cn(a), p = Ri(f), v = await c.getDimensions(r), b = f === "y" ? "top" : "left", m = f === "y" ? "bottom" : "right", y = s.reference[p] + s.reference[f] - u[f] - s.floating[p], $ = u[f] - s.reference[f], w = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(r));
|
|
4112
4112
|
let g = w ? f === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0;
|
|
4113
4113
|
g === 0 && (g = s.floating[p]);
|
|
4114
|
-
const
|
|
4114
|
+
const D = y / 2 - $ / 2, M = l[b], R = g - v[p] - l[m], A = g / 2 - v[p] / 2 + D, L = Lo(M, A, R), Y = (h === "start" ? l[b] : l[m]) > 0 && A !== L && s.reference[p] <= s.floating[p] ? A < M ? M - A : R - A : 0;
|
|
4115
4115
|
return {
|
|
4116
|
-
[f]: u[f] -
|
|
4116
|
+
[f]: u[f] - Y,
|
|
4117
4117
|
data: {
|
|
4118
4118
|
[f]: L,
|
|
4119
4119
|
centerOffset: A - L
|
|
@@ -4171,36 +4171,36 @@ const Kb = function(e) {
|
|
|
4171
4171
|
flipAlignment: p = !0,
|
|
4172
4172
|
...v
|
|
4173
4173
|
} = e, b = Yt(n), y = f || (b === a || !p ? [Hr(a)] : Ub(a)), $ = [a, ...y], w = await Kr(t, v), g = [];
|
|
4174
|
-
let
|
|
4174
|
+
let D = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
4175
4175
|
if (l && g.push(w[b]), u) {
|
|
4176
4176
|
const {
|
|
4177
4177
|
main: L,
|
|
4178
|
-
cross:
|
|
4178
|
+
cross: Z
|
|
4179
4179
|
} = jb(n, i, await (s.isRTL == null ? void 0 : s.isRTL(c.floating)));
|
|
4180
|
-
g.push(w[L], w[
|
|
4180
|
+
g.push(w[L], w[Z]);
|
|
4181
4181
|
}
|
|
4182
|
-
if (
|
|
4182
|
+
if (D = [...D, {
|
|
4183
4183
|
placement: n,
|
|
4184
4184
|
overflows: g
|
|
4185
4185
|
}], !g.every((L) => L <= 0)) {
|
|
4186
|
-
var
|
|
4187
|
-
const L = ((
|
|
4188
|
-
if (
|
|
4186
|
+
var M, R;
|
|
4187
|
+
const L = ((M = (R = o.flip) == null ? void 0 : R.index) != null ? M : 0) + 1, Z = $[L];
|
|
4188
|
+
if (Z)
|
|
4189
4189
|
return {
|
|
4190
4190
|
data: {
|
|
4191
4191
|
index: L,
|
|
4192
|
-
overflows:
|
|
4192
|
+
overflows: D
|
|
4193
4193
|
},
|
|
4194
4194
|
reset: {
|
|
4195
|
-
placement:
|
|
4195
|
+
placement: Z
|
|
4196
4196
|
}
|
|
4197
4197
|
};
|
|
4198
4198
|
let E = "bottom";
|
|
4199
4199
|
switch (h) {
|
|
4200
4200
|
case "bestFit": {
|
|
4201
4201
|
var A;
|
|
4202
|
-
const
|
|
4203
|
-
|
|
4202
|
+
const Y = (A = D.map((k) => [k, k.overflows.filter((S) => S > 0).reduce((S, ie) => S + ie, 0)]).sort((k, S) => k[1] - S[1])[0]) == null ? void 0 : A[0].placement;
|
|
4203
|
+
Y && (E = Y);
|
|
4204
4204
|
break;
|
|
4205
4205
|
}
|
|
4206
4206
|
case "initialPlacement":
|
|
@@ -4402,12 +4402,12 @@ const Yb = function(e) {
|
|
|
4402
4402
|
...b
|
|
4403
4403
|
};
|
|
4404
4404
|
if (c) {
|
|
4405
|
-
const
|
|
4406
|
-
p <
|
|
4405
|
+
const D = f === "y" ? "height" : "width", M = i.reference[f] - i.floating[D] + m.mainAxis, R = i.reference[f] + i.reference[D] - m.mainAxis;
|
|
4406
|
+
p < M ? p = M : p > R && (p = R);
|
|
4407
4407
|
}
|
|
4408
4408
|
if (l) {
|
|
4409
4409
|
var y, $, w, g;
|
|
4410
|
-
const
|
|
4410
|
+
const D = f === "y" ? "width" : "height", M = ["top", "left"].includes(Yt(o)), R = i.reference[h] - i.floating[D] + (M && (y = ($ = a.offset) == null ? void 0 : $[h]) != null ? y : 0) + (M ? 0 : m.crossAxis), A = i.reference[h] + i.reference[D] + (M ? 0 : (w = (g = a.offset) == null ? void 0 : g[h]) != null ? w : 0) - (M ? m.crossAxis : 0);
|
|
4411
4411
|
v < R ? v = R : v > A && (v = A);
|
|
4412
4412
|
}
|
|
4413
4413
|
return {
|
|
@@ -4937,24 +4937,24 @@ const kl = "Popper", [ki, fn] = De(kl), [gv, Dl] = ki(kl), mv = (e) => {
|
|
|
4937
4937
|
positionUpdateFns: /* @__PURE__ */ new Set()
|
|
4938
4938
|
}), Sv = /* @__PURE__ */ F((e, t) => {
|
|
4939
4939
|
var r, n, o, i, a, s, c, l;
|
|
4940
|
-
const { __scopePopper: u, side: f = "bottom", sideOffset: h = 0, align: p = "center", alignOffset: v = 0, arrowPadding: b = 0, collisionBoundary: m = [], collisionPadding: y = 0, sticky: $ = "partial", hideWhenDetached: w = !1, avoidCollisions: g = !0, ...
|
|
4940
|
+
const { __scopePopper: u, side: f = "bottom", sideOffset: h = 0, align: p = "center", alignOffset: v = 0, arrowPadding: b = 0, collisionBoundary: m = [], collisionPadding: y = 0, sticky: $ = "partial", hideWhenDetached: w = !1, avoidCollisions: g = !0, ...D } = e, M = Dl(Yr, u), [R, A] = ee(null), L = pe(
|
|
4941
4941
|
t,
|
|
4942
4942
|
(Le) => A(Le)
|
|
4943
|
-
), [
|
|
4943
|
+
), [Z, E] = ee(null), Y = dn(Z), k = (r = Y == null ? void 0 : Y.width) !== null && r !== void 0 ? r : 0, S = (n = Y == null ? void 0 : Y.height) !== null && n !== void 0 ? n : 0, ie = f + (p !== "center" ? "-" + p : ""), re = typeof y == "number" ? y : {
|
|
4944
4944
|
top: 0,
|
|
4945
4945
|
right: 0,
|
|
4946
4946
|
bottom: 0,
|
|
4947
4947
|
left: 0,
|
|
4948
4948
|
...y
|
|
4949
|
-
},
|
|
4949
|
+
}, be = Array.isArray(m) ? m : [
|
|
4950
4950
|
m
|
|
4951
|
-
],
|
|
4951
|
+
], ye = be.length > 0, ne = {
|
|
4952
4952
|
padding: re,
|
|
4953
|
-
boundary:
|
|
4954
|
-
altBoundary:
|
|
4955
|
-
}, { reference: P, floating:
|
|
4953
|
+
boundary: be.filter(Ov),
|
|
4954
|
+
altBoundary: ye
|
|
4955
|
+
}, { reference: P, floating: N, strategy: W, x: B, y: j, placement: H, middlewareData: X, update: Q } = pv({
|
|
4956
4956
|
strategy: "fixed",
|
|
4957
|
-
placement:
|
|
4957
|
+
placement: ie,
|
|
4958
4958
|
whileElementsMounted: uv,
|
|
4959
4959
|
middleware: [
|
|
4960
4960
|
qb({
|
|
@@ -4967,15 +4967,15 @@ const kl = "Popper", [ki, fn] = De(kl), [gv, Dl] = ki(kl), mv = (e) => {
|
|
|
4967
4967
|
limiter: $ === "partial" ? Xb() : void 0,
|
|
4968
4968
|
...ne
|
|
4969
4969
|
}) : void 0,
|
|
4970
|
-
|
|
4971
|
-
element:
|
|
4970
|
+
Z ? hv({
|
|
4971
|
+
element: Z,
|
|
4972
4972
|
padding: b
|
|
4973
4973
|
}) : void 0,
|
|
4974
4974
|
g ? Kb({
|
|
4975
4975
|
...ne
|
|
4976
4976
|
}) : void 0,
|
|
4977
4977
|
kv({
|
|
4978
|
-
arrowWidth:
|
|
4978
|
+
arrowWidth: k,
|
|
4979
4979
|
arrowHeight: S
|
|
4980
4980
|
}),
|
|
4981
4981
|
w ? Hb({
|
|
@@ -4984,12 +4984,12 @@ const kl = "Popper", [ki, fn] = De(kl), [gv, Dl] = ki(kl), mv = (e) => {
|
|
|
4984
4984
|
].filter(Rv)
|
|
4985
4985
|
});
|
|
4986
4986
|
Ee(() => {
|
|
4987
|
-
P(
|
|
4987
|
+
P(M.anchor);
|
|
4988
4988
|
}, [
|
|
4989
4989
|
P,
|
|
4990
|
-
|
|
4990
|
+
M.anchor
|
|
4991
4991
|
]);
|
|
4992
|
-
const te = B !== null && j !== null, [ce, se] = Il(H), we = (o = X.arrow) === null || o === void 0 ? void 0 : o.x,
|
|
4992
|
+
const te = B !== null && j !== null, [ce, se] = Il(H), we = (o = X.arrow) === null || o === void 0 ? void 0 : o.x, _e = (i = X.arrow) === null || i === void 0 ? void 0 : i.y, Te = ((a = X.arrow) === null || a === void 0 ? void 0 : a.centerOffset) !== 0, [Ve, Ie] = ee();
|
|
4993
4993
|
Ee(() => {
|
|
4994
4994
|
R && Ie(window.getComputedStyle(R).zIndex);
|
|
4995
4995
|
}, [
|
|
@@ -5017,16 +5017,16 @@ const kl = "Popper", [ki, fn] = De(kl), [gv, Dl] = ki(kl), mv = (e) => {
|
|
|
5017
5017
|
const Me = {
|
|
5018
5018
|
"data-side": ce,
|
|
5019
5019
|
"data-align": se,
|
|
5020
|
-
...
|
|
5020
|
+
...D,
|
|
5021
5021
|
ref: L,
|
|
5022
5022
|
style: {
|
|
5023
|
-
...
|
|
5023
|
+
...D.style,
|
|
5024
5024
|
animation: te ? void 0 : "none",
|
|
5025
5025
|
opacity: (s = X.hide) !== null && s !== void 0 && s.referenceHidden ? 0 : void 0
|
|
5026
5026
|
}
|
|
5027
5027
|
};
|
|
5028
5028
|
return /* @__PURE__ */ _("div", {
|
|
5029
|
-
ref:
|
|
5029
|
+
ref: N,
|
|
5030
5030
|
"data-radix-popper-content-wrapper": "",
|
|
5031
5031
|
style: {
|
|
5032
5032
|
position: W,
|
|
@@ -5045,7 +5045,7 @@ const kl = "Popper", [ki, fn] = De(kl), [gv, Dl] = ki(kl), mv = (e) => {
|
|
|
5045
5045
|
placedSide: ce,
|
|
5046
5046
|
onArrowChange: E,
|
|
5047
5047
|
arrowX: we,
|
|
5048
|
-
arrowY:
|
|
5048
|
+
arrowY: _e,
|
|
5049
5049
|
shouldHideArrow: Te
|
|
5050
5050
|
}, Se ? /* @__PURE__ */ _(wv, {
|
|
5051
5051
|
scope: u,
|
|
@@ -5403,16 +5403,16 @@ const jo = I.ol`
|
|
|
5403
5403
|
letter-spacing: ${d.letter_spacing_tight};
|
|
5404
5404
|
border-radius: ${d.border_radius_400};
|
|
5405
5405
|
padding: 2px 4px;
|
|
5406
|
-
|
|
5406
|
+
|
|
5407
5407
|
transition-property: ${d.transition_property_color};
|
|
5408
5408
|
transition-duration: ${d.transition_duration_100};
|
|
5409
5409
|
cursor: default;
|
|
5410
|
-
|
|
5410
|
+
|
|
5411
5411
|
&[href] {
|
|
5412
5412
|
cursor: pointer;
|
|
5413
5413
|
}
|
|
5414
5414
|
|
|
5415
|
-
&:hover {
|
|
5415
|
+
&:hover:not([aria-disabled='true']) {
|
|
5416
5416
|
background-color: ${d.color_overlay_secondary_hover}; /* Interactive / Overlay / Secondary / Hover */
|
|
5417
5417
|
}
|
|
5418
5418
|
|
|
@@ -5428,7 +5428,7 @@ const jo = I.ol`
|
|
|
5428
5428
|
outline: 1px solid ${d.color_black};
|
|
5429
5429
|
}
|
|
5430
5430
|
|
|
5431
|
-
&[
|
|
5431
|
+
&[aria-disabled='true'] {
|
|
5432
5432
|
color: ${d.color_fill_primary_disabled};
|
|
5433
5433
|
}
|
|
5434
5434
|
|
|
@@ -5544,13 +5544,13 @@ const lg = F((e, t) => {
|
|
|
5544
5544
|
isPressed: f,
|
|
5545
5545
|
pressProps: h
|
|
5546
5546
|
} = Pi({
|
|
5547
|
-
isDisabled: n,
|
|
5547
|
+
isDisabled: n || l,
|
|
5548
5548
|
ref: i
|
|
5549
5549
|
}), {
|
|
5550
5550
|
isFocusVisible: p,
|
|
5551
5551
|
focusProps: v
|
|
5552
|
-
} = an(), b = [f && "pressed", n && "disabled", p && "focused"].filter(Boolean).join(" "),
|
|
5553
|
-
[a ? "href" : "to"]:
|
|
5552
|
+
} = an(), b = [f && "pressed", n && "disabled", p && "focused"].filter(Boolean).join(" "), y = l || n ? {} : {
|
|
5553
|
+
[a ? "href" : "to"]: c
|
|
5554
5554
|
};
|
|
5555
5555
|
return /* @__PURE__ */ C(Ul, {
|
|
5556
5556
|
children: /* @__PURE__ */ C(ig, {
|
|
@@ -5560,7 +5560,7 @@ const lg = F((e, t) => {
|
|
|
5560
5560
|
"data-state": b,
|
|
5561
5561
|
...v,
|
|
5562
5562
|
...h,
|
|
5563
|
-
|
|
5563
|
+
...y,
|
|
5564
5564
|
children: s
|
|
5565
5565
|
})
|
|
5566
5566
|
});
|
|
@@ -5923,7 +5923,7 @@ function hn(e) {
|
|
|
5923
5923
|
value: e,
|
|
5924
5924
|
previous: e
|
|
5925
5925
|
});
|
|
5926
|
-
return
|
|
5926
|
+
return xe(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [
|
|
5927
5927
|
e
|
|
5928
5928
|
]);
|
|
5929
5929
|
}
|
|
@@ -6431,17 +6431,17 @@ const [$n, VP] = De("Tooltip", [
|
|
|
6431
6431
|
onChange: (R) => {
|
|
6432
6432
|
R ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Bo))) : c.onClose(), i == null || i(R);
|
|
6433
6433
|
}
|
|
6434
|
-
}), w =
|
|
6434
|
+
}), w = xe(() => y ? m.current ? "delayed-open" : "instant-open" : "closed", [
|
|
6435
6435
|
y
|
|
6436
6436
|
]), g = K(() => {
|
|
6437
6437
|
window.clearTimeout(p.current), m.current = !1, $(!0);
|
|
6438
6438
|
}, [
|
|
6439
6439
|
$
|
|
6440
|
-
]),
|
|
6440
|
+
]), D = K(() => {
|
|
6441
6441
|
window.clearTimeout(p.current), $(!1);
|
|
6442
6442
|
}, [
|
|
6443
6443
|
$
|
|
6444
|
-
]),
|
|
6444
|
+
]), M = K(() => {
|
|
6445
6445
|
window.clearTimeout(p.current), p.current = window.setTimeout(() => {
|
|
6446
6446
|
m.current = !0, $(!0);
|
|
6447
6447
|
}, b);
|
|
@@ -6457,20 +6457,20 @@ const [$n, VP] = De("Tooltip", [
|
|
|
6457
6457
|
trigger: u,
|
|
6458
6458
|
onTriggerChange: f,
|
|
6459
6459
|
onTriggerEnter: K(() => {
|
|
6460
|
-
c.isOpenDelayed ?
|
|
6460
|
+
c.isOpenDelayed ? M() : g();
|
|
6461
6461
|
}, [
|
|
6462
6462
|
c.isOpenDelayed,
|
|
6463
|
-
|
|
6463
|
+
M,
|
|
6464
6464
|
g
|
|
6465
6465
|
]),
|
|
6466
6466
|
onTriggerLeave: K(() => {
|
|
6467
|
-
v ?
|
|
6467
|
+
v ? D() : window.clearTimeout(p.current);
|
|
6468
6468
|
}, [
|
|
6469
|
-
|
|
6469
|
+
D,
|
|
6470
6470
|
v
|
|
6471
6471
|
]),
|
|
6472
6472
|
onOpen: g,
|
|
6473
|
-
onClose:
|
|
6473
|
+
onClose: D,
|
|
6474
6474
|
disableHoverableContent: v
|
|
6475
6475
|
}, r));
|
|
6476
6476
|
}, Xa = "TooltipTrigger", qg = /* @__PURE__ */ F((e, t) => {
|
|
@@ -6539,15 +6539,15 @@ const [$n, VP] = De("Tooltip", [
|
|
|
6539
6539
|
const m = v.currentTarget, y = {
|
|
6540
6540
|
x: v.clientX,
|
|
6541
6541
|
y: v.clientY
|
|
6542
|
-
}, $ = om(y, m.getBoundingClientRect()), w = $ === "right" || $ === "bottom" ? -5 : 5,
|
|
6542
|
+
}, $ = om(y, m.getBoundingClientRect()), w = $ === "right" || $ === "bottom" ? -5 : 5, D = $ === "right" || $ === "left" ? {
|
|
6543
6543
|
x: v.clientX + w,
|
|
6544
6544
|
y: v.clientY
|
|
6545
6545
|
} : {
|
|
6546
6546
|
x: v.clientX,
|
|
6547
6547
|
y: v.clientY + w
|
|
6548
|
-
},
|
|
6549
|
-
|
|
6550
|
-
...
|
|
6548
|
+
}, M = im(b.getBoundingClientRect()), R = sm([
|
|
6549
|
+
D,
|
|
6550
|
+
...M
|
|
6551
6551
|
]);
|
|
6552
6552
|
s(R), f(!0);
|
|
6553
6553
|
}, [
|
|
@@ -7051,7 +7051,7 @@ function Tm(e) {
|
|
|
7051
7051
|
}
|
|
7052
7052
|
}, w = z(!1), g = () => {
|
|
7053
7053
|
w.current = !0;
|
|
7054
|
-
},
|
|
7054
|
+
}, D = () => {
|
|
7055
7055
|
w.current = !1;
|
|
7056
7056
|
};
|
|
7057
7057
|
n = n === "" ? b.format("Empty") : (n || `${r}`).replace("-", "\u2212"), q(() => {
|
|
@@ -7059,10 +7059,10 @@ function Tm(e) {
|
|
|
7059
7059
|
}, [
|
|
7060
7060
|
n
|
|
7061
7061
|
]);
|
|
7062
|
-
const
|
|
7062
|
+
const M = K(
|
|
7063
7063
|
(E) => {
|
|
7064
7064
|
y(), m.current.onIncrement(), t.current = window.setTimeout(() => {
|
|
7065
|
-
(isNaN(i) || isNaN(r) || r < i) &&
|
|
7065
|
+
(isNaN(i) || isNaN(r) || r < i) && M(60);
|
|
7066
7066
|
}, E);
|
|
7067
7067
|
},
|
|
7068
7068
|
[
|
|
@@ -7084,7 +7084,7 @@ function Tm(e) {
|
|
|
7084
7084
|
);
|
|
7085
7085
|
let A = (E) => {
|
|
7086
7086
|
E.preventDefault();
|
|
7087
|
-
}, { addGlobalListener: L, removeAllGlobalListeners:
|
|
7087
|
+
}, { addGlobalListener: L, removeAllGlobalListeners: Z } = Cc();
|
|
7088
7088
|
return {
|
|
7089
7089
|
spinButtonProps: {
|
|
7090
7090
|
role: "spinbutton",
|
|
@@ -7097,27 +7097,27 @@ function Tm(e) {
|
|
|
7097
7097
|
"aria-required": c || null,
|
|
7098
7098
|
onKeyDown: $,
|
|
7099
7099
|
onFocus: g,
|
|
7100
|
-
onBlur:
|
|
7100
|
+
onBlur: D
|
|
7101
7101
|
},
|
|
7102
7102
|
incrementButtonProps: {
|
|
7103
7103
|
onPressStart: () => {
|
|
7104
|
-
|
|
7104
|
+
M(400), L(window, "contextmenu", A);
|
|
7105
7105
|
},
|
|
7106
7106
|
onPressEnd: () => {
|
|
7107
|
-
y(),
|
|
7107
|
+
y(), Z();
|
|
7108
7108
|
},
|
|
7109
7109
|
onFocus: g,
|
|
7110
|
-
onBlur:
|
|
7110
|
+
onBlur: D
|
|
7111
7111
|
},
|
|
7112
7112
|
decrementButtonProps: {
|
|
7113
7113
|
onPressStart: () => {
|
|
7114
7114
|
R(400), L(window, "contextmenu", A);
|
|
7115
7115
|
},
|
|
7116
7116
|
onPressEnd: () => {
|
|
7117
|
-
y(),
|
|
7117
|
+
y(), Z();
|
|
7118
7118
|
},
|
|
7119
7119
|
onFocus: g,
|
|
7120
|
-
onBlur:
|
|
7120
|
+
onBlur: D
|
|
7121
7121
|
}
|
|
7122
7122
|
};
|
|
7123
7123
|
}
|
|
@@ -7366,13 +7366,13 @@ Nu = {
|
|
|
7366
7366
|
};
|
|
7367
7367
|
function Rm(e, t, r) {
|
|
7368
7368
|
let { id: n, decrementAriaLabel: o, incrementAriaLabel: i, isDisabled: a, isReadOnly: s, isRequired: c, minValue: l, maxValue: u, autoFocus: f, validationState: h, label: p, formatOptions: v, onBlur: b = () => {
|
|
7369
|
-
}, onFocus: m, onFocusChange: y, onKeyDown: $, onKeyUp: w, description: g, errorMessage:
|
|
7370
|
-
const
|
|
7371
|
-
let S = mt(n), { focusProps:
|
|
7369
|
+
}, onFocus: m, onFocusChange: y, onKeyDown: $, onKeyUp: w, description: g, errorMessage: D, ...M } = e, { increment: R, incrementToMax: A, decrement: L, decrementToMin: Z, numberValue: E, commit: Y } = t;
|
|
7370
|
+
const k = sn(/* @__PURE__ */ Cm(Nu));
|
|
7371
|
+
let S = mt(n), { focusProps: ie } = Si({
|
|
7372
7372
|
onBlur: () => {
|
|
7373
|
-
|
|
7373
|
+
Y();
|
|
7374
7374
|
}
|
|
7375
|
-
}), { spinButtonProps: re, incrementButtonProps:
|
|
7375
|
+
}), { spinButtonProps: re, incrementButtonProps: be, decrementButtonProps: ye } = Tm({
|
|
7376
7376
|
isDisabled: a,
|
|
7377
7377
|
isReadOnly: s,
|
|
7378
7378
|
isRequired: c,
|
|
@@ -7381,10 +7381,10 @@ function Rm(e, t, r) {
|
|
|
7381
7381
|
onIncrement: R,
|
|
7382
7382
|
onIncrementToMax: A,
|
|
7383
7383
|
onDecrement: L,
|
|
7384
|
-
onDecrementToMin:
|
|
7384
|
+
onDecrementToMin: Z,
|
|
7385
7385
|
value: E,
|
|
7386
7386
|
textValue: t.inputValue
|
|
7387
|
-
}), [ne, P] = ee(!1), { focusWithinProps:
|
|
7387
|
+
}), [ne, P] = ee(!1), { focusWithinProps: N } = Lc({
|
|
7388
7388
|
isDisabled: a,
|
|
7389
7389
|
onFocusWithinChange: P
|
|
7390
7390
|
}), W = K((Oe) => {
|
|
@@ -7397,14 +7397,14 @@ function Rm(e, t, r) {
|
|
|
7397
7397
|
onScroll: W,
|
|
7398
7398
|
isDisabled: a || s || !ne
|
|
7399
7399
|
}, r);
|
|
7400
|
-
let j = Db(v), X =
|
|
7400
|
+
let j = Db(v), X = xe(() => j.resolvedOptions(), [
|
|
7401
7401
|
j
|
|
7402
7402
|
]).maximumFractionDigits > 0, Q = isNaN(t.minValue) || t.minValue < 0, te = "numeric";
|
|
7403
7403
|
kc() ? Q ? te = "text" : X && (te = "decimal") : Dc() && (Q ? te = "numeric" : X && (te = "decimal"));
|
|
7404
7404
|
let ce = (Oe) => {
|
|
7405
7405
|
t.setInputValue(Oe);
|
|
7406
|
-
}, se = yr(e), { labelProps: we, inputProps:
|
|
7407
|
-
...
|
|
7406
|
+
}, se = yr(e), { labelProps: we, inputProps: _e, descriptionProps: Te, errorMessageProps: Ve } = Mg({
|
|
7407
|
+
...M,
|
|
7408
7408
|
...se,
|
|
7409
7409
|
label: p,
|
|
7410
7410
|
autoFocus: f,
|
|
@@ -7427,10 +7427,10 @@ function Rm(e, t, r) {
|
|
|
7427
7427
|
onKeyDown: $,
|
|
7428
7428
|
onKeyUp: w,
|
|
7429
7429
|
description: g,
|
|
7430
|
-
errorMessage:
|
|
7431
|
-
}, t, r), Ie = Re(re,
|
|
7430
|
+
errorMessage: D
|
|
7431
|
+
}, t, r), Ie = Re(re, ie, _e, {
|
|
7432
7432
|
role: null,
|
|
7433
|
-
"aria-roledescription": wi() ? null :
|
|
7433
|
+
"aria-roledescription": wi() ? null : k.format("numberField"),
|
|
7434
7434
|
"aria-valuemax": null,
|
|
7435
7435
|
"aria-valuemin": null,
|
|
7436
7436
|
"aria-valuenow": null,
|
|
@@ -7441,8 +7441,8 @@ function Rm(e, t, r) {
|
|
|
7441
7441
|
document.activeElement !== r.current && (Oe.pointerType === "mouse" ? r.current.focus() : Oe.target.focus());
|
|
7442
7442
|
}, Pe = e["aria-label"] || (typeof e.label == "string" ? e.label : ""), Se;
|
|
7443
7443
|
Pe || (Se = e.label != null ? we.id : e["aria-labelledby"]);
|
|
7444
|
-
let Me = mt(), Le = mt(), it = Re(
|
|
7445
|
-
"aria-label": i ||
|
|
7444
|
+
let Me = mt(), Le = mt(), it = Re(be, {
|
|
7445
|
+
"aria-label": i || k.format("increase", {
|
|
7446
7446
|
fieldLabel: Pe
|
|
7447
7447
|
}).trim(),
|
|
7448
7448
|
id: Se && !i ? Me : null,
|
|
@@ -7453,8 +7453,8 @@ function Rm(e, t, r) {
|
|
|
7453
7453
|
allowFocusWhenDisabled: !0,
|
|
7454
7454
|
isDisabled: !t.canIncrement,
|
|
7455
7455
|
onPressStart: je
|
|
7456
|
-
}), Ot = Re(
|
|
7457
|
-
"aria-label": o ||
|
|
7456
|
+
}), Ot = Re(ye, {
|
|
7457
|
+
"aria-label": o || k.format("decrease", {
|
|
7458
7458
|
fieldLabel: Pe
|
|
7459
7459
|
}).trim(),
|
|
7460
7460
|
id: Se && !o ? Le : null,
|
|
@@ -7471,7 +7471,7 @@ function Rm(e, t, r) {
|
|
|
7471
7471
|
role: "group",
|
|
7472
7472
|
"aria-disabled": a,
|
|
7473
7473
|
"aria-invalid": h === "invalid" ? "true" : void 0,
|
|
7474
|
-
...
|
|
7474
|
+
...N
|
|
7475
7475
|
},
|
|
7476
7476
|
labelProps: we,
|
|
7477
7477
|
inputProps: Ie,
|
|
@@ -7482,33 +7482,33 @@ function Rm(e, t, r) {
|
|
|
7482
7482
|
};
|
|
7483
7483
|
}
|
|
7484
7484
|
function Om(e) {
|
|
7485
|
-
let { minValue: t, maxValue: r, step: n, formatOptions: o, value: i, defaultValue: a, onChange: s, locale: c, isDisabled: l, isReadOnly: u } = e, [f, h] = xc(i, isNaN(a) ? NaN : a, s), [p, v] = ee(() => isNaN(f) ? "" : new No(c, o).format(f)), b =
|
|
7485
|
+
let { minValue: t, maxValue: r, step: n, formatOptions: o, value: i, defaultValue: a, onChange: s, locale: c, isDisabled: l, isReadOnly: u } = e, [f, h] = xc(i, isNaN(a) ? NaN : a, s), [p, v] = ee(() => isNaN(f) ? "" : new No(c, o).format(f)), b = xe(() => new wb(c, o), [
|
|
7486
7486
|
c,
|
|
7487
7487
|
o
|
|
7488
|
-
]), m =
|
|
7488
|
+
]), m = xe(() => b.getNumberingSystem(p), [
|
|
7489
7489
|
b,
|
|
7490
7490
|
p
|
|
7491
|
-
]), y =
|
|
7491
|
+
]), y = xe(() => new No(c, {
|
|
7492
7492
|
...o,
|
|
7493
7493
|
numberingSystem: m
|
|
7494
7494
|
}), [
|
|
7495
7495
|
c,
|
|
7496
7496
|
o,
|
|
7497
7497
|
m
|
|
7498
|
-
]), $ =
|
|
7498
|
+
]), $ = xe(() => y.resolvedOptions(), [
|
|
7499
7499
|
y
|
|
7500
7500
|
]), w = K((ne) => isNaN(ne) || ne === null ? "" : y.format(ne), [
|
|
7501
7501
|
y
|
|
7502
7502
|
]), g = isNaN(n) ? 1 : n;
|
|
7503
7503
|
$.style === "percent" && isNaN(n) && (g = 0.01);
|
|
7504
|
-
let
|
|
7505
|
-
(!Object.is(f,
|
|
7506
|
-
let A =
|
|
7504
|
+
let D = z(f), M = z(c), R = z(o);
|
|
7505
|
+
(!Object.is(f, D.current) || c !== M.current || o !== R.current) && (v(w(f)), D.current = f, M.current = c, R.current = o);
|
|
7506
|
+
let A = xe(() => b.parse(p), [
|
|
7507
7507
|
b,
|
|
7508
7508
|
p
|
|
7509
7509
|
]), L = z(0);
|
|
7510
7510
|
L.current = A;
|
|
7511
|
-
let
|
|
7511
|
+
let Z = () => {
|
|
7512
7512
|
if (!p.length) {
|
|
7513
7513
|
h(NaN), v(i === void 0 ? "" : w(f));
|
|
7514
7514
|
return;
|
|
@@ -7520,32 +7520,32 @@ function Om(e) {
|
|
|
7520
7520
|
let ne;
|
|
7521
7521
|
isNaN(n) ? ne = k0(L.current, t, r) : ne = bt(L.current, t, r, n), ne = b.parse(w(ne)), h(ne), v(w(i === void 0 ? ne : f));
|
|
7522
7522
|
}, E = (ne, P) => {
|
|
7523
|
-
let
|
|
7524
|
-
if (isNaN(
|
|
7523
|
+
let N = L.current;
|
|
7524
|
+
if (isNaN(N)) {
|
|
7525
7525
|
let W = isNaN(P) ? 0 : P;
|
|
7526
7526
|
return bt(W, t, r, g);
|
|
7527
7527
|
} else {
|
|
7528
|
-
let W = bt(
|
|
7529
|
-
return ne === "+" && W >
|
|
7528
|
+
let W = bt(N, t, r, g);
|
|
7529
|
+
return ne === "+" && W > N || ne === "-" && W < N ? W : bt(Un(ne, N, g), t, r, g);
|
|
7530
7530
|
}
|
|
7531
|
-
},
|
|
7531
|
+
}, Y = () => {
|
|
7532
7532
|
let ne = E("+", t);
|
|
7533
7533
|
ne === f && v(w(ne)), h(ne);
|
|
7534
|
-
},
|
|
7534
|
+
}, k = () => {
|
|
7535
7535
|
let ne = E("-", r);
|
|
7536
7536
|
ne === f && v(w(ne)), h(ne);
|
|
7537
7537
|
}, S = () => {
|
|
7538
7538
|
r != null && h(bt(r, t, r, g));
|
|
7539
|
-
},
|
|
7539
|
+
}, ie = () => {
|
|
7540
7540
|
t != null && h(t);
|
|
7541
|
-
}, re =
|
|
7541
|
+
}, re = xe(() => !l && !u && (isNaN(A) || isNaN(r) || bt(A, t, r, g) > A || Un("+", A, g) <= r), [
|
|
7542
7542
|
l,
|
|
7543
7543
|
u,
|
|
7544
7544
|
t,
|
|
7545
7545
|
r,
|
|
7546
7546
|
g,
|
|
7547
7547
|
A
|
|
7548
|
-
]),
|
|
7548
|
+
]), be = xe(() => !l && !u && (isNaN(A) || isNaN(t) || bt(A, t, r, g) < A || Un("-", A, g) >= t), [
|
|
7549
7549
|
l,
|
|
7550
7550
|
u,
|
|
7551
7551
|
t,
|
|
@@ -7555,18 +7555,18 @@ function Om(e) {
|
|
|
7555
7555
|
]);
|
|
7556
7556
|
return {
|
|
7557
7557
|
validate: (ne) => b.isValidPartialNumber(ne, t, r),
|
|
7558
|
-
increment:
|
|
7558
|
+
increment: Y,
|
|
7559
7559
|
incrementToMax: S,
|
|
7560
|
-
decrement:
|
|
7561
|
-
decrementToMin:
|
|
7560
|
+
decrement: k,
|
|
7561
|
+
decrementToMin: ie,
|
|
7562
7562
|
canIncrement: re,
|
|
7563
|
-
canDecrement:
|
|
7563
|
+
canDecrement: be,
|
|
7564
7564
|
minValue: t,
|
|
7565
7565
|
maxValue: r,
|
|
7566
7566
|
numberValue: A,
|
|
7567
7567
|
setInputValue: v,
|
|
7568
7568
|
inputValue: p,
|
|
7569
|
-
commit:
|
|
7569
|
+
commit: Z
|
|
7570
7570
|
};
|
|
7571
7571
|
}
|
|
7572
7572
|
function Un(e, t, r) {
|
|
@@ -7693,65 +7693,84 @@ const km = I.div`
|
|
|
7693
7693
|
showStepper: f = !0,
|
|
7694
7694
|
min: h,
|
|
7695
7695
|
max: p,
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7696
|
+
locale: v = "en-US",
|
|
7697
|
+
...b
|
|
7698
|
+
} = e, m = Ct(), y = n || m, $ = Et(t), w = Om({
|
|
7699
|
+
...b,
|
|
7700
|
+
isDisabled: y,
|
|
7700
7701
|
isReadOnly: o,
|
|
7701
7702
|
isRequired: i,
|
|
7702
7703
|
minValue: h,
|
|
7703
7704
|
maxValue: p,
|
|
7704
7705
|
placeholder: u,
|
|
7705
|
-
locale:
|
|
7706
|
+
locale: v
|
|
7706
7707
|
}), {
|
|
7707
|
-
labelProps:
|
|
7708
|
-
groupProps:
|
|
7709
|
-
inputProps:
|
|
7710
|
-
incrementButtonProps:
|
|
7711
|
-
decrementButtonProps:
|
|
7712
|
-
descriptionProps:
|
|
7713
|
-
errorMessageProps:
|
|
7708
|
+
labelProps: g,
|
|
7709
|
+
groupProps: D,
|
|
7710
|
+
inputProps: M,
|
|
7711
|
+
incrementButtonProps: R,
|
|
7712
|
+
decrementButtonProps: A,
|
|
7713
|
+
descriptionProps: L,
|
|
7714
|
+
errorMessageProps: Z
|
|
7714
7715
|
} = Rm({
|
|
7715
|
-
...
|
|
7716
|
-
isDisabled:
|
|
7716
|
+
...b,
|
|
7717
|
+
isDisabled: y,
|
|
7717
7718
|
isReadOnly: o,
|
|
7718
7719
|
isRequired: i,
|
|
7719
7720
|
minValue: h,
|
|
7720
7721
|
maxValue: p,
|
|
7721
7722
|
placeholder: u,
|
|
7722
7723
|
label: s
|
|
7723
|
-
},
|
|
7724
|
-
let
|
|
7725
|
-
|
|
7726
|
-
...
|
|
7724
|
+
}, w, $);
|
|
7725
|
+
let E = null;
|
|
7726
|
+
typeof s == "string" ? E = /* @__PURE__ */ C(Rt, {
|
|
7727
|
+
...g,
|
|
7727
7728
|
children: s
|
|
7728
|
-
}) : xt(s) && (
|
|
7729
|
-
...
|
|
7730
|
-
}))
|
|
7731
|
-
|
|
7732
|
-
|
|
7729
|
+
}) : xt(s) && (E = St(s, {
|
|
7730
|
+
...g
|
|
7731
|
+
}));
|
|
7732
|
+
const Y = (k) => {
|
|
7733
|
+
const {
|
|
7734
|
+
formatOptions: S
|
|
7735
|
+
} = e;
|
|
7736
|
+
if ((S == null ? void 0 : S.style) === "unit") {
|
|
7737
|
+
const re = w.inputValue.length, be = w.inputValue.split(/\s/);
|
|
7738
|
+
if (be.length > 1) {
|
|
7739
|
+
const ye = k.target.selectionStart, ne = be[be.length - 1].length, P = re - ne;
|
|
7740
|
+
if (ye > P) {
|
|
7741
|
+
const N = P - 1;
|
|
7742
|
+
k.target.setSelectionRange(N, N);
|
|
7743
|
+
}
|
|
7744
|
+
}
|
|
7745
|
+
}
|
|
7746
|
+
};
|
|
7747
|
+
return /* @__PURE__ */ fe(vn, {
|
|
7748
|
+
children: [E, f ? /* @__PURE__ */ fe(km, {
|
|
7749
|
+
...D,
|
|
7733
7750
|
children: [/* @__PURE__ */ C(Dm, {
|
|
7734
|
-
...
|
|
7751
|
+
...M,
|
|
7735
7752
|
paddingSize: a,
|
|
7736
|
-
ref:
|
|
7753
|
+
ref: $,
|
|
7754
|
+
onClick: Y,
|
|
7755
|
+
onFocus: Y
|
|
7737
7756
|
}), f ? /* @__PURE__ */ fe(vi, {
|
|
7738
7757
|
children: [/* @__PURE__ */ C(Im, {
|
|
7739
|
-
...
|
|
7758
|
+
...R,
|
|
7740
7759
|
children: /* @__PURE__ */ C($p, {})
|
|
7741
7760
|
}), /* @__PURE__ */ C(Am, {
|
|
7742
|
-
...
|
|
7761
|
+
...A,
|
|
7743
7762
|
children: /* @__PURE__ */ C(yp, {})
|
|
7744
7763
|
})]
|
|
7745
7764
|
}) : null]
|
|
7746
7765
|
}) : /* @__PURE__ */ C(xr, {
|
|
7747
|
-
ref:
|
|
7748
|
-
...
|
|
7766
|
+
ref: $,
|
|
7767
|
+
...M,
|
|
7749
7768
|
paddingSize: a
|
|
7750
7769
|
}), c && /* @__PURE__ */ fe(gn, {
|
|
7751
|
-
...
|
|
7770
|
+
...Z,
|
|
7752
7771
|
children: [/* @__PURE__ */ C(en, {}), c]
|
|
7753
7772
|
}), r && /* @__PURE__ */ C(mn, {
|
|
7754
|
-
...
|
|
7773
|
+
...L,
|
|
7755
7774
|
children: r
|
|
7756
7775
|
})]
|
|
7757
7776
|
});
|
|
@@ -8209,7 +8228,7 @@ const Gm = {
|
|
|
8209
8228
|
focusProps: b
|
|
8210
8229
|
} = an({
|
|
8211
8230
|
autoFocus: l
|
|
8212
|
-
}), $ = [v ? "focused" : void 0, p ? "pressed" : void 0].filter(Boolean).join(" "), w = Qm[i], g = qm[a],
|
|
8231
|
+
}), $ = [v ? "focused" : void 0, p ? "pressed" : void 0].filter(Boolean).join(" "), w = Qm[i], g = qm[a], D = Gm[o];
|
|
8213
8232
|
return /* @__PURE__ */ C(w, {
|
|
8214
8233
|
ref: r,
|
|
8215
8234
|
"data-state": $,
|
|
@@ -8218,7 +8237,7 @@ const Gm = {
|
|
|
8218
8237
|
...h,
|
|
8219
8238
|
...b,
|
|
8220
8239
|
style: {
|
|
8221
|
-
"--icon-button-size":
|
|
8240
|
+
"--icon-button-size": D,
|
|
8222
8241
|
"--icon-button-border-radius": g
|
|
8223
8242
|
},
|
|
8224
8243
|
children: /* @__PURE__ */ C(on, {
|
|
@@ -8297,7 +8316,7 @@ function Vi(e) {
|
|
|
8297
8316
|
return [];
|
|
8298
8317
|
const y = Array.from(m.querySelectorAll(`[${u}]`));
|
|
8299
8318
|
return Array.from(v.itemMap.values()).sort(
|
|
8300
|
-
(g,
|
|
8319
|
+
(g, D) => y.indexOf(g.ref.current) - y.indexOf(D.ref.current)
|
|
8301
8320
|
);
|
|
8302
8321
|
}, [
|
|
8303
8322
|
v.collectionRef,
|
|
@@ -8373,21 +8392,21 @@ const s$ = "ToastViewport", c$ = [
|
|
|
8373
8392
|
if (v && m && y) {
|
|
8374
8393
|
const $ = () => {
|
|
8375
8394
|
if (!a.isClosePausedRef.current) {
|
|
8376
|
-
const
|
|
8377
|
-
y.dispatchEvent(
|
|
8395
|
+
const M = new CustomEvent(Uo);
|
|
8396
|
+
y.dispatchEvent(M), a.isClosePausedRef.current = !0;
|
|
8378
8397
|
}
|
|
8379
8398
|
}, w = () => {
|
|
8380
8399
|
if (a.isClosePausedRef.current) {
|
|
8381
|
-
const
|
|
8382
|
-
y.dispatchEvent(
|
|
8400
|
+
const M = new CustomEvent(Ko);
|
|
8401
|
+
y.dispatchEvent(M), a.isClosePausedRef.current = !1;
|
|
8383
8402
|
}
|
|
8384
|
-
}, g = (
|
|
8385
|
-
!m.contains(
|
|
8386
|
-
},
|
|
8403
|
+
}, g = (M) => {
|
|
8404
|
+
!m.contains(M.relatedTarget) && w();
|
|
8405
|
+
}, D = () => {
|
|
8387
8406
|
m.contains(document.activeElement) || w();
|
|
8388
8407
|
};
|
|
8389
|
-
return m.addEventListener("focusin", $), m.addEventListener("focusout", g), m.addEventListener("pointermove", $), m.addEventListener("pointerleave",
|
|
8390
|
-
m.removeEventListener("focusin", $), m.removeEventListener("focusout", g), m.removeEventListener("pointermove", $), m.removeEventListener("pointerleave",
|
|
8408
|
+
return m.addEventListener("focusin", $), m.addEventListener("focusout", g), m.addEventListener("pointermove", $), m.addEventListener("pointerleave", D), window.addEventListener("blur", $), window.addEventListener("focus", w), () => {
|
|
8409
|
+
m.removeEventListener("focusin", $), m.removeEventListener("focusout", g), m.removeEventListener("pointermove", $), m.removeEventListener("pointerleave", D), window.removeEventListener("blur", $), window.removeEventListener("focus", w);
|
|
8391
8410
|
};
|
|
8392
8411
|
}
|
|
8393
8412
|
}, [
|
|
@@ -8396,11 +8415,11 @@ const s$ = "ToastViewport", c$ = [
|
|
|
8396
8415
|
]);
|
|
8397
8416
|
const b = K(({ tabbingDirection: m }) => {
|
|
8398
8417
|
const $ = s().map((w) => {
|
|
8399
|
-
const g = w.ref.current,
|
|
8418
|
+
const g = w.ref.current, D = [
|
|
8400
8419
|
g,
|
|
8401
8420
|
...P$(g)
|
|
8402
8421
|
];
|
|
8403
|
-
return m === "forwards" ?
|
|
8422
|
+
return m === "forwards" ? D : D.reverse();
|
|
8404
8423
|
});
|
|
8405
8424
|
return (m === "forwards" ? $.reverse() : $).flat();
|
|
8406
8425
|
}, [
|
|
@@ -8414,20 +8433,20 @@ const s$ = "ToastViewport", c$ = [
|
|
|
8414
8433
|
if ($.key === "Tab" && !w) {
|
|
8415
8434
|
const A = document.activeElement, L = $.shiftKey;
|
|
8416
8435
|
if ($.target === m && L) {
|
|
8417
|
-
var
|
|
8418
|
-
(
|
|
8436
|
+
var D;
|
|
8437
|
+
(D = l.current) === null || D === void 0 || D.focus();
|
|
8419
8438
|
return;
|
|
8420
8439
|
}
|
|
8421
|
-
const
|
|
8440
|
+
const Y = b({
|
|
8422
8441
|
tabbingDirection: L ? "backwards" : "forwards"
|
|
8423
|
-
}),
|
|
8442
|
+
}), k = Y.findIndex(
|
|
8424
8443
|
(S) => S === A
|
|
8425
8444
|
);
|
|
8426
|
-
if (Hn(
|
|
8445
|
+
if (Hn(Y.slice(k + 1)))
|
|
8427
8446
|
$.preventDefault();
|
|
8428
8447
|
else {
|
|
8429
|
-
var
|
|
8430
|
-
L ? (
|
|
8448
|
+
var M, R;
|
|
8449
|
+
L ? (M = l.current) === null || M === void 0 || M.focus() : (R = u.current) === null || R === void 0 || R.focus();
|
|
8431
8450
|
}
|
|
8432
8451
|
}
|
|
8433
8452
|
};
|
|
@@ -8520,53 +8539,53 @@ const s$ = "ToastViewport", c$ = [
|
|
|
8520
8539
|
const { __scopeToast: r, type: n = "foreground", duration: o, open: i, onClose: a, onEscapeKeyDown: s, onPause: c, onResume: l, onSwipeStart: u, onSwipeMove: f, onSwipeCancel: h, onSwipeEnd: p, ...v } = e, b = wn(Pn, r), [m, y] = ee(null), $ = pe(
|
|
8521
8540
|
t,
|
|
8522
8541
|
(S) => y(S)
|
|
8523
|
-
), w = z(null), g = z(null),
|
|
8542
|
+
), w = z(null), g = z(null), D = o || b.duration, M = z(0), R = z(D), A = z(0), { onToastAdd: L, onToastRemove: Z } = b, E = ke(() => {
|
|
8524
8543
|
var S;
|
|
8525
8544
|
(m == null ? void 0 : m.contains(document.activeElement)) && ((S = b.viewport) === null || S === void 0 || S.focus()), a();
|
|
8526
|
-
}),
|
|
8527
|
-
!S || S === 1 / 0 || (window.clearTimeout(A.current),
|
|
8545
|
+
}), Y = K((S) => {
|
|
8546
|
+
!S || S === 1 / 0 || (window.clearTimeout(A.current), M.current = new Date().getTime(), A.current = window.setTimeout(E, S));
|
|
8528
8547
|
}, [
|
|
8529
8548
|
E
|
|
8530
8549
|
]);
|
|
8531
8550
|
q(() => {
|
|
8532
8551
|
const S = b.viewport;
|
|
8533
8552
|
if (S) {
|
|
8534
|
-
const
|
|
8535
|
-
|
|
8553
|
+
const ie = () => {
|
|
8554
|
+
Y(R.current), l == null || l();
|
|
8536
8555
|
}, re = () => {
|
|
8537
|
-
const
|
|
8538
|
-
R.current = R.current -
|
|
8556
|
+
const be = new Date().getTime() - M.current;
|
|
8557
|
+
R.current = R.current - be, window.clearTimeout(A.current), c == null || c();
|
|
8539
8558
|
};
|
|
8540
|
-
return S.addEventListener(Uo, re), S.addEventListener(Ko,
|
|
8541
|
-
S.removeEventListener(Uo, re), S.removeEventListener(Ko,
|
|
8559
|
+
return S.addEventListener(Uo, re), S.addEventListener(Ko, ie), () => {
|
|
8560
|
+
S.removeEventListener(Uo, re), S.removeEventListener(Ko, ie);
|
|
8542
8561
|
};
|
|
8543
8562
|
}
|
|
8544
8563
|
}, [
|
|
8545
8564
|
b.viewport,
|
|
8546
|
-
|
|
8565
|
+
D,
|
|
8547
8566
|
c,
|
|
8548
8567
|
l,
|
|
8549
|
-
|
|
8568
|
+
Y
|
|
8550
8569
|
]), q(() => {
|
|
8551
|
-
i && !b.isClosePausedRef.current &&
|
|
8570
|
+
i && !b.isClosePausedRef.current && Y(D);
|
|
8552
8571
|
}, [
|
|
8553
8572
|
i,
|
|
8554
|
-
|
|
8573
|
+
D,
|
|
8555
8574
|
b.isClosePausedRef,
|
|
8556
|
-
Z
|
|
8557
|
-
]), q(() => (L(), () => Y()), [
|
|
8558
|
-
L,
|
|
8559
8575
|
Y
|
|
8576
|
+
]), q(() => (L(), () => Z()), [
|
|
8577
|
+
L,
|
|
8578
|
+
Z
|
|
8560
8579
|
]);
|
|
8561
|
-
const
|
|
8580
|
+
const k = xe(() => m ? Od(m) : null, [
|
|
8562
8581
|
m
|
|
8563
8582
|
]);
|
|
8564
|
-
return b.viewport ? /* @__PURE__ */ _(pt, null,
|
|
8583
|
+
return b.viewport ? /* @__PURE__ */ _(pt, null, k && /* @__PURE__ */ _(m$, {
|
|
8565
8584
|
__scopeToast: r,
|
|
8566
8585
|
role: "status",
|
|
8567
8586
|
"aria-live": n === "foreground" ? "assertive" : "polite",
|
|
8568
8587
|
"aria-atomic": !0
|
|
8569
|
-
},
|
|
8588
|
+
}, k), /* @__PURE__ */ _(v$, {
|
|
8570
8589
|
scope: r,
|
|
8571
8590
|
onClose: E
|
|
8572
8591
|
}, /* @__PURE__ */ di(/* @__PURE__ */ _(ji.ItemSlot, {
|
|
@@ -8602,37 +8621,37 @@ const s$ = "ToastViewport", c$ = [
|
|
|
8602
8621
|
onPointerMove: G(e.onPointerMove, (S) => {
|
|
8603
8622
|
if (!w.current)
|
|
8604
8623
|
return;
|
|
8605
|
-
const
|
|
8624
|
+
const ie = S.clientX - w.current.x, re = S.clientY - w.current.y, be = Boolean(g.current), ye = [
|
|
8606
8625
|
"left",
|
|
8607
8626
|
"right"
|
|
8608
8627
|
].includes(b.swipeDirection), ne = [
|
|
8609
8628
|
"left",
|
|
8610
8629
|
"up"
|
|
8611
|
-
].includes(b.swipeDirection) ? Math.min : Math.max, P =
|
|
8630
|
+
].includes(b.swipeDirection) ? Math.min : Math.max, P = ye ? ne(0, ie) : 0, N = ye ? 0 : ne(0, re), W = S.pointerType === "touch" ? 10 : 2, B = {
|
|
8612
8631
|
x: P,
|
|
8613
|
-
y:
|
|
8632
|
+
y: N
|
|
8614
8633
|
}, j = {
|
|
8615
8634
|
originalEvent: S,
|
|
8616
8635
|
delta: B
|
|
8617
8636
|
};
|
|
8618
|
-
|
|
8637
|
+
be ? (g.current = B, Nr(f$, f, j, {
|
|
8619
8638
|
discrete: !1
|
|
8620
8639
|
})) : Za(B, b.swipeDirection, W) ? (g.current = B, Nr(d$, u, j, {
|
|
8621
8640
|
discrete: !1
|
|
8622
|
-
}), S.target.setPointerCapture(S.pointerId)) : (Math.abs(
|
|
8641
|
+
}), S.target.setPointerCapture(S.pointerId)) : (Math.abs(ie) > W || Math.abs(re) > W) && (w.current = null);
|
|
8623
8642
|
}),
|
|
8624
8643
|
onPointerUp: G(e.onPointerUp, (S) => {
|
|
8625
|
-
const
|
|
8626
|
-
if (re.hasPointerCapture(S.pointerId) && re.releasePointerCapture(S.pointerId), g.current = null, w.current = null,
|
|
8627
|
-
const
|
|
8644
|
+
const ie = g.current, re = S.target;
|
|
8645
|
+
if (re.hasPointerCapture(S.pointerId) && re.releasePointerCapture(S.pointerId), g.current = null, w.current = null, ie) {
|
|
8646
|
+
const be = S.currentTarget, ye = {
|
|
8628
8647
|
originalEvent: S,
|
|
8629
|
-
delta:
|
|
8648
|
+
delta: ie
|
|
8630
8649
|
};
|
|
8631
|
-
Za(
|
|
8650
|
+
Za(ie, b.swipeDirection, b.swipeThreshold) ? Nr(h$, p, ye, {
|
|
8632
8651
|
discrete: !0
|
|
8633
|
-
}) : Nr(p$, h,
|
|
8652
|
+
}) : Nr(p$, h, ye, {
|
|
8634
8653
|
discrete: !0
|
|
8635
|
-
}),
|
|
8654
|
+
}), be.addEventListener(
|
|
8636
8655
|
"click",
|
|
8637
8656
|
(ne) => ne.preventDefault(),
|
|
8638
8657
|
{
|
|
@@ -9054,7 +9073,7 @@ const Gn = "rovingFocusGroup.onEntryFocus", U$ = {
|
|
|
9054
9073
|
prop: a,
|
|
9055
9074
|
defaultProp: s,
|
|
9056
9075
|
onChange: c
|
|
9057
|
-
}), [m, y] = ee(!1), $ = ke(l), w = Dd(r), g = z(!1), [
|
|
9076
|
+
}), [m, y] = ee(!1), $ = ke(l), w = Dd(r), g = z(!1), [D, M] = ee(0);
|
|
9058
9077
|
return q(() => {
|
|
9059
9078
|
const R = f.current;
|
|
9060
9079
|
if (R)
|
|
@@ -9078,19 +9097,19 @@ const Gn = "rovingFocusGroup.onEntryFocus", U$ = {
|
|
|
9078
9097
|
[]
|
|
9079
9098
|
),
|
|
9080
9099
|
onFocusableItemAdd: K(
|
|
9081
|
-
() =>
|
|
9100
|
+
() => M(
|
|
9082
9101
|
(R) => R + 1
|
|
9083
9102
|
),
|
|
9084
9103
|
[]
|
|
9085
9104
|
),
|
|
9086
9105
|
onFocusableItemRemove: K(
|
|
9087
|
-
() =>
|
|
9106
|
+
() => M(
|
|
9088
9107
|
(R) => R - 1
|
|
9089
9108
|
),
|
|
9090
9109
|
[]
|
|
9091
9110
|
)
|
|
9092
9111
|
}, /* @__PURE__ */ _(oe.div, T({
|
|
9093
|
-
tabIndex: m ||
|
|
9112
|
+
tabIndex: m || D === 0 ? -1 : 0,
|
|
9094
9113
|
"data-orientation": n
|
|
9095
9114
|
}, u, {
|
|
9096
9115
|
ref: h,
|
|
@@ -9106,18 +9125,18 @@ const Gn = "rovingFocusGroup.onEntryFocus", U$ = {
|
|
|
9106
9125
|
if (R.target === R.currentTarget && A && !m) {
|
|
9107
9126
|
const L = new CustomEvent(Gn, U$);
|
|
9108
9127
|
if (R.currentTarget.dispatchEvent(L), !L.defaultPrevented) {
|
|
9109
|
-
const
|
|
9110
|
-
(
|
|
9111
|
-
), E =
|
|
9112
|
-
(
|
|
9113
|
-
),
|
|
9114
|
-
(
|
|
9128
|
+
const Z = w().filter(
|
|
9129
|
+
(ie) => ie.focusable
|
|
9130
|
+
), E = Z.find(
|
|
9131
|
+
(ie) => ie.active
|
|
9132
|
+
), Y = Z.find(
|
|
9133
|
+
(ie) => ie.id === v
|
|
9115
9134
|
), S = [
|
|
9116
9135
|
E,
|
|
9117
|
-
|
|
9118
|
-
...
|
|
9136
|
+
Y,
|
|
9137
|
+
...Z
|
|
9119
9138
|
].filter(Boolean).map(
|
|
9120
|
-
(
|
|
9139
|
+
(ie) => ie.ref.current
|
|
9121
9140
|
);
|
|
9122
9141
|
Ad(S);
|
|
9123
9142
|
}
|
|
@@ -9494,7 +9513,7 @@ const Sy = [
|
|
|
9494
9513
|
], Sn = "Select", [En, Ki, Ty] = Vi(Sn), [Pr, QP] = De(Sn, [
|
|
9495
9514
|
Ty
|
|
9496
9515
|
]), [Cy, Jt] = Pr(Sn), [Ry, Oy] = Pr(Sn), ky = (e) => {
|
|
9497
|
-
const { __scopeSelect: t, children: r, open: n, defaultOpen: o, onOpenChange: i, value: a, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: f, disabled: h, required: p } = e, [v, b] = ee(null), [m, y] = ee(null), [$, w] = ee(!1), g = Wi(l), [
|
|
9516
|
+
const { __scopeSelect: t, children: r, open: n, defaultOpen: o, onOpenChange: i, value: a, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: f, disabled: h, required: p } = e, [v, b] = ee(null), [m, y] = ee(null), [$, w] = ee(!1), g = Wi(l), [D = !1, M] = He({
|
|
9498
9517
|
prop: n,
|
|
9499
9518
|
defaultProp: o,
|
|
9500
9519
|
onChange: i
|
|
@@ -9502,7 +9521,7 @@ const Sy = [
|
|
|
9502
9521
|
prop: a,
|
|
9503
9522
|
defaultProp: s,
|
|
9504
9523
|
onChange: c
|
|
9505
|
-
}), L = z(null),
|
|
9524
|
+
}), L = z(null), Z = v ? Boolean(v.closest("form")) : !0, [E, Y] = ee(/* @__PURE__ */ new Set()), k = Array.from(E).map(
|
|
9506
9525
|
(S) => S.props.value
|
|
9507
9526
|
).join(";");
|
|
9508
9527
|
return /* @__PURE__ */ _(Cy, {
|
|
@@ -9517,8 +9536,8 @@ const Sy = [
|
|
|
9517
9536
|
contentId: et(),
|
|
9518
9537
|
value: R,
|
|
9519
9538
|
onValueChange: A,
|
|
9520
|
-
open:
|
|
9521
|
-
onOpenChange:
|
|
9539
|
+
open: D,
|
|
9540
|
+
onOpenChange: M,
|
|
9522
9541
|
dir: g,
|
|
9523
9542
|
triggerPointerDownPosRef: L,
|
|
9524
9543
|
disabled: h
|
|
@@ -9527,18 +9546,18 @@ const Sy = [
|
|
|
9527
9546
|
}, /* @__PURE__ */ _(Ry, {
|
|
9528
9547
|
scope: e.__scopeSelect,
|
|
9529
9548
|
onNativeOptionAdd: K((S) => {
|
|
9530
|
-
|
|
9531
|
-
(
|
|
9549
|
+
Y(
|
|
9550
|
+
(ie) => new Set(ie).add(S)
|
|
9532
9551
|
);
|
|
9533
9552
|
}, []),
|
|
9534
9553
|
onNativeOptionRemove: K((S) => {
|
|
9535
|
-
|
|
9536
|
-
const re = new Set(
|
|
9554
|
+
Y((ie) => {
|
|
9555
|
+
const re = new Set(ie);
|
|
9537
9556
|
return re.delete(S), re;
|
|
9538
9557
|
});
|
|
9539
9558
|
}, [])
|
|
9540
|
-
}, r)),
|
|
9541
|
-
key:
|
|
9559
|
+
}, r)), Z ? /* @__PURE__ */ _(Kd, {
|
|
9560
|
+
key: k,
|
|
9542
9561
|
"aria-hidden": !0,
|
|
9543
9562
|
required: p,
|
|
9544
9563
|
tabIndex: -1,
|
|
@@ -9627,7 +9646,7 @@ const Sy = [
|
|
|
9627
9646
|
const { __scopeSelect: r, onCloseAutoFocus: n, ...o } = e, i = Jt(Hi, r), [a, s] = ee(null), [c, l] = ee(null), [u, f] = ee(null), h = pe(
|
|
9628
9647
|
t,
|
|
9629
9648
|
(P) => l(P)
|
|
9630
|
-
), [p, v] = ee(null), [b, m] = ee(null), y = Ki(r), [$, w] = ee(!1), g = z(!0),
|
|
9649
|
+
), [p, v] = ee(null), [b, m] = ee(null), y = Ki(r), [$, w] = ee(!1), g = z(!0), D = z(!1), M = z(!1);
|
|
9631
9650
|
q(() => {
|
|
9632
9651
|
if (c)
|
|
9633
9652
|
return mi(c);
|
|
@@ -9641,34 +9660,34 @@ const Sy = [
|
|
|
9641
9660
|
c
|
|
9642
9661
|
]);
|
|
9643
9662
|
const L = K((P) => {
|
|
9644
|
-
const [
|
|
9663
|
+
const [N, ...W] = y().map(
|
|
9645
9664
|
(H) => H.ref.current
|
|
9646
9665
|
), [B] = W.slice(-1), j = document.activeElement;
|
|
9647
9666
|
for (const H of P)
|
|
9648
9667
|
if (H === j || (H == null || H.scrollIntoView({
|
|
9649
9668
|
block: "nearest"
|
|
9650
|
-
}), H ===
|
|
9669
|
+
}), H === N && u && (u.scrollTop = 0), H === B && u && (u.scrollTop = u.scrollHeight), H == null || H.focus(), document.activeElement !== j))
|
|
9651
9670
|
return;
|
|
9652
9671
|
}, [
|
|
9653
9672
|
y,
|
|
9654
9673
|
u
|
|
9655
|
-
]),
|
|
9674
|
+
]), Z = K(() => {
|
|
9656
9675
|
if (i.trigger && i.valueNode && a && c && u && p && b) {
|
|
9657
|
-
const P = i.trigger.getBoundingClientRect(),
|
|
9676
|
+
const P = i.trigger.getBoundingClientRect(), N = c.getBoundingClientRect(), W = i.valueNode.getBoundingClientRect(), B = b.getBoundingClientRect();
|
|
9658
9677
|
if (i.dir !== "rtl") {
|
|
9659
|
-
const Xe = B.left -
|
|
9678
|
+
const Xe = B.left - N.left, Be = W.left - Xe, We = P.left - Be, Je = P.width + We, er = Math.max(Je, N.width), tr = window.innerWidth - ct, rr = Qa(Be, [
|
|
9660
9679
|
ct,
|
|
9661
9680
|
tr - er
|
|
9662
9681
|
]);
|
|
9663
9682
|
a.style.minWidth = Je + "px", a.style.left = rr + "px";
|
|
9664
9683
|
} else {
|
|
9665
|
-
const Xe =
|
|
9684
|
+
const Xe = N.right - B.right, Be = window.innerWidth - W.right - Xe, We = window.innerWidth - P.right - Be, Je = P.width + We, er = Math.max(Je, N.width), tr = window.innerWidth - ct, rr = Qa(Be, [
|
|
9666
9685
|
ct,
|
|
9667
9686
|
tr - er
|
|
9668
9687
|
]);
|
|
9669
9688
|
a.style.minWidth = Je + "px", a.style.right = rr + "px";
|
|
9670
9689
|
}
|
|
9671
|
-
const j = y(), H = window.innerHeight - ct * 2, X = u.scrollHeight, Q = window.getComputedStyle(c), te = parseInt(Q.borderTopWidth, 10), ce = parseInt(Q.paddingTop, 10), se = parseInt(Q.borderBottomWidth, 10), we = parseInt(Q.paddingBottom, 10),
|
|
9690
|
+
const j = y(), H = window.innerHeight - ct * 2, X = u.scrollHeight, Q = window.getComputedStyle(c), te = parseInt(Q.borderTopWidth, 10), ce = parseInt(Q.paddingTop, 10), se = parseInt(Q.borderBottomWidth, 10), we = parseInt(Q.paddingBottom, 10), _e = te + ce + X + we + se, Te = Math.min(p.offsetHeight * 5, _e), Ve = window.getComputedStyle(u), Ie = parseInt(Ve.paddingTop, 10), je = parseInt(Ve.paddingBottom, 10), Pe = P.top + P.height / 2 - ct, Se = H - Pe, Me = p.offsetHeight / 2, Le = p.offsetTop + Me, it = te + ce + Le, Ot = _e - it;
|
|
9672
9691
|
if (it <= Pe) {
|
|
9673
9692
|
const Xe = p === j[j.length - 1].ref.current;
|
|
9674
9693
|
a.style.bottom = "0px";
|
|
@@ -9681,7 +9700,7 @@ const Sy = [
|
|
|
9681
9700
|
a.style.height = We + "px", u.scrollTop = it - Pe + u.offsetTop;
|
|
9682
9701
|
}
|
|
9683
9702
|
a.style.margin = `${ct}px 0`, a.style.minHeight = Te + "px", a.style.maxHeight = H + "px", w(!0), requestAnimationFrame(
|
|
9684
|
-
() =>
|
|
9703
|
+
() => D.current = !0
|
|
9685
9704
|
);
|
|
9686
9705
|
}
|
|
9687
9706
|
}, [
|
|
@@ -9696,9 +9715,9 @@ const Sy = [
|
|
|
9696
9715
|
i.dir
|
|
9697
9716
|
]);
|
|
9698
9717
|
Ee(
|
|
9699
|
-
() =>
|
|
9718
|
+
() => Z(),
|
|
9700
9719
|
[
|
|
9701
|
-
|
|
9720
|
+
Z
|
|
9702
9721
|
]
|
|
9703
9722
|
);
|
|
9704
9723
|
const E = K(
|
|
@@ -9718,70 +9737,70 @@ const Sy = [
|
|
|
9718
9737
|
$,
|
|
9719
9738
|
E
|
|
9720
9739
|
]);
|
|
9721
|
-
const
|
|
9722
|
-
P && g.current === !0 && (
|
|
9740
|
+
const Y = K((P) => {
|
|
9741
|
+
P && g.current === !0 && (Z(), E(), g.current = !1);
|
|
9723
9742
|
}, [
|
|
9724
|
-
|
|
9743
|
+
Z,
|
|
9725
9744
|
E
|
|
9726
|
-
]), { onOpenChange:
|
|
9745
|
+
]), { onOpenChange: k, triggerPointerDownPosRef: S } = i;
|
|
9727
9746
|
q(() => {
|
|
9728
9747
|
if (c) {
|
|
9729
9748
|
let P = {
|
|
9730
9749
|
x: 0,
|
|
9731
9750
|
y: 0
|
|
9732
9751
|
};
|
|
9733
|
-
const
|
|
9752
|
+
const N = (B) => {
|
|
9734
9753
|
var j, H, X, Q;
|
|
9735
9754
|
P = {
|
|
9736
9755
|
x: Math.abs(Math.round(B.pageX) - ((j = (H = S.current) === null || H === void 0 ? void 0 : H.x) !== null && j !== void 0 ? j : 0)),
|
|
9737
9756
|
y: Math.abs(Math.round(B.pageY) - ((X = (Q = S.current) === null || Q === void 0 ? void 0 : Q.y) !== null && X !== void 0 ? X : 0))
|
|
9738
9757
|
};
|
|
9739
9758
|
}, W = (B) => {
|
|
9740
|
-
P.x <= 10 && P.y <= 10 ? B.preventDefault() : c.contains(B.target) ||
|
|
9759
|
+
P.x <= 10 && P.y <= 10 ? B.preventDefault() : c.contains(B.target) || k(!1), document.removeEventListener("pointermove", N), S.current = null;
|
|
9741
9760
|
};
|
|
9742
|
-
return S.current !== null && (document.addEventListener("pointermove",
|
|
9761
|
+
return S.current !== null && (document.addEventListener("pointermove", N), document.addEventListener("pointerup", W, {
|
|
9743
9762
|
capture: !0,
|
|
9744
9763
|
once: !0
|
|
9745
9764
|
})), () => {
|
|
9746
|
-
document.removeEventListener("pointermove",
|
|
9765
|
+
document.removeEventListener("pointermove", N), document.removeEventListener("pointerup", W, {
|
|
9747
9766
|
capture: !0
|
|
9748
9767
|
});
|
|
9749
9768
|
};
|
|
9750
9769
|
}
|
|
9751
9770
|
}, [
|
|
9752
9771
|
c,
|
|
9753
|
-
|
|
9772
|
+
k,
|
|
9754
9773
|
S
|
|
9755
9774
|
]), q(() => {
|
|
9756
|
-
const P = () =>
|
|
9775
|
+
const P = () => k(!1);
|
|
9757
9776
|
return window.addEventListener("blur", P), window.addEventListener("resize", P), () => {
|
|
9758
9777
|
window.removeEventListener("blur", P), window.removeEventListener("resize", P);
|
|
9759
9778
|
};
|
|
9760
9779
|
}, [
|
|
9761
|
-
|
|
9780
|
+
k
|
|
9762
9781
|
]);
|
|
9763
|
-
const [
|
|
9764
|
-
const
|
|
9782
|
+
const [ie, re] = Hd((P) => {
|
|
9783
|
+
const N = y().filter(
|
|
9765
9784
|
(j) => !j.disabled
|
|
9766
|
-
), W =
|
|
9785
|
+
), W = N.find(
|
|
9767
9786
|
(j) => j.ref.current === document.activeElement
|
|
9768
|
-
), B = Gd(
|
|
9787
|
+
), B = Gd(N, P, W);
|
|
9769
9788
|
B && setTimeout(
|
|
9770
9789
|
() => B.ref.current.focus()
|
|
9771
9790
|
);
|
|
9772
|
-
}),
|
|
9773
|
-
const B = !
|
|
9774
|
-
(i.value !== void 0 && i.value ===
|
|
9791
|
+
}), be = K((P, N, W) => {
|
|
9792
|
+
const B = !M.current && !W;
|
|
9793
|
+
(i.value !== void 0 && i.value === N || B) && (v(P), B && (M.current = !0));
|
|
9775
9794
|
}, [
|
|
9776
9795
|
i.value
|
|
9777
|
-
]),
|
|
9796
|
+
]), ye = K(
|
|
9778
9797
|
() => c == null ? void 0 : c.focus(),
|
|
9779
9798
|
[
|
|
9780
9799
|
c
|
|
9781
9800
|
]
|
|
9782
|
-
), ne = K((P,
|
|
9783
|
-
const B = !
|
|
9784
|
-
(i.value !== void 0 && i.value ===
|
|
9801
|
+
), ne = K((P, N, W) => {
|
|
9802
|
+
const B = !M.current && !W;
|
|
9803
|
+
(i.value !== void 0 && i.value === N || B) && m(P);
|
|
9785
9804
|
}, [
|
|
9786
9805
|
i.value
|
|
9787
9806
|
]);
|
|
@@ -9791,15 +9810,15 @@ const Sy = [
|
|
|
9791
9810
|
content: c,
|
|
9792
9811
|
viewport: u,
|
|
9793
9812
|
onViewportChange: f,
|
|
9794
|
-
itemRefCallback:
|
|
9813
|
+
itemRefCallback: be,
|
|
9795
9814
|
selectedItem: p,
|
|
9796
|
-
onItemLeave:
|
|
9815
|
+
onItemLeave: ye,
|
|
9797
9816
|
itemTextRefCallback: ne,
|
|
9798
9817
|
selectedItemText: b,
|
|
9799
|
-
onScrollButtonChange:
|
|
9818
|
+
onScrollButtonChange: Y,
|
|
9800
9819
|
isPositioned: $,
|
|
9801
|
-
shouldExpandOnScrollRef:
|
|
9802
|
-
searchRef:
|
|
9820
|
+
shouldExpandOnScrollRef: D,
|
|
9821
|
+
searchRef: ie
|
|
9803
9822
|
}, /* @__PURE__ */ _(gi, {
|
|
9804
9823
|
as: wt,
|
|
9805
9824
|
allowPinchZoom: !0
|
|
@@ -9818,8 +9837,8 @@ const Sy = [
|
|
|
9818
9837
|
P.preventDefault();
|
|
9819
9838
|
},
|
|
9820
9839
|
onUnmountAutoFocus: G(n, (P) => {
|
|
9821
|
-
var
|
|
9822
|
-
(
|
|
9840
|
+
var N;
|
|
9841
|
+
(N = i.trigger) === null || N === void 0 || N.focus({
|
|
9823
9842
|
preventScroll: !0
|
|
9824
9843
|
}), P.preventDefault();
|
|
9825
9844
|
})
|
|
@@ -9843,8 +9862,8 @@ const Sy = [
|
|
|
9843
9862
|
onFocusOutside: (P) => P.preventDefault(),
|
|
9844
9863
|
onDismiss: () => i.onOpenChange(!1),
|
|
9845
9864
|
onKeyDown: G(o.onKeyDown, (P) => {
|
|
9846
|
-
const
|
|
9847
|
-
if (P.key === "Tab" && P.preventDefault(), !
|
|
9865
|
+
const N = P.ctrlKey || P.altKey || P.metaKey;
|
|
9866
|
+
if (P.key === "Tab" && P.preventDefault(), !N && P.key.length === 1 && re(P.key), [
|
|
9848
9867
|
"ArrowUp",
|
|
9849
9868
|
"ArrowDown",
|
|
9850
9869
|
"Home",
|
|
@@ -9996,7 +10015,7 @@ const Sy = [
|
|
|
9996
10015
|
var $;
|
|
9997
10016
|
return ($ = s.itemTextRefCallback) === null || $ === void 0 ? void 0 : $.call(s, y, c.value, c.disabled);
|
|
9998
10017
|
}
|
|
9999
|
-
), p = u == null ? void 0 : u.textContent, v =
|
|
10018
|
+
), p = u == null ? void 0 : u.textContent, v = xe(
|
|
10000
10019
|
() => /* @__PURE__ */ _("option", {
|
|
10001
10020
|
key: c.value,
|
|
10002
10021
|
value: c.value,
|
|
@@ -10739,9 +10758,9 @@ function B_() {
|
|
|
10739
10758
|
return eo = function(s, c) {
|
|
10740
10759
|
var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
10741
10760
|
function f(P) {
|
|
10742
|
-
var
|
|
10743
|
-
if (typeof
|
|
10744
|
-
return
|
|
10761
|
+
var N = P && (l && P[l] || P[u]);
|
|
10762
|
+
if (typeof N == "function")
|
|
10763
|
+
return N;
|
|
10745
10764
|
}
|
|
10746
10765
|
var h = "<<anonymous>>", p = {
|
|
10747
10766
|
array: y("array"),
|
|
@@ -10755,37 +10774,37 @@ function B_() {
|
|
|
10755
10774
|
any: $(),
|
|
10756
10775
|
arrayOf: w,
|
|
10757
10776
|
element: g(),
|
|
10758
|
-
elementType:
|
|
10759
|
-
instanceOf:
|
|
10760
|
-
node:
|
|
10777
|
+
elementType: D(),
|
|
10778
|
+
instanceOf: M,
|
|
10779
|
+
node: Z(),
|
|
10761
10780
|
objectOf: A,
|
|
10762
10781
|
oneOf: R,
|
|
10763
10782
|
oneOfType: L,
|
|
10764
|
-
shape:
|
|
10765
|
-
exact:
|
|
10783
|
+
shape: Y,
|
|
10784
|
+
exact: k
|
|
10766
10785
|
};
|
|
10767
|
-
function v(P,
|
|
10768
|
-
return P ===
|
|
10786
|
+
function v(P, N) {
|
|
10787
|
+
return P === N ? P !== 0 || 1 / P === 1 / N : P !== P && N !== N;
|
|
10769
10788
|
}
|
|
10770
|
-
function b(P,
|
|
10771
|
-
this.message = P, this.data =
|
|
10789
|
+
function b(P, N) {
|
|
10790
|
+
this.message = P, this.data = N && typeof N == "object" ? N : {}, this.stack = "";
|
|
10772
10791
|
}
|
|
10773
10792
|
b.prototype = Error.prototype;
|
|
10774
10793
|
function m(P) {
|
|
10775
10794
|
if (process.env.NODE_ENV !== "production")
|
|
10776
|
-
var
|
|
10795
|
+
var N = {}, W = 0;
|
|
10777
10796
|
function B(H, X, Q, te, ce, se, we) {
|
|
10778
10797
|
if (te = te || h, se = se || Q, we !== r) {
|
|
10779
10798
|
if (c) {
|
|
10780
|
-
var
|
|
10799
|
+
var _e = new Error(
|
|
10781
10800
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
10782
10801
|
);
|
|
10783
|
-
throw
|
|
10802
|
+
throw _e.name = "Invariant Violation", _e;
|
|
10784
10803
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
10785
10804
|
var Te = te + ":" + Q;
|
|
10786
|
-
!
|
|
10805
|
+
!N[Te] && W < 3 && (i(
|
|
10787
10806
|
"You are manually calling a React.PropTypes validation function for the `" + se + "` prop on `" + te + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
10788
|
-
),
|
|
10807
|
+
), N[Te] = !0, W++);
|
|
10789
10808
|
}
|
|
10790
10809
|
}
|
|
10791
10810
|
return X[Q] == null ? H ? X[Q] === null ? new b("The " + ce + " `" + se + "` is marked as required " + ("in `" + te + "`, but its value is `null`.")) : new b("The " + ce + " `" + se + "` is marked as required in " + ("`" + te + "`, but its value is `undefined`.")) : null : P(X, Q, te, ce, se);
|
|
@@ -10794,10 +10813,10 @@ function B_() {
|
|
|
10794
10813
|
return j.isRequired = B.bind(null, !0), j;
|
|
10795
10814
|
}
|
|
10796
10815
|
function y(P) {
|
|
10797
|
-
function
|
|
10816
|
+
function N(W, B, j, H, X, Q) {
|
|
10798
10817
|
var te = W[B], ce = re(te);
|
|
10799
10818
|
if (ce !== P) {
|
|
10800
|
-
var se =
|
|
10819
|
+
var se = be(te);
|
|
10801
10820
|
return new b(
|
|
10802
10821
|
"Invalid " + H + " `" + X + "` of type " + ("`" + se + "` supplied to `" + j + "`, expected ") + ("`" + P + "`."),
|
|
10803
10822
|
{ expectedType: P }
|
|
@@ -10805,13 +10824,13 @@ function B_() {
|
|
|
10805
10824
|
}
|
|
10806
10825
|
return null;
|
|
10807
10826
|
}
|
|
10808
|
-
return m(
|
|
10827
|
+
return m(N);
|
|
10809
10828
|
}
|
|
10810
10829
|
function $() {
|
|
10811
10830
|
return m(a);
|
|
10812
10831
|
}
|
|
10813
10832
|
function w(P) {
|
|
10814
|
-
function
|
|
10833
|
+
function N(W, B, j, H, X) {
|
|
10815
10834
|
if (typeof P != "function")
|
|
10816
10835
|
return new b("Property `" + X + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
10817
10836
|
var Q = W[B];
|
|
@@ -10826,11 +10845,11 @@ function B_() {
|
|
|
10826
10845
|
}
|
|
10827
10846
|
return null;
|
|
10828
10847
|
}
|
|
10829
|
-
return m(
|
|
10848
|
+
return m(N);
|
|
10830
10849
|
}
|
|
10831
10850
|
function g() {
|
|
10832
|
-
function P(
|
|
10833
|
-
var X =
|
|
10851
|
+
function P(N, W, B, j, H) {
|
|
10852
|
+
var X = N[W];
|
|
10834
10853
|
if (!s(X)) {
|
|
10835
10854
|
var Q = re(X);
|
|
10836
10855
|
return new b("Invalid " + j + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
@@ -10839,9 +10858,9 @@ function B_() {
|
|
|
10839
10858
|
}
|
|
10840
10859
|
return m(P);
|
|
10841
10860
|
}
|
|
10842
|
-
function
|
|
10843
|
-
function P(
|
|
10844
|
-
var X =
|
|
10861
|
+
function D() {
|
|
10862
|
+
function P(N, W, B, j, H) {
|
|
10863
|
+
var X = N[W];
|
|
10845
10864
|
if (!e.isValidElementType(X)) {
|
|
10846
10865
|
var Q = re(X);
|
|
10847
10866
|
return new b("Invalid " + j + " `" + H + "` of type " + ("`" + Q + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
@@ -10850,35 +10869,35 @@ function B_() {
|
|
|
10850
10869
|
}
|
|
10851
10870
|
return m(P);
|
|
10852
10871
|
}
|
|
10853
|
-
function
|
|
10854
|
-
function
|
|
10872
|
+
function M(P) {
|
|
10873
|
+
function N(W, B, j, H, X) {
|
|
10855
10874
|
if (!(W[B] instanceof P)) {
|
|
10856
10875
|
var Q = P.name || h, te = ne(W[B]);
|
|
10857
10876
|
return new b("Invalid " + H + " `" + X + "` of type " + ("`" + te + "` supplied to `" + j + "`, expected ") + ("instance of `" + Q + "`."));
|
|
10858
10877
|
}
|
|
10859
10878
|
return null;
|
|
10860
10879
|
}
|
|
10861
|
-
return m(
|
|
10880
|
+
return m(N);
|
|
10862
10881
|
}
|
|
10863
10882
|
function R(P) {
|
|
10864
10883
|
if (!Array.isArray(P))
|
|
10865
10884
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
10866
10885
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
10867
10886
|
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
10868
|
-
function
|
|
10887
|
+
function N(W, B, j, H, X) {
|
|
10869
10888
|
for (var Q = W[B], te = 0; te < P.length; te++)
|
|
10870
10889
|
if (v(Q, P[te]))
|
|
10871
10890
|
return null;
|
|
10872
|
-
var ce = JSON.stringify(P, function(we,
|
|
10873
|
-
var Te =
|
|
10874
|
-
return Te === "symbol" ? String(
|
|
10891
|
+
var ce = JSON.stringify(P, function(we, _e) {
|
|
10892
|
+
var Te = be(_e);
|
|
10893
|
+
return Te === "symbol" ? String(_e) : _e;
|
|
10875
10894
|
});
|
|
10876
10895
|
return new b("Invalid " + H + " `" + X + "` of value `" + String(Q) + "` " + ("supplied to `" + j + "`, expected one of " + ce + "."));
|
|
10877
10896
|
}
|
|
10878
|
-
return m(
|
|
10897
|
+
return m(N);
|
|
10879
10898
|
}
|
|
10880
10899
|
function A(P) {
|
|
10881
|
-
function
|
|
10900
|
+
function N(W, B, j, H, X) {
|
|
10882
10901
|
if (typeof P != "function")
|
|
10883
10902
|
return new b("Property `" + X + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
10884
10903
|
var Q = W[B], te = re(Q);
|
|
@@ -10892,60 +10911,60 @@ function B_() {
|
|
|
10892
10911
|
}
|
|
10893
10912
|
return null;
|
|
10894
10913
|
}
|
|
10895
|
-
return m(
|
|
10914
|
+
return m(N);
|
|
10896
10915
|
}
|
|
10897
10916
|
function L(P) {
|
|
10898
10917
|
if (!Array.isArray(P))
|
|
10899
10918
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
10900
|
-
for (var
|
|
10901
|
-
var W = P[
|
|
10919
|
+
for (var N = 0; N < P.length; N++) {
|
|
10920
|
+
var W = P[N];
|
|
10902
10921
|
if (typeof W != "function")
|
|
10903
10922
|
return i(
|
|
10904
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
10923
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ye(W) + " at index " + N + "."
|
|
10905
10924
|
), a;
|
|
10906
10925
|
}
|
|
10907
10926
|
function B(j, H, X, Q, te) {
|
|
10908
10927
|
for (var ce = [], se = 0; se < P.length; se++) {
|
|
10909
|
-
var we = P[se],
|
|
10910
|
-
if (
|
|
10928
|
+
var we = P[se], _e = we(j, H, X, Q, te, r);
|
|
10929
|
+
if (_e == null)
|
|
10911
10930
|
return null;
|
|
10912
|
-
|
|
10931
|
+
_e.data && n(_e.data, "expectedType") && ce.push(_e.data.expectedType);
|
|
10913
10932
|
}
|
|
10914
10933
|
var Te = ce.length > 0 ? ", expected one of type [" + ce.join(", ") + "]" : "";
|
|
10915
10934
|
return new b("Invalid " + Q + " `" + te + "` supplied to " + ("`" + X + "`" + Te + "."));
|
|
10916
10935
|
}
|
|
10917
10936
|
return m(B);
|
|
10918
10937
|
}
|
|
10919
|
-
function
|
|
10920
|
-
function P(
|
|
10921
|
-
return S(
|
|
10938
|
+
function Z() {
|
|
10939
|
+
function P(N, W, B, j, H) {
|
|
10940
|
+
return S(N[W]) ? null : new b("Invalid " + j + " `" + H + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
10922
10941
|
}
|
|
10923
10942
|
return m(P);
|
|
10924
10943
|
}
|
|
10925
|
-
function E(P,
|
|
10944
|
+
function E(P, N, W, B, j) {
|
|
10926
10945
|
return new b(
|
|
10927
|
-
(P || "React class") + ": " +
|
|
10946
|
+
(P || "React class") + ": " + N + " type `" + W + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
|
|
10928
10947
|
);
|
|
10929
10948
|
}
|
|
10930
|
-
function
|
|
10931
|
-
function
|
|
10949
|
+
function Y(P) {
|
|
10950
|
+
function N(W, B, j, H, X) {
|
|
10932
10951
|
var Q = W[B], te = re(Q);
|
|
10933
10952
|
if (te !== "object")
|
|
10934
10953
|
return new b("Invalid " + H + " `" + X + "` of type `" + te + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
10935
10954
|
for (var ce in P) {
|
|
10936
10955
|
var se = P[ce];
|
|
10937
10956
|
if (typeof se != "function")
|
|
10938
|
-
return E(j, H, X, ce,
|
|
10957
|
+
return E(j, H, X, ce, be(se));
|
|
10939
10958
|
var we = se(Q, ce, j, H, X + "." + ce, r);
|
|
10940
10959
|
if (we)
|
|
10941
10960
|
return we;
|
|
10942
10961
|
}
|
|
10943
10962
|
return null;
|
|
10944
10963
|
}
|
|
10945
|
-
return m(
|
|
10964
|
+
return m(N);
|
|
10946
10965
|
}
|
|
10947
|
-
function
|
|
10948
|
-
function
|
|
10966
|
+
function k(P) {
|
|
10967
|
+
function N(W, B, j, H, X) {
|
|
10949
10968
|
var Q = W[B], te = re(Q);
|
|
10950
10969
|
if (te !== "object")
|
|
10951
10970
|
return new b("Invalid " + H + " `" + X + "` of type `" + te + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
@@ -10953,19 +10972,19 @@ function B_() {
|
|
|
10953
10972
|
for (var se in ce) {
|
|
10954
10973
|
var we = P[se];
|
|
10955
10974
|
if (n(P, se) && typeof we != "function")
|
|
10956
|
-
return E(j, H, X, se,
|
|
10975
|
+
return E(j, H, X, se, be(we));
|
|
10957
10976
|
if (!we)
|
|
10958
10977
|
return new b(
|
|
10959
10978
|
"Invalid " + H + " `" + X + "` key `" + se + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(W[B], null, " ") + `
|
|
10960
10979
|
Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
|
|
10961
10980
|
);
|
|
10962
|
-
var
|
|
10963
|
-
if (
|
|
10964
|
-
return
|
|
10981
|
+
var _e = we(Q, se, j, H, X + "." + se, r);
|
|
10982
|
+
if (_e)
|
|
10983
|
+
return _e;
|
|
10965
10984
|
}
|
|
10966
10985
|
return null;
|
|
10967
10986
|
}
|
|
10968
|
-
return m(
|
|
10987
|
+
return m(N);
|
|
10969
10988
|
}
|
|
10970
10989
|
function S(P) {
|
|
10971
10990
|
switch (typeof P) {
|
|
@@ -10980,10 +10999,10 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
|
|
|
10980
10999
|
return P.every(S);
|
|
10981
11000
|
if (P === null || s(P))
|
|
10982
11001
|
return !0;
|
|
10983
|
-
var
|
|
10984
|
-
if (
|
|
10985
|
-
var W =
|
|
10986
|
-
if (
|
|
11002
|
+
var N = f(P);
|
|
11003
|
+
if (N) {
|
|
11004
|
+
var W = N.call(P), B;
|
|
11005
|
+
if (N !== P.entries) {
|
|
10987
11006
|
for (; !(B = W.next()).done; )
|
|
10988
11007
|
if (!S(B.value))
|
|
10989
11008
|
return !1;
|
|
@@ -11000,37 +11019,37 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
|
|
|
11000
11019
|
return !1;
|
|
11001
11020
|
}
|
|
11002
11021
|
}
|
|
11003
|
-
function
|
|
11004
|
-
return P === "symbol" ? !0 :
|
|
11022
|
+
function ie(P, N) {
|
|
11023
|
+
return P === "symbol" ? !0 : N ? N["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && N instanceof Symbol : !1;
|
|
11005
11024
|
}
|
|
11006
11025
|
function re(P) {
|
|
11007
|
-
var
|
|
11008
|
-
return Array.isArray(P) ? "array" : P instanceof RegExp ? "object" :
|
|
11026
|
+
var N = typeof P;
|
|
11027
|
+
return Array.isArray(P) ? "array" : P instanceof RegExp ? "object" : ie(N, P) ? "symbol" : N;
|
|
11009
11028
|
}
|
|
11010
|
-
function
|
|
11029
|
+
function be(P) {
|
|
11011
11030
|
if (typeof P > "u" || P === null)
|
|
11012
11031
|
return "" + P;
|
|
11013
|
-
var
|
|
11014
|
-
if (
|
|
11032
|
+
var N = re(P);
|
|
11033
|
+
if (N === "object") {
|
|
11015
11034
|
if (P instanceof Date)
|
|
11016
11035
|
return "date";
|
|
11017
11036
|
if (P instanceof RegExp)
|
|
11018
11037
|
return "regexp";
|
|
11019
11038
|
}
|
|
11020
|
-
return
|
|
11039
|
+
return N;
|
|
11021
11040
|
}
|
|
11022
|
-
function
|
|
11023
|
-
var
|
|
11024
|
-
switch (
|
|
11041
|
+
function ye(P) {
|
|
11042
|
+
var N = be(P);
|
|
11043
|
+
switch (N) {
|
|
11025
11044
|
case "array":
|
|
11026
11045
|
case "object":
|
|
11027
|
-
return "an " +
|
|
11046
|
+
return "an " + N;
|
|
11028
11047
|
case "boolean":
|
|
11029
11048
|
case "date":
|
|
11030
11049
|
case "regexp":
|
|
11031
|
-
return "a " +
|
|
11050
|
+
return "a " + N;
|
|
11032
11051
|
default:
|
|
11033
|
-
return
|
|
11052
|
+
return N;
|
|
11034
11053
|
}
|
|
11035
11054
|
}
|
|
11036
11055
|
function ne(P) {
|
|
@@ -12493,7 +12512,7 @@ if (Sr) {
|
|
|
12493
12512
|
}
|
|
12494
12513
|
ir === "Webkit" && "msHyphens" in co && (ir = "ms", ai = so.ms, qf = "edge"), ir === "Webkit" && "-apple-trailing-word" in co && (Gf = "apple");
|
|
12495
12514
|
}
|
|
12496
|
-
var
|
|
12515
|
+
var ae = {
|
|
12497
12516
|
js: ir,
|
|
12498
12517
|
css: ai,
|
|
12499
12518
|
vendor: Gf,
|
|
@@ -12501,17 +12520,17 @@ var ie = {
|
|
|
12501
12520
|
isTouch: d1
|
|
12502
12521
|
};
|
|
12503
12522
|
function h1(e) {
|
|
12504
|
-
return e[1] === "-" ||
|
|
12523
|
+
return e[1] === "-" || ae.js === "ms" ? e : "@" + ae.css + "keyframes" + e.substr(10);
|
|
12505
12524
|
}
|
|
12506
12525
|
var b1 = {
|
|
12507
12526
|
noPrefill: ["appearance"],
|
|
12508
12527
|
supportedProperty: function(t) {
|
|
12509
|
-
return t !== "appearance" ? !1 :
|
|
12528
|
+
return t !== "appearance" ? !1 : ae.js === "ms" ? "-webkit-" + t : ae.css + t;
|
|
12510
12529
|
}
|
|
12511
12530
|
}, v1 = {
|
|
12512
12531
|
noPrefill: ["color-adjust"],
|
|
12513
12532
|
supportedProperty: function(t) {
|
|
12514
|
-
return t !== "color-adjust" ? !1 :
|
|
12533
|
+
return t !== "color-adjust" ? !1 : ae.js === "Webkit" ? ae.css + "print-" + t : t;
|
|
12515
12534
|
}
|
|
12516
12535
|
}, g1 = /[-\s]+(.)?/g;
|
|
12517
12536
|
function m1(e, t) {
|
|
@@ -12528,49 +12547,49 @@ var $1 = {
|
|
|
12528
12547
|
supportedProperty: function(t, r) {
|
|
12529
12548
|
if (!/^mask/.test(t))
|
|
12530
12549
|
return !1;
|
|
12531
|
-
if (
|
|
12550
|
+
if (ae.js === "Webkit") {
|
|
12532
12551
|
var n = "mask-image";
|
|
12533
12552
|
if (ta(n) in r)
|
|
12534
12553
|
return t;
|
|
12535
|
-
if (
|
|
12536
|
-
return
|
|
12554
|
+
if (ae.js + ft(n) in r)
|
|
12555
|
+
return ae.css + t;
|
|
12537
12556
|
}
|
|
12538
12557
|
return t;
|
|
12539
12558
|
}
|
|
12540
12559
|
}, y1 = {
|
|
12541
12560
|
noPrefill: ["text-orientation"],
|
|
12542
12561
|
supportedProperty: function(t) {
|
|
12543
|
-
return t !== "text-orientation" ? !1 :
|
|
12562
|
+
return t !== "text-orientation" ? !1 : ae.vendor === "apple" && !ae.isTouch ? ae.css + t : t;
|
|
12544
12563
|
}
|
|
12545
12564
|
}, _1 = {
|
|
12546
12565
|
noPrefill: ["transform"],
|
|
12547
12566
|
supportedProperty: function(t, r, n) {
|
|
12548
|
-
return t !== "transform" ? !1 : n.transform ? t :
|
|
12567
|
+
return t !== "transform" ? !1 : n.transform ? t : ae.css + t;
|
|
12549
12568
|
}
|
|
12550
12569
|
}, x1 = {
|
|
12551
12570
|
noPrefill: ["transition"],
|
|
12552
12571
|
supportedProperty: function(t, r, n) {
|
|
12553
|
-
return t !== "transition" ? !1 : n.transition ? t :
|
|
12572
|
+
return t !== "transition" ? !1 : n.transition ? t : ae.css + t;
|
|
12554
12573
|
}
|
|
12555
12574
|
}, w1 = {
|
|
12556
12575
|
noPrefill: ["writing-mode"],
|
|
12557
12576
|
supportedProperty: function(t) {
|
|
12558
|
-
return t !== "writing-mode" ? !1 :
|
|
12577
|
+
return t !== "writing-mode" ? !1 : ae.js === "Webkit" || ae.js === "ms" && ae.browser !== "edge" ? ae.css + t : t;
|
|
12559
12578
|
}
|
|
12560
12579
|
}, P1 = {
|
|
12561
12580
|
noPrefill: ["user-select"],
|
|
12562
12581
|
supportedProperty: function(t) {
|
|
12563
|
-
return t !== "user-select" ? !1 :
|
|
12582
|
+
return t !== "user-select" ? !1 : ae.js === "Moz" || ae.js === "ms" || ae.vendor === "apple" ? ae.css + t : t;
|
|
12564
12583
|
}
|
|
12565
12584
|
}, S1 = {
|
|
12566
12585
|
supportedProperty: function(t, r) {
|
|
12567
12586
|
if (!/^break-/.test(t))
|
|
12568
12587
|
return !1;
|
|
12569
|
-
if (
|
|
12588
|
+
if (ae.js === "Webkit") {
|
|
12570
12589
|
var n = "WebkitColumn" + ft(t);
|
|
12571
|
-
return n in r ?
|
|
12590
|
+
return n in r ? ae.css + "column-" + t : !1;
|
|
12572
12591
|
}
|
|
12573
|
-
if (
|
|
12592
|
+
if (ae.js === "Moz") {
|
|
12574
12593
|
var o = "page" + ft(t);
|
|
12575
12594
|
return o in r ? "page-" + t : !1;
|
|
12576
12595
|
}
|
|
@@ -12580,10 +12599,10 @@ var $1 = {
|
|
|
12580
12599
|
supportedProperty: function(t, r) {
|
|
12581
12600
|
if (!/^(border|margin|padding)-inline/.test(t))
|
|
12582
12601
|
return !1;
|
|
12583
|
-
if (
|
|
12602
|
+
if (ae.js === "Moz")
|
|
12584
12603
|
return t;
|
|
12585
12604
|
var n = t.replace("-inline", "");
|
|
12586
|
-
return
|
|
12605
|
+
return ae.js + ft(n) in r ? ae.css + n : !1;
|
|
12587
12606
|
}
|
|
12588
12607
|
}, T1 = {
|
|
12589
12608
|
supportedProperty: function(t, r) {
|
|
@@ -12592,15 +12611,15 @@ var $1 = {
|
|
|
12592
12611
|
}, C1 = {
|
|
12593
12612
|
supportedProperty: function(t, r) {
|
|
12594
12613
|
var n = ft(t);
|
|
12595
|
-
return t[0] === "-" || t[0] === "-" && t[1] === "-" ? t :
|
|
12614
|
+
return t[0] === "-" || t[0] === "-" && t[1] === "-" ? t : ae.js + n in r ? ae.css + t : ae.js !== "Webkit" && "Webkit" + n in r ? "-webkit-" + t : !1;
|
|
12596
12615
|
}
|
|
12597
12616
|
}, R1 = {
|
|
12598
12617
|
supportedProperty: function(t) {
|
|
12599
|
-
return t.substring(0, 11) !== "scroll-snap" ? !1 :
|
|
12618
|
+
return t.substring(0, 11) !== "scroll-snap" ? !1 : ae.js === "ms" ? "" + ae.css + t : t;
|
|
12600
12619
|
}
|
|
12601
12620
|
}, O1 = {
|
|
12602
12621
|
supportedProperty: function(t) {
|
|
12603
|
-
return t !== "overscroll-behavior" ? !1 :
|
|
12622
|
+
return t !== "overscroll-behavior" ? !1 : ae.js === "ms" ? ae.css + "scroll-chaining" : t;
|
|
12604
12623
|
}
|
|
12605
12624
|
}, k1 = {
|
|
12606
12625
|
"flex-grow": "flex-positive",
|
|
@@ -12613,7 +12632,7 @@ var $1 = {
|
|
|
12613
12632
|
}, D1 = {
|
|
12614
12633
|
supportedProperty: function(t, r) {
|
|
12615
12634
|
var n = k1[t];
|
|
12616
|
-
return n &&
|
|
12635
|
+
return n && ae.js + ft(n) in r ? ae.css + n : !1;
|
|
12617
12636
|
}
|
|
12618
12637
|
}, Yf = {
|
|
12619
12638
|
flex: "box-flex",
|
|
@@ -12624,18 +12643,18 @@ var $1 = {
|
|
|
12624
12643
|
"flex-flow": ["box-orient", "box-direction"],
|
|
12625
12644
|
"justify-content": "box-pack"
|
|
12626
12645
|
}, I1 = Object.keys(Yf), A1 = function(t) {
|
|
12627
|
-
return
|
|
12646
|
+
return ae.css + t;
|
|
12628
12647
|
}, N1 = {
|
|
12629
12648
|
supportedProperty: function(t, r, n) {
|
|
12630
12649
|
var o = n.multiple;
|
|
12631
12650
|
if (I1.indexOf(t) > -1) {
|
|
12632
12651
|
var i = Yf[t];
|
|
12633
12652
|
if (!Array.isArray(i))
|
|
12634
|
-
return
|
|
12653
|
+
return ae.js + ft(i) in r ? ae.css + i : !1;
|
|
12635
12654
|
if (!o)
|
|
12636
12655
|
return !1;
|
|
12637
12656
|
for (var a = 0; a < i.length; a++)
|
|
12638
|
-
if (!(
|
|
12657
|
+
if (!(ae.js + ft(i[0]) in r))
|
|
12639
12658
|
return !1;
|
|
12640
12659
|
return i.map(A1);
|
|
12641
12660
|
}
|
|
@@ -12707,7 +12726,7 @@ function xs(e, t) {
|
|
|
12707
12726
|
}
|
|
12708
12727
|
if (L1[e])
|
|
12709
12728
|
r = r.replace(F1, z1);
|
|
12710
|
-
else if (lt.style[e] === "" && (r =
|
|
12729
|
+
else if (lt.style[e] === "" && (r = ae.css + r, r === "-ms-flex" && (lt.style[e] = "-ms-flexbox"), lt.style[e] = r, lt.style[e] === ""))
|
|
12711
12730
|
return zt[n] = !1, !1;
|
|
12712
12731
|
return lt.style[e] = "", zt[n] = r, zt[n];
|
|
12713
12732
|
}
|
|
@@ -13437,16 +13456,16 @@ function Tw(e) {
|
|
|
13437
13456
|
function g(A) {
|
|
13438
13457
|
var L = Es(A, yo.text.primary) >= m ? yo.text.primary : Cs.text.primary;
|
|
13439
13458
|
if (process.env.NODE_ENV !== "production") {
|
|
13440
|
-
var
|
|
13441
|
-
|
|
13459
|
+
var Z = Es(A, L);
|
|
13460
|
+
Z < 3 && console.error(["Material-UI: The contrast ratio of ".concat(Z, ":1 for ").concat(L, " on ").concat(A), "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
13442
13461
|
`));
|
|
13443
13462
|
}
|
|
13444
13463
|
return L;
|
|
13445
13464
|
}
|
|
13446
|
-
var
|
|
13447
|
-
var
|
|
13448
|
-
if (L = T({}, L), !L.main && L[
|
|
13449
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(
|
|
13465
|
+
var D = function(L) {
|
|
13466
|
+
var Z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500, E = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300, Y = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
|
|
13467
|
+
if (L = T({}, L), !L.main && L[Z] && (L.main = L[Z]), !L.main)
|
|
13468
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(Z, "` property.") : Xr(4, Z));
|
|
13450
13469
|
if (typeof L.main != "string")
|
|
13451
13470
|
throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(L.main), `\` was provided instead.
|
|
13452
13471
|
|
|
@@ -13461,27 +13480,27 @@ const theme1 = createTheme({ palette: {
|
|
|
13461
13480
|
const theme2 = createTheme({ palette: {
|
|
13462
13481
|
primary: { main: green[500] },
|
|
13463
13482
|
} });`) : Xr(5, JSON.stringify(L.main)));
|
|
13464
|
-
return Rs(L, "light", E, $), Rs(L, "dark",
|
|
13465
|
-
},
|
|
13483
|
+
return Rs(L, "light", E, $), Rs(L, "dark", Y, $), L.contrastText || (L.contrastText = g(L.main)), L;
|
|
13484
|
+
}, M = {
|
|
13466
13485
|
dark: yo,
|
|
13467
13486
|
light: Cs
|
|
13468
13487
|
};
|
|
13469
|
-
process.env.NODE_ENV !== "production" && (
|
|
13488
|
+
process.env.NODE_ENV !== "production" && (M[v] || console.error("Material-UI: The palette type `".concat(v, "` is not supported.")));
|
|
13470
13489
|
var R = Kt(T({
|
|
13471
13490
|
common: Qr,
|
|
13472
13491
|
type: v,
|
|
13473
|
-
primary:
|
|
13474
|
-
secondary:
|
|
13475
|
-
error:
|
|
13476
|
-
warning:
|
|
13477
|
-
info:
|
|
13478
|
-
success:
|
|
13492
|
+
primary: D(r),
|
|
13493
|
+
secondary: D(o, "A400", "A200", "A700"),
|
|
13494
|
+
error: D(a),
|
|
13495
|
+
warning: D(c),
|
|
13496
|
+
info: D(u),
|
|
13497
|
+
success: D(h),
|
|
13479
13498
|
grey: oa,
|
|
13480
13499
|
contrastThreshold: m,
|
|
13481
13500
|
getContrastText: g,
|
|
13482
|
-
augmentColor:
|
|
13501
|
+
augmentColor: D,
|
|
13483
13502
|
tonalOffset: $
|
|
13484
|
-
},
|
|
13503
|
+
}, M[v]), w);
|
|
13485
13504
|
return R;
|
|
13486
13505
|
}
|
|
13487
13506
|
function ip(e) {
|
|
@@ -13498,35 +13517,35 @@ var ks = {
|
|
|
13498
13517
|
function Rw(e, t) {
|
|
13499
13518
|
var r = typeof t == "function" ? t(e) : t, n = r.fontFamily, o = n === void 0 ? Ds : n, i = r.fontSize, a = i === void 0 ? 14 : i, s = r.fontWeightLight, c = s === void 0 ? 300 : s, l = r.fontWeightRegular, u = l === void 0 ? 400 : l, f = r.fontWeightMedium, h = f === void 0 ? 500 : f, p = r.fontWeightBold, v = p === void 0 ? 700 : p, b = r.htmlFontSize, m = b === void 0 ? 16 : b, y = r.allVariants, $ = r.pxToRem, w = qe(r, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
|
|
13500
13519
|
process.env.NODE_ENV !== "production" && (typeof a != "number" && console.error("Material-UI: `fontSize` is required to be a number."), typeof m != "number" && console.error("Material-UI: `htmlFontSize` is required to be a number."));
|
|
13501
|
-
var g = a / 14,
|
|
13520
|
+
var g = a / 14, D = $ || function(A) {
|
|
13502
13521
|
return "".concat(A / m * g, "rem");
|
|
13503
|
-
},
|
|
13522
|
+
}, M = function(L, Z, E, Y, k) {
|
|
13504
13523
|
return T({
|
|
13505
13524
|
fontFamily: o,
|
|
13506
13525
|
fontWeight: L,
|
|
13507
|
-
fontSize:
|
|
13526
|
+
fontSize: D(Z),
|
|
13508
13527
|
lineHeight: E
|
|
13509
13528
|
}, o === Ds ? {
|
|
13510
|
-
letterSpacing: "".concat(ip(
|
|
13511
|
-
} : {},
|
|
13529
|
+
letterSpacing: "".concat(ip(Y / Z), "em")
|
|
13530
|
+
} : {}, k, y);
|
|
13512
13531
|
}, R = {
|
|
13513
|
-
h1:
|
|
13514
|
-
h2:
|
|
13515
|
-
h3:
|
|
13516
|
-
h4:
|
|
13517
|
-
h5:
|
|
13518
|
-
h6:
|
|
13519
|
-
subtitle1:
|
|
13520
|
-
subtitle2:
|
|
13521
|
-
body1:
|
|
13522
|
-
body2:
|
|
13523
|
-
button:
|
|
13524
|
-
caption:
|
|
13525
|
-
overline:
|
|
13532
|
+
h1: M(c, 96, 1.167, -1.5),
|
|
13533
|
+
h2: M(c, 60, 1.2, -0.5),
|
|
13534
|
+
h3: M(u, 48, 1.167, 0),
|
|
13535
|
+
h4: M(u, 34, 1.235, 0.25),
|
|
13536
|
+
h5: M(u, 24, 1.334, 0),
|
|
13537
|
+
h6: M(h, 20, 1.6, 0.15),
|
|
13538
|
+
subtitle1: M(u, 16, 1.75, 0.15),
|
|
13539
|
+
subtitle2: M(h, 14, 1.57, 0.1),
|
|
13540
|
+
body1: M(u, 16, 1.5, 0.15),
|
|
13541
|
+
body2: M(u, 14, 1.43, 0.15),
|
|
13542
|
+
button: M(h, 14, 1.75, 0.4, ks),
|
|
13543
|
+
caption: M(u, 12, 1.66, 0.4),
|
|
13544
|
+
overline: M(u, 12, 2.66, 1, ks)
|
|
13526
13545
|
};
|
|
13527
13546
|
return Kt(T({
|
|
13528
13547
|
htmlFontSize: m,
|
|
13529
|
-
pxToRem:
|
|
13548
|
+
pxToRem: D,
|
|
13530
13549
|
round: Cw,
|
|
13531
13550
|
fontFamily: o,
|
|
13532
13551
|
fontSize: a,
|
|
@@ -13656,17 +13675,17 @@ function Kw() {
|
|
|
13656
13675
|
zIndex: Uw
|
|
13657
13676
|
}, u), b = arguments.length, m = new Array(b > 1 ? b - 1 : 0), y = 1; y < b; y++)
|
|
13658
13677
|
m[y - 1] = arguments[y];
|
|
13659
|
-
if (v = m.reduce(function(g,
|
|
13660
|
-
return Kt(g,
|
|
13678
|
+
if (v = m.reduce(function(g, D) {
|
|
13679
|
+
return Kt(g, D);
|
|
13661
13680
|
}, v), process.env.NODE_ENV !== "production") {
|
|
13662
|
-
var $ = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"], w = function g(
|
|
13681
|
+
var $ = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"], w = function g(D, M) {
|
|
13663
13682
|
var R = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, A;
|
|
13664
|
-
for (A in
|
|
13665
|
-
var L =
|
|
13666
|
-
R === 1 ? A.indexOf("Mui") === 0 && L && g(L, A, R + 1) : $.indexOf(A) !== -1 && Object.keys(L).length > 0 && (process.env.NODE_ENV !== "production" && console.error(["Material-UI: The `".concat(
|
|
13683
|
+
for (A in D) {
|
|
13684
|
+
var L = D[A];
|
|
13685
|
+
R === 1 ? A.indexOf("Mui") === 0 && L && g(L, A, R + 1) : $.indexOf(A) !== -1 && Object.keys(L).length > 0 && (process.env.NODE_ENV !== "production" && console.error(["Material-UI: The `".concat(M, "` component increases ") + "the CSS specificity of the `".concat(A, "` internal state."), "You can not override it like this: ", JSON.stringify(D, null, 2), "", "Instead, you need to use the $ruleName syntax:", JSON.stringify({
|
|
13667
13686
|
root: cr({}, "&$".concat(A), L)
|
|
13668
13687
|
}, null, 2), "", "https://mui.com/r/pseudo-classes-guide"].join(`
|
|
13669
|
-
`)),
|
|
13688
|
+
`)), D[A] = {});
|
|
13670
13689
|
}
|
|
13671
13690
|
};
|
|
13672
13691
|
w(v.overrides);
|