@clicktap/state 0.11.6 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/AuthProvider.d.ts +266 -230
- package/auth/auth.d.ts +127 -109
- package/index.js +24 -24
- package/index.mjs +1301 -1257
- package/package.json +5 -4
- package/toast/ToastProvider.d.ts +142 -42
- package/toast/timer.d.ts +16 -20
- package/toast/toast.d.ts +71 -21
package/index.mjs
CHANGED
|
@@ -48,13 +48,13 @@ class $r {
|
|
|
48
48
|
this._last = null;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
const ds = ".", Po = "", hs = "", Io = "#", jo = "*", ps = "xstate.init", Do = "xstate.error",
|
|
51
|
+
const ds = ".", Po = "", hs = "", Io = "#", jo = "*", ps = "xstate.init", Do = "xstate.error", Rt = "xstate.stop";
|
|
52
52
|
function $o(e, t) {
|
|
53
53
|
return {
|
|
54
54
|
type: `xstate.after.${e}.${t}`
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Ln(e, t) {
|
|
58
58
|
return {
|
|
59
59
|
type: `xstate.done.state.${e}`,
|
|
60
60
|
output: t
|
|
@@ -88,94 +88,96 @@ function Fr(e, t) {
|
|
|
88
88
|
return `${e.sessionId}.${t}`;
|
|
89
89
|
}
|
|
90
90
|
let No = 0;
|
|
91
|
-
function
|
|
92
|
-
const n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Set(), a = {},
|
|
93
|
-
schedule: (
|
|
94
|
-
const
|
|
95
|
-
source:
|
|
96
|
-
target:
|
|
97
|
-
event:
|
|
98
|
-
delay:
|
|
99
|
-
id:
|
|
91
|
+
function Lo(e, t) {
|
|
92
|
+
const n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Set(), a = {}, u = t.clock, d = {
|
|
93
|
+
schedule: (h, E, S, _, O = Math.random().toString(36).slice(2)) => {
|
|
94
|
+
const D = {
|
|
95
|
+
source: h,
|
|
96
|
+
target: E,
|
|
97
|
+
event: S,
|
|
98
|
+
delay: _,
|
|
99
|
+
id: O,
|
|
100
100
|
startedAt: Date.now()
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
delete a[
|
|
105
|
-
},
|
|
106
|
-
a[
|
|
101
|
+
}, L = Fr(h, O);
|
|
102
|
+
y._snapshot._scheduledEvents[L] = D;
|
|
103
|
+
const V = u.setTimeout(() => {
|
|
104
|
+
delete a[L], delete y._snapshot._scheduledEvents[L], y._relay(h, E, S);
|
|
105
|
+
}, _);
|
|
106
|
+
a[L] = V;
|
|
107
107
|
},
|
|
108
|
-
cancel: (
|
|
109
|
-
const
|
|
110
|
-
delete a[
|
|
108
|
+
cancel: (h, E) => {
|
|
109
|
+
const S = Fr(h, E), _ = a[S];
|
|
110
|
+
delete a[S], delete y._snapshot._scheduledEvents[S], u.clearTimeout(_);
|
|
111
111
|
},
|
|
112
|
-
cancelAll: (
|
|
113
|
-
for (const
|
|
114
|
-
const
|
|
115
|
-
|
|
112
|
+
cancelAll: (h) => {
|
|
113
|
+
for (const E in y._snapshot._scheduledEvents) {
|
|
114
|
+
const S = y._snapshot._scheduledEvents[E];
|
|
115
|
+
S.source === h && d.cancel(h, S.id);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
}, l = {
|
|
118
|
+
}, l = (h) => {
|
|
119
|
+
if (!i.size)
|
|
120
|
+
return;
|
|
121
|
+
const E = {
|
|
122
|
+
...h,
|
|
123
|
+
rootId: e.sessionId
|
|
124
|
+
};
|
|
125
|
+
i.forEach((S) => {
|
|
126
|
+
var _;
|
|
127
|
+
return (_ = S.next) == null ? void 0 : _.call(S, E);
|
|
128
|
+
});
|
|
129
|
+
}, y = {
|
|
119
130
|
_snapshot: {
|
|
120
131
|
_scheduledEvents: ((t == null ? void 0 : t.snapshot) && t.snapshot.scheduler) ?? {}
|
|
121
132
|
},
|
|
122
133
|
_bookId: () => `x:${No++}`,
|
|
123
|
-
_register: (
|
|
124
|
-
_unregister: (
|
|
125
|
-
n.delete(
|
|
126
|
-
const
|
|
127
|
-
|
|
134
|
+
_register: (h, E) => (n.set(h, E), h),
|
|
135
|
+
_unregister: (h) => {
|
|
136
|
+
n.delete(h.sessionId);
|
|
137
|
+
const E = s.get(h);
|
|
138
|
+
E !== void 0 && (r.delete(E), s.delete(h));
|
|
128
139
|
},
|
|
129
|
-
get: (
|
|
130
|
-
_set: (
|
|
131
|
-
const
|
|
132
|
-
if (
|
|
133
|
-
throw new Error(`Actor with system ID '${
|
|
134
|
-
r.set(
|
|
140
|
+
get: (h) => r.get(h),
|
|
141
|
+
_set: (h, E) => {
|
|
142
|
+
const S = r.get(h);
|
|
143
|
+
if (S && S !== E)
|
|
144
|
+
throw new Error(`Actor with system ID '${h}' already exists.`);
|
|
145
|
+
r.set(h, E), s.set(E, h);
|
|
135
146
|
},
|
|
136
|
-
inspect: (
|
|
137
|
-
i.add(
|
|
138
|
-
},
|
|
139
|
-
_sendInspectionEvent: (d) => {
|
|
140
|
-
const m = {
|
|
141
|
-
...d,
|
|
142
|
-
rootId: e.sessionId
|
|
143
|
-
};
|
|
144
|
-
i.forEach((E) => {
|
|
145
|
-
var w;
|
|
146
|
-
return (w = E.next) == null ? void 0 : w.call(E, m);
|
|
147
|
-
});
|
|
147
|
+
inspect: (h) => {
|
|
148
|
+
i.add(h);
|
|
148
149
|
},
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
_sendInspectionEvent: l,
|
|
151
|
+
_relay: (h, E, S) => {
|
|
152
|
+
y._sendInspectionEvent({
|
|
151
153
|
type: "@xstate.event",
|
|
152
|
-
sourceRef:
|
|
153
|
-
actorRef:
|
|
154
|
-
event:
|
|
155
|
-
}),
|
|
154
|
+
sourceRef: h,
|
|
155
|
+
actorRef: E,
|
|
156
|
+
event: S
|
|
157
|
+
}), E._send(S);
|
|
156
158
|
},
|
|
157
|
-
scheduler:
|
|
159
|
+
scheduler: d,
|
|
158
160
|
getSnapshot: () => ({
|
|
159
161
|
_scheduledEvents: {
|
|
160
|
-
...
|
|
162
|
+
...y._snapshot._scheduledEvents
|
|
161
163
|
}
|
|
162
164
|
}),
|
|
163
165
|
start: () => {
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
for (const
|
|
166
|
+
const h = y._snapshot._scheduledEvents;
|
|
167
|
+
y._snapshot._scheduledEvents = {};
|
|
168
|
+
for (const E in h) {
|
|
167
169
|
const {
|
|
168
|
-
source:
|
|
169
|
-
target:
|
|
170
|
-
event:
|
|
171
|
-
delay:
|
|
172
|
-
id:
|
|
173
|
-
} =
|
|
174
|
-
|
|
170
|
+
source: S,
|
|
171
|
+
target: _,
|
|
172
|
+
event: O,
|
|
173
|
+
delay: D,
|
|
174
|
+
id: L
|
|
175
|
+
} = h[E];
|
|
176
|
+
d.schedule(S, _, O, D, L);
|
|
175
177
|
}
|
|
176
178
|
}
|
|
177
179
|
};
|
|
178
|
-
return
|
|
180
|
+
return y;
|
|
179
181
|
}
|
|
180
182
|
function vs(e, t) {
|
|
181
183
|
const n = Mr(e), r = Mr(t);
|
|
@@ -204,9 +206,9 @@ function Mr(e) {
|
|
|
204
206
|
if (typeof e != "string")
|
|
205
207
|
return e;
|
|
206
208
|
const t = Kn(e);
|
|
207
|
-
return
|
|
209
|
+
return Uo(t);
|
|
208
210
|
}
|
|
209
|
-
function
|
|
211
|
+
function Uo(e) {
|
|
210
212
|
if (e.length === 1)
|
|
211
213
|
return e[0];
|
|
212
214
|
const t = {};
|
|
@@ -234,7 +236,7 @@ function gs(e) {
|
|
|
234
236
|
function $e(e) {
|
|
235
237
|
return e === void 0 ? [] : gs(e);
|
|
236
238
|
}
|
|
237
|
-
function
|
|
239
|
+
function Un(e, t, n, r) {
|
|
238
240
|
return typeof e == "function" ? e({
|
|
239
241
|
context: t,
|
|
240
242
|
event: n,
|
|
@@ -256,16 +258,16 @@ function Es(e) {
|
|
|
256
258
|
if (!(e === void 0 || e === Po))
|
|
257
259
|
return $e(e);
|
|
258
260
|
}
|
|
259
|
-
function
|
|
260
|
-
var i, a,
|
|
261
|
+
function Lr(e, t, n) {
|
|
262
|
+
var i, a, u;
|
|
261
263
|
const r = typeof e == "object", s = r ? e : void 0;
|
|
262
264
|
return {
|
|
263
265
|
next: (i = r ? e.next : e) == null ? void 0 : i.bind(s),
|
|
264
266
|
error: (a = r ? e.error : t) == null ? void 0 : a.bind(s),
|
|
265
|
-
complete: (
|
|
267
|
+
complete: (u = r ? e.complete : n) == null ? void 0 : u.bind(s)
|
|
266
268
|
};
|
|
267
269
|
}
|
|
268
|
-
function
|
|
270
|
+
function Ur(e, t) {
|
|
269
271
|
return `${t}.${e}`;
|
|
270
272
|
}
|
|
271
273
|
function Gn(e, t) {
|
|
@@ -295,7 +297,7 @@ class Vo {
|
|
|
295
297
|
* @param options Actor options
|
|
296
298
|
*/
|
|
297
299
|
constructor(t, n) {
|
|
298
|
-
this.logic = t, this._snapshot = void 0, this.clock = void 0, this.options = void 0, this.id = void 0, this.mailbox = new $r(this._process.bind(this)), this.observers = /* @__PURE__ */ new Set(), this.logger = void 0, this._processingStatus = fe.NotStarted, this._parent = void 0, this._syncSnapshot = void 0, this.ref = void 0, this._actorScope = void 0, this._systemId = void 0, this.sessionId = void 0, this.system = void 0, this._doneEvent = void 0, this.src = void 0, this._deferred = [];
|
|
300
|
+
this.logic = t, this._snapshot = void 0, this.clock = void 0, this.options = void 0, this.id = void 0, this.mailbox = new $r(this._process.bind(this)), this.observers = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Map(), this.logger = void 0, this._processingStatus = fe.NotStarted, this._parent = void 0, this._syncSnapshot = void 0, this.ref = void 0, this._actorScope = void 0, this._systemId = void 0, this.sessionId = void 0, this.system = void 0, this._doneEvent = void 0, this.src = void 0, this._deferred = [];
|
|
299
301
|
const r = {
|
|
300
302
|
...Wo,
|
|
301
303
|
...n
|
|
@@ -303,26 +305,32 @@ class Vo {
|
|
|
303
305
|
clock: s,
|
|
304
306
|
logger: i,
|
|
305
307
|
parent: a,
|
|
306
|
-
syncSnapshot:
|
|
307
|
-
id:
|
|
308
|
+
syncSnapshot: u,
|
|
309
|
+
id: d,
|
|
308
310
|
systemId: l,
|
|
309
|
-
inspect:
|
|
311
|
+
inspect: y
|
|
310
312
|
} = r;
|
|
311
|
-
this.system = a ? a.system :
|
|
313
|
+
this.system = a ? a.system : Lo(this, {
|
|
312
314
|
clock: s
|
|
313
|
-
}),
|
|
315
|
+
}), y && !a && this.system.inspect(Lr(y)), this.sessionId = this.system._bookId(), this.id = d ?? this.sessionId, this.logger = i, this.clock = s, this._parent = a, this._syncSnapshot = u, this.options = r, this.src = r.src ?? t, this.ref = this, this._actorScope = {
|
|
314
316
|
self: this,
|
|
315
317
|
id: this.id,
|
|
316
318
|
sessionId: this.sessionId,
|
|
317
319
|
logger: this.logger,
|
|
318
|
-
defer: (
|
|
319
|
-
this._deferred.push(
|
|
320
|
+
defer: (h) => {
|
|
321
|
+
this._deferred.push(h);
|
|
320
322
|
},
|
|
321
323
|
system: this.system,
|
|
322
|
-
stopChild: (
|
|
323
|
-
if (
|
|
324
|
-
throw new Error(`Cannot stop child actor ${
|
|
325
|
-
|
|
324
|
+
stopChild: (h) => {
|
|
325
|
+
if (h._parent !== this)
|
|
326
|
+
throw new Error(`Cannot stop child actor ${h.id} of ${this.id} because it is not a child`);
|
|
327
|
+
h._stop();
|
|
328
|
+
},
|
|
329
|
+
emit: (h) => {
|
|
330
|
+
const E = this.eventListeners.get(h.type);
|
|
331
|
+
if (E)
|
|
332
|
+
for (const S of Array.from(E))
|
|
333
|
+
S(h);
|
|
326
334
|
}
|
|
327
335
|
}, this.send = this.send.bind(this), this.system._sendInspectionEvent({
|
|
328
336
|
type: "@xstate.actor",
|
|
@@ -360,16 +368,16 @@ class Vo {
|
|
|
360
368
|
for (const a of this.observers)
|
|
361
369
|
try {
|
|
362
370
|
(s = a.next) == null || s.call(a, t);
|
|
363
|
-
} catch (
|
|
364
|
-
Oe(
|
|
371
|
+
} catch (u) {
|
|
372
|
+
Oe(u);
|
|
365
373
|
}
|
|
366
374
|
break;
|
|
367
375
|
case "done":
|
|
368
376
|
for (const a of this.observers)
|
|
369
377
|
try {
|
|
370
378
|
(i = a.next) == null || i.call(a, t);
|
|
371
|
-
} catch (
|
|
372
|
-
Oe(
|
|
379
|
+
} catch (u) {
|
|
380
|
+
Oe(u);
|
|
373
381
|
}
|
|
374
382
|
this._stopProcedure(), this._complete(), this._doneEvent = Fo(this.id, this._snapshot.output), this._parent && this.system._relay(this, this._parent, this._doneEvent);
|
|
375
383
|
break;
|
|
@@ -434,7 +442,7 @@ class Vo {
|
|
|
434
442
|
*/
|
|
435
443
|
subscribe(t, n, r) {
|
|
436
444
|
var i;
|
|
437
|
-
const s =
|
|
445
|
+
const s = Lr(t, n, r);
|
|
438
446
|
if (this._processingStatus !== fe.Stopped)
|
|
439
447
|
this.observers.add(s);
|
|
440
448
|
else
|
|
@@ -453,8 +461,8 @@ class Vo {
|
|
|
453
461
|
else
|
|
454
462
|
try {
|
|
455
463
|
s.error(a);
|
|
456
|
-
} catch (
|
|
457
|
-
Oe(
|
|
464
|
+
} catch (u) {
|
|
465
|
+
Oe(u);
|
|
458
466
|
}
|
|
459
467
|
break;
|
|
460
468
|
}
|
|
@@ -465,6 +473,16 @@ class Vo {
|
|
|
465
473
|
}
|
|
466
474
|
};
|
|
467
475
|
}
|
|
476
|
+
on(t, n) {
|
|
477
|
+
let r = this.eventListeners.get(t);
|
|
478
|
+
r || (r = /* @__PURE__ */ new Set(), this.eventListeners.set(t, r));
|
|
479
|
+
const s = n.bind(void 0);
|
|
480
|
+
return r.add(s), {
|
|
481
|
+
unsubscribe: () => {
|
|
482
|
+
r.delete(s);
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
}
|
|
468
486
|
/**
|
|
469
487
|
* Starts the Actor from the initial state
|
|
470
488
|
*/
|
|
@@ -525,11 +543,11 @@ class Vo {
|
|
|
525
543
|
}, this._error(s);
|
|
526
544
|
return;
|
|
527
545
|
}
|
|
528
|
-
this.update(n, t), t.type ===
|
|
546
|
+
this.update(n, t), t.type === Rt && (this._stopProcedure(), this._complete());
|
|
529
547
|
}
|
|
530
548
|
_stop() {
|
|
531
549
|
return this._processingStatus === fe.Stopped ? this : (this.mailbox.clear(), this._processingStatus === fe.NotStarted ? (this._processingStatus = fe.Stopped, this) : (this.mailbox.enqueue({
|
|
532
|
-
type:
|
|
550
|
+
type: Rt
|
|
533
551
|
}), this));
|
|
534
552
|
}
|
|
535
553
|
/**
|
|
@@ -640,7 +658,7 @@ class Vo {
|
|
|
640
658
|
return this._snapshot;
|
|
641
659
|
}
|
|
642
660
|
}
|
|
643
|
-
function ut(e, t) {
|
|
661
|
+
function ut(e, ...[t]) {
|
|
644
662
|
return new Vo(e, t);
|
|
645
663
|
}
|
|
646
664
|
function zo(e, t, n, r, {
|
|
@@ -663,30 +681,30 @@ function Yo(e, t, n, r, {
|
|
|
663
681
|
id: s,
|
|
664
682
|
systemId: i,
|
|
665
683
|
src: a,
|
|
666
|
-
input:
|
|
667
|
-
syncSnapshot:
|
|
684
|
+
input: u,
|
|
685
|
+
syncSnapshot: d
|
|
668
686
|
}) {
|
|
669
|
-
const l = typeof a == "string" ? Gn(t.machine, a) : a,
|
|
670
|
-
let
|
|
671
|
-
return l && (
|
|
672
|
-
id:
|
|
687
|
+
const l = typeof a == "string" ? Gn(t.machine, a) : a, y = typeof s == "function" ? s(n) : s;
|
|
688
|
+
let h;
|
|
689
|
+
return l && (h = ut(l, {
|
|
690
|
+
id: y,
|
|
673
691
|
src: a,
|
|
674
692
|
parent: e.self,
|
|
675
|
-
syncSnapshot:
|
|
693
|
+
syncSnapshot: d,
|
|
676
694
|
systemId: i,
|
|
677
|
-
input: typeof
|
|
695
|
+
input: typeof u == "function" ? u({
|
|
678
696
|
context: t.context,
|
|
679
697
|
event: n.event,
|
|
680
698
|
self: e.self
|
|
681
|
-
}) :
|
|
699
|
+
}) : u
|
|
682
700
|
})), [Xe(t, {
|
|
683
701
|
children: {
|
|
684
702
|
...t.children,
|
|
685
|
-
[
|
|
703
|
+
[y]: h
|
|
686
704
|
}
|
|
687
705
|
}), {
|
|
688
706
|
id: s,
|
|
689
|
-
actorRef:
|
|
707
|
+
actorRef: h
|
|
690
708
|
}];
|
|
691
709
|
}
|
|
692
710
|
function Jo(e, {
|
|
@@ -703,7 +721,7 @@ function Ko(...[e, {
|
|
|
703
721
|
input: r,
|
|
704
722
|
syncSnapshot: s = !1
|
|
705
723
|
} = {}]) {
|
|
706
|
-
function i(a,
|
|
724
|
+
function i(a, u) {
|
|
707
725
|
}
|
|
708
726
|
return i.type = "snapshot.spawnChild", i.id = t, i.systemId = n, i.src = e, i.input = r, i.syncSnapshot = s, i.resolve = Yo, i.execute = Jo, i;
|
|
709
727
|
}
|
|
@@ -711,11 +729,11 @@ function Go(e, t, n, r, {
|
|
|
711
729
|
actorRef: s
|
|
712
730
|
}) {
|
|
713
731
|
const i = typeof s == "function" ? s(n, r) : s, a = typeof i == "string" ? t.children[i] : i;
|
|
714
|
-
let
|
|
715
|
-
return a && (
|
|
716
|
-
...
|
|
717
|
-
}, delete
|
|
718
|
-
children:
|
|
732
|
+
let u = t.children;
|
|
733
|
+
return a && (u = {
|
|
734
|
+
...u
|
|
735
|
+
}, delete u[a.id]), [Xe(t, {
|
|
736
|
+
children: u
|
|
719
737
|
}), a];
|
|
720
738
|
}
|
|
721
739
|
function Xo(e, t) {
|
|
@@ -742,19 +760,19 @@ function Zn(e, t, n, r) {
|
|
|
742
760
|
throw new Error(`Guard '${typeof e == "string" ? e : e.type}' is not implemented.'.`);
|
|
743
761
|
if (typeof a != "function")
|
|
744
762
|
return Zn(a, t, n, r);
|
|
745
|
-
const
|
|
763
|
+
const u = {
|
|
746
764
|
context: t,
|
|
747
765
|
event: n
|
|
748
|
-
},
|
|
766
|
+
}, d = i || typeof e == "string" ? void 0 : "params" in e ? typeof e.params == "function" ? e.params({
|
|
749
767
|
context: t,
|
|
750
768
|
event: n
|
|
751
769
|
}) : e.params : void 0;
|
|
752
770
|
return "check" in a ? a.check(
|
|
753
771
|
r,
|
|
754
|
-
|
|
772
|
+
u,
|
|
755
773
|
a
|
|
756
774
|
// this holds all params
|
|
757
|
-
) : a(
|
|
775
|
+
) : a(u, d);
|
|
758
776
|
}
|
|
759
777
|
const Qn = (e) => e.type === "atomic" || e.type === "final";
|
|
760
778
|
function ct(e) {
|
|
@@ -812,7 +830,7 @@ function ws(e) {
|
|
|
812
830
|
t.has(n) || t.set(n, []), n.parent && (t.has(n.parent) || t.set(n.parent, []), t.get(n.parent).push(n));
|
|
813
831
|
return t;
|
|
814
832
|
}
|
|
815
|
-
function
|
|
833
|
+
function Rs(e, t) {
|
|
816
834
|
const n = Qt(t);
|
|
817
835
|
return Ss(e, ws(n));
|
|
818
836
|
}
|
|
@@ -828,10 +846,10 @@ function Zo(e, t) {
|
|
|
828
846
|
return !1;
|
|
829
847
|
const s = r.split("."), i = t.split(".");
|
|
830
848
|
for (let a = 0; a < s.length; a++) {
|
|
831
|
-
const
|
|
832
|
-
if (
|
|
849
|
+
const u = s[a], d = i[a];
|
|
850
|
+
if (u === "*")
|
|
833
851
|
return a === s.length - 1;
|
|
834
|
-
if (
|
|
852
|
+
if (u !== d)
|
|
835
853
|
return !1;
|
|
836
854
|
}
|
|
837
855
|
return !0;
|
|
@@ -842,20 +860,20 @@ function Qo(e) {
|
|
|
842
860
|
if (!t)
|
|
843
861
|
return [];
|
|
844
862
|
const n = (s, i) => {
|
|
845
|
-
const a = $o(s, e.id),
|
|
846
|
-
return e.entry.push(
|
|
847
|
-
id:
|
|
863
|
+
const a = $o(s, e.id), u = a.type;
|
|
864
|
+
return e.entry.push(Ti(a, {
|
|
865
|
+
id: u,
|
|
848
866
|
delay: s
|
|
849
|
-
})), e.exit.push(qo(
|
|
867
|
+
})), e.exit.push(qo(u)), u;
|
|
850
868
|
};
|
|
851
869
|
return Object.keys(t).flatMap((s, i) => {
|
|
852
|
-
const a = t[s],
|
|
870
|
+
const a = t[s], u = typeof a == "string" ? {
|
|
853
871
|
target: a
|
|
854
|
-
} : a,
|
|
855
|
-
return $e(
|
|
856
|
-
...
|
|
872
|
+
} : a, d = Number.isNaN(+s) ? s : +s, l = n(d);
|
|
873
|
+
return $e(u).map((y) => ({
|
|
874
|
+
...y,
|
|
857
875
|
event: l,
|
|
858
|
-
delay:
|
|
876
|
+
delay: d
|
|
859
877
|
}));
|
|
860
878
|
}).map((s) => {
|
|
861
879
|
const {
|
|
@@ -879,7 +897,7 @@ function Ke(e, t, n) {
|
|
|
879
897
|
toJSON: () => ({
|
|
880
898
|
...a,
|
|
881
899
|
source: `#${e.id}`,
|
|
882
|
-
target: i ? i.map((
|
|
900
|
+
target: i ? i.map((u) => `#${u.id}`) : void 0
|
|
883
901
|
})
|
|
884
902
|
};
|
|
885
903
|
return a;
|
|
@@ -957,7 +975,7 @@ ${i.message}`);
|
|
|
957
975
|
throw new Error(`Invalid target: "${n}" is not a valid target from the root node. Did you mean ".${n}"?`);
|
|
958
976
|
});
|
|
959
977
|
}
|
|
960
|
-
function
|
|
978
|
+
function Ts(e) {
|
|
961
979
|
const t = Es(e.config.target);
|
|
962
980
|
return t ? {
|
|
963
981
|
target: t.map((n) => typeof n == "string" ? en(e.parent, n) : n)
|
|
@@ -1013,15 +1031,19 @@ function en(e, t) {
|
|
|
1013
1031
|
return r;
|
|
1014
1032
|
}
|
|
1015
1033
|
function tn(e, t) {
|
|
1016
|
-
if (typeof t == "string")
|
|
1017
|
-
|
|
1034
|
+
if (typeof t == "string") {
|
|
1035
|
+
const s = e.states[t];
|
|
1036
|
+
if (!s)
|
|
1037
|
+
throw new Error(`State '${t}' does not exist on '${e.id}'`);
|
|
1038
|
+
return [e, s];
|
|
1039
|
+
}
|
|
1018
1040
|
const n = Object.keys(t), r = n.map((s) => ft(e, s)).filter(Boolean);
|
|
1019
1041
|
return [e.machine.root, e].concat(r, n.reduce((s, i) => {
|
|
1020
1042
|
const a = ft(e, i);
|
|
1021
1043
|
if (!a)
|
|
1022
1044
|
return s;
|
|
1023
|
-
const
|
|
1024
|
-
return s.concat(
|
|
1045
|
+
const u = tn(a, t[i]);
|
|
1046
|
+
return s.concat(u);
|
|
1025
1047
|
}, []));
|
|
1026
1048
|
}
|
|
1027
1049
|
function ri(e, t, n, r) {
|
|
@@ -1038,8 +1060,8 @@ function oi(e, t, n, r) {
|
|
|
1038
1060
|
const a = t[i];
|
|
1039
1061
|
if (!a)
|
|
1040
1062
|
continue;
|
|
1041
|
-
const
|
|
1042
|
-
|
|
1063
|
+
const u = ft(e, i), d = tr(u, a, n, r);
|
|
1064
|
+
d && s.push(...d);
|
|
1043
1065
|
}
|
|
1044
1066
|
return s.length ? s : e.next(n, r);
|
|
1045
1067
|
}
|
|
@@ -1070,17 +1092,17 @@ function Cs(e, t, n) {
|
|
|
1070
1092
|
for (const s of e) {
|
|
1071
1093
|
let i = !1;
|
|
1072
1094
|
const a = /* @__PURE__ */ new Set();
|
|
1073
|
-
for (const
|
|
1074
|
-
if (ai(Bn([s], t, n), Bn([
|
|
1075
|
-
if (Fe(s.source,
|
|
1076
|
-
a.add(
|
|
1095
|
+
for (const u of r)
|
|
1096
|
+
if (ai(Bn([s], t, n), Bn([u], t, n)))
|
|
1097
|
+
if (Fe(s.source, u.source))
|
|
1098
|
+
a.add(u);
|
|
1077
1099
|
else {
|
|
1078
1100
|
i = !0;
|
|
1079
1101
|
break;
|
|
1080
1102
|
}
|
|
1081
1103
|
if (!i) {
|
|
1082
|
-
for (const
|
|
1083
|
-
r.delete(
|
|
1104
|
+
for (const u of a)
|
|
1105
|
+
r.delete(u);
|
|
1084
1106
|
r.add(s);
|
|
1085
1107
|
}
|
|
1086
1108
|
}
|
|
@@ -1102,7 +1124,7 @@ function nr(e, t) {
|
|
|
1102
1124
|
for (const s of t[r.id])
|
|
1103
1125
|
n.add(s);
|
|
1104
1126
|
else
|
|
1105
|
-
for (const s of nr(
|
|
1127
|
+
for (const s of nr(Ts(r), t))
|
|
1106
1128
|
n.add(s);
|
|
1107
1129
|
else
|
|
1108
1130
|
n.add(r);
|
|
@@ -1127,8 +1149,8 @@ function Bn(e, t, n) {
|
|
|
1127
1149
|
if ((s = i.target) != null && s.length) {
|
|
1128
1150
|
const a = As(i, n);
|
|
1129
1151
|
i.reenter && i.source === a && r.add(a);
|
|
1130
|
-
for (const
|
|
1131
|
-
Fe(
|
|
1152
|
+
for (const u of t)
|
|
1153
|
+
Fe(u, a) && r.add(u);
|
|
1132
1154
|
}
|
|
1133
1155
|
return [...r];
|
|
1134
1156
|
}
|
|
@@ -1144,73 +1166,73 @@ function Wn(e, t, n, r, s, i) {
|
|
|
1144
1166
|
if (!e.length)
|
|
1145
1167
|
return t;
|
|
1146
1168
|
const a = new Set(t._nodes);
|
|
1147
|
-
let
|
|
1148
|
-
const
|
|
1169
|
+
let u = t.historyValue;
|
|
1170
|
+
const d = Cs(e, a, u);
|
|
1149
1171
|
let l = t;
|
|
1150
|
-
s || ([l,
|
|
1151
|
-
const
|
|
1152
|
-
l.status === "done" && (l = lt(l, r, n,
|
|
1172
|
+
s || ([l, u] = hi(l, r, n, d, a, u, i)), l = lt(l, r, n, d.flatMap((h) => h.actions), i), l = li(l, r, n, d, a, i, u, s);
|
|
1173
|
+
const y = [...a];
|
|
1174
|
+
l.status === "done" && (l = lt(l, r, n, y.sort((h, E) => E.order - h.order).flatMap((h) => h.exit), i));
|
|
1153
1175
|
try {
|
|
1154
|
-
return
|
|
1155
|
-
_nodes:
|
|
1156
|
-
historyValue:
|
|
1176
|
+
return u === t.historyValue && ci(t._nodes, a) ? l : Xe(l, {
|
|
1177
|
+
_nodes: y,
|
|
1178
|
+
historyValue: u
|
|
1157
1179
|
});
|
|
1158
|
-
} catch (
|
|
1159
|
-
throw
|
|
1180
|
+
} catch (h) {
|
|
1181
|
+
throw h;
|
|
1160
1182
|
}
|
|
1161
1183
|
}
|
|
1162
1184
|
function fi(e, t, n, r, s) {
|
|
1163
|
-
if (
|
|
1185
|
+
if (r.output === void 0)
|
|
1164
1186
|
return;
|
|
1165
|
-
const i =
|
|
1166
|
-
return
|
|
1167
|
-
}
|
|
1168
|
-
function li(e, t, n, r, s, i, a,
|
|
1169
|
-
let
|
|
1170
|
-
const l = /* @__PURE__ */ new Set(),
|
|
1171
|
-
di(r, a,
|
|
1172
|
-
const
|
|
1173
|
-
for (const E of [...l].sort((
|
|
1187
|
+
const i = Ln(s.id, s.output !== void 0 && s.parent ? Un(s.output, e.context, t, n.self) : void 0);
|
|
1188
|
+
return Un(r.output, e.context, i, n.self);
|
|
1189
|
+
}
|
|
1190
|
+
function li(e, t, n, r, s, i, a, u) {
|
|
1191
|
+
let d = e;
|
|
1192
|
+
const l = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Set();
|
|
1193
|
+
di(r, a, y, l), u && y.add(e.machine.root);
|
|
1194
|
+
const h = /* @__PURE__ */ new Set();
|
|
1195
|
+
for (const E of [...l].sort((S, _) => S.order - _.order)) {
|
|
1174
1196
|
s.add(E);
|
|
1175
|
-
const
|
|
1176
|
-
|
|
1177
|
-
for (const
|
|
1178
|
-
|
|
1179
|
-
...
|
|
1180
|
-
syncSnapshot: !!
|
|
1197
|
+
const S = [];
|
|
1198
|
+
S.push(...E.entry);
|
|
1199
|
+
for (const _ of E.invoke)
|
|
1200
|
+
S.push(Ko(_.src, {
|
|
1201
|
+
..._,
|
|
1202
|
+
syncSnapshot: !!_.onSnapshot
|
|
1181
1203
|
}));
|
|
1182
|
-
if (
|
|
1183
|
-
const
|
|
1184
|
-
|
|
1204
|
+
if (y.has(E)) {
|
|
1205
|
+
const _ = E.initial.actions;
|
|
1206
|
+
S.push(..._);
|
|
1185
1207
|
}
|
|
1186
|
-
if (
|
|
1187
|
-
const
|
|
1188
|
-
let O = (
|
|
1189
|
-
for ((
|
|
1190
|
-
|
|
1208
|
+
if (d = lt(d, t, n, S, i, E.invoke.map((_) => _.id)), E.type === "final") {
|
|
1209
|
+
const _ = E.parent;
|
|
1210
|
+
let O = (_ == null ? void 0 : _.type) === "parallel" ? _ : _ == null ? void 0 : _.parent, D = O || E;
|
|
1211
|
+
for ((_ == null ? void 0 : _.type) === "compound" && i.push(Ln(_.id, E.output !== void 0 ? Un(E.output, d.context, t, n.self) : void 0)); (O == null ? void 0 : O.type) === "parallel" && !h.has(O) && er(s, O); )
|
|
1212
|
+
h.add(O), i.push(Ln(O.id)), D = O, O = O.parent;
|
|
1191
1213
|
if (O)
|
|
1192
1214
|
continue;
|
|
1193
|
-
|
|
1215
|
+
d = Xe(d, {
|
|
1194
1216
|
status: "done",
|
|
1195
|
-
output: fi(
|
|
1217
|
+
output: fi(d, t, n, d.machine.root, D)
|
|
1196
1218
|
});
|
|
1197
1219
|
}
|
|
1198
1220
|
}
|
|
1199
|
-
return
|
|
1221
|
+
return d;
|
|
1200
1222
|
}
|
|
1201
1223
|
function di(e, t, n, r) {
|
|
1202
1224
|
for (const s of e) {
|
|
1203
1225
|
const i = As(s, t);
|
|
1204
|
-
for (const
|
|
1205
|
-
!Ge(
|
|
1206
|
-
(s.source !==
|
|
1226
|
+
for (const u of s.target || [])
|
|
1227
|
+
!Ge(u) && // if the target is different than the source then it will *definitely* be entered
|
|
1228
|
+
(s.source !== u || // we know that the domain can't lie within the source
|
|
1207
1229
|
// if it's different than the source then it's outside of it and it means that the target has to be entered as well
|
|
1208
1230
|
s.source !== i || // reentering transitions always enter the target, even if it's the source itself
|
|
1209
|
-
s.reenter) && (r.add(
|
|
1231
|
+
s.reenter) && (r.add(u), n.add(u)), at(u, t, n, r);
|
|
1210
1232
|
const a = nr(s, t);
|
|
1211
|
-
for (const
|
|
1212
|
-
const
|
|
1213
|
-
(i == null ? void 0 : i.type) === "parallel" &&
|
|
1233
|
+
for (const u of a) {
|
|
1234
|
+
const d = Ot(u, i);
|
|
1235
|
+
(i == null ? void 0 : i.type) === "parallel" && d.push(i), ks(r, t, n, d, !s.source.parent && s.reenter ? void 0 : i);
|
|
1214
1236
|
}
|
|
1215
1237
|
}
|
|
1216
1238
|
}
|
|
@@ -1224,7 +1246,7 @@ function at(e, t, n, r) {
|
|
|
1224
1246
|
for (const a of i)
|
|
1225
1247
|
In(a, e.parent, r, t, n);
|
|
1226
1248
|
} else {
|
|
1227
|
-
const i =
|
|
1249
|
+
const i = Ts(e);
|
|
1228
1250
|
for (const a of i.target)
|
|
1229
1251
|
r.add(a), i === ((s = e.parent) == null ? void 0 : s.initial) && n.add(e.parent), at(a, t, n, r);
|
|
1230
1252
|
for (const a of i.target)
|
|
@@ -1240,122 +1262,141 @@ function at(e, t, n, r) {
|
|
|
1240
1262
|
function ks(e, t, n, r, s) {
|
|
1241
1263
|
for (const i of r)
|
|
1242
1264
|
if ((!s || Fe(i, s)) && e.add(i), i.type === "parallel")
|
|
1243
|
-
for (const a of ct(i).filter((
|
|
1244
|
-
[...e].some((
|
|
1265
|
+
for (const a of ct(i).filter((u) => !Ge(u)))
|
|
1266
|
+
[...e].some((u) => Fe(u, a)) || (e.add(a), at(a, t, n, e));
|
|
1245
1267
|
}
|
|
1246
1268
|
function In(e, t, n, r, s) {
|
|
1247
1269
|
ks(n, r, s, Ot(e, t));
|
|
1248
1270
|
}
|
|
1249
1271
|
function hi(e, t, n, r, s, i, a) {
|
|
1250
|
-
let
|
|
1251
|
-
const
|
|
1252
|
-
|
|
1272
|
+
let u = e;
|
|
1273
|
+
const d = Bn(r, s, i);
|
|
1274
|
+
d.sort((y, h) => h.order - y.order);
|
|
1253
1275
|
let l;
|
|
1254
|
-
for (const
|
|
1255
|
-
for (const
|
|
1276
|
+
for (const y of d)
|
|
1277
|
+
for (const h of ii(y)) {
|
|
1256
1278
|
let E;
|
|
1257
|
-
|
|
1279
|
+
h.history === "deep" ? E = (S) => Qn(S) && Fe(S, y) : E = (S) => S.parent === y, l ?? (l = {
|
|
1258
1280
|
...i
|
|
1259
|
-
}), l[
|
|
1281
|
+
}), l[h.id] = Array.from(s).filter(E);
|
|
1260
1282
|
}
|
|
1261
|
-
for (const
|
|
1262
|
-
|
|
1263
|
-
return [
|
|
1283
|
+
for (const y of d)
|
|
1284
|
+
u = lt(u, t, n, [...y.exit, ...y.invoke.map((h) => bs(h.id))], a), s.delete(y);
|
|
1285
|
+
return [u, l || i];
|
|
1264
1286
|
}
|
|
1265
1287
|
function xs(e, t, n, r, s, i) {
|
|
1266
1288
|
const {
|
|
1267
1289
|
machine: a
|
|
1268
1290
|
} = e;
|
|
1269
|
-
let
|
|
1270
|
-
for (const
|
|
1271
|
-
|
|
1291
|
+
let u = e;
|
|
1292
|
+
for (const d of r) {
|
|
1293
|
+
let S = function() {
|
|
1294
|
+
n.system._sendInspectionEvent({
|
|
1295
|
+
type: "@xstate.action",
|
|
1296
|
+
actorRef: n.self,
|
|
1297
|
+
action: {
|
|
1298
|
+
type: typeof d == "string" ? d : typeof d == "object" ? d.type : d.name || "(anonymous)",
|
|
1299
|
+
params: E
|
|
1300
|
+
}
|
|
1301
|
+
}), y(h, E);
|
|
1302
|
+
};
|
|
1303
|
+
const l = typeof d == "function", y = l ? d : (
|
|
1272
1304
|
// the existing type of `.actions` assumes non-nullable `TExpressionAction`
|
|
1273
1305
|
// it's fine to cast this here to get a common type and lack of errors in the rest of the code
|
|
1274
1306
|
// our logic below makes sure that we call those 2 "variants" correctly
|
|
1275
|
-
a.implementations.actions[typeof
|
|
1307
|
+
a.implementations.actions[typeof d == "string" ? d : d.type]
|
|
1276
1308
|
);
|
|
1277
|
-
if (!
|
|
1309
|
+
if (!y)
|
|
1278
1310
|
continue;
|
|
1279
|
-
const
|
|
1280
|
-
context:
|
|
1311
|
+
const h = {
|
|
1312
|
+
context: u.context,
|
|
1281
1313
|
event: t,
|
|
1282
1314
|
self: n.self,
|
|
1283
1315
|
system: n.system
|
|
1284
|
-
}, E = l || typeof
|
|
1285
|
-
context:
|
|
1316
|
+
}, E = l || typeof d == "string" ? void 0 : "params" in d ? typeof d.params == "function" ? d.params({
|
|
1317
|
+
context: u.context,
|
|
1286
1318
|
event: t
|
|
1287
|
-
}) :
|
|
1288
|
-
if (!("resolve" in
|
|
1289
|
-
n.self._processingStatus === fe.Running ?
|
|
1290
|
-
|
|
1319
|
+
}) : d.params : void 0;
|
|
1320
|
+
if (!("resolve" in y)) {
|
|
1321
|
+
n.self._processingStatus === fe.Running ? S() : n.defer(() => {
|
|
1322
|
+
S();
|
|
1291
1323
|
});
|
|
1292
1324
|
continue;
|
|
1293
1325
|
}
|
|
1294
|
-
const
|
|
1326
|
+
const _ = y, [O, D, L] = _.resolve(
|
|
1295
1327
|
n,
|
|
1296
|
-
|
|
1297
|
-
|
|
1328
|
+
u,
|
|
1329
|
+
h,
|
|
1298
1330
|
E,
|
|
1299
|
-
|
|
1331
|
+
y,
|
|
1300
1332
|
// this holds all params
|
|
1301
1333
|
s
|
|
1302
1334
|
);
|
|
1303
|
-
|
|
1335
|
+
u = O, "retryResolve" in _ && (i == null || i.push([_, D])), "execute" in _ && (n.self._processingStatus === fe.Running ? _.execute(n, D) : n.defer(_.execute.bind(null, n, D))), L && (u = xs(u, t, n, L, s, i));
|
|
1304
1336
|
}
|
|
1305
|
-
return
|
|
1337
|
+
return u;
|
|
1306
1338
|
}
|
|
1307
1339
|
function lt(e, t, n, r, s, i) {
|
|
1308
|
-
const a = i ? [] : void 0,
|
|
1340
|
+
const a = i ? [] : void 0, u = xs(e, t, n, r, {
|
|
1309
1341
|
internalQueue: s,
|
|
1310
1342
|
deferredActorIds: i
|
|
1311
1343
|
}, a);
|
|
1312
|
-
return a == null || a.forEach(([
|
|
1313
|
-
|
|
1314
|
-
}),
|
|
1344
|
+
return a == null || a.forEach(([d, l]) => {
|
|
1345
|
+
d.retryResolve(n, u, l);
|
|
1346
|
+
}), u;
|
|
1315
1347
|
}
|
|
1316
1348
|
function jn(e, t, n, r = []) {
|
|
1317
1349
|
let s = e;
|
|
1318
1350
|
const i = [];
|
|
1319
|
-
|
|
1351
|
+
function a(l, y, h) {
|
|
1352
|
+
n.system._sendInspectionEvent({
|
|
1353
|
+
type: "@xstate.microstep",
|
|
1354
|
+
actorRef: n.self,
|
|
1355
|
+
event: y,
|
|
1356
|
+
snapshot: l,
|
|
1357
|
+
_transitions: h
|
|
1358
|
+
}), i.push(l);
|
|
1359
|
+
}
|
|
1360
|
+
if (t.type === Rt)
|
|
1320
1361
|
return s = Xe(Wr(s, t, n), {
|
|
1321
1362
|
status: "stopped"
|
|
1322
|
-
}),
|
|
1363
|
+
}), a(s, t, []), {
|
|
1323
1364
|
snapshot: s,
|
|
1324
1365
|
microstates: i
|
|
1325
1366
|
};
|
|
1326
|
-
let
|
|
1327
|
-
if (
|
|
1328
|
-
const
|
|
1329
|
-
if (
|
|
1367
|
+
let u = t;
|
|
1368
|
+
if (u.type !== ps) {
|
|
1369
|
+
const l = u, y = Bo(l), h = Vr(l, s);
|
|
1370
|
+
if (y && !h.length)
|
|
1330
1371
|
return s = Xe(e, {
|
|
1331
1372
|
status: "error",
|
|
1332
|
-
error:
|
|
1333
|
-
}),
|
|
1373
|
+
error: l.error
|
|
1374
|
+
}), a(s, l, []), {
|
|
1334
1375
|
snapshot: s,
|
|
1335
1376
|
microstates: i
|
|
1336
1377
|
};
|
|
1337
1378
|
s = Wn(
|
|
1338
|
-
|
|
1379
|
+
h,
|
|
1339
1380
|
e,
|
|
1340
1381
|
n,
|
|
1341
|
-
|
|
1382
|
+
u,
|
|
1342
1383
|
!1,
|
|
1343
1384
|
// isInitial
|
|
1344
1385
|
r
|
|
1345
|
-
),
|
|
1386
|
+
), a(s, l, h);
|
|
1346
1387
|
}
|
|
1347
|
-
let
|
|
1388
|
+
let d = !0;
|
|
1348
1389
|
for (; s.status === "active"; ) {
|
|
1349
|
-
let
|
|
1350
|
-
const
|
|
1351
|
-
if (!
|
|
1390
|
+
let l = d ? pi(s, u) : [];
|
|
1391
|
+
const y = l.length ? s : void 0;
|
|
1392
|
+
if (!l.length) {
|
|
1352
1393
|
if (!r.length)
|
|
1353
1394
|
break;
|
|
1354
|
-
|
|
1395
|
+
u = r.shift(), l = Vr(u, s);
|
|
1355
1396
|
}
|
|
1356
|
-
s = Wn(
|
|
1397
|
+
s = Wn(l, s, n, u, !1, r), d = s !== y, a(s, u, l);
|
|
1357
1398
|
}
|
|
1358
|
-
return s.status !== "active" && Wr(s,
|
|
1399
|
+
return s.status !== "active" && Wr(s, u, n), {
|
|
1359
1400
|
snapshot: s,
|
|
1360
1401
|
microstates: i
|
|
1361
1402
|
};
|
|
@@ -1382,7 +1423,7 @@ function pi(e, t) {
|
|
|
1382
1423
|
}
|
|
1383
1424
|
function yi(e, t) {
|
|
1384
1425
|
const n = Qt(tn(e, t));
|
|
1385
|
-
return
|
|
1426
|
+
return Rs(e, [...n]);
|
|
1386
1427
|
}
|
|
1387
1428
|
function mi(e) {
|
|
1388
1429
|
return !!e && typeof e == "object" && "machine" in e && "value" in e;
|
|
@@ -1403,8 +1444,8 @@ const vi = function(t) {
|
|
|
1403
1444
|
getMeta: s,
|
|
1404
1445
|
toJSON: i,
|
|
1405
1446
|
can: a,
|
|
1406
|
-
hasTag:
|
|
1407
|
-
matches:
|
|
1447
|
+
hasTag: u,
|
|
1448
|
+
matches: d,
|
|
1408
1449
|
...l
|
|
1409
1450
|
} = this;
|
|
1410
1451
|
return {
|
|
@@ -1422,7 +1463,7 @@ function Jt(e, t) {
|
|
|
1422
1463
|
machine: t,
|
|
1423
1464
|
context: e.context,
|
|
1424
1465
|
_nodes: e._nodes,
|
|
1425
|
-
value:
|
|
1466
|
+
value: Rs(t.root, e._nodes),
|
|
1426
1467
|
tags: new Set(e._nodes.flatMap((n) => n.tags)),
|
|
1427
1468
|
children: e.children,
|
|
1428
1469
|
historyValue: e.historyValue || {},
|
|
@@ -1446,26 +1487,26 @@ function Si(e, t) {
|
|
|
1446
1487
|
machine: s,
|
|
1447
1488
|
children: i,
|
|
1448
1489
|
context: a,
|
|
1449
|
-
can:
|
|
1450
|
-
hasTag:
|
|
1490
|
+
can: u,
|
|
1491
|
+
hasTag: d,
|
|
1451
1492
|
matches: l,
|
|
1452
|
-
getMeta:
|
|
1453
|
-
toJSON:
|
|
1493
|
+
getMeta: y,
|
|
1494
|
+
toJSON: h,
|
|
1454
1495
|
...E
|
|
1455
|
-
} = e,
|
|
1496
|
+
} = e, S = {};
|
|
1456
1497
|
for (const O in i) {
|
|
1457
|
-
const
|
|
1458
|
-
|
|
1459
|
-
snapshot:
|
|
1460
|
-
src:
|
|
1461
|
-
systemId:
|
|
1462
|
-
syncSnapshot:
|
|
1498
|
+
const D = i[O];
|
|
1499
|
+
S[O] = {
|
|
1500
|
+
snapshot: D.getPersistedSnapshot(t),
|
|
1501
|
+
src: D.src,
|
|
1502
|
+
systemId: D._systemId,
|
|
1503
|
+
syncSnapshot: D._syncSnapshot
|
|
1463
1504
|
};
|
|
1464
1505
|
}
|
|
1465
1506
|
return {
|
|
1466
1507
|
...E,
|
|
1467
1508
|
context: Ps(a),
|
|
1468
|
-
children:
|
|
1509
|
+
children: S
|
|
1469
1510
|
};
|
|
1470
1511
|
}
|
|
1471
1512
|
function Ps(e) {
|
|
@@ -1494,25 +1535,25 @@ function wi(e, t, n, r, {
|
|
|
1494
1535
|
id: i,
|
|
1495
1536
|
delay: a
|
|
1496
1537
|
}, {
|
|
1497
|
-
internalQueue:
|
|
1538
|
+
internalQueue: u
|
|
1498
1539
|
}) {
|
|
1499
|
-
const
|
|
1540
|
+
const d = t.machine.implementations.delays;
|
|
1500
1541
|
if (typeof s == "string")
|
|
1501
1542
|
throw new Error(`Only event objects may be used with raise; use raise({ type: "${s}" }) instead`);
|
|
1502
1543
|
const l = typeof s == "function" ? s(n, r) : s;
|
|
1503
|
-
let
|
|
1544
|
+
let y;
|
|
1504
1545
|
if (typeof a == "string") {
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1546
|
+
const h = d && d[a];
|
|
1547
|
+
y = typeof h == "function" ? h(n, r) : h;
|
|
1507
1548
|
} else
|
|
1508
|
-
|
|
1509
|
-
return typeof
|
|
1549
|
+
y = typeof a == "function" ? a(n, r) : a;
|
|
1550
|
+
return typeof y != "number" && u.push(l), [t, {
|
|
1510
1551
|
event: l,
|
|
1511
1552
|
id: i,
|
|
1512
|
-
delay:
|
|
1553
|
+
delay: y
|
|
1513
1554
|
}];
|
|
1514
1555
|
}
|
|
1515
|
-
function
|
|
1556
|
+
function Ri(e, t) {
|
|
1516
1557
|
const {
|
|
1517
1558
|
event: n,
|
|
1518
1559
|
delay: r,
|
|
@@ -1526,10 +1567,10 @@ function Ti(e, t) {
|
|
|
1526
1567
|
return;
|
|
1527
1568
|
}
|
|
1528
1569
|
}
|
|
1529
|
-
function
|
|
1570
|
+
function Ti(e, t) {
|
|
1530
1571
|
function n(r, s) {
|
|
1531
1572
|
}
|
|
1532
|
-
return n.type = "xstate.raise", n.event = e, n.id = t == null ? void 0 : t.id, n.delay = t == null ? void 0 : t.delay, n.resolve = wi, n.execute =
|
|
1573
|
+
return n.type = "xstate.raise", n.event = e, n.id = t == null ? void 0 : t.id, n.delay = t == null ? void 0 : t.delay, n.resolve = wi, n.execute = Ri, n;
|
|
1533
1574
|
}
|
|
1534
1575
|
const zr = /* @__PURE__ */ new WeakMap();
|
|
1535
1576
|
function Oi(e) {
|
|
@@ -1547,22 +1588,22 @@ function Oi(e) {
|
|
|
1547
1588
|
input: n.input,
|
|
1548
1589
|
system: i,
|
|
1549
1590
|
self: s,
|
|
1550
|
-
sendBack: (
|
|
1551
|
-
s.getSnapshot().status !== "stopped" && s._parent && i._relay(s, s._parent,
|
|
1591
|
+
sendBack: (u) => {
|
|
1592
|
+
s.getSnapshot().status !== "stopped" && s._parent && i._relay(s, s._parent, u);
|
|
1552
1593
|
},
|
|
1553
|
-
receive: (
|
|
1554
|
-
a.receivers ?? (a.receivers = /* @__PURE__ */ new Set()), a.receivers.add(
|
|
1594
|
+
receive: (u) => {
|
|
1595
|
+
a.receivers ?? (a.receivers = /* @__PURE__ */ new Set()), a.receivers.add(u);
|
|
1555
1596
|
}
|
|
1556
1597
|
});
|
|
1557
1598
|
},
|
|
1558
1599
|
transition: (n, r, s) => {
|
|
1559
|
-
var a,
|
|
1600
|
+
var a, u;
|
|
1560
1601
|
const i = zr.get(s.self);
|
|
1561
|
-
return r.type ===
|
|
1602
|
+
return r.type === Rt ? (n = {
|
|
1562
1603
|
...n,
|
|
1563
1604
|
status: "stopped",
|
|
1564
1605
|
error: void 0
|
|
1565
|
-
}, (a = i.dispose) == null || a.call(i), n) : ((
|
|
1606
|
+
}, (a = i.dispose) == null || a.call(i), n) : ((u = i.receivers) == null || u.forEach((d) => d(r)), n);
|
|
1566
1607
|
},
|
|
1567
1608
|
getInitialSnapshot: (n, r) => ({
|
|
1568
1609
|
status: "active",
|
|
@@ -1598,7 +1639,7 @@ function Dn(e) {
|
|
|
1598
1639
|
error: r.data,
|
|
1599
1640
|
input: void 0
|
|
1600
1641
|
};
|
|
1601
|
-
case
|
|
1642
|
+
case Rt:
|
|
1602
1643
|
return {
|
|
1603
1644
|
...n,
|
|
1604
1645
|
status: "stopped",
|
|
@@ -1644,43 +1685,43 @@ function Ci(e, {
|
|
|
1644
1685
|
machine: t,
|
|
1645
1686
|
context: n
|
|
1646
1687
|
}, r, s) {
|
|
1647
|
-
const i = (a,
|
|
1688
|
+
const i = (a, u = {}) => {
|
|
1648
1689
|
const {
|
|
1649
|
-
systemId:
|
|
1690
|
+
systemId: d,
|
|
1650
1691
|
input: l
|
|
1651
|
-
} =
|
|
1692
|
+
} = u;
|
|
1652
1693
|
if (typeof a == "string") {
|
|
1653
|
-
const
|
|
1654
|
-
if (!
|
|
1694
|
+
const y = Gn(t, a);
|
|
1695
|
+
if (!y)
|
|
1655
1696
|
throw new Error(`Actor logic '${a}' not implemented in machine '${t.id}'`);
|
|
1656
|
-
const
|
|
1657
|
-
id:
|
|
1697
|
+
const h = ut(y, {
|
|
1698
|
+
id: u.id,
|
|
1658
1699
|
parent: e.self,
|
|
1659
|
-
syncSnapshot:
|
|
1700
|
+
syncSnapshot: u.syncSnapshot,
|
|
1660
1701
|
input: typeof l == "function" ? l({
|
|
1661
1702
|
context: n,
|
|
1662
1703
|
event: r,
|
|
1663
1704
|
self: e.self
|
|
1664
1705
|
}) : l,
|
|
1665
1706
|
src: a,
|
|
1666
|
-
systemId:
|
|
1707
|
+
systemId: d
|
|
1667
1708
|
});
|
|
1668
|
-
return s[
|
|
1709
|
+
return s[h.id] = h, h;
|
|
1669
1710
|
} else
|
|
1670
1711
|
return ut(a, {
|
|
1671
|
-
id:
|
|
1712
|
+
id: u.id,
|
|
1672
1713
|
parent: e.self,
|
|
1673
|
-
syncSnapshot:
|
|
1674
|
-
input:
|
|
1714
|
+
syncSnapshot: u.syncSnapshot,
|
|
1715
|
+
input: u.input,
|
|
1675
1716
|
src: a,
|
|
1676
|
-
systemId:
|
|
1717
|
+
systemId: d
|
|
1677
1718
|
});
|
|
1678
1719
|
};
|
|
1679
|
-
return (a,
|
|
1680
|
-
const
|
|
1681
|
-
return s[
|
|
1682
|
-
|
|
1683
|
-
}),
|
|
1720
|
+
return (a, u) => {
|
|
1721
|
+
const d = i(a, u);
|
|
1722
|
+
return s[d.id] = d, e.defer(() => {
|
|
1723
|
+
d._processingStatus !== fe.Stopped && d.start();
|
|
1724
|
+
}), d;
|
|
1684
1725
|
};
|
|
1685
1726
|
}
|
|
1686
1727
|
function Ai(e, t, n, r, {
|
|
@@ -1695,17 +1736,17 @@ function Ai(e, t, n, r, {
|
|
|
1695
1736
|
self: e.self,
|
|
1696
1737
|
system: e.system
|
|
1697
1738
|
};
|
|
1698
|
-
let
|
|
1739
|
+
let u = {};
|
|
1699
1740
|
if (typeof s == "function")
|
|
1700
|
-
|
|
1741
|
+
u = s(a, r);
|
|
1701
1742
|
else
|
|
1702
1743
|
for (const l of Object.keys(s)) {
|
|
1703
|
-
const
|
|
1704
|
-
|
|
1744
|
+
const y = s[l];
|
|
1745
|
+
u[l] = typeof y == "function" ? y(a, r) : y;
|
|
1705
1746
|
}
|
|
1706
|
-
const
|
|
1747
|
+
const d = Object.assign({}, t.context, u);
|
|
1707
1748
|
return [Xe(t, {
|
|
1708
|
-
context:
|
|
1749
|
+
context: d,
|
|
1709
1750
|
children: Object.keys(i).length ? {
|
|
1710
1751
|
...t.children,
|
|
1711
1752
|
...i
|
|
@@ -1724,31 +1765,31 @@ function ki(e, t, n, r, {
|
|
|
1724
1765
|
to: s,
|
|
1725
1766
|
event: i,
|
|
1726
1767
|
id: a,
|
|
1727
|
-
delay:
|
|
1728
|
-
},
|
|
1729
|
-
var
|
|
1768
|
+
delay: u
|
|
1769
|
+
}, d) {
|
|
1770
|
+
var _;
|
|
1730
1771
|
const l = t.machine.implementations.delays;
|
|
1731
1772
|
if (typeof i == "string")
|
|
1732
1773
|
throw new Error(`Only event objects may be used with sendTo; use sendTo({ type: "${i}" }) instead`);
|
|
1733
|
-
const
|
|
1734
|
-
let
|
|
1735
|
-
if (typeof
|
|
1736
|
-
const O = l && l[
|
|
1737
|
-
|
|
1774
|
+
const y = typeof i == "function" ? i(n, r) : i;
|
|
1775
|
+
let h;
|
|
1776
|
+
if (typeof u == "string") {
|
|
1777
|
+
const O = l && l[u];
|
|
1778
|
+
h = typeof O == "function" ? O(n, r) : O;
|
|
1738
1779
|
} else
|
|
1739
|
-
|
|
1780
|
+
h = typeof u == "function" ? u(n, r) : u;
|
|
1740
1781
|
const E = typeof s == "function" ? s(n, r) : s;
|
|
1741
|
-
let
|
|
1782
|
+
let S;
|
|
1742
1783
|
if (typeof E == "string") {
|
|
1743
|
-
if (E === Yr.Parent ?
|
|
1784
|
+
if (E === Yr.Parent ? S = e.self._parent : E === Yr.Internal ? S = e.self : E.startsWith("#_") ? S = t.children[E.slice(2)] : S = (_ = d.deferredActorIds) != null && _.includes(E) ? E : t.children[E], !S)
|
|
1744
1785
|
throw new Error(`Unable to send event to actor '${E}' from machine '${t.machine.id}'.`);
|
|
1745
1786
|
} else
|
|
1746
|
-
|
|
1787
|
+
S = E || e.self;
|
|
1747
1788
|
return [t, {
|
|
1748
|
-
to:
|
|
1749
|
-
event:
|
|
1789
|
+
to: S,
|
|
1790
|
+
event: y,
|
|
1750
1791
|
id: a,
|
|
1751
|
-
delay:
|
|
1792
|
+
delay: h
|
|
1752
1793
|
}];
|
|
1753
1794
|
}
|
|
1754
1795
|
function xi(e, t, n) {
|
|
@@ -1861,7 +1902,7 @@ class rr {
|
|
|
1861
1902
|
const {
|
|
1862
1903
|
src: r,
|
|
1863
1904
|
systemId: s
|
|
1864
|
-
} = t, i = t.id ??
|
|
1905
|
+
} = t, i = t.id ?? Ur(this.id, n), a = typeof r == "string" ? r : `xstate.invoke.${Ur(this.id, n)}`;
|
|
1865
1906
|
return {
|
|
1866
1907
|
...t,
|
|
1867
1908
|
src: a,
|
|
@@ -1869,8 +1910,8 @@ class rr {
|
|
|
1869
1910
|
systemId: s,
|
|
1870
1911
|
toJSON() {
|
|
1871
1912
|
const {
|
|
1872
|
-
onDone:
|
|
1873
|
-
onError:
|
|
1913
|
+
onDone: u,
|
|
1914
|
+
onError: d,
|
|
1874
1915
|
...l
|
|
1875
1916
|
} = t;
|
|
1876
1917
|
return {
|
|
@@ -1900,20 +1941,20 @@ class rr {
|
|
|
1900
1941
|
const r = n.type, s = [];
|
|
1901
1942
|
let i;
|
|
1902
1943
|
const a = ot(this, `candidates-${r}`, () => Zo(this, r));
|
|
1903
|
-
for (const
|
|
1944
|
+
for (const u of a) {
|
|
1904
1945
|
const {
|
|
1905
|
-
guard:
|
|
1906
|
-
} =
|
|
1907
|
-
let
|
|
1946
|
+
guard: d
|
|
1947
|
+
} = u, l = t.context;
|
|
1948
|
+
let y = !1;
|
|
1908
1949
|
try {
|
|
1909
|
-
|
|
1910
|
-
} catch (
|
|
1911
|
-
const E = typeof
|
|
1950
|
+
y = !d || Zn(d, l, n, t);
|
|
1951
|
+
} catch (h) {
|
|
1952
|
+
const E = typeof d == "string" ? d : typeof d == "object" ? d.type : void 0;
|
|
1912
1953
|
throw new Error(`Unable to evaluate guard ${E ? `'${E}' ` : ""}in transition for event '${r}' in state node '${this.id}':
|
|
1913
|
-
${
|
|
1954
|
+
${h.message}`);
|
|
1914
1955
|
}
|
|
1915
|
-
if (
|
|
1916
|
-
s.push(...
|
|
1956
|
+
if (y) {
|
|
1957
|
+
s.push(...u.actions), i = u;
|
|
1917
1958
|
break;
|
|
1918
1959
|
}
|
|
1919
1960
|
}
|
|
@@ -1950,12 +1991,12 @@ ${m.message}`);
|
|
|
1950
1991
|
const ji = "#";
|
|
1951
1992
|
class sr {
|
|
1952
1993
|
constructor(t, n) {
|
|
1953
|
-
this.config = t, this.version = void 0, this.implementations = void 0, this.__xstatenode = !0, this.idMap = /* @__PURE__ */ new Map(), this.root = void 0, this.id = void 0, this.states = void 0, this.events = void 0, this.__TResolvedTypesMeta = void 0, this.id = t.id || "(machine)", this.implementations = {
|
|
1994
|
+
this.config = t, this.version = void 0, this.schemas = void 0, this.implementations = void 0, this.__xstatenode = !0, this.idMap = /* @__PURE__ */ new Map(), this.root = void 0, this.id = void 0, this.states = void 0, this.events = void 0, this.__TResolvedTypesMeta = void 0, this.id = t.id || "(machine)", this.implementations = {
|
|
1954
1995
|
actors: (n == null ? void 0 : n.actors) ?? {},
|
|
1955
1996
|
actions: (n == null ? void 0 : n.actions) ?? {},
|
|
1956
1997
|
delays: (n == null ? void 0 : n.delays) ?? {},
|
|
1957
1998
|
guards: (n == null ? void 0 : n.guards) ?? {}
|
|
1958
|
-
}, this.version = this.config.version, this.transition = this.transition.bind(this), this.getInitialSnapshot = this.getInitialSnapshot.bind(this), this.getPersistedSnapshot = this.getPersistedSnapshot.bind(this), this.restoreSnapshot = this.restoreSnapshot.bind(this), this.start = this.start.bind(this), this.root = new rr(t, {
|
|
1999
|
+
}, this.version = this.config.version, this.schemas = this.config.schemas, this.transition = this.transition.bind(this), this.getInitialSnapshot = this.getInitialSnapshot.bind(this), this.getPersistedSnapshot = this.getPersistedSnapshot.bind(this), this.restoreSnapshot = this.restoreSnapshot.bind(this), this.start = this.start.bind(this), this.root = new rr(t, {
|
|
1959
2000
|
_key: this.id,
|
|
1960
2001
|
_machine: this
|
|
1961
2002
|
}), this.root._initialize(), this.states = this.root.states, this.events = this.root.events;
|
|
@@ -2044,12 +2085,12 @@ class sr {
|
|
|
2044
2085
|
status: "active"
|
|
2045
2086
|
}, this);
|
|
2046
2087
|
return typeof s == "function" ? lt(i, n, t, [ge(({
|
|
2047
|
-
spawn:
|
|
2048
|
-
event:
|
|
2088
|
+
spawn: u,
|
|
2089
|
+
event: d,
|
|
2049
2090
|
self: l
|
|
2050
2091
|
}) => s({
|
|
2051
|
-
spawn:
|
|
2052
|
-
input:
|
|
2092
|
+
spawn: u,
|
|
2093
|
+
input: d.input,
|
|
2053
2094
|
self: l
|
|
2054
2095
|
}))], r) : i;
|
|
2055
2096
|
}
|
|
@@ -2066,9 +2107,9 @@ class sr {
|
|
|
2066
2107
|
toJSON: null
|
|
2067
2108
|
// TODO: fix
|
|
2068
2109
|
}], i, t, r, !0, s), {
|
|
2069
|
-
snapshot:
|
|
2110
|
+
snapshot: u
|
|
2070
2111
|
} = jn(a, r, t, s);
|
|
2071
|
-
return
|
|
2112
|
+
return u;
|
|
2072
2113
|
}
|
|
2073
2114
|
start(t) {
|
|
2074
2115
|
Object.values(t.children).forEach((n) => {
|
|
@@ -2092,19 +2133,19 @@ class sr {
|
|
|
2092
2133
|
}
|
|
2093
2134
|
restoreSnapshot(t, n) {
|
|
2094
2135
|
const r = {}, s = t.children;
|
|
2095
|
-
Object.keys(s).forEach((
|
|
2096
|
-
const l = s[
|
|
2136
|
+
Object.keys(s).forEach((d) => {
|
|
2137
|
+
const l = s[d], y = l.snapshot, h = l.src, E = typeof h == "string" ? Gn(this, h) : h;
|
|
2097
2138
|
if (!E)
|
|
2098
2139
|
return;
|
|
2099
|
-
const
|
|
2100
|
-
id:
|
|
2140
|
+
const S = ut(E, {
|
|
2141
|
+
id: d,
|
|
2101
2142
|
parent: n.self,
|
|
2102
2143
|
syncSnapshot: l.syncSnapshot,
|
|
2103
|
-
snapshot:
|
|
2104
|
-
src:
|
|
2144
|
+
snapshot: y,
|
|
2145
|
+
src: h,
|
|
2105
2146
|
systemId: l.systemId
|
|
2106
2147
|
});
|
|
2107
|
-
r[
|
|
2148
|
+
r[d] = S;
|
|
2108
2149
|
});
|
|
2109
2150
|
const i = Jt({
|
|
2110
2151
|
...t,
|
|
@@ -2112,39 +2153,43 @@ class sr {
|
|
|
2112
2153
|
_nodes: Array.from(Qt(tn(this.root, t.value)))
|
|
2113
2154
|
}, this);
|
|
2114
2155
|
let a = /* @__PURE__ */ new Set();
|
|
2115
|
-
function
|
|
2116
|
-
if (!a.has(
|
|
2117
|
-
a.add(
|
|
2118
|
-
for (let
|
|
2119
|
-
const
|
|
2120
|
-
if (
|
|
2121
|
-
if ("xstate$$type" in
|
|
2122
|
-
|
|
2156
|
+
function u(d, l) {
|
|
2157
|
+
if (!a.has(d)) {
|
|
2158
|
+
a.add(d);
|
|
2159
|
+
for (let y in d) {
|
|
2160
|
+
const h = d[y];
|
|
2161
|
+
if (h && typeof h == "object") {
|
|
2162
|
+
if ("xstate$$type" in h && h.xstate$$type === Xn) {
|
|
2163
|
+
d[y] = l[h.id];
|
|
2123
2164
|
continue;
|
|
2124
2165
|
}
|
|
2125
|
-
|
|
2166
|
+
u(h, l);
|
|
2126
2167
|
}
|
|
2127
2168
|
}
|
|
2128
2169
|
}
|
|
2129
2170
|
}
|
|
2130
|
-
return
|
|
2171
|
+
return u(i.context, r), i;
|
|
2131
2172
|
}
|
|
2132
2173
|
}
|
|
2133
2174
|
function Di(e, t) {
|
|
2134
2175
|
return new sr(e, t);
|
|
2135
2176
|
}
|
|
2136
2177
|
function or({
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2178
|
+
schemas: e,
|
|
2179
|
+
actors: t,
|
|
2180
|
+
actions: n,
|
|
2181
|
+
guards: r,
|
|
2182
|
+
delays: s
|
|
2141
2183
|
}) {
|
|
2142
2184
|
return {
|
|
2143
|
-
createMachine: (
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2185
|
+
createMachine: (i) => Di({
|
|
2186
|
+
...i,
|
|
2187
|
+
schemas: e
|
|
2188
|
+
}, {
|
|
2189
|
+
actors: t,
|
|
2190
|
+
actions: n,
|
|
2191
|
+
guards: r,
|
|
2192
|
+
delays: s
|
|
2148
2193
|
})
|
|
2149
2194
|
};
|
|
2150
2195
|
}
|
|
@@ -2156,21 +2201,21 @@ function Is(e, t) {
|
|
|
2156
2201
|
const { toString: $i } = Object.prototype, { getPrototypeOf: ir } = Object, sn = ((e) => (t) => {
|
|
2157
2202
|
const n = $i.call(t);
|
|
2158
2203
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
2159
|
-
})(/* @__PURE__ */ Object.create(null)), we = (e) => (e = e.toLowerCase(), (t) => sn(t) === e), on = (e) => (t) => typeof t === e, { isArray: ht } = Array,
|
|
2204
|
+
})(/* @__PURE__ */ Object.create(null)), we = (e) => (e = e.toLowerCase(), (t) => sn(t) === e), on = (e) => (t) => typeof t === e, { isArray: ht } = Array, Tt = on("undefined");
|
|
2160
2205
|
function Fi(e) {
|
|
2161
|
-
return e !== null && !
|
|
2206
|
+
return e !== null && !Tt(e) && e.constructor !== null && !Tt(e.constructor) && ye(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
2162
2207
|
}
|
|
2163
2208
|
const js = we("ArrayBuffer");
|
|
2164
2209
|
function Mi(e) {
|
|
2165
2210
|
let t;
|
|
2166
2211
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && js(e.buffer), t;
|
|
2167
2212
|
}
|
|
2168
|
-
const Ni = on("string"), ye = on("function"), Ds = on("number"), an = (e) => e !== null && typeof e == "object",
|
|
2213
|
+
const Ni = on("string"), ye = on("function"), Ds = on("number"), an = (e) => e !== null && typeof e == "object", Li = (e) => e === !0 || e === !1, Kt = (e) => {
|
|
2169
2214
|
if (sn(e) !== "object")
|
|
2170
2215
|
return !1;
|
|
2171
2216
|
const t = ir(e);
|
|
2172
2217
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
2173
|
-
},
|
|
2218
|
+
}, Ui = we("Date"), Bi = we("File"), Wi = we("Blob"), Vi = we("FileList"), zi = (e) => an(e) && ye(e.pipe), Hi = (e) => {
|
|
2174
2219
|
let t;
|
|
2175
2220
|
return e && (typeof FormData == "function" && e instanceof FormData || ye(e.append) && ((t = sn(e)) === "formdata" || // detect form-data instance
|
|
2176
2221
|
t === "object" && ye(e.toString) && e.toString() === "[object FormData]"));
|
|
@@ -2184,9 +2229,9 @@ function Ct(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
2184
2229
|
t.call(null, e[r], r, e);
|
|
2185
2230
|
else {
|
|
2186
2231
|
const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length;
|
|
2187
|
-
let
|
|
2232
|
+
let u;
|
|
2188
2233
|
for (r = 0; r < a; r++)
|
|
2189
|
-
|
|
2234
|
+
u = i[r], t.call(null, e[u], u, e);
|
|
2190
2235
|
}
|
|
2191
2236
|
}
|
|
2192
2237
|
function $s(e, t) {
|
|
@@ -2198,7 +2243,7 @@ function $s(e, t) {
|
|
|
2198
2243
|
return s;
|
|
2199
2244
|
return null;
|
|
2200
2245
|
}
|
|
2201
|
-
const Fs = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Ms = (e) => !
|
|
2246
|
+
const Fs = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Ms = (e) => !Tt(e) && e !== Fs;
|
|
2202
2247
|
function Vn() {
|
|
2203
2248
|
const { caseless: e } = Ms(this) && this || {}, t = {}, n = (r, s) => {
|
|
2204
2249
|
const i = e && $s(t, s) || s;
|
|
@@ -2216,12 +2261,12 @@ const Ji = (e, t, n, { allOwnKeys: r } = {}) => (Ct(t, (s, i) => {
|
|
|
2216
2261
|
}), n && Object.assign(e.prototype, n);
|
|
2217
2262
|
}, Xi = (e, t, n, r) => {
|
|
2218
2263
|
let s, i, a;
|
|
2219
|
-
const
|
|
2264
|
+
const u = {};
|
|
2220
2265
|
if (t = t || {}, e == null)
|
|
2221
2266
|
return t;
|
|
2222
2267
|
do {
|
|
2223
2268
|
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
2224
|
-
a = s[i], (!r || r(a, e, t)) && !
|
|
2269
|
+
a = s[i], (!r || r(a, e, t)) && !u[a] && (t[a] = e[a], u[a] = !0);
|
|
2225
2270
|
e = n !== !1 && ir(e);
|
|
2226
2271
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
2227
2272
|
return t;
|
|
@@ -2288,11 +2333,11 @@ const Ji = (e, t, n, { allOwnKeys: r } = {}) => (Ct(t, (s, i) => {
|
|
|
2288
2333
|
};
|
|
2289
2334
|
return ht(e) ? r(e) : r(String(e).split(t)), n;
|
|
2290
2335
|
}, ua = () => {
|
|
2291
|
-
}, ca = (e, t) => (e = +e, Number.isFinite(e) ? e : t), $n = "abcdefghijklmnopqrstuvwxyz", Xr = "0123456789",
|
|
2336
|
+
}, ca = (e, t) => (e = +e, Number.isFinite(e) ? e : t), $n = "abcdefghijklmnopqrstuvwxyz", Xr = "0123456789", Ls = {
|
|
2292
2337
|
DIGIT: Xr,
|
|
2293
2338
|
ALPHA: $n,
|
|
2294
2339
|
ALPHA_DIGIT: $n + $n.toUpperCase() + Xr
|
|
2295
|
-
}, fa = (e = 16, t =
|
|
2340
|
+
}, fa = (e = 16, t = Ls.ALPHA_DIGIT) => {
|
|
2296
2341
|
let n = "";
|
|
2297
2342
|
const { length: r } = t;
|
|
2298
2343
|
for (; e--; )
|
|
@@ -2310,9 +2355,9 @@ const da = (e) => {
|
|
|
2310
2355
|
if (!("toJSON" in r)) {
|
|
2311
2356
|
t[s] = r;
|
|
2312
2357
|
const i = ht(r) ? [] : {};
|
|
2313
|
-
return Ct(r, (a,
|
|
2314
|
-
const
|
|
2315
|
-
!
|
|
2358
|
+
return Ct(r, (a, u) => {
|
|
2359
|
+
const d = n(a, s + 1);
|
|
2360
|
+
!Tt(d) && (i[u] = d);
|
|
2316
2361
|
}), t[s] = void 0, i;
|
|
2317
2362
|
}
|
|
2318
2363
|
}
|
|
@@ -2327,11 +2372,11 @@ const da = (e) => {
|
|
|
2327
2372
|
isArrayBufferView: Mi,
|
|
2328
2373
|
isString: Ni,
|
|
2329
2374
|
isNumber: Ds,
|
|
2330
|
-
isBoolean:
|
|
2375
|
+
isBoolean: Li,
|
|
2331
2376
|
isObject: an,
|
|
2332
2377
|
isPlainObject: Kt,
|
|
2333
|
-
isUndefined:
|
|
2334
|
-
isDate:
|
|
2378
|
+
isUndefined: Tt,
|
|
2379
|
+
isDate: Ui,
|
|
2335
2380
|
isFile: Bi,
|
|
2336
2381
|
isBlob: Wi,
|
|
2337
2382
|
isRegExp: oa,
|
|
@@ -2366,17 +2411,17 @@ const da = (e) => {
|
|
|
2366
2411
|
findKey: $s,
|
|
2367
2412
|
global: Fs,
|
|
2368
2413
|
isContextDefined: Ms,
|
|
2369
|
-
ALPHABET:
|
|
2414
|
+
ALPHABET: Ls,
|
|
2370
2415
|
generateString: fa,
|
|
2371
2416
|
isSpecCompliantForm: la,
|
|
2372
2417
|
toJSONObject: da,
|
|
2373
2418
|
isAsyncFn: ha,
|
|
2374
2419
|
isThenable: pa
|
|
2375
2420
|
};
|
|
2376
|
-
function
|
|
2421
|
+
function B(e, t, n, r, s) {
|
|
2377
2422
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s);
|
|
2378
2423
|
}
|
|
2379
|
-
g.inherits(
|
|
2424
|
+
g.inherits(B, Error, {
|
|
2380
2425
|
toJSON: function() {
|
|
2381
2426
|
return {
|
|
2382
2427
|
// Standard
|
|
@@ -2397,7 +2442,7 @@ g.inherits(L, Error, {
|
|
|
2397
2442
|
};
|
|
2398
2443
|
}
|
|
2399
2444
|
});
|
|
2400
|
-
const
|
|
2445
|
+
const Us = B.prototype, Bs = {};
|
|
2401
2446
|
[
|
|
2402
2447
|
"ERR_BAD_OPTION_VALUE",
|
|
2403
2448
|
"ERR_BAD_OPTION",
|
|
@@ -2415,13 +2460,13 @@ const Ls = L.prototype, Bs = {};
|
|
|
2415
2460
|
].forEach((e) => {
|
|
2416
2461
|
Bs[e] = { value: e };
|
|
2417
2462
|
});
|
|
2418
|
-
Object.defineProperties(
|
|
2419
|
-
Object.defineProperty(
|
|
2420
|
-
|
|
2421
|
-
const a = Object.create(
|
|
2422
|
-
return g.toFlatObject(e, a, function(
|
|
2423
|
-
return
|
|
2424
|
-
}, (
|
|
2463
|
+
Object.defineProperties(B, Bs);
|
|
2464
|
+
Object.defineProperty(Us, "isAxiosError", { value: !0 });
|
|
2465
|
+
B.from = (e, t, n, r, s, i) => {
|
|
2466
|
+
const a = Object.create(Us);
|
|
2467
|
+
return g.toFlatObject(e, a, function(d) {
|
|
2468
|
+
return d !== Error.prototype;
|
|
2469
|
+
}, (u) => u !== "isAxiosError"), B.call(a, e.message, t, n, r, s), a.cause = e, a.name = e.name, i && Object.assign(a, i), a;
|
|
2425
2470
|
};
|
|
2426
2471
|
const ya = null;
|
|
2427
2472
|
function zn(e) {
|
|
@@ -2448,28 +2493,28 @@ function un(e, t, n) {
|
|
|
2448
2493
|
metaTokens: !0,
|
|
2449
2494
|
dots: !1,
|
|
2450
2495
|
indexes: !1
|
|
2451
|
-
}, !1, function(O,
|
|
2452
|
-
return !g.isUndefined(
|
|
2496
|
+
}, !1, function(O, D) {
|
|
2497
|
+
return !g.isUndefined(D[O]);
|
|
2453
2498
|
});
|
|
2454
|
-
const r = n.metaTokens, s = n.visitor ||
|
|
2499
|
+
const r = n.metaTokens, s = n.visitor || y, i = n.dots, a = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && g.isSpecCompliantForm(t);
|
|
2455
2500
|
if (!g.isFunction(s))
|
|
2456
2501
|
throw new TypeError("visitor must be a function");
|
|
2457
|
-
function l(
|
|
2458
|
-
if (
|
|
2502
|
+
function l(_) {
|
|
2503
|
+
if (_ === null)
|
|
2459
2504
|
return "";
|
|
2460
|
-
if (g.isDate(
|
|
2461
|
-
return
|
|
2462
|
-
if (!
|
|
2463
|
-
throw new
|
|
2464
|
-
return g.isArrayBuffer(
|
|
2465
|
-
}
|
|
2466
|
-
function
|
|
2467
|
-
let
|
|
2468
|
-
if (
|
|
2505
|
+
if (g.isDate(_))
|
|
2506
|
+
return _.toISOString();
|
|
2507
|
+
if (!d && g.isBlob(_))
|
|
2508
|
+
throw new B("Blob is not supported. Use a Buffer instead.");
|
|
2509
|
+
return g.isArrayBuffer(_) || g.isTypedArray(_) ? d && typeof Blob == "function" ? new Blob([_]) : Buffer.from(_) : _;
|
|
2510
|
+
}
|
|
2511
|
+
function y(_, O, D) {
|
|
2512
|
+
let L = _;
|
|
2513
|
+
if (_ && !D && typeof _ == "object") {
|
|
2469
2514
|
if (g.endsWith(O, "{}"))
|
|
2470
|
-
O = r ? O : O.slice(0, -2),
|
|
2471
|
-
else if (g.isArray(
|
|
2472
|
-
return O = Ws(O),
|
|
2515
|
+
O = r ? O : O.slice(0, -2), _ = JSON.stringify(_);
|
|
2516
|
+
else if (g.isArray(_) && ma(_) || (g.isFileList(_) || g.endsWith(O, "[]")) && (L = g.toArray(_)))
|
|
2517
|
+
return O = Ws(O), L.forEach(function(he, pe) {
|
|
2473
2518
|
!(g.isUndefined(he) || he === null) && t.append(
|
|
2474
2519
|
// eslint-disable-next-line no-nested-ternary
|
|
2475
2520
|
a === !0 ? Zr([O], pe, i) : a === null ? O : O + "[]",
|
|
@@ -2477,31 +2522,31 @@ function un(e, t, n) {
|
|
|
2477
2522
|
);
|
|
2478
2523
|
}), !1;
|
|
2479
2524
|
}
|
|
2480
|
-
return zn(
|
|
2525
|
+
return zn(_) ? !0 : (t.append(Zr(D, O, i), l(_)), !1);
|
|
2481
2526
|
}
|
|
2482
|
-
const
|
|
2483
|
-
defaultVisitor:
|
|
2527
|
+
const h = [], E = Object.assign(va, {
|
|
2528
|
+
defaultVisitor: y,
|
|
2484
2529
|
convertValue: l,
|
|
2485
2530
|
isVisitable: zn
|
|
2486
2531
|
});
|
|
2487
|
-
function
|
|
2488
|
-
if (!g.isUndefined(
|
|
2489
|
-
if (
|
|
2532
|
+
function S(_, O) {
|
|
2533
|
+
if (!g.isUndefined(_)) {
|
|
2534
|
+
if (h.indexOf(_) !== -1)
|
|
2490
2535
|
throw Error("Circular reference detected in " + O.join("."));
|
|
2491
|
-
|
|
2492
|
-
(!(g.isUndefined(
|
|
2536
|
+
h.push(_), g.forEach(_, function(L, V) {
|
|
2537
|
+
(!(g.isUndefined(L) || L === null) && s.call(
|
|
2493
2538
|
t,
|
|
2494
|
-
|
|
2495
|
-
g.isString(
|
|
2539
|
+
L,
|
|
2540
|
+
g.isString(V) ? V.trim() : V,
|
|
2496
2541
|
O,
|
|
2497
2542
|
E
|
|
2498
|
-
)) === !0 &&
|
|
2499
|
-
}),
|
|
2543
|
+
)) === !0 && S(L, O ? O.concat(V) : [V]);
|
|
2544
|
+
}), h.pop();
|
|
2500
2545
|
}
|
|
2501
2546
|
}
|
|
2502
2547
|
if (!g.isObject(e))
|
|
2503
2548
|
throw new TypeError("data must be an object");
|
|
2504
|
-
return
|
|
2549
|
+
return S(e), t;
|
|
2505
2550
|
}
|
|
2506
2551
|
function Qr(e) {
|
|
2507
2552
|
const t = {
|
|
@@ -2607,7 +2652,7 @@ const es = _a, Hs = {
|
|
|
2607
2652
|
}, Ea = typeof URLSearchParams < "u" ? URLSearchParams : ar, ba = typeof FormData < "u" ? FormData : null, Sa = typeof Blob < "u" ? Blob : null, wa = (() => {
|
|
2608
2653
|
let e;
|
|
2609
2654
|
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
2610
|
-
})(),
|
|
2655
|
+
})(), Ra = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
2611
2656
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), _e = {
|
|
2612
2657
|
isBrowser: !0,
|
|
2613
2658
|
classes: {
|
|
@@ -2616,10 +2661,10 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
2616
2661
|
Blob: Sa
|
|
2617
2662
|
},
|
|
2618
2663
|
isStandardBrowserEnv: wa,
|
|
2619
|
-
isStandardBrowserWebWorkerEnv:
|
|
2664
|
+
isStandardBrowserWebWorkerEnv: Ra,
|
|
2620
2665
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
2621
2666
|
};
|
|
2622
|
-
function
|
|
2667
|
+
function Ta(e, t) {
|
|
2623
2668
|
return un(e, new _e.classes.URLSearchParams(), Object.assign({
|
|
2624
2669
|
visitor: function(n, r, s, i) {
|
|
2625
2670
|
return _e.isNode && g.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
@@ -2641,8 +2686,8 @@ function Ca(e) {
|
|
|
2641
2686
|
function qs(e) {
|
|
2642
2687
|
function t(n, r, s, i) {
|
|
2643
2688
|
let a = n[i++];
|
|
2644
|
-
const
|
|
2645
|
-
return a = !a && g.isArray(s) ? s.length : a,
|
|
2689
|
+
const u = Number.isFinite(+a), d = i >= n.length;
|
|
2690
|
+
return a = !a && g.isArray(s) ? s.length : a, d ? (g.hasOwnProp(s, a) ? s[a] = [s[a], r] : s[a] = r, !u) : ((!s[a] || !g.isObject(s[a])) && (s[a] = []), t(n, r, s[a], i) && g.isArray(s[a]) && (s[a] = Ca(s[a])), !u);
|
|
2646
2691
|
}
|
|
2647
2692
|
if (g.isFormData(e) && g.isFunction(e.entries)) {
|
|
2648
2693
|
const n = {};
|
|
@@ -2675,15 +2720,15 @@ const ur = {
|
|
|
2675
2720
|
return t.buffer;
|
|
2676
2721
|
if (g.isURLSearchParams(t))
|
|
2677
2722
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
2678
|
-
let
|
|
2723
|
+
let u;
|
|
2679
2724
|
if (i) {
|
|
2680
2725
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2681
|
-
return
|
|
2682
|
-
if ((
|
|
2683
|
-
const
|
|
2726
|
+
return Ta(t, this.formSerializer).toString();
|
|
2727
|
+
if ((u = g.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
2728
|
+
const d = this.env && this.env.FormData;
|
|
2684
2729
|
return un(
|
|
2685
|
-
|
|
2686
|
-
|
|
2730
|
+
u ? { "files[]": t } : t,
|
|
2731
|
+
d && new d(),
|
|
2687
2732
|
this.formSerializer
|
|
2688
2733
|
);
|
|
2689
2734
|
}
|
|
@@ -2696,9 +2741,9 @@ const ur = {
|
|
|
2696
2741
|
const a = !(n && n.silentJSONParsing) && s;
|
|
2697
2742
|
try {
|
|
2698
2743
|
return JSON.parse(t);
|
|
2699
|
-
} catch (
|
|
2744
|
+
} catch (u) {
|
|
2700
2745
|
if (a)
|
|
2701
|
-
throw
|
|
2746
|
+
throw u.name === "SyntaxError" ? B.from(u, B.ERR_BAD_RESPONSE, this, null, this.response) : u;
|
|
2702
2747
|
}
|
|
2703
2748
|
}
|
|
2704
2749
|
return t;
|
|
@@ -2799,14 +2844,14 @@ class cn {
|
|
|
2799
2844
|
}
|
|
2800
2845
|
set(t, n, r) {
|
|
2801
2846
|
const s = this;
|
|
2802
|
-
function i(
|
|
2803
|
-
const
|
|
2804
|
-
if (!
|
|
2847
|
+
function i(u, d, l) {
|
|
2848
|
+
const y = Et(d);
|
|
2849
|
+
if (!y)
|
|
2805
2850
|
throw new Error("header name must be a non-empty string");
|
|
2806
|
-
const
|
|
2807
|
-
(!
|
|
2851
|
+
const h = g.findKey(s, y);
|
|
2852
|
+
(!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || d] = Gt(u));
|
|
2808
2853
|
}
|
|
2809
|
-
const a = (
|
|
2854
|
+
const a = (u, d) => g.forEach(u, (l, y) => i(l, y, d));
|
|
2810
2855
|
return g.isPlainObject(t) || t instanceof this.constructor ? a(t, n) : g.isString(t) && (t = t.trim()) && !Ia(t) ? a(xa(t), n) : t != null && i(n, t, r), this;
|
|
2811
2856
|
}
|
|
2812
2857
|
get(t, n) {
|
|
@@ -2838,8 +2883,8 @@ class cn {
|
|
|
2838
2883
|
let s = !1;
|
|
2839
2884
|
function i(a) {
|
|
2840
2885
|
if (a = Et(a), a) {
|
|
2841
|
-
const
|
|
2842
|
-
|
|
2886
|
+
const u = g.findKey(r, a);
|
|
2887
|
+
u && (!n || Fn(r, r[u], u, n)) && (delete r[u], s = !0);
|
|
2843
2888
|
}
|
|
2844
2889
|
}
|
|
2845
2890
|
return g.isArray(t) ? t.forEach(i) : i(t), s;
|
|
@@ -2861,8 +2906,8 @@ class cn {
|
|
|
2861
2906
|
n[a] = Gt(s), delete n[i];
|
|
2862
2907
|
return;
|
|
2863
2908
|
}
|
|
2864
|
-
const
|
|
2865
|
-
|
|
2909
|
+
const u = t ? ja(i) : String(i).trim();
|
|
2910
|
+
u !== i && delete n[i], n[u] = Gt(s), r[u] = !0;
|
|
2866
2911
|
}), this;
|
|
2867
2912
|
}
|
|
2868
2913
|
concat(...t) {
|
|
@@ -2896,8 +2941,8 @@ class cn {
|
|
|
2896
2941
|
accessors: {}
|
|
2897
2942
|
}).accessors, s = this.prototype;
|
|
2898
2943
|
function i(a) {
|
|
2899
|
-
const
|
|
2900
|
-
r[
|
|
2944
|
+
const u = Et(a);
|
|
2945
|
+
r[u] || (Da(s, a), r[u] = !0);
|
|
2901
2946
|
}
|
|
2902
2947
|
return g.isArray(t) ? t.forEach(i) : i(t), this;
|
|
2903
2948
|
}
|
|
@@ -2917,24 +2962,24 @@ const Ce = cn;
|
|
|
2917
2962
|
function Mn(e, t) {
|
|
2918
2963
|
const n = this || cr, r = t || n, s = Ce.from(r.headers);
|
|
2919
2964
|
let i = r.data;
|
|
2920
|
-
return g.forEach(e, function(
|
|
2921
|
-
i =
|
|
2965
|
+
return g.forEach(e, function(u) {
|
|
2966
|
+
i = u.call(n, i, s.normalize(), t ? t.status : void 0);
|
|
2922
2967
|
}), s.normalize(), i;
|
|
2923
2968
|
}
|
|
2924
2969
|
function Ys(e) {
|
|
2925
2970
|
return !!(e && e.__CANCEL__);
|
|
2926
2971
|
}
|
|
2927
2972
|
function At(e, t, n) {
|
|
2928
|
-
|
|
2973
|
+
B.call(this, e ?? "canceled", B.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
2929
2974
|
}
|
|
2930
|
-
g.inherits(At,
|
|
2975
|
+
g.inherits(At, B, {
|
|
2931
2976
|
__CANCEL__: !0
|
|
2932
2977
|
});
|
|
2933
2978
|
function $a(e, t, n) {
|
|
2934
2979
|
const r = n.config.validateStatus;
|
|
2935
|
-
!n.status || !r || r(n.status) ? e(n) : t(new
|
|
2980
|
+
!n.status || !r || r(n.status) ? e(n) : t(new B(
|
|
2936
2981
|
"Request failed with status code " + n.status,
|
|
2937
|
-
[
|
|
2982
|
+
[B.ERR_BAD_REQUEST, B.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
2938
2983
|
n.config,
|
|
2939
2984
|
n.request,
|
|
2940
2985
|
n
|
|
@@ -2944,9 +2989,9 @@ const Fa = _e.isStandardBrowserEnv ? (
|
|
|
2944
2989
|
// Standard browser envs support document.cookie
|
|
2945
2990
|
function() {
|
|
2946
2991
|
return {
|
|
2947
|
-
write: function(n, r, s, i, a,
|
|
2948
|
-
const
|
|
2949
|
-
|
|
2992
|
+
write: function(n, r, s, i, a, u) {
|
|
2993
|
+
const d = [];
|
|
2994
|
+
d.push(n + "=" + encodeURIComponent(r)), g.isNumber(s) && d.push("expires=" + new Date(s).toGMTString()), g.isString(i) && d.push("path=" + i), g.isString(a) && d.push("domain=" + a), u === !0 && d.push("secure"), document.cookie = d.join("; ");
|
|
2950
2995
|
},
|
|
2951
2996
|
read: function(n) {
|
|
2952
2997
|
const r = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
|
|
@@ -2980,7 +3025,7 @@ function Na(e, t) {
|
|
|
2980
3025
|
function Js(e, t) {
|
|
2981
3026
|
return e && !Ma(t) ? Na(e, t) : t;
|
|
2982
3027
|
}
|
|
2983
|
-
const
|
|
3028
|
+
const La = _e.isStandardBrowserEnv ? (
|
|
2984
3029
|
// Standard browser envs have full support of the APIs needed to test
|
|
2985
3030
|
// whether the request URL is of the same origin as current location.
|
|
2986
3031
|
function() {
|
|
@@ -3000,8 +3045,8 @@ const Ua = _e.isStandardBrowserEnv ? (
|
|
|
3000
3045
|
};
|
|
3001
3046
|
}
|
|
3002
3047
|
return r = s(window.location.href), function(a) {
|
|
3003
|
-
const
|
|
3004
|
-
return
|
|
3048
|
+
const u = g.isString(a) ? s(a) : a;
|
|
3049
|
+
return u.protocol === r.protocol && u.host === r.host;
|
|
3005
3050
|
};
|
|
3006
3051
|
}()
|
|
3007
3052
|
) : (
|
|
@@ -3012,7 +3057,7 @@ const Ua = _e.isStandardBrowserEnv ? (
|
|
|
3012
3057
|
};
|
|
3013
3058
|
}()
|
|
3014
3059
|
);
|
|
3015
|
-
function
|
|
3060
|
+
function Ua(e) {
|
|
3016
3061
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
3017
3062
|
return t && t[1] || "";
|
|
3018
3063
|
}
|
|
@@ -3020,98 +3065,98 @@ function Ba(e, t) {
|
|
|
3020
3065
|
e = e || 10;
|
|
3021
3066
|
const n = new Array(e), r = new Array(e);
|
|
3022
3067
|
let s = 0, i = 0, a;
|
|
3023
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
3024
|
-
const l = Date.now(),
|
|
3025
|
-
a || (a = l), n[s] =
|
|
3026
|
-
let
|
|
3027
|
-
for (;
|
|
3028
|
-
E += n[
|
|
3068
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
3069
|
+
const l = Date.now(), y = r[i];
|
|
3070
|
+
a || (a = l), n[s] = d, r[s] = l;
|
|
3071
|
+
let h = i, E = 0;
|
|
3072
|
+
for (; h !== s; )
|
|
3073
|
+
E += n[h++], h = h % e;
|
|
3029
3074
|
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), l - a < t)
|
|
3030
3075
|
return;
|
|
3031
|
-
const
|
|
3032
|
-
return
|
|
3076
|
+
const S = y && l - y;
|
|
3077
|
+
return S ? Math.round(E * 1e3 / S) : void 0;
|
|
3033
3078
|
};
|
|
3034
3079
|
}
|
|
3035
3080
|
function ns(e, t) {
|
|
3036
3081
|
let n = 0;
|
|
3037
3082
|
const r = Ba(50, 250);
|
|
3038
3083
|
return (s) => {
|
|
3039
|
-
const i = s.loaded, a = s.lengthComputable ? s.total : void 0,
|
|
3084
|
+
const i = s.loaded, a = s.lengthComputable ? s.total : void 0, u = i - n, d = r(u), l = i <= a;
|
|
3040
3085
|
n = i;
|
|
3041
|
-
const
|
|
3086
|
+
const y = {
|
|
3042
3087
|
loaded: i,
|
|
3043
3088
|
total: a,
|
|
3044
3089
|
progress: a ? i / a : void 0,
|
|
3045
|
-
bytes:
|
|
3046
|
-
rate:
|
|
3047
|
-
estimated:
|
|
3090
|
+
bytes: u,
|
|
3091
|
+
rate: d || void 0,
|
|
3092
|
+
estimated: d && a && l ? (a - i) / d : void 0,
|
|
3048
3093
|
event: s
|
|
3049
3094
|
};
|
|
3050
|
-
|
|
3095
|
+
y[t ? "download" : "upload"] = !0, e(y);
|
|
3051
3096
|
};
|
|
3052
3097
|
}
|
|
3053
3098
|
const Wa = typeof XMLHttpRequest < "u", Va = Wa && function(e) {
|
|
3054
3099
|
return new Promise(function(n, r) {
|
|
3055
3100
|
let s = e.data;
|
|
3056
3101
|
const i = Ce.from(e.headers).normalize(), a = e.responseType;
|
|
3057
|
-
let
|
|
3058
|
-
function
|
|
3059
|
-
e.cancelToken && e.cancelToken.unsubscribe(
|
|
3102
|
+
let u;
|
|
3103
|
+
function d() {
|
|
3104
|
+
e.cancelToken && e.cancelToken.unsubscribe(u), e.signal && e.signal.removeEventListener("abort", u);
|
|
3060
3105
|
}
|
|
3061
3106
|
g.isFormData(s) && (_e.isStandardBrowserEnv || _e.isStandardBrowserWebWorkerEnv ? i.setContentType(!1) : i.setContentType("multipart/form-data;", !1));
|
|
3062
3107
|
let l = new XMLHttpRequest();
|
|
3063
3108
|
if (e.auth) {
|
|
3064
|
-
const
|
|
3065
|
-
i.set("Authorization", "Basic " + btoa(
|
|
3109
|
+
const S = e.auth.username || "", _ = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
3110
|
+
i.set("Authorization", "Basic " + btoa(S + ":" + _));
|
|
3066
3111
|
}
|
|
3067
|
-
const
|
|
3068
|
-
l.open(e.method.toUpperCase(), zs(
|
|
3069
|
-
function
|
|
3112
|
+
const y = Js(e.baseURL, e.url);
|
|
3113
|
+
l.open(e.method.toUpperCase(), zs(y, e.params, e.paramsSerializer), !0), l.timeout = e.timeout;
|
|
3114
|
+
function h() {
|
|
3070
3115
|
if (!l)
|
|
3071
3116
|
return;
|
|
3072
|
-
const
|
|
3117
|
+
const S = Ce.from(
|
|
3073
3118
|
"getAllResponseHeaders" in l && l.getAllResponseHeaders()
|
|
3074
3119
|
), O = {
|
|
3075
3120
|
data: !a || a === "text" || a === "json" ? l.responseText : l.response,
|
|
3076
3121
|
status: l.status,
|
|
3077
3122
|
statusText: l.statusText,
|
|
3078
|
-
headers:
|
|
3123
|
+
headers: S,
|
|
3079
3124
|
config: e,
|
|
3080
3125
|
request: l
|
|
3081
3126
|
};
|
|
3082
|
-
$a(function(
|
|
3083
|
-
n(
|
|
3084
|
-
}, function(
|
|
3085
|
-
r(
|
|
3127
|
+
$a(function(L) {
|
|
3128
|
+
n(L), d();
|
|
3129
|
+
}, function(L) {
|
|
3130
|
+
r(L), d();
|
|
3086
3131
|
}, O), l = null;
|
|
3087
3132
|
}
|
|
3088
|
-
if ("onloadend" in l ? l.onloadend =
|
|
3089
|
-
!l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
3133
|
+
if ("onloadend" in l ? l.onloadend = h : l.onreadystatechange = function() {
|
|
3134
|
+
!l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(h);
|
|
3090
3135
|
}, l.onabort = function() {
|
|
3091
|
-
l && (r(new
|
|
3136
|
+
l && (r(new B("Request aborted", B.ECONNABORTED, e, l)), l = null);
|
|
3092
3137
|
}, l.onerror = function() {
|
|
3093
|
-
r(new
|
|
3138
|
+
r(new B("Network Error", B.ERR_NETWORK, e, l)), l = null;
|
|
3094
3139
|
}, l.ontimeout = function() {
|
|
3095
|
-
let
|
|
3140
|
+
let _ = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
3096
3141
|
const O = e.transitional || Hs;
|
|
3097
|
-
e.timeoutErrorMessage && (
|
|
3098
|
-
|
|
3099
|
-
O.clarifyTimeoutError ?
|
|
3142
|
+
e.timeoutErrorMessage && (_ = e.timeoutErrorMessage), r(new B(
|
|
3143
|
+
_,
|
|
3144
|
+
O.clarifyTimeoutError ? B.ETIMEDOUT : B.ECONNABORTED,
|
|
3100
3145
|
e,
|
|
3101
3146
|
l
|
|
3102
3147
|
)), l = null;
|
|
3103
3148
|
}, _e.isStandardBrowserEnv) {
|
|
3104
|
-
const
|
|
3105
|
-
|
|
3149
|
+
const S = (e.withCredentials || La(y)) && e.xsrfCookieName && Fa.read(e.xsrfCookieName);
|
|
3150
|
+
S && i.set(e.xsrfHeaderName, S);
|
|
3106
3151
|
}
|
|
3107
|
-
s === void 0 && i.setContentType(null), "setRequestHeader" in l && g.forEach(i.toJSON(), function(
|
|
3108
|
-
l.setRequestHeader(O,
|
|
3109
|
-
}), g.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), a && a !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", ns(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", ns(e.onUploadProgress)), (e.cancelToken || e.signal) && (
|
|
3110
|
-
l && (r(!
|
|
3111
|
-
}, e.cancelToken && e.cancelToken.subscribe(
|
|
3112
|
-
const E =
|
|
3152
|
+
s === void 0 && i.setContentType(null), "setRequestHeader" in l && g.forEach(i.toJSON(), function(_, O) {
|
|
3153
|
+
l.setRequestHeader(O, _);
|
|
3154
|
+
}), g.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), a && a !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", ns(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", ns(e.onUploadProgress)), (e.cancelToken || e.signal) && (u = (S) => {
|
|
3155
|
+
l && (r(!S || S.type ? new At(null, e, l) : S), l.abort(), l = null);
|
|
3156
|
+
}, e.cancelToken && e.cancelToken.subscribe(u), e.signal && (e.signal.aborted ? u() : e.signal.addEventListener("abort", u)));
|
|
3157
|
+
const E = Ua(y);
|
|
3113
3158
|
if (E && _e.protocols.indexOf(E) === -1) {
|
|
3114
|
-
r(new
|
|
3159
|
+
r(new B("Unsupported protocol " + E + ":", B.ERR_BAD_REQUEST, e));
|
|
3115
3160
|
return;
|
|
3116
3161
|
}
|
|
3117
3162
|
l.send(s || null);
|
|
@@ -3137,7 +3182,7 @@ const Ks = {
|
|
|
3137
3182
|
for (let s = 0; s < t && (n = e[s], !(r = g.isString(n) ? Xt[n.toLowerCase()] : n)); s++)
|
|
3138
3183
|
;
|
|
3139
3184
|
if (!r)
|
|
3140
|
-
throw r === !1 ? new
|
|
3185
|
+
throw r === !1 ? new B(
|
|
3141
3186
|
`Adapter ${n} is not supported by the environment`,
|
|
3142
3187
|
"ERR_NOT_SUPPORT"
|
|
3143
3188
|
) : new Error(
|
|
@@ -3175,34 +3220,34 @@ const ss = (e) => e instanceof Ce ? e.toJSON() : e;
|
|
|
3175
3220
|
function dt(e, t) {
|
|
3176
3221
|
t = t || {};
|
|
3177
3222
|
const n = {};
|
|
3178
|
-
function r(l,
|
|
3179
|
-
return g.isPlainObject(l) && g.isPlainObject(
|
|
3223
|
+
function r(l, y, h) {
|
|
3224
|
+
return g.isPlainObject(l) && g.isPlainObject(y) ? g.merge.call({ caseless: h }, l, y) : g.isPlainObject(y) ? g.merge({}, y) : g.isArray(y) ? y.slice() : y;
|
|
3180
3225
|
}
|
|
3181
|
-
function s(l,
|
|
3182
|
-
if (g.isUndefined(
|
|
3226
|
+
function s(l, y, h) {
|
|
3227
|
+
if (g.isUndefined(y)) {
|
|
3183
3228
|
if (!g.isUndefined(l))
|
|
3184
|
-
return r(void 0, l,
|
|
3229
|
+
return r(void 0, l, h);
|
|
3185
3230
|
} else
|
|
3186
|
-
return r(l,
|
|
3231
|
+
return r(l, y, h);
|
|
3187
3232
|
}
|
|
3188
|
-
function i(l,
|
|
3189
|
-
if (!g.isUndefined(
|
|
3190
|
-
return r(void 0,
|
|
3233
|
+
function i(l, y) {
|
|
3234
|
+
if (!g.isUndefined(y))
|
|
3235
|
+
return r(void 0, y);
|
|
3191
3236
|
}
|
|
3192
|
-
function a(l,
|
|
3193
|
-
if (g.isUndefined(
|
|
3237
|
+
function a(l, y) {
|
|
3238
|
+
if (g.isUndefined(y)) {
|
|
3194
3239
|
if (!g.isUndefined(l))
|
|
3195
3240
|
return r(void 0, l);
|
|
3196
3241
|
} else
|
|
3197
|
-
return r(void 0,
|
|
3242
|
+
return r(void 0, y);
|
|
3198
3243
|
}
|
|
3199
|
-
function
|
|
3200
|
-
if (
|
|
3201
|
-
return r(l,
|
|
3202
|
-
if (
|
|
3244
|
+
function u(l, y, h) {
|
|
3245
|
+
if (h in t)
|
|
3246
|
+
return r(l, y);
|
|
3247
|
+
if (h in e)
|
|
3203
3248
|
return r(void 0, l);
|
|
3204
3249
|
}
|
|
3205
|
-
const
|
|
3250
|
+
const d = {
|
|
3206
3251
|
url: i,
|
|
3207
3252
|
method: i,
|
|
3208
3253
|
data: i,
|
|
@@ -3229,12 +3274,12 @@ function dt(e, t) {
|
|
|
3229
3274
|
cancelToken: a,
|
|
3230
3275
|
socketPath: a,
|
|
3231
3276
|
responseEncoding: a,
|
|
3232
|
-
validateStatus:
|
|
3233
|
-
headers: (l,
|
|
3277
|
+
validateStatus: u,
|
|
3278
|
+
headers: (l, y) => s(ss(l), ss(y), !0)
|
|
3234
3279
|
};
|
|
3235
|
-
return g.forEach(Object.keys(Object.assign({}, e, t)), function(
|
|
3236
|
-
const
|
|
3237
|
-
g.isUndefined(E) &&
|
|
3280
|
+
return g.forEach(Object.keys(Object.assign({}, e, t)), function(y) {
|
|
3281
|
+
const h = d[y] || s, E = h(e[y], t[y], y);
|
|
3282
|
+
g.isUndefined(E) && h !== u || (n[y] = E);
|
|
3238
3283
|
}), n;
|
|
3239
3284
|
}
|
|
3240
3285
|
const Gs = "1.5.0", fr = {};
|
|
@@ -3248,35 +3293,35 @@ fr.transitional = function(t, n, r) {
|
|
|
3248
3293
|
function s(i, a) {
|
|
3249
3294
|
return "[Axios v" + Gs + "] Transitional option '" + i + "'" + a + (r ? ". " + r : "");
|
|
3250
3295
|
}
|
|
3251
|
-
return (i, a,
|
|
3296
|
+
return (i, a, u) => {
|
|
3252
3297
|
if (t === !1)
|
|
3253
|
-
throw new
|
|
3298
|
+
throw new B(
|
|
3254
3299
|
s(a, " has been removed" + (n ? " in " + n : "")),
|
|
3255
|
-
|
|
3300
|
+
B.ERR_DEPRECATED
|
|
3256
3301
|
);
|
|
3257
3302
|
return n && !os[a] && (os[a] = !0, console.warn(
|
|
3258
3303
|
s(
|
|
3259
3304
|
a,
|
|
3260
3305
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
3261
3306
|
)
|
|
3262
|
-
)), t ? t(i, a,
|
|
3307
|
+
)), t ? t(i, a, u) : !0;
|
|
3263
3308
|
};
|
|
3264
3309
|
};
|
|
3265
3310
|
function za(e, t, n) {
|
|
3266
3311
|
if (typeof e != "object")
|
|
3267
|
-
throw new
|
|
3312
|
+
throw new B("options must be an object", B.ERR_BAD_OPTION_VALUE);
|
|
3268
3313
|
const r = Object.keys(e);
|
|
3269
3314
|
let s = r.length;
|
|
3270
3315
|
for (; s-- > 0; ) {
|
|
3271
3316
|
const i = r[s], a = t[i];
|
|
3272
3317
|
if (a) {
|
|
3273
|
-
const
|
|
3274
|
-
if (
|
|
3275
|
-
throw new
|
|
3318
|
+
const u = e[i], d = u === void 0 || a(u, i, e);
|
|
3319
|
+
if (d !== !0)
|
|
3320
|
+
throw new B("option " + i + " must be " + d, B.ERR_BAD_OPTION_VALUE);
|
|
3276
3321
|
continue;
|
|
3277
3322
|
}
|
|
3278
3323
|
if (n !== !0)
|
|
3279
|
-
throw new
|
|
3324
|
+
throw new B("Unknown option " + i, B.ERR_BAD_OPTION);
|
|
3280
3325
|
}
|
|
3281
3326
|
}
|
|
3282
3327
|
const Hn = {
|
|
@@ -3317,45 +3362,45 @@ class nn {
|
|
|
3317
3362
|
);
|
|
3318
3363
|
i && g.forEach(
|
|
3319
3364
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
3320
|
-
(
|
|
3321
|
-
delete i[
|
|
3365
|
+
(_) => {
|
|
3366
|
+
delete i[_];
|
|
3322
3367
|
}
|
|
3323
3368
|
), n.headers = Ce.concat(a, i);
|
|
3324
|
-
const
|
|
3325
|
-
let
|
|
3369
|
+
const u = [];
|
|
3370
|
+
let d = !0;
|
|
3326
3371
|
this.interceptors.request.forEach(function(O) {
|
|
3327
|
-
typeof O.runWhen == "function" && O.runWhen(n) === !1 || (
|
|
3372
|
+
typeof O.runWhen == "function" && O.runWhen(n) === !1 || (d = d && O.synchronous, u.unshift(O.fulfilled, O.rejected));
|
|
3328
3373
|
});
|
|
3329
3374
|
const l = [];
|
|
3330
3375
|
this.interceptors.response.forEach(function(O) {
|
|
3331
3376
|
l.push(O.fulfilled, O.rejected);
|
|
3332
3377
|
});
|
|
3333
|
-
let
|
|
3334
|
-
if (!
|
|
3335
|
-
const
|
|
3336
|
-
for (
|
|
3337
|
-
|
|
3338
|
-
return
|
|
3378
|
+
let y, h = 0, E;
|
|
3379
|
+
if (!d) {
|
|
3380
|
+
const _ = [rs.bind(this), void 0];
|
|
3381
|
+
for (_.unshift.apply(_, u), _.push.apply(_, l), E = _.length, y = Promise.resolve(n); h < E; )
|
|
3382
|
+
y = y.then(_[h++], _[h++]);
|
|
3383
|
+
return y;
|
|
3339
3384
|
}
|
|
3340
|
-
E =
|
|
3341
|
-
let
|
|
3342
|
-
for (
|
|
3343
|
-
const
|
|
3385
|
+
E = u.length;
|
|
3386
|
+
let S = n;
|
|
3387
|
+
for (h = 0; h < E; ) {
|
|
3388
|
+
const _ = u[h++], O = u[h++];
|
|
3344
3389
|
try {
|
|
3345
|
-
|
|
3346
|
-
} catch (
|
|
3347
|
-
O.call(this,
|
|
3390
|
+
S = _(S);
|
|
3391
|
+
} catch (D) {
|
|
3392
|
+
O.call(this, D);
|
|
3348
3393
|
break;
|
|
3349
3394
|
}
|
|
3350
3395
|
}
|
|
3351
3396
|
try {
|
|
3352
|
-
|
|
3353
|
-
} catch (
|
|
3354
|
-
return Promise.reject(
|
|
3397
|
+
y = rs.call(this, S);
|
|
3398
|
+
} catch (_) {
|
|
3399
|
+
return Promise.reject(_);
|
|
3355
3400
|
}
|
|
3356
|
-
for (
|
|
3357
|
-
|
|
3358
|
-
return
|
|
3401
|
+
for (h = 0, E = l.length; h < E; )
|
|
3402
|
+
y = y.then(l[h++], l[h++]);
|
|
3403
|
+
return y;
|
|
3359
3404
|
}
|
|
3360
3405
|
getUri(t) {
|
|
3361
3406
|
t = dt(this.defaults, t);
|
|
@@ -3374,8 +3419,8 @@ g.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
3374
3419
|
});
|
|
3375
3420
|
g.forEach(["post", "put", "patch"], function(t) {
|
|
3376
3421
|
function n(r) {
|
|
3377
|
-
return function(i, a,
|
|
3378
|
-
return this.request(dt(
|
|
3422
|
+
return function(i, a, u) {
|
|
3423
|
+
return this.request(dt(u || {}, {
|
|
3379
3424
|
method: t,
|
|
3380
3425
|
headers: r ? {
|
|
3381
3426
|
"Content-Type": "multipart/form-data"
|
|
@@ -3406,14 +3451,14 @@ class lr {
|
|
|
3406
3451
|
r._listeners = null;
|
|
3407
3452
|
}), this.promise.then = (s) => {
|
|
3408
3453
|
let i;
|
|
3409
|
-
const a = new Promise((
|
|
3410
|
-
r.subscribe(
|
|
3454
|
+
const a = new Promise((u) => {
|
|
3455
|
+
r.subscribe(u), i = u;
|
|
3411
3456
|
}).then(s);
|
|
3412
3457
|
return a.cancel = function() {
|
|
3413
3458
|
r.unsubscribe(i);
|
|
3414
3459
|
}, a;
|
|
3415
|
-
}, t(function(i, a,
|
|
3416
|
-
r.reason || (r.reason = new At(i, a,
|
|
3460
|
+
}, t(function(i, a, u) {
|
|
3461
|
+
r.reason || (r.reason = new At(i, a, u), n(r.reason));
|
|
3417
3462
|
});
|
|
3418
3463
|
}
|
|
3419
3464
|
/**
|
|
@@ -3547,7 +3592,7 @@ re.CancelToken = Ha;
|
|
|
3547
3592
|
re.isCancel = Ys;
|
|
3548
3593
|
re.VERSION = Gs;
|
|
3549
3594
|
re.toFormData = un;
|
|
3550
|
-
re.AxiosError =
|
|
3595
|
+
re.AxiosError = B;
|
|
3551
3596
|
re.Cancel = re.CanceledError;
|
|
3552
3597
|
re.all = function(t) {
|
|
3553
3598
|
return Promise.all(t);
|
|
@@ -3880,77 +3925,77 @@ function Ga() {
|
|
|
3880
3925
|
if (us)
|
|
3881
3926
|
return $;
|
|
3882
3927
|
us = 1;
|
|
3883
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"),
|
|
3928
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), l = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), h = Symbol.iterator;
|
|
3884
3929
|
function E(p) {
|
|
3885
|
-
return p === null || typeof p != "object" ? null : (p =
|
|
3930
|
+
return p === null || typeof p != "object" ? null : (p = h && p[h] || p["@@iterator"], typeof p == "function" ? p : null);
|
|
3886
3931
|
}
|
|
3887
|
-
var
|
|
3932
|
+
var S = { isMounted: function() {
|
|
3888
3933
|
return !1;
|
|
3889
3934
|
}, enqueueForceUpdate: function() {
|
|
3890
3935
|
}, enqueueReplaceState: function() {
|
|
3891
3936
|
}, enqueueSetState: function() {
|
|
3892
|
-
} },
|
|
3893
|
-
function
|
|
3894
|
-
this.props = p, this.context =
|
|
3937
|
+
} }, _ = Object.assign, O = {};
|
|
3938
|
+
function D(p, R, I) {
|
|
3939
|
+
this.props = p, this.context = R, this.refs = O, this.updater = I || S;
|
|
3895
3940
|
}
|
|
3896
|
-
|
|
3941
|
+
D.prototype.isReactComponent = {}, D.prototype.setState = function(p, R) {
|
|
3897
3942
|
if (typeof p != "object" && typeof p != "function" && p != null)
|
|
3898
3943
|
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
3899
|
-
this.updater.enqueueSetState(this, p,
|
|
3900
|
-
},
|
|
3944
|
+
this.updater.enqueueSetState(this, p, R, "setState");
|
|
3945
|
+
}, D.prototype.forceUpdate = function(p) {
|
|
3901
3946
|
this.updater.enqueueForceUpdate(this, p, "forceUpdate");
|
|
3902
3947
|
};
|
|
3903
|
-
function
|
|
3948
|
+
function L() {
|
|
3904
3949
|
}
|
|
3905
|
-
|
|
3906
|
-
function
|
|
3907
|
-
this.props = p, this.context =
|
|
3950
|
+
L.prototype = D.prototype;
|
|
3951
|
+
function V(p, R, I) {
|
|
3952
|
+
this.props = p, this.context = R, this.refs = O, this.updater = I || S;
|
|
3908
3953
|
}
|
|
3909
|
-
var he =
|
|
3910
|
-
he.constructor =
|
|
3954
|
+
var he = V.prototype = new L();
|
|
3955
|
+
he.constructor = V, _(he, D.prototype), he.isPureReactComponent = !0;
|
|
3911
3956
|
var pe = Array.isArray, te = Object.prototype.hasOwnProperty, ue = { current: null }, Ee = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
3912
|
-
function
|
|
3913
|
-
var
|
|
3914
|
-
if (
|
|
3915
|
-
for (
|
|
3916
|
-
te.call(
|
|
3917
|
-
var
|
|
3918
|
-
if (
|
|
3957
|
+
function Re(p, R, I) {
|
|
3958
|
+
var W, F = {}, J = null, K = null;
|
|
3959
|
+
if (R != null)
|
|
3960
|
+
for (W in R.ref !== void 0 && (K = R.ref), R.key !== void 0 && (J = "" + R.key), R)
|
|
3961
|
+
te.call(R, W) && !Ee.hasOwnProperty(W) && (F[W] = R[W]);
|
|
3962
|
+
var q = arguments.length - 2;
|
|
3963
|
+
if (q === 1)
|
|
3919
3964
|
F.children = I;
|
|
3920
|
-
else if (1 <
|
|
3921
|
-
for (var
|
|
3922
|
-
|
|
3923
|
-
F.children =
|
|
3965
|
+
else if (1 < q) {
|
|
3966
|
+
for (var z = Array(q), se = 0; se < q; se++)
|
|
3967
|
+
z[se] = arguments[se + 2];
|
|
3968
|
+
F.children = z;
|
|
3924
3969
|
}
|
|
3925
3970
|
if (p && p.defaultProps)
|
|
3926
|
-
for (
|
|
3927
|
-
F[
|
|
3928
|
-
return { $$typeof: e, type: p, key:
|
|
3971
|
+
for (W in q = p.defaultProps, q)
|
|
3972
|
+
F[W] === void 0 && (F[W] = q[W]);
|
|
3973
|
+
return { $$typeof: e, type: p, key: J, ref: K, props: F, _owner: ue.current };
|
|
3929
3974
|
}
|
|
3930
|
-
function Me(p,
|
|
3931
|
-
return { $$typeof: e, type: p.type, key:
|
|
3975
|
+
function Me(p, R) {
|
|
3976
|
+
return { $$typeof: e, type: p.type, key: R, ref: p.ref, props: p.props, _owner: p._owner };
|
|
3932
3977
|
}
|
|
3933
3978
|
function Ne(p) {
|
|
3934
3979
|
return typeof p == "object" && p !== null && p.$$typeof === e;
|
|
3935
3980
|
}
|
|
3936
3981
|
function pt(p) {
|
|
3937
|
-
var
|
|
3982
|
+
var R = { "=": "=0", ":": "=2" };
|
|
3938
3983
|
return "$" + p.replace(/[=:]/g, function(I) {
|
|
3939
|
-
return
|
|
3984
|
+
return R[I];
|
|
3940
3985
|
});
|
|
3941
3986
|
}
|
|
3942
|
-
var
|
|
3943
|
-
function ce(p,
|
|
3944
|
-
return typeof p == "object" && p !== null && p.key != null ? pt("" + p.key) :
|
|
3987
|
+
var Le = /\/+/g;
|
|
3988
|
+
function ce(p, R) {
|
|
3989
|
+
return typeof p == "object" && p !== null && p.key != null ? pt("" + p.key) : R.toString(36);
|
|
3945
3990
|
}
|
|
3946
|
-
function le(p,
|
|
3947
|
-
var
|
|
3948
|
-
(
|
|
3991
|
+
function le(p, R, I, W, F) {
|
|
3992
|
+
var J = typeof p;
|
|
3993
|
+
(J === "undefined" || J === "boolean") && (p = null);
|
|
3949
3994
|
var K = !1;
|
|
3950
3995
|
if (p === null)
|
|
3951
3996
|
K = !0;
|
|
3952
3997
|
else
|
|
3953
|
-
switch (
|
|
3998
|
+
switch (J) {
|
|
3954
3999
|
case "string":
|
|
3955
4000
|
case "number":
|
|
3956
4001
|
K = !0;
|
|
@@ -3963,131 +4008,131 @@ function Ga() {
|
|
|
3963
4008
|
}
|
|
3964
4009
|
}
|
|
3965
4010
|
if (K)
|
|
3966
|
-
return K = p, F = F(K), p =
|
|
4011
|
+
return K = p, F = F(K), p = W === "" ? "." + ce(K, 0) : W, pe(F) ? (I = "", p != null && (I = p.replace(Le, "$&/") + "/"), le(F, R, I, "", function(se) {
|
|
3967
4012
|
return se;
|
|
3968
|
-
})) : F != null && (Ne(F) && (F = Me(F, I + (!F.key || K && K.key === F.key ? "" : ("" + F.key).replace(
|
|
3969
|
-
if (K = 0,
|
|
3970
|
-
for (var
|
|
3971
|
-
|
|
3972
|
-
var
|
|
3973
|
-
K += le(
|
|
3974
|
-
}
|
|
3975
|
-
else if (
|
|
3976
|
-
for (p =
|
|
3977
|
-
|
|
3978
|
-
else if (
|
|
3979
|
-
throw
|
|
4013
|
+
})) : F != null && (Ne(F) && (F = Me(F, I + (!F.key || K && K.key === F.key ? "" : ("" + F.key).replace(Le, "$&/") + "/") + p)), R.push(F)), 1;
|
|
4014
|
+
if (K = 0, W = W === "" ? "." : W + ":", pe(p))
|
|
4015
|
+
for (var q = 0; q < p.length; q++) {
|
|
4016
|
+
J = p[q];
|
|
4017
|
+
var z = W + ce(J, q);
|
|
4018
|
+
K += le(J, R, I, z, F);
|
|
4019
|
+
}
|
|
4020
|
+
else if (z = E(p), typeof z == "function")
|
|
4021
|
+
for (p = z.call(p), q = 0; !(J = p.next()).done; )
|
|
4022
|
+
J = J.value, z = W + ce(J, q++), K += le(J, R, I, z, F);
|
|
4023
|
+
else if (J === "object")
|
|
4024
|
+
throw R = String(p), Error("Objects are not valid as a React child (found: " + (R === "[object Object]" ? "object with keys {" + Object.keys(p).join(", ") + "}" : R) + "). If you meant to render a collection of children, use an array instead.");
|
|
3980
4025
|
return K;
|
|
3981
4026
|
}
|
|
3982
|
-
function oe(p,
|
|
4027
|
+
function oe(p, R, I) {
|
|
3983
4028
|
if (p == null)
|
|
3984
4029
|
return p;
|
|
3985
|
-
var
|
|
3986
|
-
return le(p,
|
|
3987
|
-
return
|
|
3988
|
-
}),
|
|
4030
|
+
var W = [], F = 0;
|
|
4031
|
+
return le(p, W, "", "", function(J) {
|
|
4032
|
+
return R.call(I, J, F++);
|
|
4033
|
+
}), W;
|
|
3989
4034
|
}
|
|
3990
4035
|
function me(p) {
|
|
3991
4036
|
if (p._status === -1) {
|
|
3992
|
-
var
|
|
3993
|
-
|
|
4037
|
+
var R = p._result;
|
|
4038
|
+
R = R(), R.then(function(I) {
|
|
3994
4039
|
(p._status === 0 || p._status === -1) && (p._status = 1, p._result = I);
|
|
3995
4040
|
}, function(I) {
|
|
3996
4041
|
(p._status === 0 || p._status === -1) && (p._status = 2, p._result = I);
|
|
3997
|
-
}), p._status === -1 && (p._status = 0, p._result =
|
|
4042
|
+
}), p._status === -1 && (p._status = 0, p._result = R);
|
|
3998
4043
|
}
|
|
3999
4044
|
if (p._status === 1)
|
|
4000
4045
|
return p._result.default;
|
|
4001
4046
|
throw p._result;
|
|
4002
4047
|
}
|
|
4003
|
-
var k = { current: null }, be = { transition: null },
|
|
4004
|
-
return $.Children = { map: oe, forEach: function(p,
|
|
4048
|
+
var k = { current: null }, be = { transition: null }, Ue = { ReactCurrentDispatcher: k, ReactCurrentBatchConfig: be, ReactCurrentOwner: ue };
|
|
4049
|
+
return $.Children = { map: oe, forEach: function(p, R, I) {
|
|
4005
4050
|
oe(p, function() {
|
|
4006
|
-
|
|
4051
|
+
R.apply(this, arguments);
|
|
4007
4052
|
}, I);
|
|
4008
4053
|
}, count: function(p) {
|
|
4009
|
-
var
|
|
4054
|
+
var R = 0;
|
|
4010
4055
|
return oe(p, function() {
|
|
4011
|
-
|
|
4012
|
-
}),
|
|
4056
|
+
R++;
|
|
4057
|
+
}), R;
|
|
4013
4058
|
}, toArray: function(p) {
|
|
4014
|
-
return oe(p, function(
|
|
4015
|
-
return
|
|
4059
|
+
return oe(p, function(R) {
|
|
4060
|
+
return R;
|
|
4016
4061
|
}) || [];
|
|
4017
4062
|
}, only: function(p) {
|
|
4018
4063
|
if (!Ne(p))
|
|
4019
4064
|
throw Error("React.Children.only expected to receive a single React element child.");
|
|
4020
4065
|
return p;
|
|
4021
|
-
} }, $.Component =
|
|
4066
|
+
} }, $.Component = D, $.Fragment = n, $.Profiler = s, $.PureComponent = V, $.StrictMode = r, $.Suspense = d, $.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ue, $.cloneElement = function(p, R, I) {
|
|
4022
4067
|
if (p == null)
|
|
4023
4068
|
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + p + ".");
|
|
4024
|
-
var
|
|
4025
|
-
if (
|
|
4026
|
-
if (
|
|
4027
|
-
var
|
|
4028
|
-
for (
|
|
4029
|
-
te.call(
|
|
4069
|
+
var W = _({}, p.props), F = p.key, J = p.ref, K = p._owner;
|
|
4070
|
+
if (R != null) {
|
|
4071
|
+
if (R.ref !== void 0 && (J = R.ref, K = ue.current), R.key !== void 0 && (F = "" + R.key), p.type && p.type.defaultProps)
|
|
4072
|
+
var q = p.type.defaultProps;
|
|
4073
|
+
for (z in R)
|
|
4074
|
+
te.call(R, z) && !Ee.hasOwnProperty(z) && (W[z] = R[z] === void 0 && q !== void 0 ? q[z] : R[z]);
|
|
4030
4075
|
}
|
|
4031
|
-
var
|
|
4032
|
-
if (
|
|
4033
|
-
|
|
4034
|
-
else if (1 <
|
|
4035
|
-
|
|
4036
|
-
for (var se = 0; se <
|
|
4037
|
-
|
|
4038
|
-
|
|
4076
|
+
var z = arguments.length - 2;
|
|
4077
|
+
if (z === 1)
|
|
4078
|
+
W.children = I;
|
|
4079
|
+
else if (1 < z) {
|
|
4080
|
+
q = Array(z);
|
|
4081
|
+
for (var se = 0; se < z; se++)
|
|
4082
|
+
q[se] = arguments[se + 2];
|
|
4083
|
+
W.children = q;
|
|
4039
4084
|
}
|
|
4040
|
-
return { $$typeof: e, type: p.type, key: F, ref:
|
|
4085
|
+
return { $$typeof: e, type: p.type, key: F, ref: J, props: W, _owner: K };
|
|
4041
4086
|
}, $.createContext = function(p) {
|
|
4042
4087
|
return p = { $$typeof: a, _currentValue: p, _currentValue2: p, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, p.Provider = { $$typeof: i, _context: p }, p.Consumer = p;
|
|
4043
|
-
}, $.createElement =
|
|
4044
|
-
var
|
|
4045
|
-
return
|
|
4088
|
+
}, $.createElement = Re, $.createFactory = function(p) {
|
|
4089
|
+
var R = Re.bind(null, p);
|
|
4090
|
+
return R.type = p, R;
|
|
4046
4091
|
}, $.createRef = function() {
|
|
4047
4092
|
return { current: null };
|
|
4048
4093
|
}, $.forwardRef = function(p) {
|
|
4049
|
-
return { $$typeof:
|
|
4094
|
+
return { $$typeof: u, render: p };
|
|
4050
4095
|
}, $.isValidElement = Ne, $.lazy = function(p) {
|
|
4051
|
-
return { $$typeof:
|
|
4052
|
-
}, $.memo = function(p,
|
|
4053
|
-
return { $$typeof: l, type: p, compare:
|
|
4096
|
+
return { $$typeof: y, _payload: { _status: -1, _result: p }, _init: me };
|
|
4097
|
+
}, $.memo = function(p, R) {
|
|
4098
|
+
return { $$typeof: l, type: p, compare: R === void 0 ? null : R };
|
|
4054
4099
|
}, $.startTransition = function(p) {
|
|
4055
|
-
var
|
|
4100
|
+
var R = be.transition;
|
|
4056
4101
|
be.transition = {};
|
|
4057
4102
|
try {
|
|
4058
4103
|
p();
|
|
4059
4104
|
} finally {
|
|
4060
|
-
be.transition =
|
|
4105
|
+
be.transition = R;
|
|
4061
4106
|
}
|
|
4062
4107
|
}, $.unstable_act = function() {
|
|
4063
4108
|
throw Error("act(...) is not supported in production builds of React.");
|
|
4064
|
-
}, $.useCallback = function(p,
|
|
4065
|
-
return k.current.useCallback(p,
|
|
4109
|
+
}, $.useCallback = function(p, R) {
|
|
4110
|
+
return k.current.useCallback(p, R);
|
|
4066
4111
|
}, $.useContext = function(p) {
|
|
4067
4112
|
return k.current.useContext(p);
|
|
4068
4113
|
}, $.useDebugValue = function() {
|
|
4069
4114
|
}, $.useDeferredValue = function(p) {
|
|
4070
4115
|
return k.current.useDeferredValue(p);
|
|
4071
|
-
}, $.useEffect = function(p,
|
|
4072
|
-
return k.current.useEffect(p,
|
|
4116
|
+
}, $.useEffect = function(p, R) {
|
|
4117
|
+
return k.current.useEffect(p, R);
|
|
4073
4118
|
}, $.useId = function() {
|
|
4074
4119
|
return k.current.useId();
|
|
4075
|
-
}, $.useImperativeHandle = function(p,
|
|
4076
|
-
return k.current.useImperativeHandle(p,
|
|
4077
|
-
}, $.useInsertionEffect = function(p,
|
|
4078
|
-
return k.current.useInsertionEffect(p,
|
|
4079
|
-
}, $.useLayoutEffect = function(p,
|
|
4080
|
-
return k.current.useLayoutEffect(p,
|
|
4081
|
-
}, $.useMemo = function(p,
|
|
4082
|
-
return k.current.useMemo(p,
|
|
4083
|
-
}, $.useReducer = function(p,
|
|
4084
|
-
return k.current.useReducer(p,
|
|
4120
|
+
}, $.useImperativeHandle = function(p, R, I) {
|
|
4121
|
+
return k.current.useImperativeHandle(p, R, I);
|
|
4122
|
+
}, $.useInsertionEffect = function(p, R) {
|
|
4123
|
+
return k.current.useInsertionEffect(p, R);
|
|
4124
|
+
}, $.useLayoutEffect = function(p, R) {
|
|
4125
|
+
return k.current.useLayoutEffect(p, R);
|
|
4126
|
+
}, $.useMemo = function(p, R) {
|
|
4127
|
+
return k.current.useMemo(p, R);
|
|
4128
|
+
}, $.useReducer = function(p, R, I) {
|
|
4129
|
+
return k.current.useReducer(p, R, I);
|
|
4085
4130
|
}, $.useRef = function(p) {
|
|
4086
4131
|
return k.current.useRef(p);
|
|
4087
4132
|
}, $.useState = function(p) {
|
|
4088
4133
|
return k.current.useState(p);
|
|
4089
|
-
}, $.useSyncExternalStore = function(p,
|
|
4090
|
-
return k.current.useSyncExternalStore(p,
|
|
4134
|
+
}, $.useSyncExternalStore = function(p, R, I) {
|
|
4135
|
+
return k.current.useSyncExternalStore(p, R, I);
|
|
4091
4136
|
}, $.useTransition = function() {
|
|
4092
4137
|
return k.current.useTransition();
|
|
4093
4138
|
}, $.version = "18.2.0", $;
|
|
@@ -4108,12 +4153,12 @@ function Xa() {
|
|
|
4108
4153
|
return cs || (cs = 1, function(e, t) {
|
|
4109
4154
|
process.env.NODE_ENV !== "production" && function() {
|
|
4110
4155
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
4111
|
-
var n = "18.2.0", r = Symbol.for("react.element"), s = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"),
|
|
4112
|
-
function
|
|
4156
|
+
var n = "18.2.0", r = Symbol.for("react.element"), s = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), l = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), D = Symbol.iterator, L = "@@iterator";
|
|
4157
|
+
function V(o) {
|
|
4113
4158
|
if (o === null || typeof o != "object")
|
|
4114
4159
|
return null;
|
|
4115
|
-
var
|
|
4116
|
-
return typeof
|
|
4160
|
+
var c = D && o[D] || o[L];
|
|
4161
|
+
return typeof c == "function" ? c : null;
|
|
4117
4162
|
}
|
|
4118
4163
|
var he = {
|
|
4119
4164
|
/**
|
|
@@ -4134,19 +4179,19 @@ function Xa() {
|
|
|
4134
4179
|
* @type {ReactComponent}
|
|
4135
4180
|
*/
|
|
4136
4181
|
current: null
|
|
4137
|
-
}, Ee = {},
|
|
4182
|
+
}, Ee = {}, Re = null;
|
|
4138
4183
|
function Me(o) {
|
|
4139
|
-
|
|
4184
|
+
Re = o;
|
|
4140
4185
|
}
|
|
4141
4186
|
Ee.setExtraStackFrame = function(o) {
|
|
4142
|
-
|
|
4187
|
+
Re = o;
|
|
4143
4188
|
}, Ee.getCurrentStack = null, Ee.getStackAddendum = function() {
|
|
4144
4189
|
var o = "";
|
|
4145
|
-
|
|
4146
|
-
var
|
|
4147
|
-
return
|
|
4190
|
+
Re && (o += Re);
|
|
4191
|
+
var c = Ee.getCurrentStack;
|
|
4192
|
+
return c && (o += c() || ""), o;
|
|
4148
4193
|
};
|
|
4149
|
-
var Ne = !1, pt = !1,
|
|
4194
|
+
var Ne = !1, pt = !1, Le = !1, ce = !1, le = !1, oe = {
|
|
4150
4195
|
ReactCurrentDispatcher: he,
|
|
4151
4196
|
ReactCurrentBatchConfig: pe,
|
|
4152
4197
|
ReactCurrentOwner: ue
|
|
@@ -4154,38 +4199,38 @@ function Xa() {
|
|
|
4154
4199
|
oe.ReactDebugCurrentFrame = Ee, oe.ReactCurrentActQueue = te;
|
|
4155
4200
|
function me(o) {
|
|
4156
4201
|
{
|
|
4157
|
-
for (var
|
|
4158
|
-
|
|
4159
|
-
be("warn", o,
|
|
4202
|
+
for (var c = arguments.length, m = new Array(c > 1 ? c - 1 : 0), v = 1; v < c; v++)
|
|
4203
|
+
m[v - 1] = arguments[v];
|
|
4204
|
+
be("warn", o, m);
|
|
4160
4205
|
}
|
|
4161
4206
|
}
|
|
4162
4207
|
function k(o) {
|
|
4163
4208
|
{
|
|
4164
|
-
for (var
|
|
4165
|
-
|
|
4166
|
-
be("error", o,
|
|
4209
|
+
for (var c = arguments.length, m = new Array(c > 1 ? c - 1 : 0), v = 1; v < c; v++)
|
|
4210
|
+
m[v - 1] = arguments[v];
|
|
4211
|
+
be("error", o, m);
|
|
4167
4212
|
}
|
|
4168
4213
|
}
|
|
4169
|
-
function be(o,
|
|
4214
|
+
function be(o, c, m) {
|
|
4170
4215
|
{
|
|
4171
|
-
var v = oe.ReactDebugCurrentFrame,
|
|
4172
|
-
|
|
4173
|
-
var x =
|
|
4216
|
+
var v = oe.ReactDebugCurrentFrame, w = v.getStackAddendum();
|
|
4217
|
+
w !== "" && (c += "%s", m = m.concat([w]));
|
|
4218
|
+
var x = m.map(function(A) {
|
|
4174
4219
|
return String(A);
|
|
4175
4220
|
});
|
|
4176
|
-
x.unshift("Warning: " +
|
|
4221
|
+
x.unshift("Warning: " + c), Function.prototype.apply.call(console[o], console, x);
|
|
4177
4222
|
}
|
|
4178
4223
|
}
|
|
4179
|
-
var
|
|
4180
|
-
function p(o,
|
|
4224
|
+
var Ue = {};
|
|
4225
|
+
function p(o, c) {
|
|
4181
4226
|
{
|
|
4182
|
-
var
|
|
4183
|
-
if (
|
|
4227
|
+
var m = o.constructor, v = m && (m.displayName || m.name) || "ReactClass", w = v + "." + c;
|
|
4228
|
+
if (Ue[w])
|
|
4184
4229
|
return;
|
|
4185
|
-
k("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.",
|
|
4230
|
+
k("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.", c, v), Ue[w] = !0;
|
|
4186
4231
|
}
|
|
4187
4232
|
}
|
|
4188
|
-
var
|
|
4233
|
+
var R = {
|
|
4189
4234
|
/**
|
|
4190
4235
|
* Checks whether or not this composite component is mounted.
|
|
4191
4236
|
* @param {ReactClass} publicInstance The instance we want to test.
|
|
@@ -4211,7 +4256,7 @@ function Xa() {
|
|
|
4211
4256
|
* @param {?string} callerName name of the calling function in the public API.
|
|
4212
4257
|
* @internal
|
|
4213
4258
|
*/
|
|
4214
|
-
enqueueForceUpdate: function(o,
|
|
4259
|
+
enqueueForceUpdate: function(o, c, m) {
|
|
4215
4260
|
p(o, "forceUpdate");
|
|
4216
4261
|
},
|
|
4217
4262
|
/**
|
|
@@ -4227,7 +4272,7 @@ function Xa() {
|
|
|
4227
4272
|
* @param {?string} callerName name of the calling function in the public API.
|
|
4228
4273
|
* @internal
|
|
4229
4274
|
*/
|
|
4230
|
-
enqueueReplaceState: function(o,
|
|
4275
|
+
enqueueReplaceState: function(o, c, m, v) {
|
|
4231
4276
|
p(o, "replaceState");
|
|
4232
4277
|
},
|
|
4233
4278
|
/**
|
|
@@ -4242,42 +4287,42 @@ function Xa() {
|
|
|
4242
4287
|
* @param {?string} Name of the calling function in the public API.
|
|
4243
4288
|
* @internal
|
|
4244
4289
|
*/
|
|
4245
|
-
enqueueSetState: function(o,
|
|
4290
|
+
enqueueSetState: function(o, c, m, v) {
|
|
4246
4291
|
p(o, "setState");
|
|
4247
4292
|
}
|
|
4248
|
-
}, I = Object.assign,
|
|
4249
|
-
Object.freeze(
|
|
4250
|
-
function F(o,
|
|
4251
|
-
this.props = o, this.context =
|
|
4293
|
+
}, I = Object.assign, W = {};
|
|
4294
|
+
Object.freeze(W);
|
|
4295
|
+
function F(o, c, m) {
|
|
4296
|
+
this.props = o, this.context = c, this.refs = W, this.updater = m || R;
|
|
4252
4297
|
}
|
|
4253
|
-
F.prototype.isReactComponent = {}, F.prototype.setState = function(o,
|
|
4298
|
+
F.prototype.isReactComponent = {}, F.prototype.setState = function(o, c) {
|
|
4254
4299
|
if (typeof o != "object" && typeof o != "function" && o != null)
|
|
4255
4300
|
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
4256
|
-
this.updater.enqueueSetState(this, o,
|
|
4301
|
+
this.updater.enqueueSetState(this, o, c, "setState");
|
|
4257
4302
|
}, F.prototype.forceUpdate = function(o) {
|
|
4258
4303
|
this.updater.enqueueForceUpdate(this, o, "forceUpdate");
|
|
4259
4304
|
};
|
|
4260
4305
|
{
|
|
4261
|
-
var
|
|
4306
|
+
var J = {
|
|
4262
4307
|
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
4263
4308
|
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
4264
|
-
}, K = function(o,
|
|
4309
|
+
}, K = function(o, c) {
|
|
4265
4310
|
Object.defineProperty(F.prototype, o, {
|
|
4266
4311
|
get: function() {
|
|
4267
|
-
me("%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
4312
|
+
me("%s(...) is deprecated in plain JavaScript React classes. %s", c[0], c[1]);
|
|
4268
4313
|
}
|
|
4269
4314
|
});
|
|
4270
4315
|
};
|
|
4271
|
-
for (var
|
|
4272
|
-
|
|
4316
|
+
for (var q in J)
|
|
4317
|
+
J.hasOwnProperty(q) && K(q, J[q]);
|
|
4273
4318
|
}
|
|
4274
|
-
function
|
|
4319
|
+
function z() {
|
|
4275
4320
|
}
|
|
4276
|
-
|
|
4277
|
-
function se(o,
|
|
4278
|
-
this.props = o, this.context =
|
|
4321
|
+
z.prototype = F.prototype;
|
|
4322
|
+
function se(o, c, m) {
|
|
4323
|
+
this.props = o, this.context = c, this.refs = W, this.updater = m || R;
|
|
4279
4324
|
}
|
|
4280
|
-
var ke = se.prototype = new
|
|
4325
|
+
var ke = se.prototype = new z();
|
|
4281
4326
|
ke.constructor = se, I(ke, F.prototype), ke.isPureReactComponent = !0;
|
|
4282
4327
|
function fn() {
|
|
4283
4328
|
var o = {
|
|
@@ -4291,8 +4336,8 @@ function Xa() {
|
|
|
4291
4336
|
}
|
|
4292
4337
|
function ln(o) {
|
|
4293
4338
|
{
|
|
4294
|
-
var
|
|
4295
|
-
return
|
|
4339
|
+
var c = typeof Symbol == "function" && Symbol.toStringTag, m = c && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
4340
|
+
return m;
|
|
4296
4341
|
}
|
|
4297
4342
|
}
|
|
4298
4343
|
function Qe(o) {
|
|
@@ -4309,12 +4354,12 @@ function Xa() {
|
|
|
4309
4354
|
if (Qe(o))
|
|
4310
4355
|
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ln(o)), Be(o);
|
|
4311
4356
|
}
|
|
4312
|
-
function xt(o,
|
|
4357
|
+
function xt(o, c, m) {
|
|
4313
4358
|
var v = o.displayName;
|
|
4314
4359
|
if (v)
|
|
4315
4360
|
return v;
|
|
4316
|
-
var
|
|
4317
|
-
return
|
|
4361
|
+
var w = c.displayName || c.name || "";
|
|
4362
|
+
return w !== "" ? m + "(" + w + ")" : m;
|
|
4318
4363
|
}
|
|
4319
4364
|
function Ve(o) {
|
|
4320
4365
|
return o.displayName || "Context";
|
|
@@ -4331,11 +4376,11 @@ function Xa() {
|
|
|
4331
4376
|
return "Fragment";
|
|
4332
4377
|
case s:
|
|
4333
4378
|
return "Portal";
|
|
4334
|
-
case
|
|
4379
|
+
case u:
|
|
4335
4380
|
return "Profiler";
|
|
4336
4381
|
case a:
|
|
4337
4382
|
return "StrictMode";
|
|
4338
|
-
case
|
|
4383
|
+
case h:
|
|
4339
4384
|
return "Suspense";
|
|
4340
4385
|
case E:
|
|
4341
4386
|
return "SuspenseList";
|
|
@@ -4343,18 +4388,18 @@ function Xa() {
|
|
|
4343
4388
|
if (typeof o == "object")
|
|
4344
4389
|
switch (o.$$typeof) {
|
|
4345
4390
|
case l:
|
|
4346
|
-
var
|
|
4347
|
-
return Ve(
|
|
4348
|
-
case h:
|
|
4349
|
-
var y = o;
|
|
4350
|
-
return Ve(y._context) + ".Provider";
|
|
4391
|
+
var c = o;
|
|
4392
|
+
return Ve(c) + ".Consumer";
|
|
4351
4393
|
case d:
|
|
4394
|
+
var m = o;
|
|
4395
|
+
return Ve(m._context) + ".Provider";
|
|
4396
|
+
case y:
|
|
4352
4397
|
return xt(o, o.render, "ForwardRef");
|
|
4353
|
-
case
|
|
4398
|
+
case S:
|
|
4354
4399
|
var v = o.displayName || null;
|
|
4355
4400
|
return v !== null ? v : Se(o.type) || "Memo";
|
|
4356
|
-
case
|
|
4357
|
-
var
|
|
4401
|
+
case _: {
|
|
4402
|
+
var w = o, x = w._payload, A = w._init;
|
|
4358
4403
|
try {
|
|
4359
4404
|
return Se(A(x));
|
|
4360
4405
|
} catch {
|
|
@@ -4373,52 +4418,52 @@ function Xa() {
|
|
|
4373
4418
|
tt = {};
|
|
4374
4419
|
function yt(o) {
|
|
4375
4420
|
if (ze.call(o, "ref")) {
|
|
4376
|
-
var
|
|
4377
|
-
if (
|
|
4421
|
+
var c = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
4422
|
+
if (c && c.isReactWarning)
|
|
4378
4423
|
return !1;
|
|
4379
4424
|
}
|
|
4380
4425
|
return o.ref !== void 0;
|
|
4381
4426
|
}
|
|
4382
4427
|
function xe(o) {
|
|
4383
4428
|
if (ze.call(o, "key")) {
|
|
4384
|
-
var
|
|
4385
|
-
if (
|
|
4429
|
+
var c = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
4430
|
+
if (c && c.isReactWarning)
|
|
4386
4431
|
return !1;
|
|
4387
4432
|
}
|
|
4388
4433
|
return o.key !== void 0;
|
|
4389
4434
|
}
|
|
4390
|
-
function dn(o,
|
|
4391
|
-
var
|
|
4392
|
-
Pt || (Pt = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
4435
|
+
function dn(o, c) {
|
|
4436
|
+
var m = function() {
|
|
4437
|
+
Pt || (Pt = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
|
|
4393
4438
|
};
|
|
4394
|
-
|
|
4395
|
-
get:
|
|
4439
|
+
m.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
4440
|
+
get: m,
|
|
4396
4441
|
configurable: !0
|
|
4397
4442
|
});
|
|
4398
4443
|
}
|
|
4399
|
-
function jt(o,
|
|
4400
|
-
var
|
|
4401
|
-
It || (It = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
4444
|
+
function jt(o, c) {
|
|
4445
|
+
var m = function() {
|
|
4446
|
+
It || (It = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
|
|
4402
4447
|
};
|
|
4403
|
-
|
|
4404
|
-
get:
|
|
4448
|
+
m.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
4449
|
+
get: m,
|
|
4405
4450
|
configurable: !0
|
|
4406
4451
|
});
|
|
4407
4452
|
}
|
|
4408
4453
|
function Dt(o) {
|
|
4409
4454
|
if (typeof o.ref == "string" && ue.current && o.__self && ue.current.stateNode !== o.__self) {
|
|
4410
|
-
var
|
|
4411
|
-
tt[
|
|
4455
|
+
var c = Se(ue.current.type);
|
|
4456
|
+
tt[c] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', c, o.ref), tt[c] = !0);
|
|
4412
4457
|
}
|
|
4413
4458
|
}
|
|
4414
|
-
var He = function(o,
|
|
4459
|
+
var He = function(o, c, m, v, w, x, A) {
|
|
4415
4460
|
var P = {
|
|
4416
4461
|
// This tag allows us to uniquely identify this as a React Element
|
|
4417
4462
|
$$typeof: r,
|
|
4418
4463
|
// Built-in properties that belong on the element
|
|
4419
4464
|
type: o,
|
|
4420
|
-
key:
|
|
4421
|
-
ref:
|
|
4465
|
+
key: c,
|
|
4466
|
+
ref: m,
|
|
4422
4467
|
props: A,
|
|
4423
4468
|
// Record the component responsible for creating this element.
|
|
4424
4469
|
_owner: x
|
|
@@ -4437,81 +4482,81 @@ function Xa() {
|
|
|
4437
4482
|
configurable: !1,
|
|
4438
4483
|
enumerable: !1,
|
|
4439
4484
|
writable: !1,
|
|
4440
|
-
value:
|
|
4485
|
+
value: w
|
|
4441
4486
|
}), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
|
|
4442
4487
|
};
|
|
4443
|
-
function hn(o,
|
|
4444
|
-
var v,
|
|
4445
|
-
if (
|
|
4446
|
-
yt(
|
|
4447
|
-
for (v in
|
|
4448
|
-
ze.call(
|
|
4488
|
+
function hn(o, c, m) {
|
|
4489
|
+
var v, w = {}, x = null, A = null, P = null, N = null;
|
|
4490
|
+
if (c != null) {
|
|
4491
|
+
yt(c) && (A = c.ref, Dt(c)), xe(c) && (We(c.key), x = "" + c.key), P = c.__self === void 0 ? null : c.__self, N = c.__source === void 0 ? null : c.__source;
|
|
4492
|
+
for (v in c)
|
|
4493
|
+
ze.call(c, v) && !et.hasOwnProperty(v) && (w[v] = c[v]);
|
|
4449
4494
|
}
|
|
4450
|
-
var
|
|
4451
|
-
if (
|
|
4452
|
-
|
|
4453
|
-
else if (
|
|
4454
|
-
for (var G = Array(
|
|
4495
|
+
var Y = arguments.length - 2;
|
|
4496
|
+
if (Y === 1)
|
|
4497
|
+
w.children = m;
|
|
4498
|
+
else if (Y > 1) {
|
|
4499
|
+
for (var G = Array(Y), X = 0; X < Y; X++)
|
|
4455
4500
|
G[X] = arguments[X + 2];
|
|
4456
|
-
Object.freeze && Object.freeze(G),
|
|
4501
|
+
Object.freeze && Object.freeze(G), w.children = G;
|
|
4457
4502
|
}
|
|
4458
4503
|
if (o && o.defaultProps) {
|
|
4459
4504
|
var Q = o.defaultProps;
|
|
4460
4505
|
for (v in Q)
|
|
4461
|
-
|
|
4506
|
+
w[v] === void 0 && (w[v] = Q[v]);
|
|
4462
4507
|
}
|
|
4463
4508
|
if (x || A) {
|
|
4464
4509
|
var ne = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
4465
|
-
x && dn(
|
|
4510
|
+
x && dn(w, ne), A && jt(w, ne);
|
|
4466
4511
|
}
|
|
4467
|
-
return He(o, x, A, P, N, ue.current,
|
|
4512
|
+
return He(o, x, A, P, N, ue.current, w);
|
|
4468
4513
|
}
|
|
4469
|
-
function pn(o,
|
|
4470
|
-
var
|
|
4471
|
-
return
|
|
4514
|
+
function pn(o, c) {
|
|
4515
|
+
var m = He(o.type, c, o.ref, o._self, o._source, o._owner, o.props);
|
|
4516
|
+
return m;
|
|
4472
4517
|
}
|
|
4473
|
-
function yn(o,
|
|
4518
|
+
function yn(o, c, m) {
|
|
4474
4519
|
if (o == null)
|
|
4475
4520
|
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + o + ".");
|
|
4476
|
-
var v,
|
|
4477
|
-
if (
|
|
4478
|
-
yt(
|
|
4521
|
+
var v, w = I({}, o.props), x = o.key, A = o.ref, P = o._self, N = o._source, Y = o._owner;
|
|
4522
|
+
if (c != null) {
|
|
4523
|
+
yt(c) && (A = c.ref, Y = ue.current), xe(c) && (We(c.key), x = "" + c.key);
|
|
4479
4524
|
var G;
|
|
4480
4525
|
o.type && o.type.defaultProps && (G = o.type.defaultProps);
|
|
4481
|
-
for (v in
|
|
4482
|
-
ze.call(
|
|
4526
|
+
for (v in c)
|
|
4527
|
+
ze.call(c, v) && !et.hasOwnProperty(v) && (c[v] === void 0 && G !== void 0 ? w[v] = G[v] : w[v] = c[v]);
|
|
4483
4528
|
}
|
|
4484
4529
|
var X = arguments.length - 2;
|
|
4485
4530
|
if (X === 1)
|
|
4486
|
-
|
|
4531
|
+
w.children = m;
|
|
4487
4532
|
else if (X > 1) {
|
|
4488
4533
|
for (var Q = Array(X), ne = 0; ne < X; ne++)
|
|
4489
4534
|
Q[ne] = arguments[ne + 2];
|
|
4490
|
-
|
|
4535
|
+
w.children = Q;
|
|
4491
4536
|
}
|
|
4492
|
-
return He(o.type, x, A, P, N,
|
|
4537
|
+
return He(o.type, x, A, P, N, Y, w);
|
|
4493
4538
|
}
|
|
4494
4539
|
function Pe(o) {
|
|
4495
4540
|
return typeof o == "object" && o !== null && o.$$typeof === r;
|
|
4496
4541
|
}
|
|
4497
4542
|
var $t = ".", mn = ":";
|
|
4498
4543
|
function vn(o) {
|
|
4499
|
-
var
|
|
4544
|
+
var c = /[=:]/g, m = {
|
|
4500
4545
|
"=": "=0",
|
|
4501
4546
|
":": "=2"
|
|
4502
|
-
}, v = o.replace(
|
|
4503
|
-
return
|
|
4547
|
+
}, v = o.replace(c, function(w) {
|
|
4548
|
+
return m[w];
|
|
4504
4549
|
});
|
|
4505
4550
|
return "$" + v;
|
|
4506
4551
|
}
|
|
4507
4552
|
var nt = !1, Ft = /\/+/g;
|
|
4508
|
-
function
|
|
4553
|
+
function Te(o) {
|
|
4509
4554
|
return o.replace(Ft, "$&/");
|
|
4510
4555
|
}
|
|
4511
|
-
function qe(o,
|
|
4512
|
-
return typeof o == "object" && o !== null && o.key != null ? (We(o.key), vn("" + o.key)) :
|
|
4556
|
+
function qe(o, c) {
|
|
4557
|
+
return typeof o == "object" && o !== null && o.key != null ? (We(o.key), vn("" + o.key)) : c.toString(36);
|
|
4513
4558
|
}
|
|
4514
|
-
function Ie(o,
|
|
4559
|
+
function Ie(o, c, m, v, w) {
|
|
4515
4560
|
var x = typeof o;
|
|
4516
4561
|
(x === "undefined" || x === "boolean") && (o = null);
|
|
4517
4562
|
var A = !1;
|
|
@@ -4531,10 +4576,10 @@ function Xa() {
|
|
|
4531
4576
|
}
|
|
4532
4577
|
}
|
|
4533
4578
|
if (A) {
|
|
4534
|
-
var P = o, N =
|
|
4579
|
+
var P = o, N = w(P), Y = v === "" ? $t + qe(P, 0) : v;
|
|
4535
4580
|
if (Ze(N)) {
|
|
4536
4581
|
var G = "";
|
|
4537
|
-
|
|
4582
|
+
Y != null && (G = Te(Y) + "/"), Ie(N, c, G, "", function(Co) {
|
|
4538
4583
|
return Co;
|
|
4539
4584
|
});
|
|
4540
4585
|
} else
|
|
@@ -4542,26 +4587,26 @@ function Xa() {
|
|
|
4542
4587
|
N,
|
|
4543
4588
|
// Keep both the (mapped) and old keys if they differ, just as
|
|
4544
4589
|
// traverseAllChildren used to do for objects as children
|
|
4545
|
-
|
|
4590
|
+
m + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
4546
4591
|
(N.key && (!P || P.key !== N.key) ? (
|
|
4547
4592
|
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
4548
4593
|
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
4549
|
-
|
|
4550
|
-
) : "") +
|
|
4551
|
-
)),
|
|
4594
|
+
Te("" + N.key) + "/"
|
|
4595
|
+
) : "") + Y
|
|
4596
|
+
)), c.push(N));
|
|
4552
4597
|
return 1;
|
|
4553
4598
|
}
|
|
4554
4599
|
var X, Q, ne = 0, ae = v === "" ? $t : v + mn;
|
|
4555
4600
|
if (Ze(o))
|
|
4556
4601
|
for (var Yt = 0; Yt < o.length; Yt++)
|
|
4557
|
-
X = o[Yt], Q = ae + qe(X, Yt), ne += Ie(X,
|
|
4602
|
+
X = o[Yt], Q = ae + qe(X, Yt), ne += Ie(X, c, m, Q, w);
|
|
4558
4603
|
else {
|
|
4559
|
-
var Pn =
|
|
4604
|
+
var Pn = V(o);
|
|
4560
4605
|
if (typeof Pn == "function") {
|
|
4561
4606
|
var Ir = o;
|
|
4562
4607
|
Pn === Ir.entries && (nt || me("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), nt = !0);
|
|
4563
|
-
for (var
|
|
4564
|
-
X = jr.value, Q = ae + qe(X, Oo++), ne += Ie(X,
|
|
4608
|
+
for (var To = Pn.call(Ir), jr, Oo = 0; !(jr = To.next()).done; )
|
|
4609
|
+
X = jr.value, Q = ae + qe(X, Oo++), ne += Ie(X, c, m, Q, w);
|
|
4565
4610
|
} else if (x === "object") {
|
|
4566
4611
|
var Dr = String(o);
|
|
4567
4612
|
throw new Error("Objects are not valid as a React child (found: " + (Dr === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : Dr) + "). If you meant to render a collection of children, use an array instead.");
|
|
@@ -4569,28 +4614,28 @@ function Xa() {
|
|
|
4569
4614
|
}
|
|
4570
4615
|
return ne;
|
|
4571
4616
|
}
|
|
4572
|
-
function Ye(o,
|
|
4617
|
+
function Ye(o, c, m) {
|
|
4573
4618
|
if (o == null)
|
|
4574
4619
|
return o;
|
|
4575
|
-
var v = [],
|
|
4620
|
+
var v = [], w = 0;
|
|
4576
4621
|
return Ie(o, v, "", "", function(x) {
|
|
4577
|
-
return
|
|
4622
|
+
return c.call(m, x, w++);
|
|
4578
4623
|
}), v;
|
|
4579
4624
|
}
|
|
4580
4625
|
function gn(o) {
|
|
4581
|
-
var
|
|
4626
|
+
var c = 0;
|
|
4582
4627
|
return Ye(o, function() {
|
|
4583
|
-
|
|
4584
|
-
}),
|
|
4628
|
+
c++;
|
|
4629
|
+
}), c;
|
|
4585
4630
|
}
|
|
4586
|
-
function Mt(o,
|
|
4631
|
+
function Mt(o, c, m) {
|
|
4587
4632
|
Ye(o, function() {
|
|
4588
|
-
|
|
4589
|
-
},
|
|
4633
|
+
c.apply(this, arguments);
|
|
4634
|
+
}, m);
|
|
4590
4635
|
}
|
|
4591
4636
|
function _n(o) {
|
|
4592
|
-
return Ye(o, function(
|
|
4593
|
-
return
|
|
4637
|
+
return Ye(o, function(c) {
|
|
4638
|
+
return c;
|
|
4594
4639
|
}) || [];
|
|
4595
4640
|
}
|
|
4596
4641
|
function Nt(o) {
|
|
@@ -4598,8 +4643,8 @@ function Xa() {
|
|
|
4598
4643
|
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
4599
4644
|
return o;
|
|
4600
4645
|
}
|
|
4601
|
-
function
|
|
4602
|
-
var
|
|
4646
|
+
function Lt(o) {
|
|
4647
|
+
var c = {
|
|
4603
4648
|
$$typeof: l,
|
|
4604
4649
|
// As a workaround to support multiple concurrent renderers, we categorize
|
|
4605
4650
|
// some renderers as primary and others as secondary. We only expect
|
|
@@ -4618,71 +4663,71 @@ function Xa() {
|
|
|
4618
4663
|
_defaultValue: null,
|
|
4619
4664
|
_globalName: null
|
|
4620
4665
|
};
|
|
4621
|
-
|
|
4622
|
-
$$typeof:
|
|
4623
|
-
_context:
|
|
4666
|
+
c.Provider = {
|
|
4667
|
+
$$typeof: d,
|
|
4668
|
+
_context: c
|
|
4624
4669
|
};
|
|
4625
|
-
var
|
|
4670
|
+
var m = !1, v = !1, w = !1;
|
|
4626
4671
|
{
|
|
4627
4672
|
var x = {
|
|
4628
4673
|
$$typeof: l,
|
|
4629
|
-
_context:
|
|
4674
|
+
_context: c
|
|
4630
4675
|
};
|
|
4631
4676
|
Object.defineProperties(x, {
|
|
4632
4677
|
Provider: {
|
|
4633
4678
|
get: function() {
|
|
4634
|
-
return v || (v = !0, k("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),
|
|
4679
|
+
return v || (v = !0, k("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), c.Provider;
|
|
4635
4680
|
},
|
|
4636
4681
|
set: function(A) {
|
|
4637
|
-
|
|
4682
|
+
c.Provider = A;
|
|
4638
4683
|
}
|
|
4639
4684
|
},
|
|
4640
4685
|
_currentValue: {
|
|
4641
4686
|
get: function() {
|
|
4642
|
-
return
|
|
4687
|
+
return c._currentValue;
|
|
4643
4688
|
},
|
|
4644
4689
|
set: function(A) {
|
|
4645
|
-
|
|
4690
|
+
c._currentValue = A;
|
|
4646
4691
|
}
|
|
4647
4692
|
},
|
|
4648
4693
|
_currentValue2: {
|
|
4649
4694
|
get: function() {
|
|
4650
|
-
return
|
|
4695
|
+
return c._currentValue2;
|
|
4651
4696
|
},
|
|
4652
4697
|
set: function(A) {
|
|
4653
|
-
|
|
4698
|
+
c._currentValue2 = A;
|
|
4654
4699
|
}
|
|
4655
4700
|
},
|
|
4656
4701
|
_threadCount: {
|
|
4657
4702
|
get: function() {
|
|
4658
|
-
return
|
|
4703
|
+
return c._threadCount;
|
|
4659
4704
|
},
|
|
4660
4705
|
set: function(A) {
|
|
4661
|
-
|
|
4706
|
+
c._threadCount = A;
|
|
4662
4707
|
}
|
|
4663
4708
|
},
|
|
4664
4709
|
Consumer: {
|
|
4665
4710
|
get: function() {
|
|
4666
|
-
return
|
|
4711
|
+
return m || (m = !0, k("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), c.Consumer;
|
|
4667
4712
|
}
|
|
4668
4713
|
},
|
|
4669
4714
|
displayName: {
|
|
4670
4715
|
get: function() {
|
|
4671
|
-
return
|
|
4716
|
+
return c.displayName;
|
|
4672
4717
|
},
|
|
4673
4718
|
set: function(A) {
|
|
4674
|
-
|
|
4719
|
+
w || (me("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", A), w = !0);
|
|
4675
4720
|
}
|
|
4676
4721
|
}
|
|
4677
|
-
}),
|
|
4722
|
+
}), c.Consumer = x;
|
|
4678
4723
|
}
|
|
4679
|
-
return
|
|
4724
|
+
return c._currentRenderer = null, c._currentRenderer2 = null, c;
|
|
4680
4725
|
}
|
|
4681
4726
|
var Je = -1, mt = 0, vt = 1, En = 2;
|
|
4682
4727
|
function bn(o) {
|
|
4683
4728
|
if (o._status === Je) {
|
|
4684
|
-
var
|
|
4685
|
-
if (
|
|
4729
|
+
var c = o._result, m = c();
|
|
4730
|
+
if (m.then(function(x) {
|
|
4686
4731
|
if (o._status === mt || o._status === Je) {
|
|
4687
4732
|
var A = o;
|
|
4688
4733
|
A._status = vt, A._result = x;
|
|
@@ -4694,43 +4739,43 @@ function Xa() {
|
|
|
4694
4739
|
}
|
|
4695
4740
|
}), o._status === Je) {
|
|
4696
4741
|
var v = o;
|
|
4697
|
-
v._status = mt, v._result =
|
|
4742
|
+
v._status = mt, v._result = m;
|
|
4698
4743
|
}
|
|
4699
4744
|
}
|
|
4700
4745
|
if (o._status === vt) {
|
|
4701
|
-
var
|
|
4702
|
-
return
|
|
4746
|
+
var w = o._result;
|
|
4747
|
+
return w === void 0 && k(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
4703
4748
|
|
|
4704
4749
|
Your code should look like:
|
|
4705
4750
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
4706
4751
|
|
|
4707
|
-
Did you accidentally put curly braces around the import?`,
|
|
4752
|
+
Did you accidentally put curly braces around the import?`, w), "default" in w || k(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
4708
4753
|
|
|
4709
4754
|
Your code should look like:
|
|
4710
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
4755
|
+
const MyComponent = lazy(() => import('./MyComponent'))`, w), w.default;
|
|
4711
4756
|
} else
|
|
4712
4757
|
throw o._result;
|
|
4713
4758
|
}
|
|
4714
4759
|
function Sn(o) {
|
|
4715
|
-
var
|
|
4760
|
+
var c = {
|
|
4716
4761
|
// We use these fields to store the result.
|
|
4717
4762
|
_status: Je,
|
|
4718
4763
|
_result: o
|
|
4719
|
-
},
|
|
4720
|
-
$$typeof:
|
|
4721
|
-
_payload:
|
|
4764
|
+
}, m = {
|
|
4765
|
+
$$typeof: _,
|
|
4766
|
+
_payload: c,
|
|
4722
4767
|
_init: bn
|
|
4723
4768
|
};
|
|
4724
4769
|
{
|
|
4725
|
-
var v,
|
|
4726
|
-
Object.defineProperties(
|
|
4770
|
+
var v, w;
|
|
4771
|
+
Object.defineProperties(m, {
|
|
4727
4772
|
defaultProps: {
|
|
4728
4773
|
configurable: !0,
|
|
4729
4774
|
get: function() {
|
|
4730
4775
|
return v;
|
|
4731
4776
|
},
|
|
4732
4777
|
set: function(x) {
|
|
4733
|
-
k("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), v = x, Object.defineProperty(
|
|
4778
|
+
k("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), v = x, Object.defineProperty(m, "defaultProps", {
|
|
4734
4779
|
enumerable: !0
|
|
4735
4780
|
});
|
|
4736
4781
|
}
|
|
@@ -4738,69 +4783,69 @@ Your code should look like:
|
|
|
4738
4783
|
propTypes: {
|
|
4739
4784
|
configurable: !0,
|
|
4740
4785
|
get: function() {
|
|
4741
|
-
return
|
|
4786
|
+
return w;
|
|
4742
4787
|
},
|
|
4743
4788
|
set: function(x) {
|
|
4744
|
-
k("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),
|
|
4789
|
+
k("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), w = x, Object.defineProperty(m, "propTypes", {
|
|
4745
4790
|
enumerable: !0
|
|
4746
4791
|
});
|
|
4747
4792
|
}
|
|
4748
4793
|
}
|
|
4749
4794
|
});
|
|
4750
4795
|
}
|
|
4751
|
-
return
|
|
4796
|
+
return m;
|
|
4752
4797
|
}
|
|
4753
4798
|
function wn(o) {
|
|
4754
|
-
o != null && o.$$typeof ===
|
|
4755
|
-
var
|
|
4756
|
-
$$typeof:
|
|
4799
|
+
o != null && o.$$typeof === S ? k("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof o != "function" ? k("forwardRef requires a render function but was given %s.", o === null ? "null" : typeof o) : o.length !== 0 && o.length !== 2 && k("forwardRef render functions accept exactly two parameters: props and ref. %s", o.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), o != null && (o.defaultProps != null || o.propTypes != null) && k("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
4800
|
+
var c = {
|
|
4801
|
+
$$typeof: y,
|
|
4757
4802
|
render: o
|
|
4758
4803
|
};
|
|
4759
4804
|
{
|
|
4760
|
-
var
|
|
4761
|
-
Object.defineProperty(
|
|
4805
|
+
var m;
|
|
4806
|
+
Object.defineProperty(c, "displayName", {
|
|
4762
4807
|
enumerable: !1,
|
|
4763
4808
|
configurable: !0,
|
|
4764
4809
|
get: function() {
|
|
4765
|
-
return
|
|
4810
|
+
return m;
|
|
4766
4811
|
},
|
|
4767
4812
|
set: function(v) {
|
|
4768
|
-
|
|
4813
|
+
m = v, !o.name && !o.displayName && (o.displayName = v);
|
|
4769
4814
|
}
|
|
4770
4815
|
});
|
|
4771
4816
|
}
|
|
4772
|
-
return
|
|
4817
|
+
return c;
|
|
4773
4818
|
}
|
|
4774
4819
|
var f;
|
|
4775
4820
|
f = Symbol.for("react.module.reference");
|
|
4776
|
-
function
|
|
4777
|
-
return !!(typeof o == "string" || typeof o == "function" || o === i || o ===
|
|
4821
|
+
function b(o) {
|
|
4822
|
+
return !!(typeof o == "string" || typeof o == "function" || o === i || o === u || le || o === a || o === h || o === E || ce || o === O || Ne || pt || Le || typeof o == "object" && o !== null && (o.$$typeof === _ || o.$$typeof === S || o.$$typeof === d || o.$$typeof === l || o.$$typeof === y || // This needs to include all possible module reference object
|
|
4778
4823
|
// types supported by any Flight configuration anywhere since
|
|
4779
4824
|
// we don't know which Flight build this will end up being used
|
|
4780
4825
|
// with.
|
|
4781
4826
|
o.$$typeof === f || o.getModuleId !== void 0));
|
|
4782
4827
|
}
|
|
4783
|
-
function
|
|
4784
|
-
|
|
4785
|
-
var
|
|
4786
|
-
$$typeof:
|
|
4828
|
+
function T(o, c) {
|
|
4829
|
+
b(o) || k("memo: The first argument must be a component. Instead received: %s", o === null ? "null" : typeof o);
|
|
4830
|
+
var m = {
|
|
4831
|
+
$$typeof: S,
|
|
4787
4832
|
type: o,
|
|
4788
|
-
compare:
|
|
4833
|
+
compare: c === void 0 ? null : c
|
|
4789
4834
|
};
|
|
4790
4835
|
{
|
|
4791
4836
|
var v;
|
|
4792
|
-
Object.defineProperty(
|
|
4837
|
+
Object.defineProperty(m, "displayName", {
|
|
4793
4838
|
enumerable: !1,
|
|
4794
4839
|
configurable: !0,
|
|
4795
4840
|
get: function() {
|
|
4796
4841
|
return v;
|
|
4797
4842
|
},
|
|
4798
|
-
set: function(
|
|
4799
|
-
v =
|
|
4843
|
+
set: function(w) {
|
|
4844
|
+
v = w, !o.name && !o.displayName && (o.displayName = w);
|
|
4800
4845
|
}
|
|
4801
4846
|
});
|
|
4802
4847
|
}
|
|
4803
|
-
return
|
|
4848
|
+
return m;
|
|
4804
4849
|
}
|
|
4805
4850
|
function C() {
|
|
4806
4851
|
var o = he.current;
|
|
@@ -4811,53 +4856,53 @@ Your code should look like:
|
|
|
4811
4856
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), o;
|
|
4812
4857
|
}
|
|
4813
4858
|
function U(o) {
|
|
4814
|
-
var
|
|
4859
|
+
var c = C();
|
|
4815
4860
|
if (o._context !== void 0) {
|
|
4816
|
-
var
|
|
4817
|
-
|
|
4861
|
+
var m = o._context;
|
|
4862
|
+
m.Consumer === o ? k("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : m.Provider === o && k("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
4818
4863
|
}
|
|
4819
|
-
return
|
|
4864
|
+
return c.useContext(o);
|
|
4820
4865
|
}
|
|
4821
|
-
function
|
|
4822
|
-
var
|
|
4823
|
-
return
|
|
4866
|
+
function H(o) {
|
|
4867
|
+
var c = C();
|
|
4868
|
+
return c.useState(o);
|
|
4824
4869
|
}
|
|
4825
|
-
function M(o,
|
|
4870
|
+
function M(o, c, m) {
|
|
4826
4871
|
var v = C();
|
|
4827
|
-
return v.useReducer(o,
|
|
4872
|
+
return v.useReducer(o, c, m);
|
|
4828
4873
|
}
|
|
4829
|
-
function
|
|
4830
|
-
var
|
|
4831
|
-
return
|
|
4874
|
+
function j(o) {
|
|
4875
|
+
var c = C();
|
|
4876
|
+
return c.useRef(o);
|
|
4832
4877
|
}
|
|
4833
|
-
function ie(o,
|
|
4834
|
-
var
|
|
4835
|
-
return
|
|
4878
|
+
function ie(o, c) {
|
|
4879
|
+
var m = C();
|
|
4880
|
+
return m.useEffect(o, c);
|
|
4836
4881
|
}
|
|
4837
|
-
function Z(o,
|
|
4838
|
-
var
|
|
4839
|
-
return
|
|
4882
|
+
function Z(o, c) {
|
|
4883
|
+
var m = C();
|
|
4884
|
+
return m.useInsertionEffect(o, c);
|
|
4840
4885
|
}
|
|
4841
|
-
function ee(o,
|
|
4842
|
-
var
|
|
4843
|
-
return
|
|
4886
|
+
function ee(o, c) {
|
|
4887
|
+
var m = C();
|
|
4888
|
+
return m.useLayoutEffect(o, c);
|
|
4844
4889
|
}
|
|
4845
|
-
function de(o,
|
|
4846
|
-
var
|
|
4847
|
-
return
|
|
4890
|
+
function de(o, c) {
|
|
4891
|
+
var m = C();
|
|
4892
|
+
return m.useCallback(o, c);
|
|
4848
4893
|
}
|
|
4849
|
-
function je(o,
|
|
4850
|
-
var
|
|
4851
|
-
return
|
|
4894
|
+
function je(o, c) {
|
|
4895
|
+
var m = C();
|
|
4896
|
+
return m.useMemo(o, c);
|
|
4852
4897
|
}
|
|
4853
|
-
function
|
|
4898
|
+
function Ut(o, c, m) {
|
|
4854
4899
|
var v = C();
|
|
4855
|
-
return v.useImperativeHandle(o,
|
|
4900
|
+
return v.useImperativeHandle(o, c, m);
|
|
4856
4901
|
}
|
|
4857
|
-
function ve(o,
|
|
4902
|
+
function ve(o, c) {
|
|
4858
4903
|
{
|
|
4859
|
-
var
|
|
4860
|
-
return
|
|
4904
|
+
var m = C();
|
|
4905
|
+
return m.useDebugValue(o, c);
|
|
4861
4906
|
}
|
|
4862
4907
|
}
|
|
4863
4908
|
function to() {
|
|
@@ -4865,16 +4910,16 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
4865
4910
|
return o.useTransition();
|
|
4866
4911
|
}
|
|
4867
4912
|
function no(o) {
|
|
4868
|
-
var
|
|
4869
|
-
return
|
|
4913
|
+
var c = C();
|
|
4914
|
+
return c.useDeferredValue(o);
|
|
4870
4915
|
}
|
|
4871
4916
|
function ro() {
|
|
4872
4917
|
var o = C();
|
|
4873
4918
|
return o.useId();
|
|
4874
4919
|
}
|
|
4875
|
-
function so(o,
|
|
4920
|
+
function so(o, c, m) {
|
|
4876
4921
|
var v = C();
|
|
4877
|
-
return v.useSyncExternalStore(o,
|
|
4922
|
+
return v.useSyncExternalStore(o, c, m);
|
|
4878
4923
|
}
|
|
4879
4924
|
var gt = 0, dr, hr, pr, yr, mr, vr, gr;
|
|
4880
4925
|
function _r() {
|
|
@@ -4938,18 +4983,18 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
4938
4983
|
gt < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
4939
4984
|
}
|
|
4940
4985
|
}
|
|
4941
|
-
var
|
|
4942
|
-
function Bt(o,
|
|
4986
|
+
var Rn = oe.ReactCurrentDispatcher, Tn;
|
|
4987
|
+
function Bt(o, c, m) {
|
|
4943
4988
|
{
|
|
4944
|
-
if (
|
|
4989
|
+
if (Tn === void 0)
|
|
4945
4990
|
try {
|
|
4946
4991
|
throw Error();
|
|
4947
|
-
} catch (
|
|
4948
|
-
var v =
|
|
4949
|
-
|
|
4992
|
+
} catch (w) {
|
|
4993
|
+
var v = w.stack.trim().match(/\n( *(at )?)/);
|
|
4994
|
+
Tn = v && v[1] || "";
|
|
4950
4995
|
}
|
|
4951
4996
|
return `
|
|
4952
|
-
` +
|
|
4997
|
+
` + Tn + o;
|
|
4953
4998
|
}
|
|
4954
4999
|
}
|
|
4955
5000
|
var On = !1, Wt;
|
|
@@ -4957,22 +5002,22 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
4957
5002
|
var ao = typeof WeakMap == "function" ? WeakMap : Map;
|
|
4958
5003
|
Wt = new ao();
|
|
4959
5004
|
}
|
|
4960
|
-
function Er(o,
|
|
5005
|
+
function Er(o, c) {
|
|
4961
5006
|
if (!o || On)
|
|
4962
5007
|
return "";
|
|
4963
5008
|
{
|
|
4964
|
-
var
|
|
4965
|
-
if (
|
|
4966
|
-
return
|
|
5009
|
+
var m = Wt.get(o);
|
|
5010
|
+
if (m !== void 0)
|
|
5011
|
+
return m;
|
|
4967
5012
|
}
|
|
4968
5013
|
var v;
|
|
4969
5014
|
On = !0;
|
|
4970
|
-
var
|
|
5015
|
+
var w = Error.prepareStackTrace;
|
|
4971
5016
|
Error.prepareStackTrace = void 0;
|
|
4972
5017
|
var x;
|
|
4973
|
-
x =
|
|
5018
|
+
x = Rn.current, Rn.current = null, oo();
|
|
4974
5019
|
try {
|
|
4975
|
-
if (
|
|
5020
|
+
if (c) {
|
|
4976
5021
|
var A = function() {
|
|
4977
5022
|
throw Error();
|
|
4978
5023
|
};
|
|
@@ -5007,35 +5052,35 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
5007
5052
|
if (ae && v && typeof ae.stack == "string") {
|
|
5008
5053
|
for (var P = ae.stack.split(`
|
|
5009
5054
|
`), N = v.stack.split(`
|
|
5010
|
-
`),
|
|
5055
|
+
`), Y = P.length - 1, G = N.length - 1; Y >= 1 && G >= 0 && P[Y] !== N[G]; )
|
|
5011
5056
|
G--;
|
|
5012
|
-
for (;
|
|
5013
|
-
if (P[
|
|
5014
|
-
if (
|
|
5057
|
+
for (; Y >= 1 && G >= 0; Y--, G--)
|
|
5058
|
+
if (P[Y] !== N[G]) {
|
|
5059
|
+
if (Y !== 1 || G !== 1)
|
|
5015
5060
|
do
|
|
5016
|
-
if (
|
|
5061
|
+
if (Y--, G--, G < 0 || P[Y] !== N[G]) {
|
|
5017
5062
|
var X = `
|
|
5018
|
-
` + P[
|
|
5063
|
+
` + P[Y].replace(" at new ", " at ");
|
|
5019
5064
|
return o.displayName && X.includes("<anonymous>") && (X = X.replace("<anonymous>", o.displayName)), typeof o == "function" && Wt.set(o, X), X;
|
|
5020
5065
|
}
|
|
5021
|
-
while (
|
|
5066
|
+
while (Y >= 1 && G >= 0);
|
|
5022
5067
|
break;
|
|
5023
5068
|
}
|
|
5024
5069
|
}
|
|
5025
5070
|
} finally {
|
|
5026
|
-
On = !1,
|
|
5071
|
+
On = !1, Rn.current = x, io(), Error.prepareStackTrace = w;
|
|
5027
5072
|
}
|
|
5028
5073
|
var Q = o ? o.displayName || o.name : "", ne = Q ? Bt(Q) : "";
|
|
5029
5074
|
return typeof o == "function" && Wt.set(o, ne), ne;
|
|
5030
5075
|
}
|
|
5031
|
-
function uo(o,
|
|
5076
|
+
function uo(o, c, m) {
|
|
5032
5077
|
return Er(o, !1);
|
|
5033
5078
|
}
|
|
5034
5079
|
function co(o) {
|
|
5035
|
-
var
|
|
5036
|
-
return !!(
|
|
5080
|
+
var c = o.prototype;
|
|
5081
|
+
return !!(c && c.isReactComponent);
|
|
5037
5082
|
}
|
|
5038
|
-
function Vt(o,
|
|
5083
|
+
function Vt(o, c, m) {
|
|
5039
5084
|
if (o == null)
|
|
5040
5085
|
return "";
|
|
5041
5086
|
if (typeof o == "function")
|
|
@@ -5043,21 +5088,21 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
5043
5088
|
if (typeof o == "string")
|
|
5044
5089
|
return Bt(o);
|
|
5045
5090
|
switch (o) {
|
|
5046
|
-
case
|
|
5091
|
+
case h:
|
|
5047
5092
|
return Bt("Suspense");
|
|
5048
5093
|
case E:
|
|
5049
5094
|
return Bt("SuspenseList");
|
|
5050
5095
|
}
|
|
5051
5096
|
if (typeof o == "object")
|
|
5052
5097
|
switch (o.$$typeof) {
|
|
5053
|
-
case
|
|
5098
|
+
case y:
|
|
5054
5099
|
return uo(o.render);
|
|
5055
|
-
case
|
|
5056
|
-
return Vt(o.type,
|
|
5057
|
-
case
|
|
5058
|
-
var v = o,
|
|
5100
|
+
case S:
|
|
5101
|
+
return Vt(o.type, c, m);
|
|
5102
|
+
case _: {
|
|
5103
|
+
var v = o, w = v._payload, x = v._init;
|
|
5059
5104
|
try {
|
|
5060
|
-
return Vt(x(
|
|
5105
|
+
return Vt(x(w), c, m);
|
|
5061
5106
|
} catch {
|
|
5062
5107
|
}
|
|
5063
5108
|
}
|
|
@@ -5067,12 +5112,12 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
5067
5112
|
var br = {}, Sr = oe.ReactDebugCurrentFrame;
|
|
5068
5113
|
function zt(o) {
|
|
5069
5114
|
if (o) {
|
|
5070
|
-
var
|
|
5071
|
-
Sr.setExtraStackFrame(
|
|
5115
|
+
var c = o._owner, m = Vt(o.type, o._source, c ? c.type : null);
|
|
5116
|
+
Sr.setExtraStackFrame(m);
|
|
5072
5117
|
} else
|
|
5073
5118
|
Sr.setExtraStackFrame(null);
|
|
5074
5119
|
}
|
|
5075
|
-
function fo(o,
|
|
5120
|
+
function fo(o, c, m, v, w) {
|
|
5076
5121
|
{
|
|
5077
5122
|
var x = Function.call.bind(ze);
|
|
5078
5123
|
for (var A in o)
|
|
@@ -5080,21 +5125,21 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
5080
5125
|
var P = void 0;
|
|
5081
5126
|
try {
|
|
5082
5127
|
if (typeof o[A] != "function") {
|
|
5083
|
-
var N = Error((v || "React class") + ": " +
|
|
5128
|
+
var N = Error((v || "React class") + ": " + m + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
5084
5129
|
throw N.name = "Invariant Violation", N;
|
|
5085
5130
|
}
|
|
5086
|
-
P = o[A](
|
|
5087
|
-
} catch (
|
|
5088
|
-
P =
|
|
5131
|
+
P = o[A](c, A, v, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
5132
|
+
} catch (Y) {
|
|
5133
|
+
P = Y;
|
|
5089
5134
|
}
|
|
5090
|
-
P && !(P instanceof Error) && (zt(
|
|
5135
|
+
P && !(P instanceof Error) && (zt(w), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", m, A, typeof P), zt(null)), P instanceof Error && !(P.message in br) && (br[P.message] = !0, zt(w), k("Failed %s type: %s", m, P.message), zt(null));
|
|
5091
5136
|
}
|
|
5092
5137
|
}
|
|
5093
5138
|
}
|
|
5094
5139
|
function rt(o) {
|
|
5095
5140
|
if (o) {
|
|
5096
|
-
var
|
|
5097
|
-
Me(
|
|
5141
|
+
var c = o._owner, m = Vt(o.type, o._source, c ? c.type : null);
|
|
5142
|
+
Me(m);
|
|
5098
5143
|
} else
|
|
5099
5144
|
Me(null);
|
|
5100
5145
|
}
|
|
@@ -5112,84 +5157,84 @@ Check the render method of \`` + o + "`.";
|
|
|
5112
5157
|
}
|
|
5113
5158
|
function lo(o) {
|
|
5114
5159
|
if (o !== void 0) {
|
|
5115
|
-
var
|
|
5160
|
+
var c = o.fileName.replace(/^.*[\\\/]/, ""), m = o.lineNumber;
|
|
5116
5161
|
return `
|
|
5117
5162
|
|
|
5118
|
-
Check your code at ` +
|
|
5163
|
+
Check your code at ` + c + ":" + m + ".";
|
|
5119
5164
|
}
|
|
5120
5165
|
return "";
|
|
5121
5166
|
}
|
|
5122
5167
|
function ho(o) {
|
|
5123
5168
|
return o != null ? lo(o.__source) : "";
|
|
5124
5169
|
}
|
|
5125
|
-
var
|
|
5170
|
+
var Rr = {};
|
|
5126
5171
|
function po(o) {
|
|
5127
|
-
var
|
|
5128
|
-
if (!
|
|
5129
|
-
var
|
|
5130
|
-
|
|
5172
|
+
var c = wr();
|
|
5173
|
+
if (!c) {
|
|
5174
|
+
var m = typeof o == "string" ? o : o.displayName || o.name;
|
|
5175
|
+
m && (c = `
|
|
5131
5176
|
|
|
5132
|
-
Check the top-level render call using <` +
|
|
5177
|
+
Check the top-level render call using <` + m + ">.");
|
|
5133
5178
|
}
|
|
5134
|
-
return
|
|
5179
|
+
return c;
|
|
5135
5180
|
}
|
|
5136
|
-
function
|
|
5181
|
+
function Tr(o, c) {
|
|
5137
5182
|
if (!(!o._store || o._store.validated || o.key != null)) {
|
|
5138
5183
|
o._store.validated = !0;
|
|
5139
|
-
var
|
|
5140
|
-
if (!
|
|
5141
|
-
|
|
5184
|
+
var m = po(c);
|
|
5185
|
+
if (!Rr[m]) {
|
|
5186
|
+
Rr[m] = !0;
|
|
5142
5187
|
var v = "";
|
|
5143
|
-
o && o._owner && o._owner !== ue.current && (v = " It was passed a child from " + Se(o._owner.type) + "."), rt(o), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
5188
|
+
o && o._owner && o._owner !== ue.current && (v = " It was passed a child from " + Se(o._owner.type) + "."), rt(o), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, v), rt(null);
|
|
5144
5189
|
}
|
|
5145
5190
|
}
|
|
5146
5191
|
}
|
|
5147
|
-
function Or(o,
|
|
5192
|
+
function Or(o, c) {
|
|
5148
5193
|
if (typeof o == "object") {
|
|
5149
5194
|
if (Ze(o))
|
|
5150
|
-
for (var
|
|
5151
|
-
var v = o[
|
|
5152
|
-
Pe(v) &&
|
|
5195
|
+
for (var m = 0; m < o.length; m++) {
|
|
5196
|
+
var v = o[m];
|
|
5197
|
+
Pe(v) && Tr(v, c);
|
|
5153
5198
|
}
|
|
5154
5199
|
else if (Pe(o))
|
|
5155
5200
|
o._store && (o._store.validated = !0);
|
|
5156
5201
|
else if (o) {
|
|
5157
|
-
var
|
|
5158
|
-
if (typeof
|
|
5159
|
-
for (var x =
|
|
5160
|
-
Pe(A.value) &&
|
|
5202
|
+
var w = V(o);
|
|
5203
|
+
if (typeof w == "function" && w !== o.entries)
|
|
5204
|
+
for (var x = w.call(o), A; !(A = x.next()).done; )
|
|
5205
|
+
Pe(A.value) && Tr(A.value, c);
|
|
5161
5206
|
}
|
|
5162
5207
|
}
|
|
5163
5208
|
}
|
|
5164
5209
|
function Cr(o) {
|
|
5165
5210
|
{
|
|
5166
|
-
var
|
|
5167
|
-
if (
|
|
5211
|
+
var c = o.type;
|
|
5212
|
+
if (c == null || typeof c == "string")
|
|
5168
5213
|
return;
|
|
5169
|
-
var
|
|
5170
|
-
if (typeof
|
|
5171
|
-
|
|
5172
|
-
else if (typeof
|
|
5214
|
+
var m;
|
|
5215
|
+
if (typeof c == "function")
|
|
5216
|
+
m = c.propTypes;
|
|
5217
|
+
else if (typeof c == "object" && (c.$$typeof === y || // Note: Memo only checks outer props here.
|
|
5173
5218
|
// Inner props are checked in the reconciler.
|
|
5174
|
-
|
|
5175
|
-
|
|
5219
|
+
c.$$typeof === S))
|
|
5220
|
+
m = c.propTypes;
|
|
5176
5221
|
else
|
|
5177
5222
|
return;
|
|
5178
|
-
if (
|
|
5179
|
-
var v = Se(
|
|
5180
|
-
fo(
|
|
5181
|
-
} else if (
|
|
5223
|
+
if (m) {
|
|
5224
|
+
var v = Se(c);
|
|
5225
|
+
fo(m, o.props, "prop", v, o);
|
|
5226
|
+
} else if (c.PropTypes !== void 0 && !Cn) {
|
|
5182
5227
|
Cn = !0;
|
|
5183
|
-
var
|
|
5184
|
-
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
5228
|
+
var w = Se(c);
|
|
5229
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
|
|
5185
5230
|
}
|
|
5186
|
-
typeof
|
|
5231
|
+
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
5187
5232
|
}
|
|
5188
5233
|
}
|
|
5189
5234
|
function yo(o) {
|
|
5190
5235
|
{
|
|
5191
|
-
for (var
|
|
5192
|
-
var v =
|
|
5236
|
+
for (var c = Object.keys(o.props), m = 0; m < c.length; m++) {
|
|
5237
|
+
var v = c[m];
|
|
5193
5238
|
if (v !== "children" && v !== "key") {
|
|
5194
5239
|
rt(o), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), rt(null);
|
|
5195
5240
|
break;
|
|
@@ -5198,15 +5243,15 @@ Check the top-level render call using <` + y + ">.");
|
|
|
5198
5243
|
o.ref !== null && (rt(o), k("Invalid attribute `ref` supplied to `React.Fragment`."), rt(null));
|
|
5199
5244
|
}
|
|
5200
5245
|
}
|
|
5201
|
-
function Ar(o,
|
|
5202
|
-
var v =
|
|
5246
|
+
function Ar(o, c, m) {
|
|
5247
|
+
var v = b(o);
|
|
5203
5248
|
if (!v) {
|
|
5204
|
-
var
|
|
5205
|
-
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (
|
|
5206
|
-
var x = ho(
|
|
5207
|
-
x ?
|
|
5249
|
+
var w = "";
|
|
5250
|
+
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
5251
|
+
var x = ho(c);
|
|
5252
|
+
x ? w += x : w += wr();
|
|
5208
5253
|
var A;
|
|
5209
|
-
o === null ? A = "null" : Ze(o) ? A = "array" : o !== void 0 && o.$$typeof === r ? (A = "<" + (Se(o.type) || "Unknown") + " />",
|
|
5254
|
+
o === null ? A = "null" : Ze(o) ? A = "array" : o !== void 0 && o.$$typeof === r ? (A = "<" + (Se(o.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : A = typeof o, k("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, w);
|
|
5210
5255
|
}
|
|
5211
5256
|
var P = hn.apply(this, arguments);
|
|
5212
5257
|
if (P == null)
|
|
@@ -5218,32 +5263,32 @@ Check the top-level render call using <` + y + ">.");
|
|
|
5218
5263
|
}
|
|
5219
5264
|
var kr = !1;
|
|
5220
5265
|
function mo(o) {
|
|
5221
|
-
var
|
|
5222
|
-
return
|
|
5266
|
+
var c = Ar.bind(null, o);
|
|
5267
|
+
return c.type = o, kr || (kr = !0, me("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(c, "type", {
|
|
5223
5268
|
enumerable: !1,
|
|
5224
5269
|
get: function() {
|
|
5225
5270
|
return me("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
|
|
5226
5271
|
value: o
|
|
5227
5272
|
}), o;
|
|
5228
5273
|
}
|
|
5229
|
-
}),
|
|
5274
|
+
}), c;
|
|
5230
5275
|
}
|
|
5231
|
-
function vo(o,
|
|
5232
|
-
for (var v = yn.apply(this, arguments),
|
|
5233
|
-
Or(arguments[
|
|
5276
|
+
function vo(o, c, m) {
|
|
5277
|
+
for (var v = yn.apply(this, arguments), w = 2; w < arguments.length; w++)
|
|
5278
|
+
Or(arguments[w], v.type);
|
|
5234
5279
|
return Cr(v), v;
|
|
5235
5280
|
}
|
|
5236
|
-
function go(o,
|
|
5237
|
-
var
|
|
5281
|
+
function go(o, c) {
|
|
5282
|
+
var m = pe.transition;
|
|
5238
5283
|
pe.transition = {};
|
|
5239
5284
|
var v = pe.transition;
|
|
5240
5285
|
pe.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
5241
5286
|
try {
|
|
5242
5287
|
o();
|
|
5243
5288
|
} finally {
|
|
5244
|
-
if (pe.transition =
|
|
5245
|
-
var
|
|
5246
|
-
|
|
5289
|
+
if (pe.transition = m, m === null && v._updatedFibers) {
|
|
5290
|
+
var w = v._updatedFibers.size;
|
|
5291
|
+
w > 10 && me("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."), v._updatedFibers.clear();
|
|
5247
5292
|
}
|
|
5248
5293
|
}
|
|
5249
5294
|
}
|
|
@@ -5251,13 +5296,13 @@ Check the top-level render call using <` + y + ">.");
|
|
|
5251
5296
|
function _o(o) {
|
|
5252
5297
|
if (Ht === null)
|
|
5253
5298
|
try {
|
|
5254
|
-
var
|
|
5255
|
-
Ht =
|
|
5299
|
+
var c = ("require" + Math.random()).slice(0, 7), m = e && e[c];
|
|
5300
|
+
Ht = m.call(e, "timers").setImmediate;
|
|
5256
5301
|
} catch {
|
|
5257
|
-
Ht = function(
|
|
5302
|
+
Ht = function(w) {
|
|
5258
5303
|
xr === !1 && (xr = !0, typeof MessageChannel > "u" && k("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."));
|
|
5259
5304
|
var x = new MessageChannel();
|
|
5260
|
-
x.port1.onmessage =
|
|
5305
|
+
x.port1.onmessage = w, x.port2.postMessage(void 0);
|
|
5261
5306
|
};
|
|
5262
5307
|
}
|
|
5263
5308
|
return Ht(o);
|
|
@@ -5265,26 +5310,26 @@ Check the top-level render call using <` + y + ">.");
|
|
|
5265
5310
|
var st = 0, Pr = !1;
|
|
5266
5311
|
function Eo(o) {
|
|
5267
5312
|
{
|
|
5268
|
-
var
|
|
5313
|
+
var c = st;
|
|
5269
5314
|
st++, te.current === null && (te.current = []);
|
|
5270
|
-
var
|
|
5315
|
+
var m = te.isBatchingLegacy, v;
|
|
5271
5316
|
try {
|
|
5272
|
-
if (te.isBatchingLegacy = !0, v = o(), !
|
|
5273
|
-
var
|
|
5274
|
-
|
|
5317
|
+
if (te.isBatchingLegacy = !0, v = o(), !m && te.didScheduleLegacyUpdate) {
|
|
5318
|
+
var w = te.current;
|
|
5319
|
+
w !== null && (te.didScheduleLegacyUpdate = !1, xn(w));
|
|
5275
5320
|
}
|
|
5276
5321
|
} catch (Q) {
|
|
5277
|
-
throw qt(
|
|
5322
|
+
throw qt(c), Q;
|
|
5278
5323
|
} finally {
|
|
5279
|
-
te.isBatchingLegacy =
|
|
5324
|
+
te.isBatchingLegacy = m;
|
|
5280
5325
|
}
|
|
5281
5326
|
if (v !== null && typeof v == "object" && typeof v.then == "function") {
|
|
5282
5327
|
var x = v, A = !1, P = {
|
|
5283
5328
|
then: function(Q, ne) {
|
|
5284
5329
|
A = !0, x.then(function(ae) {
|
|
5285
|
-
qt(
|
|
5330
|
+
qt(c), st === 0 ? An(ae, Q, ne) : Q(ae);
|
|
5286
5331
|
}, function(ae) {
|
|
5287
|
-
qt(
|
|
5332
|
+
qt(c), ne(ae);
|
|
5288
5333
|
});
|
|
5289
5334
|
}
|
|
5290
5335
|
};
|
|
@@ -5294,9 +5339,9 @@ Check the top-level render call using <` + y + ">.");
|
|
|
5294
5339
|
}), P;
|
|
5295
5340
|
} else {
|
|
5296
5341
|
var N = v;
|
|
5297
|
-
if (qt(
|
|
5298
|
-
var
|
|
5299
|
-
|
|
5342
|
+
if (qt(c), st === 0) {
|
|
5343
|
+
var Y = te.current;
|
|
5344
|
+
Y !== null && (xn(Y), te.current = null);
|
|
5300
5345
|
var G = {
|
|
5301
5346
|
then: function(Q, ne) {
|
|
5302
5347
|
te.current === null ? (te.current = [], An(N, Q, ne)) : Q(N);
|
|
@@ -5317,49 +5362,49 @@ Check the top-level render call using <` + y + ">.");
|
|
|
5317
5362
|
function qt(o) {
|
|
5318
5363
|
o !== st - 1 && k("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), st = o;
|
|
5319
5364
|
}
|
|
5320
|
-
function An(o,
|
|
5365
|
+
function An(o, c, m) {
|
|
5321
5366
|
{
|
|
5322
5367
|
var v = te.current;
|
|
5323
5368
|
if (v !== null)
|
|
5324
5369
|
try {
|
|
5325
5370
|
xn(v), _o(function() {
|
|
5326
|
-
v.length === 0 ? (te.current = null,
|
|
5371
|
+
v.length === 0 ? (te.current = null, c(o)) : An(o, c, m);
|
|
5327
5372
|
});
|
|
5328
|
-
} catch (
|
|
5329
|
-
|
|
5373
|
+
} catch (w) {
|
|
5374
|
+
m(w);
|
|
5330
5375
|
}
|
|
5331
5376
|
else
|
|
5332
|
-
|
|
5377
|
+
c(o);
|
|
5333
5378
|
}
|
|
5334
5379
|
}
|
|
5335
5380
|
var kn = !1;
|
|
5336
5381
|
function xn(o) {
|
|
5337
5382
|
if (!kn) {
|
|
5338
5383
|
kn = !0;
|
|
5339
|
-
var
|
|
5384
|
+
var c = 0;
|
|
5340
5385
|
try {
|
|
5341
|
-
for (;
|
|
5342
|
-
var
|
|
5386
|
+
for (; c < o.length; c++) {
|
|
5387
|
+
var m = o[c];
|
|
5343
5388
|
do
|
|
5344
|
-
|
|
5345
|
-
while (
|
|
5389
|
+
m = m(!0);
|
|
5390
|
+
while (m !== null);
|
|
5346
5391
|
}
|
|
5347
5392
|
o.length = 0;
|
|
5348
5393
|
} catch (v) {
|
|
5349
|
-
throw o = o.slice(
|
|
5394
|
+
throw o = o.slice(c + 1), v;
|
|
5350
5395
|
} finally {
|
|
5351
5396
|
kn = !1;
|
|
5352
5397
|
}
|
|
5353
5398
|
}
|
|
5354
5399
|
}
|
|
5355
|
-
var bo = Ar, So = vo, wo = mo,
|
|
5400
|
+
var bo = Ar, So = vo, wo = mo, Ro = {
|
|
5356
5401
|
map: Ye,
|
|
5357
5402
|
forEach: Mt,
|
|
5358
5403
|
count: gn,
|
|
5359
5404
|
toArray: _n,
|
|
5360
5405
|
only: Nt
|
|
5361
5406
|
};
|
|
5362
|
-
t.Children =
|
|
5407
|
+
t.Children = Ro, t.Component = F, t.Fragment = i, t.Profiler = u, t.PureComponent = se, t.StrictMode = a, t.Suspense = h, t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = oe, t.cloneElement = So, t.createContext = Lt, t.createElement = bo, t.createFactory = wo, t.createRef = fn, t.forwardRef = wn, t.isValidElement = Pe, t.lazy = Sn, t.memo = T, t.startTransition = go, t.unstable_act = Eo, t.useCallback = de, t.useContext = U, t.useDebugValue = ve, t.useDeferredValue = no, t.useEffect = ie, t.useId = ro, t.useImperativeHandle = Ut, t.useInsertionEffect = Z, t.useLayoutEffect = ee, t.useMemo = je, t.useReducer = M, t.useRef = j, t.useState = H, t.useSyncExternalStore = so, t.useTransition = to, t.version = n, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
5363
5408
|
}();
|
|
5364
5409
|
}(wt, wt.exports)), wt.exports;
|
|
5365
5410
|
}
|
|
@@ -5380,15 +5425,15 @@ function Za() {
|
|
|
5380
5425
|
return bt;
|
|
5381
5426
|
fs = 1;
|
|
5382
5427
|
var e = Ae, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
5383
|
-
function a(
|
|
5384
|
-
var
|
|
5385
|
-
l !== void 0 && (E = "" + l),
|
|
5386
|
-
for (
|
|
5387
|
-
r.call(
|
|
5388
|
-
if (
|
|
5389
|
-
for (
|
|
5390
|
-
|
|
5391
|
-
return { $$typeof: t, type:
|
|
5428
|
+
function a(u, d, l) {
|
|
5429
|
+
var y, h = {}, E = null, S = null;
|
|
5430
|
+
l !== void 0 && (E = "" + l), d.key !== void 0 && (E = "" + d.key), d.ref !== void 0 && (S = d.ref);
|
|
5431
|
+
for (y in d)
|
|
5432
|
+
r.call(d, y) && !i.hasOwnProperty(y) && (h[y] = d[y]);
|
|
5433
|
+
if (u && u.defaultProps)
|
|
5434
|
+
for (y in d = u.defaultProps, d)
|
|
5435
|
+
h[y] === void 0 && (h[y] = d[y]);
|
|
5436
|
+
return { $$typeof: t, type: u, key: E, ref: S, props: h, _owner: s.current };
|
|
5392
5437
|
}
|
|
5393
5438
|
return bt.Fragment = n, bt.jsx = a, bt.jsxs = a, bt;
|
|
5394
5439
|
}
|
|
@@ -5405,54 +5450,54 @@ var St = {};
|
|
|
5405
5450
|
var ls;
|
|
5406
5451
|
function Qa() {
|
|
5407
5452
|
return ls || (ls = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5408
|
-
var e = Ae, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"),
|
|
5409
|
-
function
|
|
5453
|
+
var e = Ae, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), _ = Symbol.iterator, O = "@@iterator";
|
|
5454
|
+
function D(f) {
|
|
5410
5455
|
if (f === null || typeof f != "object")
|
|
5411
5456
|
return null;
|
|
5412
|
-
var
|
|
5413
|
-
return typeof
|
|
5457
|
+
var b = _ && f[_] || f[O];
|
|
5458
|
+
return typeof b == "function" ? b : null;
|
|
5414
5459
|
}
|
|
5415
|
-
var
|
|
5416
|
-
function
|
|
5460
|
+
var L = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
5461
|
+
function V(f) {
|
|
5417
5462
|
{
|
|
5418
|
-
for (var
|
|
5419
|
-
|
|
5420
|
-
he("error", f,
|
|
5463
|
+
for (var b = arguments.length, T = new Array(b > 1 ? b - 1 : 0), C = 1; C < b; C++)
|
|
5464
|
+
T[C - 1] = arguments[C];
|
|
5465
|
+
he("error", f, T);
|
|
5421
5466
|
}
|
|
5422
5467
|
}
|
|
5423
|
-
function he(f,
|
|
5468
|
+
function he(f, b, T) {
|
|
5424
5469
|
{
|
|
5425
|
-
var C =
|
|
5426
|
-
U !== "" && (
|
|
5427
|
-
var
|
|
5470
|
+
var C = L.ReactDebugCurrentFrame, U = C.getStackAddendum();
|
|
5471
|
+
U !== "" && (b += "%s", T = T.concat([U]));
|
|
5472
|
+
var H = T.map(function(M) {
|
|
5428
5473
|
return String(M);
|
|
5429
5474
|
});
|
|
5430
|
-
|
|
5475
|
+
H.unshift("Warning: " + b), Function.prototype.apply.call(console[f], console, H);
|
|
5431
5476
|
}
|
|
5432
5477
|
}
|
|
5433
|
-
var pe = !1, te = !1, ue = !1, Ee = !1,
|
|
5478
|
+
var pe = !1, te = !1, ue = !1, Ee = !1, Re = !1, Me;
|
|
5434
5479
|
Me = Symbol.for("react.module.reference");
|
|
5435
5480
|
function Ne(f) {
|
|
5436
|
-
return !!(typeof f == "string" || typeof f == "function" || f === r || f === i ||
|
|
5481
|
+
return !!(typeof f == "string" || typeof f == "function" || f === r || f === i || Re || f === s || f === l || f === y || Ee || f === S || pe || te || ue || typeof f == "object" && f !== null && (f.$$typeof === E || f.$$typeof === h || f.$$typeof === a || f.$$typeof === u || f.$$typeof === d || // This needs to include all possible module reference object
|
|
5437
5482
|
// types supported by any Flight configuration anywhere since
|
|
5438
5483
|
// we don't know which Flight build this will end up being used
|
|
5439
5484
|
// with.
|
|
5440
5485
|
f.$$typeof === Me || f.getModuleId !== void 0));
|
|
5441
5486
|
}
|
|
5442
|
-
function pt(f,
|
|
5487
|
+
function pt(f, b, T) {
|
|
5443
5488
|
var C = f.displayName;
|
|
5444
5489
|
if (C)
|
|
5445
5490
|
return C;
|
|
5446
|
-
var U =
|
|
5447
|
-
return U !== "" ?
|
|
5491
|
+
var U = b.displayName || b.name || "";
|
|
5492
|
+
return U !== "" ? T + "(" + U + ")" : T;
|
|
5448
5493
|
}
|
|
5449
|
-
function
|
|
5494
|
+
function Le(f) {
|
|
5450
5495
|
return f.displayName || "Context";
|
|
5451
5496
|
}
|
|
5452
5497
|
function ce(f) {
|
|
5453
5498
|
if (f == null)
|
|
5454
5499
|
return null;
|
|
5455
|
-
if (typeof f.tag == "number" &&
|
|
5500
|
+
if (typeof f.tag == "number" && V("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof f == "function")
|
|
5456
5501
|
return f.displayName || f.name || null;
|
|
5457
5502
|
if (typeof f == "string")
|
|
5458
5503
|
return f;
|
|
@@ -5467,26 +5512,26 @@ function Qa() {
|
|
|
5467
5512
|
return "StrictMode";
|
|
5468
5513
|
case l:
|
|
5469
5514
|
return "Suspense";
|
|
5470
|
-
case
|
|
5515
|
+
case y:
|
|
5471
5516
|
return "SuspenseList";
|
|
5472
5517
|
}
|
|
5473
5518
|
if (typeof f == "object")
|
|
5474
5519
|
switch (f.$$typeof) {
|
|
5475
|
-
case
|
|
5476
|
-
var
|
|
5477
|
-
return
|
|
5520
|
+
case u:
|
|
5521
|
+
var b = f;
|
|
5522
|
+
return Le(b) + ".Consumer";
|
|
5478
5523
|
case a:
|
|
5479
|
-
var
|
|
5480
|
-
return
|
|
5481
|
-
case
|
|
5524
|
+
var T = f;
|
|
5525
|
+
return Le(T._context) + ".Provider";
|
|
5526
|
+
case d:
|
|
5482
5527
|
return pt(f, f.render, "ForwardRef");
|
|
5483
|
-
case
|
|
5528
|
+
case h:
|
|
5484
5529
|
var C = f.displayName || null;
|
|
5485
5530
|
return C !== null ? C : ce(f.type) || "Memo";
|
|
5486
5531
|
case E: {
|
|
5487
|
-
var U = f,
|
|
5532
|
+
var U = f, H = U._payload, M = U._init;
|
|
5488
5533
|
try {
|
|
5489
|
-
return ce(M(
|
|
5534
|
+
return ce(M(H));
|
|
5490
5535
|
} catch {
|
|
5491
5536
|
return null;
|
|
5492
5537
|
}
|
|
@@ -5494,18 +5539,18 @@ function Qa() {
|
|
|
5494
5539
|
}
|
|
5495
5540
|
return null;
|
|
5496
5541
|
}
|
|
5497
|
-
var le = Object.assign, oe = 0, me, k, be,
|
|
5498
|
-
function
|
|
5542
|
+
var le = Object.assign, oe = 0, me, k, be, Ue, p, R, I;
|
|
5543
|
+
function W() {
|
|
5499
5544
|
}
|
|
5500
|
-
|
|
5545
|
+
W.__reactDisabledLog = !0;
|
|
5501
5546
|
function F() {
|
|
5502
5547
|
{
|
|
5503
5548
|
if (oe === 0) {
|
|
5504
|
-
me = console.log, k = console.info, be = console.warn,
|
|
5549
|
+
me = console.log, k = console.info, be = console.warn, Ue = console.error, p = console.group, R = console.groupCollapsed, I = console.groupEnd;
|
|
5505
5550
|
var f = {
|
|
5506
5551
|
configurable: !0,
|
|
5507
5552
|
enumerable: !0,
|
|
5508
|
-
value:
|
|
5553
|
+
value: W,
|
|
5509
5554
|
writable: !0
|
|
5510
5555
|
};
|
|
5511
5556
|
Object.defineProperties(console, {
|
|
@@ -5521,7 +5566,7 @@ function Qa() {
|
|
|
5521
5566
|
oe++;
|
|
5522
5567
|
}
|
|
5523
5568
|
}
|
|
5524
|
-
function
|
|
5569
|
+
function J() {
|
|
5525
5570
|
{
|
|
5526
5571
|
if (oe--, oe === 0) {
|
|
5527
5572
|
var f = {
|
|
@@ -5540,34 +5585,34 @@ function Qa() {
|
|
|
5540
5585
|
value: be
|
|
5541
5586
|
}),
|
|
5542
5587
|
error: le({}, f, {
|
|
5543
|
-
value:
|
|
5588
|
+
value: Ue
|
|
5544
5589
|
}),
|
|
5545
5590
|
group: le({}, f, {
|
|
5546
5591
|
value: p
|
|
5547
5592
|
}),
|
|
5548
5593
|
groupCollapsed: le({}, f, {
|
|
5549
|
-
value:
|
|
5594
|
+
value: R
|
|
5550
5595
|
}),
|
|
5551
5596
|
groupEnd: le({}, f, {
|
|
5552
5597
|
value: I
|
|
5553
5598
|
})
|
|
5554
5599
|
});
|
|
5555
5600
|
}
|
|
5556
|
-
oe < 0 &&
|
|
5601
|
+
oe < 0 && V("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
5557
5602
|
}
|
|
5558
5603
|
}
|
|
5559
|
-
var K =
|
|
5560
|
-
function
|
|
5604
|
+
var K = L.ReactCurrentDispatcher, q;
|
|
5605
|
+
function z(f, b, T) {
|
|
5561
5606
|
{
|
|
5562
|
-
if (
|
|
5607
|
+
if (q === void 0)
|
|
5563
5608
|
try {
|
|
5564
5609
|
throw Error();
|
|
5565
5610
|
} catch (U) {
|
|
5566
5611
|
var C = U.stack.trim().match(/\n( *(at )?)/);
|
|
5567
|
-
|
|
5612
|
+
q = C && C[1] || "";
|
|
5568
5613
|
}
|
|
5569
5614
|
return `
|
|
5570
|
-
` +
|
|
5615
|
+
` + q + f;
|
|
5571
5616
|
}
|
|
5572
5617
|
}
|
|
5573
5618
|
var se = !1, ke;
|
|
@@ -5575,22 +5620,22 @@ function Qa() {
|
|
|
5575
5620
|
var fn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
5576
5621
|
ke = new fn();
|
|
5577
5622
|
}
|
|
5578
|
-
function kt(f,
|
|
5623
|
+
function kt(f, b) {
|
|
5579
5624
|
if (!f || se)
|
|
5580
5625
|
return "";
|
|
5581
5626
|
{
|
|
5582
|
-
var
|
|
5583
|
-
if (
|
|
5584
|
-
return
|
|
5627
|
+
var T = ke.get(f);
|
|
5628
|
+
if (T !== void 0)
|
|
5629
|
+
return T;
|
|
5585
5630
|
}
|
|
5586
5631
|
var C;
|
|
5587
5632
|
se = !0;
|
|
5588
5633
|
var U = Error.prepareStackTrace;
|
|
5589
5634
|
Error.prepareStackTrace = void 0;
|
|
5590
|
-
var
|
|
5591
|
-
|
|
5635
|
+
var H;
|
|
5636
|
+
H = K.current, K.current = null, F();
|
|
5592
5637
|
try {
|
|
5593
|
-
if (
|
|
5638
|
+
if (b) {
|
|
5594
5639
|
var M = function() {
|
|
5595
5640
|
throw Error();
|
|
5596
5641
|
};
|
|
@@ -5623,17 +5668,17 @@ function Qa() {
|
|
|
5623
5668
|
}
|
|
5624
5669
|
} catch (ve) {
|
|
5625
5670
|
if (ve && C && typeof ve.stack == "string") {
|
|
5626
|
-
for (var
|
|
5671
|
+
for (var j = ve.stack.split(`
|
|
5627
5672
|
`), ie = C.stack.split(`
|
|
5628
|
-
`), Z =
|
|
5673
|
+
`), Z = j.length - 1, ee = ie.length - 1; Z >= 1 && ee >= 0 && j[Z] !== ie[ee]; )
|
|
5629
5674
|
ee--;
|
|
5630
5675
|
for (; Z >= 1 && ee >= 0; Z--, ee--)
|
|
5631
|
-
if (
|
|
5676
|
+
if (j[Z] !== ie[ee]) {
|
|
5632
5677
|
if (Z !== 1 || ee !== 1)
|
|
5633
5678
|
do
|
|
5634
|
-
if (Z--, ee--, ee < 0 ||
|
|
5679
|
+
if (Z--, ee--, ee < 0 || j[Z] !== ie[ee]) {
|
|
5635
5680
|
var de = `
|
|
5636
|
-
` +
|
|
5681
|
+
` + j[Z].replace(" at new ", " at ");
|
|
5637
5682
|
return f.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", f.displayName)), typeof f == "function" && ke.set(f, de), de;
|
|
5638
5683
|
}
|
|
5639
5684
|
while (Z >= 1 && ee >= 0);
|
|
@@ -5641,71 +5686,71 @@ function Qa() {
|
|
|
5641
5686
|
}
|
|
5642
5687
|
}
|
|
5643
5688
|
} finally {
|
|
5644
|
-
se = !1, K.current =
|
|
5689
|
+
se = !1, K.current = H, J(), Error.prepareStackTrace = U;
|
|
5645
5690
|
}
|
|
5646
|
-
var je = f ? f.displayName || f.name : "",
|
|
5647
|
-
return typeof f == "function" && ke.set(f,
|
|
5691
|
+
var je = f ? f.displayName || f.name : "", Ut = je ? z(je) : "";
|
|
5692
|
+
return typeof f == "function" && ke.set(f, Ut), Ut;
|
|
5648
5693
|
}
|
|
5649
|
-
function Ze(f,
|
|
5694
|
+
function Ze(f, b, T) {
|
|
5650
5695
|
return kt(f, !1);
|
|
5651
5696
|
}
|
|
5652
5697
|
function ln(f) {
|
|
5653
|
-
var
|
|
5654
|
-
return !!(
|
|
5698
|
+
var b = f.prototype;
|
|
5699
|
+
return !!(b && b.isReactComponent);
|
|
5655
5700
|
}
|
|
5656
|
-
function Qe(f,
|
|
5701
|
+
function Qe(f, b, T) {
|
|
5657
5702
|
if (f == null)
|
|
5658
5703
|
return "";
|
|
5659
5704
|
if (typeof f == "function")
|
|
5660
5705
|
return kt(f, ln(f));
|
|
5661
5706
|
if (typeof f == "string")
|
|
5662
|
-
return
|
|
5707
|
+
return z(f);
|
|
5663
5708
|
switch (f) {
|
|
5664
5709
|
case l:
|
|
5665
|
-
return
|
|
5666
|
-
case
|
|
5667
|
-
return
|
|
5710
|
+
return z("Suspense");
|
|
5711
|
+
case y:
|
|
5712
|
+
return z("SuspenseList");
|
|
5668
5713
|
}
|
|
5669
5714
|
if (typeof f == "object")
|
|
5670
5715
|
switch (f.$$typeof) {
|
|
5671
|
-
case
|
|
5716
|
+
case d:
|
|
5672
5717
|
return Ze(f.render);
|
|
5673
|
-
case
|
|
5674
|
-
return Qe(f.type,
|
|
5718
|
+
case h:
|
|
5719
|
+
return Qe(f.type, b, T);
|
|
5675
5720
|
case E: {
|
|
5676
|
-
var C = f, U = C._payload,
|
|
5721
|
+
var C = f, U = C._payload, H = C._init;
|
|
5677
5722
|
try {
|
|
5678
|
-
return Qe(
|
|
5723
|
+
return Qe(H(U), b, T);
|
|
5679
5724
|
} catch {
|
|
5680
5725
|
}
|
|
5681
5726
|
}
|
|
5682
5727
|
}
|
|
5683
5728
|
return "";
|
|
5684
5729
|
}
|
|
5685
|
-
var Be = Object.prototype.hasOwnProperty, We = {}, xt =
|
|
5730
|
+
var Be = Object.prototype.hasOwnProperty, We = {}, xt = L.ReactDebugCurrentFrame;
|
|
5686
5731
|
function Ve(f) {
|
|
5687
5732
|
if (f) {
|
|
5688
|
-
var
|
|
5689
|
-
xt.setExtraStackFrame(
|
|
5733
|
+
var b = f._owner, T = Qe(f.type, f._source, b ? b.type : null);
|
|
5734
|
+
xt.setExtraStackFrame(T);
|
|
5690
5735
|
} else
|
|
5691
5736
|
xt.setExtraStackFrame(null);
|
|
5692
5737
|
}
|
|
5693
|
-
function Se(f,
|
|
5738
|
+
function Se(f, b, T, C, U) {
|
|
5694
5739
|
{
|
|
5695
|
-
var
|
|
5740
|
+
var H = Function.call.bind(Be);
|
|
5696
5741
|
for (var M in f)
|
|
5697
|
-
if (
|
|
5698
|
-
var
|
|
5742
|
+
if (H(f, M)) {
|
|
5743
|
+
var j = void 0;
|
|
5699
5744
|
try {
|
|
5700
5745
|
if (typeof f[M] != "function") {
|
|
5701
|
-
var ie = Error((C || "React class") + ": " +
|
|
5746
|
+
var ie = Error((C || "React class") + ": " + T + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof f[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
5702
5747
|
throw ie.name = "Invariant Violation", ie;
|
|
5703
5748
|
}
|
|
5704
|
-
|
|
5749
|
+
j = f[M](b, M, C, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
5705
5750
|
} catch (Z) {
|
|
5706
|
-
|
|
5751
|
+
j = Z;
|
|
5707
5752
|
}
|
|
5708
|
-
|
|
5753
|
+
j && !(j instanceof Error) && (Ve(U), V("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", C || "React class", T, M, typeof j), Ve(null)), j instanceof Error && !(j.message in We) && (We[j.message] = !0, Ve(U), V("Failed %s type: %s", T, j.message), Ve(null));
|
|
5709
5754
|
}
|
|
5710
5755
|
}
|
|
5711
5756
|
}
|
|
@@ -5715,8 +5760,8 @@ function Qa() {
|
|
|
5715
5760
|
}
|
|
5716
5761
|
function Pt(f) {
|
|
5717
5762
|
{
|
|
5718
|
-
var
|
|
5719
|
-
return
|
|
5763
|
+
var b = typeof Symbol == "function" && Symbol.toStringTag, T = b && f[Symbol.toStringTag] || f.constructor.name || "Object";
|
|
5764
|
+
return T;
|
|
5720
5765
|
}
|
|
5721
5766
|
}
|
|
5722
5767
|
function It(f) {
|
|
@@ -5731,9 +5776,9 @@ function Qa() {
|
|
|
5731
5776
|
}
|
|
5732
5777
|
function yt(f) {
|
|
5733
5778
|
if (It(f))
|
|
5734
|
-
return
|
|
5779
|
+
return V("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pt(f)), tt(f);
|
|
5735
5780
|
}
|
|
5736
|
-
var xe =
|
|
5781
|
+
var xe = L.ReactCurrentOwner, dn = {
|
|
5737
5782
|
key: !0,
|
|
5738
5783
|
ref: !0,
|
|
5739
5784
|
__self: !0,
|
|
@@ -5742,100 +5787,100 @@ function Qa() {
|
|
|
5742
5787
|
He = {};
|
|
5743
5788
|
function hn(f) {
|
|
5744
5789
|
if (Be.call(f, "ref")) {
|
|
5745
|
-
var
|
|
5746
|
-
if (
|
|
5790
|
+
var b = Object.getOwnPropertyDescriptor(f, "ref").get;
|
|
5791
|
+
if (b && b.isReactWarning)
|
|
5747
5792
|
return !1;
|
|
5748
5793
|
}
|
|
5749
5794
|
return f.ref !== void 0;
|
|
5750
5795
|
}
|
|
5751
5796
|
function pn(f) {
|
|
5752
5797
|
if (Be.call(f, "key")) {
|
|
5753
|
-
var
|
|
5754
|
-
if (
|
|
5798
|
+
var b = Object.getOwnPropertyDescriptor(f, "key").get;
|
|
5799
|
+
if (b && b.isReactWarning)
|
|
5755
5800
|
return !1;
|
|
5756
5801
|
}
|
|
5757
5802
|
return f.key !== void 0;
|
|
5758
5803
|
}
|
|
5759
|
-
function yn(f,
|
|
5760
|
-
if (typeof f.ref == "string" && xe.current &&
|
|
5761
|
-
var
|
|
5762
|
-
He[
|
|
5804
|
+
function yn(f, b) {
|
|
5805
|
+
if (typeof f.ref == "string" && xe.current && b && xe.current.stateNode !== b) {
|
|
5806
|
+
var T = ce(xe.current.type);
|
|
5807
|
+
He[T] || (V('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ce(xe.current.type), f.ref), He[T] = !0);
|
|
5763
5808
|
}
|
|
5764
5809
|
}
|
|
5765
|
-
function Pe(f,
|
|
5810
|
+
function Pe(f, b) {
|
|
5766
5811
|
{
|
|
5767
|
-
var
|
|
5768
|
-
jt || (jt = !0,
|
|
5812
|
+
var T = function() {
|
|
5813
|
+
jt || (jt = !0, V("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", b));
|
|
5769
5814
|
};
|
|
5770
|
-
|
|
5771
|
-
get:
|
|
5815
|
+
T.isReactWarning = !0, Object.defineProperty(f, "key", {
|
|
5816
|
+
get: T,
|
|
5772
5817
|
configurable: !0
|
|
5773
5818
|
});
|
|
5774
5819
|
}
|
|
5775
5820
|
}
|
|
5776
|
-
function $t(f,
|
|
5821
|
+
function $t(f, b) {
|
|
5777
5822
|
{
|
|
5778
|
-
var
|
|
5779
|
-
Dt || (Dt = !0,
|
|
5823
|
+
var T = function() {
|
|
5824
|
+
Dt || (Dt = !0, V("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", b));
|
|
5780
5825
|
};
|
|
5781
|
-
|
|
5782
|
-
get:
|
|
5826
|
+
T.isReactWarning = !0, Object.defineProperty(f, "ref", {
|
|
5827
|
+
get: T,
|
|
5783
5828
|
configurable: !0
|
|
5784
5829
|
});
|
|
5785
5830
|
}
|
|
5786
5831
|
}
|
|
5787
|
-
var mn = function(f,
|
|
5788
|
-
var
|
|
5832
|
+
var mn = function(f, b, T, C, U, H, M) {
|
|
5833
|
+
var j = {
|
|
5789
5834
|
// This tag allows us to uniquely identify this as a React Element
|
|
5790
5835
|
$$typeof: t,
|
|
5791
5836
|
// Built-in properties that belong on the element
|
|
5792
5837
|
type: f,
|
|
5793
|
-
key:
|
|
5794
|
-
ref:
|
|
5838
|
+
key: b,
|
|
5839
|
+
ref: T,
|
|
5795
5840
|
props: M,
|
|
5796
5841
|
// Record the component responsible for creating this element.
|
|
5797
|
-
_owner:
|
|
5842
|
+
_owner: H
|
|
5798
5843
|
};
|
|
5799
|
-
return
|
|
5844
|
+
return j._store = {}, Object.defineProperty(j._store, "validated", {
|
|
5800
5845
|
configurable: !1,
|
|
5801
5846
|
enumerable: !1,
|
|
5802
5847
|
writable: !0,
|
|
5803
5848
|
value: !1
|
|
5804
|
-
}), Object.defineProperty(
|
|
5849
|
+
}), Object.defineProperty(j, "_self", {
|
|
5805
5850
|
configurable: !1,
|
|
5806
5851
|
enumerable: !1,
|
|
5807
5852
|
writable: !1,
|
|
5808
5853
|
value: C
|
|
5809
|
-
}), Object.defineProperty(
|
|
5854
|
+
}), Object.defineProperty(j, "_source", {
|
|
5810
5855
|
configurable: !1,
|
|
5811
5856
|
enumerable: !1,
|
|
5812
5857
|
writable: !1,
|
|
5813
5858
|
value: U
|
|
5814
|
-
}), Object.freeze && (Object.freeze(
|
|
5859
|
+
}), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
|
|
5815
5860
|
};
|
|
5816
|
-
function vn(f,
|
|
5861
|
+
function vn(f, b, T, C, U) {
|
|
5817
5862
|
{
|
|
5818
|
-
var
|
|
5819
|
-
|
|
5820
|
-
for (
|
|
5821
|
-
Be.call(
|
|
5863
|
+
var H, M = {}, j = null, ie = null;
|
|
5864
|
+
T !== void 0 && (yt(T), j = "" + T), pn(b) && (yt(b.key), j = "" + b.key), hn(b) && (ie = b.ref, yn(b, U));
|
|
5865
|
+
for (H in b)
|
|
5866
|
+
Be.call(b, H) && !dn.hasOwnProperty(H) && (M[H] = b[H]);
|
|
5822
5867
|
if (f && f.defaultProps) {
|
|
5823
5868
|
var Z = f.defaultProps;
|
|
5824
|
-
for (
|
|
5825
|
-
M[
|
|
5869
|
+
for (H in Z)
|
|
5870
|
+
M[H] === void 0 && (M[H] = Z[H]);
|
|
5826
5871
|
}
|
|
5827
|
-
if (
|
|
5872
|
+
if (j || ie) {
|
|
5828
5873
|
var ee = typeof f == "function" ? f.displayName || f.name || "Unknown" : f;
|
|
5829
|
-
|
|
5874
|
+
j && Pe(M, ee), ie && $t(M, ee);
|
|
5830
5875
|
}
|
|
5831
|
-
return mn(f,
|
|
5876
|
+
return mn(f, j, ie, U, C, xe.current, M);
|
|
5832
5877
|
}
|
|
5833
5878
|
}
|
|
5834
|
-
var nt =
|
|
5835
|
-
function
|
|
5879
|
+
var nt = L.ReactCurrentOwner, Ft = L.ReactDebugCurrentFrame;
|
|
5880
|
+
function Te(f) {
|
|
5836
5881
|
if (f) {
|
|
5837
|
-
var
|
|
5838
|
-
Ft.setExtraStackFrame(
|
|
5882
|
+
var b = f._owner, T = Qe(f.type, f._source, b ? b.type : null);
|
|
5883
|
+
Ft.setExtraStackFrame(T);
|
|
5839
5884
|
} else
|
|
5840
5885
|
Ft.setExtraStackFrame(null);
|
|
5841
5886
|
}
|
|
@@ -5859,10 +5904,10 @@ Check the render method of \`` + f + "`.";
|
|
|
5859
5904
|
function gn(f) {
|
|
5860
5905
|
{
|
|
5861
5906
|
if (f !== void 0) {
|
|
5862
|
-
var
|
|
5907
|
+
var b = f.fileName.replace(/^.*[\\\/]/, ""), T = f.lineNumber;
|
|
5863
5908
|
return `
|
|
5864
5909
|
|
|
5865
|
-
Check your code at ` +
|
|
5910
|
+
Check your code at ` + b + ":" + T + ".";
|
|
5866
5911
|
}
|
|
5867
5912
|
return "";
|
|
5868
5913
|
}
|
|
@@ -5870,120 +5915,120 @@ Check your code at ` + _ + ":" + R + ".";
|
|
|
5870
5915
|
var Mt = {};
|
|
5871
5916
|
function _n(f) {
|
|
5872
5917
|
{
|
|
5873
|
-
var
|
|
5874
|
-
if (!
|
|
5875
|
-
var
|
|
5876
|
-
|
|
5918
|
+
var b = Ye();
|
|
5919
|
+
if (!b) {
|
|
5920
|
+
var T = typeof f == "string" ? f : f.displayName || f.name;
|
|
5921
|
+
T && (b = `
|
|
5877
5922
|
|
|
5878
|
-
Check the top-level render call using <` +
|
|
5923
|
+
Check the top-level render call using <` + T + ">.");
|
|
5879
5924
|
}
|
|
5880
|
-
return
|
|
5925
|
+
return b;
|
|
5881
5926
|
}
|
|
5882
5927
|
}
|
|
5883
|
-
function Nt(f,
|
|
5928
|
+
function Nt(f, b) {
|
|
5884
5929
|
{
|
|
5885
5930
|
if (!f._store || f._store.validated || f.key != null)
|
|
5886
5931
|
return;
|
|
5887
5932
|
f._store.validated = !0;
|
|
5888
|
-
var
|
|
5889
|
-
if (Mt[
|
|
5933
|
+
var T = _n(b);
|
|
5934
|
+
if (Mt[T])
|
|
5890
5935
|
return;
|
|
5891
|
-
Mt[
|
|
5936
|
+
Mt[T] = !0;
|
|
5892
5937
|
var C = "";
|
|
5893
|
-
f && f._owner && f._owner !== nt.current && (C = " It was passed a child from " + ce(f._owner.type) + "."),
|
|
5938
|
+
f && f._owner && f._owner !== nt.current && (C = " It was passed a child from " + ce(f._owner.type) + "."), Te(f), V('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, C), Te(null);
|
|
5894
5939
|
}
|
|
5895
5940
|
}
|
|
5896
|
-
function
|
|
5941
|
+
function Lt(f, b) {
|
|
5897
5942
|
{
|
|
5898
5943
|
if (typeof f != "object")
|
|
5899
5944
|
return;
|
|
5900
5945
|
if (et(f))
|
|
5901
|
-
for (var
|
|
5902
|
-
var C = f[
|
|
5903
|
-
Ie(C) && Nt(C,
|
|
5946
|
+
for (var T = 0; T < f.length; T++) {
|
|
5947
|
+
var C = f[T];
|
|
5948
|
+
Ie(C) && Nt(C, b);
|
|
5904
5949
|
}
|
|
5905
5950
|
else if (Ie(f))
|
|
5906
5951
|
f._store && (f._store.validated = !0);
|
|
5907
5952
|
else if (f) {
|
|
5908
|
-
var U =
|
|
5953
|
+
var U = D(f);
|
|
5909
5954
|
if (typeof U == "function" && U !== f.entries)
|
|
5910
|
-
for (var
|
|
5911
|
-
Ie(M.value) && Nt(M.value,
|
|
5955
|
+
for (var H = U.call(f), M; !(M = H.next()).done; )
|
|
5956
|
+
Ie(M.value) && Nt(M.value, b);
|
|
5912
5957
|
}
|
|
5913
5958
|
}
|
|
5914
5959
|
}
|
|
5915
5960
|
function Je(f) {
|
|
5916
5961
|
{
|
|
5917
|
-
var
|
|
5918
|
-
if (
|
|
5962
|
+
var b = f.type;
|
|
5963
|
+
if (b == null || typeof b == "string")
|
|
5919
5964
|
return;
|
|
5920
|
-
var
|
|
5921
|
-
if (typeof
|
|
5922
|
-
|
|
5923
|
-
else if (typeof
|
|
5965
|
+
var T;
|
|
5966
|
+
if (typeof b == "function")
|
|
5967
|
+
T = b.propTypes;
|
|
5968
|
+
else if (typeof b == "object" && (b.$$typeof === d || // Note: Memo only checks outer props here.
|
|
5924
5969
|
// Inner props are checked in the reconciler.
|
|
5925
|
-
|
|
5926
|
-
|
|
5970
|
+
b.$$typeof === h))
|
|
5971
|
+
T = b.propTypes;
|
|
5927
5972
|
else
|
|
5928
5973
|
return;
|
|
5929
|
-
if (
|
|
5930
|
-
var C = ce(
|
|
5931
|
-
Se(
|
|
5932
|
-
} else if (
|
|
5974
|
+
if (T) {
|
|
5975
|
+
var C = ce(b);
|
|
5976
|
+
Se(T, f.props, "prop", C, f);
|
|
5977
|
+
} else if (b.PropTypes !== void 0 && !qe) {
|
|
5933
5978
|
qe = !0;
|
|
5934
|
-
var U = ce(
|
|
5935
|
-
|
|
5979
|
+
var U = ce(b);
|
|
5980
|
+
V("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
|
|
5936
5981
|
}
|
|
5937
|
-
typeof
|
|
5982
|
+
typeof b.getDefaultProps == "function" && !b.getDefaultProps.isReactClassApproved && V("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
5938
5983
|
}
|
|
5939
5984
|
}
|
|
5940
5985
|
function mt(f) {
|
|
5941
5986
|
{
|
|
5942
|
-
for (var
|
|
5943
|
-
var C =
|
|
5987
|
+
for (var b = Object.keys(f.props), T = 0; T < b.length; T++) {
|
|
5988
|
+
var C = b[T];
|
|
5944
5989
|
if (C !== "children" && C !== "key") {
|
|
5945
|
-
|
|
5990
|
+
Te(f), V("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), Te(null);
|
|
5946
5991
|
break;
|
|
5947
5992
|
}
|
|
5948
5993
|
}
|
|
5949
|
-
f.ref !== null && (
|
|
5994
|
+
f.ref !== null && (Te(f), V("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
|
|
5950
5995
|
}
|
|
5951
5996
|
}
|
|
5952
|
-
function vt(f,
|
|
5997
|
+
function vt(f, b, T, C, U, H) {
|
|
5953
5998
|
{
|
|
5954
5999
|
var M = Ne(f);
|
|
5955
6000
|
if (!M) {
|
|
5956
|
-
var
|
|
5957
|
-
(f === void 0 || typeof f == "object" && f !== null && Object.keys(f).length === 0) && (
|
|
6001
|
+
var j = "";
|
|
6002
|
+
(f === void 0 || typeof f == "object" && f !== null && Object.keys(f).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
5958
6003
|
var ie = gn(U);
|
|
5959
|
-
ie ?
|
|
6004
|
+
ie ? j += ie : j += Ye();
|
|
5960
6005
|
var Z;
|
|
5961
|
-
f === null ? Z = "null" : et(f) ? Z = "array" : f !== void 0 && f.$$typeof === t ? (Z = "<" + (ce(f.type) || "Unknown") + " />",
|
|
6006
|
+
f === null ? Z = "null" : et(f) ? Z = "array" : f !== void 0 && f.$$typeof === t ? (Z = "<" + (ce(f.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof f, V("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, j);
|
|
5962
6007
|
}
|
|
5963
|
-
var ee = vn(f,
|
|
6008
|
+
var ee = vn(f, b, T, U, H);
|
|
5964
6009
|
if (ee == null)
|
|
5965
6010
|
return ee;
|
|
5966
6011
|
if (M) {
|
|
5967
|
-
var de =
|
|
6012
|
+
var de = b.children;
|
|
5968
6013
|
if (de !== void 0)
|
|
5969
6014
|
if (C)
|
|
5970
6015
|
if (et(de)) {
|
|
5971
6016
|
for (var je = 0; je < de.length; je++)
|
|
5972
|
-
|
|
6017
|
+
Lt(de[je], f);
|
|
5973
6018
|
Object.freeze && Object.freeze(de);
|
|
5974
6019
|
} else
|
|
5975
|
-
|
|
6020
|
+
V("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
5976
6021
|
else
|
|
5977
|
-
|
|
6022
|
+
Lt(de, f);
|
|
5978
6023
|
}
|
|
5979
6024
|
return f === r ? mt(ee) : Je(ee), ee;
|
|
5980
6025
|
}
|
|
5981
6026
|
}
|
|
5982
|
-
function En(f,
|
|
5983
|
-
return vt(f,
|
|
6027
|
+
function En(f, b, T) {
|
|
6028
|
+
return vt(f, b, T, !0);
|
|
5984
6029
|
}
|
|
5985
|
-
function bn(f,
|
|
5986
|
-
return vt(f,
|
|
6030
|
+
function bn(f, b, T) {
|
|
6031
|
+
return vt(f, b, T, !1);
|
|
5987
6032
|
}
|
|
5988
6033
|
var Sn = bn, wn = En;
|
|
5989
6034
|
St.Fragment = r, St.jsx = Sn, St.jsxs = wn;
|
|
@@ -6009,7 +6054,12 @@ const Qs = Ae.createContext(void 0), nu = () => {
|
|
|
6009
6054
|
}) => typeof window < "u" ? (console.warn(
|
|
6010
6055
|
"App.getInitialProps::getAuth should not be run on the frontend. You are probably missing getServerSideProps in your page."
|
|
6011
6056
|
), ut(as, {
|
|
6012
|
-
inspect: t.inspect
|
|
6057
|
+
inspect: t.inspect,
|
|
6058
|
+
input: {
|
|
6059
|
+
initialContext: {
|
|
6060
|
+
endpoints: t.endpoints
|
|
6061
|
+
}
|
|
6062
|
+
}
|
|
6013
6063
|
}).start()) : ut(as, {
|
|
6014
6064
|
input: {
|
|
6015
6065
|
initialContext: {
|
|
@@ -6022,7 +6072,20 @@ const Qs = Ae.createContext(void 0), nu = () => {
|
|
|
6022
6072
|
function su({ actor: e, children: t }) {
|
|
6023
6073
|
return /* @__PURE__ */ Zs.jsx(Qs.Provider, { value: e, children: t });
|
|
6024
6074
|
}
|
|
6025
|
-
|
|
6075
|
+
let eu = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, n) => (n &= 63, n < 36 ? t += n.toString(36) : n < 62 ? t += (n - 26).toString(36).toUpperCase() : n > 62 ? t += "-" : t += "_", t), "");
|
|
6076
|
+
const tu = or({
|
|
6077
|
+
actors: {
|
|
6078
|
+
tick: Oi(
|
|
6079
|
+
({ sendBack: e, input: t }) => {
|
|
6080
|
+
const n = setInterval(() => {
|
|
6081
|
+
e({ type: "TICK" });
|
|
6082
|
+
}, t.interval);
|
|
6083
|
+
return () => {
|
|
6084
|
+
clearInterval(n);
|
|
6085
|
+
};
|
|
6086
|
+
}
|
|
6087
|
+
)
|
|
6088
|
+
},
|
|
6026
6089
|
types: {
|
|
6027
6090
|
context: {},
|
|
6028
6091
|
events: {},
|
|
@@ -6067,28 +6130,7 @@ const eu = {}, tu = or({
|
|
|
6067
6130
|
// },
|
|
6068
6131
|
invoke: {
|
|
6069
6132
|
input: ({ context: e }) => ({ interval: e.interval }),
|
|
6070
|
-
src:
|
|
6071
|
-
({ sendBack: e, input: t }) => {
|
|
6072
|
-
const n = setInterval(() => {
|
|
6073
|
-
e({ type: "TICK" });
|
|
6074
|
-
}, t.interval);
|
|
6075
|
-
return () => {
|
|
6076
|
-
clearInterval(n);
|
|
6077
|
-
};
|
|
6078
|
-
}
|
|
6079
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
6080
|
-
// async ({ input }) => {
|
|
6081
|
-
// console.log('interval: ', input.interval);
|
|
6082
|
-
// return { type: 'TICK' };
|
|
6083
|
-
// // console.log('in running invoke');
|
|
6084
|
-
// // const interval = setInterval(() => {
|
|
6085
|
-
// // raise({ type: 'TICK' });
|
|
6086
|
-
// // }, input.interval);
|
|
6087
|
-
// // return () => {
|
|
6088
|
-
// // clearInterval(interval);
|
|
6089
|
-
// // };
|
|
6090
|
-
// }
|
|
6091
|
-
)
|
|
6133
|
+
src: "tick"
|
|
6092
6134
|
},
|
|
6093
6135
|
always: [
|
|
6094
6136
|
{
|
|
@@ -6110,6 +6152,9 @@ const eu = {}, tu = or({
|
|
|
6110
6152
|
}
|
|
6111
6153
|
}
|
|
6112
6154
|
}), ou = or({
|
|
6155
|
+
actors: {
|
|
6156
|
+
timer: tu
|
|
6157
|
+
},
|
|
6113
6158
|
types: {
|
|
6114
6159
|
context: {},
|
|
6115
6160
|
events: {},
|
|
@@ -6119,7 +6164,7 @@ const eu = {}, tu = or({
|
|
|
6119
6164
|
addItem: ge(({ context: e, event: t }) => {
|
|
6120
6165
|
if (t.type !== "ADD_ITEM")
|
|
6121
6166
|
return e;
|
|
6122
|
-
const n = `notification-${eu
|
|
6167
|
+
const n = `notification-${eu()}`, r = t.duration ?? e.duration, s = Ae.cloneElement(t.item, {
|
|
6123
6168
|
duration: r,
|
|
6124
6169
|
id: n,
|
|
6125
6170
|
key: t.item.key ?? n,
|
|
@@ -6167,8 +6212,7 @@ const eu = {}, tu = or({
|
|
|
6167
6212
|
},
|
|
6168
6213
|
active: {
|
|
6169
6214
|
invoke: {
|
|
6170
|
-
|
|
6171
|
-
src: tu,
|
|
6215
|
+
src: "timer",
|
|
6172
6216
|
input: ({ context: e }) => ({
|
|
6173
6217
|
initialContext: {
|
|
6174
6218
|
duration: e.items[e.items.length - 1].duration ?? e.duration
|