react-luminus-components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/.vite/manifest.json +133 -0
- package/dist/Modal-JLnYbEat.js +1 -0
- package/dist/Modal-_FnSEPRk.mjs +623 -0
- package/dist/SimpleTooltip-BjlbHsKC.mjs +1767 -0
- package/dist/SimpleTooltip-D9shMl1R.js +1 -0
- package/dist/components/EmployeePicker/EmployeeSearch/EmployeeSearch.d.ts +7 -0
- package/dist/components/EmployeePicker/EmployeeSearchModal/EmployeeSearchModal.d.ts +9 -0
- package/dist/components/EmployeePicker/comps/EmployeeSearchItem/EmployeeSearchItem.d.ts +7 -0
- package/dist/components/EmployeePicker/comps/index.d.ts +1 -0
- package/dist/components/EmployeePicker/index.d.ts +2 -0
- package/dist/components/Form/CheckInput/CheckInput.d.ts +11 -0
- package/dist/components/Form/Container/InputContainer.d.ts +8 -0
- package/dist/components/Form/EmployeePicker/EmployeePicker.d.ts +12 -0
- package/dist/components/Form/SelectInput/SelectInput.d.ts +17 -0
- package/dist/components/Form/TextInput/TextInput.d.ts +16 -0
- package/dist/components/Form/index.d.ts +4 -0
- package/dist/components/HookForm/CheckInput/HookFormCheckInput.d.ts +9 -0
- package/dist/components/HookForm/EmployeePicker/HookFormEmployeePicker.d.ts +9 -0
- package/dist/components/HookForm/FloatingSubmit/FloatingFormSubmit.d.ts +6 -0
- package/dist/components/HookForm/RadioInput/HookFormRadioInput.d.ts +9 -0
- package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +9 -0
- package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +9 -0
- package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +9 -0
- package/dist/components/HookForm/index.d.ts +7 -0
- package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +10 -0
- package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +8 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/UserAvatar/AvatarIcon/AvatarIcon.d.ts +8 -0
- package/dist/components/UserAvatar/UserAvatarDropdown/UserAvatarDropdown.d.ts +7 -0
- package/dist/components/UserAvatar/UserAvatarToggle/UserAvatarToggle.d.ts +8 -0
- package/dist/components/UserAvatar/index.d.ts +2 -0
- package/dist/components/common/ApiFileDownloadButton/ApiFileDownloadButton.d.ts +9 -0
- package/dist/components/common/ConfirmDialog/ConfirmDialog.d.ts +3 -0
- package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +9 -0
- package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +6 -0
- package/dist/components/common/HomeDashboard/comps/index.d.ts +1 -0
- package/dist/components/common/HomeDashboard/hooks/useUserDashboard.d.ts +6 -0
- package/dist/components/common/Loading/Loading.d.ts +3 -0
- package/dist/components/common/MonthPicker/MonthPicker.d.ts +9 -0
- package/dist/components/common/Typography/Typography.d.ts +9 -0
- package/dist/components/common/index.d.ts +6 -0
- package/dist/constants-CT2hnPeO.js +1 -0
- package/dist/constants-CzNy5yO3.mjs +7 -0
- package/dist/contexts/confirm/ConfirmContext.d.ts +9 -0
- package/dist/contexts/confirm/ConfirmProvider.d.ts +6 -0
- package/dist/contexts/index.d.ts +6 -0
- package/dist/contexts/loading/LoadingContext.d.ts +8 -0
- package/dist/contexts/loading/LoadingProvider.d.ts +6 -0
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +15 -0
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +16 -0
- package/dist/contexts/user/UserContext.d.ts +9 -0
- package/dist/contexts/user/UserProvider.d.ts +6 -0
- package/dist/contexts.cjs.js +1 -0
- package/dist/contexts.d.ts +1 -0
- package/dist/contexts.es.js +86 -0
- package/dist/hasClass-3JW9Qluf.mjs +1482 -0
- package/dist/hasClass-6m1Qq_DA.js +20 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/useAuth/useAuth.d.ts +7 -0
- package/dist/hooks/useAxios/useAxios.d.ts +3 -0
- package/dist/hooks/useConfirm/useConfirm.d.ts +8 -0
- package/dist/hooks/useNotifications/useNotifications.d.ts +4 -0
- package/dist/hooks/useZodSchemaTypes/useZodSchemaTypes.d.ts +44 -0
- package/dist/hooks.cjs.js +1 -0
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.es.js +2781 -0
- package/dist/layout/FullScreenContainer/FullScreenContainer.d.ts +4 -0
- package/dist/layout/MainContainer/MainContainer.d.ts +4 -0
- package/dist/layout/SideContentBar/SideContentBar.d.ts +7 -0
- package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +10 -0
- package/dist/layout/SideMenu/SideMenu.d.ts +10 -0
- package/dist/layout/TopBar/TopBar.d.ts +7 -0
- package/dist/layout/index.d.ts +5 -0
- package/dist/layout.cjs.js +1 -0
- package/dist/layout.d.ts +1 -0
- package/dist/layout.es.js +164 -0
- package/dist/main.cjs.js +1 -0
- package/dist/main.d.ts +11 -0
- package/dist/main.es.js +2788 -0
- package/dist/models/index.d.ts +23 -0
- package/dist/models/prop-types/ContainerProps.d.ts +6 -0
- package/dist/models/prop-types/HookFormCheckInputProps.d.ts +7 -0
- package/dist/models/prop-types/HookFormEmployeePickerProps.d.ts +9 -0
- package/dist/models/prop-types/HookFormInputProps.d.ts +9 -0
- package/dist/models/prop-types/HookFormRadioInputProps.d.ts +7 -0
- package/dist/models/prop-types/HookFormSelectInputProps.d.ts +12 -0
- package/dist/models/prop-types/HookFormTextAreaInputProps.d.ts +9 -0
- package/dist/models/prop-types/HookFormTextInputProps.d.ts +11 -0
- package/dist/models/texts/AxiosTexts.d.ts +6 -0
- package/dist/models/texts/ConfirmTexts.d.ts +5 -0
- package/dist/models/texts/EmployeeSearchModalTexts.d.ts +6 -0
- package/dist/models/texts/FormValidationTexts.d.ts +5 -0
- package/dist/models/texts/HomeDashboardTexts.d.ts +5 -0
- package/dist/models/types/ApiErrorResult.d.ts +7 -0
- package/dist/models/types/DashboardConfig.d.ts +5 -0
- package/dist/models/types/DashboardWidget.d.ts +7 -0
- package/dist/models/types/DashboardWidgetConfig.d.ts +5 -0
- package/dist/models/types/EmployeeIndexModel.d.ts +14 -0
- package/dist/models/types/ErrorField.d.ts +5 -0
- package/dist/models/types/FormSelectOption.d.ts +5 -0
- package/dist/models/types/HookFormInputProps.d.ts +9 -0
- package/dist/models/types/MenuItemType.d.ts +9 -0
- package/dist/models/types/NameIdIntModel.d.ts +5 -0
- package/dist/models/types/NameIdStringModel.d.ts +5 -0
- package/dist/models/types/UserModel.d.ts +13 -0
- package/dist/style.css +1 -0
- package/dist/textUtils-9KFqOvA8.mjs +27 -0
- package/dist/textUtils-C0nqWp3S.js +1 -0
- package/dist/useAxios-BU-BqYrK.mjs +2663 -0
- package/dist/useAxios-ZEhq7C_H.js +212 -0
- package/dist/useConfirm-BazFQNRI.js +1 -0
- package/dist/useConfirm-DH9Pmz_w.mjs +18 -0
- package/dist/utils/apiErrorFields/apiErrorFieldsUtils.d.ts +4 -0
- package/dist/utils/date/dateUtils.d.ts +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/object/objectUtils.d.ts +2 -0
- package/dist/utils/text/textUtils.d.ts +1 -0
- package/dist/utils.cjs.js +1 -0
- package/dist/utils.d.ts +1 -0
- package/dist/utils.es.js +137 -0
- package/package.json +94 -0
|
@@ -0,0 +1,1482 @@
|
|
|
1
|
+
import * as ue from "react";
|
|
2
|
+
import K, { useContext as ne, useMemo as ot, useRef as Y, useCallback as $, useEffect as H, useState as Ae, useLayoutEffect as it, createContext as at, cloneElement as De } from "react";
|
|
3
|
+
import { h as st, j as Q, e as ut } from "./useAxios-BU-BqYrK.mjs";
|
|
4
|
+
import ee from "react-dom";
|
|
5
|
+
function ct(e, n) {
|
|
6
|
+
if (e == null)
|
|
7
|
+
return {};
|
|
8
|
+
var i = {}, r = Object.keys(e), o, t;
|
|
9
|
+
for (t = 0; t < r.length; t++)
|
|
10
|
+
o = r[t], !(n.indexOf(o) >= 0) && (i[o] = e[o]);
|
|
11
|
+
return i;
|
|
12
|
+
}
|
|
13
|
+
function _e(e, n) {
|
|
14
|
+
return _e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) {
|
|
15
|
+
return r.__proto__ = o, r;
|
|
16
|
+
}, _e(e, n);
|
|
17
|
+
}
|
|
18
|
+
function ft(e, n) {
|
|
19
|
+
e.prototype = Object.create(n.prototype), e.prototype.constructor = e, _e(e, n);
|
|
20
|
+
}
|
|
21
|
+
const lt = ["xxl", "xl", "lg", "md", "sm", "xs"], dt = "xs", ce = /* @__PURE__ */ ue.createContext({
|
|
22
|
+
prefixes: {},
|
|
23
|
+
breakpoints: lt,
|
|
24
|
+
minBreakpoint: dt
|
|
25
|
+
});
|
|
26
|
+
function fn(e, n) {
|
|
27
|
+
const {
|
|
28
|
+
prefixes: i
|
|
29
|
+
} = ne(ce);
|
|
30
|
+
return e || i[n] || n;
|
|
31
|
+
}
|
|
32
|
+
function ln() {
|
|
33
|
+
const {
|
|
34
|
+
breakpoints: e
|
|
35
|
+
} = ne(ce);
|
|
36
|
+
return e;
|
|
37
|
+
}
|
|
38
|
+
function dn() {
|
|
39
|
+
const {
|
|
40
|
+
minBreakpoint: e
|
|
41
|
+
} = ne(ce);
|
|
42
|
+
return e;
|
|
43
|
+
}
|
|
44
|
+
function pn() {
|
|
45
|
+
const {
|
|
46
|
+
dir: e
|
|
47
|
+
} = ne(ce);
|
|
48
|
+
return e === "rtl";
|
|
49
|
+
}
|
|
50
|
+
function Ke(e) {
|
|
51
|
+
return e && e.ownerDocument || document;
|
|
52
|
+
}
|
|
53
|
+
function pt(e) {
|
|
54
|
+
var n = Ke(e);
|
|
55
|
+
return n && n.defaultView || window;
|
|
56
|
+
}
|
|
57
|
+
function vt(e, n) {
|
|
58
|
+
return pt(e).getComputedStyle(e, n);
|
|
59
|
+
}
|
|
60
|
+
var yt = /([A-Z])/g;
|
|
61
|
+
function Et(e) {
|
|
62
|
+
return e.replace(yt, "-$1").toLowerCase();
|
|
63
|
+
}
|
|
64
|
+
var mt = /^ms-/;
|
|
65
|
+
function ae(e) {
|
|
66
|
+
return Et(e).replace(mt, "-ms-");
|
|
67
|
+
}
|
|
68
|
+
var ht = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
|
|
69
|
+
function bt(e) {
|
|
70
|
+
return !!(e && ht.test(e));
|
|
71
|
+
}
|
|
72
|
+
function He(e, n) {
|
|
73
|
+
var i = "", r = "";
|
|
74
|
+
if (typeof n == "string")
|
|
75
|
+
return e.style.getPropertyValue(ae(n)) || vt(e).getPropertyValue(ae(n));
|
|
76
|
+
Object.keys(n).forEach(function(o) {
|
|
77
|
+
var t = n[o];
|
|
78
|
+
!t && t !== 0 ? e.style.removeProperty(ae(o)) : bt(o) ? r += o + "(" + t + ") " : i += ae(o) + ": " + t + ";";
|
|
79
|
+
}), r && (i += "transform: " + r + ";"), e.style.cssText += ";" + i;
|
|
80
|
+
}
|
|
81
|
+
var Ce = { exports: {} }, se = { exports: {} }, _ = {};
|
|
82
|
+
/** @license React v16.13.1
|
|
83
|
+
* react-is.production.min.js
|
|
84
|
+
*
|
|
85
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the MIT license found in the
|
|
88
|
+
* LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/
|
|
90
|
+
var $e;
|
|
91
|
+
function xt() {
|
|
92
|
+
if ($e)
|
|
93
|
+
return _;
|
|
94
|
+
$e = 1;
|
|
95
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, D = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
|
96
|
+
function M(c) {
|
|
97
|
+
if (typeof c == "object" && c !== null) {
|
|
98
|
+
var k = c.$$typeof;
|
|
99
|
+
switch (k) {
|
|
100
|
+
case n:
|
|
101
|
+
switch (c = c.type, c) {
|
|
102
|
+
case d:
|
|
103
|
+
case p:
|
|
104
|
+
case r:
|
|
105
|
+
case t:
|
|
106
|
+
case o:
|
|
107
|
+
case y:
|
|
108
|
+
return c;
|
|
109
|
+
default:
|
|
110
|
+
switch (c = c && c.$$typeof, c) {
|
|
111
|
+
case u:
|
|
112
|
+
case v:
|
|
113
|
+
case D:
|
|
114
|
+
case A:
|
|
115
|
+
case s:
|
|
116
|
+
return c;
|
|
117
|
+
default:
|
|
118
|
+
return k;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
case i:
|
|
122
|
+
return k;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function j(c) {
|
|
127
|
+
return M(c) === p;
|
|
128
|
+
}
|
|
129
|
+
return _.AsyncMode = d, _.ConcurrentMode = p, _.ContextConsumer = u, _.ContextProvider = s, _.Element = n, _.ForwardRef = v, _.Fragment = r, _.Lazy = D, _.Memo = A, _.Portal = i, _.Profiler = t, _.StrictMode = o, _.Suspense = y, _.isAsyncMode = function(c) {
|
|
130
|
+
return j(c) || M(c) === d;
|
|
131
|
+
}, _.isConcurrentMode = j, _.isContextConsumer = function(c) {
|
|
132
|
+
return M(c) === u;
|
|
133
|
+
}, _.isContextProvider = function(c) {
|
|
134
|
+
return M(c) === s;
|
|
135
|
+
}, _.isElement = function(c) {
|
|
136
|
+
return typeof c == "object" && c !== null && c.$$typeof === n;
|
|
137
|
+
}, _.isForwardRef = function(c) {
|
|
138
|
+
return M(c) === v;
|
|
139
|
+
}, _.isFragment = function(c) {
|
|
140
|
+
return M(c) === r;
|
|
141
|
+
}, _.isLazy = function(c) {
|
|
142
|
+
return M(c) === D;
|
|
143
|
+
}, _.isMemo = function(c) {
|
|
144
|
+
return M(c) === A;
|
|
145
|
+
}, _.isPortal = function(c) {
|
|
146
|
+
return M(c) === i;
|
|
147
|
+
}, _.isProfiler = function(c) {
|
|
148
|
+
return M(c) === t;
|
|
149
|
+
}, _.isStrictMode = function(c) {
|
|
150
|
+
return M(c) === o;
|
|
151
|
+
}, _.isSuspense = function(c) {
|
|
152
|
+
return M(c) === y;
|
|
153
|
+
}, _.isValidElementType = function(c) {
|
|
154
|
+
return typeof c == "string" || typeof c == "function" || c === r || c === p || c === t || c === o || c === y || c === S || typeof c == "object" && c !== null && (c.$$typeof === D || c.$$typeof === A || c.$$typeof === s || c.$$typeof === u || c.$$typeof === v || c.$$typeof === I || c.$$typeof === L || c.$$typeof === F || c.$$typeof === w);
|
|
155
|
+
}, _.typeOf = M, _;
|
|
156
|
+
}
|
|
157
|
+
var C = {};
|
|
158
|
+
/** @license React v16.13.1
|
|
159
|
+
* react-is.development.js
|
|
160
|
+
*
|
|
161
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the MIT license found in the
|
|
164
|
+
* LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/
|
|
166
|
+
var ke;
|
|
167
|
+
function Tt() {
|
|
168
|
+
return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
|
|
169
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, D = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
|
170
|
+
function M(f) {
|
|
171
|
+
return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
172
|
+
f === r || f === p || f === t || f === o || f === y || f === S || typeof f == "object" && f !== null && (f.$$typeof === D || f.$$typeof === A || f.$$typeof === s || f.$$typeof === u || f.$$typeof === v || f.$$typeof === I || f.$$typeof === L || f.$$typeof === F || f.$$typeof === w);
|
|
173
|
+
}
|
|
174
|
+
function j(f) {
|
|
175
|
+
if (typeof f == "object" && f !== null) {
|
|
176
|
+
var W = f.$$typeof;
|
|
177
|
+
switch (W) {
|
|
178
|
+
case n:
|
|
179
|
+
var ie = f.type;
|
|
180
|
+
switch (ie) {
|
|
181
|
+
case d:
|
|
182
|
+
case p:
|
|
183
|
+
case r:
|
|
184
|
+
case t:
|
|
185
|
+
case o:
|
|
186
|
+
case y:
|
|
187
|
+
return ie;
|
|
188
|
+
default:
|
|
189
|
+
var Le = ie && ie.$$typeof;
|
|
190
|
+
switch (Le) {
|
|
191
|
+
case u:
|
|
192
|
+
case v:
|
|
193
|
+
case D:
|
|
194
|
+
case A:
|
|
195
|
+
case s:
|
|
196
|
+
return Le;
|
|
197
|
+
default:
|
|
198
|
+
return W;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
case i:
|
|
202
|
+
return W;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
var c = d, k = p, z = u, le = s, de = n, pe = v, re = r, ve = D, ye = A, J = i, Ee = t, q = o, V = y, oe = !1;
|
|
207
|
+
function me(f) {
|
|
208
|
+
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), a(f) || j(f) === d;
|
|
209
|
+
}
|
|
210
|
+
function a(f) {
|
|
211
|
+
return j(f) === p;
|
|
212
|
+
}
|
|
213
|
+
function l(f) {
|
|
214
|
+
return j(f) === u;
|
|
215
|
+
}
|
|
216
|
+
function T(f) {
|
|
217
|
+
return j(f) === s;
|
|
218
|
+
}
|
|
219
|
+
function b(f) {
|
|
220
|
+
return typeof f == "object" && f !== null && f.$$typeof === n;
|
|
221
|
+
}
|
|
222
|
+
function E(f) {
|
|
223
|
+
return j(f) === v;
|
|
224
|
+
}
|
|
225
|
+
function g(f) {
|
|
226
|
+
return j(f) === r;
|
|
227
|
+
}
|
|
228
|
+
function h(f) {
|
|
229
|
+
return j(f) === D;
|
|
230
|
+
}
|
|
231
|
+
function x(f) {
|
|
232
|
+
return j(f) === A;
|
|
233
|
+
}
|
|
234
|
+
function R(f) {
|
|
235
|
+
return j(f) === i;
|
|
236
|
+
}
|
|
237
|
+
function P(f) {
|
|
238
|
+
return j(f) === t;
|
|
239
|
+
}
|
|
240
|
+
function O(f) {
|
|
241
|
+
return j(f) === o;
|
|
242
|
+
}
|
|
243
|
+
function N(f) {
|
|
244
|
+
return j(f) === y;
|
|
245
|
+
}
|
|
246
|
+
C.AsyncMode = c, C.ConcurrentMode = k, C.ContextConsumer = z, C.ContextProvider = le, C.Element = de, C.ForwardRef = pe, C.Fragment = re, C.Lazy = ve, C.Memo = ye, C.Portal = J, C.Profiler = Ee, C.StrictMode = q, C.Suspense = V, C.isAsyncMode = me, C.isConcurrentMode = a, C.isContextConsumer = l, C.isContextProvider = T, C.isElement = b, C.isForwardRef = E, C.isFragment = g, C.isLazy = h, C.isMemo = x, C.isPortal = R, C.isProfiler = P, C.isStrictMode = O, C.isSuspense = N, C.isValidElementType = M, C.typeOf = j;
|
|
247
|
+
}()), C;
|
|
248
|
+
}
|
|
249
|
+
var Ne;
|
|
250
|
+
function Je() {
|
|
251
|
+
return Ne || (Ne = 1, process.env.NODE_ENV === "production" ? se.exports = xt() : se.exports = Tt()), se.exports;
|
|
252
|
+
}
|
|
253
|
+
/*
|
|
254
|
+
object-assign
|
|
255
|
+
(c) Sindre Sorhus
|
|
256
|
+
@license MIT
|
|
257
|
+
*/
|
|
258
|
+
var he, qe;
|
|
259
|
+
function gt() {
|
|
260
|
+
if (qe)
|
|
261
|
+
return he;
|
|
262
|
+
qe = 1;
|
|
263
|
+
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
264
|
+
function r(t) {
|
|
265
|
+
if (t == null)
|
|
266
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
267
|
+
return Object(t);
|
|
268
|
+
}
|
|
269
|
+
function o() {
|
|
270
|
+
try {
|
|
271
|
+
if (!Object.assign)
|
|
272
|
+
return !1;
|
|
273
|
+
var t = new String("abc");
|
|
274
|
+
if (t[5] = "de", Object.getOwnPropertyNames(t)[0] === "5")
|
|
275
|
+
return !1;
|
|
276
|
+
for (var s = {}, u = 0; u < 10; u++)
|
|
277
|
+
s["_" + String.fromCharCode(u)] = u;
|
|
278
|
+
var d = Object.getOwnPropertyNames(s).map(function(v) {
|
|
279
|
+
return s[v];
|
|
280
|
+
});
|
|
281
|
+
if (d.join("") !== "0123456789")
|
|
282
|
+
return !1;
|
|
283
|
+
var p = {};
|
|
284
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(v) {
|
|
285
|
+
p[v] = v;
|
|
286
|
+
}), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
|
|
287
|
+
} catch {
|
|
288
|
+
return !1;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
return he = o() ? Object.assign : function(t, s) {
|
|
292
|
+
for (var u, d = r(t), p, v = 1; v < arguments.length; v++) {
|
|
293
|
+
u = Object(arguments[v]);
|
|
294
|
+
for (var y in u)
|
|
295
|
+
n.call(u, y) && (d[y] = u[y]);
|
|
296
|
+
if (e) {
|
|
297
|
+
p = e(u);
|
|
298
|
+
for (var S = 0; S < p.length; S++)
|
|
299
|
+
i.call(u, p[S]) && (d[p[S]] = u[p[S]]);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
return d;
|
|
303
|
+
}, he;
|
|
304
|
+
}
|
|
305
|
+
var be, We;
|
|
306
|
+
function Me() {
|
|
307
|
+
if (We)
|
|
308
|
+
return be;
|
|
309
|
+
We = 1;
|
|
310
|
+
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
311
|
+
return be = e, be;
|
|
312
|
+
}
|
|
313
|
+
var xe, Ye;
|
|
314
|
+
function Ze() {
|
|
315
|
+
return Ye || (Ye = 1, xe = Function.call.bind(Object.prototype.hasOwnProperty)), xe;
|
|
316
|
+
}
|
|
317
|
+
var Te, Fe;
|
|
318
|
+
function Rt() {
|
|
319
|
+
if (Fe)
|
|
320
|
+
return Te;
|
|
321
|
+
Fe = 1;
|
|
322
|
+
var e = function() {
|
|
323
|
+
};
|
|
324
|
+
if (process.env.NODE_ENV !== "production") {
|
|
325
|
+
var n = Me(), i = {}, r = Ze();
|
|
326
|
+
e = function(t) {
|
|
327
|
+
var s = "Warning: " + t;
|
|
328
|
+
typeof console < "u" && console.error(s);
|
|
329
|
+
try {
|
|
330
|
+
throw new Error(s);
|
|
331
|
+
} catch {
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
function o(t, s, u, d, p) {
|
|
336
|
+
if (process.env.NODE_ENV !== "production") {
|
|
337
|
+
for (var v in t)
|
|
338
|
+
if (r(t, v)) {
|
|
339
|
+
var y;
|
|
340
|
+
try {
|
|
341
|
+
if (typeof t[v] != "function") {
|
|
342
|
+
var S = Error(
|
|
343
|
+
(d || "React class") + ": " + u + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
344
|
+
);
|
|
345
|
+
throw S.name = "Invariant Violation", S;
|
|
346
|
+
}
|
|
347
|
+
y = t[v](s, v, d, u, null, n);
|
|
348
|
+
} catch (D) {
|
|
349
|
+
y = D;
|
|
350
|
+
}
|
|
351
|
+
if (y && !(y instanceof Error) && e(
|
|
352
|
+
(d || "React class") + ": type specification of " + u + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof y + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
353
|
+
), y instanceof Error && !(y.message in i)) {
|
|
354
|
+
i[y.message] = !0;
|
|
355
|
+
var A = p ? p() : "";
|
|
356
|
+
e(
|
|
357
|
+
"Failed " + u + " type: " + y.message + (A ?? "")
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return o.resetWarningCache = function() {
|
|
364
|
+
process.env.NODE_ENV !== "production" && (i = {});
|
|
365
|
+
}, Te = o, Te;
|
|
366
|
+
}
|
|
367
|
+
var ge, Ue;
|
|
368
|
+
function Ot() {
|
|
369
|
+
if (Ue)
|
|
370
|
+
return ge;
|
|
371
|
+
Ue = 1;
|
|
372
|
+
var e = Je(), n = gt(), i = Me(), r = Ze(), o = Rt(), t = function() {
|
|
373
|
+
};
|
|
374
|
+
process.env.NODE_ENV !== "production" && (t = function(u) {
|
|
375
|
+
var d = "Warning: " + u;
|
|
376
|
+
typeof console < "u" && console.error(d);
|
|
377
|
+
try {
|
|
378
|
+
throw new Error(d);
|
|
379
|
+
} catch {
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
function s() {
|
|
383
|
+
return null;
|
|
384
|
+
}
|
|
385
|
+
return ge = function(u, d) {
|
|
386
|
+
var p = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
|
|
387
|
+
function y(a) {
|
|
388
|
+
var l = a && (p && a[p] || a[v]);
|
|
389
|
+
if (typeof l == "function")
|
|
390
|
+
return l;
|
|
391
|
+
}
|
|
392
|
+
var S = "<<anonymous>>", A = {
|
|
393
|
+
array: L("array"),
|
|
394
|
+
bigint: L("bigint"),
|
|
395
|
+
bool: L("boolean"),
|
|
396
|
+
func: L("function"),
|
|
397
|
+
number: L("number"),
|
|
398
|
+
object: L("object"),
|
|
399
|
+
string: L("string"),
|
|
400
|
+
symbol: L("symbol"),
|
|
401
|
+
any: F(),
|
|
402
|
+
arrayOf: M,
|
|
403
|
+
element: j(),
|
|
404
|
+
elementType: c(),
|
|
405
|
+
instanceOf: k,
|
|
406
|
+
node: pe(),
|
|
407
|
+
objectOf: le,
|
|
408
|
+
oneOf: z,
|
|
409
|
+
oneOfType: de,
|
|
410
|
+
shape: ve,
|
|
411
|
+
exact: ye
|
|
412
|
+
};
|
|
413
|
+
function D(a, l) {
|
|
414
|
+
return a === l ? a !== 0 || 1 / a === 1 / l : a !== a && l !== l;
|
|
415
|
+
}
|
|
416
|
+
function w(a, l) {
|
|
417
|
+
this.message = a, this.data = l && typeof l == "object" ? l : {}, this.stack = "";
|
|
418
|
+
}
|
|
419
|
+
w.prototype = Error.prototype;
|
|
420
|
+
function I(a) {
|
|
421
|
+
if (process.env.NODE_ENV !== "production")
|
|
422
|
+
var l = {}, T = 0;
|
|
423
|
+
function b(g, h, x, R, P, O, N) {
|
|
424
|
+
if (R = R || S, O = O || x, N !== i) {
|
|
425
|
+
if (d) {
|
|
426
|
+
var f = new Error(
|
|
427
|
+
"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"
|
|
428
|
+
);
|
|
429
|
+
throw f.name = "Invariant Violation", f;
|
|
430
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
431
|
+
var W = R + ":" + x;
|
|
432
|
+
!l[W] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
433
|
+
T < 3 && (t(
|
|
434
|
+
"You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + R + "`. 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."
|
|
435
|
+
), l[W] = !0, T++);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
return h[x] == null ? g ? h[x] === null ? new w("The " + P + " `" + O + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new w("The " + P + " `" + O + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : a(h, x, R, P, O);
|
|
439
|
+
}
|
|
440
|
+
var E = b.bind(null, !1);
|
|
441
|
+
return E.isRequired = b.bind(null, !0), E;
|
|
442
|
+
}
|
|
443
|
+
function L(a) {
|
|
444
|
+
function l(T, b, E, g, h, x) {
|
|
445
|
+
var R = T[b], P = q(R);
|
|
446
|
+
if (P !== a) {
|
|
447
|
+
var O = V(R);
|
|
448
|
+
return new w(
|
|
449
|
+
"Invalid " + g + " `" + h + "` of type " + ("`" + O + "` supplied to `" + E + "`, expected ") + ("`" + a + "`."),
|
|
450
|
+
{ expectedType: a }
|
|
451
|
+
);
|
|
452
|
+
}
|
|
453
|
+
return null;
|
|
454
|
+
}
|
|
455
|
+
return I(l);
|
|
456
|
+
}
|
|
457
|
+
function F() {
|
|
458
|
+
return I(s);
|
|
459
|
+
}
|
|
460
|
+
function M(a) {
|
|
461
|
+
function l(T, b, E, g, h) {
|
|
462
|
+
if (typeof a != "function")
|
|
463
|
+
return new w("Property `" + h + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
|
|
464
|
+
var x = T[b];
|
|
465
|
+
if (!Array.isArray(x)) {
|
|
466
|
+
var R = q(x);
|
|
467
|
+
return new w("Invalid " + g + " `" + h + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected an array."));
|
|
468
|
+
}
|
|
469
|
+
for (var P = 0; P < x.length; P++) {
|
|
470
|
+
var O = a(x, P, E, g, h + "[" + P + "]", i);
|
|
471
|
+
if (O instanceof Error)
|
|
472
|
+
return O;
|
|
473
|
+
}
|
|
474
|
+
return null;
|
|
475
|
+
}
|
|
476
|
+
return I(l);
|
|
477
|
+
}
|
|
478
|
+
function j() {
|
|
479
|
+
function a(l, T, b, E, g) {
|
|
480
|
+
var h = l[T];
|
|
481
|
+
if (!u(h)) {
|
|
482
|
+
var x = q(h);
|
|
483
|
+
return new w("Invalid " + E + " `" + g + "` of type " + ("`" + x + "` supplied to `" + b + "`, expected a single ReactElement."));
|
|
484
|
+
}
|
|
485
|
+
return null;
|
|
486
|
+
}
|
|
487
|
+
return I(a);
|
|
488
|
+
}
|
|
489
|
+
function c() {
|
|
490
|
+
function a(l, T, b, E, g) {
|
|
491
|
+
var h = l[T];
|
|
492
|
+
if (!e.isValidElementType(h)) {
|
|
493
|
+
var x = q(h);
|
|
494
|
+
return new w("Invalid " + E + " `" + g + "` of type " + ("`" + x + "` supplied to `" + b + "`, expected a single ReactElement type."));
|
|
495
|
+
}
|
|
496
|
+
return null;
|
|
497
|
+
}
|
|
498
|
+
return I(a);
|
|
499
|
+
}
|
|
500
|
+
function k(a) {
|
|
501
|
+
function l(T, b, E, g, h) {
|
|
502
|
+
if (!(T[b] instanceof a)) {
|
|
503
|
+
var x = a.name || S, R = me(T[b]);
|
|
504
|
+
return new w("Invalid " + g + " `" + h + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected ") + ("instance of `" + x + "`."));
|
|
505
|
+
}
|
|
506
|
+
return null;
|
|
507
|
+
}
|
|
508
|
+
return I(l);
|
|
509
|
+
}
|
|
510
|
+
function z(a) {
|
|
511
|
+
if (!Array.isArray(a))
|
|
512
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? t(
|
|
513
|
+
"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])."
|
|
514
|
+
) : t("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
515
|
+
function l(T, b, E, g, h) {
|
|
516
|
+
for (var x = T[b], R = 0; R < a.length; R++)
|
|
517
|
+
if (D(x, a[R]))
|
|
518
|
+
return null;
|
|
519
|
+
var P = JSON.stringify(a, function(N, f) {
|
|
520
|
+
var W = V(f);
|
|
521
|
+
return W === "symbol" ? String(f) : f;
|
|
522
|
+
});
|
|
523
|
+
return new w("Invalid " + g + " `" + h + "` of value `" + String(x) + "` " + ("supplied to `" + E + "`, expected one of " + P + "."));
|
|
524
|
+
}
|
|
525
|
+
return I(l);
|
|
526
|
+
}
|
|
527
|
+
function le(a) {
|
|
528
|
+
function l(T, b, E, g, h) {
|
|
529
|
+
if (typeof a != "function")
|
|
530
|
+
return new w("Property `" + h + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
|
|
531
|
+
var x = T[b], R = q(x);
|
|
532
|
+
if (R !== "object")
|
|
533
|
+
return new w("Invalid " + g + " `" + h + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected an object."));
|
|
534
|
+
for (var P in x)
|
|
535
|
+
if (r(x, P)) {
|
|
536
|
+
var O = a(x, P, E, g, h + "." + P, i);
|
|
537
|
+
if (O instanceof Error)
|
|
538
|
+
return O;
|
|
539
|
+
}
|
|
540
|
+
return null;
|
|
541
|
+
}
|
|
542
|
+
return I(l);
|
|
543
|
+
}
|
|
544
|
+
function de(a) {
|
|
545
|
+
if (!Array.isArray(a))
|
|
546
|
+
return process.env.NODE_ENV !== "production" && t("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
547
|
+
for (var l = 0; l < a.length; l++) {
|
|
548
|
+
var T = a[l];
|
|
549
|
+
if (typeof T != "function")
|
|
550
|
+
return t(
|
|
551
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(T) + " at index " + l + "."
|
|
552
|
+
), s;
|
|
553
|
+
}
|
|
554
|
+
function b(E, g, h, x, R) {
|
|
555
|
+
for (var P = [], O = 0; O < a.length; O++) {
|
|
556
|
+
var N = a[O], f = N(E, g, h, x, R, i);
|
|
557
|
+
if (f == null)
|
|
558
|
+
return null;
|
|
559
|
+
f.data && r(f.data, "expectedType") && P.push(f.data.expectedType);
|
|
560
|
+
}
|
|
561
|
+
var W = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : "";
|
|
562
|
+
return new w("Invalid " + x + " `" + R + "` supplied to " + ("`" + h + "`" + W + "."));
|
|
563
|
+
}
|
|
564
|
+
return I(b);
|
|
565
|
+
}
|
|
566
|
+
function pe() {
|
|
567
|
+
function a(l, T, b, E, g) {
|
|
568
|
+
return J(l[T]) ? null : new w("Invalid " + E + " `" + g + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
|
|
569
|
+
}
|
|
570
|
+
return I(a);
|
|
571
|
+
}
|
|
572
|
+
function re(a, l, T, b, E) {
|
|
573
|
+
return new w(
|
|
574
|
+
(a || "React class") + ": " + l + " type `" + T + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
|
|
575
|
+
);
|
|
576
|
+
}
|
|
577
|
+
function ve(a) {
|
|
578
|
+
function l(T, b, E, g, h) {
|
|
579
|
+
var x = T[b], R = q(x);
|
|
580
|
+
if (R !== "object")
|
|
581
|
+
return new w("Invalid " + g + " `" + h + "` of type `" + R + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
582
|
+
for (var P in a) {
|
|
583
|
+
var O = a[P];
|
|
584
|
+
if (typeof O != "function")
|
|
585
|
+
return re(E, g, h, P, V(O));
|
|
586
|
+
var N = O(x, P, E, g, h + "." + P, i);
|
|
587
|
+
if (N)
|
|
588
|
+
return N;
|
|
589
|
+
}
|
|
590
|
+
return null;
|
|
591
|
+
}
|
|
592
|
+
return I(l);
|
|
593
|
+
}
|
|
594
|
+
function ye(a) {
|
|
595
|
+
function l(T, b, E, g, h) {
|
|
596
|
+
var x = T[b], R = q(x);
|
|
597
|
+
if (R !== "object")
|
|
598
|
+
return new w("Invalid " + g + " `" + h + "` of type `" + R + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
599
|
+
var P = n({}, T[b], a);
|
|
600
|
+
for (var O in P) {
|
|
601
|
+
var N = a[O];
|
|
602
|
+
if (r(a, O) && typeof N != "function")
|
|
603
|
+
return re(E, g, h, O, V(N));
|
|
604
|
+
if (!N)
|
|
605
|
+
return new w(
|
|
606
|
+
"Invalid " + g + " `" + h + "` key `" + O + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(T[b], null, " ") + `
|
|
607
|
+
Valid keys: ` + JSON.stringify(Object.keys(a), null, " ")
|
|
608
|
+
);
|
|
609
|
+
var f = N(x, O, E, g, h + "." + O, i);
|
|
610
|
+
if (f)
|
|
611
|
+
return f;
|
|
612
|
+
}
|
|
613
|
+
return null;
|
|
614
|
+
}
|
|
615
|
+
return I(l);
|
|
616
|
+
}
|
|
617
|
+
function J(a) {
|
|
618
|
+
switch (typeof a) {
|
|
619
|
+
case "number":
|
|
620
|
+
case "string":
|
|
621
|
+
case "undefined":
|
|
622
|
+
return !0;
|
|
623
|
+
case "boolean":
|
|
624
|
+
return !a;
|
|
625
|
+
case "object":
|
|
626
|
+
if (Array.isArray(a))
|
|
627
|
+
return a.every(J);
|
|
628
|
+
if (a === null || u(a))
|
|
629
|
+
return !0;
|
|
630
|
+
var l = y(a);
|
|
631
|
+
if (l) {
|
|
632
|
+
var T = l.call(a), b;
|
|
633
|
+
if (l !== a.entries) {
|
|
634
|
+
for (; !(b = T.next()).done; )
|
|
635
|
+
if (!J(b.value))
|
|
636
|
+
return !1;
|
|
637
|
+
} else
|
|
638
|
+
for (; !(b = T.next()).done; ) {
|
|
639
|
+
var E = b.value;
|
|
640
|
+
if (E && !J(E[1]))
|
|
641
|
+
return !1;
|
|
642
|
+
}
|
|
643
|
+
} else
|
|
644
|
+
return !1;
|
|
645
|
+
return !0;
|
|
646
|
+
default:
|
|
647
|
+
return !1;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
function Ee(a, l) {
|
|
651
|
+
return a === "symbol" ? !0 : l ? l["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && l instanceof Symbol : !1;
|
|
652
|
+
}
|
|
653
|
+
function q(a) {
|
|
654
|
+
var l = typeof a;
|
|
655
|
+
return Array.isArray(a) ? "array" : a instanceof RegExp ? "object" : Ee(l, a) ? "symbol" : l;
|
|
656
|
+
}
|
|
657
|
+
function V(a) {
|
|
658
|
+
if (typeof a > "u" || a === null)
|
|
659
|
+
return "" + a;
|
|
660
|
+
var l = q(a);
|
|
661
|
+
if (l === "object") {
|
|
662
|
+
if (a instanceof Date)
|
|
663
|
+
return "date";
|
|
664
|
+
if (a instanceof RegExp)
|
|
665
|
+
return "regexp";
|
|
666
|
+
}
|
|
667
|
+
return l;
|
|
668
|
+
}
|
|
669
|
+
function oe(a) {
|
|
670
|
+
var l = V(a);
|
|
671
|
+
switch (l) {
|
|
672
|
+
case "array":
|
|
673
|
+
case "object":
|
|
674
|
+
return "an " + l;
|
|
675
|
+
case "boolean":
|
|
676
|
+
case "date":
|
|
677
|
+
case "regexp":
|
|
678
|
+
return "a " + l;
|
|
679
|
+
default:
|
|
680
|
+
return l;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
function me(a) {
|
|
684
|
+
return !a.constructor || !a.constructor.name ? S : a.constructor.name;
|
|
685
|
+
}
|
|
686
|
+
return A.checkPropTypes = o, A.resetWarningCache = o.resetWarningCache, A.PropTypes = A, A;
|
|
687
|
+
}, ge;
|
|
688
|
+
}
|
|
689
|
+
var Re, Be;
|
|
690
|
+
function St() {
|
|
691
|
+
if (Be)
|
|
692
|
+
return Re;
|
|
693
|
+
Be = 1;
|
|
694
|
+
var e = Me();
|
|
695
|
+
function n() {
|
|
696
|
+
}
|
|
697
|
+
function i() {
|
|
698
|
+
}
|
|
699
|
+
return i.resetWarningCache = n, Re = function() {
|
|
700
|
+
function r(s, u, d, p, v, y) {
|
|
701
|
+
if (y !== e) {
|
|
702
|
+
var S = new Error(
|
|
703
|
+
"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"
|
|
704
|
+
);
|
|
705
|
+
throw S.name = "Invariant Violation", S;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
r.isRequired = r;
|
|
709
|
+
function o() {
|
|
710
|
+
return r;
|
|
711
|
+
}
|
|
712
|
+
var t = {
|
|
713
|
+
array: r,
|
|
714
|
+
bigint: r,
|
|
715
|
+
bool: r,
|
|
716
|
+
func: r,
|
|
717
|
+
number: r,
|
|
718
|
+
object: r,
|
|
719
|
+
string: r,
|
|
720
|
+
symbol: r,
|
|
721
|
+
any: r,
|
|
722
|
+
arrayOf: o,
|
|
723
|
+
element: r,
|
|
724
|
+
elementType: r,
|
|
725
|
+
instanceOf: o,
|
|
726
|
+
node: r,
|
|
727
|
+
objectOf: o,
|
|
728
|
+
oneOf: o,
|
|
729
|
+
oneOfType: o,
|
|
730
|
+
shape: o,
|
|
731
|
+
exact: o,
|
|
732
|
+
checkPropTypes: i,
|
|
733
|
+
resetWarningCache: n
|
|
734
|
+
};
|
|
735
|
+
return t.PropTypes = t, t;
|
|
736
|
+
}, Re;
|
|
737
|
+
}
|
|
738
|
+
if (process.env.NODE_ENV !== "production") {
|
|
739
|
+
var _t = Je(), Ct = !0;
|
|
740
|
+
Ce.exports = Ot()(_t.isElement, Ct);
|
|
741
|
+
} else
|
|
742
|
+
Ce.exports = St()();
|
|
743
|
+
var Pt = Ce.exports;
|
|
744
|
+
const m = /* @__PURE__ */ st(Pt), ze = {
|
|
745
|
+
disabled: !1
|
|
746
|
+
};
|
|
747
|
+
var wt = process.env.NODE_ENV !== "production" ? m.oneOfType([m.number, m.shape({
|
|
748
|
+
enter: m.number,
|
|
749
|
+
exit: m.number,
|
|
750
|
+
appear: m.number
|
|
751
|
+
}).isRequired]) : null;
|
|
752
|
+
process.env.NODE_ENV !== "production" && m.oneOfType([m.string, m.shape({
|
|
753
|
+
enter: m.string,
|
|
754
|
+
exit: m.string,
|
|
755
|
+
active: m.string
|
|
756
|
+
}), m.shape({
|
|
757
|
+
enter: m.string,
|
|
758
|
+
enterDone: m.string,
|
|
759
|
+
enterActive: m.string,
|
|
760
|
+
exit: m.string,
|
|
761
|
+
exitDone: m.string,
|
|
762
|
+
exitActive: m.string
|
|
763
|
+
})]);
|
|
764
|
+
const Qe = K.createContext(null);
|
|
765
|
+
var jt = function(n) {
|
|
766
|
+
return n.scrollTop;
|
|
767
|
+
}, te = "unmounted", G = "exited", B = "entering", X = "entered", Pe = "exiting", U = /* @__PURE__ */ function(e) {
|
|
768
|
+
ft(n, e);
|
|
769
|
+
function n(r, o) {
|
|
770
|
+
var t;
|
|
771
|
+
t = e.call(this, r, o) || this;
|
|
772
|
+
var s = o, u = s && !s.isMounting ? r.enter : r.appear, d;
|
|
773
|
+
return t.appearStatus = null, r.in ? u ? (d = G, t.appearStatus = B) : d = X : r.unmountOnExit || r.mountOnEnter ? d = te : d = G, t.state = {
|
|
774
|
+
status: d
|
|
775
|
+
}, t.nextCallback = null, t;
|
|
776
|
+
}
|
|
777
|
+
n.getDerivedStateFromProps = function(o, t) {
|
|
778
|
+
var s = o.in;
|
|
779
|
+
return s && t.status === te ? {
|
|
780
|
+
status: G
|
|
781
|
+
} : null;
|
|
782
|
+
};
|
|
783
|
+
var i = n.prototype;
|
|
784
|
+
return i.componentDidMount = function() {
|
|
785
|
+
this.updateStatus(!0, this.appearStatus);
|
|
786
|
+
}, i.componentDidUpdate = function(o) {
|
|
787
|
+
var t = null;
|
|
788
|
+
if (o !== this.props) {
|
|
789
|
+
var s = this.state.status;
|
|
790
|
+
this.props.in ? s !== B && s !== X && (t = B) : (s === B || s === X) && (t = Pe);
|
|
791
|
+
}
|
|
792
|
+
this.updateStatus(!1, t);
|
|
793
|
+
}, i.componentWillUnmount = function() {
|
|
794
|
+
this.cancelNextCallback();
|
|
795
|
+
}, i.getTimeouts = function() {
|
|
796
|
+
var o = this.props.timeout, t, s, u;
|
|
797
|
+
return t = s = u = o, o != null && typeof o != "number" && (t = o.exit, s = o.enter, u = o.appear !== void 0 ? o.appear : s), {
|
|
798
|
+
exit: t,
|
|
799
|
+
enter: s,
|
|
800
|
+
appear: u
|
|
801
|
+
};
|
|
802
|
+
}, i.updateStatus = function(o, t) {
|
|
803
|
+
if (o === void 0 && (o = !1), t !== null)
|
|
804
|
+
if (this.cancelNextCallback(), t === B) {
|
|
805
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
806
|
+
var s = this.props.nodeRef ? this.props.nodeRef.current : ee.findDOMNode(this);
|
|
807
|
+
s && jt(s);
|
|
808
|
+
}
|
|
809
|
+
this.performEnter(o);
|
|
810
|
+
} else
|
|
811
|
+
this.performExit();
|
|
812
|
+
else
|
|
813
|
+
this.props.unmountOnExit && this.state.status === G && this.setState({
|
|
814
|
+
status: te
|
|
815
|
+
});
|
|
816
|
+
}, i.performEnter = function(o) {
|
|
817
|
+
var t = this, s = this.props.enter, u = this.context ? this.context.isMounting : o, d = this.props.nodeRef ? [u] : [ee.findDOMNode(this), u], p = d[0], v = d[1], y = this.getTimeouts(), S = u ? y.appear : y.enter;
|
|
818
|
+
if (!o && !s || ze.disabled) {
|
|
819
|
+
this.safeSetState({
|
|
820
|
+
status: X
|
|
821
|
+
}, function() {
|
|
822
|
+
t.props.onEntered(p);
|
|
823
|
+
});
|
|
824
|
+
return;
|
|
825
|
+
}
|
|
826
|
+
this.props.onEnter(p, v), this.safeSetState({
|
|
827
|
+
status: B
|
|
828
|
+
}, function() {
|
|
829
|
+
t.props.onEntering(p, v), t.onTransitionEnd(S, function() {
|
|
830
|
+
t.safeSetState({
|
|
831
|
+
status: X
|
|
832
|
+
}, function() {
|
|
833
|
+
t.props.onEntered(p, v);
|
|
834
|
+
});
|
|
835
|
+
});
|
|
836
|
+
});
|
|
837
|
+
}, i.performExit = function() {
|
|
838
|
+
var o = this, t = this.props.exit, s = this.getTimeouts(), u = this.props.nodeRef ? void 0 : ee.findDOMNode(this);
|
|
839
|
+
if (!t || ze.disabled) {
|
|
840
|
+
this.safeSetState({
|
|
841
|
+
status: G
|
|
842
|
+
}, function() {
|
|
843
|
+
o.props.onExited(u);
|
|
844
|
+
});
|
|
845
|
+
return;
|
|
846
|
+
}
|
|
847
|
+
this.props.onExit(u), this.safeSetState({
|
|
848
|
+
status: Pe
|
|
849
|
+
}, function() {
|
|
850
|
+
o.props.onExiting(u), o.onTransitionEnd(s.exit, function() {
|
|
851
|
+
o.safeSetState({
|
|
852
|
+
status: G
|
|
853
|
+
}, function() {
|
|
854
|
+
o.props.onExited(u);
|
|
855
|
+
});
|
|
856
|
+
});
|
|
857
|
+
});
|
|
858
|
+
}, i.cancelNextCallback = function() {
|
|
859
|
+
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
860
|
+
}, i.safeSetState = function(o, t) {
|
|
861
|
+
t = this.setNextCallback(t), this.setState(o, t);
|
|
862
|
+
}, i.setNextCallback = function(o) {
|
|
863
|
+
var t = this, s = !0;
|
|
864
|
+
return this.nextCallback = function(u) {
|
|
865
|
+
s && (s = !1, t.nextCallback = null, o(u));
|
|
866
|
+
}, this.nextCallback.cancel = function() {
|
|
867
|
+
s = !1;
|
|
868
|
+
}, this.nextCallback;
|
|
869
|
+
}, i.onTransitionEnd = function(o, t) {
|
|
870
|
+
this.setNextCallback(t);
|
|
871
|
+
var s = this.props.nodeRef ? this.props.nodeRef.current : ee.findDOMNode(this), u = o == null && !this.props.addEndListener;
|
|
872
|
+
if (!s || u) {
|
|
873
|
+
setTimeout(this.nextCallback, 0);
|
|
874
|
+
return;
|
|
875
|
+
}
|
|
876
|
+
if (this.props.addEndListener) {
|
|
877
|
+
var d = this.props.nodeRef ? [this.nextCallback] : [s, this.nextCallback], p = d[0], v = d[1];
|
|
878
|
+
this.props.addEndListener(p, v);
|
|
879
|
+
}
|
|
880
|
+
o != null && setTimeout(this.nextCallback, o);
|
|
881
|
+
}, i.render = function() {
|
|
882
|
+
var o = this.state.status;
|
|
883
|
+
if (o === te)
|
|
884
|
+
return null;
|
|
885
|
+
var t = this.props, s = t.children;
|
|
886
|
+
t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
|
|
887
|
+
var u = ct(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
888
|
+
return (
|
|
889
|
+
// allows for nested Transitions
|
|
890
|
+
/* @__PURE__ */ K.createElement(Qe.Provider, {
|
|
891
|
+
value: null
|
|
892
|
+
}, typeof s == "function" ? s(o, u) : K.cloneElement(K.Children.only(s), u))
|
|
893
|
+
);
|
|
894
|
+
}, n;
|
|
895
|
+
}(K.Component);
|
|
896
|
+
U.contextType = Qe;
|
|
897
|
+
U.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
898
|
+
/**
|
|
899
|
+
* A React reference to DOM element that need to transition:
|
|
900
|
+
* https://stackoverflow.com/a/51127130/4671932
|
|
901
|
+
*
|
|
902
|
+
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
903
|
+
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
904
|
+
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
905
|
+
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
906
|
+
* (see
|
|
907
|
+
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
908
|
+
*/
|
|
909
|
+
nodeRef: m.shape({
|
|
910
|
+
current: typeof Element > "u" ? m.any : function(e, n, i, r, o, t) {
|
|
911
|
+
var s = e[n];
|
|
912
|
+
return m.instanceOf(s && "ownerDocument" in s ? s.ownerDocument.defaultView.Element : Element)(e, n, i, r, o, t);
|
|
913
|
+
}
|
|
914
|
+
}),
|
|
915
|
+
/**
|
|
916
|
+
* A `function` child can be used instead of a React element. This function is
|
|
917
|
+
* called with the current transition status (`'entering'`, `'entered'`,
|
|
918
|
+
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
919
|
+
* specific props to a component.
|
|
920
|
+
*
|
|
921
|
+
* ```jsx
|
|
922
|
+
* <Transition in={this.state.in} timeout={150}>
|
|
923
|
+
* {state => (
|
|
924
|
+
* <MyComponent className={`fade fade-${state}`} />
|
|
925
|
+
* )}
|
|
926
|
+
* </Transition>
|
|
927
|
+
* ```
|
|
928
|
+
*/
|
|
929
|
+
children: m.oneOfType([m.func.isRequired, m.element.isRequired]).isRequired,
|
|
930
|
+
/**
|
|
931
|
+
* Show the component; triggers the enter or exit states
|
|
932
|
+
*/
|
|
933
|
+
in: m.bool,
|
|
934
|
+
/**
|
|
935
|
+
* By default the child component is mounted immediately along with
|
|
936
|
+
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
937
|
+
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
938
|
+
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
939
|
+
*/
|
|
940
|
+
mountOnEnter: m.bool,
|
|
941
|
+
/**
|
|
942
|
+
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
943
|
+
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
944
|
+
*/
|
|
945
|
+
unmountOnExit: m.bool,
|
|
946
|
+
/**
|
|
947
|
+
* By default the child component does not perform the enter transition when
|
|
948
|
+
* it first mounts, regardless of the value of `in`. If you want this
|
|
949
|
+
* behavior, set both `appear` and `in` to `true`.
|
|
950
|
+
*
|
|
951
|
+
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
952
|
+
* > only adds an additional enter transition. However, in the
|
|
953
|
+
* > `<CSSTransition>` component that first enter transition does result in
|
|
954
|
+
* > additional `.appear-*` classes, that way you can choose to style it
|
|
955
|
+
* > differently.
|
|
956
|
+
*/
|
|
957
|
+
appear: m.bool,
|
|
958
|
+
/**
|
|
959
|
+
* Enable or disable enter transitions.
|
|
960
|
+
*/
|
|
961
|
+
enter: m.bool,
|
|
962
|
+
/**
|
|
963
|
+
* Enable or disable exit transitions.
|
|
964
|
+
*/
|
|
965
|
+
exit: m.bool,
|
|
966
|
+
/**
|
|
967
|
+
* The duration of the transition, in milliseconds.
|
|
968
|
+
* Required unless `addEndListener` is provided.
|
|
969
|
+
*
|
|
970
|
+
* You may specify a single timeout for all transitions:
|
|
971
|
+
*
|
|
972
|
+
* ```jsx
|
|
973
|
+
* timeout={500}
|
|
974
|
+
* ```
|
|
975
|
+
*
|
|
976
|
+
* or individually:
|
|
977
|
+
*
|
|
978
|
+
* ```jsx
|
|
979
|
+
* timeout={{
|
|
980
|
+
* appear: 500,
|
|
981
|
+
* enter: 300,
|
|
982
|
+
* exit: 500,
|
|
983
|
+
* }}
|
|
984
|
+
* ```
|
|
985
|
+
*
|
|
986
|
+
* - `appear` defaults to the value of `enter`
|
|
987
|
+
* - `enter` defaults to `0`
|
|
988
|
+
* - `exit` defaults to `0`
|
|
989
|
+
*
|
|
990
|
+
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
991
|
+
*/
|
|
992
|
+
timeout: function(n) {
|
|
993
|
+
var i = wt;
|
|
994
|
+
n.addEndListener || (i = i.isRequired);
|
|
995
|
+
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
|
|
996
|
+
o[t - 1] = arguments[t];
|
|
997
|
+
return i.apply(void 0, [n].concat(o));
|
|
998
|
+
},
|
|
999
|
+
/**
|
|
1000
|
+
* Add a custom transition end trigger. Called with the transitioning
|
|
1001
|
+
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
1002
|
+
* logic. Timeouts are still used as a fallback if provided.
|
|
1003
|
+
*
|
|
1004
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
1005
|
+
*
|
|
1006
|
+
* ```jsx
|
|
1007
|
+
* addEndListener={(node, done) => {
|
|
1008
|
+
* // use the css transitionend event to mark the finish of a transition
|
|
1009
|
+
* node.addEventListener('transitionend', done, false);
|
|
1010
|
+
* }}
|
|
1011
|
+
* ```
|
|
1012
|
+
*/
|
|
1013
|
+
addEndListener: m.func,
|
|
1014
|
+
/**
|
|
1015
|
+
* Callback fired before the "entering" status is applied. An extra parameter
|
|
1016
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
1017
|
+
*
|
|
1018
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
1019
|
+
*
|
|
1020
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
1021
|
+
*/
|
|
1022
|
+
onEnter: m.func,
|
|
1023
|
+
/**
|
|
1024
|
+
* Callback fired after the "entering" status is applied. An extra parameter
|
|
1025
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
1026
|
+
*
|
|
1027
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
1028
|
+
*
|
|
1029
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
1030
|
+
*/
|
|
1031
|
+
onEntering: m.func,
|
|
1032
|
+
/**
|
|
1033
|
+
* Callback fired after the "entered" status is applied. An extra parameter
|
|
1034
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
1035
|
+
*
|
|
1036
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
1037
|
+
*
|
|
1038
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
1039
|
+
*/
|
|
1040
|
+
onEntered: m.func,
|
|
1041
|
+
/**
|
|
1042
|
+
* Callback fired before the "exiting" status is applied.
|
|
1043
|
+
*
|
|
1044
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
1045
|
+
*
|
|
1046
|
+
* @type Function(node: HtmlElement) -> void
|
|
1047
|
+
*/
|
|
1048
|
+
onExit: m.func,
|
|
1049
|
+
/**
|
|
1050
|
+
* Callback fired after the "exiting" status is applied.
|
|
1051
|
+
*
|
|
1052
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
1053
|
+
*
|
|
1054
|
+
* @type Function(node: HtmlElement) -> void
|
|
1055
|
+
*/
|
|
1056
|
+
onExiting: m.func,
|
|
1057
|
+
/**
|
|
1058
|
+
* Callback fired after the "exited" status is applied.
|
|
1059
|
+
*
|
|
1060
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
1061
|
+
*
|
|
1062
|
+
* @type Function(node: HtmlElement) -> void
|
|
1063
|
+
*/
|
|
1064
|
+
onExited: m.func
|
|
1065
|
+
} : {};
|
|
1066
|
+
function Z() {
|
|
1067
|
+
}
|
|
1068
|
+
U.defaultProps = {
|
|
1069
|
+
in: !1,
|
|
1070
|
+
mountOnEnter: !1,
|
|
1071
|
+
unmountOnExit: !1,
|
|
1072
|
+
appear: !1,
|
|
1073
|
+
enter: !0,
|
|
1074
|
+
exit: !0,
|
|
1075
|
+
onEnter: Z,
|
|
1076
|
+
onEntering: Z,
|
|
1077
|
+
onEntered: Z,
|
|
1078
|
+
onExit: Z,
|
|
1079
|
+
onExiting: Z,
|
|
1080
|
+
onExited: Z
|
|
1081
|
+
};
|
|
1082
|
+
U.UNMOUNTED = te;
|
|
1083
|
+
U.EXITED = G;
|
|
1084
|
+
U.ENTERING = B;
|
|
1085
|
+
U.ENTERED = X;
|
|
1086
|
+
U.EXITING = Pe;
|
|
1087
|
+
const At = U, Ie = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1088
|
+
var we = !1, je = !1;
|
|
1089
|
+
try {
|
|
1090
|
+
var Oe = {
|
|
1091
|
+
get passive() {
|
|
1092
|
+
return we = !0;
|
|
1093
|
+
},
|
|
1094
|
+
get once() {
|
|
1095
|
+
return je = we = !0;
|
|
1096
|
+
}
|
|
1097
|
+
};
|
|
1098
|
+
Ie && (window.addEventListener("test", Oe, Oe), window.removeEventListener("test", Oe, !0));
|
|
1099
|
+
} catch {
|
|
1100
|
+
}
|
|
1101
|
+
function Dt(e, n, i, r) {
|
|
1102
|
+
if (r && typeof r != "boolean" && !je) {
|
|
1103
|
+
var o = r.once, t = r.capture, s = i;
|
|
1104
|
+
!je && o && (s = i.__once || function u(d) {
|
|
1105
|
+
this.removeEventListener(n, u, t), i.call(this, d);
|
|
1106
|
+
}, i.__once = s), e.addEventListener(n, s, we ? r : t);
|
|
1107
|
+
}
|
|
1108
|
+
e.addEventListener(n, i, r);
|
|
1109
|
+
}
|
|
1110
|
+
function Mt(e, n, i, r) {
|
|
1111
|
+
var o = r && typeof r != "boolean" ? r.capture : r;
|
|
1112
|
+
e.removeEventListener(n, i, o), i.__once && e.removeEventListener(n, i.__once, o);
|
|
1113
|
+
}
|
|
1114
|
+
function et(e, n, i, r) {
|
|
1115
|
+
return Dt(e, n, i, r), function() {
|
|
1116
|
+
Mt(e, n, i, r);
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
function It(e, n, i, r) {
|
|
1120
|
+
if (i === void 0 && (i = !1), r === void 0 && (r = !0), e) {
|
|
1121
|
+
var o = document.createEvent("HTMLEvents");
|
|
1122
|
+
o.initEvent(n, i, r), e.dispatchEvent(o);
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
function Lt(e) {
|
|
1126
|
+
var n = He(e, "transitionDuration") || "", i = n.indexOf("ms") === -1 ? 1e3 : 1;
|
|
1127
|
+
return parseFloat(n) * i;
|
|
1128
|
+
}
|
|
1129
|
+
function $t(e, n, i) {
|
|
1130
|
+
i === void 0 && (i = 5);
|
|
1131
|
+
var r = !1, o = setTimeout(function() {
|
|
1132
|
+
r || It(e, "transitionend", !0);
|
|
1133
|
+
}, n + i), t = et(e, "transitionend", function() {
|
|
1134
|
+
r = !0;
|
|
1135
|
+
}, {
|
|
1136
|
+
once: !0
|
|
1137
|
+
});
|
|
1138
|
+
return function() {
|
|
1139
|
+
clearTimeout(o), t();
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
function kt(e, n, i, r) {
|
|
1143
|
+
i == null && (i = Lt(e) || 0);
|
|
1144
|
+
var o = $t(e, i, r), t = et(e, "transitionend", n);
|
|
1145
|
+
return function() {
|
|
1146
|
+
o(), t();
|
|
1147
|
+
};
|
|
1148
|
+
}
|
|
1149
|
+
function Ve(e, n) {
|
|
1150
|
+
const i = He(e, n) || "", r = i.indexOf("ms") === -1 ? 1e3 : 1;
|
|
1151
|
+
return parseFloat(i) * r;
|
|
1152
|
+
}
|
|
1153
|
+
function Nt(e, n) {
|
|
1154
|
+
const i = Ve(e, "transitionDuration"), r = Ve(e, "transitionDelay"), o = kt(e, (t) => {
|
|
1155
|
+
t.target === e && (o(), n(t));
|
|
1156
|
+
}, i + r);
|
|
1157
|
+
}
|
|
1158
|
+
function qt(e) {
|
|
1159
|
+
e.offsetHeight;
|
|
1160
|
+
}
|
|
1161
|
+
const Ge = (e) => !e || typeof e == "function" ? e : (n) => {
|
|
1162
|
+
e.current = n;
|
|
1163
|
+
};
|
|
1164
|
+
function Wt(e, n) {
|
|
1165
|
+
const i = Ge(e), r = Ge(n);
|
|
1166
|
+
return (o) => {
|
|
1167
|
+
i && i(o), r && r(o);
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
function fe(e, n) {
|
|
1171
|
+
return ot(() => Wt(e, n), [e, n]);
|
|
1172
|
+
}
|
|
1173
|
+
function Yt(e) {
|
|
1174
|
+
return e && "setState" in e ? ee.findDOMNode(e) : e ?? null;
|
|
1175
|
+
}
|
|
1176
|
+
const Ft = /* @__PURE__ */ K.forwardRef(({
|
|
1177
|
+
onEnter: e,
|
|
1178
|
+
onEntering: n,
|
|
1179
|
+
onEntered: i,
|
|
1180
|
+
onExit: r,
|
|
1181
|
+
onExiting: o,
|
|
1182
|
+
onExited: t,
|
|
1183
|
+
addEndListener: s,
|
|
1184
|
+
children: u,
|
|
1185
|
+
childRef: d,
|
|
1186
|
+
...p
|
|
1187
|
+
}, v) => {
|
|
1188
|
+
const y = Y(null), S = fe(y, d), A = (k) => {
|
|
1189
|
+
S(Yt(k));
|
|
1190
|
+
}, D = (k) => (z) => {
|
|
1191
|
+
k && y.current && k(y.current, z);
|
|
1192
|
+
}, w = $(D(e), [e]), I = $(D(n), [n]), L = $(D(i), [i]), F = $(D(r), [r]), M = $(D(o), [o]), j = $(D(t), [t]), c = $(D(s), [s]);
|
|
1193
|
+
return /* @__PURE__ */ Q.jsx(At, {
|
|
1194
|
+
ref: v,
|
|
1195
|
+
...p,
|
|
1196
|
+
onEnter: w,
|
|
1197
|
+
onEntered: L,
|
|
1198
|
+
onEntering: I,
|
|
1199
|
+
onExit: F,
|
|
1200
|
+
onExited: j,
|
|
1201
|
+
onExiting: M,
|
|
1202
|
+
addEndListener: c,
|
|
1203
|
+
nodeRef: y,
|
|
1204
|
+
children: typeof u == "function" ? (k, z) => (
|
|
1205
|
+
// TODO: Types for RTG missing innerProps, so need to cast.
|
|
1206
|
+
u(k, {
|
|
1207
|
+
...z,
|
|
1208
|
+
ref: A
|
|
1209
|
+
})
|
|
1210
|
+
) : /* @__PURE__ */ K.cloneElement(u, {
|
|
1211
|
+
ref: A
|
|
1212
|
+
})
|
|
1213
|
+
});
|
|
1214
|
+
}), Ut = Ft;
|
|
1215
|
+
function Bt(e) {
|
|
1216
|
+
const n = Y(e);
|
|
1217
|
+
return H(() => {
|
|
1218
|
+
n.current = e;
|
|
1219
|
+
}, [e]), n;
|
|
1220
|
+
}
|
|
1221
|
+
function tt(e) {
|
|
1222
|
+
const n = Bt(e);
|
|
1223
|
+
return $(function(...i) {
|
|
1224
|
+
return n.current && n.current(...i);
|
|
1225
|
+
}, [n]);
|
|
1226
|
+
}
|
|
1227
|
+
function vn() {
|
|
1228
|
+
return Ae(null);
|
|
1229
|
+
}
|
|
1230
|
+
function yn() {
|
|
1231
|
+
const e = Y(!0), n = Y(() => e.current);
|
|
1232
|
+
return H(() => (e.current = !0, () => {
|
|
1233
|
+
e.current = !1;
|
|
1234
|
+
}), []), n.current;
|
|
1235
|
+
}
|
|
1236
|
+
const zt = typeof global < "u" && // @ts-ignore
|
|
1237
|
+
global.navigator && // @ts-ignore
|
|
1238
|
+
global.navigator.product === "ReactNative", Vt = typeof document < "u", Xe = Vt || zt ? it : H, Gt = {
|
|
1239
|
+
[B]: "show",
|
|
1240
|
+
[X]: "show"
|
|
1241
|
+
}, nt = /* @__PURE__ */ ue.forwardRef(({
|
|
1242
|
+
className: e,
|
|
1243
|
+
children: n,
|
|
1244
|
+
transitionClasses: i = {},
|
|
1245
|
+
onEnter: r,
|
|
1246
|
+
...o
|
|
1247
|
+
}, t) => {
|
|
1248
|
+
const s = {
|
|
1249
|
+
in: !1,
|
|
1250
|
+
timeout: 300,
|
|
1251
|
+
mountOnEnter: !1,
|
|
1252
|
+
unmountOnExit: !1,
|
|
1253
|
+
appear: !1,
|
|
1254
|
+
...o
|
|
1255
|
+
}, u = $((d, p) => {
|
|
1256
|
+
qt(d), r == null || r(d, p);
|
|
1257
|
+
}, [r]);
|
|
1258
|
+
return /* @__PURE__ */ Q.jsx(Ut, {
|
|
1259
|
+
ref: t,
|
|
1260
|
+
addEndListener: Nt,
|
|
1261
|
+
...s,
|
|
1262
|
+
onEnter: u,
|
|
1263
|
+
childRef: n.ref,
|
|
1264
|
+
children: (d, p) => /* @__PURE__ */ ue.cloneElement(n, {
|
|
1265
|
+
...p,
|
|
1266
|
+
className: ut("fade", e, n.props.className, Gt[d], i[d])
|
|
1267
|
+
})
|
|
1268
|
+
});
|
|
1269
|
+
});
|
|
1270
|
+
nt.displayName = "Fade";
|
|
1271
|
+
const En = nt;
|
|
1272
|
+
function Xt(e) {
|
|
1273
|
+
const n = Y(e);
|
|
1274
|
+
return n.current = e, n;
|
|
1275
|
+
}
|
|
1276
|
+
function mn(e) {
|
|
1277
|
+
const n = Xt(e);
|
|
1278
|
+
H(() => () => n.current(), []);
|
|
1279
|
+
}
|
|
1280
|
+
function hn(e, n) {
|
|
1281
|
+
if (e.contains)
|
|
1282
|
+
return e.contains(n);
|
|
1283
|
+
if (e.compareDocumentPosition)
|
|
1284
|
+
return e === n || !!(e.compareDocumentPosition(n) & 16);
|
|
1285
|
+
}
|
|
1286
|
+
const rt = /* @__PURE__ */ at(Ie ? window : void 0);
|
|
1287
|
+
rt.Provider;
|
|
1288
|
+
function Kt() {
|
|
1289
|
+
return ne(rt);
|
|
1290
|
+
}
|
|
1291
|
+
const Se = (e, n) => Ie ? e == null ? (n || Ke()).body : (typeof e == "function" && (e = e()), e && "current" in e && (e = e.current), e && ("nodeType" in e || e.getBoundingClientRect) ? e : null) : null;
|
|
1292
|
+
function bn(e, n) {
|
|
1293
|
+
const i = Kt(), [r, o] = Ae(() => Se(e, i == null ? void 0 : i.document));
|
|
1294
|
+
if (!r) {
|
|
1295
|
+
const t = Se(e);
|
|
1296
|
+
t && o(t);
|
|
1297
|
+
}
|
|
1298
|
+
return H(() => {
|
|
1299
|
+
n && r && n(r);
|
|
1300
|
+
}, [n, r]), H(() => {
|
|
1301
|
+
const t = Se(e);
|
|
1302
|
+
t !== r && o(t);
|
|
1303
|
+
}, [e, r]), r;
|
|
1304
|
+
}
|
|
1305
|
+
function Ht({
|
|
1306
|
+
children: e,
|
|
1307
|
+
in: n,
|
|
1308
|
+
onExited: i,
|
|
1309
|
+
mountOnEnter: r,
|
|
1310
|
+
unmountOnExit: o
|
|
1311
|
+
}) {
|
|
1312
|
+
const t = Y(null), s = Y(n), u = tt(i);
|
|
1313
|
+
H(() => {
|
|
1314
|
+
n ? s.current = !0 : u(t.current);
|
|
1315
|
+
}, [n, u]);
|
|
1316
|
+
const d = fe(t, e.ref), p = /* @__PURE__ */ De(e, {
|
|
1317
|
+
ref: d
|
|
1318
|
+
});
|
|
1319
|
+
return n ? p : o || !s.current && r ? null : p;
|
|
1320
|
+
}
|
|
1321
|
+
const Jt = ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "addEndListener", "children"];
|
|
1322
|
+
function Zt(e, n) {
|
|
1323
|
+
if (e == null)
|
|
1324
|
+
return {};
|
|
1325
|
+
var i = {}, r = Object.keys(e), o, t;
|
|
1326
|
+
for (t = 0; t < r.length; t++)
|
|
1327
|
+
o = r[t], !(n.indexOf(o) >= 0) && (i[o] = e[o]);
|
|
1328
|
+
return i;
|
|
1329
|
+
}
|
|
1330
|
+
function Qt(e) {
|
|
1331
|
+
let {
|
|
1332
|
+
onEnter: n,
|
|
1333
|
+
onEntering: i,
|
|
1334
|
+
onEntered: r,
|
|
1335
|
+
onExit: o,
|
|
1336
|
+
onExiting: t,
|
|
1337
|
+
onExited: s,
|
|
1338
|
+
addEndListener: u,
|
|
1339
|
+
children: d
|
|
1340
|
+
} = e, p = Zt(e, Jt);
|
|
1341
|
+
const v = Y(null), y = fe(v, typeof d == "function" ? null : d.ref), S = (j) => (c) => {
|
|
1342
|
+
j && v.current && j(v.current, c);
|
|
1343
|
+
}, A = $(S(n), [n]), D = $(S(i), [i]), w = $(S(r), [r]), I = $(S(o), [o]), L = $(S(t), [t]), F = $(S(s), [s]), M = $(S(u), [u]);
|
|
1344
|
+
return Object.assign({}, p, {
|
|
1345
|
+
nodeRef: v
|
|
1346
|
+
}, n && {
|
|
1347
|
+
onEnter: A
|
|
1348
|
+
}, i && {
|
|
1349
|
+
onEntering: D
|
|
1350
|
+
}, r && {
|
|
1351
|
+
onEntered: w
|
|
1352
|
+
}, o && {
|
|
1353
|
+
onExit: I
|
|
1354
|
+
}, t && {
|
|
1355
|
+
onExiting: L
|
|
1356
|
+
}, s && {
|
|
1357
|
+
onExited: F
|
|
1358
|
+
}, u && {
|
|
1359
|
+
addEndListener: M
|
|
1360
|
+
}, {
|
|
1361
|
+
children: typeof d == "function" ? (j, c) => (
|
|
1362
|
+
// TODO: Types for RTG missing innerProps, so need to cast.
|
|
1363
|
+
d(j, Object.assign({}, c, {
|
|
1364
|
+
ref: y
|
|
1365
|
+
}))
|
|
1366
|
+
) : /* @__PURE__ */ De(d, {
|
|
1367
|
+
ref: y
|
|
1368
|
+
})
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
const en = ["component"];
|
|
1372
|
+
function tn(e, n) {
|
|
1373
|
+
if (e == null)
|
|
1374
|
+
return {};
|
|
1375
|
+
var i = {}, r = Object.keys(e), o, t;
|
|
1376
|
+
for (t = 0; t < r.length; t++)
|
|
1377
|
+
o = r[t], !(n.indexOf(o) >= 0) && (i[o] = e[o]);
|
|
1378
|
+
return i;
|
|
1379
|
+
}
|
|
1380
|
+
const nn = /* @__PURE__ */ ue.forwardRef((e, n) => {
|
|
1381
|
+
let {
|
|
1382
|
+
component: i
|
|
1383
|
+
} = e, r = tn(e, en);
|
|
1384
|
+
const o = Qt(r);
|
|
1385
|
+
return /* @__PURE__ */ Q.jsx(i, Object.assign({
|
|
1386
|
+
ref: n
|
|
1387
|
+
}, o));
|
|
1388
|
+
}), rn = nn;
|
|
1389
|
+
function on({
|
|
1390
|
+
in: e,
|
|
1391
|
+
onTransition: n
|
|
1392
|
+
}) {
|
|
1393
|
+
const i = Y(null), r = Y(!0), o = tt(n);
|
|
1394
|
+
return Xe(() => {
|
|
1395
|
+
if (!i.current)
|
|
1396
|
+
return;
|
|
1397
|
+
let t = !1;
|
|
1398
|
+
return o({
|
|
1399
|
+
in: e,
|
|
1400
|
+
element: i.current,
|
|
1401
|
+
initial: r.current,
|
|
1402
|
+
isStale: () => t
|
|
1403
|
+
}), () => {
|
|
1404
|
+
t = !0;
|
|
1405
|
+
};
|
|
1406
|
+
}, [e, o]), Xe(() => (r.current = !1, () => {
|
|
1407
|
+
r.current = !0;
|
|
1408
|
+
}), []), i;
|
|
1409
|
+
}
|
|
1410
|
+
function an({
|
|
1411
|
+
children: e,
|
|
1412
|
+
in: n,
|
|
1413
|
+
onExited: i,
|
|
1414
|
+
onEntered: r,
|
|
1415
|
+
transition: o
|
|
1416
|
+
}) {
|
|
1417
|
+
const [t, s] = Ae(!n);
|
|
1418
|
+
n && t && s(!1);
|
|
1419
|
+
const u = on({
|
|
1420
|
+
in: !!n,
|
|
1421
|
+
onTransition: (p) => {
|
|
1422
|
+
const v = () => {
|
|
1423
|
+
p.isStale() || (p.in ? r == null || r(p.element, p.initial) : (s(!0), i == null || i(p.element)));
|
|
1424
|
+
};
|
|
1425
|
+
Promise.resolve(o(p)).then(v, (y) => {
|
|
1426
|
+
throw p.in || s(!0), y;
|
|
1427
|
+
});
|
|
1428
|
+
}
|
|
1429
|
+
}), d = fe(u, e.ref);
|
|
1430
|
+
return t && !n ? null : /* @__PURE__ */ De(e, {
|
|
1431
|
+
ref: d
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
function xn(e, n, i) {
|
|
1435
|
+
return e ? /* @__PURE__ */ Q.jsx(rn, Object.assign({}, i, {
|
|
1436
|
+
component: e
|
|
1437
|
+
})) : n ? /* @__PURE__ */ Q.jsx(an, Object.assign({}, i, {
|
|
1438
|
+
transition: n
|
|
1439
|
+
})) : /* @__PURE__ */ Q.jsx(Ht, Object.assign({}, i));
|
|
1440
|
+
}
|
|
1441
|
+
function Tn(e) {
|
|
1442
|
+
return e.code === "Escape" || e.keyCode === 27;
|
|
1443
|
+
}
|
|
1444
|
+
function gn(e, n) {
|
|
1445
|
+
return e.classList ? !!n && e.classList.contains(n) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + n + " ") !== -1;
|
|
1446
|
+
}
|
|
1447
|
+
export {
|
|
1448
|
+
Yt as A,
|
|
1449
|
+
ln as B,
|
|
1450
|
+
dn as C,
|
|
1451
|
+
G as E,
|
|
1452
|
+
En as F,
|
|
1453
|
+
m as P,
|
|
1454
|
+
Ut as T,
|
|
1455
|
+
ct as _,
|
|
1456
|
+
Pe as a,
|
|
1457
|
+
B as b,
|
|
1458
|
+
X as c,
|
|
1459
|
+
qt as d,
|
|
1460
|
+
Ie as e,
|
|
1461
|
+
bn as f,
|
|
1462
|
+
yn as g,
|
|
1463
|
+
tt as h,
|
|
1464
|
+
hn as i,
|
|
1465
|
+
mn as j,
|
|
1466
|
+
Tn as k,
|
|
1467
|
+
et as l,
|
|
1468
|
+
gn as m,
|
|
1469
|
+
fn as n,
|
|
1470
|
+
Ke as o,
|
|
1471
|
+
vn as p,
|
|
1472
|
+
fe as q,
|
|
1473
|
+
xn as r,
|
|
1474
|
+
He as s,
|
|
1475
|
+
Nt as t,
|
|
1476
|
+
Kt as u,
|
|
1477
|
+
pn as v,
|
|
1478
|
+
Mt as w,
|
|
1479
|
+
Dt as x,
|
|
1480
|
+
kt as y,
|
|
1481
|
+
Xe as z
|
|
1482
|
+
};
|