solid-hook-form 1.5.4 → 1.6.1
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/logic/format_value.d.ts +4 -0
- package/dist/main.js +528 -505
- package/dist/main.umd.cjs +5 -5
- package/dist/types/validate.d.ts +1 -0
- package/dist/use_form.d.ts +3 -1
- package/dist/utils/resolver.d.ts +5 -0
- package/package.json +1 -6
package/dist/main.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { createSignal as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
return
|
|
5
|
-
}, ge = (n,
|
|
1
|
+
import { createSignal as He, createMemo as Qe, createContext as Ke, createComponent as Xe, useContext as Ze } from "solid-js";
|
|
2
|
+
const Je = (n) => {
|
|
3
|
+
const u = n.target;
|
|
4
|
+
return u instanceof HTMLSelectElement ? u.value : u instanceof HTMLInputElement && u.type === "checkbox" ? u.checked : u instanceof HTMLInputElement && u.type === "file" ? [...u.files || []] : u.value;
|
|
5
|
+
}, ge = (n, u) => {
|
|
6
6
|
if (n instanceof HTMLSelectElement) {
|
|
7
|
-
n.value =
|
|
7
|
+
n.value = u;
|
|
8
8
|
return;
|
|
9
9
|
}
|
|
10
10
|
if (n instanceof HTMLInputElement && n.type === "checkbox") {
|
|
11
|
-
n.checked =
|
|
11
|
+
n.checked = u;
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
|
-
n instanceof HTMLInputElement && n.type === "file" || (n.value =
|
|
14
|
+
n instanceof HTMLInputElement && n.type === "file" || (n.value = u);
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function et(n) {
|
|
17
17
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
18
18
|
}
|
|
19
19
|
var ye = { exports: {} }, p = {};
|
|
@@ -26,15 +26,15 @@ var ye = { exports: {} }, p = {};
|
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
28
|
*/
|
|
29
|
-
var
|
|
30
|
-
function
|
|
31
|
-
if (
|
|
32
|
-
|
|
33
|
-
var n = Symbol.for("react.transitional.element"),
|
|
34
|
-
function
|
|
35
|
-
return t === null || typeof t != "object" ? null : (t =
|
|
29
|
+
var Le;
|
|
30
|
+
function tt() {
|
|
31
|
+
if (Le) return p;
|
|
32
|
+
Le = 1;
|
|
33
|
+
var n = Symbol.for("react.transitional.element"), u = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), N = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), $ = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), W = Symbol.iterator;
|
|
34
|
+
function B(t) {
|
|
35
|
+
return t === null || typeof t != "object" ? null : (t = W && t[W] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var Q = {
|
|
38
38
|
isMounted: function() {
|
|
39
39
|
return !1;
|
|
40
40
|
},
|
|
@@ -44,29 +44,29 @@ function et() {
|
|
|
44
44
|
},
|
|
45
45
|
enqueueSetState: function() {
|
|
46
46
|
}
|
|
47
|
-
},
|
|
48
|
-
function
|
|
49
|
-
this.props = t, this.context = o, this.refs =
|
|
47
|
+
}, K = Object.assign, ee = {};
|
|
48
|
+
function U(t, o, f) {
|
|
49
|
+
this.props = t, this.context = o, this.refs = ee, this.updater = f || Q;
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
U.prototype.isReactComponent = {}, U.prototype.setState = function(t, o) {
|
|
52
52
|
if (typeof t != "object" && typeof t != "function" && t != null)
|
|
53
53
|
throw Error(
|
|
54
54
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
55
55
|
);
|
|
56
56
|
this.updater.enqueueSetState(this, t, o, "setState");
|
|
57
|
-
},
|
|
57
|
+
}, U.prototype.forceUpdate = function(t) {
|
|
58
58
|
this.updater.enqueueForceUpdate(this, t, "forceUpdate");
|
|
59
59
|
};
|
|
60
|
-
function
|
|
60
|
+
function z() {
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
function
|
|
64
|
-
this.props = t, this.context = o, this.refs =
|
|
62
|
+
z.prototype = U.prototype;
|
|
63
|
+
function x(t, o, f) {
|
|
64
|
+
this.props = t, this.context = o, this.refs = ee, this.updater = f || Q;
|
|
65
65
|
}
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
var
|
|
69
|
-
function
|
|
66
|
+
var I = x.prototype = new z();
|
|
67
|
+
I.constructor = x, K(I, U.prototype), I.isPureReactComponent = !0;
|
|
68
|
+
var X = Array.isArray, b = { H: null, A: null, T: null, S: null, V: null }, Z = Object.prototype.hasOwnProperty;
|
|
69
|
+
function J(t, o, f, c, R, S) {
|
|
70
70
|
return f = S.ref, {
|
|
71
71
|
$$typeof: n,
|
|
72
72
|
type: t,
|
|
@@ -75,8 +75,8 @@ function et() {
|
|
|
75
75
|
props: S
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return
|
|
78
|
+
function Y(t, o) {
|
|
79
|
+
return J(
|
|
80
80
|
t.type,
|
|
81
81
|
o,
|
|
82
82
|
void 0,
|
|
@@ -85,29 +85,29 @@ function et() {
|
|
|
85
85
|
t.props
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function q(t) {
|
|
89
89
|
return typeof t == "object" && t !== null && t.$$typeof === n;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function te(t) {
|
|
92
92
|
var o = { "=": "=0", ":": "=2" };
|
|
93
93
|
return "$" + t.replace(/[=:]/g, function(f) {
|
|
94
94
|
return o[f];
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
var C = /\/+/g;
|
|
98
|
-
function
|
|
99
|
-
return typeof t == "object" && t !== null && t.key != null ?
|
|
98
|
+
function re(t, o) {
|
|
99
|
+
return typeof t == "object" && t !== null && t.key != null ? te("" + t.key) : o.toString(36);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function V() {
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function l(t) {
|
|
104
104
|
switch (t.status) {
|
|
105
105
|
case "fulfilled":
|
|
106
106
|
return t.value;
|
|
107
107
|
case "rejected":
|
|
108
108
|
throw t.reason;
|
|
109
109
|
default:
|
|
110
|
-
switch (typeof t.status == "string" ? t.then(
|
|
110
|
+
switch (typeof t.status == "string" ? t.then(V, V) : (t.status = "pending", t.then(
|
|
111
111
|
function(o) {
|
|
112
112
|
t.status === "pending" && (t.status = "fulfilled", t.value = o);
|
|
113
113
|
},
|
|
@@ -123,7 +123,7 @@ function et() {
|
|
|
123
123
|
}
|
|
124
124
|
throw t;
|
|
125
125
|
}
|
|
126
|
-
function E(t, o, f, c,
|
|
126
|
+
function E(t, o, f, c, R) {
|
|
127
127
|
var S = typeof t;
|
|
128
128
|
(S === "undefined" || S === "boolean") && (t = null);
|
|
129
129
|
var m = !1;
|
|
@@ -138,57 +138,57 @@ function et() {
|
|
|
138
138
|
case "object":
|
|
139
139
|
switch (t.$$typeof) {
|
|
140
140
|
case n:
|
|
141
|
-
case
|
|
141
|
+
case u:
|
|
142
142
|
m = !0;
|
|
143
143
|
break;
|
|
144
|
-
case
|
|
144
|
+
case M:
|
|
145
145
|
return m = t._init, E(
|
|
146
146
|
m(t._payload),
|
|
147
147
|
o,
|
|
148
148
|
f,
|
|
149
149
|
c,
|
|
150
|
-
|
|
150
|
+
R
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
if (m)
|
|
155
|
-
return
|
|
156
|
-
return
|
|
157
|
-
})) :
|
|
158
|
-
|
|
159
|
-
f + (
|
|
155
|
+
return R = R(t), m = c === "" ? "." + re(t, 0) : c, X(R) ? (f = "", m != null && (f = m.replace(C, "$&/") + "/"), E(R, o, f, "", function(ne) {
|
|
156
|
+
return ne;
|
|
157
|
+
})) : R != null && (q(R) && (R = Y(
|
|
158
|
+
R,
|
|
159
|
+
f + (R.key == null || t && t.key === R.key ? "" : ("" + R.key).replace(
|
|
160
160
|
C,
|
|
161
161
|
"$&/"
|
|
162
162
|
) + "/") + m
|
|
163
|
-
)), o.push(
|
|
163
|
+
)), o.push(R)), 1;
|
|
164
164
|
m = 0;
|
|
165
165
|
var F = c === "" ? "." : c + ":";
|
|
166
|
-
if (
|
|
166
|
+
if (X(t))
|
|
167
167
|
for (var A = 0; A < t.length; A++)
|
|
168
|
-
c = t[A], S = F +
|
|
168
|
+
c = t[A], S = F + re(c, A), m += E(
|
|
169
169
|
c,
|
|
170
170
|
o,
|
|
171
171
|
f,
|
|
172
172
|
S,
|
|
173
|
-
|
|
173
|
+
R
|
|
174
174
|
);
|
|
175
|
-
else if (A =
|
|
175
|
+
else if (A = B(t), typeof A == "function")
|
|
176
176
|
for (t = A.call(t), A = 0; !(c = t.next()).done; )
|
|
177
|
-
c = c.value, S = F +
|
|
177
|
+
c = c.value, S = F + re(c, A++), m += E(
|
|
178
178
|
c,
|
|
179
179
|
o,
|
|
180
180
|
f,
|
|
181
181
|
S,
|
|
182
|
-
|
|
182
|
+
R
|
|
183
183
|
);
|
|
184
184
|
else if (S === "object") {
|
|
185
185
|
if (typeof t.then == "function")
|
|
186
186
|
return E(
|
|
187
|
-
|
|
187
|
+
l(t),
|
|
188
188
|
o,
|
|
189
189
|
f,
|
|
190
190
|
c,
|
|
191
|
-
|
|
191
|
+
R
|
|
192
192
|
);
|
|
193
193
|
throw o = String(t), Error(
|
|
194
194
|
"Objects are not valid as a React child (found: " + (o === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : o) + "). If you meant to render a collection of children, use an array instead."
|
|
@@ -196,14 +196,14 @@ function et() {
|
|
|
196
196
|
}
|
|
197
197
|
return m;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function w(t, o, f) {
|
|
200
200
|
if (t == null) return t;
|
|
201
|
-
var c = [],
|
|
201
|
+
var c = [], R = 0;
|
|
202
202
|
return E(t, c, "", "", function(S) {
|
|
203
|
-
return o.call(f, S,
|
|
203
|
+
return o.call(f, S, R++);
|
|
204
204
|
}), c;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function P(t) {
|
|
207
207
|
if (t._status === -1) {
|
|
208
208
|
var o = t._result;
|
|
209
209
|
o = o(), o.then(
|
|
@@ -218,7 +218,7 @@ function et() {
|
|
|
218
218
|
if (t._status === 1) return t._result.default;
|
|
219
219
|
throw t._result;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
221
|
+
var D = typeof reportError == "function" ? reportError : function(t) {
|
|
222
222
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
223
223
|
var o = new window.ErrorEvent("error", {
|
|
224
224
|
bubbles: !0,
|
|
@@ -236,9 +236,9 @@ function et() {
|
|
|
236
236
|
function ce() {
|
|
237
237
|
}
|
|
238
238
|
return p.Children = {
|
|
239
|
-
map:
|
|
239
|
+
map: w,
|
|
240
240
|
forEach: function(t, o, f) {
|
|
241
|
-
|
|
241
|
+
w(
|
|
242
242
|
t,
|
|
243
243
|
function() {
|
|
244
244
|
o.apply(this, arguments);
|
|
@@ -248,26 +248,26 @@ function et() {
|
|
|
248
248
|
},
|
|
249
249
|
count: function(t) {
|
|
250
250
|
var o = 0;
|
|
251
|
-
return
|
|
251
|
+
return w(t, function() {
|
|
252
252
|
o++;
|
|
253
253
|
}), o;
|
|
254
254
|
},
|
|
255
255
|
toArray: function(t) {
|
|
256
|
-
return
|
|
256
|
+
return w(t, function(o) {
|
|
257
257
|
return o;
|
|
258
258
|
}) || [];
|
|
259
259
|
},
|
|
260
260
|
only: function(t) {
|
|
261
|
-
if (!
|
|
261
|
+
if (!q(t))
|
|
262
262
|
throw Error(
|
|
263
263
|
"React.Children.only expected to receive a single React element child."
|
|
264
264
|
);
|
|
265
265
|
return t;
|
|
266
266
|
}
|
|
267
|
-
}, p.Component =
|
|
267
|
+
}, p.Component = U, p.Fragment = y, p.Profiler = T, p.PureComponent = x, p.StrictMode = v, p.Suspense = L, p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = b, p.__COMPILER_RUNTIME = {
|
|
268
268
|
__proto__: null,
|
|
269
269
|
c: function(t) {
|
|
270
|
-
return
|
|
270
|
+
return b.H.useMemoCache(t);
|
|
271
271
|
}
|
|
272
272
|
}, p.cache = function(t) {
|
|
273
273
|
return function() {
|
|
@@ -278,10 +278,10 @@ function et() {
|
|
|
278
278
|
throw Error(
|
|
279
279
|
"The argument must be a React element, but you passed " + t + "."
|
|
280
280
|
);
|
|
281
|
-
var c =
|
|
281
|
+
var c = K({}, t.props), R = t.key, S = void 0;
|
|
282
282
|
if (o != null)
|
|
283
|
-
for (m in o.ref !== void 0 && (S = void 0), o.key !== void 0 && (
|
|
284
|
-
!
|
|
283
|
+
for (m in o.ref !== void 0 && (S = void 0), o.key !== void 0 && (R = "" + o.key), o)
|
|
284
|
+
!Z.call(o, m) || m === "key" || m === "__self" || m === "__source" || m === "ref" && o.ref === void 0 || (c[m] = o[m]);
|
|
285
285
|
var m = arguments.length - 2;
|
|
286
286
|
if (m === 1) c.children = f;
|
|
287
287
|
else if (1 < m) {
|
|
@@ -289,111 +289,111 @@ function et() {
|
|
|
289
289
|
F[A] = arguments[A + 2];
|
|
290
290
|
c.children = F;
|
|
291
291
|
}
|
|
292
|
-
return
|
|
292
|
+
return J(t.type, R, void 0, void 0, S, c);
|
|
293
293
|
}, p.createContext = function(t) {
|
|
294
294
|
return t = {
|
|
295
|
-
$$typeof:
|
|
295
|
+
$$typeof: N,
|
|
296
296
|
_currentValue: t,
|
|
297
297
|
_currentValue2: t,
|
|
298
298
|
_threadCount: 0,
|
|
299
299
|
Provider: null,
|
|
300
300
|
Consumer: null
|
|
301
301
|
}, t.Provider = t, t.Consumer = {
|
|
302
|
-
$$typeof:
|
|
302
|
+
$$typeof: k,
|
|
303
303
|
_context: t
|
|
304
304
|
}, t;
|
|
305
305
|
}, p.createElement = function(t, o, f) {
|
|
306
|
-
var c,
|
|
306
|
+
var c, R = {}, S = null;
|
|
307
307
|
if (o != null)
|
|
308
308
|
for (c in o.key !== void 0 && (S = "" + o.key), o)
|
|
309
|
-
|
|
309
|
+
Z.call(o, c) && c !== "key" && c !== "__self" && c !== "__source" && (R[c] = o[c]);
|
|
310
310
|
var m = arguments.length - 2;
|
|
311
|
-
if (m === 1)
|
|
311
|
+
if (m === 1) R.children = f;
|
|
312
312
|
else if (1 < m) {
|
|
313
313
|
for (var F = Array(m), A = 0; A < m; A++)
|
|
314
314
|
F[A] = arguments[A + 2];
|
|
315
|
-
|
|
315
|
+
R.children = F;
|
|
316
316
|
}
|
|
317
317
|
if (t && t.defaultProps)
|
|
318
318
|
for (c in m = t.defaultProps, m)
|
|
319
|
-
|
|
320
|
-
return
|
|
319
|
+
R[c] === void 0 && (R[c] = m[c]);
|
|
320
|
+
return J(t, S, void 0, void 0, null, R);
|
|
321
321
|
}, p.createRef = function() {
|
|
322
322
|
return { current: null };
|
|
323
323
|
}, p.forwardRef = function(t) {
|
|
324
|
-
return { $$typeof:
|
|
325
|
-
}, p.isValidElement =
|
|
324
|
+
return { $$typeof: j, render: t };
|
|
325
|
+
}, p.isValidElement = q, p.lazy = function(t) {
|
|
326
326
|
return {
|
|
327
|
-
$$typeof:
|
|
327
|
+
$$typeof: M,
|
|
328
328
|
_payload: { _status: -1, _result: t },
|
|
329
|
-
_init:
|
|
329
|
+
_init: P
|
|
330
330
|
};
|
|
331
331
|
}, p.memo = function(t, o) {
|
|
332
332
|
return {
|
|
333
|
-
$$typeof:
|
|
333
|
+
$$typeof: $,
|
|
334
334
|
type: t,
|
|
335
335
|
compare: o === void 0 ? null : o
|
|
336
336
|
};
|
|
337
337
|
}, p.startTransition = function(t) {
|
|
338
|
-
var o =
|
|
339
|
-
|
|
338
|
+
var o = b.T, f = {};
|
|
339
|
+
b.T = f;
|
|
340
340
|
try {
|
|
341
|
-
var c = t(),
|
|
342
|
-
|
|
341
|
+
var c = t(), R = b.S;
|
|
342
|
+
R !== null && R(f, c), typeof c == "object" && c !== null && typeof c.then == "function" && c.then(ce, D);
|
|
343
343
|
} catch (S) {
|
|
344
|
-
|
|
344
|
+
D(S);
|
|
345
345
|
} finally {
|
|
346
|
-
|
|
346
|
+
b.T = o;
|
|
347
347
|
}
|
|
348
348
|
}, p.unstable_useCacheRefresh = function() {
|
|
349
|
-
return
|
|
349
|
+
return b.H.useCacheRefresh();
|
|
350
350
|
}, p.use = function(t) {
|
|
351
|
-
return
|
|
351
|
+
return b.H.use(t);
|
|
352
352
|
}, p.useActionState = function(t, o, f) {
|
|
353
|
-
return
|
|
353
|
+
return b.H.useActionState(t, o, f);
|
|
354
354
|
}, p.useCallback = function(t, o) {
|
|
355
|
-
return
|
|
355
|
+
return b.H.useCallback(t, o);
|
|
356
356
|
}, p.useContext = function(t) {
|
|
357
|
-
return
|
|
357
|
+
return b.H.useContext(t);
|
|
358
358
|
}, p.useDebugValue = function() {
|
|
359
359
|
}, p.useDeferredValue = function(t, o) {
|
|
360
|
-
return
|
|
360
|
+
return b.H.useDeferredValue(t, o);
|
|
361
361
|
}, p.useEffect = function(t, o, f) {
|
|
362
|
-
var c =
|
|
362
|
+
var c = b.H;
|
|
363
363
|
if (typeof f == "function")
|
|
364
364
|
throw Error(
|
|
365
365
|
"useEffect CRUD overload is not enabled in this build of React."
|
|
366
366
|
);
|
|
367
367
|
return c.useEffect(t, o);
|
|
368
368
|
}, p.useId = function() {
|
|
369
|
-
return
|
|
369
|
+
return b.H.useId();
|
|
370
370
|
}, p.useImperativeHandle = function(t, o, f) {
|
|
371
|
-
return
|
|
371
|
+
return b.H.useImperativeHandle(t, o, f);
|
|
372
372
|
}, p.useInsertionEffect = function(t, o) {
|
|
373
|
-
return
|
|
373
|
+
return b.H.useInsertionEffect(t, o);
|
|
374
374
|
}, p.useLayoutEffect = function(t, o) {
|
|
375
|
-
return
|
|
375
|
+
return b.H.useLayoutEffect(t, o);
|
|
376
376
|
}, p.useMemo = function(t, o) {
|
|
377
|
-
return
|
|
377
|
+
return b.H.useMemo(t, o);
|
|
378
378
|
}, p.useOptimistic = function(t, o) {
|
|
379
|
-
return
|
|
379
|
+
return b.H.useOptimistic(t, o);
|
|
380
380
|
}, p.useReducer = function(t, o, f) {
|
|
381
|
-
return
|
|
381
|
+
return b.H.useReducer(t, o, f);
|
|
382
382
|
}, p.useRef = function(t) {
|
|
383
|
-
return
|
|
383
|
+
return b.H.useRef(t);
|
|
384
384
|
}, p.useState = function(t) {
|
|
385
|
-
return
|
|
385
|
+
return b.H.useState(t);
|
|
386
386
|
}, p.useSyncExternalStore = function(t, o, f) {
|
|
387
|
-
return
|
|
387
|
+
return b.H.useSyncExternalStore(
|
|
388
388
|
t,
|
|
389
389
|
o,
|
|
390
390
|
f
|
|
391
391
|
);
|
|
392
392
|
}, p.useTransition = function() {
|
|
393
|
-
return
|
|
393
|
+
return b.H.useTransition();
|
|
394
394
|
}, p.version = "19.1.0", p;
|
|
395
395
|
}
|
|
396
|
-
var
|
|
396
|
+
var ae = { exports: {} };
|
|
397
397
|
/**
|
|
398
398
|
* @license React
|
|
399
399
|
* react.development.js
|
|
@@ -403,13 +403,13 @@ var se = { exports: {} };
|
|
|
403
403
|
* This source code is licensed under the MIT license found in the
|
|
404
404
|
* LICENSE file in the root directory of this source tree.
|
|
405
405
|
*/
|
|
406
|
-
|
|
407
|
-
var
|
|
408
|
-
function
|
|
409
|
-
return
|
|
406
|
+
ae.exports;
|
|
407
|
+
var Me;
|
|
408
|
+
function rt() {
|
|
409
|
+
return Me || (Me = 1, function(n, u) {
|
|
410
410
|
process.env.NODE_ENV !== "production" && function() {
|
|
411
|
-
function
|
|
412
|
-
Object.defineProperty(
|
|
411
|
+
function y(e, r) {
|
|
412
|
+
Object.defineProperty(k.prototype, e, {
|
|
413
413
|
get: function() {
|
|
414
414
|
console.warn(
|
|
415
415
|
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
@@ -419,47 +419,47 @@ function tt() {
|
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
return e === null || typeof e != "object" ? null : (e =
|
|
422
|
+
function v(e) {
|
|
423
|
+
return e === null || typeof e != "object" ? null : (e = _e && e[_e] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function T(e, r) {
|
|
426
426
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
427
|
-
var
|
|
428
|
-
|
|
427
|
+
var s = e + "." + r;
|
|
428
|
+
Ee[s] || (console.error(
|
|
429
429
|
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
430
430
|
r,
|
|
431
431
|
e
|
|
432
|
-
),
|
|
432
|
+
), Ee[s] = !0);
|
|
433
433
|
}
|
|
434
|
-
function
|
|
435
|
-
this.props = e, this.context = r, this.refs = he, this.updater =
|
|
434
|
+
function k(e, r, s) {
|
|
435
|
+
this.props = e, this.context = r, this.refs = he, this.updater = s || we;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function N() {
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
this.props = e, this.context = r, this.refs = he, this.updater =
|
|
439
|
+
function j(e, r, s) {
|
|
440
|
+
this.props = e, this.context = r, this.refs = he, this.updater = s || we;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function L(e) {
|
|
443
443
|
return "" + e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function $(e) {
|
|
446
446
|
try {
|
|
447
|
-
|
|
447
|
+
L(e);
|
|
448
448
|
var r = !1;
|
|
449
449
|
} catch {
|
|
450
450
|
r = !0;
|
|
451
451
|
}
|
|
452
452
|
if (r) {
|
|
453
453
|
r = console;
|
|
454
|
-
var
|
|
455
|
-
return
|
|
454
|
+
var s = r.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
455
|
+
return s.call(
|
|
456
456
|
r,
|
|
457
457
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
458
458
|
i
|
|
459
|
-
),
|
|
459
|
+
), L(e);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function M(e) {
|
|
463
463
|
if (e == null) return null;
|
|
464
464
|
if (typeof e == "function")
|
|
465
465
|
return e.$$typeof === ze ? null : e.displayName || e.name || null;
|
|
@@ -484,7 +484,7 @@ function tt() {
|
|
|
484
484
|
), e.$$typeof) {
|
|
485
485
|
case ce:
|
|
486
486
|
return "Portal";
|
|
487
|
-
case
|
|
487
|
+
case R:
|
|
488
488
|
return (e.displayName || "Context") + ".Provider";
|
|
489
489
|
case c:
|
|
490
490
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
@@ -492,69 +492,69 @@ function tt() {
|
|
|
492
492
|
var r = e.render;
|
|
493
493
|
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
494
494
|
case A:
|
|
495
|
-
return r = e.displayName || null, r !== null ? r :
|
|
496
|
-
case
|
|
495
|
+
return r = e.displayName || null, r !== null ? r : M(e.type) || "Memo";
|
|
496
|
+
case ne:
|
|
497
497
|
r = e._payload, e = e._init;
|
|
498
498
|
try {
|
|
499
|
-
return
|
|
499
|
+
return M(e(r));
|
|
500
500
|
} catch {
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
return null;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function W(e) {
|
|
506
506
|
if (e === t) return "<>";
|
|
507
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
507
|
+
if (typeof e == "object" && e !== null && e.$$typeof === ne)
|
|
508
508
|
return "<...>";
|
|
509
509
|
try {
|
|
510
|
-
var r =
|
|
510
|
+
var r = M(e);
|
|
511
511
|
return r ? "<" + r + ">" : "<...>";
|
|
512
512
|
} catch {
|
|
513
513
|
return "<...>";
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
var e =
|
|
516
|
+
function B() {
|
|
517
|
+
var e = g.A;
|
|
518
518
|
return e === null ? null : e.getOwner();
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Q() {
|
|
521
521
|
return Error("react-stack-top-frame");
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function K(e) {
|
|
524
524
|
if (le.call(e, "key")) {
|
|
525
525
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
526
526
|
if (r && r.isReactWarning) return !1;
|
|
527
527
|
}
|
|
528
528
|
return e.key !== void 0;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
function
|
|
532
|
-
|
|
530
|
+
function ee(e, r) {
|
|
531
|
+
function s() {
|
|
532
|
+
Oe || (Oe = !0, console.error(
|
|
533
533
|
"%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://react.dev/link/special-props)",
|
|
534
534
|
r
|
|
535
535
|
));
|
|
536
536
|
}
|
|
537
|
-
|
|
538
|
-
get:
|
|
537
|
+
s.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
538
|
+
get: s,
|
|
539
539
|
configurable: !0
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
|
-
function
|
|
543
|
-
var e =
|
|
544
|
-
return
|
|
542
|
+
function U() {
|
|
543
|
+
var e = M(this.type);
|
|
544
|
+
return Se[e] || (Se[e] = !0, console.error(
|
|
545
545
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
546
546
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
return
|
|
550
|
-
$$typeof:
|
|
548
|
+
function z(e, r, s, i, a, _, d, O) {
|
|
549
|
+
return s = _.ref, e = {
|
|
550
|
+
$$typeof: D,
|
|
551
551
|
type: e,
|
|
552
552
|
key: r,
|
|
553
|
-
props:
|
|
553
|
+
props: _,
|
|
554
554
|
_owner: a
|
|
555
|
-
}, (
|
|
555
|
+
}, (s !== void 0 ? s : null) !== null ? Object.defineProperty(e, "ref", {
|
|
556
556
|
enumerable: !1,
|
|
557
|
-
get:
|
|
557
|
+
get: U
|
|
558
558
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
559
559
|
configurable: !1,
|
|
560
560
|
enumerable: !1,
|
|
@@ -574,11 +574,11 @@ function tt() {
|
|
|
574
574
|
configurable: !1,
|
|
575
575
|
enumerable: !1,
|
|
576
576
|
writable: !0,
|
|
577
|
-
value:
|
|
577
|
+
value: O
|
|
578
578
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
579
579
|
}
|
|
580
|
-
function
|
|
581
|
-
return r =
|
|
580
|
+
function x(e, r) {
|
|
581
|
+
return r = z(
|
|
582
582
|
e.type,
|
|
583
583
|
r,
|
|
584
584
|
void 0,
|
|
@@ -589,28 +589,28 @@ function tt() {
|
|
|
589
589
|
e._debugTask
|
|
590
590
|
), e._store && (r._store.validated = e._store.validated), r;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
592
|
+
function I(e) {
|
|
593
|
+
return typeof e == "object" && e !== null && e.$$typeof === D;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function X(e) {
|
|
596
596
|
var r = { "=": "=0", ":": "=2" };
|
|
597
|
-
return "$" + e.replace(/[=:]/g, function(
|
|
598
|
-
return r[
|
|
597
|
+
return "$" + e.replace(/[=:]/g, function(s) {
|
|
598
|
+
return r[s];
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return typeof e == "object" && e !== null && e.key != null ? (
|
|
601
|
+
function b(e, r) {
|
|
602
|
+
return typeof e == "object" && e !== null && e.key != null ? ($(e.key), X("" + e.key)) : r.toString(36);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Z() {
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function J(e) {
|
|
607
607
|
switch (e.status) {
|
|
608
608
|
case "fulfilled":
|
|
609
609
|
return e.value;
|
|
610
610
|
case "rejected":
|
|
611
611
|
throw e.reason;
|
|
612
612
|
default:
|
|
613
|
-
switch (typeof e.status == "string" ? e.then(
|
|
613
|
+
switch (typeof e.status == "string" ? e.then(Z, Z) : (e.status = "pending", e.then(
|
|
614
614
|
function(r) {
|
|
615
615
|
e.status === "pending" && (e.status = "fulfilled", e.value = r);
|
|
616
616
|
},
|
|
@@ -626,13 +626,13 @@ function tt() {
|
|
|
626
626
|
}
|
|
627
627
|
throw e;
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
var
|
|
631
|
-
(
|
|
629
|
+
function Y(e, r, s, i, a) {
|
|
630
|
+
var _ = typeof e;
|
|
631
|
+
(_ === "undefined" || _ === "boolean") && (e = null);
|
|
632
632
|
var d = !1;
|
|
633
633
|
if (e === null) d = !0;
|
|
634
634
|
else
|
|
635
|
-
switch (
|
|
635
|
+
switch (_) {
|
|
636
636
|
case "bigint":
|
|
637
637
|
case "string":
|
|
638
638
|
case "number":
|
|
@@ -640,15 +640,15 @@ function tt() {
|
|
|
640
640
|
break;
|
|
641
641
|
case "object":
|
|
642
642
|
switch (e.$$typeof) {
|
|
643
|
-
case
|
|
643
|
+
case D:
|
|
644
644
|
case ce:
|
|
645
645
|
d = !0;
|
|
646
646
|
break;
|
|
647
|
-
case
|
|
648
|
-
return d = e._init,
|
|
647
|
+
case ne:
|
|
648
|
+
return d = e._init, Y(
|
|
649
649
|
d(e._payload),
|
|
650
650
|
r,
|
|
651
|
-
|
|
651
|
+
s,
|
|
652
652
|
i,
|
|
653
653
|
a
|
|
654
654
|
);
|
|
@@ -656,43 +656,43 @@ function tt() {
|
|
|
656
656
|
}
|
|
657
657
|
if (d) {
|
|
658
658
|
d = e, a = a(d);
|
|
659
|
-
var
|
|
660
|
-
return
|
|
661
|
-
return
|
|
662
|
-
})) : a != null && (
|
|
659
|
+
var O = i === "" ? "." + b(d, 0) : i;
|
|
660
|
+
return Te(a) ? (s = "", O != null && (s = O.replace(ke, "$&/") + "/"), Y(a, r, s, "", function(G) {
|
|
661
|
+
return G;
|
|
662
|
+
})) : a != null && (I(a) && (a.key != null && (d && d.key === a.key || $(a.key)), s = x(
|
|
663
663
|
a,
|
|
664
|
-
|
|
665
|
-
|
|
664
|
+
s + (a.key == null || d && d.key === a.key ? "" : ("" + a.key).replace(
|
|
665
|
+
ke,
|
|
666
666
|
"$&/"
|
|
667
|
-
) + "/") +
|
|
668
|
-
), i !== "" && d != null &&
|
|
667
|
+
) + "/") + O
|
|
668
|
+
), i !== "" && d != null && I(d) && d.key == null && d._store && !d._store.validated && (s._store.validated = 2), a = s), r.push(a)), 1;
|
|
669
669
|
}
|
|
670
|
-
if (d = 0,
|
|
671
|
-
for (var
|
|
672
|
-
i = e[
|
|
670
|
+
if (d = 0, O = i === "" ? "." : i + ":", Te(e))
|
|
671
|
+
for (var h = 0; h < e.length; h++)
|
|
672
|
+
i = e[h], _ = O + b(i, h), d += Y(
|
|
673
673
|
i,
|
|
674
674
|
r,
|
|
675
|
-
|
|
676
|
-
|
|
675
|
+
s,
|
|
676
|
+
_,
|
|
677
677
|
a
|
|
678
678
|
);
|
|
679
|
-
else if (
|
|
680
|
-
for (
|
|
679
|
+
else if (h = v(e), typeof h == "function")
|
|
680
|
+
for (h === e.entries && (Ae || console.warn(
|
|
681
681
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
682
|
-
),
|
|
683
|
-
i = i.value,
|
|
682
|
+
), Ae = !0), e = h.call(e), h = 0; !(i = e.next()).done; )
|
|
683
|
+
i = i.value, _ = O + b(i, h++), d += Y(
|
|
684
684
|
i,
|
|
685
685
|
r,
|
|
686
|
-
|
|
687
|
-
|
|
686
|
+
s,
|
|
687
|
+
_,
|
|
688
688
|
a
|
|
689
689
|
);
|
|
690
|
-
else if (
|
|
690
|
+
else if (_ === "object") {
|
|
691
691
|
if (typeof e.then == "function")
|
|
692
|
-
return
|
|
693
|
-
|
|
692
|
+
return Y(
|
|
693
|
+
J(e),
|
|
694
694
|
r,
|
|
695
|
-
|
|
695
|
+
s,
|
|
696
696
|
i,
|
|
697
697
|
a
|
|
698
698
|
);
|
|
@@ -702,22 +702,22 @@ function tt() {
|
|
|
702
702
|
}
|
|
703
703
|
return d;
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function q(e, r, s) {
|
|
706
706
|
if (e == null) return e;
|
|
707
707
|
var i = [], a = 0;
|
|
708
|
-
return
|
|
709
|
-
return r.call(
|
|
708
|
+
return Y(e, i, "", "", function(_) {
|
|
709
|
+
return r.call(s, _, a++);
|
|
710
710
|
}), i;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function te(e) {
|
|
713
713
|
if (e._status === -1) {
|
|
714
714
|
var r = e._result;
|
|
715
715
|
r = r(), r.then(
|
|
716
|
-
function(
|
|
717
|
-
(e._status === 0 || e._status === -1) && (e._status = 1, e._result =
|
|
716
|
+
function(s) {
|
|
717
|
+
(e._status === 0 || e._status === -1) && (e._status = 1, e._result = s);
|
|
718
718
|
},
|
|
719
|
-
function(
|
|
720
|
-
(e._status === 0 || e._status === -1) && (e._status = 2, e._result =
|
|
719
|
+
function(s) {
|
|
720
|
+
(e._status === 0 || e._status === -1) && (e._status = 2, e._result = s);
|
|
721
721
|
}
|
|
722
722
|
), e._status === -1 && (e._status = 0, e._result = r);
|
|
723
723
|
}
|
|
@@ -740,7 +740,7 @@ Your code should look like:
|
|
|
740
740
|
throw e._result;
|
|
741
741
|
}
|
|
742
742
|
function C() {
|
|
743
|
-
var e =
|
|
743
|
+
var e = g.H;
|
|
744
744
|
return e === null && console.error(
|
|
745
745
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
746
746
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
@@ -749,9 +749,9 @@ Your code should look like:
|
|
|
749
749
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
750
750
|
), e;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function re() {
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function V(e) {
|
|
755
755
|
if (pe === null)
|
|
756
756
|
try {
|
|
757
757
|
var r = ("require" + Math.random()).slice(0, 7);
|
|
@@ -761,7 +761,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
761
761
|
).setImmediate;
|
|
762
762
|
} catch {
|
|
763
763
|
pe = function(i) {
|
|
764
|
-
|
|
764
|
+
Pe === !1 && (Pe = !0, typeof MessageChannel > "u" && console.error(
|
|
765
765
|
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
766
766
|
));
|
|
767
767
|
var a = new MessageChannel();
|
|
@@ -770,7 +770,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
770
770
|
}
|
|
771
771
|
return pe(e);
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function l(e) {
|
|
774
774
|
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
775
775
|
}
|
|
776
776
|
function E(e, r) {
|
|
@@ -778,73 +778,73 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
778
778
|
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
779
779
|
), de = r;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
782
|
-
var i =
|
|
781
|
+
function w(e, r, s) {
|
|
782
|
+
var i = g.actQueue;
|
|
783
783
|
if (i !== null)
|
|
784
784
|
if (i.length !== 0)
|
|
785
785
|
try {
|
|
786
|
-
|
|
787
|
-
return
|
|
786
|
+
P(i), V(function() {
|
|
787
|
+
return w(e, r, s);
|
|
788
788
|
});
|
|
789
789
|
return;
|
|
790
790
|
} catch (a) {
|
|
791
|
-
|
|
791
|
+
g.thrownErrors.push(a);
|
|
792
792
|
}
|
|
793
|
-
else
|
|
794
|
-
0 <
|
|
793
|
+
else g.actQueue = null;
|
|
794
|
+
0 < g.thrownErrors.length ? (i = l(g.thrownErrors), g.thrownErrors.length = 0, s(i)) : r(e);
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function P(e) {
|
|
797
797
|
if (!ve) {
|
|
798
798
|
ve = !0;
|
|
799
799
|
var r = 0;
|
|
800
800
|
try {
|
|
801
801
|
for (; r < e.length; r++) {
|
|
802
|
-
var
|
|
802
|
+
var s = e[r];
|
|
803
803
|
do {
|
|
804
|
-
|
|
805
|
-
var i =
|
|
804
|
+
g.didUsePromise = !1;
|
|
805
|
+
var i = s(!1);
|
|
806
806
|
if (i !== null) {
|
|
807
|
-
if (
|
|
808
|
-
e[r] =
|
|
807
|
+
if (g.didUsePromise) {
|
|
808
|
+
e[r] = s, e.splice(0, r);
|
|
809
809
|
return;
|
|
810
810
|
}
|
|
811
|
-
|
|
811
|
+
s = i;
|
|
812
812
|
} else break;
|
|
813
813
|
} while (!0);
|
|
814
814
|
}
|
|
815
815
|
e.length = 0;
|
|
816
816
|
} catch (a) {
|
|
817
|
-
e.splice(0, r + 1),
|
|
817
|
+
e.splice(0, r + 1), g.thrownErrors.push(a);
|
|
818
818
|
} finally {
|
|
819
819
|
ve = !1;
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
823
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
824
|
-
var
|
|
824
|
+
var D = Symbol.for("react.transitional.element"), ce = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), R = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), F = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), ne = Symbol.for("react.lazy"), We = Symbol.for("react.activity"), _e = Symbol.iterator, Ee = {}, we = {
|
|
825
825
|
isMounted: function() {
|
|
826
826
|
return !1;
|
|
827
827
|
},
|
|
828
828
|
enqueueForceUpdate: function(e) {
|
|
829
|
-
|
|
829
|
+
T(e, "forceUpdate");
|
|
830
830
|
},
|
|
831
831
|
enqueueReplaceState: function(e) {
|
|
832
|
-
|
|
832
|
+
T(e, "replaceState");
|
|
833
833
|
},
|
|
834
834
|
enqueueSetState: function(e) {
|
|
835
|
-
|
|
835
|
+
T(e, "setState");
|
|
836
836
|
}
|
|
837
|
-
},
|
|
838
|
-
Object.freeze(he),
|
|
837
|
+
}, Re = Object.assign, he = {};
|
|
838
|
+
Object.freeze(he), k.prototype.isReactComponent = {}, k.prototype.setState = function(e, r) {
|
|
839
839
|
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
840
840
|
throw Error(
|
|
841
841
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
842
842
|
);
|
|
843
843
|
this.updater.enqueueSetState(this, e, r, "setState");
|
|
844
|
-
},
|
|
844
|
+
}, k.prototype.forceUpdate = function(e) {
|
|
845
845
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
846
846
|
};
|
|
847
|
-
var
|
|
847
|
+
var H = {
|
|
848
848
|
isMounted: [
|
|
849
849
|
"isMounted",
|
|
850
850
|
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
@@ -854,10 +854,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
854
854
|
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
855
855
|
]
|
|
856
856
|
}, fe;
|
|
857
|
-
for (fe in
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
var
|
|
857
|
+
for (fe in H)
|
|
858
|
+
H.hasOwnProperty(fe) && y(fe, H[fe]);
|
|
859
|
+
N.prototype = k.prototype, H = j.prototype = new N(), H.constructor = j, Re(H, k.prototype), H.isPureReactComponent = !0;
|
|
860
|
+
var Te = Array.isArray, ze = Symbol.for("react.client.reference"), g = {
|
|
861
861
|
H: null,
|
|
862
862
|
A: null,
|
|
863
863
|
T: null,
|
|
@@ -870,15 +870,15 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
870
870
|
thrownErrors: [],
|
|
871
871
|
getCurrentStack: null,
|
|
872
872
|
recentlyCreatedOwnerStacks: 0
|
|
873
|
-
}, le = Object.prototype.hasOwnProperty,
|
|
873
|
+
}, le = Object.prototype.hasOwnProperty, be = console.createTask ? console.createTask : function() {
|
|
874
874
|
return null;
|
|
875
875
|
};
|
|
876
|
-
|
|
876
|
+
H = {
|
|
877
877
|
"react-stack-bottom-frame": function(e) {
|
|
878
878
|
return e();
|
|
879
879
|
}
|
|
880
880
|
};
|
|
881
|
-
var Ce, Se
|
|
881
|
+
var Oe, Ce, Se = {}, xe = H["react-stack-bottom-frame"].bind(H, Q)(), Ve = be(W(Q)), Ae = !1, ke = /\/+/g, je = typeof reportError == "function" ? reportError : function(e) {
|
|
882
882
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
883
883
|
var r = new window.ErrorEvent("error", {
|
|
884
884
|
bubbles: !0,
|
|
@@ -892,126 +892,126 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
892
892
|
return;
|
|
893
893
|
}
|
|
894
894
|
console.error(e);
|
|
895
|
-
},
|
|
895
|
+
}, Pe = !1, pe = null, de = 0, me = !1, ve = !1, Ne = typeof queueMicrotask == "function" ? function(e) {
|
|
896
896
|
queueMicrotask(function() {
|
|
897
897
|
return queueMicrotask(e);
|
|
898
898
|
});
|
|
899
|
-
} :
|
|
900
|
-
|
|
899
|
+
} : V;
|
|
900
|
+
H = Object.freeze({
|
|
901
901
|
__proto__: null,
|
|
902
902
|
c: function(e) {
|
|
903
903
|
return C().useMemoCache(e);
|
|
904
904
|
}
|
|
905
|
-
}),
|
|
906
|
-
map:
|
|
907
|
-
forEach: function(e, r,
|
|
908
|
-
|
|
905
|
+
}), u.Children = {
|
|
906
|
+
map: q,
|
|
907
|
+
forEach: function(e, r, s) {
|
|
908
|
+
q(
|
|
909
909
|
e,
|
|
910
910
|
function() {
|
|
911
911
|
r.apply(this, arguments);
|
|
912
912
|
},
|
|
913
|
-
|
|
913
|
+
s
|
|
914
914
|
);
|
|
915
915
|
},
|
|
916
916
|
count: function(e) {
|
|
917
917
|
var r = 0;
|
|
918
|
-
return
|
|
918
|
+
return q(e, function() {
|
|
919
919
|
r++;
|
|
920
920
|
}), r;
|
|
921
921
|
},
|
|
922
922
|
toArray: function(e) {
|
|
923
|
-
return
|
|
923
|
+
return q(e, function(r) {
|
|
924
924
|
return r;
|
|
925
925
|
}) || [];
|
|
926
926
|
},
|
|
927
927
|
only: function(e) {
|
|
928
|
-
if (
|
|
928
|
+
if (!I(e))
|
|
929
929
|
throw Error(
|
|
930
930
|
"React.Children.only expected to receive a single React element child."
|
|
931
931
|
);
|
|
932
932
|
return e;
|
|
933
933
|
}
|
|
934
|
-
},
|
|
935
|
-
var r =
|
|
934
|
+
}, u.Component = k, u.Fragment = t, u.Profiler = f, u.PureComponent = j, u.StrictMode = o, u.Suspense = m, u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = g, u.__COMPILER_RUNTIME = H, u.act = function(e) {
|
|
935
|
+
var r = g.actQueue, s = de;
|
|
936
936
|
de++;
|
|
937
|
-
var i =
|
|
937
|
+
var i = g.actQueue = r !== null ? r : [], a = !1;
|
|
938
938
|
try {
|
|
939
|
-
var
|
|
940
|
-
} catch (
|
|
941
|
-
|
|
939
|
+
var _ = e();
|
|
940
|
+
} catch (h) {
|
|
941
|
+
g.thrownErrors.push(h);
|
|
942
942
|
}
|
|
943
|
-
if (0 <
|
|
944
|
-
throw E(r,
|
|
945
|
-
if (
|
|
946
|
-
var d =
|
|
947
|
-
return
|
|
943
|
+
if (0 < g.thrownErrors.length)
|
|
944
|
+
throw E(r, s), e = l(g.thrownErrors), g.thrownErrors.length = 0, e;
|
|
945
|
+
if (_ !== null && typeof _ == "object" && typeof _.then == "function") {
|
|
946
|
+
var d = _;
|
|
947
|
+
return Ne(function() {
|
|
948
948
|
a || me || (me = !0, console.error(
|
|
949
949
|
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
950
950
|
));
|
|
951
951
|
}), {
|
|
952
|
-
then: function(
|
|
952
|
+
then: function(h, G) {
|
|
953
953
|
a = !0, d.then(
|
|
954
|
-
function(
|
|
955
|
-
if (E(r,
|
|
954
|
+
function(oe) {
|
|
955
|
+
if (E(r, s), s === 0) {
|
|
956
956
|
try {
|
|
957
|
-
|
|
958
|
-
return
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
957
|
+
P(i), V(function() {
|
|
958
|
+
return w(
|
|
959
|
+
oe,
|
|
960
|
+
h,
|
|
961
|
+
G
|
|
962
962
|
);
|
|
963
963
|
});
|
|
964
964
|
} catch (Be) {
|
|
965
|
-
|
|
965
|
+
g.thrownErrors.push(Be);
|
|
966
966
|
}
|
|
967
|
-
if (0 <
|
|
968
|
-
var Ge =
|
|
969
|
-
|
|
967
|
+
if (0 < g.thrownErrors.length) {
|
|
968
|
+
var Ge = l(
|
|
969
|
+
g.thrownErrors
|
|
970
970
|
);
|
|
971
|
-
|
|
971
|
+
g.thrownErrors.length = 0, G(Ge);
|
|
972
972
|
}
|
|
973
|
-
} else
|
|
973
|
+
} else h(oe);
|
|
974
974
|
},
|
|
975
|
-
function(
|
|
976
|
-
E(r,
|
|
977
|
-
|
|
978
|
-
),
|
|
975
|
+
function(oe) {
|
|
976
|
+
E(r, s), 0 < g.thrownErrors.length && (oe = l(
|
|
977
|
+
g.thrownErrors
|
|
978
|
+
), g.thrownErrors.length = 0), G(oe);
|
|
979
979
|
}
|
|
980
980
|
);
|
|
981
981
|
}
|
|
982
982
|
};
|
|
983
983
|
}
|
|
984
|
-
var
|
|
985
|
-
if (E(r,
|
|
984
|
+
var O = _;
|
|
985
|
+
if (E(r, s), s === 0 && (P(i), i.length !== 0 && Ne(function() {
|
|
986
986
|
a || me || (me = !0, console.error(
|
|
987
987
|
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
988
988
|
));
|
|
989
|
-
}),
|
|
990
|
-
throw e =
|
|
989
|
+
}), g.actQueue = null), 0 < g.thrownErrors.length)
|
|
990
|
+
throw e = l(g.thrownErrors), g.thrownErrors.length = 0, e;
|
|
991
991
|
return {
|
|
992
|
-
then: function(
|
|
993
|
-
a = !0,
|
|
994
|
-
return
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
992
|
+
then: function(h, G) {
|
|
993
|
+
a = !0, s === 0 ? (g.actQueue = i, V(function() {
|
|
994
|
+
return w(
|
|
995
|
+
O,
|
|
996
|
+
h,
|
|
997
|
+
G
|
|
998
998
|
);
|
|
999
|
-
})) :
|
|
999
|
+
})) : h(O);
|
|
1000
1000
|
}
|
|
1001
1001
|
};
|
|
1002
|
-
},
|
|
1002
|
+
}, u.cache = function(e) {
|
|
1003
1003
|
return function() {
|
|
1004
1004
|
return e.apply(null, arguments);
|
|
1005
1005
|
};
|
|
1006
|
-
},
|
|
1007
|
-
var e =
|
|
1006
|
+
}, u.captureOwnerStack = function() {
|
|
1007
|
+
var e = g.getCurrentStack;
|
|
1008
1008
|
return e === null ? null : e();
|
|
1009
|
-
},
|
|
1009
|
+
}, u.cloneElement = function(e, r, s) {
|
|
1010
1010
|
if (e == null)
|
|
1011
1011
|
throw Error(
|
|
1012
1012
|
"The argument must be a React element, but you passed " + e + "."
|
|
1013
1013
|
);
|
|
1014
|
-
var i =
|
|
1014
|
+
var i = Re({}, e.props), a = e.key, _ = e._owner;
|
|
1015
1015
|
if (r != null) {
|
|
1016
1016
|
var d;
|
|
1017
1017
|
e: {
|
|
@@ -1024,33 +1024,33 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1024
1024
|
}
|
|
1025
1025
|
d = r.ref !== void 0;
|
|
1026
1026
|
}
|
|
1027
|
-
d && (
|
|
1028
|
-
for (
|
|
1029
|
-
!le.call(r,
|
|
1027
|
+
d && (_ = B()), K(r) && ($(r.key), a = "" + r.key);
|
|
1028
|
+
for (O in r)
|
|
1029
|
+
!le.call(r, O) || O === "key" || O === "__self" || O === "__source" || O === "ref" && r.ref === void 0 || (i[O] = r[O]);
|
|
1030
1030
|
}
|
|
1031
|
-
var
|
|
1032
|
-
if (
|
|
1033
|
-
else if (1 <
|
|
1034
|
-
d = Array(
|
|
1035
|
-
for (var
|
|
1036
|
-
d[
|
|
1031
|
+
var O = arguments.length - 2;
|
|
1032
|
+
if (O === 1) i.children = s;
|
|
1033
|
+
else if (1 < O) {
|
|
1034
|
+
d = Array(O);
|
|
1035
|
+
for (var h = 0; h < O; h++)
|
|
1036
|
+
d[h] = arguments[h + 2];
|
|
1037
1037
|
i.children = d;
|
|
1038
1038
|
}
|
|
1039
|
-
for (i =
|
|
1039
|
+
for (i = z(
|
|
1040
1040
|
e.type,
|
|
1041
1041
|
a,
|
|
1042
1042
|
void 0,
|
|
1043
1043
|
void 0,
|
|
1044
|
-
|
|
1044
|
+
_,
|
|
1045
1045
|
i,
|
|
1046
1046
|
e._debugStack,
|
|
1047
1047
|
e._debugTask
|
|
1048
1048
|
), a = 2; a < arguments.length; a++)
|
|
1049
|
-
|
|
1049
|
+
_ = arguments[a], I(_) && _._store && (_._store.validated = 1);
|
|
1050
1050
|
return i;
|
|
1051
|
-
},
|
|
1051
|
+
}, u.createContext = function(e) {
|
|
1052
1052
|
return e = {
|
|
1053
|
-
$$typeof:
|
|
1053
|
+
$$typeof: R,
|
|
1054
1054
|
_currentValue: e,
|
|
1055
1055
|
_currentValue2: e,
|
|
1056
1056
|
_threadCount: 0,
|
|
@@ -1060,45 +1060,45 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1060
1060
|
$$typeof: c,
|
|
1061
1061
|
_context: e
|
|
1062
1062
|
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1063
|
-
},
|
|
1063
|
+
}, u.createElement = function(e, r, s) {
|
|
1064
1064
|
for (var i = 2; i < arguments.length; i++) {
|
|
1065
1065
|
var a = arguments[i];
|
|
1066
|
-
|
|
1066
|
+
I(a) && a._store && (a._store.validated = 1);
|
|
1067
1067
|
}
|
|
1068
1068
|
if (i = {}, a = null, r != null)
|
|
1069
|
-
for (
|
|
1069
|
+
for (h in Ce || !("__self" in r) || "key" in r || (Ce = !0, console.warn(
|
|
1070
1070
|
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1071
|
-
)),
|
|
1072
|
-
le.call(r,
|
|
1073
|
-
var
|
|
1074
|
-
if (
|
|
1075
|
-
else if (1 <
|
|
1076
|
-
for (var d = Array(
|
|
1077
|
-
d[
|
|
1071
|
+
)), K(r) && ($(r.key), a = "" + r.key), r)
|
|
1072
|
+
le.call(r, h) && h !== "key" && h !== "__self" && h !== "__source" && (i[h] = r[h]);
|
|
1073
|
+
var _ = arguments.length - 2;
|
|
1074
|
+
if (_ === 1) i.children = s;
|
|
1075
|
+
else if (1 < _) {
|
|
1076
|
+
for (var d = Array(_), O = 0; O < _; O++)
|
|
1077
|
+
d[O] = arguments[O + 2];
|
|
1078
1078
|
Object.freeze && Object.freeze(d), i.children = d;
|
|
1079
1079
|
}
|
|
1080
1080
|
if (e && e.defaultProps)
|
|
1081
|
-
for (
|
|
1082
|
-
i[
|
|
1083
|
-
a &&
|
|
1081
|
+
for (h in _ = e.defaultProps, _)
|
|
1082
|
+
i[h] === void 0 && (i[h] = _[h]);
|
|
1083
|
+
a && ee(
|
|
1084
1084
|
i,
|
|
1085
1085
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
1086
1086
|
);
|
|
1087
|
-
var
|
|
1088
|
-
return
|
|
1087
|
+
var h = 1e4 > g.recentlyCreatedOwnerStacks++;
|
|
1088
|
+
return z(
|
|
1089
1089
|
e,
|
|
1090
1090
|
a,
|
|
1091
1091
|
void 0,
|
|
1092
1092
|
void 0,
|
|
1093
|
-
|
|
1093
|
+
B(),
|
|
1094
1094
|
i,
|
|
1095
|
-
|
|
1096
|
-
|
|
1095
|
+
h ? Error("react-stack-top-frame") : xe,
|
|
1096
|
+
h ? be(W(e)) : Ve
|
|
1097
1097
|
);
|
|
1098
|
-
},
|
|
1098
|
+
}, u.createRef = function() {
|
|
1099
1099
|
var e = { current: null };
|
|
1100
1100
|
return Object.seal(e), e;
|
|
1101
|
-
},
|
|
1101
|
+
}, u.forwardRef = function(e) {
|
|
1102
1102
|
e != null && e.$$typeof === A ? console.error(
|
|
1103
1103
|
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1104
1104
|
) : typeof e != "function" ? console.error(
|
|
@@ -1110,24 +1110,24 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1110
1110
|
), e != null && e.defaultProps != null && console.error(
|
|
1111
1111
|
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1112
1112
|
);
|
|
1113
|
-
var r = { $$typeof: S, render: e },
|
|
1113
|
+
var r = { $$typeof: S, render: e }, s;
|
|
1114
1114
|
return Object.defineProperty(r, "displayName", {
|
|
1115
1115
|
enumerable: !1,
|
|
1116
1116
|
configurable: !0,
|
|
1117
1117
|
get: function() {
|
|
1118
|
-
return
|
|
1118
|
+
return s;
|
|
1119
1119
|
},
|
|
1120
1120
|
set: function(i) {
|
|
1121
|
-
|
|
1121
|
+
s = i, e.name || e.displayName || (Object.defineProperty(e, "name", { value: i }), e.displayName = i);
|
|
1122
1122
|
}
|
|
1123
1123
|
}), r;
|
|
1124
|
-
},
|
|
1124
|
+
}, u.isValidElement = I, u.lazy = function(e) {
|
|
1125
1125
|
return {
|
|
1126
|
-
$$typeof:
|
|
1126
|
+
$$typeof: ne,
|
|
1127
1127
|
_payload: { _status: -1, _result: e },
|
|
1128
|
-
_init:
|
|
1128
|
+
_init: te
|
|
1129
1129
|
};
|
|
1130
|
-
},
|
|
1130
|
+
}, u.memo = function(e, r) {
|
|
1131
1131
|
e == null && console.error(
|
|
1132
1132
|
"memo: The first argument must be a component. Instead received: %s",
|
|
1133
1133
|
e === null ? "null" : typeof e
|
|
@@ -1136,269 +1136,292 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1136
1136
|
type: e,
|
|
1137
1137
|
compare: r === void 0 ? null : r
|
|
1138
1138
|
};
|
|
1139
|
-
var
|
|
1139
|
+
var s;
|
|
1140
1140
|
return Object.defineProperty(r, "displayName", {
|
|
1141
1141
|
enumerable: !1,
|
|
1142
1142
|
configurable: !0,
|
|
1143
1143
|
get: function() {
|
|
1144
|
-
return
|
|
1144
|
+
return s;
|
|
1145
1145
|
},
|
|
1146
1146
|
set: function(i) {
|
|
1147
|
-
|
|
1147
|
+
s = i, e.name || e.displayName || (Object.defineProperty(e, "name", { value: i }), e.displayName = i);
|
|
1148
1148
|
}
|
|
1149
1149
|
}), r;
|
|
1150
|
-
},
|
|
1151
|
-
var r =
|
|
1152
|
-
|
|
1150
|
+
}, u.startTransition = function(e) {
|
|
1151
|
+
var r = g.T, s = {};
|
|
1152
|
+
g.T = s, s._updatedFibers = /* @__PURE__ */ new Set();
|
|
1153
1153
|
try {
|
|
1154
|
-
var i = e(), a =
|
|
1155
|
-
a !== null && a(
|
|
1156
|
-
} catch (
|
|
1157
|
-
je(
|
|
1154
|
+
var i = e(), a = g.S;
|
|
1155
|
+
a !== null && a(s, i), typeof i == "object" && i !== null && typeof i.then == "function" && i.then(re, je);
|
|
1156
|
+
} catch (_) {
|
|
1157
|
+
je(_);
|
|
1158
1158
|
} finally {
|
|
1159
|
-
r === null &&
|
|
1159
|
+
r === null && s._updatedFibers && (e = s._updatedFibers.size, s._updatedFibers.clear(), 10 < e && console.warn(
|
|
1160
1160
|
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1161
|
-
)),
|
|
1161
|
+
)), g.T = r;
|
|
1162
1162
|
}
|
|
1163
|
-
},
|
|
1163
|
+
}, u.unstable_useCacheRefresh = function() {
|
|
1164
1164
|
return C().useCacheRefresh();
|
|
1165
|
-
},
|
|
1165
|
+
}, u.use = function(e) {
|
|
1166
1166
|
return C().use(e);
|
|
1167
|
-
},
|
|
1167
|
+
}, u.useActionState = function(e, r, s) {
|
|
1168
1168
|
return C().useActionState(
|
|
1169
1169
|
e,
|
|
1170
1170
|
r,
|
|
1171
|
-
|
|
1171
|
+
s
|
|
1172
1172
|
);
|
|
1173
|
-
},
|
|
1173
|
+
}, u.useCallback = function(e, r) {
|
|
1174
1174
|
return C().useCallback(e, r);
|
|
1175
|
-
},
|
|
1175
|
+
}, u.useContext = function(e) {
|
|
1176
1176
|
var r = C();
|
|
1177
1177
|
return e.$$typeof === c && console.error(
|
|
1178
1178
|
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1179
1179
|
), r.useContext(e);
|
|
1180
|
-
},
|
|
1180
|
+
}, u.useDebugValue = function(e, r) {
|
|
1181
1181
|
return C().useDebugValue(e, r);
|
|
1182
|
-
},
|
|
1182
|
+
}, u.useDeferredValue = function(e, r) {
|
|
1183
1183
|
return C().useDeferredValue(e, r);
|
|
1184
|
-
},
|
|
1184
|
+
}, u.useEffect = function(e, r, s) {
|
|
1185
1185
|
e == null && console.warn(
|
|
1186
1186
|
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1187
1187
|
);
|
|
1188
1188
|
var i = C();
|
|
1189
|
-
if (typeof
|
|
1189
|
+
if (typeof s == "function")
|
|
1190
1190
|
throw Error(
|
|
1191
1191
|
"useEffect CRUD overload is not enabled in this build of React."
|
|
1192
1192
|
);
|
|
1193
1193
|
return i.useEffect(e, r);
|
|
1194
|
-
},
|
|
1194
|
+
}, u.useId = function() {
|
|
1195
1195
|
return C().useId();
|
|
1196
|
-
},
|
|
1197
|
-
return C().useImperativeHandle(e, r,
|
|
1198
|
-
},
|
|
1196
|
+
}, u.useImperativeHandle = function(e, r, s) {
|
|
1197
|
+
return C().useImperativeHandle(e, r, s);
|
|
1198
|
+
}, u.useInsertionEffect = function(e, r) {
|
|
1199
1199
|
return e == null && console.warn(
|
|
1200
1200
|
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1201
1201
|
), C().useInsertionEffect(e, r);
|
|
1202
|
-
},
|
|
1202
|
+
}, u.useLayoutEffect = function(e, r) {
|
|
1203
1203
|
return e == null && console.warn(
|
|
1204
1204
|
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1205
1205
|
), C().useLayoutEffect(e, r);
|
|
1206
|
-
},
|
|
1206
|
+
}, u.useMemo = function(e, r) {
|
|
1207
1207
|
return C().useMemo(e, r);
|
|
1208
|
-
},
|
|
1208
|
+
}, u.useOptimistic = function(e, r) {
|
|
1209
1209
|
return C().useOptimistic(e, r);
|
|
1210
|
-
},
|
|
1211
|
-
return C().useReducer(e, r,
|
|
1212
|
-
},
|
|
1210
|
+
}, u.useReducer = function(e, r, s) {
|
|
1211
|
+
return C().useReducer(e, r, s);
|
|
1212
|
+
}, u.useRef = function(e) {
|
|
1213
1213
|
return C().useRef(e);
|
|
1214
|
-
},
|
|
1214
|
+
}, u.useState = function(e) {
|
|
1215
1215
|
return C().useState(e);
|
|
1216
|
-
},
|
|
1216
|
+
}, u.useSyncExternalStore = function(e, r, s) {
|
|
1217
1217
|
return C().useSyncExternalStore(
|
|
1218
1218
|
e,
|
|
1219
1219
|
r,
|
|
1220
|
-
|
|
1220
|
+
s
|
|
1221
1221
|
);
|
|
1222
|
-
},
|
|
1222
|
+
}, u.useTransition = function() {
|
|
1223
1223
|
return C().useTransition();
|
|
1224
|
-
},
|
|
1224
|
+
}, u.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1225
1225
|
}();
|
|
1226
|
-
}(
|
|
1226
|
+
}(ae, ae.exports)), ae.exports;
|
|
1227
1227
|
}
|
|
1228
|
-
var
|
|
1229
|
-
function
|
|
1230
|
-
return
|
|
1228
|
+
var $e;
|
|
1229
|
+
function nt() {
|
|
1230
|
+
return $e || ($e = 1, process.env.NODE_ENV === "production" ? ye.exports = tt() : ye.exports = rt()), ye.exports;
|
|
1231
1231
|
}
|
|
1232
|
-
var
|
|
1233
|
-
const
|
|
1234
|
-
var
|
|
1235
|
-
const
|
|
1236
|
-
var Ue = (n) => !Ye(n) && !Array.isArray(n) &&
|
|
1237
|
-
if (!
|
|
1238
|
-
return
|
|
1239
|
-
const
|
|
1240
|
-
return
|
|
1241
|
-
},
|
|
1242
|
-
let
|
|
1243
|
-
const
|
|
1244
|
-
for (; ++
|
|
1245
|
-
const
|
|
1246
|
-
let
|
|
1247
|
-
if (
|
|
1248
|
-
const
|
|
1249
|
-
|
|
1232
|
+
var ot = nt();
|
|
1233
|
+
const ut = /* @__PURE__ */ et(ot);
|
|
1234
|
+
var st = (n) => n instanceof Date, Ye = (n) => n == null;
|
|
1235
|
+
const it = (n) => typeof n == "object";
|
|
1236
|
+
var Ue = (n) => !Ye(n) && !Array.isArray(n) && it(n) && !st(n), qe = (n) => Array.isArray(n) ? n.filter(Boolean) : [], Ie = (n) => n === void 0, se = (n, u, y) => {
|
|
1237
|
+
if (!u || !Ue(n))
|
|
1238
|
+
return y;
|
|
1239
|
+
const v = qe(u.split(/[,[\].]+?/)).reduce((T, k) => Ye(T) ? T : T[k], n);
|
|
1240
|
+
return Ie(v) || v === n ? Ie(n[u]) ? y : n[u] : v;
|
|
1241
|
+
}, at = (n) => /^\w*$/.test(n), ct = (n) => qe(n.replace(/["|']|\]/g, "").split(/\.|\[/)), De = (n, u, y) => {
|
|
1242
|
+
let v = -1;
|
|
1243
|
+
const T = at(u) ? [u] : ct(u), k = T.length, N = k - 1;
|
|
1244
|
+
for (; ++v < k; ) {
|
|
1245
|
+
const j = T[v];
|
|
1246
|
+
let L = y;
|
|
1247
|
+
if (v !== N) {
|
|
1248
|
+
const $ = n[j];
|
|
1249
|
+
L = Ue($) || Array.isArray($) ? $ : isNaN(+T[v + 1]) ? {} : [];
|
|
1250
1250
|
}
|
|
1251
|
-
if (
|
|
1251
|
+
if (j === "__proto__" || j === "constructor" || j === "prototype")
|
|
1252
1252
|
return;
|
|
1253
|
-
n[
|
|
1253
|
+
n[j] = L, n = n[j];
|
|
1254
1254
|
}
|
|
1255
1255
|
};
|
|
1256
|
-
|
|
1257
|
-
const
|
|
1258
|
-
const
|
|
1259
|
-
if (
|
|
1260
|
-
return { type: "required", message:
|
|
1261
|
-
if (
|
|
1262
|
-
return { type: "min", message:
|
|
1263
|
-
if (
|
|
1264
|
-
return { type: "max", message:
|
|
1265
|
-
if (
|
|
1266
|
-
return { type: "minLength", message:
|
|
1267
|
-
if (
|
|
1268
|
-
return { type: "maxLength", message:
|
|
1269
|
-
if (
|
|
1270
|
-
return { type: "pattern", message:
|
|
1271
|
-
if (
|
|
1272
|
-
const
|
|
1273
|
-
if (
|
|
1256
|
+
ut.createContext(null);
|
|
1257
|
+
const ie = (n) => n instanceof RegExp || typeof n == "string" || typeof n == "number" ? n : n.value, ue = (n) => typeof n == "string" ? n : typeof n.message == "string" ? n.message : "", ft = (n, u, y = {}) => {
|
|
1258
|
+
const v = se(n, u);
|
|
1259
|
+
if (y.required && !v)
|
|
1260
|
+
return { type: "required", message: ue(y.required) };
|
|
1261
|
+
if (y.min && Number(v) < Number(ie(y.min)))
|
|
1262
|
+
return { type: "min", message: ue(y.min) };
|
|
1263
|
+
if (y.max && Number(v) > Number(ie(y.max)))
|
|
1264
|
+
return { type: "max", message: ue(y.max) };
|
|
1265
|
+
if (y.minLength && v.length < ie(y.minLength))
|
|
1266
|
+
return { type: "minLength", message: ue(y.minLength) };
|
|
1267
|
+
if (y.maxLength && v.length > ie(y.maxLength))
|
|
1268
|
+
return { type: "maxLength", message: ue(y.maxLength) };
|
|
1269
|
+
if (y.pattern && !ie(y.pattern).test(v))
|
|
1270
|
+
return { type: "pattern", message: ue(y.pattern) };
|
|
1271
|
+
if (y.validate) {
|
|
1272
|
+
const T = y.validate(v, n);
|
|
1273
|
+
if (T === !1)
|
|
1274
1274
|
return { type: "validate" };
|
|
1275
|
-
if (typeof
|
|
1276
|
-
return { type: "validate", message:
|
|
1275
|
+
if (typeof T == "string")
|
|
1276
|
+
return { type: "validate", message: T };
|
|
1277
1277
|
}
|
|
1278
|
-
},
|
|
1279
|
-
const [n,
|
|
1278
|
+
}, lt = () => {
|
|
1279
|
+
const [n, u] = He({});
|
|
1280
1280
|
return {
|
|
1281
1281
|
errors: n,
|
|
1282
|
-
appendError: (
|
|
1283
|
-
|
|
1282
|
+
appendError: (N, j) => {
|
|
1283
|
+
u((L) => ({ ...L, [N]: j }));
|
|
1284
1284
|
},
|
|
1285
|
-
removeError: (
|
|
1286
|
-
|
|
1287
|
-
const
|
|
1288
|
-
return delete
|
|
1285
|
+
removeError: (N) => {
|
|
1286
|
+
u((j) => {
|
|
1287
|
+
const L = { ...j };
|
|
1288
|
+
return delete L[N], L;
|
|
1289
1289
|
});
|
|
1290
1290
|
},
|
|
1291
1291
|
resetErrors: () => {
|
|
1292
|
-
|
|
1292
|
+
u({});
|
|
1293
1293
|
},
|
|
1294
|
-
getError: (
|
|
1294
|
+
getError: (N) => se(n(), N)
|
|
1295
1295
|
};
|
|
1296
|
-
},
|
|
1296
|
+
}, pt = () => {
|
|
1297
1297
|
const n = {};
|
|
1298
|
-
return { rules: n, addRule: (
|
|
1299
|
-
n[
|
|
1300
|
-
required:
|
|
1301
|
-
min:
|
|
1302
|
-
max:
|
|
1303
|
-
minLength:
|
|
1304
|
-
maxLength:
|
|
1305
|
-
pattern:
|
|
1306
|
-
|
|
1298
|
+
return { rules: n, addRule: (v, T) => {
|
|
1299
|
+
n[v] = {
|
|
1300
|
+
required: T.required,
|
|
1301
|
+
min: T.min,
|
|
1302
|
+
max: T.max,
|
|
1303
|
+
minLength: T.minLength,
|
|
1304
|
+
maxLength: T.maxLength,
|
|
1305
|
+
pattern: T.pattern,
|
|
1306
|
+
valueAsNumber: T.valueAsNumber,
|
|
1307
|
+
validate: T.validate
|
|
1307
1308
|
};
|
|
1308
|
-
}, getRule: (
|
|
1309
|
-
},
|
|
1309
|
+
}, getRule: (v) => n[v] };
|
|
1310
|
+
}, dt = () => {
|
|
1310
1311
|
const n = {};
|
|
1311
1312
|
return {
|
|
1312
1313
|
fields: n,
|
|
1313
|
-
getField: (
|
|
1314
|
-
setField: (
|
|
1315
|
-
n[
|
|
1314
|
+
getField: (v) => n[v],
|
|
1315
|
+
setField: (v, T) => {
|
|
1316
|
+
n[v] = T;
|
|
1316
1317
|
}
|
|
1317
1318
|
};
|
|
1318
|
-
}, mt = (n
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
}, $ = (l) => {
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
},
|
|
1328
|
-
|
|
1329
|
-
|
|
1319
|
+
}, mt = (n, u) => u.valueAsNumber ? Number(n) : n, yt = (n) => Object.entries(n).reduce((u, [y, v]) => (u[y] = {
|
|
1320
|
+
ref: v,
|
|
1321
|
+
name: y
|
|
1322
|
+
}, u), {}), vt = (n = { defaultValues: {} }) => {
|
|
1323
|
+
const { defaultValues: u, mode: y = "onInput", resolver: v } = n, { fields: T, getField: k, setField: N } = dt(), { rules: j, addRule: L, getRule: $ } = pt(), [M, W] = He(u), { errors: B, appendError: Q, removeError: K, resetErrors: ee, getError: U } = lt(), z = Qe(() => !Object.keys(B()).length), x = (l, E) => {
|
|
1324
|
+
const w = k(l);
|
|
1325
|
+
w && (E.ref = w), Q(l, E);
|
|
1326
|
+
}, I = (l) => {
|
|
1327
|
+
K(l);
|
|
1328
|
+
}, X = async (l) => {
|
|
1329
|
+
if (!v)
|
|
1330
|
+
return;
|
|
1331
|
+
const E = await v(M(), null, {
|
|
1332
|
+
fields: yt(T),
|
|
1333
|
+
shouldUseNativeValidation: !1
|
|
1334
|
+
});
|
|
1335
|
+
for (const w of l) {
|
|
1336
|
+
const P = se(E.errors, w);
|
|
1337
|
+
P ? x(w, P) : I(w);
|
|
1338
|
+
}
|
|
1339
|
+
}, b = (l) => {
|
|
1340
|
+
if (v) {
|
|
1341
|
+
X([l]);
|
|
1342
|
+
return;
|
|
1343
|
+
}
|
|
1344
|
+
const E = $(l), w = ft(M(), l, E);
|
|
1345
|
+
w ? x(l, w) : I(l);
|
|
1346
|
+
}, Z = async () => {
|
|
1347
|
+
if (v) {
|
|
1348
|
+
await X(Object.keys(T));
|
|
1349
|
+
return;
|
|
1350
|
+
}
|
|
1351
|
+
Object.keys(j).forEach((l) => {
|
|
1352
|
+
b(l);
|
|
1330
1353
|
});
|
|
1331
|
-
},
|
|
1332
|
-
var
|
|
1333
|
-
const l = Object.keys(
|
|
1334
|
-
for (const
|
|
1335
|
-
const
|
|
1336
|
-
if (
|
|
1337
|
-
(
|
|
1354
|
+
}, J = () => {
|
|
1355
|
+
var E;
|
|
1356
|
+
const l = Object.keys(T);
|
|
1357
|
+
for (const w of l) {
|
|
1358
|
+
const P = U(w);
|
|
1359
|
+
if (P) {
|
|
1360
|
+
(E = P.ref) == null || E.focus();
|
|
1338
1361
|
break;
|
|
1339
1362
|
}
|
|
1340
1363
|
}
|
|
1341
|
-
},
|
|
1342
|
-
const
|
|
1343
|
-
|
|
1344
|
-
const
|
|
1345
|
-
return
|
|
1346
|
-
}),
|
|
1347
|
-
}, q = (l,
|
|
1364
|
+
}, Y = (l, E) => {
|
|
1365
|
+
const w = mt(Je(l), j[E]);
|
|
1366
|
+
W((P) => {
|
|
1367
|
+
const D = { ...P };
|
|
1368
|
+
return De(D, E, w), D;
|
|
1369
|
+
}), b(E);
|
|
1370
|
+
}, q = (l, E = {}) => (L(l, E), {
|
|
1348
1371
|
name: l,
|
|
1349
1372
|
// value: get(values(), name),
|
|
1350
|
-
onInput(
|
|
1351
|
-
|
|
1373
|
+
onInput(w) {
|
|
1374
|
+
y === "onChange" && Y(w, l);
|
|
1352
1375
|
},
|
|
1353
|
-
onChange(
|
|
1354
|
-
|
|
1376
|
+
onChange(w) {
|
|
1377
|
+
y === "onChange" && Y(w, l);
|
|
1355
1378
|
},
|
|
1356
|
-
ref(
|
|
1357
|
-
|
|
1379
|
+
ref(w) {
|
|
1380
|
+
k(l) || (N(l, w), w && ge(w, se(M(), l)));
|
|
1358
1381
|
}
|
|
1359
|
-
}),
|
|
1382
|
+
}), te = (l) => l ? se(M(), l) : M();
|
|
1360
1383
|
return {
|
|
1361
|
-
values:
|
|
1362
|
-
errors:
|
|
1363
|
-
isValid:
|
|
1384
|
+
values: M,
|
|
1385
|
+
errors: B,
|
|
1386
|
+
isValid: z,
|
|
1364
1387
|
register: q,
|
|
1365
|
-
getValues:
|
|
1366
|
-
setValue: (l,
|
|
1367
|
-
|
|
1368
|
-
const
|
|
1369
|
-
return
|
|
1388
|
+
getValues: te,
|
|
1389
|
+
setValue: (l, E) => {
|
|
1390
|
+
W((P) => {
|
|
1391
|
+
const D = { ...P };
|
|
1392
|
+
return De(D, l, E), D;
|
|
1370
1393
|
});
|
|
1371
|
-
const
|
|
1372
|
-
|
|
1394
|
+
const w = k(l);
|
|
1395
|
+
w && ge(w, E);
|
|
1373
1396
|
},
|
|
1374
|
-
onSubmit: (l) => (
|
|
1375
|
-
|
|
1397
|
+
onSubmit: (l) => async (E) => {
|
|
1398
|
+
E.preventDefault(), await Z(), z() && l(te()), J();
|
|
1376
1399
|
},
|
|
1377
1400
|
reset: (l = {}) => {
|
|
1378
|
-
const
|
|
1379
|
-
...structuredClone(
|
|
1401
|
+
const E = {
|
|
1402
|
+
...structuredClone(u),
|
|
1380
1403
|
...l
|
|
1381
1404
|
};
|
|
1382
|
-
|
|
1383
|
-
|
|
1405
|
+
W(() => E), ee(), Object.entries(T).forEach(([w, P]) => {
|
|
1406
|
+
P && ge(P, se(E, w));
|
|
1384
1407
|
});
|
|
1385
1408
|
}
|
|
1386
1409
|
};
|
|
1387
|
-
}, Fe =
|
|
1410
|
+
}, Fe = Ke(), gt = (n) => Xe(Fe.Provider, {
|
|
1388
1411
|
get value() {
|
|
1389
1412
|
return n.form;
|
|
1390
1413
|
},
|
|
1391
1414
|
get children() {
|
|
1392
1415
|
return n.children;
|
|
1393
1416
|
}
|
|
1394
|
-
}),
|
|
1395
|
-
const n =
|
|
1417
|
+
}), _t = () => {
|
|
1418
|
+
const n = Ze(Fe);
|
|
1396
1419
|
if (!n)
|
|
1397
1420
|
throw new Error("useFormContext: cannot find a FormProvider");
|
|
1398
1421
|
return n;
|
|
1399
1422
|
};
|
|
1400
1423
|
export {
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1424
|
+
gt as FormProvider,
|
|
1425
|
+
vt as useForm,
|
|
1426
|
+
_t as useFormContext
|
|
1404
1427
|
};
|