xtreme-ui 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/base/Button/Button.d.ts +0 -1
- package/dist/components/base/Button/types.d.ts +13 -10
- package/dist/components/base/Icon/Icon.d.ts +0 -1
- package/dist/components/base/Icon/types.d.ts +16 -6
- package/dist/components/base/ProgressBar/ProgressBar.d.ts +0 -1
- package/dist/components/base/ProgressBar/types.d.ts.map +1 -1
- package/dist/components/base/Textfield/Textfield.d.ts +0 -1
- package/dist/components/base/Textfield/types.d.ts +3 -2
- package/dist/components/base/Textfield/types.d.ts.map +1 -1
- package/dist/components/layout/Navigation/Navigation.d.ts +0 -1
- package/dist/components/layout/Navigation/types.d.ts.map +1 -1
- package/dist/components/layout/Sider/Sider.d.ts +0 -1
- package/dist/components/layout/Sider/types.d.ts.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.es.js +417 -414
- package/dist/index.umd.js +9 -9
- package/dist/manifest.json +2 -2
- package/dist/style.css +1 -1
- package/dist/utils/function/mergeRefs.d.ts +0 -1
- package/dist/utils/function/string.d.ts +2 -0
- package/dist/utils/helper/domHelper.d.ts +0 -1
- package/dist/utils/index.d.ts +2 -1
- package/package.json +33 -39
- package/dist/components/base/Button/Button.d.ts.map +0 -1
- package/dist/components/base/Button/types.d.ts.map +0 -1
- package/dist/components/base/Icon/Icon.d.ts.map +0 -1
- package/dist/components/base/Icon/types.d.ts.map +0 -1
- package/dist/components/base/ProgressBar/ProgressBar.d.ts.map +0 -1
- package/dist/components/base/Textfield/Textfield.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -8
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/layout/Navigation/Navigation.d.ts.map +0 -1
- package/dist/components/layout/Sider/Sider.d.ts.map +0 -1
- package/dist/utils/function/mergeRefs.d.ts.map +0 -1
- package/dist/utils/helper/domHelper.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import ar, { forwardRef as
|
|
2
|
-
const he = typeof window < "u",
|
|
1
|
+
import ar, { forwardRef as U, useRef as Ar, useMemo as Wr } from "react";
|
|
2
|
+
const he = typeof window < "u", Y = he ? window : void 0, Te = (r, n) => he ? getComputedStyle((n == null ? void 0 : n.current) || document.documentElement).getPropertyValue(r) : "", aa = (r, n) => parseInt(Te(r, n).replace(/px/g, "")), ia = (r, n) => {
|
|
3
3
|
const i = parseInt(Te(r, n).replace(/vh/g, ""));
|
|
4
|
-
return [((
|
|
5
|
-
},
|
|
4
|
+
return [((Y == null ? void 0 : Y.innerHeight) ?? 0) * i / 100, i];
|
|
5
|
+
}, oa = (r, n) => {
|
|
6
6
|
const i = parseInt(Te(r, n).replace(/vw/g, ""));
|
|
7
|
-
return [((
|
|
8
|
-
},
|
|
7
|
+
return [((Y == null ? void 0 : Y.innerWidth) ?? 0) * i / 100, i];
|
|
8
|
+
}, sa = (r, n, i) => he ? ((i == null ? void 0 : i.current) || document.documentElement).style.setProperty(r, n) : "", ca = (r) => new Promise((n) => {
|
|
9
9
|
let i = document.querySelector(r);
|
|
10
10
|
if (i)
|
|
11
11
|
return n(i);
|
|
@@ -13,23 +13,27 @@ const he = typeof window < "u", V = he ? window : void 0, Te = (r, n) => he ? ge
|
|
|
13
13
|
i = document.querySelector(r), i && (n(i), o.disconnect());
|
|
14
14
|
});
|
|
15
15
|
o.observe(document.body, { childList: !0, subtree: !0 });
|
|
16
|
-
}),
|
|
16
|
+
}), la = (r, n) => {
|
|
17
17
|
var i;
|
|
18
18
|
(i = n == null ? void 0 : n.forEach) == null || i.call(n, (o) => {
|
|
19
|
-
let
|
|
20
|
-
new MutationObserver((
|
|
21
|
-
var
|
|
22
|
-
document.querySelector(o) && (
|
|
23
|
-
|
|
19
|
+
let c;
|
|
20
|
+
new MutationObserver((_) => {
|
|
21
|
+
var l;
|
|
22
|
+
document.querySelector(o) && (c = document.querySelector(o)), (l = _ == null ? void 0 : _.forEach) == null || l.call(_, (m) => {
|
|
23
|
+
m.type === "childList" && (Array.from(m.addedNodes).indexOf(c) > -1 && r(c, "added", m), Array.from(m.removedNodes).indexOf(c) > -1 && r(c, "removed", m));
|
|
24
24
|
});
|
|
25
25
|
}).observe(document.body, { childList: !0, subtree: !0 });
|
|
26
26
|
});
|
|
27
|
-
}
|
|
27
|
+
}, qr = (r) => (n) => {
|
|
28
|
+
r.forEach((i) => {
|
|
29
|
+
typeof i == "function" ? i(n) : i != null && (i.current = n);
|
|
30
|
+
});
|
|
31
|
+
}, zr = (r) => isNaN(r) || r < 0 || r > 1114111 || Math.floor(r) !== r ? "" : String.fromCodePoint(r), Mr = (r) => zr(parseInt(`0x${r}`, 16));
|
|
28
32
|
var ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
29
|
-
function
|
|
33
|
+
function Vr(r) {
|
|
30
34
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
31
35
|
}
|
|
32
|
-
var
|
|
36
|
+
var ye = { exports: {} }, K = {};
|
|
33
37
|
/**
|
|
34
38
|
* @license React
|
|
35
39
|
* react-jsx-runtime.production.min.js
|
|
@@ -40,22 +44,22 @@ var me = { exports: {} }, K = {};
|
|
|
40
44
|
* LICENSE file in the root directory of this source tree.
|
|
41
45
|
*/
|
|
42
46
|
var Ge;
|
|
43
|
-
function
|
|
47
|
+
function Yr() {
|
|
44
48
|
if (Ge)
|
|
45
49
|
return K;
|
|
46
50
|
Ge = 1;
|
|
47
|
-
var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty,
|
|
48
|
-
function
|
|
49
|
-
var
|
|
50
|
-
|
|
51
|
-
for (
|
|
52
|
-
o.call(
|
|
51
|
+
var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
52
|
+
function _(d, l, m) {
|
|
53
|
+
var y, b = {}, x = null, w = null;
|
|
54
|
+
m !== void 0 && (x = "" + m), l.key !== void 0 && (x = "" + l.key), l.ref !== void 0 && (w = l.ref);
|
|
55
|
+
for (y in l)
|
|
56
|
+
o.call(l, y) && !g.hasOwnProperty(y) && (b[y] = l[y]);
|
|
53
57
|
if (d && d.defaultProps)
|
|
54
|
-
for (
|
|
55
|
-
b[
|
|
56
|
-
return { $$typeof: n, type: d, key:
|
|
58
|
+
for (y in l = d.defaultProps, l)
|
|
59
|
+
b[y] === void 0 && (b[y] = l[y]);
|
|
60
|
+
return { $$typeof: n, type: d, key: x, ref: w, props: b, _owner: c.current };
|
|
57
61
|
}
|
|
58
|
-
return K.Fragment = i, K.jsx =
|
|
62
|
+
return K.Fragment = i, K.jsx = _, K.jsxs = _, K;
|
|
59
63
|
}
|
|
60
64
|
var Z = {};
|
|
61
65
|
/**
|
|
@@ -68,17 +72,17 @@ var Z = {};
|
|
|
68
72
|
* LICENSE file in the root directory of this source tree.
|
|
69
73
|
*/
|
|
70
74
|
var Je;
|
|
71
|
-
function
|
|
75
|
+
function Ur() {
|
|
72
76
|
return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
|
|
73
|
-
var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"),
|
|
74
|
-
function
|
|
77
|
+
var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), W = Symbol.iterator, q = "@@iterator";
|
|
78
|
+
function z(e) {
|
|
75
79
|
if (e === null || typeof e != "object")
|
|
76
80
|
return null;
|
|
77
|
-
var t =
|
|
81
|
+
var t = W && e[W] || e[q];
|
|
78
82
|
return typeof t == "function" ? t : null;
|
|
79
83
|
}
|
|
80
|
-
var
|
|
81
|
-
function
|
|
84
|
+
var j = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
85
|
+
function T(e) {
|
|
82
86
|
{
|
|
83
87
|
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
84
88
|
a[s - 1] = arguments[s];
|
|
@@ -87,18 +91,18 @@ function Yr() {
|
|
|
87
91
|
}
|
|
88
92
|
function oe(e, t, a) {
|
|
89
93
|
{
|
|
90
|
-
var s =
|
|
91
|
-
|
|
92
|
-
var
|
|
94
|
+
var s = j.ReactDebugCurrentFrame, p = s.getStackAddendum();
|
|
95
|
+
p !== "" && (t += "%s", a = a.concat([p]));
|
|
96
|
+
var v = a.map(function(f) {
|
|
93
97
|
return String(f);
|
|
94
98
|
});
|
|
95
|
-
|
|
99
|
+
v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
|
|
96
100
|
}
|
|
97
101
|
}
|
|
98
|
-
var se = !1, G = !1,
|
|
102
|
+
var se = !1, G = !1, S = !1, P = !1, F = !1, J;
|
|
99
103
|
J = Symbol.for("react.module.reference");
|
|
100
104
|
function fr(e) {
|
|
101
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === g || F || e ===
|
|
105
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === g || F || e === c || e === m || e === y || P || e === w || se || G || S || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === b || e.$$typeof === _ || e.$$typeof === d || e.$$typeof === l || // This needs to include all possible module reference object
|
|
102
106
|
// types supported by any Flight configuration anywhere since
|
|
103
107
|
// we don't know which Flight build this will end up being used
|
|
104
108
|
// with.
|
|
@@ -108,8 +112,8 @@ function Yr() {
|
|
|
108
112
|
var s = e.displayName;
|
|
109
113
|
if (s)
|
|
110
114
|
return s;
|
|
111
|
-
var
|
|
112
|
-
return
|
|
115
|
+
var p = t.displayName || t.name || "";
|
|
116
|
+
return p !== "" ? a + "(" + p + ")" : a;
|
|
113
117
|
}
|
|
114
118
|
function Ee(e) {
|
|
115
119
|
return e.displayName || "Context";
|
|
@@ -117,7 +121,7 @@ function Yr() {
|
|
|
117
121
|
function N(e) {
|
|
118
122
|
if (e == null)
|
|
119
123
|
return null;
|
|
120
|
-
if (typeof e.tag == "number" &&
|
|
124
|
+
if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
121
125
|
return e.displayName || e.name || null;
|
|
122
126
|
if (typeof e == "string")
|
|
123
127
|
return e;
|
|
@@ -128,11 +132,11 @@ function Yr() {
|
|
|
128
132
|
return "Portal";
|
|
129
133
|
case g:
|
|
130
134
|
return "Profiler";
|
|
131
|
-
case
|
|
135
|
+
case c:
|
|
132
136
|
return "StrictMode";
|
|
133
|
-
case _:
|
|
134
|
-
return "Suspense";
|
|
135
137
|
case m:
|
|
138
|
+
return "Suspense";
|
|
139
|
+
case y:
|
|
136
140
|
return "SuspenseList";
|
|
137
141
|
}
|
|
138
142
|
if (typeof e == "object")
|
|
@@ -140,18 +144,18 @@ function Yr() {
|
|
|
140
144
|
case d:
|
|
141
145
|
var t = e;
|
|
142
146
|
return Ee(t) + ".Consumer";
|
|
143
|
-
case
|
|
147
|
+
case _:
|
|
144
148
|
var a = e;
|
|
145
149
|
return Ee(a._context) + ".Provider";
|
|
146
|
-
case
|
|
150
|
+
case l:
|
|
147
151
|
return dr(e, e.render, "ForwardRef");
|
|
148
152
|
case b:
|
|
149
153
|
var s = e.displayName || null;
|
|
150
154
|
return s !== null ? s : N(e.type) || "Memo";
|
|
151
|
-
case
|
|
152
|
-
var
|
|
155
|
+
case x: {
|
|
156
|
+
var p = e, v = p._payload, f = p._init;
|
|
153
157
|
try {
|
|
154
|
-
return N(f(
|
|
158
|
+
return N(f(v));
|
|
155
159
|
} catch {
|
|
156
160
|
return null;
|
|
157
161
|
}
|
|
@@ -159,14 +163,14 @@ function Yr() {
|
|
|
159
163
|
}
|
|
160
164
|
return null;
|
|
161
165
|
}
|
|
162
|
-
var
|
|
166
|
+
var L = Object.assign, X = 0, xe, je, Oe, we, Ce, Pe, ke;
|
|
163
167
|
function Ne() {
|
|
164
168
|
}
|
|
165
169
|
Ne.__reactDisabledLog = !0;
|
|
166
|
-
function
|
|
170
|
+
function pr() {
|
|
167
171
|
{
|
|
168
172
|
if (X === 0) {
|
|
169
|
-
|
|
173
|
+
xe = console.log, je = console.info, Oe = console.warn, we = console.error, Ce = console.group, Pe = console.groupCollapsed, ke = console.groupEnd;
|
|
170
174
|
var e = {
|
|
171
175
|
configurable: !0,
|
|
172
176
|
enumerable: !0,
|
|
@@ -186,7 +190,7 @@ function Yr() {
|
|
|
186
190
|
X++;
|
|
187
191
|
}
|
|
188
192
|
}
|
|
189
|
-
function
|
|
193
|
+
function _r() {
|
|
190
194
|
{
|
|
191
195
|
if (X--, X === 0) {
|
|
192
196
|
var e = {
|
|
@@ -195,50 +199,50 @@ function Yr() {
|
|
|
195
199
|
writable: !0
|
|
196
200
|
};
|
|
197
201
|
Object.defineProperties(console, {
|
|
198
|
-
log:
|
|
199
|
-
value: Se
|
|
200
|
-
}),
|
|
201
|
-
info: A({}, e, {
|
|
202
|
+
log: L({}, e, {
|
|
202
203
|
value: xe
|
|
203
204
|
}),
|
|
204
|
-
|
|
205
|
-
value:
|
|
205
|
+
info: L({}, e, {
|
|
206
|
+
value: je
|
|
206
207
|
}),
|
|
207
|
-
|
|
208
|
-
value:
|
|
208
|
+
warn: L({}, e, {
|
|
209
|
+
value: Oe
|
|
209
210
|
}),
|
|
210
|
-
|
|
211
|
+
error: L({}, e, {
|
|
211
212
|
value: we
|
|
212
213
|
}),
|
|
213
|
-
|
|
214
|
+
group: L({}, e, {
|
|
215
|
+
value: Ce
|
|
216
|
+
}),
|
|
217
|
+
groupCollapsed: L({}, e, {
|
|
214
218
|
value: Pe
|
|
215
219
|
}),
|
|
216
|
-
groupEnd:
|
|
220
|
+
groupEnd: L({}, e, {
|
|
217
221
|
value: ke
|
|
218
222
|
})
|
|
219
223
|
});
|
|
220
224
|
}
|
|
221
|
-
X < 0 &&
|
|
225
|
+
X < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
222
226
|
}
|
|
223
227
|
}
|
|
224
|
-
var
|
|
228
|
+
var ce = j.ReactCurrentDispatcher, le;
|
|
225
229
|
function ee(e, t, a) {
|
|
226
230
|
{
|
|
227
|
-
if (
|
|
231
|
+
if (le === void 0)
|
|
228
232
|
try {
|
|
229
233
|
throw Error();
|
|
230
|
-
} catch (
|
|
231
|
-
var s =
|
|
232
|
-
|
|
234
|
+
} catch (p) {
|
|
235
|
+
var s = p.stack.trim().match(/\n( *(at )?)/);
|
|
236
|
+
le = s && s[1] || "";
|
|
233
237
|
}
|
|
234
238
|
return `
|
|
235
|
-
` +
|
|
239
|
+
` + le + e;
|
|
236
240
|
}
|
|
237
241
|
}
|
|
238
242
|
var ue = !1, re;
|
|
239
243
|
{
|
|
240
|
-
var
|
|
241
|
-
re = new
|
|
244
|
+
var vr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
245
|
+
re = new vr();
|
|
242
246
|
}
|
|
243
247
|
function $e(e, t) {
|
|
244
248
|
if (!e || ue)
|
|
@@ -250,10 +254,10 @@ function Yr() {
|
|
|
250
254
|
}
|
|
251
255
|
var s;
|
|
252
256
|
ue = !0;
|
|
253
|
-
var
|
|
257
|
+
var p = Error.prepareStackTrace;
|
|
254
258
|
Error.prepareStackTrace = void 0;
|
|
255
|
-
var
|
|
256
|
-
|
|
259
|
+
var v;
|
|
260
|
+
v = ce.current, ce.current = null, pr();
|
|
257
261
|
try {
|
|
258
262
|
if (t) {
|
|
259
263
|
var f = function() {
|
|
@@ -290,31 +294,31 @@ function Yr() {
|
|
|
290
294
|
if ($ && s && typeof $.stack == "string") {
|
|
291
295
|
for (var u = $.stack.split(`
|
|
292
296
|
`), O = s.stack.split(`
|
|
293
|
-
`),
|
|
297
|
+
`), R = u.length - 1, E = O.length - 1; R >= 1 && E >= 0 && u[R] !== O[E]; )
|
|
294
298
|
E--;
|
|
295
|
-
for (;
|
|
296
|
-
if (u[
|
|
297
|
-
if (
|
|
299
|
+
for (; R >= 1 && E >= 0; R--, E--)
|
|
300
|
+
if (u[R] !== O[E]) {
|
|
301
|
+
if (R !== 1 || E !== 1)
|
|
298
302
|
do
|
|
299
|
-
if (
|
|
300
|
-
var
|
|
301
|
-
` + u[
|
|
302
|
-
return e.displayName &&
|
|
303
|
+
if (R--, E--, E < 0 || u[R] !== O[E]) {
|
|
304
|
+
var C = `
|
|
305
|
+
` + u[R].replace(" at new ", " at ");
|
|
306
|
+
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, C), C;
|
|
303
307
|
}
|
|
304
|
-
while (
|
|
308
|
+
while (R >= 1 && E >= 0);
|
|
305
309
|
break;
|
|
306
310
|
}
|
|
307
311
|
}
|
|
308
312
|
} finally {
|
|
309
|
-
ue = !1,
|
|
313
|
+
ue = !1, ce.current = v, _r(), Error.prepareStackTrace = p;
|
|
310
314
|
}
|
|
311
|
-
var
|
|
315
|
+
var V = e ? e.displayName || e.name : "", Be = V ? ee(V) : "";
|
|
312
316
|
return typeof e == "function" && re.set(e, Be), Be;
|
|
313
317
|
}
|
|
314
|
-
function
|
|
318
|
+
function gr(e, t, a) {
|
|
315
319
|
return $e(e, !1);
|
|
316
320
|
}
|
|
317
|
-
function
|
|
321
|
+
function mr(e) {
|
|
318
322
|
var t = e.prototype;
|
|
319
323
|
return !!(t && t.isReactComponent);
|
|
320
324
|
}
|
|
@@ -322,32 +326,32 @@ function Yr() {
|
|
|
322
326
|
if (e == null)
|
|
323
327
|
return "";
|
|
324
328
|
if (typeof e == "function")
|
|
325
|
-
return $e(e,
|
|
329
|
+
return $e(e, mr(e));
|
|
326
330
|
if (typeof e == "string")
|
|
327
331
|
return ee(e);
|
|
328
332
|
switch (e) {
|
|
329
|
-
case _:
|
|
330
|
-
return ee("Suspense");
|
|
331
333
|
case m:
|
|
334
|
+
return ee("Suspense");
|
|
335
|
+
case y:
|
|
332
336
|
return ee("SuspenseList");
|
|
333
337
|
}
|
|
334
338
|
if (typeof e == "object")
|
|
335
339
|
switch (e.$$typeof) {
|
|
336
|
-
case
|
|
337
|
-
return
|
|
340
|
+
case l:
|
|
341
|
+
return gr(e.render);
|
|
338
342
|
case b:
|
|
339
343
|
return te(e.type, t, a);
|
|
340
|
-
case
|
|
341
|
-
var s = e,
|
|
344
|
+
case x: {
|
|
345
|
+
var s = e, p = s._payload, v = s._init;
|
|
342
346
|
try {
|
|
343
|
-
return te(
|
|
347
|
+
return te(v(p), t, a);
|
|
344
348
|
} catch {
|
|
345
349
|
}
|
|
346
350
|
}
|
|
347
351
|
}
|
|
348
352
|
return "";
|
|
349
353
|
}
|
|
350
|
-
var ne = Object.prototype.hasOwnProperty, De = {}, Ie =
|
|
354
|
+
var ne = Object.prototype.hasOwnProperty, De = {}, Ie = j.ReactDebugCurrentFrame;
|
|
351
355
|
function ae(e) {
|
|
352
356
|
if (e) {
|
|
353
357
|
var t = e._owner, a = te(e.type, e._source, t ? t.type : null);
|
|
@@ -355,11 +359,11 @@ function Yr() {
|
|
|
355
359
|
} else
|
|
356
360
|
Ie.setExtraStackFrame(null);
|
|
357
361
|
}
|
|
358
|
-
function
|
|
362
|
+
function yr(e, t, a, s, p) {
|
|
359
363
|
{
|
|
360
|
-
var
|
|
364
|
+
var v = Function.call.bind(ne);
|
|
361
365
|
for (var f in e)
|
|
362
|
-
if (
|
|
366
|
+
if (v(e, f)) {
|
|
363
367
|
var u = void 0;
|
|
364
368
|
try {
|
|
365
369
|
if (typeof e[f] != "function") {
|
|
@@ -367,10 +371,10 @@ function Yr() {
|
|
|
367
371
|
throw O.name = "Invariant Violation", O;
|
|
368
372
|
}
|
|
369
373
|
u = e[f](t, f, s, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
370
|
-
} catch (
|
|
371
|
-
u =
|
|
374
|
+
} catch (R) {
|
|
375
|
+
u = R;
|
|
372
376
|
}
|
|
373
|
-
u && !(u instanceof Error) && (ae(
|
|
377
|
+
u && !(u instanceof Error) && (ae(p), T("%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).", s || "React class", a, f, typeof u), ae(null)), u instanceof Error && !(u.message in De) && (De[u.message] = !0, ae(p), T("Failed %s type: %s", a, u.message), ae(null));
|
|
374
378
|
}
|
|
375
379
|
}
|
|
376
380
|
}
|
|
@@ -394,16 +398,16 @@ function Yr() {
|
|
|
394
398
|
function Fe(e) {
|
|
395
399
|
return "" + e;
|
|
396
400
|
}
|
|
397
|
-
function
|
|
401
|
+
function Le(e) {
|
|
398
402
|
if (Tr(e))
|
|
399
|
-
return
|
|
403
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(e)), Fe(e);
|
|
400
404
|
}
|
|
401
|
-
var H =
|
|
405
|
+
var H = j.ReactCurrentOwner, Sr = {
|
|
402
406
|
key: !0,
|
|
403
407
|
ref: !0,
|
|
404
408
|
__self: !0,
|
|
405
409
|
__source: !0
|
|
406
|
-
},
|
|
410
|
+
}, Ae, We, de;
|
|
407
411
|
de = {};
|
|
408
412
|
function Rr(e) {
|
|
409
413
|
if (ne.call(e, "ref")) {
|
|
@@ -421,16 +425,16 @@ function Yr() {
|
|
|
421
425
|
}
|
|
422
426
|
return e.key !== void 0;
|
|
423
427
|
}
|
|
424
|
-
function
|
|
428
|
+
function xr(e, t) {
|
|
425
429
|
if (typeof e.ref == "string" && H.current && t && H.current.stateNode !== t) {
|
|
426
430
|
var a = N(H.current.type);
|
|
427
|
-
de[a] || (
|
|
431
|
+
de[a] || (T('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', N(H.current.type), e.ref), de[a] = !0);
|
|
428
432
|
}
|
|
429
433
|
}
|
|
430
|
-
function
|
|
434
|
+
function jr(e, t) {
|
|
431
435
|
{
|
|
432
436
|
var a = function() {
|
|
433
|
-
|
|
437
|
+
Ae || (Ae = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
434
438
|
};
|
|
435
439
|
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
436
440
|
get: a,
|
|
@@ -441,7 +445,7 @@ function Yr() {
|
|
|
441
445
|
function Or(e, t) {
|
|
442
446
|
{
|
|
443
447
|
var a = function() {
|
|
444
|
-
We || (We = !0,
|
|
448
|
+
We || (We = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
445
449
|
};
|
|
446
450
|
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
447
451
|
get: a,
|
|
@@ -449,7 +453,7 @@ function Yr() {
|
|
|
449
453
|
});
|
|
450
454
|
}
|
|
451
455
|
}
|
|
452
|
-
var
|
|
456
|
+
var wr = function(e, t, a, s, p, v, f) {
|
|
453
457
|
var u = {
|
|
454
458
|
// This tag allows us to uniquely identify this as a React Element
|
|
455
459
|
$$typeof: n,
|
|
@@ -459,7 +463,7 @@ function Yr() {
|
|
|
459
463
|
ref: a,
|
|
460
464
|
props: f,
|
|
461
465
|
// Record the component responsible for creating this element.
|
|
462
|
-
_owner:
|
|
466
|
+
_owner: v
|
|
463
467
|
};
|
|
464
468
|
return u._store = {}, Object.defineProperty(u._store, "validated", {
|
|
465
469
|
configurable: !1,
|
|
@@ -475,44 +479,44 @@ function Yr() {
|
|
|
475
479
|
configurable: !1,
|
|
476
480
|
enumerable: !1,
|
|
477
481
|
writable: !1,
|
|
478
|
-
value:
|
|
482
|
+
value: p
|
|
479
483
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
480
484
|
};
|
|
481
|
-
function
|
|
485
|
+
function Cr(e, t, a, s, p) {
|
|
482
486
|
{
|
|
483
|
-
var
|
|
484
|
-
a !== void 0 && (
|
|
485
|
-
for (
|
|
486
|
-
ne.call(t,
|
|
487
|
+
var v, f = {}, u = null, O = null;
|
|
488
|
+
a !== void 0 && (Le(a), u = "" + a), Er(t) && (Le(t.key), u = "" + t.key), Rr(t) && (O = t.ref, xr(t, p));
|
|
489
|
+
for (v in t)
|
|
490
|
+
ne.call(t, v) && !Sr.hasOwnProperty(v) && (f[v] = t[v]);
|
|
487
491
|
if (e && e.defaultProps) {
|
|
488
|
-
var
|
|
489
|
-
for (
|
|
490
|
-
f[
|
|
492
|
+
var R = e.defaultProps;
|
|
493
|
+
for (v in R)
|
|
494
|
+
f[v] === void 0 && (f[v] = R[v]);
|
|
491
495
|
}
|
|
492
496
|
if (u || O) {
|
|
493
497
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
494
|
-
u &&
|
|
498
|
+
u && jr(f, E), O && Or(f, E);
|
|
495
499
|
}
|
|
496
|
-
return
|
|
500
|
+
return wr(e, u, O, p, s, H.current, f);
|
|
497
501
|
}
|
|
498
502
|
}
|
|
499
|
-
var
|
|
500
|
-
function
|
|
503
|
+
var pe = j.ReactCurrentOwner, qe = j.ReactDebugCurrentFrame;
|
|
504
|
+
function M(e) {
|
|
501
505
|
if (e) {
|
|
502
506
|
var t = e._owner, a = te(e.type, e._source, t ? t.type : null);
|
|
503
507
|
qe.setExtraStackFrame(a);
|
|
504
508
|
} else
|
|
505
509
|
qe.setExtraStackFrame(null);
|
|
506
510
|
}
|
|
507
|
-
var
|
|
508
|
-
|
|
509
|
-
function
|
|
511
|
+
var _e;
|
|
512
|
+
_e = !1;
|
|
513
|
+
function ve(e) {
|
|
510
514
|
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
511
515
|
}
|
|
512
|
-
function
|
|
516
|
+
function ze() {
|
|
513
517
|
{
|
|
514
|
-
if (
|
|
515
|
-
var e = N(
|
|
518
|
+
if (pe.current) {
|
|
519
|
+
var e = N(pe.current.type);
|
|
516
520
|
if (e)
|
|
517
521
|
return `
|
|
518
522
|
|
|
@@ -532,10 +536,10 @@ Check your code at ` + t + ":" + a + ".";
|
|
|
532
536
|
return "";
|
|
533
537
|
}
|
|
534
538
|
}
|
|
535
|
-
var
|
|
539
|
+
var Me = {};
|
|
536
540
|
function kr(e) {
|
|
537
541
|
{
|
|
538
|
-
var t =
|
|
542
|
+
var t = ze();
|
|
539
543
|
if (!t) {
|
|
540
544
|
var a = typeof e == "string" ? e : e.displayName || e.name;
|
|
541
545
|
a && (t = `
|
|
@@ -545,35 +549,35 @@ Check the top-level render call using <` + a + ">.");
|
|
|
545
549
|
return t;
|
|
546
550
|
}
|
|
547
551
|
}
|
|
548
|
-
function
|
|
552
|
+
function Ve(e, t) {
|
|
549
553
|
{
|
|
550
554
|
if (!e._store || e._store.validated || e.key != null)
|
|
551
555
|
return;
|
|
552
556
|
e._store.validated = !0;
|
|
553
557
|
var a = kr(t);
|
|
554
|
-
if (
|
|
558
|
+
if (Me[a])
|
|
555
559
|
return;
|
|
556
|
-
|
|
560
|
+
Me[a] = !0;
|
|
557
561
|
var s = "";
|
|
558
|
-
e && e._owner && e._owner !==
|
|
562
|
+
e && e._owner && e._owner !== pe.current && (s = " It was passed a child from " + N(e._owner.type) + "."), M(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, s), M(null);
|
|
559
563
|
}
|
|
560
564
|
}
|
|
561
|
-
function
|
|
565
|
+
function Ye(e, t) {
|
|
562
566
|
{
|
|
563
567
|
if (typeof e != "object")
|
|
564
568
|
return;
|
|
565
569
|
if (fe(e))
|
|
566
570
|
for (var a = 0; a < e.length; a++) {
|
|
567
571
|
var s = e[a];
|
|
568
|
-
|
|
572
|
+
ve(s) && Ve(s, t);
|
|
569
573
|
}
|
|
570
|
-
else if (
|
|
574
|
+
else if (ve(e))
|
|
571
575
|
e._store && (e._store.validated = !0);
|
|
572
576
|
else if (e) {
|
|
573
|
-
var
|
|
574
|
-
if (typeof
|
|
575
|
-
for (var
|
|
576
|
-
|
|
577
|
+
var p = z(e);
|
|
578
|
+
if (typeof p == "function" && p !== e.entries)
|
|
579
|
+
for (var v = p.call(e), f; !(f = v.next()).done; )
|
|
580
|
+
ve(f.value) && Ve(f.value, t);
|
|
577
581
|
}
|
|
578
582
|
}
|
|
579
583
|
}
|
|
@@ -585,7 +589,7 @@ Check the top-level render call using <` + a + ">.");
|
|
|
585
589
|
var a;
|
|
586
590
|
if (typeof t == "function")
|
|
587
591
|
a = t.propTypes;
|
|
588
|
-
else if (typeof t == "object" && (t.$$typeof ===
|
|
592
|
+
else if (typeof t == "object" && (t.$$typeof === l || // Note: Memo only checks outer props here.
|
|
589
593
|
// Inner props are checked in the reconciler.
|
|
590
594
|
t.$$typeof === b))
|
|
591
595
|
a = t.propTypes;
|
|
@@ -593,13 +597,13 @@ Check the top-level render call using <` + a + ">.");
|
|
|
593
597
|
return;
|
|
594
598
|
if (a) {
|
|
595
599
|
var s = N(t);
|
|
596
|
-
|
|
597
|
-
} else if (t.PropTypes !== void 0 && !
|
|
598
|
-
|
|
599
|
-
var
|
|
600
|
-
|
|
600
|
+
yr(a, e.props, "prop", s, e);
|
|
601
|
+
} else if (t.PropTypes !== void 0 && !_e) {
|
|
602
|
+
_e = !0;
|
|
603
|
+
var p = N(t);
|
|
604
|
+
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
601
605
|
}
|
|
602
|
-
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved &&
|
|
606
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
603
607
|
}
|
|
604
608
|
}
|
|
605
609
|
function $r(e) {
|
|
@@ -607,55 +611,55 @@ Check the top-level render call using <` + a + ">.");
|
|
|
607
611
|
for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
|
|
608
612
|
var s = t[a];
|
|
609
613
|
if (s !== "children" && s !== "key") {
|
|
610
|
-
|
|
614
|
+
M(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), M(null);
|
|
611
615
|
break;
|
|
612
616
|
}
|
|
613
617
|
}
|
|
614
|
-
e.ref !== null && (
|
|
618
|
+
e.ref !== null && (M(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
|
|
615
619
|
}
|
|
616
620
|
}
|
|
617
|
-
function
|
|
621
|
+
function Ue(e, t, a, s, p, v) {
|
|
618
622
|
{
|
|
619
623
|
var f = fr(e);
|
|
620
624
|
if (!f) {
|
|
621
625
|
var u = "";
|
|
622
626
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
623
|
-
var O = Pr(
|
|
624
|
-
O ? u += O : u +=
|
|
625
|
-
var
|
|
626
|
-
e === null ?
|
|
627
|
+
var O = Pr(p);
|
|
628
|
+
O ? u += O : u += ze();
|
|
629
|
+
var R;
|
|
630
|
+
e === null ? R = "null" : fe(e) ? R = "array" : e !== void 0 && e.$$typeof === n ? (R = "<" + (N(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, u);
|
|
627
631
|
}
|
|
628
|
-
var E =
|
|
632
|
+
var E = Cr(e, t, a, p, v);
|
|
629
633
|
if (E == null)
|
|
630
634
|
return E;
|
|
631
635
|
if (f) {
|
|
632
|
-
var
|
|
633
|
-
if (
|
|
636
|
+
var C = t.children;
|
|
637
|
+
if (C !== void 0)
|
|
634
638
|
if (s)
|
|
635
|
-
if (fe(
|
|
636
|
-
for (var
|
|
637
|
-
|
|
638
|
-
Object.freeze && Object.freeze(
|
|
639
|
+
if (fe(C)) {
|
|
640
|
+
for (var V = 0; V < C.length; V++)
|
|
641
|
+
Ye(C[V], e);
|
|
642
|
+
Object.freeze && Object.freeze(C);
|
|
639
643
|
} else
|
|
640
|
-
|
|
644
|
+
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
641
645
|
else
|
|
642
|
-
|
|
646
|
+
Ye(C, e);
|
|
643
647
|
}
|
|
644
648
|
return e === o ? $r(E) : Nr(E), E;
|
|
645
649
|
}
|
|
646
650
|
}
|
|
647
651
|
function Dr(e, t, a) {
|
|
648
|
-
return
|
|
652
|
+
return Ue(e, t, a, !0);
|
|
649
653
|
}
|
|
650
654
|
function Ir(e, t, a) {
|
|
651
|
-
return
|
|
655
|
+
return Ue(e, t, a, !1);
|
|
652
656
|
}
|
|
653
|
-
var Fr = Ir,
|
|
654
|
-
Z.Fragment = o, Z.jsx = Fr, Z.jsxs =
|
|
657
|
+
var Fr = Ir, Lr = Dr;
|
|
658
|
+
Z.Fragment = o, Z.jsx = Fr, Z.jsxs = Lr;
|
|
655
659
|
}()), Z;
|
|
656
660
|
}
|
|
657
|
-
process.env.NODE_ENV === "production" ?
|
|
658
|
-
var
|
|
661
|
+
process.env.NODE_ENV === "production" ? ye.exports = Yr() : ye.exports = Ur();
|
|
662
|
+
var h = ye.exports;
|
|
659
663
|
function ir(r) {
|
|
660
664
|
var n, i, o = "";
|
|
661
665
|
if (typeof r == "string" || typeof r == "number")
|
|
@@ -669,59 +673,59 @@ function ir(r) {
|
|
|
669
673
|
r[n] && (o && (o += " "), o += n);
|
|
670
674
|
return o;
|
|
671
675
|
}
|
|
672
|
-
function
|
|
676
|
+
function B() {
|
|
673
677
|
for (var r, n, i = 0, o = ""; i < arguments.length; )
|
|
674
678
|
(r = arguments[i++]) && (n = ir(r)) && (o && (o += " "), o += n);
|
|
675
679
|
return o;
|
|
676
680
|
}
|
|
677
|
-
function
|
|
681
|
+
function Br(r) {
|
|
678
682
|
var n = typeof r;
|
|
679
683
|
return r != null && (n == "object" || n == "function");
|
|
680
684
|
}
|
|
681
|
-
var
|
|
682
|
-
return
|
|
683
|
-
},
|
|
684
|
-
function
|
|
685
|
-
for (var n = r.length; n-- &&
|
|
685
|
+
var Se = Br, Gr = typeof ie == "object" && ie && ie.Object === Object && ie, Jr = Gr, Xr = Jr, Hr = typeof self == "object" && self && self.Object === Object && self, Kr = Xr || Hr || Function("return this")(), or = Kr, Zr = or, Qr = function() {
|
|
686
|
+
return Zr.Date.now();
|
|
687
|
+
}, et = Qr, rt = /\s/;
|
|
688
|
+
function tt(r) {
|
|
689
|
+
for (var n = r.length; n-- && rt.test(r.charAt(n)); )
|
|
686
690
|
;
|
|
687
691
|
return n;
|
|
688
692
|
}
|
|
689
|
-
var
|
|
690
|
-
function
|
|
691
|
-
return r && r.slice(0,
|
|
693
|
+
var nt = tt, at = nt, it = /^\s+/;
|
|
694
|
+
function ot(r) {
|
|
695
|
+
return r && r.slice(0, at(r) + 1).replace(it, "");
|
|
692
696
|
}
|
|
693
|
-
var
|
|
694
|
-
function
|
|
695
|
-
var n =
|
|
697
|
+
var st = ot, ct = or, lt = ct.Symbol, sr = lt, Xe = sr, cr = Object.prototype, ut = cr.hasOwnProperty, ft = cr.toString, Q = Xe ? Xe.toStringTag : void 0;
|
|
698
|
+
function dt(r) {
|
|
699
|
+
var n = ut.call(r, Q), i = r[Q];
|
|
696
700
|
try {
|
|
697
701
|
r[Q] = void 0;
|
|
698
702
|
var o = !0;
|
|
699
703
|
} catch {
|
|
700
704
|
}
|
|
701
|
-
var
|
|
702
|
-
return o && (n ? r[Q] = i : delete r[Q]),
|
|
705
|
+
var c = ft.call(r);
|
|
706
|
+
return o && (n ? r[Q] = i : delete r[Q]), c;
|
|
703
707
|
}
|
|
704
|
-
var
|
|
705
|
-
function
|
|
706
|
-
return
|
|
708
|
+
var pt = dt, _t = Object.prototype, vt = _t.toString;
|
|
709
|
+
function gt(r) {
|
|
710
|
+
return vt.call(r);
|
|
707
711
|
}
|
|
708
|
-
var
|
|
709
|
-
function
|
|
710
|
-
return r == null ? r === void 0 ?
|
|
712
|
+
var mt = gt, He = sr, yt = pt, bt = mt, ht = "[object Null]", Tt = "[object Undefined]", Ke = He ? He.toStringTag : void 0;
|
|
713
|
+
function St(r) {
|
|
714
|
+
return r == null ? r === void 0 ? Tt : ht : Ke && Ke in Object(r) ? yt(r) : bt(r);
|
|
711
715
|
}
|
|
712
|
-
var
|
|
713
|
-
function
|
|
716
|
+
var Rt = St;
|
|
717
|
+
function Et(r) {
|
|
714
718
|
return r != null && typeof r == "object";
|
|
715
719
|
}
|
|
716
|
-
var
|
|
717
|
-
function
|
|
718
|
-
return typeof r == "symbol" ||
|
|
720
|
+
var xt = Et, jt = Rt, Ot = xt, wt = "[object Symbol]";
|
|
721
|
+
function Ct(r) {
|
|
722
|
+
return typeof r == "symbol" || Ot(r) && jt(r) == wt;
|
|
719
723
|
}
|
|
720
|
-
var
|
|
721
|
-
function
|
|
724
|
+
var Pt = Ct, kt = st, Ze = Se, Nt = Pt, Qe = 0 / 0, $t = /^[-+]0x[0-9a-f]+$/i, Dt = /^0b[01]+$/i, It = /^0o[0-7]+$/i, Ft = parseInt;
|
|
725
|
+
function Lt(r) {
|
|
722
726
|
if (typeof r == "number")
|
|
723
727
|
return r;
|
|
724
|
-
if (
|
|
728
|
+
if (Nt(r))
|
|
725
729
|
return Qe;
|
|
726
730
|
if (Ze(r)) {
|
|
727
731
|
var n = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
@@ -729,309 +733,308 @@ function Dt(r) {
|
|
|
729
733
|
}
|
|
730
734
|
if (typeof r != "string")
|
|
731
735
|
return r === 0 ? r : +r;
|
|
732
|
-
r =
|
|
733
|
-
var i =
|
|
734
|
-
return i ||
|
|
736
|
+
r = kt(r);
|
|
737
|
+
var i = Dt.test(r);
|
|
738
|
+
return i || It.test(r) ? Ft(r.slice(2), i ? 2 : 8) : $t.test(r) ? Qe : +r;
|
|
735
739
|
}
|
|
736
|
-
var
|
|
737
|
-
function
|
|
738
|
-
var o,
|
|
740
|
+
var At = Lt, Wt = Se, ge = et, er = At, qt = "Expected a function", zt = Math.max, Mt = Math.min;
|
|
741
|
+
function Vt(r, n, i) {
|
|
742
|
+
var o, c, g, _, d, l, m = 0, y = !1, b = !1, x = !0;
|
|
739
743
|
if (typeof r != "function")
|
|
740
|
-
throw new TypeError(
|
|
741
|
-
n = er(n) || 0,
|
|
742
|
-
function
|
|
743
|
-
var
|
|
744
|
-
return o =
|
|
744
|
+
throw new TypeError(qt);
|
|
745
|
+
n = er(n) || 0, Wt(i) && (y = !!i.leading, b = "maxWait" in i, g = b ? zt(er(i.maxWait) || 0, n) : g, x = "trailing" in i ? !!i.trailing : x);
|
|
746
|
+
function w(S) {
|
|
747
|
+
var P = o, F = c;
|
|
748
|
+
return o = c = void 0, m = S, _ = r.apply(F, P), _;
|
|
745
749
|
}
|
|
746
|
-
function
|
|
747
|
-
return
|
|
750
|
+
function W(S) {
|
|
751
|
+
return m = S, d = setTimeout(j, n), y ? w(S) : _;
|
|
748
752
|
}
|
|
749
|
-
function
|
|
750
|
-
var
|
|
751
|
-
return b ?
|
|
753
|
+
function q(S) {
|
|
754
|
+
var P = S - l, F = S - m, J = n - P;
|
|
755
|
+
return b ? Mt(J, g - F) : J;
|
|
752
756
|
}
|
|
753
|
-
function
|
|
754
|
-
var
|
|
755
|
-
return
|
|
757
|
+
function z(S) {
|
|
758
|
+
var P = S - l, F = S - m;
|
|
759
|
+
return l === void 0 || P >= n || P < 0 || b && F >= g;
|
|
756
760
|
}
|
|
757
|
-
function
|
|
758
|
-
var
|
|
759
|
-
if (
|
|
760
|
-
return
|
|
761
|
-
d = setTimeout(
|
|
761
|
+
function j() {
|
|
762
|
+
var S = ge();
|
|
763
|
+
if (z(S))
|
|
764
|
+
return T(S);
|
|
765
|
+
d = setTimeout(j, q(S));
|
|
762
766
|
}
|
|
763
|
-
function
|
|
764
|
-
return d = void 0,
|
|
767
|
+
function T(S) {
|
|
768
|
+
return d = void 0, x && o ? w(S) : (o = c = void 0, _);
|
|
765
769
|
}
|
|
766
770
|
function oe() {
|
|
767
|
-
d !== void 0 && clearTimeout(d),
|
|
771
|
+
d !== void 0 && clearTimeout(d), m = 0, o = l = c = d = void 0;
|
|
768
772
|
}
|
|
769
773
|
function se() {
|
|
770
|
-
return d === void 0 ?
|
|
774
|
+
return d === void 0 ? _ : T(ge());
|
|
771
775
|
}
|
|
772
776
|
function G() {
|
|
773
|
-
var
|
|
774
|
-
if (o = arguments,
|
|
777
|
+
var S = ge(), P = z(S);
|
|
778
|
+
if (o = arguments, c = this, l = S, P) {
|
|
775
779
|
if (d === void 0)
|
|
776
|
-
return
|
|
780
|
+
return W(l);
|
|
777
781
|
if (b)
|
|
778
|
-
return clearTimeout(d), d = setTimeout(
|
|
782
|
+
return clearTimeout(d), d = setTimeout(j, n), w(l);
|
|
779
783
|
}
|
|
780
|
-
return d === void 0 && (d = setTimeout(
|
|
784
|
+
return d === void 0 && (d = setTimeout(j, n)), _;
|
|
781
785
|
}
|
|
782
786
|
return G.cancel = oe, G.flush = se, G;
|
|
783
787
|
}
|
|
784
|
-
var
|
|
785
|
-
function
|
|
786
|
-
var o = !0,
|
|
788
|
+
var Yt = Vt, Ut = Yt, Bt = Se, Gt = "Expected a function";
|
|
789
|
+
function Jt(r, n, i) {
|
|
790
|
+
var o = !0, c = !0;
|
|
787
791
|
if (typeof r != "function")
|
|
788
|
-
throw new TypeError(
|
|
789
|
-
return
|
|
792
|
+
throw new TypeError(Gt);
|
|
793
|
+
return Bt(i) && (o = "leading" in i ? !!i.leading : o, c = "trailing" in i ? !!i.trailing : c), Ut(r, n, {
|
|
790
794
|
leading: o,
|
|
791
795
|
maxWait: n,
|
|
792
|
-
trailing:
|
|
796
|
+
trailing: c
|
|
793
797
|
});
|
|
794
798
|
}
|
|
795
|
-
var
|
|
796
|
-
const
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
799
|
+
var Xt = Jt;
|
|
800
|
+
const Ht = /* @__PURE__ */ Vr(Xt), Kt = "_icon_awnbf_2", Zt = "_thin_awnbf_25", Qt = "_light_awnbf_29", en = "_regular_awnbf_33", rn = "_solid_awnbf_37", tn = "_duotone_awnbf_41", nn = "_sharpSolid_awnbf_52", an = "_sharpRegular_awnbf_56", on = "_sharpLight_awnbf_60", sn = "_brand_awnbf_64", rr = {
|
|
801
|
+
icon: Kt,
|
|
802
|
+
thin: Zt,
|
|
803
|
+
light: Qt,
|
|
804
|
+
regular: en,
|
|
805
|
+
solid: rn,
|
|
806
|
+
duotone: tn,
|
|
807
|
+
sharpSolid: nn,
|
|
808
|
+
sharpRegular: an,
|
|
809
|
+
sharpLight: on,
|
|
810
|
+
brand: sn
|
|
803
811
|
};
|
|
804
|
-
var
|
|
805
|
-
const Re =
|
|
806
|
-
const { className: i,
|
|
812
|
+
var lr = /* @__PURE__ */ ((r) => (r[r.mini = 12] = "mini", r[r.default = 18] = "default", r[r.large = 24] = "large", r))(lr || {});
|
|
813
|
+
const Re = U((r, n) => {
|
|
814
|
+
const { className: i, code: o, type: c = "light", size: g } = r, _ = g ? `${typeof g == "number" ? g : lr[g]}px` : void 0, d = B(
|
|
807
815
|
rr.icon,
|
|
808
|
-
|
|
809
|
-
|
|
816
|
+
c && rr[c],
|
|
817
|
+
i
|
|
810
818
|
);
|
|
811
|
-
return /* @__PURE__ */
|
|
819
|
+
return /* @__PURE__ */ h.jsx("span", { className: d, ref: n, style: { "--iconSize": _ }, "data-content": Mr(o) });
|
|
812
820
|
});
|
|
813
821
|
Re.displayName = "Icon";
|
|
814
|
-
const
|
|
815
|
-
progressBar:
|
|
816
|
-
progress:
|
|
817
|
-
intermediate:
|
|
818
|
-
barberPole:
|
|
819
|
-
}, ur =
|
|
820
|
-
const { className: i, progress: o = 100, intermediate:
|
|
821
|
-
|
|
822
|
-
|
|
822
|
+
const cn = "_progressBar_luf46_1", ln = "_progress_luf46_1", un = "_intermediate_luf46_31", fn = "_barberPole_luf46_1", me = {
|
|
823
|
+
progressBar: cn,
|
|
824
|
+
progress: ln,
|
|
825
|
+
intermediate: un,
|
|
826
|
+
barberPole: fn
|
|
827
|
+
}, ur = U((r, n) => {
|
|
828
|
+
const { className: i, progress: o = 100, intermediate: c = !1 } = r, g = c ? 150 : Math.min(Math.max(o, 0), 100), _ = B(
|
|
829
|
+
me.progressBar,
|
|
830
|
+
c && me.intermediate,
|
|
823
831
|
i
|
|
824
832
|
);
|
|
825
|
-
return /* @__PURE__ */
|
|
833
|
+
return /* @__PURE__ */ h.jsx("div", { className: _, ref: n, children: /* @__PURE__ */ h.jsx("span", { className: me.progress, style: { width: `${g}%` } }) });
|
|
826
834
|
});
|
|
827
835
|
ur.displayName = "ProgressBar";
|
|
828
|
-
const
|
|
829
|
-
button:
|
|
830
|
-
label:
|
|
831
|
-
icon:
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
spin: Tn
|
|
836
|
+
const dn = "_button_6uqr8_1", pn = "_label_6uqr8_17", _n = "_icon_6uqr8_23", vn = "_underline_6uqr8_26", gn = "_primaryType_6uqr8_49", mn = "_primaryDangerType_6uqr8_49", yn = "_secondaryType_6uqr8_54", bn = "_secondaryDangerType_6uqr8_54", hn = "_linkType_6uqr8_59", Tn = "_linkDangerType_6uqr8_59", Sn = "_miniSize_6uqr8_88", Rn = "_iconOnly_6uqr8_99", En = "_defaultSize_6uqr8_106", xn = "_largeSize_6uqr8_124", jn = "_clicked_6uqr8_157", On = "_ripple_6uqr8_1", wn = "_loading_6uqr8_166", Cn = "_barberPole_6uqr8_1", Pn = "_spin_6uqr8_1", k = {
|
|
837
|
+
button: dn,
|
|
838
|
+
label: pn,
|
|
839
|
+
icon: _n,
|
|
840
|
+
underline: vn,
|
|
841
|
+
primaryType: gn,
|
|
842
|
+
primaryDangerType: mn,
|
|
843
|
+
secondaryType: yn,
|
|
844
|
+
secondaryDangerType: bn,
|
|
845
|
+
linkType: hn,
|
|
846
|
+
linkDangerType: Tn,
|
|
847
|
+
miniSize: Sn,
|
|
848
|
+
iconOnly: Rn,
|
|
849
|
+
defaultSize: En,
|
|
850
|
+
largeSize: xn,
|
|
851
|
+
clicked: jn,
|
|
852
|
+
ripple: On,
|
|
853
|
+
loading: wn,
|
|
854
|
+
barberPole: Cn,
|
|
855
|
+
spin: Pn
|
|
849
856
|
};
|
|
850
857
|
var be = /* @__PURE__ */ ((r) => (r.primary = "primary", r.primaryDanger = "primaryDanger", r.secondary = "secondary", r.secondaryDanger = "secondaryDanger", r.link = "link", r.linkDanger = "linkDanger", r))(be || {});
|
|
851
858
|
const tr = 100;
|
|
852
859
|
let nr;
|
|
853
|
-
const
|
|
860
|
+
const kn = U((r, n) => {
|
|
854
861
|
const {
|
|
855
862
|
className: i,
|
|
856
863
|
label: o,
|
|
857
|
-
type:
|
|
864
|
+
type: c = "primary",
|
|
858
865
|
size: g = "default",
|
|
859
|
-
disabled:
|
|
866
|
+
disabled: _ = !1,
|
|
860
867
|
loading: d = !1,
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
iconPosition:
|
|
868
|
+
icon: l,
|
|
869
|
+
iconType: m,
|
|
870
|
+
iconPosition: y = "left",
|
|
864
871
|
onClick: b
|
|
865
|
-
} = r,
|
|
866
|
-
var
|
|
867
|
-
clearTimeout(nr), (
|
|
868
|
-
var
|
|
869
|
-
(
|
|
872
|
+
} = r, x = Ar(null), w = Ht(() => {
|
|
873
|
+
var j;
|
|
874
|
+
clearTimeout(nr), (j = x.current) == null || j.classList.add(k.clicked), nr = window.setTimeout(() => {
|
|
875
|
+
var T;
|
|
876
|
+
(T = x.current) == null || T.classList.remove(k.clicked);
|
|
870
877
|
}, 600 + tr);
|
|
871
|
-
}, tr),
|
|
872
|
-
b == null || b(
|
|
873
|
-
},
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
!o &&
|
|
878
|
-
d &&
|
|
878
|
+
}, tr), W = (j) => {
|
|
879
|
+
b == null || b(j), c.includes(be.link) || w();
|
|
880
|
+
}, q = () => l ? /* @__PURE__ */ h.jsx(Re, { className: k.icon, code: l, type: m, size: g }) : null, z = B(
|
|
881
|
+
k.button,
|
|
882
|
+
k[`${c}Type`],
|
|
883
|
+
k[`${g}Size`],
|
|
884
|
+
!o && k.iconOnly,
|
|
885
|
+
d && k.loading,
|
|
879
886
|
i
|
|
880
887
|
);
|
|
881
|
-
return !o && !
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
o && /* @__PURE__ */
|
|
885
|
-
|
|
888
|
+
return !o && !l ? null : /* @__PURE__ */ h.jsxs("button", { className: z, ref: qr([x, n]), onClick: W, disabled: _, children: [
|
|
889
|
+
c.includes(be.link) && /* @__PURE__ */ h.jsx(ur, { className: k.underline, intermediate: d }),
|
|
890
|
+
y === "left" && /* @__PURE__ */ h.jsx(q, {}),
|
|
891
|
+
o && /* @__PURE__ */ h.jsx("span", { className: k.label, children: o }),
|
|
892
|
+
y === "right" && /* @__PURE__ */ h.jsx(q, {})
|
|
886
893
|
] });
|
|
887
894
|
});
|
|
888
|
-
|
|
889
|
-
const
|
|
890
|
-
textfield:
|
|
891
|
-
icon:
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
895
|
+
kn.displayName = "Button";
|
|
896
|
+
const Nn = "_textfield_7y99a_1", $n = "_icon_7y99a_27", Dn = "_input_7y99a_36", In = "_placeholder_7y99a_49", Fn = "_withIcon_7y99a_73", Ln = "_textarea_7y99a_83", An = "_hasValue_7y99a_92", D = {
|
|
897
|
+
textfield: Nn,
|
|
898
|
+
icon: $n,
|
|
899
|
+
input: Dn,
|
|
900
|
+
placeholder: In,
|
|
901
|
+
withIcon: Fn,
|
|
902
|
+
textarea: Ln,
|
|
903
|
+
hasValue: An
|
|
904
|
+
}, Wn = U((r, n) => {
|
|
897
905
|
const {
|
|
898
906
|
className: i,
|
|
899
907
|
type: o = "text",
|
|
900
|
-
textarea:
|
|
908
|
+
textarea: c,
|
|
901
909
|
placeholder: g,
|
|
902
|
-
autoComplete:
|
|
910
|
+
autoComplete: _ = "off",
|
|
903
911
|
autoFocus: d,
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
value:
|
|
912
|
+
icon: l,
|
|
913
|
+
iconType: m = "regular",
|
|
914
|
+
value: y,
|
|
907
915
|
onChange: b
|
|
908
|
-
} = r,
|
|
909
|
-
if (
|
|
916
|
+
} = r, x = Wr(() => {
|
|
917
|
+
if (c === !0)
|
|
910
918
|
return null;
|
|
911
|
-
if (
|
|
912
|
-
return
|
|
919
|
+
if (l)
|
|
920
|
+
return l;
|
|
913
921
|
if (o === "number")
|
|
914
|
-
return "
|
|
922
|
+
return "23";
|
|
915
923
|
if (o === "search")
|
|
916
|
-
return "
|
|
924
|
+
return "f002";
|
|
917
925
|
if (o === "password")
|
|
918
|
-
return "
|
|
919
|
-
}, [
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
926
|
+
return "f30d";
|
|
927
|
+
}, [c, l, o]), w = B(
|
|
928
|
+
D.textfield,
|
|
929
|
+
x && D.withIcon,
|
|
930
|
+
c && D.textarea,
|
|
931
|
+
y && D.hasValue,
|
|
923
932
|
i
|
|
924
933
|
);
|
|
925
|
-
return /* @__PURE__ */
|
|
926
|
-
!!
|
|
927
|
-
|
|
928
|
-
{
|
|
929
|
-
className: I(L.icon, _ && L.filled),
|
|
930
|
-
name: S,
|
|
931
|
-
size: 20,
|
|
932
|
-
filled: _
|
|
933
|
-
}
|
|
934
|
-
),
|
|
935
|
-
l ? /* @__PURE__ */ R.jsx(
|
|
934
|
+
return /* @__PURE__ */ h.jsxs("div", { className: w, ref: n, children: [
|
|
935
|
+
!!x && !c && /* @__PURE__ */ h.jsx(Re, { className: D.icon, code: x, type: m }),
|
|
936
|
+
c ? /* @__PURE__ */ h.jsx(
|
|
936
937
|
"textarea",
|
|
937
938
|
{
|
|
938
|
-
className:
|
|
939
|
+
className: D.input,
|
|
939
940
|
autoFocus: d,
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
value: m,
|
|
941
|
+
autoComplete: _,
|
|
942
|
+
value: y,
|
|
943
943
|
onChange: b
|
|
944
944
|
}
|
|
945
|
-
) : /* @__PURE__ */
|
|
945
|
+
) : /* @__PURE__ */ h.jsx(
|
|
946
946
|
"input",
|
|
947
947
|
{
|
|
948
|
-
className:
|
|
948
|
+
className: D.input,
|
|
949
949
|
type: o,
|
|
950
950
|
autoFocus: d,
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
value: m,
|
|
951
|
+
autoComplete: _,
|
|
952
|
+
value: y,
|
|
954
953
|
onChange: b
|
|
955
954
|
}
|
|
956
|
-
)
|
|
955
|
+
),
|
|
956
|
+
/* @__PURE__ */ h.jsx("span", { className: D.placeholder, children: g })
|
|
957
957
|
] });
|
|
958
958
|
});
|
|
959
|
-
|
|
960
|
-
const
|
|
961
|
-
sider:
|
|
962
|
-
leftSiderContainer:
|
|
963
|
-
rightSiderContainer:
|
|
964
|
-
content:
|
|
965
|
-
miniLeftSider:
|
|
966
|
-
miniRightSider:
|
|
967
|
-
leftOpen:
|
|
968
|
-
rightOpen:
|
|
969
|
-
},
|
|
959
|
+
Wn.displayName = "Textfield";
|
|
960
|
+
const qn = "_sider_9guyz_1", zn = "_leftSiderContainer_9guyz_13", Mn = "_rightSiderContainer_9guyz_20", Vn = "_content_9guyz_27", Yn = "_miniLeftSider_9guyz_37", Un = "_miniRightSider_9guyz_44", Bn = "_leftOpen_9guyz_51", Gn = "_rightOpen_9guyz_57", I = {
|
|
961
|
+
sider: qn,
|
|
962
|
+
leftSiderContainer: zn,
|
|
963
|
+
rightSiderContainer: Mn,
|
|
964
|
+
content: Vn,
|
|
965
|
+
miniLeftSider: Yn,
|
|
966
|
+
miniRightSider: Un,
|
|
967
|
+
leftOpen: Bn,
|
|
968
|
+
rightOpen: Gn
|
|
969
|
+
}, Jn = U((r, n) => {
|
|
970
970
|
const {
|
|
971
971
|
className: i,
|
|
972
972
|
children: o,
|
|
973
|
-
leftSider:
|
|
973
|
+
leftSider: c,
|
|
974
974
|
showMiniLeftSider: g = !0,
|
|
975
|
-
rightSider:
|
|
975
|
+
rightSider: _,
|
|
976
976
|
showMiniRightSider: d = !1,
|
|
977
|
-
open:
|
|
977
|
+
open: l = "closed"
|
|
978
978
|
// setOpen,
|
|
979
|
-
} = r,
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
g &&
|
|
983
|
-
|
|
984
|
-
d &&
|
|
979
|
+
} = r, m = B(
|
|
980
|
+
I.sider,
|
|
981
|
+
l === "left" && I.leftOpen,
|
|
982
|
+
g && I.miniLeftSider,
|
|
983
|
+
l === "right" && I.rightOpen,
|
|
984
|
+
d && I.miniRightSider,
|
|
985
985
|
i
|
|
986
986
|
);
|
|
987
|
-
return /* @__PURE__ */
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
/* @__PURE__ */
|
|
990
|
-
/* @__PURE__ */
|
|
987
|
+
return /* @__PURE__ */ h.jsxs("section", { className: m, ref: n, role: "sider", children: [
|
|
988
|
+
/* @__PURE__ */ h.jsx("div", { className: I.leftSiderContainer, children: c }),
|
|
989
|
+
/* @__PURE__ */ h.jsx("div", { className: I.rightSiderContainer, children: _ }),
|
|
990
|
+
/* @__PURE__ */ h.jsx("div", { className: I.content, children: o })
|
|
991
991
|
] });
|
|
992
992
|
});
|
|
993
|
-
|
|
994
|
-
const
|
|
995
|
-
navigation:
|
|
996
|
-
brand:
|
|
997
|
-
routeList:
|
|
998
|
-
route:
|
|
999
|
-
icon:
|
|
1000
|
-
label:
|
|
1001
|
-
active:
|
|
1002
|
-
},
|
|
1003
|
-
const { className: i, Routes: o } = r,
|
|
1004
|
-
|
|
993
|
+
Jn.displayName = "Sider";
|
|
994
|
+
const Xn = "_navigation_zrgjp_1", Hn = "_brand_zrgjp_9", Kn = "_routeList_zrgjp_18", Zn = "_route_zrgjp_18", Qn = "_icon_zrgjp_59", ea = "_label_zrgjp_65", ra = "_active_zrgjp_77", A = {
|
|
995
|
+
navigation: Xn,
|
|
996
|
+
brand: Hn,
|
|
997
|
+
routeList: Kn,
|
|
998
|
+
route: Zn,
|
|
999
|
+
icon: Qn,
|
|
1000
|
+
label: ea,
|
|
1001
|
+
active: ra
|
|
1002
|
+
}, ta = U((r, n) => {
|
|
1003
|
+
const { className: i, Routes: o } = r, c = B(
|
|
1004
|
+
A.navigation,
|
|
1005
1005
|
i
|
|
1006
1006
|
);
|
|
1007
|
-
return /* @__PURE__ */
|
|
1008
|
-
/* @__PURE__ */
|
|
1009
|
-
/* @__PURE__ */
|
|
1007
|
+
return /* @__PURE__ */ h.jsxs("section", { className: c, ref: n, role: "navigation", children: [
|
|
1008
|
+
/* @__PURE__ */ h.jsx("div", { className: A.brand, children: "🎲 XtremeUI" }),
|
|
1009
|
+
/* @__PURE__ */ h.jsx("div", { className: A.routeList, children: !!o && /* @__PURE__ */ h.jsx(
|
|
1010
1010
|
o,
|
|
1011
1011
|
{
|
|
1012
|
-
className:
|
|
1013
|
-
activeClassName:
|
|
1014
|
-
iconClassName:
|
|
1015
|
-
labelClassName:
|
|
1012
|
+
className: A.route,
|
|
1013
|
+
activeClassName: A.active,
|
|
1014
|
+
iconClassName: A.icon,
|
|
1015
|
+
labelClassName: A.label
|
|
1016
1016
|
}
|
|
1017
1017
|
) })
|
|
1018
1018
|
] });
|
|
1019
1019
|
});
|
|
1020
|
-
|
|
1020
|
+
ta.displayName = "Navigation";
|
|
1021
1021
|
export {
|
|
1022
|
-
|
|
1022
|
+
kn as Button,
|
|
1023
1023
|
Re as Icon,
|
|
1024
|
-
|
|
1024
|
+
ta as Navigation,
|
|
1025
1025
|
ur as ProgressBar,
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1026
|
+
Jn as Sider,
|
|
1027
|
+
Wn as Textfield,
|
|
1028
|
+
Y as dom,
|
|
1029
|
+
la as elementObserver,
|
|
1030
1030
|
Te as getCssProperty,
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1031
|
+
aa as getCssPropertyPx,
|
|
1032
|
+
ia as getCssPropertyVh,
|
|
1033
|
+
oa as getCssPropertyVw,
|
|
1034
1034
|
he as isClient,
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
qr as mergeRefs,
|
|
1036
|
+
zr as safeStringFromCodePoint,
|
|
1037
|
+
sa as setCssProperty,
|
|
1038
|
+
Mr as unicodeToString,
|
|
1039
|
+
ca as waitForElement
|
|
1037
1040
|
};
|