@entropic-bond/crud-panel 4.3.1 → 4.4.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class Pe {
|
|
2
2
|
constructor() {
|
|
3
3
|
this.subscribers = /* @__PURE__ */ new Set();
|
|
4
4
|
}
|
|
@@ -26,7 +26,7 @@ class Je {
|
|
|
26
26
|
* @param event the event passed to all subscribers.
|
|
27
27
|
*/
|
|
28
28
|
notify(t) {
|
|
29
|
-
this.subscribers.forEach((
|
|
29
|
+
this.subscribers.forEach((s) => s(t));
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Returns the number of subscribers.
|
|
@@ -43,47 +43,47 @@ class Je {
|
|
|
43
43
|
return this.subscribers.size;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
const
|
|
47
|
-
for (let
|
|
48
|
-
|
|
49
|
-
function
|
|
50
|
-
return (
|
|
46
|
+
const j = [];
|
|
47
|
+
for (let n = 0; n < 256; ++n)
|
|
48
|
+
j.push((n + 256).toString(16).slice(1));
|
|
49
|
+
function lt(n, t = 0) {
|
|
50
|
+
return (j[n[t + 0]] + j[n[t + 1]] + j[n[t + 2]] + j[n[t + 3]] + "-" + j[n[t + 4]] + j[n[t + 5]] + "-" + j[n[t + 6]] + j[n[t + 7]] + "-" + j[n[t + 8]] + j[n[t + 9]] + "-" + j[n[t + 10]] + j[n[t + 11]] + j[n[t + 12]] + j[n[t + 13]] + j[n[t + 14]] + j[n[t + 15]]).toLowerCase();
|
|
51
51
|
}
|
|
52
|
-
let
|
|
53
|
-
const
|
|
54
|
-
function
|
|
55
|
-
if (!
|
|
52
|
+
let ke;
|
|
53
|
+
const ft = new Uint8Array(16);
|
|
54
|
+
function dt() {
|
|
55
|
+
if (!ke) {
|
|
56
56
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
57
57
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
58
|
-
|
|
58
|
+
ke = crypto.getRandomValues.bind(crypto);
|
|
59
59
|
}
|
|
60
|
-
return
|
|
60
|
+
return ke(ft);
|
|
61
61
|
}
|
|
62
|
-
const
|
|
63
|
-
function
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
r = r || {};
|
|
68
|
-
const c = r.random ?? ((f = r.rng) == null ? void 0 : f.call(r)) ?? Dt();
|
|
69
|
-
if (c.length < 16)
|
|
62
|
+
const ht = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Be = { randomUUID: ht };
|
|
63
|
+
function pt(n, t, s) {
|
|
64
|
+
n = n || {};
|
|
65
|
+
const a = n.random ?? n.rng?.() ?? dt();
|
|
66
|
+
if (a.length < 16)
|
|
70
67
|
throw new Error("Random bytes length must be >= 16");
|
|
71
|
-
return
|
|
68
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, lt(a);
|
|
72
69
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
70
|
+
function mt(n, t, s) {
|
|
71
|
+
return Be.randomUUID && !n ? Be.randomUUID() : pt(n);
|
|
72
|
+
}
|
|
73
|
+
var _t = Object.defineProperty, yt = (n, t, s, a) => {
|
|
74
|
+
for (var c = void 0, p = n.length - 1, O; p >= 0; p--)
|
|
75
|
+
(O = n[p]) && (c = O(t, s, c) || c);
|
|
76
|
+
return c && _t(t, s, c), c;
|
|
77
|
+
}, k;
|
|
78
|
+
const tt = (k = class {
|
|
79
79
|
/**
|
|
80
80
|
* Registers a class to be used by the persistence engine.
|
|
81
81
|
* @param className the name of the class to be registered
|
|
82
82
|
* @param factory the constructor of the registered class
|
|
83
83
|
* @param annotation an annotation associated with the class
|
|
84
84
|
*/
|
|
85
|
-
static registerFactory(
|
|
86
|
-
this._factoryMap[
|
|
85
|
+
static registerFactory(n, t, s, a = !1) {
|
|
86
|
+
this._factoryMap[n] = { factory: t, annotation: s, isLegacy: a };
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
89
|
* Returns the constructor of a registered class
|
|
@@ -95,10 +95,10 @@ const Tt = (Y = class {
|
|
|
95
95
|
* @see classesExtending
|
|
96
96
|
* @see annotations
|
|
97
97
|
*/
|
|
98
|
-
static classFactory(
|
|
99
|
-
if (!
|
|
100
|
-
if (!this._factoryMap[
|
|
101
|
-
return this._factoryMap[
|
|
98
|
+
static classFactory(n) {
|
|
99
|
+
if (!n) throw new Error("You should provide a class name.");
|
|
100
|
+
if (!this._factoryMap[n]) throw new Error(`You should register class ${n} prior to use.`);
|
|
101
|
+
return this._factoryMap[n].factory;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
104
|
* Returns the names of all registered classes
|
|
@@ -107,6 +107,15 @@ const Tt = (Y = class {
|
|
|
107
107
|
* @see classFactory
|
|
108
108
|
*/
|
|
109
109
|
static registeredClasses() {
|
|
110
|
+
return Object.entries(this._factoryMap).filter(([, n]) => !n.isLegacy).map(([n]) => n);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Returns the names of all registered classes, including legacy names
|
|
114
|
+
* @returns the names of all registered classes, including legacy names
|
|
115
|
+
* @see registerFactory
|
|
116
|
+
* @see classFactory
|
|
117
|
+
*/
|
|
118
|
+
static registeredClassesAndLegacyNames() {
|
|
110
119
|
return Object.keys(this._factoryMap);
|
|
111
120
|
}
|
|
112
121
|
/**
|
|
@@ -116,8 +125,8 @@ const Tt = (Y = class {
|
|
|
116
125
|
* @see registerFactory
|
|
117
126
|
* @see classFactory
|
|
118
127
|
*/
|
|
119
|
-
static classesExtending(
|
|
120
|
-
return Object.entries(this._factoryMap).filter(([, t]) => new t.factory() instanceof
|
|
128
|
+
static classesExtending(n) {
|
|
129
|
+
return Object.entries(this._factoryMap).filter(([, t]) => new t.factory() instanceof n && !t.isLegacy).map(([t]) => t);
|
|
121
130
|
}
|
|
122
131
|
/**
|
|
123
132
|
* Returns the annotation associated with a registered class
|
|
@@ -126,16 +135,16 @@ const Tt = (Y = class {
|
|
|
126
135
|
* @throws an error if the class is not registered
|
|
127
136
|
* @see registerFactory
|
|
128
137
|
*/
|
|
129
|
-
static annotations(
|
|
130
|
-
if (
|
|
131
|
-
return this._factoryMap[
|
|
138
|
+
static annotations(n) {
|
|
139
|
+
if (n instanceof k ? n = n.className : typeof n == "string" || (n = new n().className), !this._factoryMap[n]) throw new Error(`You should register class ${n} prior to use.`);
|
|
140
|
+
return this._factoryMap[n].annotation;
|
|
132
141
|
}
|
|
133
142
|
/**
|
|
134
143
|
* Returns a new instance of Persistent class.
|
|
135
144
|
* @param className the initial id of this instance. If not provided, a new id will be generated
|
|
136
145
|
*/
|
|
137
|
-
constructor(
|
|
138
|
-
this._id =
|
|
146
|
+
constructor(n = mt()) {
|
|
147
|
+
this._id = n;
|
|
139
148
|
}
|
|
140
149
|
/**
|
|
141
150
|
* Gets the class name of this instance.
|
|
@@ -147,8 +156,8 @@ const Tt = (Y = class {
|
|
|
147
156
|
* Sets the id of this instance.
|
|
148
157
|
* @param value the id of this instance
|
|
149
158
|
*/
|
|
150
|
-
setId(
|
|
151
|
-
this._id =
|
|
159
|
+
setId(n) {
|
|
160
|
+
this._id = n;
|
|
152
161
|
}
|
|
153
162
|
/**
|
|
154
163
|
* Returns the id of this instance.
|
|
@@ -175,9 +184,9 @@ const Tt = (Y = class {
|
|
|
175
184
|
* @returns an array of the persistent properties of this instance
|
|
176
185
|
*/
|
|
177
186
|
getPersistentProperties() {
|
|
178
|
-
return this._persistentProperties ? this._persistentProperties.map((
|
|
179
|
-
...
|
|
180
|
-
name:
|
|
187
|
+
return this._persistentProperties ? this._persistentProperties.map((n) => ({
|
|
188
|
+
...n,
|
|
189
|
+
name: n.name.slice(1)
|
|
181
190
|
})) : [];
|
|
182
191
|
}
|
|
183
192
|
/**
|
|
@@ -185,9 +194,9 @@ const Tt = (Y = class {
|
|
|
185
194
|
* @param propName the persistent property name
|
|
186
195
|
* @returns the property information
|
|
187
196
|
*/
|
|
188
|
-
getPropInfo(
|
|
189
|
-
const t = this.getPersistentProperties().find((
|
|
190
|
-
if (!t) throw new Error(`Property "${
|
|
197
|
+
getPropInfo(n) {
|
|
198
|
+
const t = this.getPersistentProperties().find((s) => s.name === n);
|
|
199
|
+
if (!t) throw new Error(`Property "${n}" has not been registered.`);
|
|
191
200
|
return t;
|
|
192
201
|
}
|
|
193
202
|
/**
|
|
@@ -197,8 +206,8 @@ const Tt = (Y = class {
|
|
|
197
206
|
* @returns true if the property is required
|
|
198
207
|
* @see required
|
|
199
208
|
*/
|
|
200
|
-
isRequired(
|
|
201
|
-
return this.getPropInfo(
|
|
209
|
+
isRequired(n) {
|
|
210
|
+
return this.getPropInfo(n).validator != null;
|
|
202
211
|
}
|
|
203
212
|
/**
|
|
204
213
|
* Query if the property value is valid
|
|
@@ -208,8 +217,8 @@ const Tt = (Y = class {
|
|
|
208
217
|
* passed to the @required decorator
|
|
209
218
|
* @see required
|
|
210
219
|
*/
|
|
211
|
-
isPropValueValid(
|
|
212
|
-
const t = this.getPropInfo(
|
|
220
|
+
isPropValueValid(n) {
|
|
221
|
+
const t = this.getPropInfo(n);
|
|
213
222
|
return t.validator ? t.validator(this[t.name], t, this) : !0;
|
|
214
223
|
}
|
|
215
224
|
/**
|
|
@@ -221,8 +230,8 @@ const Tt = (Y = class {
|
|
|
221
230
|
* @see fromObject
|
|
222
231
|
* @see toObject
|
|
223
232
|
*/
|
|
224
|
-
clone(
|
|
225
|
-
const t =
|
|
233
|
+
clone(n) {
|
|
234
|
+
const t = n.toObject();
|
|
226
235
|
return delete t.id, this.fromObject(t);
|
|
227
236
|
}
|
|
228
237
|
/**
|
|
@@ -233,13 +242,13 @@ const Tt = (Y = class {
|
|
|
233
242
|
* @see clone
|
|
234
243
|
* @see toObject
|
|
235
244
|
*/
|
|
236
|
-
fromObject(
|
|
237
|
-
return this.fromObj(
|
|
245
|
+
fromObject(n) {
|
|
246
|
+
return this.fromObj(n), this.afterDeserialize(), this;
|
|
238
247
|
}
|
|
239
|
-
fromObj(
|
|
248
|
+
fromObj(n) {
|
|
240
249
|
return this._persistentProperties ? (this._persistentProperties.forEach((t) => {
|
|
241
|
-
const
|
|
242
|
-
|
|
250
|
+
const s = this.removeUnderscore(t), a = n[s];
|
|
251
|
+
a != null && (this[t.name] = this.fromDeepObject(a));
|
|
243
252
|
}), this) : this;
|
|
244
253
|
}
|
|
245
254
|
/**
|
|
@@ -250,215 +259,208 @@ const Tt = (Y = class {
|
|
|
250
259
|
* @see clone
|
|
251
260
|
*/
|
|
252
261
|
toObject() {
|
|
253
|
-
const
|
|
254
|
-
return this.pushDocument(
|
|
262
|
+
const n = {}, t = this.toObj(n);
|
|
263
|
+
return this.pushDocument(n, this.className, t), {
|
|
255
264
|
...t,
|
|
256
|
-
__rootCollections:
|
|
265
|
+
__rootCollections: n
|
|
257
266
|
};
|
|
258
267
|
}
|
|
259
|
-
toObj(
|
|
268
|
+
toObj(n) {
|
|
260
269
|
if (!this._persistentProperties) return {};
|
|
261
270
|
this.beforeSerialize();
|
|
262
271
|
const t = {};
|
|
263
|
-
if (!this.className) throw new Error(
|
|
264
|
-
return this._persistentProperties.forEach((
|
|
265
|
-
const
|
|
266
|
-
|
|
272
|
+
if (!this.className) throw new Error(`You should register \`${this.constructor.name || this.toString() || "this"}\` class prior to streaming it.`);
|
|
273
|
+
return this._persistentProperties.forEach((s) => {
|
|
274
|
+
const a = this[s.name], c = this.removeUnderscore(s);
|
|
275
|
+
a != null && (s.isReference ? t[c] = this.toReferenceObj(s, n) : t[c] = this.toDeepObj(a, n), s.searchableArray && (t[k.searchableArrayNameFor(c)] = a.map((p) => p.id)));
|
|
267
276
|
}), t.__className = this.className, t;
|
|
268
277
|
}
|
|
269
|
-
static searchableArrayNameFor(
|
|
270
|
-
return `__${
|
|
278
|
+
static searchableArrayNameFor(n) {
|
|
279
|
+
return `__${n}_searchable`;
|
|
271
280
|
}
|
|
272
|
-
fromDeepObject(
|
|
273
|
-
if (
|
|
274
|
-
if (Array.isArray(
|
|
275
|
-
return
|
|
276
|
-
if (
|
|
277
|
-
const t =
|
|
278
|
-
return
|
|
281
|
+
fromDeepObject(n) {
|
|
282
|
+
if (n == null) return n;
|
|
283
|
+
if (Array.isArray(n))
|
|
284
|
+
return n.map((t) => this.fromDeepObject(t));
|
|
285
|
+
if (n.__documentReference) {
|
|
286
|
+
const t = n, s = k.createInstance(t);
|
|
287
|
+
return s.__documentReference = n.__documentReference, s;
|
|
279
288
|
}
|
|
280
|
-
if (
|
|
281
|
-
return
|
|
282
|
-
if (typeof
|
|
289
|
+
if (n.__className)
|
|
290
|
+
return k.createInstance(n);
|
|
291
|
+
if (typeof n == "object") {
|
|
283
292
|
const t = {};
|
|
284
|
-
return Object.entries(
|
|
285
|
-
([
|
|
293
|
+
return Object.entries(n).forEach(
|
|
294
|
+
([s, a]) => t[s] = this.fromDeepObject(a)
|
|
286
295
|
), t;
|
|
287
296
|
}
|
|
288
|
-
return
|
|
289
|
-
}
|
|
290
|
-
toDeepObj(
|
|
291
|
-
if (
|
|
292
|
-
if (Array.isArray(
|
|
293
|
-
return
|
|
294
|
-
if (
|
|
295
|
-
if (
|
|
296
|
-
return
|
|
297
|
-
if (typeof
|
|
298
|
-
const
|
|
299
|
-
return Object.entries(
|
|
300
|
-
([
|
|
301
|
-
),
|
|
297
|
+
return n;
|
|
298
|
+
}
|
|
299
|
+
toDeepObj(n, t) {
|
|
300
|
+
if (n != null) {
|
|
301
|
+
if (Array.isArray(n))
|
|
302
|
+
return n.map((s) => this.toDeepObj(s, t));
|
|
303
|
+
if (n.__documentReference) return n;
|
|
304
|
+
if (n instanceof k)
|
|
305
|
+
return n.toObj(t);
|
|
306
|
+
if (typeof n == "object") {
|
|
307
|
+
const s = {};
|
|
308
|
+
return Object.entries(n).forEach(
|
|
309
|
+
([a, c]) => s[a] = this.toDeepObj(c, t)
|
|
310
|
+
), s;
|
|
302
311
|
}
|
|
303
|
-
return
|
|
312
|
+
return n;
|
|
304
313
|
}
|
|
305
314
|
}
|
|
306
|
-
static collectionPath(
|
|
307
|
-
let
|
|
308
|
-
return typeof t.storeInCollection == "function" ?
|
|
315
|
+
static collectionPath(n, t) {
|
|
316
|
+
let s;
|
|
317
|
+
return typeof t.storeInCollection == "function" ? s = t.storeInCollection(n, t) : s = t.storeInCollection ?? n.className, s;
|
|
309
318
|
}
|
|
310
|
-
toReferenceObj(
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
return Array.isArray(f) ? f.map((c) => {
|
|
314
|
-
var g;
|
|
315
|
-
return r.isPureReference || this.pushDocument(t, Y.collectionPath(c, r), c), this.buildRefObject(c, Y.collectionPath(c, r), (g = r.cachedPropsConfig) == null ? void 0 : g.cachedProps);
|
|
316
|
-
}) : (r.isPureReference || this.pushDocument(t, Y.collectionPath(f, r), f), this.buildRefObject(f, Y.collectionPath(f, r), (i = r.cachedPropsConfig) == null ? void 0 : i.cachedProps));
|
|
319
|
+
toReferenceObj(n, t) {
|
|
320
|
+
const s = this[n.name];
|
|
321
|
+
return Array.isArray(s) ? s.map((a) => (n.isPureReference || this.pushDocument(t, k.collectionPath(a, n), a), this.buildRefObject(a, k.collectionPath(a, n), n.cachedPropsConfig?.cachedProps))) : (n.isPureReference || this.pushDocument(t, k.collectionPath(s, n), s), this.buildRefObject(s, k.collectionPath(s, n), n.cachedPropsConfig?.cachedProps));
|
|
317
322
|
}
|
|
318
|
-
buildRefObject(
|
|
319
|
-
const
|
|
323
|
+
buildRefObject(n, t, s) {
|
|
324
|
+
const a = s?.reduce((c, p) => (n[p] !== void 0 && (c[p] = n[p]), c), {});
|
|
320
325
|
return {
|
|
321
|
-
id:
|
|
322
|
-
__className:
|
|
326
|
+
id: n.id,
|
|
327
|
+
__className: n.className || n.__className,
|
|
323
328
|
__documentReference: {
|
|
324
329
|
storedInCollection: t
|
|
325
330
|
},
|
|
326
|
-
...
|
|
331
|
+
...a
|
|
327
332
|
};
|
|
328
333
|
}
|
|
329
|
-
pushDocument(
|
|
330
|
-
if ("__documentReference" in
|
|
331
|
-
|
|
332
|
-
const
|
|
333
|
-
|
|
334
|
+
pushDocument(n, t, s) {
|
|
335
|
+
if ("__documentReference" in s && s.__documentReference) return;
|
|
336
|
+
n[t] || (n[t] = []);
|
|
337
|
+
const a = this.toDeepObj(s, n);
|
|
338
|
+
n[t].push(a);
|
|
334
339
|
}
|
|
335
|
-
removeUnderscore(
|
|
336
|
-
return
|
|
340
|
+
removeUnderscore(n) {
|
|
341
|
+
return n.name.slice(1);
|
|
337
342
|
}
|
|
338
|
-
static createReference(
|
|
339
|
-
const t =
|
|
340
|
-
return t.__documentReference =
|
|
343
|
+
static createReference(n) {
|
|
344
|
+
const t = k.createInstance(n);
|
|
345
|
+
return t.__documentReference = n.__documentReference || { storedInCollection: t.className }, t;
|
|
341
346
|
}
|
|
342
|
-
static createInstance(
|
|
343
|
-
if (typeof
|
|
344
|
-
return new (
|
|
347
|
+
static createInstance(n) {
|
|
348
|
+
if (typeof n == "string")
|
|
349
|
+
return new (k.classFactory(n))();
|
|
345
350
|
try {
|
|
346
|
-
return new (
|
|
351
|
+
return new (k.classFactory(n.__className))().fromObject(n);
|
|
347
352
|
} catch (t) {
|
|
348
|
-
const
|
|
353
|
+
const s = Object.entries(n).filter(([a, c]) => c != null && typeof c != "function").map(([a, c]) => `${a}: ${c}`).join(`,
|
|
349
354
|
`);
|
|
350
355
|
throw new Error(`${t}
|
|
351
356
|
-----> Class name not found in object:
|
|
352
357
|
{
|
|
353
|
-
${
|
|
358
|
+
${s}
|
|
354
359
|
}
|
|
355
360
|
`);
|
|
356
361
|
}
|
|
357
362
|
}
|
|
358
|
-
static propInfo(
|
|
359
|
-
return
|
|
363
|
+
static propInfo(n, t) {
|
|
364
|
+
return k.createInstance(n).getPropInfo(t);
|
|
360
365
|
}
|
|
361
366
|
/**
|
|
362
367
|
* Retrieves a collection of references with the properties that are stored in the reference object
|
|
363
368
|
* @returns the references collection
|
|
364
369
|
*/
|
|
365
370
|
static getSystemRegisteredReferencesWithCachedProps() {
|
|
366
|
-
return
|
|
367
|
-
const
|
|
368
|
-
(
|
|
369
|
-
var c;
|
|
370
|
-
return (c = f.cachedPropsConfig) == null ? void 0 : c.cachedProps;
|
|
371
|
-
}
|
|
371
|
+
return k.registeredClassesAndLegacyNames().reduce((n, t) => {
|
|
372
|
+
const s = k.createInstance(t).getPersistentProperties().filter(
|
|
373
|
+
(a) => a.cachedPropsConfig?.cachedProps
|
|
372
374
|
);
|
|
373
|
-
return
|
|
375
|
+
return s.length > 0 && (n[t] = s), n;
|
|
374
376
|
}, {});
|
|
375
377
|
}
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
],
|
|
380
|
-
let
|
|
381
|
-
function
|
|
382
|
-
return
|
|
378
|
+
}, k._factoryMap = {}, k);
|
|
379
|
+
yt([
|
|
380
|
+
he
|
|
381
|
+
], tt.prototype, "_id");
|
|
382
|
+
let rt = tt;
|
|
383
|
+
function he(n, t) {
|
|
384
|
+
return gt()(n, t);
|
|
383
385
|
}
|
|
384
|
-
function
|
|
385
|
-
return function(t,
|
|
386
|
+
function gt(n) {
|
|
387
|
+
return function(t, s) {
|
|
386
388
|
Object.getOwnPropertyDescriptor(t, "_persistentProperties") || (t._persistentProperties ? t._persistentProperties = [...t._persistentProperties] : t._persistentProperties = []);
|
|
387
|
-
const
|
|
388
|
-
|
|
389
|
-
name:
|
|
390
|
-
...
|
|
389
|
+
const a = t._persistentProperties.find((c) => c.name === s);
|
|
390
|
+
a ? Object.assign(a, n) : t._persistentProperties.push({
|
|
391
|
+
name: s,
|
|
392
|
+
...n
|
|
391
393
|
});
|
|
392
394
|
};
|
|
393
395
|
}
|
|
394
|
-
function
|
|
395
|
-
return (
|
|
396
|
-
|
|
396
|
+
function vt(n, t) {
|
|
397
|
+
return (s) => {
|
|
398
|
+
rt.registerFactory(n, s, t), s.prototype.__className = n;
|
|
397
399
|
};
|
|
398
400
|
}
|
|
399
|
-
const
|
|
400
|
-
static registerCloudStorage(t,
|
|
401
|
-
|
|
401
|
+
const nt = class de {
|
|
402
|
+
static registerCloudStorage(t, s) {
|
|
403
|
+
de._cloudStorageFactoryMap[t] = s;
|
|
402
404
|
}
|
|
403
405
|
static createInstance(t) {
|
|
404
|
-
const
|
|
405
|
-
if (!
|
|
406
|
+
const s = de._cloudStorageFactoryMap[t];
|
|
407
|
+
if (!s)
|
|
406
408
|
throw new Error(`You should register the ${t} cloud storage provider prior to use it`);
|
|
407
|
-
return
|
|
409
|
+
return s();
|
|
408
410
|
}
|
|
409
411
|
get className() {
|
|
410
412
|
return this.__className;
|
|
411
413
|
}
|
|
412
414
|
static useCloudStorage(t) {
|
|
413
|
-
|
|
415
|
+
de._defaultCloudStorage = t;
|
|
414
416
|
}
|
|
415
417
|
static get defaultCloudStorage() {
|
|
416
|
-
if (
|
|
418
|
+
if (!de._defaultCloudStorage)
|
|
417
419
|
throw new Error("You should define a default cloud storage provider prior to use it");
|
|
418
|
-
return
|
|
420
|
+
return de._defaultCloudStorage;
|
|
419
421
|
}
|
|
420
422
|
};
|
|
421
|
-
|
|
422
|
-
let
|
|
423
|
-
function
|
|
424
|
-
return
|
|
425
|
-
|
|
423
|
+
nt._cloudStorageFactoryMap = {};
|
|
424
|
+
let Ee = nt;
|
|
425
|
+
function Et(n, t) {
|
|
426
|
+
return Ee.registerCloudStorage(n, t), (s) => {
|
|
427
|
+
s.prototype.__className = n;
|
|
426
428
|
};
|
|
427
429
|
}
|
|
428
|
-
var
|
|
429
|
-
for (var c = t,
|
|
430
|
-
(
|
|
430
|
+
var bt = (n, t, s, a) => {
|
|
431
|
+
for (var c = t, p = n.length - 1, O; p >= 0; p--)
|
|
432
|
+
(O = n[p]) && (c = O(c) || c);
|
|
431
433
|
return c;
|
|
432
434
|
};
|
|
433
|
-
let
|
|
434
|
-
constructor(
|
|
435
|
-
super(), this._simulateDelay = 0, this._pendingPromises = [], this.mockFileSystem = {}, this._pathToMockFiles =
|
|
435
|
+
let je = class extends Ee {
|
|
436
|
+
constructor(n = "") {
|
|
437
|
+
super(), this._simulateDelay = 0, this._pendingPromises = [], this.mockFileSystem = {}, this._pathToMockFiles = n;
|
|
436
438
|
}
|
|
437
439
|
/**
|
|
438
440
|
* Introduce a delay in the execution of operations to simulate a real data source
|
|
439
441
|
* @param miliSeconds the number of milliseconds to delay the execution of operations
|
|
440
442
|
* @returns a chainable reference to this object
|
|
441
443
|
*/
|
|
442
|
-
simulateDelay(
|
|
443
|
-
return this._simulateDelay =
|
|
444
|
+
simulateDelay(n) {
|
|
445
|
+
return this._simulateDelay = n, this;
|
|
444
446
|
}
|
|
445
|
-
resolveWithDelay(
|
|
446
|
-
if (this._simulateDelay <= 0) return Promise.resolve(
|
|
447
|
-
const t = new Promise((
|
|
447
|
+
resolveWithDelay(n) {
|
|
448
|
+
if (this._simulateDelay <= 0) return Promise.resolve(n);
|
|
449
|
+
const t = new Promise((s) => {
|
|
448
450
|
setTimeout(
|
|
449
|
-
() =>
|
|
451
|
+
() => s(n),
|
|
450
452
|
this._simulateDelay
|
|
451
453
|
);
|
|
452
454
|
});
|
|
453
455
|
return this._pendingPromises.push(t), t.finally(
|
|
454
|
-
() => this._pendingPromises = this._pendingPromises.filter((
|
|
456
|
+
() => this._pendingPromises = this._pendingPromises.filter((s) => s === t)
|
|
455
457
|
), t;
|
|
456
458
|
}
|
|
457
|
-
save(
|
|
458
|
-
const
|
|
459
|
-
this._onProgress && this._onProgress(0, 100), this.mockFileSystem[
|
|
460
|
-
const
|
|
461
|
-
return this.resolveWithDelay(
|
|
459
|
+
save(n, t) {
|
|
460
|
+
const s = n;
|
|
461
|
+
this._onProgress && this._onProgress(0, 100), this.mockFileSystem[n] = JSON.stringify(t), this._onProgress && this._onProgress(100, 100);
|
|
462
|
+
const a = t instanceof File ? t.name : s;
|
|
463
|
+
return this.resolveWithDelay(a);
|
|
462
464
|
}
|
|
463
465
|
uploadControl() {
|
|
464
466
|
return {
|
|
@@ -468,31 +470,31 @@ let nt = class extends ze {
|
|
|
468
470
|
},
|
|
469
471
|
cancel: () => {
|
|
470
472
|
},
|
|
471
|
-
onProgress: (
|
|
473
|
+
onProgress: (n) => this._onProgress = n
|
|
472
474
|
};
|
|
473
475
|
}
|
|
474
|
-
getUrl(
|
|
475
|
-
return Promise.resolve(this._pathToMockFiles +
|
|
476
|
+
getUrl(n) {
|
|
477
|
+
return Promise.resolve(this._pathToMockFiles + n);
|
|
476
478
|
}
|
|
477
|
-
delete(
|
|
478
|
-
return delete this.mockFileSystem[
|
|
479
|
+
delete(n) {
|
|
480
|
+
return delete this.mockFileSystem[n], this.resolveWithDelay();
|
|
479
481
|
}
|
|
480
482
|
};
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
],
|
|
484
|
-
var
|
|
485
|
-
for (var c =
|
|
486
|
-
(
|
|
487
|
-
return
|
|
483
|
+
je = bt([
|
|
484
|
+
Et("MockCloudStorage", () => new je())
|
|
485
|
+
], je);
|
|
486
|
+
var wt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, pe = (n, t, s, a) => {
|
|
487
|
+
for (var c = a > 1 ? void 0 : a ? Rt(t, s) : t, p = n.length - 1, O; p >= 0; p--)
|
|
488
|
+
(O = n[p]) && (c = (a ? O(t, s, c) : O(c)) || c);
|
|
489
|
+
return a && c && wt(t, s, c), c;
|
|
488
490
|
};
|
|
489
|
-
let
|
|
491
|
+
let ce = class extends rt {
|
|
490
492
|
constructor() {
|
|
491
|
-
super(...arguments), this._onChange = new
|
|
493
|
+
super(...arguments), this._onChange = new Pe();
|
|
492
494
|
}
|
|
493
|
-
async save({ data:
|
|
494
|
-
const c =
|
|
495
|
-
c && (this._reference && await this.delete(), this.provider =
|
|
495
|
+
async save({ data: n, fileName: t, progress: s, cloudStorageProvider: a } = {}) {
|
|
496
|
+
const c = n || this._pendingData;
|
|
497
|
+
c && (this._reference && await this.delete(), this.provider = a || Ee.defaultCloudStorage, this._originalFileName = t || (c instanceof File ? c.name : void 0), this._reference = await this.provider.save(this.id, c, s), this._url = await this.provider.getUrl(this._reference), this._pendingData = void 0, this._onChange.notify({ event: 0, storedFile: this }));
|
|
496
498
|
}
|
|
497
499
|
uploadControl() {
|
|
498
500
|
return this.provider.uploadControl();
|
|
@@ -501,15 +503,15 @@ let ke = class extends St {
|
|
|
501
503
|
if (!this._reference) throw new Error("Cannot delete a not stored file");
|
|
502
504
|
await this.provider.delete(this._reference), this._reference = void 0, this._url = void 0, this._onChange.notify({ event: 2, storedFile: this });
|
|
503
505
|
}
|
|
504
|
-
set provider(
|
|
505
|
-
this._provider =
|
|
506
|
+
set provider(n) {
|
|
507
|
+
this._provider = n, this._cloudStorageProviderName = n.className;
|
|
506
508
|
}
|
|
507
509
|
get provider() {
|
|
508
510
|
if (!this._provider)
|
|
509
511
|
try {
|
|
510
|
-
this._provider =
|
|
512
|
+
this._provider = Ee.createInstance(this._cloudStorageProviderName);
|
|
511
513
|
} catch {
|
|
512
|
-
this._provider =
|
|
514
|
+
this._provider = Ee.defaultCloudStorage;
|
|
513
515
|
}
|
|
514
516
|
return this._provider;
|
|
515
517
|
}
|
|
@@ -519,62 +521,62 @@ let ke = class extends St {
|
|
|
519
521
|
get mimeType() {
|
|
520
522
|
return this._mimeType;
|
|
521
523
|
}
|
|
522
|
-
setDataToStore(
|
|
523
|
-
return this._pendingData =
|
|
524
|
+
setDataToStore(n) {
|
|
525
|
+
return this._pendingData = n, this._originalFileName = n instanceof File ? n.name : void 0, this._mimeType = n instanceof Blob ? n.type : void 0, this._onChange.notify({
|
|
524
526
|
event: 1,
|
|
525
|
-
pendingData:
|
|
527
|
+
pendingData: n,
|
|
526
528
|
storedFile: this
|
|
527
529
|
}), this;
|
|
528
530
|
}
|
|
529
531
|
get originalFileName() {
|
|
530
532
|
return this._originalFileName;
|
|
531
533
|
}
|
|
532
|
-
onChange(
|
|
533
|
-
return this._onChange.subscribe(
|
|
534
|
+
onChange(n) {
|
|
535
|
+
return this._onChange.subscribe(n);
|
|
534
536
|
}
|
|
535
537
|
};
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
],
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
],
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
],
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
],
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
],
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
],
|
|
554
|
-
function
|
|
555
|
-
if (!
|
|
556
|
-
const
|
|
557
|
-
return
|
|
538
|
+
pe([
|
|
539
|
+
he
|
|
540
|
+
], ce.prototype, "_reference", 2);
|
|
541
|
+
pe([
|
|
542
|
+
he
|
|
543
|
+
], ce.prototype, "_url", 2);
|
|
544
|
+
pe([
|
|
545
|
+
he
|
|
546
|
+
], ce.prototype, "_cloudStorageProviderName", 2);
|
|
547
|
+
pe([
|
|
548
|
+
he
|
|
549
|
+
], ce.prototype, "_originalFileName", 2);
|
|
550
|
+
pe([
|
|
551
|
+
he
|
|
552
|
+
], ce.prototype, "_mimeType", 2);
|
|
553
|
+
ce = pe([
|
|
554
|
+
vt("StoredFile")
|
|
555
|
+
], ce);
|
|
556
|
+
function Ct(n, t = "-") {
|
|
557
|
+
if (!n) return "";
|
|
558
|
+
const s = n.slice(1).replace(/( |[A-Z])/g, (a) => a === " " ? "-" : t + a[0].toLowerCase());
|
|
559
|
+
return n[0].toLocaleLowerCase() + s.replace(/--/g, "-");
|
|
558
560
|
}
|
|
559
|
-
class
|
|
561
|
+
class Tt {
|
|
560
562
|
constructor() {
|
|
561
|
-
this._debug = !1, this._stages = {}, this._onProgress = new
|
|
563
|
+
this._debug = !1, this._stages = {}, this._onProgress = new Pe();
|
|
562
564
|
}
|
|
563
|
-
notifyBusy(t,
|
|
565
|
+
notifyBusy(t, s) {
|
|
564
566
|
this.pushStage({
|
|
565
|
-
name:
|
|
567
|
+
name: s ?? "",
|
|
566
568
|
progress: t ? 0 : 1,
|
|
567
569
|
total: 1
|
|
568
570
|
});
|
|
569
571
|
}
|
|
570
572
|
pushStage(t) {
|
|
571
573
|
this._stages[t.name] = t;
|
|
572
|
-
const
|
|
574
|
+
const s = Object.values(this._stages).reduce((a, c, p, O) => a + c.progress / c.total / O.length, 0);
|
|
573
575
|
this._onProgress.notify({
|
|
574
|
-
busy:
|
|
575
|
-
overallProgress:
|
|
576
|
+
busy: s < 1,
|
|
577
|
+
overallProgress: s,
|
|
576
578
|
stages: this._stages
|
|
577
|
-
}),
|
|
579
|
+
}), s >= 1 && (this._stages = {}), this.debug && console.log(`ProgressController ${t.name}: Progress: ${t.progress} Stages: ${t.total}`);
|
|
578
580
|
}
|
|
579
581
|
onProgress(t) {
|
|
580
582
|
return this._onProgress.subscribe(t);
|
|
@@ -586,9 +588,9 @@ class Vt {
|
|
|
586
588
|
return this._debug;
|
|
587
589
|
}
|
|
588
590
|
}
|
|
589
|
-
const
|
|
591
|
+
const ne = class ne {
|
|
590
592
|
constructor(t) {
|
|
591
|
-
this.progressController = new
|
|
593
|
+
this.progressController = new Tt(), this.onChangeHdl = new Pe(), this.onErrorHdl = new Pe(), this.validator = {}, this.setDocument(t || this.createDocument());
|
|
592
594
|
}
|
|
593
595
|
allRequiredPropertiesFilled() {
|
|
594
596
|
return this.nonFilledRequiredProperties.length <= 0 && this.validateGlobal();
|
|
@@ -597,49 +599,48 @@ const we = class we {
|
|
|
597
599
|
return this.requiredProperties.filter((t) => this.validateProp(t));
|
|
598
600
|
}
|
|
599
601
|
get requiredProperties() {
|
|
600
|
-
if (!this.document) throw new Error(
|
|
601
|
-
const t = this.document.getPersistentProperties().filter((
|
|
602
|
+
if (!this.document) throw new Error(ne.errorMessages.missedDocument);
|
|
603
|
+
const t = this.document.getPersistentProperties().filter((a) => this.document.isRequired(a.name)).map((a) => a.name);
|
|
602
604
|
return [...new Set(t.concat(Object.keys(this.validator)))];
|
|
603
605
|
}
|
|
604
|
-
addValidator(t,
|
|
606
|
+
addValidator(t, s, a) {
|
|
605
607
|
this.validator[t] = {
|
|
606
|
-
func:
|
|
607
|
-
errorMessage:
|
|
608
|
+
func: s,
|
|
609
|
+
errorMessage: a
|
|
608
610
|
};
|
|
609
611
|
}
|
|
610
612
|
removeValidator(t) {
|
|
611
613
|
delete this.validator[t];
|
|
612
614
|
}
|
|
613
|
-
addGlobalValidator(t,
|
|
615
|
+
addGlobalValidator(t, s) {
|
|
614
616
|
this.globalValidator = {
|
|
615
617
|
func: t,
|
|
616
|
-
errorMessage:
|
|
618
|
+
errorMessage: s
|
|
617
619
|
};
|
|
618
620
|
}
|
|
619
621
|
removeGlobalValidator() {
|
|
620
622
|
this.globalValidator = void 0;
|
|
621
623
|
}
|
|
622
624
|
failedValidationError(t) {
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
return i ? (c = this.validator[i]) == null ? void 0 : c.errorMessage : (g = this.globalValidator) == null ? void 0 : g.errorMessage;
|
|
625
|
+
if (t) return this.validator[t]?.errorMessage;
|
|
626
|
+
const s = this.nonFilledRequiredProperties[0];
|
|
627
|
+
return s ? this.validator[s]?.errorMessage : this.globalValidator?.errorMessage;
|
|
627
628
|
}
|
|
628
629
|
validateProp(t) {
|
|
629
|
-
if (!this.document) throw new Error(
|
|
630
|
-
const
|
|
631
|
-
return this.validator[t] ? !this.validator[t].func(
|
|
630
|
+
if (!this.document) throw new Error(ne.errorMessages.missedDocument);
|
|
631
|
+
const s = this.document[t];
|
|
632
|
+
return this.validator[t] ? !this.validator[t].func(s) : !this.document.isPropValueValid(t);
|
|
632
633
|
}
|
|
633
634
|
validateGlobal() {
|
|
634
|
-
if (!this.document) throw new Error(
|
|
635
|
+
if (!this.document) throw new Error(ne.errorMessages.missedDocument);
|
|
635
636
|
return this.globalValidator ? this.globalValidator.func(this.document) : !0;
|
|
636
637
|
}
|
|
637
638
|
storeDoc() {
|
|
638
|
-
if (!this.document) throw new Error(
|
|
639
|
+
if (!this.document) throw new Error(ne.errorMessages.missedDocument);
|
|
639
640
|
return this.model.save(this.document);
|
|
640
641
|
}
|
|
641
642
|
deleteDoc() {
|
|
642
|
-
if (!this.document) throw new Error(
|
|
643
|
+
if (!this.document) throw new Error(ne.errorMessages.missedDocument);
|
|
643
644
|
return this.model.delete(this.document.id);
|
|
644
645
|
}
|
|
645
646
|
/**
|
|
@@ -654,8 +655,8 @@ const we = class we {
|
|
|
654
655
|
* @see findDocs
|
|
655
656
|
*/
|
|
656
657
|
queryDocs(t) {
|
|
657
|
-
let
|
|
658
|
-
return t && (
|
|
658
|
+
let s = this.model.find();
|
|
659
|
+
return t && (s = s.limit(t)), s;
|
|
659
660
|
}
|
|
660
661
|
/**
|
|
661
662
|
* Override this method to customize the query used to retrieve the documents
|
|
@@ -713,8 +714,8 @@ const we = class we {
|
|
|
713
714
|
documentCollection: await this.documentCollection(),
|
|
714
715
|
action: "saved"
|
|
715
716
|
});
|
|
716
|
-
} catch (
|
|
717
|
-
if (this.onChangeHdl.notify({ error: this.errorToError(
|
|
717
|
+
} catch (s) {
|
|
718
|
+
if (this.onChangeHdl.notify({ error: this.errorToError(s) }), this.onErrorHdl.notify(this.errorToError(s)), this.throwOnError) throw s;
|
|
718
719
|
} finally {
|
|
719
720
|
this.progressController.notifyBusy(!1, t);
|
|
720
721
|
}
|
|
@@ -726,31 +727,28 @@ const we = class we {
|
|
|
726
727
|
documentCollection: await this.documentCollection(),
|
|
727
728
|
action: "deleted"
|
|
728
729
|
});
|
|
729
|
-
} catch (
|
|
730
|
-
if (this.onChangeHdl.notify({ error: this.errorToError(
|
|
730
|
+
} catch (s) {
|
|
731
|
+
if (this.onChangeHdl.notify({ error: this.errorToError(s) }), this.onErrorHdl.notify(this.errorToError(s)), this.throwOnError) throw s;
|
|
731
732
|
} finally {
|
|
732
733
|
this.progressController.notifyBusy(!1, t);
|
|
733
734
|
}
|
|
734
735
|
}
|
|
735
736
|
async documentCollection(t) {
|
|
736
|
-
const
|
|
737
|
-
let
|
|
737
|
+
const s = "Retrieving document collection";
|
|
738
|
+
let a = [];
|
|
738
739
|
try {
|
|
739
|
-
this.progressController.notifyBusy(!0,
|
|
740
|
+
this.progressController.notifyBusy(!0, s);
|
|
740
741
|
const c = this.findDocs(t);
|
|
741
|
-
c ?
|
|
742
|
+
c ? a = await c : a = await this.queryDocs(t).get();
|
|
742
743
|
} catch (c) {
|
|
743
744
|
if (this.onChangeHdl.notify({ error: this.errorToError(c) }), this.onErrorHdl.notify(this.errorToError(c)), this.throwOnError) throw c;
|
|
744
745
|
} finally {
|
|
745
|
-
this.progressController.notifyBusy(!1,
|
|
746
|
+
this.onChangeHdl.notify({ documentCollection: a }), this.progressController.notifyBusy(!1, s);
|
|
746
747
|
}
|
|
747
|
-
return
|
|
748
|
+
return a;
|
|
748
749
|
}
|
|
749
750
|
filter(t) {
|
|
750
|
-
return t.filter((
|
|
751
|
-
var f;
|
|
752
|
-
return ((f = this._filter) == null ? void 0 : f.call(this, i)) ?? !0;
|
|
753
|
-
});
|
|
751
|
+
return t.filter((s) => this._filter?.(s) ?? !0);
|
|
754
752
|
}
|
|
755
753
|
onProgress(t) {
|
|
756
754
|
return this.progressController.onProgress(t);
|
|
@@ -759,7 +757,7 @@ const we = class we {
|
|
|
759
757
|
return this.getModel();
|
|
760
758
|
}
|
|
761
759
|
setDocument(t) {
|
|
762
|
-
return this._document !== t && (this.unsubscribeDocument && this.unsubscribeDocument(), t && (this.unsubscribeDocument = t.onChange((
|
|
760
|
+
return this._document !== t && (this.unsubscribeDocument && this.unsubscribeDocument(), t && (this.unsubscribeDocument = t.onChange((s) => this.onChangeHdl.notify({ documentProps: s }))), this._document = t, this.onChangeHdl.notify({ documentChanged: this._document })), this;
|
|
763
761
|
}
|
|
764
762
|
set document(t) {
|
|
765
763
|
this.setDocument(t);
|
|
@@ -784,61 +782,43 @@ const we = class we {
|
|
|
784
782
|
return this.onErrorHdl.subscribersCount === 0;
|
|
785
783
|
}
|
|
786
784
|
};
|
|
787
|
-
|
|
785
|
+
ne.errorMessages = {
|
|
788
786
|
missedDocument: "No document to save"
|
|
789
787
|
};
|
|
790
|
-
let
|
|
791
|
-
var
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
var
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
if (g !== void 0 && (S = "" + g), c.key !== void 0 && (S = "" + c.key), "key" in c) {
|
|
809
|
-
g = {};
|
|
810
|
-
for (var M in c)
|
|
811
|
-
M !== "key" && (g[M] = c[M]);
|
|
812
|
-
} else g = c;
|
|
813
|
-
return c = g.ref, {
|
|
814
|
-
$$typeof: r,
|
|
815
|
-
type: f,
|
|
816
|
-
key: S,
|
|
788
|
+
let Ge = ne;
|
|
789
|
+
var Te = { exports: {} }, _e = {};
|
|
790
|
+
var Qe;
|
|
791
|
+
function Ot() {
|
|
792
|
+
if (Qe) return _e;
|
|
793
|
+
Qe = 1;
|
|
794
|
+
var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
795
|
+
function s(a, c, p) {
|
|
796
|
+
var O = null;
|
|
797
|
+
if (p !== void 0 && (O = "" + p), c.key !== void 0 && (O = "" + c.key), "key" in c) {
|
|
798
|
+
p = {};
|
|
799
|
+
for (var P in c)
|
|
800
|
+
P !== "key" && (p[P] = c[P]);
|
|
801
|
+
} else p = c;
|
|
802
|
+
return c = p.ref, {
|
|
803
|
+
$$typeof: n,
|
|
804
|
+
type: a,
|
|
805
|
+
key: O,
|
|
817
806
|
ref: c !== void 0 ? c : null,
|
|
818
|
-
props:
|
|
807
|
+
props: p
|
|
819
808
|
};
|
|
820
809
|
}
|
|
821
|
-
return
|
|
810
|
+
return _e.Fragment = t, _e.jsx = s, _e.jsxs = s, _e;
|
|
822
811
|
}
|
|
823
|
-
var
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
var bt;
|
|
834
|
-
function Ft() {
|
|
835
|
-
if (bt) return R;
|
|
836
|
-
bt = 1;
|
|
837
|
-
var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), S = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), V = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), ee = Symbol.iterator;
|
|
838
|
-
function de(s) {
|
|
839
|
-
return s === null || typeof s != "object" ? null : (s = ee && s[ee] || s["@@iterator"], typeof s == "function" ? s : null);
|
|
840
|
-
}
|
|
841
|
-
var ie = {
|
|
812
|
+
var ye = {}, Oe = { exports: {} }, _ = {};
|
|
813
|
+
var Xe;
|
|
814
|
+
function Pt() {
|
|
815
|
+
if (Xe) return _;
|
|
816
|
+
Xe = 1;
|
|
817
|
+
var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), p = Symbol.for("react.consumer"), O = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), V = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), $ = Symbol.iterator;
|
|
818
|
+
function H(r) {
|
|
819
|
+
return r === null || typeof r != "object" ? null : (r = $ && r[$] || r["@@iterator"], typeof r == "function" ? r : null);
|
|
820
|
+
}
|
|
821
|
+
var Q = {
|
|
842
822
|
isMounted: function() {
|
|
843
823
|
return !1;
|
|
844
824
|
},
|
|
@@ -848,653 +828,479 @@ function Ft() {
|
|
|
848
828
|
},
|
|
849
829
|
enqueueSetState: function() {
|
|
850
830
|
}
|
|
851
|
-
},
|
|
852
|
-
function
|
|
853
|
-
this.props =
|
|
831
|
+
}, oe = Object.assign, X = {};
|
|
832
|
+
function W(r, i, f) {
|
|
833
|
+
this.props = r, this.context = i, this.refs = X, this.updater = f || Q;
|
|
854
834
|
}
|
|
855
|
-
|
|
856
|
-
if (typeof
|
|
835
|
+
W.prototype.isReactComponent = {}, W.prototype.setState = function(r, i) {
|
|
836
|
+
if (typeof r != "object" && typeof r != "function" && r != null)
|
|
857
837
|
throw Error(
|
|
858
838
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
859
839
|
);
|
|
860
|
-
this.updater.enqueueSetState(this,
|
|
861
|
-
},
|
|
862
|
-
this.updater.enqueueForceUpdate(this,
|
|
840
|
+
this.updater.enqueueSetState(this, r, i, "setState");
|
|
841
|
+
}, W.prototype.forceUpdate = function(r) {
|
|
842
|
+
this.updater.enqueueForceUpdate(this, r, "forceUpdate");
|
|
863
843
|
};
|
|
864
|
-
function
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
function
|
|
868
|
-
this.props =
|
|
869
|
-
}
|
|
870
|
-
var
|
|
871
|
-
|
|
872
|
-
var
|
|
873
|
-
function
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
844
|
+
function K() {
|
|
845
|
+
}
|
|
846
|
+
K.prototype = W.prototype;
|
|
847
|
+
function se(r, i, f) {
|
|
848
|
+
this.props = r, this.context = i, this.refs = X, this.updater = f || Q;
|
|
849
|
+
}
|
|
850
|
+
var J = se.prototype = new K();
|
|
851
|
+
J.constructor = se, oe(J, W.prototype), J.isPureReactComponent = !0;
|
|
852
|
+
var F = Array.isArray;
|
|
853
|
+
function ie() {
|
|
854
|
+
}
|
|
855
|
+
var R = { H: null, A: null, T: null, S: null }, le = Object.prototype.hasOwnProperty;
|
|
856
|
+
function N(r, i, f) {
|
|
857
|
+
var d = f.ref;
|
|
858
|
+
return {
|
|
859
|
+
$$typeof: n,
|
|
860
|
+
type: r,
|
|
861
|
+
key: i,
|
|
862
|
+
ref: d !== void 0 ? d : null,
|
|
863
|
+
props: f
|
|
880
864
|
};
|
|
881
865
|
}
|
|
882
|
-
function
|
|
883
|
-
return
|
|
884
|
-
s.type,
|
|
885
|
-
a,
|
|
886
|
-
void 0,
|
|
887
|
-
void 0,
|
|
888
|
-
void 0,
|
|
889
|
-
s.props
|
|
890
|
-
);
|
|
866
|
+
function Z(r, i) {
|
|
867
|
+
return N(r.type, i, r.props);
|
|
891
868
|
}
|
|
892
|
-
function
|
|
893
|
-
return typeof
|
|
869
|
+
function ue(r) {
|
|
870
|
+
return typeof r == "object" && r !== null && r.$$typeof === n;
|
|
894
871
|
}
|
|
895
|
-
function
|
|
896
|
-
var
|
|
897
|
-
return "$" +
|
|
898
|
-
return
|
|
872
|
+
function C(r) {
|
|
873
|
+
var i = { "=": "=0", ":": "=2" };
|
|
874
|
+
return "$" + r.replace(/[=:]/g, function(f) {
|
|
875
|
+
return i[f];
|
|
899
876
|
});
|
|
900
877
|
}
|
|
901
|
-
var
|
|
902
|
-
function
|
|
903
|
-
return typeof
|
|
904
|
-
}
|
|
905
|
-
function ne() {
|
|
878
|
+
var ee = /\/+/g;
|
|
879
|
+
function z(r, i) {
|
|
880
|
+
return typeof r == "object" && r !== null && r.key != null ? C("" + r.key) : i.toString(36);
|
|
906
881
|
}
|
|
907
|
-
function
|
|
908
|
-
switch (
|
|
882
|
+
function q(r) {
|
|
883
|
+
switch (r.status) {
|
|
909
884
|
case "fulfilled":
|
|
910
|
-
return
|
|
885
|
+
return r.value;
|
|
911
886
|
case "rejected":
|
|
912
|
-
throw
|
|
887
|
+
throw r.reason;
|
|
913
888
|
default:
|
|
914
|
-
switch (typeof
|
|
915
|
-
function(
|
|
916
|
-
|
|
889
|
+
switch (typeof r.status == "string" ? r.then(ie, ie) : (r.status = "pending", r.then(
|
|
890
|
+
function(i) {
|
|
891
|
+
r.status === "pending" && (r.status = "fulfilled", r.value = i);
|
|
917
892
|
},
|
|
918
|
-
function(
|
|
919
|
-
|
|
893
|
+
function(i) {
|
|
894
|
+
r.status === "pending" && (r.status = "rejected", r.reason = i);
|
|
920
895
|
}
|
|
921
|
-
)),
|
|
896
|
+
)), r.status) {
|
|
922
897
|
case "fulfilled":
|
|
923
|
-
return
|
|
898
|
+
return r.value;
|
|
924
899
|
case "rejected":
|
|
925
|
-
throw
|
|
900
|
+
throw r.reason;
|
|
926
901
|
}
|
|
927
902
|
}
|
|
928
|
-
throw
|
|
903
|
+
throw r;
|
|
929
904
|
}
|
|
930
|
-
function
|
|
931
|
-
var
|
|
932
|
-
(
|
|
933
|
-
var
|
|
934
|
-
if (
|
|
905
|
+
function M(r, i, f, d, g) {
|
|
906
|
+
var w = typeof r;
|
|
907
|
+
(w === "undefined" || w === "boolean") && (r = null);
|
|
908
|
+
var m = !1;
|
|
909
|
+
if (r === null) m = !0;
|
|
935
910
|
else
|
|
936
|
-
switch (
|
|
911
|
+
switch (w) {
|
|
937
912
|
case "bigint":
|
|
938
913
|
case "string":
|
|
939
914
|
case "number":
|
|
940
|
-
|
|
915
|
+
m = !0;
|
|
941
916
|
break;
|
|
942
917
|
case "object":
|
|
943
|
-
switch (
|
|
944
|
-
case
|
|
918
|
+
switch (r.$$typeof) {
|
|
919
|
+
case n:
|
|
945
920
|
case t:
|
|
946
|
-
|
|
921
|
+
m = !0;
|
|
947
922
|
break;
|
|
948
|
-
case
|
|
949
|
-
return
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
923
|
+
case I:
|
|
924
|
+
return m = r._init, M(
|
|
925
|
+
m(r._payload),
|
|
926
|
+
i,
|
|
927
|
+
f,
|
|
928
|
+
d,
|
|
929
|
+
g
|
|
955
930
|
);
|
|
956
931
|
}
|
|
957
932
|
}
|
|
958
|
-
if (
|
|
959
|
-
return
|
|
960
|
-
return
|
|
961
|
-
})) :
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
933
|
+
if (m)
|
|
934
|
+
return g = g(r), m = d === "" ? "." + z(r, 0) : d, F(g) ? (f = "", m != null && (f = m.replace(ee, "$&/") + "/"), M(g, i, f, "", function(G) {
|
|
935
|
+
return G;
|
|
936
|
+
})) : g != null && (ue(g) && (g = Z(
|
|
937
|
+
g,
|
|
938
|
+
f + (g.key == null || r && r.key === g.key ? "" : ("" + g.key).replace(
|
|
939
|
+
ee,
|
|
965
940
|
"$&/"
|
|
966
|
-
) + "/") +
|
|
967
|
-
)),
|
|
968
|
-
|
|
969
|
-
var
|
|
970
|
-
if (
|
|
971
|
-
for (var
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
941
|
+
) + "/") + m
|
|
942
|
+
)), i.push(g)), 1;
|
|
943
|
+
m = 0;
|
|
944
|
+
var A = d === "" ? "." : d + ":";
|
|
945
|
+
if (F(r))
|
|
946
|
+
for (var S = 0; S < r.length; S++)
|
|
947
|
+
d = r[S], w = A + z(d, S), m += M(
|
|
948
|
+
d,
|
|
949
|
+
i,
|
|
950
|
+
f,
|
|
951
|
+
w,
|
|
952
|
+
g
|
|
978
953
|
);
|
|
979
|
-
else if (
|
|
980
|
-
for (
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
954
|
+
else if (S = H(r), typeof S == "function")
|
|
955
|
+
for (r = S.call(r), S = 0; !(d = r.next()).done; )
|
|
956
|
+
d = d.value, w = A + z(d, S++), m += M(
|
|
957
|
+
d,
|
|
958
|
+
i,
|
|
959
|
+
f,
|
|
960
|
+
w,
|
|
961
|
+
g
|
|
987
962
|
);
|
|
988
|
-
else if (
|
|
989
|
-
if (typeof
|
|
990
|
-
return
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
963
|
+
else if (w === "object") {
|
|
964
|
+
if (typeof r.then == "function")
|
|
965
|
+
return M(
|
|
966
|
+
q(r),
|
|
967
|
+
i,
|
|
968
|
+
f,
|
|
969
|
+
d,
|
|
970
|
+
g
|
|
996
971
|
);
|
|
997
|
-
throw
|
|
998
|
-
"Objects are not valid as a React child (found: " + (
|
|
972
|
+
throw i = String(r), Error(
|
|
973
|
+
"Objects are not valid as a React child (found: " + (i === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : i) + "). If you meant to render a collection of children, use an array instead."
|
|
999
974
|
);
|
|
1000
975
|
}
|
|
1001
|
-
return
|
|
1002
|
-
}
|
|
1003
|
-
function
|
|
1004
|
-
if (
|
|
1005
|
-
var
|
|
1006
|
-
return
|
|
1007
|
-
return
|
|
1008
|
-
}),
|
|
1009
|
-
}
|
|
1010
|
-
function
|
|
1011
|
-
if (
|
|
1012
|
-
var
|
|
1013
|
-
|
|
1014
|
-
function(
|
|
1015
|
-
(
|
|
976
|
+
return m;
|
|
977
|
+
}
|
|
978
|
+
function x(r, i, f) {
|
|
979
|
+
if (r == null) return r;
|
|
980
|
+
var d = [], g = 0;
|
|
981
|
+
return M(r, d, "", "", function(w) {
|
|
982
|
+
return i.call(f, w, g++);
|
|
983
|
+
}), d;
|
|
984
|
+
}
|
|
985
|
+
function te(r) {
|
|
986
|
+
if (r._status === -1) {
|
|
987
|
+
var i = r._result;
|
|
988
|
+
i = i(), i.then(
|
|
989
|
+
function(f) {
|
|
990
|
+
(r._status === 0 || r._status === -1) && (r._status = 1, r._result = f);
|
|
1016
991
|
},
|
|
1017
|
-
function(
|
|
1018
|
-
(
|
|
992
|
+
function(f) {
|
|
993
|
+
(r._status === 0 || r._status === -1) && (r._status = 2, r._result = f);
|
|
1019
994
|
}
|
|
1020
|
-
),
|
|
995
|
+
), r._status === -1 && (r._status = 0, r._result = i);
|
|
1021
996
|
}
|
|
1022
|
-
if (
|
|
1023
|
-
throw
|
|
997
|
+
if (r._status === 1) return r._result.default;
|
|
998
|
+
throw r._result;
|
|
1024
999
|
}
|
|
1025
|
-
var
|
|
1000
|
+
var B = typeof reportError == "function" ? reportError : function(r) {
|
|
1026
1001
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1027
|
-
var
|
|
1002
|
+
var i = new window.ErrorEvent("error", {
|
|
1028
1003
|
bubbles: !0,
|
|
1029
1004
|
cancelable: !0,
|
|
1030
|
-
message: typeof
|
|
1031
|
-
error:
|
|
1005
|
+
message: typeof r == "object" && r !== null && typeof r.message == "string" ? String(r.message) : String(r),
|
|
1006
|
+
error: r
|
|
1032
1007
|
});
|
|
1033
|
-
if (!window.dispatchEvent(
|
|
1008
|
+
if (!window.dispatchEvent(i)) return;
|
|
1034
1009
|
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
1035
|
-
process.emit("uncaughtException",
|
|
1010
|
+
process.emit("uncaughtException", r);
|
|
1036
1011
|
return;
|
|
1037
1012
|
}
|
|
1038
|
-
console.error(
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
forEach: function(s, a, _) {
|
|
1045
|
-
F(
|
|
1046
|
-
s,
|
|
1013
|
+
console.error(r);
|
|
1014
|
+
}, ae = {
|
|
1015
|
+
map: x,
|
|
1016
|
+
forEach: function(r, i, f) {
|
|
1017
|
+
x(
|
|
1018
|
+
r,
|
|
1047
1019
|
function() {
|
|
1048
|
-
|
|
1020
|
+
i.apply(this, arguments);
|
|
1049
1021
|
},
|
|
1050
|
-
|
|
1022
|
+
f
|
|
1051
1023
|
);
|
|
1052
1024
|
},
|
|
1053
|
-
count: function(
|
|
1054
|
-
var
|
|
1055
|
-
return
|
|
1056
|
-
|
|
1057
|
-
}),
|
|
1025
|
+
count: function(r) {
|
|
1026
|
+
var i = 0;
|
|
1027
|
+
return x(r, function() {
|
|
1028
|
+
i++;
|
|
1029
|
+
}), i;
|
|
1058
1030
|
},
|
|
1059
|
-
toArray: function(
|
|
1060
|
-
return
|
|
1061
|
-
return
|
|
1031
|
+
toArray: function(r) {
|
|
1032
|
+
return x(r, function(i) {
|
|
1033
|
+
return i;
|
|
1062
1034
|
}) || [];
|
|
1063
1035
|
},
|
|
1064
|
-
only: function(
|
|
1065
|
-
if (!
|
|
1036
|
+
only: function(r) {
|
|
1037
|
+
if (!ue(r))
|
|
1066
1038
|
throw Error(
|
|
1067
1039
|
"React.Children.only expected to receive a single React element child."
|
|
1068
1040
|
);
|
|
1069
|
-
return
|
|
1041
|
+
return r;
|
|
1070
1042
|
}
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
|
|
1043
|
+
};
|
|
1044
|
+
return _.Activity = L, _.Children = ae, _.Component = W, _.Fragment = s, _.Profiler = c, _.PureComponent = se, _.StrictMode = a, _.Suspense = D, _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = R, _.__COMPILER_RUNTIME = {
|
|
1045
|
+
__proto__: null,
|
|
1046
|
+
c: function(r) {
|
|
1047
|
+
return R.H.useMemoCache(r);
|
|
1048
|
+
}
|
|
1049
|
+
}, _.cache = function(r) {
|
|
1074
1050
|
return function() {
|
|
1075
|
-
return
|
|
1051
|
+
return r.apply(null, arguments);
|
|
1076
1052
|
};
|
|
1077
|
-
},
|
|
1078
|
-
|
|
1053
|
+
}, _.cacheSignal = function() {
|
|
1054
|
+
return null;
|
|
1055
|
+
}, _.cloneElement = function(r, i, f) {
|
|
1056
|
+
if (r == null)
|
|
1079
1057
|
throw Error(
|
|
1080
|
-
"The argument must be a React element, but you passed " +
|
|
1058
|
+
"The argument must be a React element, but you passed " + r + "."
|
|
1081
1059
|
);
|
|
1082
|
-
var
|
|
1083
|
-
if (
|
|
1084
|
-
for (
|
|
1085
|
-
!
|
|
1086
|
-
var
|
|
1087
|
-
if (
|
|
1088
|
-
else if (1 <
|
|
1089
|
-
for (var
|
|
1090
|
-
|
|
1091
|
-
|
|
1060
|
+
var d = oe({}, r.props), g = r.key;
|
|
1061
|
+
if (i != null)
|
|
1062
|
+
for (w in i.key !== void 0 && (g = "" + i.key), i)
|
|
1063
|
+
!le.call(i, w) || w === "key" || w === "__self" || w === "__source" || w === "ref" && i.ref === void 0 || (d[w] = i[w]);
|
|
1064
|
+
var w = arguments.length - 2;
|
|
1065
|
+
if (w === 1) d.children = f;
|
|
1066
|
+
else if (1 < w) {
|
|
1067
|
+
for (var m = Array(w), A = 0; A < w; A++)
|
|
1068
|
+
m[A] = arguments[A + 2];
|
|
1069
|
+
d.children = m;
|
|
1092
1070
|
}
|
|
1093
|
-
return
|
|
1094
|
-
},
|
|
1095
|
-
return
|
|
1096
|
-
$$typeof:
|
|
1097
|
-
_currentValue:
|
|
1098
|
-
_currentValue2:
|
|
1071
|
+
return N(r.type, g, d);
|
|
1072
|
+
}, _.createContext = function(r) {
|
|
1073
|
+
return r = {
|
|
1074
|
+
$$typeof: O,
|
|
1075
|
+
_currentValue: r,
|
|
1076
|
+
_currentValue2: r,
|
|
1099
1077
|
_threadCount: 0,
|
|
1100
1078
|
Provider: null,
|
|
1101
1079
|
Consumer: null
|
|
1102
|
-
},
|
|
1103
|
-
$$typeof:
|
|
1104
|
-
_context:
|
|
1105
|
-
},
|
|
1106
|
-
},
|
|
1107
|
-
var
|
|
1108
|
-
if (
|
|
1109
|
-
for (
|
|
1110
|
-
|
|
1111
|
-
var
|
|
1112
|
-
if (
|
|
1113
|
-
else if (1 <
|
|
1114
|
-
for (var
|
|
1115
|
-
|
|
1116
|
-
|
|
1080
|
+
}, r.Provider = r, r.Consumer = {
|
|
1081
|
+
$$typeof: p,
|
|
1082
|
+
_context: r
|
|
1083
|
+
}, r;
|
|
1084
|
+
}, _.createElement = function(r, i, f) {
|
|
1085
|
+
var d, g = {}, w = null;
|
|
1086
|
+
if (i != null)
|
|
1087
|
+
for (d in i.key !== void 0 && (w = "" + i.key), i)
|
|
1088
|
+
le.call(i, d) && d !== "key" && d !== "__self" && d !== "__source" && (g[d] = i[d]);
|
|
1089
|
+
var m = arguments.length - 2;
|
|
1090
|
+
if (m === 1) g.children = f;
|
|
1091
|
+
else if (1 < m) {
|
|
1092
|
+
for (var A = Array(m), S = 0; S < m; S++)
|
|
1093
|
+
A[S] = arguments[S + 2];
|
|
1094
|
+
g.children = A;
|
|
1117
1095
|
}
|
|
1118
|
-
if (
|
|
1119
|
-
for (
|
|
1120
|
-
|
|
1121
|
-
return
|
|
1122
|
-
},
|
|
1096
|
+
if (r && r.defaultProps)
|
|
1097
|
+
for (d in m = r.defaultProps, m)
|
|
1098
|
+
g[d] === void 0 && (g[d] = m[d]);
|
|
1099
|
+
return N(r, w, g);
|
|
1100
|
+
}, _.createRef = function() {
|
|
1123
1101
|
return { current: null };
|
|
1124
|
-
},
|
|
1125
|
-
return { $$typeof:
|
|
1126
|
-
},
|
|
1102
|
+
}, _.forwardRef = function(r) {
|
|
1103
|
+
return { $$typeof: P, render: r };
|
|
1104
|
+
}, _.isValidElement = ue, _.lazy = function(r) {
|
|
1127
1105
|
return {
|
|
1128
|
-
$$typeof:
|
|
1129
|
-
_payload: { _status: -1, _result:
|
|
1130
|
-
_init:
|
|
1106
|
+
$$typeof: I,
|
|
1107
|
+
_payload: { _status: -1, _result: r },
|
|
1108
|
+
_init: te
|
|
1131
1109
|
};
|
|
1132
|
-
},
|
|
1110
|
+
}, _.memo = function(r, i) {
|
|
1133
1111
|
return {
|
|
1134
1112
|
$$typeof: V,
|
|
1135
|
-
type:
|
|
1136
|
-
compare:
|
|
1113
|
+
type: r,
|
|
1114
|
+
compare: i === void 0 ? null : i
|
|
1137
1115
|
};
|
|
1138
|
-
},
|
|
1139
|
-
var
|
|
1140
|
-
|
|
1116
|
+
}, _.startTransition = function(r) {
|
|
1117
|
+
var i = R.T, f = {};
|
|
1118
|
+
R.T = f;
|
|
1141
1119
|
try {
|
|
1142
|
-
var
|
|
1143
|
-
|
|
1144
|
-
} catch (
|
|
1145
|
-
|
|
1120
|
+
var d = r(), g = R.S;
|
|
1121
|
+
g !== null && g(f, d), typeof d == "object" && d !== null && typeof d.then == "function" && d.then(ie, B);
|
|
1122
|
+
} catch (w) {
|
|
1123
|
+
B(w);
|
|
1146
1124
|
} finally {
|
|
1147
|
-
|
|
1125
|
+
i !== null && f.types !== null && (i.types = f.types), R.T = i;
|
|
1148
1126
|
}
|
|
1149
|
-
},
|
|
1150
|
-
return
|
|
1151
|
-
},
|
|
1152
|
-
return
|
|
1153
|
-
},
|
|
1154
|
-
return
|
|
1155
|
-
},
|
|
1156
|
-
return
|
|
1157
|
-
},
|
|
1158
|
-
return
|
|
1159
|
-
},
|
|
1160
|
-
},
|
|
1161
|
-
return
|
|
1162
|
-
},
|
|
1163
|
-
return
|
|
1164
|
-
},
|
|
1165
|
-
return
|
|
1166
|
-
},
|
|
1167
|
-
return
|
|
1168
|
-
},
|
|
1169
|
-
return
|
|
1170
|
-
},
|
|
1171
|
-
return
|
|
1172
|
-
},
|
|
1173
|
-
return
|
|
1174
|
-
},
|
|
1175
|
-
return
|
|
1176
|
-
},
|
|
1177
|
-
return
|
|
1178
|
-
},
|
|
1179
|
-
return
|
|
1180
|
-
},
|
|
1181
|
-
return
|
|
1182
|
-
},
|
|
1183
|
-
return
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1127
|
+
}, _.unstable_useCacheRefresh = function() {
|
|
1128
|
+
return R.H.useCacheRefresh();
|
|
1129
|
+
}, _.use = function(r) {
|
|
1130
|
+
return R.H.use(r);
|
|
1131
|
+
}, _.useActionState = function(r, i, f) {
|
|
1132
|
+
return R.H.useActionState(r, i, f);
|
|
1133
|
+
}, _.useCallback = function(r, i) {
|
|
1134
|
+
return R.H.useCallback(r, i);
|
|
1135
|
+
}, _.useContext = function(r) {
|
|
1136
|
+
return R.H.useContext(r);
|
|
1137
|
+
}, _.useDebugValue = function() {
|
|
1138
|
+
}, _.useDeferredValue = function(r, i) {
|
|
1139
|
+
return R.H.useDeferredValue(r, i);
|
|
1140
|
+
}, _.useEffect = function(r, i) {
|
|
1141
|
+
return R.H.useEffect(r, i);
|
|
1142
|
+
}, _.useEffectEvent = function(r) {
|
|
1143
|
+
return R.H.useEffectEvent(r);
|
|
1144
|
+
}, _.useId = function() {
|
|
1145
|
+
return R.H.useId();
|
|
1146
|
+
}, _.useImperativeHandle = function(r, i, f) {
|
|
1147
|
+
return R.H.useImperativeHandle(r, i, f);
|
|
1148
|
+
}, _.useInsertionEffect = function(r, i) {
|
|
1149
|
+
return R.H.useInsertionEffect(r, i);
|
|
1150
|
+
}, _.useLayoutEffect = function(r, i) {
|
|
1151
|
+
return R.H.useLayoutEffect(r, i);
|
|
1152
|
+
}, _.useMemo = function(r, i) {
|
|
1153
|
+
return R.H.useMemo(r, i);
|
|
1154
|
+
}, _.useOptimistic = function(r, i) {
|
|
1155
|
+
return R.H.useOptimistic(r, i);
|
|
1156
|
+
}, _.useReducer = function(r, i, f) {
|
|
1157
|
+
return R.H.useReducer(r, i, f);
|
|
1158
|
+
}, _.useRef = function(r) {
|
|
1159
|
+
return R.H.useRef(r);
|
|
1160
|
+
}, _.useState = function(r) {
|
|
1161
|
+
return R.H.useState(r);
|
|
1162
|
+
}, _.useSyncExternalStore = function(r, i, f) {
|
|
1163
|
+
return R.H.useSyncExternalStore(
|
|
1164
|
+
r,
|
|
1165
|
+
i,
|
|
1166
|
+
f
|
|
1187
1167
|
);
|
|
1188
|
-
},
|
|
1189
|
-
return
|
|
1190
|
-
},
|
|
1168
|
+
}, _.useTransition = function() {
|
|
1169
|
+
return R.H.useTransition();
|
|
1170
|
+
}, _.version = "19.2.3", _;
|
|
1191
1171
|
}
|
|
1192
|
-
var
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1198
|
-
*
|
|
1199
|
-
* This source code is licensed under the MIT license found in the
|
|
1200
|
-
* LICENSE file in the root directory of this source tree.
|
|
1201
|
-
*/
|
|
1202
|
-
We.exports;
|
|
1203
|
-
var wt;
|
|
1204
|
-
function Gt() {
|
|
1205
|
-
return wt || (wt = 1, function(r, t) {
|
|
1172
|
+
var ve = { exports: {} };
|
|
1173
|
+
ve.exports;
|
|
1174
|
+
var Ke;
|
|
1175
|
+
function St() {
|
|
1176
|
+
return Ke || (Ke = 1, function(n, t) {
|
|
1206
1177
|
process.env.NODE_ENV !== "production" && function() {
|
|
1207
|
-
function
|
|
1208
|
-
Object.defineProperty(
|
|
1178
|
+
function s(e, o) {
|
|
1179
|
+
Object.defineProperty(p.prototype, e, {
|
|
1209
1180
|
get: function() {
|
|
1210
1181
|
console.warn(
|
|
1211
1182
|
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
1212
|
-
|
|
1213
|
-
|
|
1183
|
+
o[0],
|
|
1184
|
+
o[1]
|
|
1214
1185
|
);
|
|
1215
1186
|
}
|
|
1216
1187
|
});
|
|
1217
1188
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return e === null || typeof e != "object" ? null : (e =
|
|
1189
|
+
function a(e) {
|
|
1190
|
+
return e === null || typeof e != "object" ? null : (e = Ne && e[Ne] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1220
1191
|
}
|
|
1221
|
-
function c(e,
|
|
1192
|
+
function c(e, o) {
|
|
1222
1193
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
1223
|
-
var u = e + "." +
|
|
1224
|
-
|
|
1194
|
+
var u = e + "." + o;
|
|
1195
|
+
Me[u] || (console.error(
|
|
1225
1196
|
"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.",
|
|
1226
|
-
|
|
1197
|
+
o,
|
|
1227
1198
|
e
|
|
1228
|
-
),
|
|
1199
|
+
), Me[u] = !0);
|
|
1229
1200
|
}
|
|
1230
|
-
function
|
|
1231
|
-
this.props = e, this.context =
|
|
1201
|
+
function p(e, o, u) {
|
|
1202
|
+
this.props = e, this.context = o, this.refs = Se, this.updater = u || Ie;
|
|
1232
1203
|
}
|
|
1233
|
-
function
|
|
1204
|
+
function O() {
|
|
1234
1205
|
}
|
|
1235
|
-
function
|
|
1236
|
-
this.props = e, this.context =
|
|
1206
|
+
function P(e, o, u) {
|
|
1207
|
+
this.props = e, this.context = o, this.refs = Se, this.updater = u || Ie;
|
|
1237
1208
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return "" + e;
|
|
1209
|
+
function D() {
|
|
1240
1210
|
}
|
|
1241
1211
|
function V(e) {
|
|
1212
|
+
return "" + e;
|
|
1213
|
+
}
|
|
1214
|
+
function I(e) {
|
|
1242
1215
|
try {
|
|
1243
|
-
|
|
1244
|
-
var
|
|
1216
|
+
V(e);
|
|
1217
|
+
var o = !1;
|
|
1245
1218
|
} catch {
|
|
1246
|
-
|
|
1219
|
+
o = !0;
|
|
1247
1220
|
}
|
|
1248
|
-
if (
|
|
1249
|
-
|
|
1250
|
-
var u =
|
|
1221
|
+
if (o) {
|
|
1222
|
+
o = console;
|
|
1223
|
+
var u = o.error, l = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
1251
1224
|
return u.call(
|
|
1252
|
-
|
|
1225
|
+
o,
|
|
1253
1226
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1254
1227
|
l
|
|
1255
|
-
),
|
|
1228
|
+
), V(e);
|
|
1256
1229
|
}
|
|
1257
1230
|
}
|
|
1258
|
-
function
|
|
1231
|
+
function L(e) {
|
|
1259
1232
|
if (e == null) return null;
|
|
1260
1233
|
if (typeof e == "function")
|
|
1261
|
-
return e.$$typeof ===
|
|
1234
|
+
return e.$$typeof === st ? null : e.displayName || e.name || null;
|
|
1262
1235
|
if (typeof e == "string") return e;
|
|
1263
1236
|
switch (e) {
|
|
1264
|
-
case
|
|
1237
|
+
case r:
|
|
1265
1238
|
return "Fragment";
|
|
1266
|
-
case
|
|
1267
|
-
return "Portal";
|
|
1268
|
-
case Me:
|
|
1239
|
+
case f:
|
|
1269
1240
|
return "Profiler";
|
|
1270
|
-
case
|
|
1241
|
+
case i:
|
|
1271
1242
|
return "StrictMode";
|
|
1272
|
-
case
|
|
1243
|
+
case m:
|
|
1273
1244
|
return "Suspense";
|
|
1274
|
-
case
|
|
1245
|
+
case A:
|
|
1275
1246
|
return "SuspenseList";
|
|
1247
|
+
case De:
|
|
1248
|
+
return "Activity";
|
|
1276
1249
|
}
|
|
1277
1250
|
if (typeof e == "object")
|
|
1278
1251
|
switch (typeof e.tag == "number" && console.error(
|
|
1279
1252
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1280
1253
|
), e.$$typeof) {
|
|
1281
|
-
case
|
|
1282
|
-
return
|
|
1283
|
-
case
|
|
1254
|
+
case ae:
|
|
1255
|
+
return "Portal";
|
|
1256
|
+
case g:
|
|
1257
|
+
return e.displayName || "Context";
|
|
1258
|
+
case d:
|
|
1284
1259
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
1285
|
-
case
|
|
1286
|
-
var
|
|
1287
|
-
return e = e.displayName, e || (e =
|
|
1288
|
-
case
|
|
1289
|
-
return
|
|
1290
|
-
case
|
|
1291
|
-
|
|
1260
|
+
case w:
|
|
1261
|
+
var o = e.render;
|
|
1262
|
+
return e = e.displayName, e || (e = o.displayName || o.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
1263
|
+
case S:
|
|
1264
|
+
return o = e.displayName || null, o !== null ? o : L(e.type) || "Memo";
|
|
1265
|
+
case G:
|
|
1266
|
+
o = e._payload, e = e._init;
|
|
1292
1267
|
try {
|
|
1293
|
-
return
|
|
1268
|
+
return L(e(o));
|
|
1294
1269
|
} catch {
|
|
1295
1270
|
}
|
|
1296
1271
|
}
|
|
1297
1272
|
return null;
|
|
1298
1273
|
}
|
|
1299
|
-
function
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
}
|
|
1304
|
-
function ie() {
|
|
1305
|
-
if (G === 0) {
|
|
1306
|
-
be = console.log, Z = console.info, Ae = console.warn, Q = console.error, st = console.group, it = console.groupCollapsed, ut = console.groupEnd;
|
|
1307
|
-
var e = {
|
|
1308
|
-
configurable: !0,
|
|
1309
|
-
enumerable: !0,
|
|
1310
|
-
value: de,
|
|
1311
|
-
writable: !0
|
|
1312
|
-
};
|
|
1313
|
-
Object.defineProperties(console, {
|
|
1314
|
-
info: e,
|
|
1315
|
-
log: e,
|
|
1316
|
-
warn: e,
|
|
1317
|
-
error: e,
|
|
1318
|
-
group: e,
|
|
1319
|
-
groupCollapsed: e,
|
|
1320
|
-
groupEnd: e
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
G++;
|
|
1324
|
-
}
|
|
1325
|
-
function ue() {
|
|
1326
|
-
if (G--, G === 0) {
|
|
1327
|
-
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
1328
|
-
Object.defineProperties(console, {
|
|
1329
|
-
log: d({}, e, { value: be }),
|
|
1330
|
-
info: d({}, e, { value: Z }),
|
|
1331
|
-
warn: d({}, e, { value: Ae }),
|
|
1332
|
-
error: d({}, e, { value: Q }),
|
|
1333
|
-
group: d({}, e, { value: st }),
|
|
1334
|
-
groupCollapsed: d({}, e, { value: it }),
|
|
1335
|
-
groupEnd: d({}, e, { value: ut })
|
|
1336
|
-
});
|
|
1337
|
-
}
|
|
1338
|
-
0 > G && console.error(
|
|
1339
|
-
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
1340
|
-
);
|
|
1341
|
-
}
|
|
1342
|
-
function te(e) {
|
|
1343
|
-
if (Ze === void 0)
|
|
1344
|
-
try {
|
|
1345
|
-
throw Error();
|
|
1346
|
-
} catch (u) {
|
|
1347
|
-
var n = u.stack.trim().match(/\n( *(at )?)/);
|
|
1348
|
-
Ze = n && n[1] || "", at = -1 < u.stack.indexOf(`
|
|
1349
|
-
at`) ? " (<anonymous>)" : -1 < u.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
1350
|
-
}
|
|
1351
|
-
return `
|
|
1352
|
-
` + Ze + e + at;
|
|
1353
|
-
}
|
|
1354
|
-
function B(e, n) {
|
|
1355
|
-
if (!e || et) return "";
|
|
1356
|
-
var u = tt.get(e);
|
|
1357
|
-
if (u !== void 0) return u;
|
|
1358
|
-
et = !0, u = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
1359
|
-
var l = null;
|
|
1360
|
-
l = E.H, E.H = null, ie();
|
|
1274
|
+
function $(e) {
|
|
1275
|
+
if (e === r) return "<>";
|
|
1276
|
+
if (typeof e == "object" && e !== null && e.$$typeof === G)
|
|
1277
|
+
return "<...>";
|
|
1361
1278
|
try {
|
|
1362
|
-
var
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
var se = function() {
|
|
1367
|
-
throw Error();
|
|
1368
|
-
};
|
|
1369
|
-
if (Object.defineProperty(se.prototype, "props", {
|
|
1370
|
-
set: function() {
|
|
1371
|
-
throw Error();
|
|
1372
|
-
}
|
|
1373
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1374
|
-
try {
|
|
1375
|
-
Reflect.construct(se, []);
|
|
1376
|
-
} catch (fe) {
|
|
1377
|
-
var Ke = fe;
|
|
1378
|
-
}
|
|
1379
|
-
Reflect.construct(e, [], se);
|
|
1380
|
-
} else {
|
|
1381
|
-
try {
|
|
1382
|
-
se.call();
|
|
1383
|
-
} catch (fe) {
|
|
1384
|
-
Ke = fe;
|
|
1385
|
-
}
|
|
1386
|
-
e.call(se.prototype);
|
|
1387
|
-
}
|
|
1388
|
-
} else {
|
|
1389
|
-
try {
|
|
1390
|
-
throw Error();
|
|
1391
|
-
} catch (fe) {
|
|
1392
|
-
Ke = fe;
|
|
1393
|
-
}
|
|
1394
|
-
(se = e()) && typeof se.catch == "function" && se.catch(function() {
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
} catch (fe) {
|
|
1398
|
-
if (fe && Ke && typeof fe.stack == "string")
|
|
1399
|
-
return [fe.stack, Ke.stack];
|
|
1400
|
-
}
|
|
1401
|
-
return [null, null];
|
|
1402
|
-
}
|
|
1403
|
-
};
|
|
1404
|
-
p.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
1405
|
-
var v = Object.getOwnPropertyDescriptor(
|
|
1406
|
-
p.DetermineComponentFrameRoot,
|
|
1407
|
-
"name"
|
|
1408
|
-
);
|
|
1409
|
-
v && v.configurable && Object.defineProperty(
|
|
1410
|
-
p.DetermineComponentFrameRoot,
|
|
1411
|
-
"name",
|
|
1412
|
-
{ value: "DetermineComponentFrameRoot" }
|
|
1413
|
-
);
|
|
1414
|
-
var m = p.DetermineComponentFrameRoot(), P = m[0], T = m[1];
|
|
1415
|
-
if (P && T) {
|
|
1416
|
-
var $ = P.split(`
|
|
1417
|
-
`), z = T.split(`
|
|
1418
|
-
`);
|
|
1419
|
-
for (m = v = 0; v < $.length && !$[v].includes(
|
|
1420
|
-
"DetermineComponentFrameRoot"
|
|
1421
|
-
); )
|
|
1422
|
-
v++;
|
|
1423
|
-
for (; m < z.length && !z[m].includes(
|
|
1424
|
-
"DetermineComponentFrameRoot"
|
|
1425
|
-
); )
|
|
1426
|
-
m++;
|
|
1427
|
-
if (v === $.length || m === z.length)
|
|
1428
|
-
for (v = $.length - 1, m = z.length - 1; 1 <= v && 0 <= m && $[v] !== z[m]; )
|
|
1429
|
-
m--;
|
|
1430
|
-
for (; 1 <= v && 0 <= m; v--, m--)
|
|
1431
|
-
if ($[v] !== z[m]) {
|
|
1432
|
-
if (v !== 1 || m !== 1)
|
|
1433
|
-
do
|
|
1434
|
-
if (v--, m--, 0 > m || $[v] !== z[m]) {
|
|
1435
|
-
var Ne = `
|
|
1436
|
-
` + $[v].replace(
|
|
1437
|
-
" at new ",
|
|
1438
|
-
" at "
|
|
1439
|
-
);
|
|
1440
|
-
return e.displayName && Ne.includes("<anonymous>") && (Ne = Ne.replace("<anonymous>", e.displayName)), typeof e == "function" && tt.set(e, Ne), Ne;
|
|
1441
|
-
}
|
|
1442
|
-
while (1 <= v && 0 <= m);
|
|
1443
|
-
break;
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
} finally {
|
|
1447
|
-
et = !1, E.H = l, ue(), Error.prepareStackTrace = u;
|
|
1448
|
-
}
|
|
1449
|
-
return $ = ($ = e ? e.displayName || e.name : "") ? te($) : "", typeof e == "function" && tt.set(e, $), $;
|
|
1450
|
-
}
|
|
1451
|
-
function ae(e) {
|
|
1452
|
-
if (e == null) return "";
|
|
1453
|
-
if (typeof e == "function") {
|
|
1454
|
-
var n = e.prototype;
|
|
1455
|
-
return B(
|
|
1456
|
-
e,
|
|
1457
|
-
!(!n || !n.isReactComponent)
|
|
1458
|
-
);
|
|
1459
|
-
}
|
|
1460
|
-
if (typeof e == "string") return te(e);
|
|
1461
|
-
switch (e) {
|
|
1462
|
-
case Ee:
|
|
1463
|
-
return te("Suspense");
|
|
1464
|
-
case je:
|
|
1465
|
-
return te("SuspenseList");
|
|
1279
|
+
var o = L(e);
|
|
1280
|
+
return o ? "<" + o + ">" : "<...>";
|
|
1281
|
+
} catch {
|
|
1282
|
+
return "<...>";
|
|
1466
1283
|
}
|
|
1467
|
-
if (typeof e == "object")
|
|
1468
|
-
switch (e.$$typeof) {
|
|
1469
|
-
case Se:
|
|
1470
|
-
return e = B(e.render, !1), e;
|
|
1471
|
-
case Pe:
|
|
1472
|
-
return ae(e.type);
|
|
1473
|
-
case _e:
|
|
1474
|
-
n = e._payload, e = e._init;
|
|
1475
|
-
try {
|
|
1476
|
-
return ae(e(n));
|
|
1477
|
-
} catch {
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
return "";
|
|
1481
1284
|
}
|
|
1482
|
-
function
|
|
1483
|
-
var e =
|
|
1285
|
+
function H() {
|
|
1286
|
+
var e = v.A;
|
|
1484
1287
|
return e === null ? null : e.getOwner();
|
|
1485
1288
|
}
|
|
1486
|
-
function
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1289
|
+
function Q() {
|
|
1290
|
+
return Error("react-stack-top-frame");
|
|
1291
|
+
}
|
|
1292
|
+
function oe(e) {
|
|
1293
|
+
if (be.call(e, "key")) {
|
|
1294
|
+
var o = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
1295
|
+
if (o && o.isReactWarning) return !1;
|
|
1490
1296
|
}
|
|
1491
1297
|
return e.key !== void 0;
|
|
1492
1298
|
}
|
|
1493
|
-
function
|
|
1299
|
+
function X(e, o) {
|
|
1494
1300
|
function u() {
|
|
1495
|
-
|
|
1301
|
+
He || (He = !0, console.error(
|
|
1496
1302
|
"%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)",
|
|
1497
|
-
|
|
1303
|
+
o
|
|
1498
1304
|
));
|
|
1499
1305
|
}
|
|
1500
1306
|
u.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
@@ -1502,22 +1308,23 @@ function Gt() {
|
|
|
1502
1308
|
configurable: !0
|
|
1503
1309
|
});
|
|
1504
1310
|
}
|
|
1505
|
-
function
|
|
1506
|
-
var e =
|
|
1507
|
-
return
|
|
1311
|
+
function W() {
|
|
1312
|
+
var e = L(this.type);
|
|
1313
|
+
return qe[e] || (qe[e] = !0, console.error(
|
|
1508
1314
|
"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."
|
|
1509
1315
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
1510
1316
|
}
|
|
1511
|
-
function
|
|
1512
|
-
|
|
1513
|
-
|
|
1317
|
+
function K(e, o, u, l, h, E) {
|
|
1318
|
+
var y = u.ref;
|
|
1319
|
+
return e = {
|
|
1320
|
+
$$typeof: B,
|
|
1514
1321
|
type: e,
|
|
1515
|
-
key:
|
|
1516
|
-
props:
|
|
1517
|
-
_owner:
|
|
1518
|
-
}, (
|
|
1322
|
+
key: o,
|
|
1323
|
+
props: u,
|
|
1324
|
+
_owner: l
|
|
1325
|
+
}, (y !== void 0 ? y : null) !== null ? Object.defineProperty(e, "ref", {
|
|
1519
1326
|
enumerable: !1,
|
|
1520
|
-
get:
|
|
1327
|
+
get: W
|
|
1521
1328
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
1522
1329
|
configurable: !1,
|
|
1523
1330
|
enumerable: !1,
|
|
@@ -1528,83 +1335,56 @@ function Gt() {
|
|
|
1528
1335
|
enumerable: !1,
|
|
1529
1336
|
writable: !0,
|
|
1530
1337
|
value: null
|
|
1338
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
1339
|
+
configurable: !1,
|
|
1340
|
+
enumerable: !1,
|
|
1341
|
+
writable: !0,
|
|
1342
|
+
value: h
|
|
1343
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
1344
|
+
configurable: !1,
|
|
1345
|
+
enumerable: !1,
|
|
1346
|
+
writable: !0,
|
|
1347
|
+
value: E
|
|
1531
1348
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
1532
1349
|
}
|
|
1533
|
-
function
|
|
1534
|
-
return
|
|
1350
|
+
function se(e, o) {
|
|
1351
|
+
return o = K(
|
|
1535
1352
|
e.type,
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
void 0,
|
|
1353
|
+
o,
|
|
1354
|
+
e.props,
|
|
1539
1355
|
e._owner,
|
|
1540
|
-
e.
|
|
1541
|
-
|
|
1356
|
+
e._debugStack,
|
|
1357
|
+
e._debugTask
|
|
1358
|
+
), e._store && (o._store.validated = e._store.validated), o;
|
|
1542
1359
|
}
|
|
1543
|
-
function
|
|
1544
|
-
|
|
1545
|
-
if (N(e))
|
|
1546
|
-
for (var u = 0; u < e.length; u++) {
|
|
1547
|
-
var l = e[u];
|
|
1548
|
-
L(l) && Re(l, n);
|
|
1549
|
-
}
|
|
1550
|
-
else if (L(e))
|
|
1551
|
-
e._store && (e._store.validated = 1);
|
|
1552
|
-
else if (u = f(e), typeof u == "function" && u !== e.entries && (u = u.call(e), u !== e))
|
|
1553
|
-
for (; !(e = u.next()).done; )
|
|
1554
|
-
L(e.value) && Re(e.value, n);
|
|
1555
|
-
}
|
|
1360
|
+
function J(e) {
|
|
1361
|
+
F(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === G && (e._payload.status === "fulfilled" ? F(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
1556
1362
|
}
|
|
1557
|
-
function
|
|
1558
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
1363
|
+
function F(e) {
|
|
1364
|
+
return typeof e == "object" && e !== null && e.$$typeof === B;
|
|
1559
1365
|
}
|
|
1560
|
-
function
|
|
1561
|
-
|
|
1562
|
-
dt[n] = !0;
|
|
1563
|
-
var u = "";
|
|
1564
|
-
e && e._owner != null && e._owner !== re() && (u = null, typeof e._owner.tag == "number" ? u = q(e._owner.type) : typeof e._owner.name == "string" && (u = e._owner.name), u = " It was passed a child from " + u + ".");
|
|
1565
|
-
var l = E.getCurrentStack;
|
|
1566
|
-
E.getCurrentStack = function() {
|
|
1567
|
-
var p = ae(e.type);
|
|
1568
|
-
return l && (p += l() || ""), p;
|
|
1569
|
-
}, console.error(
|
|
1570
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
1571
|
-
n,
|
|
1572
|
-
u
|
|
1573
|
-
), E.getCurrentStack = l;
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
function ge(e) {
|
|
1577
|
-
var n = "", u = re();
|
|
1578
|
-
return u && (u = q(u.type)) && (n = `
|
|
1579
|
-
|
|
1580
|
-
Check the render method of \`` + u + "`."), n || (e = q(e)) && (n = `
|
|
1581
|
-
|
|
1582
|
-
Check the top-level render call using <` + e + ">."), n;
|
|
1583
|
-
}
|
|
1584
|
-
function ce(e) {
|
|
1585
|
-
var n = { "=": "=0", ":": "=2" };
|
|
1366
|
+
function ie(e) {
|
|
1367
|
+
var o = { "=": "=0", ":": "=2" };
|
|
1586
1368
|
return "$" + e.replace(/[=:]/g, function(u) {
|
|
1587
|
-
return
|
|
1369
|
+
return o[u];
|
|
1588
1370
|
});
|
|
1589
1371
|
}
|
|
1590
|
-
function
|
|
1591
|
-
return typeof e == "object" && e !== null && e.key != null ? (
|
|
1592
|
-
}
|
|
1593
|
-
function ve() {
|
|
1372
|
+
function R(e, o) {
|
|
1373
|
+
return typeof e == "object" && e !== null && e.key != null ? (I(e.key), ie("" + e.key)) : o.toString(36);
|
|
1594
1374
|
}
|
|
1595
|
-
function
|
|
1375
|
+
function le(e) {
|
|
1596
1376
|
switch (e.status) {
|
|
1597
1377
|
case "fulfilled":
|
|
1598
1378
|
return e.value;
|
|
1599
1379
|
case "rejected":
|
|
1600
1380
|
throw e.reason;
|
|
1601
1381
|
default:
|
|
1602
|
-
switch (typeof e.status == "string" ? e.then(
|
|
1603
|
-
function(
|
|
1604
|
-
e.status === "pending" && (e.status = "fulfilled", e.value =
|
|
1382
|
+
switch (typeof e.status == "string" ? e.then(D, D) : (e.status = "pending", e.then(
|
|
1383
|
+
function(o) {
|
|
1384
|
+
e.status === "pending" && (e.status = "fulfilled", e.value = o);
|
|
1605
1385
|
},
|
|
1606
|
-
function(
|
|
1607
|
-
e.status === "pending" && (e.status = "rejected", e.reason =
|
|
1386
|
+
function(o) {
|
|
1387
|
+
e.status === "pending" && (e.status = "rejected", e.reason = o);
|
|
1608
1388
|
}
|
|
1609
1389
|
)), e.status) {
|
|
1610
1390
|
case "fulfilled":
|
|
@@ -1615,121 +1395,136 @@ Check the top-level render call using <` + e + ">."), n;
|
|
|
1615
1395
|
}
|
|
1616
1396
|
throw e;
|
|
1617
1397
|
}
|
|
1618
|
-
function
|
|
1619
|
-
var
|
|
1620
|
-
(
|
|
1621
|
-
var
|
|
1622
|
-
if (e === null)
|
|
1398
|
+
function N(e, o, u, l, h) {
|
|
1399
|
+
var E = typeof e;
|
|
1400
|
+
(E === "undefined" || E === "boolean") && (e = null);
|
|
1401
|
+
var y = !1;
|
|
1402
|
+
if (e === null) y = !0;
|
|
1623
1403
|
else
|
|
1624
|
-
switch (
|
|
1404
|
+
switch (E) {
|
|
1625
1405
|
case "bigint":
|
|
1626
1406
|
case "string":
|
|
1627
1407
|
case "number":
|
|
1628
|
-
|
|
1408
|
+
y = !0;
|
|
1629
1409
|
break;
|
|
1630
1410
|
case "object":
|
|
1631
1411
|
switch (e.$$typeof) {
|
|
1632
|
-
case
|
|
1633
|
-
case
|
|
1634
|
-
|
|
1412
|
+
case B:
|
|
1413
|
+
case ae:
|
|
1414
|
+
y = !0;
|
|
1635
1415
|
break;
|
|
1636
|
-
case
|
|
1637
|
-
return
|
|
1638
|
-
|
|
1639
|
-
|
|
1416
|
+
case G:
|
|
1417
|
+
return y = e._init, N(
|
|
1418
|
+
y(e._payload),
|
|
1419
|
+
o,
|
|
1640
1420
|
u,
|
|
1641
1421
|
l,
|
|
1642
|
-
|
|
1422
|
+
h
|
|
1643
1423
|
);
|
|
1644
1424
|
}
|
|
1645
1425
|
}
|
|
1646
|
-
if (
|
|
1647
|
-
|
|
1648
|
-
var
|
|
1649
|
-
return
|
|
1650
|
-
return
|
|
1651
|
-
})) :
|
|
1652
|
-
|
|
1653
|
-
u + (
|
|
1654
|
-
|
|
1426
|
+
if (y) {
|
|
1427
|
+
y = e, h = h(y);
|
|
1428
|
+
var T = l === "" ? "." + R(y, 0) : l;
|
|
1429
|
+
return Ye(h) ? (u = "", T != null && (u = T.replace($e, "$&/") + "/"), N(h, o, u, "", function(re) {
|
|
1430
|
+
return re;
|
|
1431
|
+
})) : h != null && (F(h) && (h.key != null && (y && y.key === h.key || I(h.key)), u = se(
|
|
1432
|
+
h,
|
|
1433
|
+
u + (h.key == null || y && y.key === h.key ? "" : ("" + h.key).replace(
|
|
1434
|
+
$e,
|
|
1655
1435
|
"$&/"
|
|
1656
|
-
) + "/") +
|
|
1657
|
-
), l !== "" &&
|
|
1436
|
+
) + "/") + T
|
|
1437
|
+
), l !== "" && y != null && F(y) && y.key == null && y._store && !y._store.validated && (u._store.validated = 2), h = u), o.push(h)), 1;
|
|
1658
1438
|
}
|
|
1659
|
-
if (
|
|
1660
|
-
for (var
|
|
1661
|
-
l = e[
|
|
1439
|
+
if (y = 0, T = l === "" ? "." : l + ":", Ye(e))
|
|
1440
|
+
for (var b = 0; b < e.length; b++)
|
|
1441
|
+
l = e[b], E = T + R(l, b), y += N(
|
|
1662
1442
|
l,
|
|
1663
|
-
|
|
1443
|
+
o,
|
|
1664
1444
|
u,
|
|
1665
|
-
|
|
1666
|
-
|
|
1445
|
+
E,
|
|
1446
|
+
h
|
|
1667
1447
|
);
|
|
1668
|
-
else if (
|
|
1669
|
-
for (
|
|
1448
|
+
else if (b = a(e), typeof b == "function")
|
|
1449
|
+
for (b === e.entries && (xe || console.warn(
|
|
1670
1450
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
1671
|
-
),
|
|
1672
|
-
l = l.value,
|
|
1451
|
+
), xe = !0), e = b.call(e), b = 0; !(l = e.next()).done; )
|
|
1452
|
+
l = l.value, E = T + R(l, b++), y += N(
|
|
1673
1453
|
l,
|
|
1674
|
-
|
|
1454
|
+
o,
|
|
1675
1455
|
u,
|
|
1676
|
-
|
|
1677
|
-
|
|
1456
|
+
E,
|
|
1457
|
+
h
|
|
1678
1458
|
);
|
|
1679
|
-
else if (
|
|
1459
|
+
else if (E === "object") {
|
|
1680
1460
|
if (typeof e.then == "function")
|
|
1681
|
-
return
|
|
1682
|
-
|
|
1683
|
-
|
|
1461
|
+
return N(
|
|
1462
|
+
le(e),
|
|
1463
|
+
o,
|
|
1684
1464
|
u,
|
|
1685
1465
|
l,
|
|
1686
|
-
|
|
1466
|
+
h
|
|
1687
1467
|
);
|
|
1688
|
-
throw
|
|
1689
|
-
"Objects are not valid as a React child (found: " + (
|
|
1468
|
+
throw o = String(e), Error(
|
|
1469
|
+
"Objects are not valid as a React child (found: " + (o === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : o) + "). If you meant to render a collection of children, use an array instead."
|
|
1690
1470
|
);
|
|
1691
1471
|
}
|
|
1692
|
-
return
|
|
1472
|
+
return y;
|
|
1693
1473
|
}
|
|
1694
|
-
function
|
|
1474
|
+
function Z(e, o, u) {
|
|
1695
1475
|
if (e == null) return e;
|
|
1696
|
-
var l = [],
|
|
1697
|
-
return
|
|
1698
|
-
return
|
|
1476
|
+
var l = [], h = 0;
|
|
1477
|
+
return N(e, l, "", "", function(E) {
|
|
1478
|
+
return o.call(u, E, h++);
|
|
1699
1479
|
}), l;
|
|
1700
1480
|
}
|
|
1701
|
-
function
|
|
1481
|
+
function ue(e) {
|
|
1702
1482
|
if (e._status === -1) {
|
|
1703
|
-
var
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1483
|
+
var o = e._ioInfo;
|
|
1484
|
+
o != null && (o.start = o.end = performance.now()), o = e._result;
|
|
1485
|
+
var u = o();
|
|
1486
|
+
if (u.then(
|
|
1487
|
+
function(h) {
|
|
1488
|
+
if (e._status === 0 || e._status === -1) {
|
|
1489
|
+
e._status = 1, e._result = h;
|
|
1490
|
+
var E = e._ioInfo;
|
|
1491
|
+
E != null && (E.end = performance.now()), u.status === void 0 && (u.status = "fulfilled", u.value = h);
|
|
1492
|
+
}
|
|
1707
1493
|
},
|
|
1708
|
-
function(
|
|
1709
|
-
(e._status === 0 || e._status === -1)
|
|
1494
|
+
function(h) {
|
|
1495
|
+
if (e._status === 0 || e._status === -1) {
|
|
1496
|
+
e._status = 2, e._result = h;
|
|
1497
|
+
var E = e._ioInfo;
|
|
1498
|
+
E != null && (E.end = performance.now()), u.status === void 0 && (u.status = "rejected", u.reason = h);
|
|
1499
|
+
}
|
|
1710
1500
|
}
|
|
1711
|
-
),
|
|
1501
|
+
), o = e._ioInfo, o != null) {
|
|
1502
|
+
o.value = u;
|
|
1503
|
+
var l = u.displayName;
|
|
1504
|
+
typeof l == "string" && (o.name = l);
|
|
1505
|
+
}
|
|
1506
|
+
e._status === -1 && (e._status = 0, e._result = u);
|
|
1712
1507
|
}
|
|
1713
1508
|
if (e._status === 1)
|
|
1714
|
-
return
|
|
1509
|
+
return o = e._result, o === void 0 && console.error(
|
|
1715
1510
|
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1716
1511
|
|
|
1717
1512
|
Your code should look like:
|
|
1718
1513
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
1719
1514
|
|
|
1720
1515
|
Did you accidentally put curly braces around the import?`,
|
|
1721
|
-
|
|
1722
|
-
), "default" in
|
|
1516
|
+
o
|
|
1517
|
+
), "default" in o || console.error(
|
|
1723
1518
|
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1724
1519
|
|
|
1725
1520
|
Your code should look like:
|
|
1726
1521
|
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
1727
|
-
|
|
1728
|
-
),
|
|
1522
|
+
o
|
|
1523
|
+
), o.default;
|
|
1729
1524
|
throw e._result;
|
|
1730
1525
|
}
|
|
1731
|
-
function
|
|
1732
|
-
var e =
|
|
1526
|
+
function C() {
|
|
1527
|
+
var e = v.H;
|
|
1733
1528
|
return e === null && console.error(
|
|
1734
1529
|
`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:
|
|
1735
1530
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
@@ -1738,63 +1533,64 @@ Your code should look like:
|
|
|
1738
1533
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
1739
1534
|
), e;
|
|
1740
1535
|
}
|
|
1741
|
-
function
|
|
1536
|
+
function ee() {
|
|
1537
|
+
v.asyncTransitions--;
|
|
1742
1538
|
}
|
|
1743
|
-
function
|
|
1744
|
-
if (
|
|
1539
|
+
function z(e) {
|
|
1540
|
+
if (we === null)
|
|
1745
1541
|
try {
|
|
1746
|
-
var
|
|
1747
|
-
|
|
1748
|
-
|
|
1542
|
+
var o = ("require" + Math.random()).slice(0, 7);
|
|
1543
|
+
we = (n && n[o]).call(
|
|
1544
|
+
n,
|
|
1749
1545
|
"timers"
|
|
1750
1546
|
).setImmediate;
|
|
1751
1547
|
} catch {
|
|
1752
|
-
|
|
1753
|
-
|
|
1548
|
+
we = function(l) {
|
|
1549
|
+
ze === !1 && (ze = !0, typeof MessageChannel > "u" && console.error(
|
|
1754
1550
|
"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."
|
|
1755
1551
|
));
|
|
1756
|
-
var
|
|
1757
|
-
|
|
1552
|
+
var h = new MessageChannel();
|
|
1553
|
+
h.port1.onmessage = l, h.port2.postMessage(void 0);
|
|
1758
1554
|
};
|
|
1759
1555
|
}
|
|
1760
|
-
return
|
|
1556
|
+
return we(e);
|
|
1761
1557
|
}
|
|
1762
|
-
function
|
|
1558
|
+
function q(e) {
|
|
1763
1559
|
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
1764
1560
|
}
|
|
1765
|
-
function
|
|
1766
|
-
|
|
1561
|
+
function M(e, o) {
|
|
1562
|
+
o !== Re - 1 && console.error(
|
|
1767
1563
|
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
1768
|
-
),
|
|
1564
|
+
), Re = o;
|
|
1769
1565
|
}
|
|
1770
|
-
function
|
|
1771
|
-
var l =
|
|
1566
|
+
function x(e, o, u) {
|
|
1567
|
+
var l = v.actQueue;
|
|
1772
1568
|
if (l !== null)
|
|
1773
1569
|
if (l.length !== 0)
|
|
1774
1570
|
try {
|
|
1775
|
-
|
|
1776
|
-
return
|
|
1571
|
+
te(l), z(function() {
|
|
1572
|
+
return x(e, o, u);
|
|
1777
1573
|
});
|
|
1778
1574
|
return;
|
|
1779
|
-
} catch (
|
|
1780
|
-
|
|
1575
|
+
} catch (h) {
|
|
1576
|
+
v.thrownErrors.push(h);
|
|
1781
1577
|
}
|
|
1782
|
-
else
|
|
1783
|
-
0 <
|
|
1578
|
+
else v.actQueue = null;
|
|
1579
|
+
0 < v.thrownErrors.length ? (l = q(v.thrownErrors), v.thrownErrors.length = 0, u(l)) : o(e);
|
|
1784
1580
|
}
|
|
1785
|
-
function
|
|
1786
|
-
if (!
|
|
1787
|
-
|
|
1788
|
-
var
|
|
1581
|
+
function te(e) {
|
|
1582
|
+
if (!Ae) {
|
|
1583
|
+
Ae = !0;
|
|
1584
|
+
var o = 0;
|
|
1789
1585
|
try {
|
|
1790
|
-
for (;
|
|
1791
|
-
var u = e[
|
|
1586
|
+
for (; o < e.length; o++) {
|
|
1587
|
+
var u = e[o];
|
|
1792
1588
|
do {
|
|
1793
|
-
|
|
1589
|
+
v.didUsePromise = !1;
|
|
1794
1590
|
var l = u(!1);
|
|
1795
1591
|
if (l !== null) {
|
|
1796
|
-
if (
|
|
1797
|
-
e[
|
|
1592
|
+
if (v.didUsePromise) {
|
|
1593
|
+
e[o] = u, e.splice(0, o);
|
|
1798
1594
|
return;
|
|
1799
1595
|
}
|
|
1800
1596
|
u = l;
|
|
@@ -1802,15 +1598,15 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1802
1598
|
} while (!0);
|
|
1803
1599
|
}
|
|
1804
1600
|
e.length = 0;
|
|
1805
|
-
} catch (
|
|
1806
|
-
e.splice(0,
|
|
1601
|
+
} catch (h) {
|
|
1602
|
+
e.splice(0, o + 1), v.thrownErrors.push(h);
|
|
1807
1603
|
} finally {
|
|
1808
|
-
|
|
1604
|
+
Ae = !1;
|
|
1809
1605
|
}
|
|
1810
1606
|
}
|
|
1811
1607
|
}
|
|
1812
1608
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1813
|
-
var
|
|
1609
|
+
var B = Symbol.for("react.transitional.element"), ae = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), d = Symbol.for("react.consumer"), g = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), De = Symbol.for("react.activity"), Ne = Symbol.iterator, Me = {}, Ie = {
|
|
1814
1610
|
isMounted: function() {
|
|
1815
1611
|
return !1;
|
|
1816
1612
|
},
|
|
@@ -1823,17 +1619,17 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1823
1619
|
enqueueSetState: function(e) {
|
|
1824
1620
|
c(e, "setState");
|
|
1825
1621
|
}
|
|
1826
|
-
},
|
|
1827
|
-
Object.freeze(
|
|
1622
|
+
}, Le = Object.assign, Se = {};
|
|
1623
|
+
Object.freeze(Se), p.prototype.isReactComponent = {}, p.prototype.setState = function(e, o) {
|
|
1828
1624
|
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1829
1625
|
throw Error(
|
|
1830
1626
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1831
1627
|
);
|
|
1832
|
-
this.updater.enqueueSetState(this, e,
|
|
1833
|
-
},
|
|
1628
|
+
this.updater.enqueueSetState(this, e, o, "setState");
|
|
1629
|
+
}, p.prototype.forceUpdate = function(e) {
|
|
1834
1630
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1835
1631
|
};
|
|
1836
|
-
var
|
|
1632
|
+
var Y = {
|
|
1837
1633
|
isMounted: [
|
|
1838
1634
|
"isMounted",
|
|
1839
1635
|
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
@@ -1842,227 +1638,256 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1842
1638
|
"replaceState",
|
|
1843
1639
|
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1844
1640
|
]
|
|
1845
|
-
}
|
|
1846
|
-
for (
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
var
|
|
1641
|
+
};
|
|
1642
|
+
for (me in Y)
|
|
1643
|
+
Y.hasOwnProperty(me) && s(me, Y[me]);
|
|
1644
|
+
O.prototype = p.prototype, Y = P.prototype = new O(), Y.constructor = P, Le(Y, p.prototype), Y.isPureReactComponent = !0;
|
|
1645
|
+
var Ye = Array.isArray, st = Symbol.for("react.client.reference"), v = {
|
|
1850
1646
|
H: null,
|
|
1851
1647
|
A: null,
|
|
1852
1648
|
T: null,
|
|
1853
1649
|
S: null,
|
|
1854
1650
|
actQueue: null,
|
|
1651
|
+
asyncTransitions: 0,
|
|
1855
1652
|
isBatchingLegacy: !1,
|
|
1856
1653
|
didScheduleLegacyUpdate: !1,
|
|
1857
1654
|
didUsePromise: !1,
|
|
1858
1655
|
thrownErrors: [],
|
|
1859
|
-
getCurrentStack: null
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1656
|
+
getCurrentStack: null,
|
|
1657
|
+
recentlyCreatedOwnerStacks: 0
|
|
1658
|
+
}, be = Object.prototype.hasOwnProperty, Ue = console.createTask ? console.createTask : function() {
|
|
1659
|
+
return null;
|
|
1660
|
+
};
|
|
1661
|
+
Y = {
|
|
1662
|
+
react_stack_bottom_frame: function(e) {
|
|
1663
|
+
return e();
|
|
1664
|
+
}
|
|
1665
|
+
};
|
|
1666
|
+
var He, Fe, qe = {}, it = Y.react_stack_bottom_frame.bind(
|
|
1667
|
+
Y,
|
|
1668
|
+
Q
|
|
1669
|
+
)(), ut = Ue($(Q)), xe = !1, $e = /\/+/g, We = typeof reportError == "function" ? reportError : function(e) {
|
|
1863
1670
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1864
|
-
var
|
|
1671
|
+
var o = new window.ErrorEvent("error", {
|
|
1865
1672
|
bubbles: !0,
|
|
1866
1673
|
cancelable: !0,
|
|
1867
1674
|
message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
|
|
1868
1675
|
error: e
|
|
1869
1676
|
});
|
|
1870
|
-
if (!window.dispatchEvent(
|
|
1677
|
+
if (!window.dispatchEvent(o)) return;
|
|
1871
1678
|
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
1872
1679
|
process.emit("uncaughtException", e);
|
|
1873
1680
|
return;
|
|
1874
1681
|
}
|
|
1875
1682
|
console.error(e);
|
|
1876
|
-
},
|
|
1683
|
+
}, ze = !1, we = null, Re = 0, Ce = !1, Ae = !1, Ve = typeof queueMicrotask == "function" ? function(e) {
|
|
1877
1684
|
queueMicrotask(function() {
|
|
1878
1685
|
return queueMicrotask(e);
|
|
1879
1686
|
});
|
|
1880
|
-
} :
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1687
|
+
} : z;
|
|
1688
|
+
Y = Object.freeze({
|
|
1689
|
+
__proto__: null,
|
|
1690
|
+
c: function(e) {
|
|
1691
|
+
return C().useMemoCache(e);
|
|
1692
|
+
}
|
|
1693
|
+
});
|
|
1694
|
+
var me = {
|
|
1695
|
+
map: Z,
|
|
1696
|
+
forEach: function(e, o, u) {
|
|
1697
|
+
Z(
|
|
1885
1698
|
e,
|
|
1886
1699
|
function() {
|
|
1887
|
-
|
|
1700
|
+
o.apply(this, arguments);
|
|
1888
1701
|
},
|
|
1889
1702
|
u
|
|
1890
1703
|
);
|
|
1891
1704
|
},
|
|
1892
1705
|
count: function(e) {
|
|
1893
|
-
var
|
|
1894
|
-
return
|
|
1895
|
-
|
|
1896
|
-
}),
|
|
1706
|
+
var o = 0;
|
|
1707
|
+
return Z(e, function() {
|
|
1708
|
+
o++;
|
|
1709
|
+
}), o;
|
|
1897
1710
|
},
|
|
1898
1711
|
toArray: function(e) {
|
|
1899
|
-
return
|
|
1900
|
-
return
|
|
1712
|
+
return Z(e, function(o) {
|
|
1713
|
+
return o;
|
|
1901
1714
|
}) || [];
|
|
1902
1715
|
},
|
|
1903
1716
|
only: function(e) {
|
|
1904
|
-
if (!
|
|
1717
|
+
if (!F(e))
|
|
1905
1718
|
throw Error(
|
|
1906
1719
|
"React.Children.only expected to receive a single React element child."
|
|
1907
1720
|
);
|
|
1908
1721
|
return e;
|
|
1909
1722
|
}
|
|
1910
|
-
}
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1723
|
+
};
|
|
1724
|
+
t.Activity = De, t.Children = me, t.Component = p, t.Fragment = r, t.Profiler = f, t.PureComponent = P, t.StrictMode = i, t.Suspense = m, t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = v, t.__COMPILER_RUNTIME = Y, t.act = function(e) {
|
|
1725
|
+
var o = v.actQueue, u = Re;
|
|
1726
|
+
Re++;
|
|
1727
|
+
var l = v.actQueue = o !== null ? o : [], h = !1;
|
|
1914
1728
|
try {
|
|
1915
|
-
var
|
|
1916
|
-
} catch (
|
|
1917
|
-
|
|
1729
|
+
var E = e();
|
|
1730
|
+
} catch (b) {
|
|
1731
|
+
v.thrownErrors.push(b);
|
|
1918
1732
|
}
|
|
1919
|
-
if (0 <
|
|
1920
|
-
throw
|
|
1921
|
-
if (
|
|
1922
|
-
var
|
|
1923
|
-
return
|
|
1924
|
-
|
|
1733
|
+
if (0 < v.thrownErrors.length)
|
|
1734
|
+
throw M(o, u), e = q(v.thrownErrors), v.thrownErrors.length = 0, e;
|
|
1735
|
+
if (E !== null && typeof E == "object" && typeof E.then == "function") {
|
|
1736
|
+
var y = E;
|
|
1737
|
+
return Ve(function() {
|
|
1738
|
+
h || Ce || (Ce = !0, console.error(
|
|
1925
1739
|
"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 () => ...);"
|
|
1926
1740
|
));
|
|
1927
1741
|
}), {
|
|
1928
|
-
then: function(
|
|
1929
|
-
|
|
1930
|
-
function(
|
|
1931
|
-
if (
|
|
1742
|
+
then: function(b, re) {
|
|
1743
|
+
h = !0, y.then(
|
|
1744
|
+
function(fe) {
|
|
1745
|
+
if (M(o, u), u === 0) {
|
|
1932
1746
|
try {
|
|
1933
|
-
|
|
1934
|
-
return
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1747
|
+
te(l), z(function() {
|
|
1748
|
+
return x(
|
|
1749
|
+
fe,
|
|
1750
|
+
b,
|
|
1751
|
+
re
|
|
1938
1752
|
);
|
|
1939
1753
|
});
|
|
1940
|
-
} catch (
|
|
1941
|
-
|
|
1754
|
+
} catch (ct) {
|
|
1755
|
+
v.thrownErrors.push(ct);
|
|
1942
1756
|
}
|
|
1943
|
-
if (0 <
|
|
1944
|
-
var
|
|
1945
|
-
|
|
1757
|
+
if (0 < v.thrownErrors.length) {
|
|
1758
|
+
var at = q(
|
|
1759
|
+
v.thrownErrors
|
|
1946
1760
|
);
|
|
1947
|
-
|
|
1761
|
+
v.thrownErrors.length = 0, re(at);
|
|
1948
1762
|
}
|
|
1949
|
-
} else
|
|
1763
|
+
} else b(fe);
|
|
1950
1764
|
},
|
|
1951
|
-
function(
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
),
|
|
1765
|
+
function(fe) {
|
|
1766
|
+
M(o, u), 0 < v.thrownErrors.length && (fe = q(
|
|
1767
|
+
v.thrownErrors
|
|
1768
|
+
), v.thrownErrors.length = 0), re(fe);
|
|
1955
1769
|
}
|
|
1956
1770
|
);
|
|
1957
1771
|
}
|
|
1958
1772
|
};
|
|
1959
1773
|
}
|
|
1960
|
-
var
|
|
1961
|
-
if (
|
|
1962
|
-
|
|
1774
|
+
var T = E;
|
|
1775
|
+
if (M(o, u), u === 0 && (te(l), l.length !== 0 && Ve(function() {
|
|
1776
|
+
h || Ce || (Ce = !0, console.error(
|
|
1963
1777
|
"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(() => ...)"
|
|
1964
1778
|
));
|
|
1965
|
-
}),
|
|
1966
|
-
throw e =
|
|
1779
|
+
}), v.actQueue = null), 0 < v.thrownErrors.length)
|
|
1780
|
+
throw e = q(v.thrownErrors), v.thrownErrors.length = 0, e;
|
|
1967
1781
|
return {
|
|
1968
|
-
then: function(
|
|
1969
|
-
|
|
1970
|
-
return
|
|
1971
|
-
P,
|
|
1782
|
+
then: function(b, re) {
|
|
1783
|
+
h = !0, u === 0 ? (v.actQueue = l, z(function() {
|
|
1784
|
+
return x(
|
|
1972
1785
|
T,
|
|
1973
|
-
|
|
1786
|
+
b,
|
|
1787
|
+
re
|
|
1974
1788
|
);
|
|
1975
|
-
})) : T
|
|
1789
|
+
})) : b(T);
|
|
1976
1790
|
}
|
|
1977
1791
|
};
|
|
1978
1792
|
}, t.cache = function(e) {
|
|
1979
1793
|
return function() {
|
|
1980
1794
|
return e.apply(null, arguments);
|
|
1981
1795
|
};
|
|
1982
|
-
}, t.
|
|
1796
|
+
}, t.cacheSignal = function() {
|
|
1797
|
+
return null;
|
|
1798
|
+
}, t.captureOwnerStack = function() {
|
|
1799
|
+
var e = v.getCurrentStack;
|
|
1800
|
+
return e === null ? null : e();
|
|
1801
|
+
}, t.cloneElement = function(e, o, u) {
|
|
1983
1802
|
if (e == null)
|
|
1984
1803
|
throw Error(
|
|
1985
1804
|
"The argument must be a React element, but you passed " + e + "."
|
|
1986
1805
|
);
|
|
1987
|
-
var l =
|
|
1988
|
-
if (
|
|
1989
|
-
var
|
|
1806
|
+
var l = Le({}, e.props), h = e.key, E = e._owner;
|
|
1807
|
+
if (o != null) {
|
|
1808
|
+
var y;
|
|
1990
1809
|
e: {
|
|
1991
|
-
if (
|
|
1992
|
-
|
|
1810
|
+
if (be.call(o, "ref") && (y = Object.getOwnPropertyDescriptor(
|
|
1811
|
+
o,
|
|
1993
1812
|
"ref"
|
|
1994
|
-
).get) &&
|
|
1995
|
-
|
|
1813
|
+
).get) && y.isReactWarning) {
|
|
1814
|
+
y = !1;
|
|
1996
1815
|
break e;
|
|
1997
1816
|
}
|
|
1998
|
-
|
|
1817
|
+
y = o.ref !== void 0;
|
|
1999
1818
|
}
|
|
2000
|
-
|
|
2001
|
-
for (
|
|
2002
|
-
!
|
|
1819
|
+
y && (E = H()), oe(o) && (I(o.key), h = "" + o.key);
|
|
1820
|
+
for (T in o)
|
|
1821
|
+
!be.call(o, T) || T === "key" || T === "__self" || T === "__source" || T === "ref" && o.ref === void 0 || (l[T] = o[T]);
|
|
2003
1822
|
}
|
|
2004
|
-
var
|
|
2005
|
-
if (
|
|
2006
|
-
else if (1 <
|
|
2007
|
-
|
|
2008
|
-
for (var
|
|
2009
|
-
|
|
2010
|
-
l.children =
|
|
1823
|
+
var T = arguments.length - 2;
|
|
1824
|
+
if (T === 1) l.children = u;
|
|
1825
|
+
else if (1 < T) {
|
|
1826
|
+
y = Array(T);
|
|
1827
|
+
for (var b = 0; b < T; b++)
|
|
1828
|
+
y[b] = arguments[b + 2];
|
|
1829
|
+
l.children = y;
|
|
2011
1830
|
}
|
|
2012
|
-
for (l =
|
|
2013
|
-
|
|
1831
|
+
for (l = K(
|
|
1832
|
+
e.type,
|
|
1833
|
+
h,
|
|
1834
|
+
l,
|
|
1835
|
+
E,
|
|
1836
|
+
e._debugStack,
|
|
1837
|
+
e._debugTask
|
|
1838
|
+
), h = 2; h < arguments.length; h++)
|
|
1839
|
+
J(arguments[h]);
|
|
2014
1840
|
return l;
|
|
2015
1841
|
}, t.createContext = function(e) {
|
|
2016
1842
|
return e = {
|
|
2017
|
-
$$typeof:
|
|
1843
|
+
$$typeof: g,
|
|
2018
1844
|
_currentValue: e,
|
|
2019
1845
|
_currentValue2: e,
|
|
2020
1846
|
_threadCount: 0,
|
|
2021
1847
|
Provider: null,
|
|
2022
1848
|
Consumer: null
|
|
2023
1849
|
}, e.Provider = e, e.Consumer = {
|
|
2024
|
-
$$typeof:
|
|
1850
|
+
$$typeof: d,
|
|
2025
1851
|
_context: e
|
|
2026
1852
|
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
2027
|
-
}, t.createElement = function(e,
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
N(e) ? p = "array" : e !== void 0 && e.$$typeof === b ? (p = "<" + (q(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e;
|
|
2035
|
-
console.error(
|
|
2036
|
-
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
2037
|
-
p,
|
|
2038
|
-
l
|
|
2039
|
-
);
|
|
2040
|
-
}
|
|
2041
|
-
var v;
|
|
2042
|
-
if (l = {}, p = null, n != null)
|
|
2043
|
-
for (v in lt || !("__self" in n) || "key" in n || (lt = !0, console.warn(
|
|
1853
|
+
}, t.createElement = function(e, o, u) {
|
|
1854
|
+
for (var l = 2; l < arguments.length; l++)
|
|
1855
|
+
J(arguments[l]);
|
|
1856
|
+
l = {};
|
|
1857
|
+
var h = null;
|
|
1858
|
+
if (o != null)
|
|
1859
|
+
for (b in Fe || !("__self" in o) || "key" in o || (Fe = !0, console.warn(
|
|
2044
1860
|
"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"
|
|
2045
|
-
)),
|
|
2046
|
-
|
|
2047
|
-
var
|
|
2048
|
-
if (
|
|
2049
|
-
else if (1 <
|
|
2050
|
-
for (var
|
|
2051
|
-
|
|
2052
|
-
Object.freeze && Object.freeze(
|
|
1861
|
+
)), oe(o) && (I(o.key), h = "" + o.key), o)
|
|
1862
|
+
be.call(o, b) && b !== "key" && b !== "__self" && b !== "__source" && (l[b] = o[b]);
|
|
1863
|
+
var E = arguments.length - 2;
|
|
1864
|
+
if (E === 1) l.children = u;
|
|
1865
|
+
else if (1 < E) {
|
|
1866
|
+
for (var y = Array(E), T = 0; T < E; T++)
|
|
1867
|
+
y[T] = arguments[T + 2];
|
|
1868
|
+
Object.freeze && Object.freeze(y), l.children = y;
|
|
2053
1869
|
}
|
|
2054
1870
|
if (e && e.defaultProps)
|
|
2055
|
-
for (
|
|
2056
|
-
l[
|
|
2057
|
-
|
|
1871
|
+
for (b in E = e.defaultProps, E)
|
|
1872
|
+
l[b] === void 0 && (l[b] = E[b]);
|
|
1873
|
+
h && X(
|
|
2058
1874
|
l,
|
|
2059
1875
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
2060
|
-
)
|
|
1876
|
+
);
|
|
1877
|
+
var b = 1e4 > v.recentlyCreatedOwnerStacks++;
|
|
1878
|
+
return K(
|
|
1879
|
+
e,
|
|
1880
|
+
h,
|
|
1881
|
+
l,
|
|
1882
|
+
H(),
|
|
1883
|
+
b ? Error("react-stack-top-frame") : it,
|
|
1884
|
+
b ? Ue($(e)) : ut
|
|
1885
|
+
);
|
|
2061
1886
|
}, t.createRef = function() {
|
|
2062
1887
|
var e = { current: null };
|
|
2063
1888
|
return Object.seal(e), e;
|
|
2064
1889
|
}, t.forwardRef = function(e) {
|
|
2065
|
-
e != null && e.$$typeof ===
|
|
1890
|
+
e != null && e.$$typeof === S ? console.error(
|
|
2066
1891
|
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
2067
1892
|
) : typeof e != "function" ? console.error(
|
|
2068
1893
|
"forwardRef requires a render function but was given %s.",
|
|
@@ -2073,8 +1898,8 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
2073
1898
|
), e != null && e.defaultProps != null && console.error(
|
|
2074
1899
|
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
2075
1900
|
);
|
|
2076
|
-
var
|
|
2077
|
-
return Object.defineProperty(
|
|
1901
|
+
var o = { $$typeof: w, render: e }, u;
|
|
1902
|
+
return Object.defineProperty(o, "displayName", {
|
|
2078
1903
|
enumerable: !1,
|
|
2079
1904
|
configurable: !0,
|
|
2080
1905
|
get: function() {
|
|
@@ -2083,24 +1908,34 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
2083
1908
|
set: function(l) {
|
|
2084
1909
|
u = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
|
|
2085
1910
|
}
|
|
2086
|
-
}),
|
|
2087
|
-
}, t.isValidElement =
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
1911
|
+
}), o;
|
|
1912
|
+
}, t.isValidElement = F, t.lazy = function(e) {
|
|
1913
|
+
e = { _status: -1, _result: e };
|
|
1914
|
+
var o = {
|
|
1915
|
+
$$typeof: G,
|
|
1916
|
+
_payload: e,
|
|
1917
|
+
_init: ue
|
|
1918
|
+
}, u = {
|
|
1919
|
+
name: "lazy",
|
|
1920
|
+
start: -1,
|
|
1921
|
+
end: -1,
|
|
1922
|
+
value: null,
|
|
1923
|
+
owner: null,
|
|
1924
|
+
debugStack: Error("react-stack-top-frame"),
|
|
1925
|
+
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
2092
1926
|
};
|
|
2093
|
-
|
|
2094
|
-
|
|
1927
|
+
return e._ioInfo = u, o._debugInfo = [{ awaited: u }], o;
|
|
1928
|
+
}, t.memo = function(e, o) {
|
|
1929
|
+
e == null && console.error(
|
|
2095
1930
|
"memo: The first argument must be a component. Instead received: %s",
|
|
2096
1931
|
e === null ? "null" : typeof e
|
|
2097
|
-
),
|
|
2098
|
-
$$typeof:
|
|
1932
|
+
), o = {
|
|
1933
|
+
$$typeof: S,
|
|
2099
1934
|
type: e,
|
|
2100
|
-
compare:
|
|
1935
|
+
compare: o === void 0 ? null : o
|
|
2101
1936
|
};
|
|
2102
1937
|
var u;
|
|
2103
|
-
return Object.defineProperty(
|
|
1938
|
+
return Object.defineProperty(o, "displayName", {
|
|
2104
1939
|
enumerable: !1,
|
|
2105
1940
|
configurable: !0,
|
|
2106
1941
|
get: function() {
|
|
@@ -2109,486 +1944,324 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
2109
1944
|
set: function(l) {
|
|
2110
1945
|
u = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
|
|
2111
1946
|
}
|
|
2112
|
-
}),
|
|
1947
|
+
}), o;
|
|
2113
1948
|
}, t.startTransition = function(e) {
|
|
2114
|
-
var
|
|
2115
|
-
|
|
1949
|
+
var o = v.T, u = {};
|
|
1950
|
+
u._updatedFibers = /* @__PURE__ */ new Set(), v.T = u;
|
|
2116
1951
|
try {
|
|
2117
|
-
var l = e(),
|
|
2118
|
-
|
|
2119
|
-
} catch (
|
|
2120
|
-
|
|
1952
|
+
var l = e(), h = v.S;
|
|
1953
|
+
h !== null && h(u, l), typeof l == "object" && l !== null && typeof l.then == "function" && (v.asyncTransitions++, l.then(ee, ee), l.then(D, We));
|
|
1954
|
+
} catch (E) {
|
|
1955
|
+
We(E);
|
|
2121
1956
|
} finally {
|
|
2122
|
-
|
|
1957
|
+
o === null && u._updatedFibers && (e = u._updatedFibers.size, u._updatedFibers.clear(), 10 < e && console.warn(
|
|
2123
1958
|
"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."
|
|
2124
|
-
)),
|
|
1959
|
+
)), o !== null && u.types !== null && (o.types !== null && o.types !== u.types && console.error(
|
|
1960
|
+
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
1961
|
+
), o.types = u.types), v.T = o;
|
|
2125
1962
|
}
|
|
2126
1963
|
}, t.unstable_useCacheRefresh = function() {
|
|
2127
|
-
return
|
|
1964
|
+
return C().useCacheRefresh();
|
|
2128
1965
|
}, t.use = function(e) {
|
|
2129
|
-
return
|
|
2130
|
-
}, t.useActionState = function(e,
|
|
2131
|
-
return
|
|
1966
|
+
return C().use(e);
|
|
1967
|
+
}, t.useActionState = function(e, o, u) {
|
|
1968
|
+
return C().useActionState(
|
|
2132
1969
|
e,
|
|
2133
|
-
|
|
1970
|
+
o,
|
|
2134
1971
|
u
|
|
2135
1972
|
);
|
|
2136
|
-
}, t.useCallback = function(e,
|
|
2137
|
-
return
|
|
1973
|
+
}, t.useCallback = function(e, o) {
|
|
1974
|
+
return C().useCallback(e, o);
|
|
2138
1975
|
}, t.useContext = function(e) {
|
|
2139
|
-
var
|
|
2140
|
-
return e.$$typeof ===
|
|
1976
|
+
var o = C();
|
|
1977
|
+
return e.$$typeof === d && console.error(
|
|
2141
1978
|
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
2142
|
-
),
|
|
2143
|
-
}, t.useDebugValue = function(e,
|
|
2144
|
-
return
|
|
2145
|
-
}, t.useDeferredValue = function(e,
|
|
2146
|
-
return
|
|
2147
|
-
}, t.useEffect = function(e,
|
|
2148
|
-
return
|
|
1979
|
+
), o.useContext(e);
|
|
1980
|
+
}, t.useDebugValue = function(e, o) {
|
|
1981
|
+
return C().useDebugValue(e, o);
|
|
1982
|
+
}, t.useDeferredValue = function(e, o) {
|
|
1983
|
+
return C().useDeferredValue(e, o);
|
|
1984
|
+
}, t.useEffect = function(e, o) {
|
|
1985
|
+
return e == null && console.warn(
|
|
1986
|
+
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1987
|
+
), C().useEffect(e, o);
|
|
1988
|
+
}, t.useEffectEvent = function(e) {
|
|
1989
|
+
return C().useEffectEvent(e);
|
|
2149
1990
|
}, t.useId = function() {
|
|
2150
|
-
return
|
|
2151
|
-
}, t.useImperativeHandle = function(e,
|
|
2152
|
-
return
|
|
2153
|
-
}, t.useInsertionEffect = function(e,
|
|
2154
|
-
return
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
}, t.
|
|
2158
|
-
return
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
}, t.
|
|
2162
|
-
return
|
|
1991
|
+
return C().useId();
|
|
1992
|
+
}, t.useImperativeHandle = function(e, o, u) {
|
|
1993
|
+
return C().useImperativeHandle(e, o, u);
|
|
1994
|
+
}, t.useInsertionEffect = function(e, o) {
|
|
1995
|
+
return e == null && console.warn(
|
|
1996
|
+
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1997
|
+
), C().useInsertionEffect(e, o);
|
|
1998
|
+
}, t.useLayoutEffect = function(e, o) {
|
|
1999
|
+
return e == null && console.warn(
|
|
2000
|
+
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
2001
|
+
), C().useLayoutEffect(e, o);
|
|
2002
|
+
}, t.useMemo = function(e, o) {
|
|
2003
|
+
return C().useMemo(e, o);
|
|
2004
|
+
}, t.useOptimistic = function(e, o) {
|
|
2005
|
+
return C().useOptimistic(e, o);
|
|
2006
|
+
}, t.useReducer = function(e, o, u) {
|
|
2007
|
+
return C().useReducer(e, o, u);
|
|
2163
2008
|
}, t.useRef = function(e) {
|
|
2164
|
-
return
|
|
2009
|
+
return C().useRef(e);
|
|
2165
2010
|
}, t.useState = function(e) {
|
|
2166
|
-
return
|
|
2167
|
-
}, t.useSyncExternalStore = function(e,
|
|
2168
|
-
return
|
|
2011
|
+
return C().useState(e);
|
|
2012
|
+
}, t.useSyncExternalStore = function(e, o, u) {
|
|
2013
|
+
return C().useSyncExternalStore(
|
|
2169
2014
|
e,
|
|
2170
|
-
|
|
2015
|
+
o,
|
|
2171
2016
|
u
|
|
2172
2017
|
);
|
|
2173
2018
|
}, t.useTransition = function() {
|
|
2174
|
-
return
|
|
2175
|
-
}, t.version = "19.
|
|
2019
|
+
return C().useTransition();
|
|
2020
|
+
}, t.version = "19.2.3", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2176
2021
|
}();
|
|
2177
|
-
}(
|
|
2022
|
+
}(ve, ve.exports)), ve.exports;
|
|
2178
2023
|
}
|
|
2179
|
-
var
|
|
2180
|
-
function
|
|
2181
|
-
return
|
|
2024
|
+
var Je;
|
|
2025
|
+
function ot() {
|
|
2026
|
+
return Je || (Je = 1, process.env.NODE_ENV === "production" ? Oe.exports = Pt() : Oe.exports = St()), Oe.exports;
|
|
2182
2027
|
}
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
function Kt() {
|
|
2194
|
-
return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2195
|
-
function r(o) {
|
|
2196
|
-
if (o == null) return null;
|
|
2197
|
-
if (typeof o == "function")
|
|
2198
|
-
return o.$$typeof === De ? null : o.displayName || o.name || null;
|
|
2199
|
-
if (typeof o == "string") return o;
|
|
2200
|
-
switch (o) {
|
|
2201
|
-
case oe:
|
|
2028
|
+
var Ze;
|
|
2029
|
+
function At() {
|
|
2030
|
+
return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2031
|
+
function n(r) {
|
|
2032
|
+
if (r == null) return null;
|
|
2033
|
+
if (typeof r == "function")
|
|
2034
|
+
return r.$$typeof === ue ? null : r.displayName || r.name || null;
|
|
2035
|
+
if (typeof r == "string") return r;
|
|
2036
|
+
switch (r) {
|
|
2037
|
+
case X:
|
|
2202
2038
|
return "Fragment";
|
|
2203
|
-
case
|
|
2204
|
-
return "Portal";
|
|
2205
|
-
case Ce:
|
|
2039
|
+
case K:
|
|
2206
2040
|
return "Profiler";
|
|
2207
|
-
case
|
|
2041
|
+
case W:
|
|
2208
2042
|
return "StrictMode";
|
|
2209
|
-
case
|
|
2043
|
+
case ie:
|
|
2210
2044
|
return "Suspense";
|
|
2211
|
-
case
|
|
2045
|
+
case R:
|
|
2212
2046
|
return "SuspenseList";
|
|
2047
|
+
case Z:
|
|
2048
|
+
return "Activity";
|
|
2213
2049
|
}
|
|
2214
|
-
if (typeof
|
|
2215
|
-
switch (typeof
|
|
2050
|
+
if (typeof r == "object")
|
|
2051
|
+
switch (typeof r.tag == "number" && console.error(
|
|
2216
2052
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
2217
|
-
),
|
|
2218
|
-
case
|
|
2219
|
-
return
|
|
2220
|
-
case
|
|
2221
|
-
return
|
|
2222
|
-
case
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
return
|
|
2227
|
-
case
|
|
2228
|
-
|
|
2053
|
+
), r.$$typeof) {
|
|
2054
|
+
case oe:
|
|
2055
|
+
return "Portal";
|
|
2056
|
+
case J:
|
|
2057
|
+
return r.displayName || "Context";
|
|
2058
|
+
case se:
|
|
2059
|
+
return (r._context.displayName || "Context") + ".Consumer";
|
|
2060
|
+
case F:
|
|
2061
|
+
var i = r.render;
|
|
2062
|
+
return r = r.displayName, r || (r = i.displayName || i.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
|
|
2063
|
+
case le:
|
|
2064
|
+
return i = r.displayName || null, i !== null ? i : n(r.type) || "Memo";
|
|
2065
|
+
case N:
|
|
2066
|
+
i = r._payload, r = r._init;
|
|
2229
2067
|
try {
|
|
2230
|
-
return r(
|
|
2068
|
+
return n(r(i));
|
|
2231
2069
|
} catch {
|
|
2232
2070
|
}
|
|
2233
2071
|
}
|
|
2234
2072
|
return null;
|
|
2235
2073
|
}
|
|
2236
|
-
function t(
|
|
2237
|
-
return "" +
|
|
2074
|
+
function t(r) {
|
|
2075
|
+
return "" + r;
|
|
2238
2076
|
}
|
|
2239
|
-
function
|
|
2077
|
+
function s(r) {
|
|
2240
2078
|
try {
|
|
2241
|
-
t(
|
|
2242
|
-
var
|
|
2079
|
+
t(r);
|
|
2080
|
+
var i = !1;
|
|
2243
2081
|
} catch {
|
|
2244
|
-
|
|
2082
|
+
i = !0;
|
|
2245
2083
|
}
|
|
2246
|
-
if (
|
|
2247
|
-
|
|
2248
|
-
var
|
|
2249
|
-
return
|
|
2250
|
-
|
|
2084
|
+
if (i) {
|
|
2085
|
+
i = console;
|
|
2086
|
+
var f = i.error, d = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
2087
|
+
return f.call(
|
|
2088
|
+
i,
|
|
2251
2089
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
2252
|
-
|
|
2253
|
-
), t(
|
|
2254
|
-
}
|
|
2255
|
-
}
|
|
2256
|
-
function f() {
|
|
2257
|
-
}
|
|
2258
|
-
function c() {
|
|
2259
|
-
if (w === 0) {
|
|
2260
|
-
A = console.log, b = console.info, W = console.warn, D = console.error, ye = console.group, Me = console.groupCollapsed, Oe = console.groupEnd;
|
|
2261
|
-
var o = {
|
|
2262
|
-
configurable: !0,
|
|
2263
|
-
enumerable: !0,
|
|
2264
|
-
value: f,
|
|
2265
|
-
writable: !0
|
|
2266
|
-
};
|
|
2267
|
-
Object.defineProperties(console, {
|
|
2268
|
-
info: o,
|
|
2269
|
-
log: o,
|
|
2270
|
-
warn: o,
|
|
2271
|
-
error: o,
|
|
2272
|
-
group: o,
|
|
2273
|
-
groupCollapsed: o,
|
|
2274
|
-
groupEnd: o
|
|
2275
|
-
});
|
|
2276
|
-
}
|
|
2277
|
-
w++;
|
|
2278
|
-
}
|
|
2279
|
-
function g() {
|
|
2280
|
-
if (w--, w === 0) {
|
|
2281
|
-
var o = { configurable: !0, enumerable: !0, writable: !0 };
|
|
2282
|
-
Object.defineProperties(console, {
|
|
2283
|
-
log: a({}, o, { value: A }),
|
|
2284
|
-
info: a({}, o, { value: b }),
|
|
2285
|
-
warn: a({}, o, { value: W }),
|
|
2286
|
-
error: a({}, o, { value: D }),
|
|
2287
|
-
group: a({}, o, { value: ye }),
|
|
2288
|
-
groupCollapsed: a({}, o, { value: Me }),
|
|
2289
|
-
groupEnd: a({}, o, { value: Oe })
|
|
2290
|
-
});
|
|
2090
|
+
d
|
|
2091
|
+
), t(r);
|
|
2291
2092
|
}
|
|
2292
|
-
0 > w && console.error(
|
|
2293
|
-
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
2294
|
-
);
|
|
2295
|
-
}
|
|
2296
|
-
function S(o) {
|
|
2297
|
-
if (Te === void 0)
|
|
2298
|
-
try {
|
|
2299
|
-
throw Error();
|
|
2300
|
-
} catch (h) {
|
|
2301
|
-
var d = h.stack.trim().match(/\n( *(at )?)/);
|
|
2302
|
-
Te = d && d[1] || "", Se = -1 < h.stack.indexOf(`
|
|
2303
|
-
at`) ? " (<anonymous>)" : -1 < h.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
2304
|
-
}
|
|
2305
|
-
return `
|
|
2306
|
-
` + Te + o + Se;
|
|
2307
2093
|
}
|
|
2308
|
-
function
|
|
2309
|
-
if (
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
Ee = !0, h = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
2313
|
-
var O = null;
|
|
2314
|
-
O = j.H, j.H = null, c();
|
|
2094
|
+
function a(r) {
|
|
2095
|
+
if (r === X) return "<>";
|
|
2096
|
+
if (typeof r == "object" && r !== null && r.$$typeof === N)
|
|
2097
|
+
return "<...>";
|
|
2315
2098
|
try {
|
|
2316
|
-
var
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
var Z = function() {
|
|
2321
|
-
throw Error();
|
|
2322
|
-
};
|
|
2323
|
-
if (Object.defineProperty(Z.prototype, "props", {
|
|
2324
|
-
set: function() {
|
|
2325
|
-
throw Error();
|
|
2326
|
-
}
|
|
2327
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
2328
|
-
try {
|
|
2329
|
-
Reflect.construct(Z, []);
|
|
2330
|
-
} catch (Q) {
|
|
2331
|
-
var Ae = Q;
|
|
2332
|
-
}
|
|
2333
|
-
Reflect.construct(o, [], Z);
|
|
2334
|
-
} else {
|
|
2335
|
-
try {
|
|
2336
|
-
Z.call();
|
|
2337
|
-
} catch (Q) {
|
|
2338
|
-
Ae = Q;
|
|
2339
|
-
}
|
|
2340
|
-
o.call(Z.prototype);
|
|
2341
|
-
}
|
|
2342
|
-
} else {
|
|
2343
|
-
try {
|
|
2344
|
-
throw Error();
|
|
2345
|
-
} catch (Q) {
|
|
2346
|
-
Ae = Q;
|
|
2347
|
-
}
|
|
2348
|
-
(Z = o()) && typeof Z.catch == "function" && Z.catch(function() {
|
|
2349
|
-
});
|
|
2350
|
-
}
|
|
2351
|
-
} catch (Q) {
|
|
2352
|
-
if (Q && Ae && typeof Q.stack == "string")
|
|
2353
|
-
return [Q.stack, Ae.stack];
|
|
2354
|
-
}
|
|
2355
|
-
return [null, null];
|
|
2356
|
-
}
|
|
2357
|
-
};
|
|
2358
|
-
x.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
2359
|
-
var N = Object.getOwnPropertyDescriptor(
|
|
2360
|
-
x.DetermineComponentFrameRoot,
|
|
2361
|
-
"name"
|
|
2362
|
-
);
|
|
2363
|
-
N && N.configurable && Object.defineProperty(
|
|
2364
|
-
x.DetermineComponentFrameRoot,
|
|
2365
|
-
"name",
|
|
2366
|
-
{ value: "DetermineComponentFrameRoot" }
|
|
2367
|
-
);
|
|
2368
|
-
var C = x.DetermineComponentFrameRoot(), E = C[0], J = C[1];
|
|
2369
|
-
if (E && J) {
|
|
2370
|
-
var H = E.split(`
|
|
2371
|
-
`), G = J.split(`
|
|
2372
|
-
`);
|
|
2373
|
-
for (C = N = 0; N < H.length && !H[N].includes(
|
|
2374
|
-
"DetermineComponentFrameRoot"
|
|
2375
|
-
); )
|
|
2376
|
-
N++;
|
|
2377
|
-
for (; C < G.length && !G[C].includes(
|
|
2378
|
-
"DetermineComponentFrameRoot"
|
|
2379
|
-
); )
|
|
2380
|
-
C++;
|
|
2381
|
-
if (N === H.length || C === G.length)
|
|
2382
|
-
for (N = H.length - 1, C = G.length - 1; 1 <= N && 0 <= C && H[N] !== G[C]; )
|
|
2383
|
-
C--;
|
|
2384
|
-
for (; 1 <= N && 0 <= C; N--, C--)
|
|
2385
|
-
if (H[N] !== G[C]) {
|
|
2386
|
-
if (N !== 1 || C !== 1)
|
|
2387
|
-
do
|
|
2388
|
-
if (N--, C--, 0 > C || H[N] !== G[C]) {
|
|
2389
|
-
var be = `
|
|
2390
|
-
` + H[N].replace(
|
|
2391
|
-
" at new ",
|
|
2392
|
-
" at "
|
|
2393
|
-
);
|
|
2394
|
-
return o.displayName && be.includes("<anonymous>") && (be = be.replace("<anonymous>", o.displayName)), typeof o == "function" && je.set(o, be), be;
|
|
2395
|
-
}
|
|
2396
|
-
while (1 <= N && 0 <= C);
|
|
2397
|
-
break;
|
|
2398
|
-
}
|
|
2399
|
-
}
|
|
2400
|
-
} finally {
|
|
2401
|
-
Ee = !1, j.H = O, g(), Error.prepareStackTrace = h;
|
|
2099
|
+
var i = n(r);
|
|
2100
|
+
return i ? "<" + i + ">" : "<...>";
|
|
2101
|
+
} catch {
|
|
2102
|
+
return "<...>";
|
|
2402
2103
|
}
|
|
2403
|
-
return H = (H = o ? o.displayName || o.name : "") ? S(H) : "", typeof o == "function" && je.set(o, H), H;
|
|
2404
2104
|
}
|
|
2405
|
-
function
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
var d = o.prototype;
|
|
2409
|
-
return M(
|
|
2410
|
-
o,
|
|
2411
|
-
!(!d || !d.isReactComponent)
|
|
2412
|
-
);
|
|
2413
|
-
}
|
|
2414
|
-
if (typeof o == "string") return S(o);
|
|
2415
|
-
switch (o) {
|
|
2416
|
-
case ce:
|
|
2417
|
-
return S("Suspense");
|
|
2418
|
-
case ne:
|
|
2419
|
-
return S("SuspenseList");
|
|
2420
|
-
}
|
|
2421
|
-
if (typeof o == "object")
|
|
2422
|
-
switch (o.$$typeof) {
|
|
2423
|
-
case ge:
|
|
2424
|
-
return o = M(o.render, !1), o;
|
|
2425
|
-
case ve:
|
|
2426
|
-
return I(o.type);
|
|
2427
|
-
case K:
|
|
2428
|
-
d = o._payload, o = o._init;
|
|
2429
|
-
try {
|
|
2430
|
-
return I(o(d));
|
|
2431
|
-
} catch {
|
|
2432
|
-
}
|
|
2433
|
-
}
|
|
2434
|
-
return "";
|
|
2105
|
+
function c() {
|
|
2106
|
+
var r = C.A;
|
|
2107
|
+
return r === null ? null : r.getOwner();
|
|
2435
2108
|
}
|
|
2436
|
-
function
|
|
2437
|
-
|
|
2438
|
-
return o === null ? null : o.getOwner();
|
|
2109
|
+
function p() {
|
|
2110
|
+
return Error("react-stack-top-frame");
|
|
2439
2111
|
}
|
|
2440
|
-
function
|
|
2441
|
-
if (
|
|
2442
|
-
var
|
|
2443
|
-
if (
|
|
2112
|
+
function O(r) {
|
|
2113
|
+
if (ee.call(r, "key")) {
|
|
2114
|
+
var i = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
2115
|
+
if (i && i.isReactWarning) return !1;
|
|
2444
2116
|
}
|
|
2445
|
-
return
|
|
2117
|
+
return r.key !== void 0;
|
|
2446
2118
|
}
|
|
2447
|
-
function
|
|
2448
|
-
function
|
|
2449
|
-
|
|
2119
|
+
function P(r, i) {
|
|
2120
|
+
function f() {
|
|
2121
|
+
M || (M = !0, console.error(
|
|
2450
2122
|
"%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)",
|
|
2451
|
-
|
|
2123
|
+
i
|
|
2452
2124
|
));
|
|
2453
2125
|
}
|
|
2454
|
-
|
|
2455
|
-
get:
|
|
2126
|
+
f.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
2127
|
+
get: f,
|
|
2456
2128
|
configurable: !0
|
|
2457
2129
|
});
|
|
2458
2130
|
}
|
|
2459
|
-
function
|
|
2460
|
-
var
|
|
2461
|
-
return
|
|
2131
|
+
function D() {
|
|
2132
|
+
var r = n(this.type);
|
|
2133
|
+
return x[r] || (x[r] = !0, console.error(
|
|
2462
2134
|
"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."
|
|
2463
|
-
)),
|
|
2135
|
+
)), r = this.props.ref, r !== void 0 ? r : null;
|
|
2464
2136
|
}
|
|
2465
|
-
function
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2137
|
+
function V(r, i, f, d, g, w) {
|
|
2138
|
+
var m = f.ref;
|
|
2139
|
+
return r = {
|
|
2140
|
+
$$typeof: Q,
|
|
2141
|
+
type: r,
|
|
2142
|
+
key: i,
|
|
2143
|
+
props: f,
|
|
2144
|
+
_owner: d
|
|
2145
|
+
}, (m !== void 0 ? m : null) !== null ? Object.defineProperty(r, "ref", {
|
|
2473
2146
|
enumerable: !1,
|
|
2474
|
-
get:
|
|
2475
|
-
}) : Object.defineProperty(
|
|
2147
|
+
get: D
|
|
2148
|
+
}) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
|
|
2476
2149
|
configurable: !1,
|
|
2477
2150
|
enumerable: !1,
|
|
2478
2151
|
writable: !0,
|
|
2479
2152
|
value: 0
|
|
2480
|
-
}), Object.defineProperty(
|
|
2153
|
+
}), Object.defineProperty(r, "_debugInfo", {
|
|
2481
2154
|
configurable: !1,
|
|
2482
2155
|
enumerable: !1,
|
|
2483
2156
|
writable: !0,
|
|
2484
2157
|
value: null
|
|
2485
|
-
}), Object.
|
|
2158
|
+
}), Object.defineProperty(r, "_debugStack", {
|
|
2159
|
+
configurable: !1,
|
|
2160
|
+
enumerable: !1,
|
|
2161
|
+
writable: !0,
|
|
2162
|
+
value: g
|
|
2163
|
+
}), Object.defineProperty(r, "_debugTask", {
|
|
2164
|
+
configurable: !1,
|
|
2165
|
+
enumerable: !1,
|
|
2166
|
+
writable: !0,
|
|
2167
|
+
value: w
|
|
2168
|
+
}), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
|
|
2486
2169
|
}
|
|
2487
|
-
function
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
if (
|
|
2491
|
-
if (
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
O,
|
|
2505
|
-
C
|
|
2506
|
-
);
|
|
2507
|
-
if (s.call(d, "key")) {
|
|
2508
|
-
C = r(o);
|
|
2509
|
-
var E = Object.keys(d).filter(function(H) {
|
|
2510
|
-
return H !== "key";
|
|
2170
|
+
function I(r, i, f, d, g, w) {
|
|
2171
|
+
var m = i.children;
|
|
2172
|
+
if (m !== void 0)
|
|
2173
|
+
if (d)
|
|
2174
|
+
if (z(m)) {
|
|
2175
|
+
for (d = 0; d < m.length; d++)
|
|
2176
|
+
L(m[d]);
|
|
2177
|
+
Object.freeze && Object.freeze(m);
|
|
2178
|
+
} else
|
|
2179
|
+
console.error(
|
|
2180
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
2181
|
+
);
|
|
2182
|
+
else L(m);
|
|
2183
|
+
if (ee.call(i, "key")) {
|
|
2184
|
+
m = n(r);
|
|
2185
|
+
var A = Object.keys(i).filter(function(G) {
|
|
2186
|
+
return G !== "key";
|
|
2511
2187
|
});
|
|
2512
|
-
|
|
2188
|
+
d = 0 < A.length ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}", ae[m + d] || (A = 0 < A.length ? "{" + A.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
2513
2189
|
`A props object containing a "key" prop is being spread into JSX:
|
|
2514
2190
|
let props = %s;
|
|
2515
2191
|
<%s {...props} />
|
|
2516
2192
|
React keys must be passed directly to JSX without using spread:
|
|
2517
2193
|
let props = %s;
|
|
2518
2194
|
<%s key={someKey} {...props} />`,
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
),
|
|
2195
|
+
d,
|
|
2196
|
+
m,
|
|
2197
|
+
A,
|
|
2198
|
+
m
|
|
2199
|
+
), ae[m + d] = !0);
|
|
2524
2200
|
}
|
|
2525
|
-
if (
|
|
2526
|
-
|
|
2527
|
-
for (var
|
|
2528
|
-
|
|
2529
|
-
} else
|
|
2530
|
-
return
|
|
2531
|
-
|
|
2532
|
-
typeof
|
|
2533
|
-
),
|
|
2201
|
+
if (m = null, f !== void 0 && (s(f), m = "" + f), O(i) && (s(i.key), m = "" + i.key), "key" in i) {
|
|
2202
|
+
f = {};
|
|
2203
|
+
for (var S in i)
|
|
2204
|
+
S !== "key" && (f[S] = i[S]);
|
|
2205
|
+
} else f = i;
|
|
2206
|
+
return m && P(
|
|
2207
|
+
f,
|
|
2208
|
+
typeof r == "function" ? r.displayName || r.name || "Unknown" : r
|
|
2209
|
+
), V(
|
|
2210
|
+
r,
|
|
2211
|
+
m,
|
|
2212
|
+
f,
|
|
2213
|
+
c(),
|
|
2214
|
+
g,
|
|
2215
|
+
w
|
|
2216
|
+
);
|
|
2534
2217
|
}
|
|
2535
|
-
function
|
|
2536
|
-
|
|
2537
|
-
if (y(o))
|
|
2538
|
-
for (var h = 0; h < o.length; h++) {
|
|
2539
|
-
var O = o[h];
|
|
2540
|
-
B(O) && ae(O, d);
|
|
2541
|
-
}
|
|
2542
|
-
else if (B(o))
|
|
2543
|
-
o._store && (o._store.validated = 1);
|
|
2544
|
-
else if (o === null || typeof o != "object" ? h = null : (h = le && o[le] || o["@@iterator"], h = typeof h == "function" ? h : null), typeof h == "function" && h !== o.entries && (h = h.call(o), h !== o))
|
|
2545
|
-
for (; !(o = h.next()).done; )
|
|
2546
|
-
B(o.value) && ae(o.value, d);
|
|
2547
|
-
}
|
|
2218
|
+
function L(r) {
|
|
2219
|
+
$(r) ? r._store && (r._store.validated = 1) : typeof r == "object" && r !== null && r.$$typeof === N && (r._payload.status === "fulfilled" ? $(r._payload.value) && r._payload.value._store && (r._payload.value._store.validated = 1) : r._store && (r._store.validated = 1));
|
|
2548
2220
|
}
|
|
2549
|
-
function
|
|
2550
|
-
return typeof
|
|
2221
|
+
function $(r) {
|
|
2222
|
+
return typeof r == "object" && r !== null && r.$$typeof === Q;
|
|
2551
2223
|
}
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
j.getCurrentStack = function() {
|
|
2559
|
-
var x = I(o.type);
|
|
2560
|
-
return O && (x += O() || ""), x;
|
|
2561
|
-
}, console.error(
|
|
2562
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
2563
|
-
d,
|
|
2564
|
-
h
|
|
2565
|
-
), j.getCurrentStack = O;
|
|
2224
|
+
var H = ot(), Q = Symbol.for("react.transitional.element"), oe = Symbol.for("react.portal"), X = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), se = Symbol.for("react.consumer"), J = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), ie = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), le = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), ue = Symbol.for("react.client.reference"), C = H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, z = Array.isArray, q = console.createTask ? console.createTask : function() {
|
|
2225
|
+
return null;
|
|
2226
|
+
};
|
|
2227
|
+
H = {
|
|
2228
|
+
react_stack_bottom_frame: function(r) {
|
|
2229
|
+
return r();
|
|
2566
2230
|
}
|
|
2567
|
-
}
|
|
2568
|
-
function re(o) {
|
|
2569
|
-
var d = "", h = V();
|
|
2570
|
-
return h && (h = r(h.type)) && (d = `
|
|
2571
|
-
|
|
2572
|
-
Check the render method of \`` + h + "`."), d || (o = r(o)) && (d = `
|
|
2573
|
-
|
|
2574
|
-
Check the top-level render call using <` + o + ">."), d;
|
|
2575
|
-
}
|
|
2576
|
-
var he = Pt(), pe = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), oe = Symbol.for("react.fragment"), me = Symbol.for("react.strict_mode"), Ce = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), Re = Symbol.for("react.context"), ge = Symbol.for("react.forward_ref"), ce = Symbol.for("react.suspense"), ne = Symbol.for("react.suspense_list"), ve = Symbol.for("react.memo"), K = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), le = Symbol.iterator, De = Symbol.for("react.client.reference"), j = he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, s = Object.prototype.hasOwnProperty, a = Object.assign, _ = Symbol.for("react.client.reference"), y = Array.isArray, w = 0, A, b, W, D, ye, Me, Oe;
|
|
2577
|
-
f.__reactDisabledLog = !0;
|
|
2578
|
-
var Te, Se, Ee = !1, je = new (typeof WeakMap == "function" ? WeakMap : Map)(), Pe = Symbol.for("react.client.reference"), _e, Ve = {}, He = {}, Ue = {};
|
|
2579
|
-
qe.Fragment = oe, qe.jsx = function(o, d, h, O, x) {
|
|
2580
|
-
return ue(o, d, h, !1, O, x);
|
|
2581
|
-
}, qe.jsxs = function(o, d, h, O, x) {
|
|
2582
|
-
return ue(o, d, h, !0, O, x);
|
|
2583
2231
|
};
|
|
2584
|
-
|
|
2232
|
+
var M, x = {}, te = H.react_stack_bottom_frame.bind(
|
|
2233
|
+
H,
|
|
2234
|
+
p
|
|
2235
|
+
)(), B = q(a(p)), ae = {};
|
|
2236
|
+
ye.Fragment = X, ye.jsx = function(r, i, f) {
|
|
2237
|
+
var d = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
2238
|
+
return I(
|
|
2239
|
+
r,
|
|
2240
|
+
i,
|
|
2241
|
+
f,
|
|
2242
|
+
!1,
|
|
2243
|
+
d ? Error("react-stack-top-frame") : te,
|
|
2244
|
+
d ? q(a(r)) : B
|
|
2245
|
+
);
|
|
2246
|
+
}, ye.jsxs = function(r, i, f) {
|
|
2247
|
+
var d = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
2248
|
+
return I(
|
|
2249
|
+
r,
|
|
2250
|
+
i,
|
|
2251
|
+
f,
|
|
2252
|
+
!0,
|
|
2253
|
+
d ? Error("react-stack-top-frame") : te,
|
|
2254
|
+
d ? q(a(r)) : B
|
|
2255
|
+
);
|
|
2256
|
+
};
|
|
2257
|
+
}()), ye;
|
|
2585
2258
|
}
|
|
2586
|
-
var
|
|
2587
|
-
function
|
|
2588
|
-
return
|
|
2259
|
+
var et;
|
|
2260
|
+
function kt() {
|
|
2261
|
+
return et || (et = 1, process.env.NODE_ENV === "production" ? Te.exports = Ot() : Te.exports = At()), Te.exports;
|
|
2589
2262
|
}
|
|
2590
|
-
var
|
|
2591
|
-
class
|
|
2263
|
+
var U = kt(), ge = ot();
|
|
2264
|
+
class jt extends ge.Component {
|
|
2592
2265
|
constructor(t) {
|
|
2593
2266
|
super(t), this.unfilteredDocuments = [], this.state = {
|
|
2594
2267
|
documents: [],
|
|
@@ -2598,10 +2271,10 @@ class Xt extends Le.Component {
|
|
|
2598
2271
|
}
|
|
2599
2272
|
async componentDidMount() {
|
|
2600
2273
|
const { controller: t } = this.props;
|
|
2601
|
-
this.unsubscriber = t.onChange((
|
|
2602
|
-
|
|
2274
|
+
this.unsubscriber = t.onChange((s) => {
|
|
2275
|
+
s.documentCollection && (this.unfilteredDocuments = s.documentCollection, this.setState({
|
|
2603
2276
|
documents: t.filter(this.unfilteredDocuments)
|
|
2604
|
-
})),
|
|
2277
|
+
})), s.action === "filterChange" ? this.setState({
|
|
2605
2278
|
documents: t.filter(this.unfilteredDocuments)
|
|
2606
2279
|
}) : this.setState({});
|
|
2607
2280
|
}), this.unfilteredDocuments = await t.documentCollection(), this.setState({
|
|
@@ -2609,8 +2282,7 @@ class Xt extends Le.Component {
|
|
|
2609
2282
|
});
|
|
2610
2283
|
}
|
|
2611
2284
|
componentWillUnmount() {
|
|
2612
|
-
|
|
2613
|
-
(t = this.unsubscriber) == null || t.call(this);
|
|
2285
|
+
this.unsubscriber?.();
|
|
2614
2286
|
}
|
|
2615
2287
|
newDocument() {
|
|
2616
2288
|
this.props.controller.newDocument(), this.setState({
|
|
@@ -2625,67 +2297,66 @@ class Xt extends Le.Component {
|
|
|
2625
2297
|
});
|
|
2626
2298
|
}
|
|
2627
2299
|
async storeDocument(t) {
|
|
2628
|
-
const { controller:
|
|
2629
|
-
|
|
2300
|
+
const { controller: s, layout: a } = this.props;
|
|
2301
|
+
s.setDocument(t), await s.storeDocument(), a === "formAndItems" ? this.newDocument() : this.setState({
|
|
2630
2302
|
mode: 0
|
|
2631
2303
|
/* normal */
|
|
2632
2304
|
});
|
|
2633
2305
|
}
|
|
2634
2306
|
invokeContentViewChild(t) {
|
|
2635
|
-
const { children:
|
|
2307
|
+
const { children: s, layout: a, controller: c } = this.props, { mode: p } = this.state, O = a !== "formAndItems";
|
|
2636
2308
|
if (!c.document) return;
|
|
2637
|
-
const
|
|
2309
|
+
const P = {
|
|
2638
2310
|
controller: c,
|
|
2639
|
-
submitButtonCaption:
|
|
2640
|
-
onSubmit: (
|
|
2641
|
-
onCancel:
|
|
2311
|
+
submitButtonCaption: p == 2 ? t?.updateButtonLabel : t?.addButtonLabel,
|
|
2312
|
+
onSubmit: (D) => this.storeDocument(D),
|
|
2313
|
+
onCancel: O ? () => this.setState({
|
|
2642
2314
|
mode: 0
|
|
2643
2315
|
/* normal */
|
|
2644
2316
|
}) : () => this.newDocument()
|
|
2645
2317
|
};
|
|
2646
|
-
return typeof
|
|
2318
|
+
return typeof s[0] == "function" ? ge.cloneElement(s[0](P), { key: c.document.id }) : ge.cloneElement(s[0], { key: c.document.id, ...P });
|
|
2647
2319
|
}
|
|
2648
2320
|
invokeDetailViewChild(t) {
|
|
2649
|
-
const { children:
|
|
2321
|
+
const { children: s, controller: a } = this.props, c = {
|
|
2650
2322
|
document: t,
|
|
2651
|
-
onSelect: (
|
|
2652
|
-
onDelete: (
|
|
2323
|
+
onSelect: (p) => this.editDocument(p),
|
|
2324
|
+
onDelete: (p) => a.setDocument(p).deleteDocument()
|
|
2653
2325
|
};
|
|
2654
|
-
return typeof
|
|
2326
|
+
return typeof s[1] == "function" ? ge.cloneElement(s[1](c), { key: t.id }) : ge.cloneElement(s[1], { key: t.id, ...c });
|
|
2655
2327
|
}
|
|
2656
2328
|
render() {
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
(
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
c && /* @__PURE__ */ X.jsxs(
|
|
2329
|
+
const { mode: t, documents: s } = this.state, { className: a, cardAddButton: c, controller: p } = this.props, O = Ct(p.document?.className);
|
|
2330
|
+
let P = this.props.labels || {};
|
|
2331
|
+
const D = this.props.layout || "itemsAlways";
|
|
2332
|
+
typeof P == "function" && (P = P(p));
|
|
2333
|
+
const { addNewDocumentLabel: V, singularDocumentInCollectionCaption: I, documentsInCollectionCaption: L, noDocumentsFoundLabel: $ } = P;
|
|
2334
|
+
return /* @__PURE__ */ U.jsxs("div", { className: `crud-panel ${O} ${a || ""}`, children: [
|
|
2335
|
+
t === 0 && D !== "formAndItems" && !c && /* @__PURE__ */ U.jsx("div", { className: "header", children: this.props.header ? typeof this.props.header == "function" ? this.props.header(p, () => this.newDocument(), P) : this.props.header : /* @__PURE__ */ U.jsx("button", { onClick: () => this.newDocument(), children: V }) }),
|
|
2336
|
+
(D === "formAndItems" || t === 1 || t === 2) && /* @__PURE__ */ U.jsx("div", { className: "content-panel", children: this.invokeContentViewChild(P) }),
|
|
2337
|
+
(D === "itemsAlways" || D === "formAndItems" || t === 0) && /* @__PURE__ */ U.jsxs("div", { className: "collection-panel", children: [
|
|
2338
|
+
s?.length > 0 && /* @__PURE__ */ U.jsx("h3", { children: s.length > 1 ? L : I || L }),
|
|
2339
|
+
/* @__PURE__ */ U.jsxs("div", { className: "documents", children: [
|
|
2340
|
+
c && /* @__PURE__ */ U.jsxs(
|
|
2670
2341
|
"div",
|
|
2671
2342
|
{
|
|
2672
2343
|
className: "crud-card card-add-button clickable",
|
|
2673
2344
|
onClick: () => this.newDocument(),
|
|
2674
2345
|
children: [
|
|
2675
|
-
/* @__PURE__ */
|
|
2676
|
-
/* @__PURE__ */
|
|
2346
|
+
/* @__PURE__ */ U.jsx("div", { className: "button-element", children: c }),
|
|
2347
|
+
/* @__PURE__ */ U.jsx("div", { className: "add-label", children: V })
|
|
2677
2348
|
]
|
|
2678
2349
|
}
|
|
2679
2350
|
),
|
|
2680
|
-
|
|
2351
|
+
s?.length ? s.map((H) => this.invokeDetailViewChild(H)) : /* @__PURE__ */ U.jsx("p", { children: $ })
|
|
2681
2352
|
] })
|
|
2682
2353
|
] }),
|
|
2683
|
-
/* @__PURE__ */
|
|
2354
|
+
/* @__PURE__ */ U.jsx("div", { className: "footer", children: this.props.footer && typeof this.props.footer == "function" ? this.props.footer(p, () => this.newDocument(), P) : this.props.footer })
|
|
2684
2355
|
] });
|
|
2685
2356
|
}
|
|
2686
2357
|
}
|
|
2687
2358
|
export {
|
|
2688
|
-
|
|
2689
|
-
|
|
2359
|
+
Ge as CrudController,
|
|
2360
|
+
jt as CrudPanel
|
|
2690
2361
|
};
|
|
2691
2362
|
//# sourceMappingURL=entropic-bond-crud-panel.js.map
|