react-dom 19.1.0-canary-7b402084-20250107 → 19.1.0-canary-74ea0c73-20250109
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/cjs/react-dom-client.development.js +983 -964
- package/cjs/react-dom-client.production.js +624 -607
- package/cjs/react-dom-profiling.development.js +991 -972
- package/cjs/react-dom-profiling.profiling.js +638 -619
- package/cjs/react-dom-server-legacy.browser.development.js +3 -4
- package/cjs/react-dom-server-legacy.browser.production.js +3 -4
- package/cjs/react-dom-server-legacy.node.development.js +3 -4
- package/cjs/react-dom-server-legacy.node.production.js +3 -4
- package/cjs/react-dom-server.browser.development.js +5 -6
- package/cjs/react-dom-server.browser.production.js +5 -6
- package/cjs/react-dom-server.bun.development.js +5 -6
- package/cjs/react-dom-server.bun.production.js +5 -6
- package/cjs/react-dom-server.edge.development.js +5 -6
- package/cjs/react-dom-server.edge.production.js +5 -6
- package/cjs/react-dom-server.node.development.js +5 -6
- package/cjs/react-dom-server.node.production.js +5 -6
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -122,6 +122,120 @@
|
|
122
122
|
(1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType)
|
123
123
|
);
|
124
124
|
}
|
125
|
+
function getNearestMountedFiber(fiber) {
|
126
|
+
var node = fiber,
|
127
|
+
nearestMounted = fiber;
|
128
|
+
if (fiber.alternate) for (; node.return; ) node = node.return;
|
129
|
+
else {
|
130
|
+
fiber = node;
|
131
|
+
do
|
132
|
+
(node = fiber),
|
133
|
+
0 !== (node.flags & 4098) && (nearestMounted = node.return),
|
134
|
+
(fiber = node.return);
|
135
|
+
while (fiber);
|
136
|
+
}
|
137
|
+
return 3 === node.tag ? nearestMounted : null;
|
138
|
+
}
|
139
|
+
function getSuspenseInstanceFromFiber(fiber) {
|
140
|
+
if (13 === fiber.tag) {
|
141
|
+
var suspenseState = fiber.memoizedState;
|
142
|
+
null === suspenseState &&
|
143
|
+
((fiber = fiber.alternate),
|
144
|
+
null !== fiber && (suspenseState = fiber.memoizedState));
|
145
|
+
if (null !== suspenseState) return suspenseState.dehydrated;
|
146
|
+
}
|
147
|
+
return null;
|
148
|
+
}
|
149
|
+
function assertIsMounted(fiber) {
|
150
|
+
if (getNearestMountedFiber(fiber) !== fiber)
|
151
|
+
throw Error("Unable to find node on an unmounted component.");
|
152
|
+
}
|
153
|
+
function findCurrentFiberUsingSlowPath(fiber) {
|
154
|
+
var alternate = fiber.alternate;
|
155
|
+
if (!alternate) {
|
156
|
+
alternate = getNearestMountedFiber(fiber);
|
157
|
+
if (null === alternate)
|
158
|
+
throw Error("Unable to find node on an unmounted component.");
|
159
|
+
return alternate !== fiber ? null : fiber;
|
160
|
+
}
|
161
|
+
for (var a = fiber, b = alternate; ; ) {
|
162
|
+
var parentA = a.return;
|
163
|
+
if (null === parentA) break;
|
164
|
+
var parentB = parentA.alternate;
|
165
|
+
if (null === parentB) {
|
166
|
+
b = parentA.return;
|
167
|
+
if (null !== b) {
|
168
|
+
a = b;
|
169
|
+
continue;
|
170
|
+
}
|
171
|
+
break;
|
172
|
+
}
|
173
|
+
if (parentA.child === parentB.child) {
|
174
|
+
for (parentB = parentA.child; parentB; ) {
|
175
|
+
if (parentB === a) return assertIsMounted(parentA), fiber;
|
176
|
+
if (parentB === b) return assertIsMounted(parentA), alternate;
|
177
|
+
parentB = parentB.sibling;
|
178
|
+
}
|
179
|
+
throw Error("Unable to find node on an unmounted component.");
|
180
|
+
}
|
181
|
+
if (a.return !== b.return) (a = parentA), (b = parentB);
|
182
|
+
else {
|
183
|
+
for (var didFindChild = !1, _child = parentA.child; _child; ) {
|
184
|
+
if (_child === a) {
|
185
|
+
didFindChild = !0;
|
186
|
+
a = parentA;
|
187
|
+
b = parentB;
|
188
|
+
break;
|
189
|
+
}
|
190
|
+
if (_child === b) {
|
191
|
+
didFindChild = !0;
|
192
|
+
b = parentA;
|
193
|
+
a = parentB;
|
194
|
+
break;
|
195
|
+
}
|
196
|
+
_child = _child.sibling;
|
197
|
+
}
|
198
|
+
if (!didFindChild) {
|
199
|
+
for (_child = parentB.child; _child; ) {
|
200
|
+
if (_child === a) {
|
201
|
+
didFindChild = !0;
|
202
|
+
a = parentB;
|
203
|
+
b = parentA;
|
204
|
+
break;
|
205
|
+
}
|
206
|
+
if (_child === b) {
|
207
|
+
didFindChild = !0;
|
208
|
+
b = parentB;
|
209
|
+
a = parentA;
|
210
|
+
break;
|
211
|
+
}
|
212
|
+
_child = _child.sibling;
|
213
|
+
}
|
214
|
+
if (!didFindChild)
|
215
|
+
throw Error(
|
216
|
+
"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."
|
217
|
+
);
|
218
|
+
}
|
219
|
+
}
|
220
|
+
if (a.alternate !== b)
|
221
|
+
throw Error(
|
222
|
+
"Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."
|
223
|
+
);
|
224
|
+
}
|
225
|
+
if (3 !== a.tag)
|
226
|
+
throw Error("Unable to find node on an unmounted component.");
|
227
|
+
return a.stateNode.current === a ? fiber : alternate;
|
228
|
+
}
|
229
|
+
function findCurrentHostFiberImpl(node) {
|
230
|
+
var tag = node.tag;
|
231
|
+
if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node;
|
232
|
+
for (node = node.child; null !== node; ) {
|
233
|
+
tag = findCurrentHostFiberImpl(node);
|
234
|
+
if (null !== tag) return tag;
|
235
|
+
node = node.sibling;
|
236
|
+
}
|
237
|
+
return null;
|
238
|
+
}
|
125
239
|
function getIteratorFn(maybeIterable) {
|
126
240
|
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
127
241
|
return null;
|
@@ -257,536 +371,132 @@
|
|
257
371
|
}
|
258
372
|
return null;
|
259
373
|
}
|
260
|
-
function
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
prevGroup = console.group;
|
268
|
-
prevGroupCollapsed = console.groupCollapsed;
|
269
|
-
prevGroupEnd = console.groupEnd;
|
270
|
-
var props = {
|
271
|
-
configurable: !0,
|
272
|
-
enumerable: !0,
|
273
|
-
value: disabledLog,
|
274
|
-
writable: !0
|
275
|
-
};
|
276
|
-
Object.defineProperties(console, {
|
277
|
-
info: props,
|
278
|
-
log: props,
|
279
|
-
warn: props,
|
280
|
-
error: props,
|
281
|
-
group: props,
|
282
|
-
groupCollapsed: props,
|
283
|
-
groupEnd: props
|
284
|
-
});
|
285
|
-
}
|
286
|
-
disabledDepth++;
|
374
|
+
function resolveDispatcher() {
|
375
|
+
var dispatcher = ReactSharedInternals.H;
|
376
|
+
null === dispatcher &&
|
377
|
+
console.error(
|
378
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
379
|
+
);
|
380
|
+
return dispatcher;
|
287
381
|
}
|
288
|
-
function
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
0
|
382
|
+
function createCursor(defaultValue) {
|
383
|
+
return { current: defaultValue };
|
384
|
+
}
|
385
|
+
function pop(cursor, fiber) {
|
386
|
+
0 > index$jscomp$0
|
387
|
+
? console.error("Unexpected pop.")
|
388
|
+
: (fiber !== fiberStack[index$jscomp$0] &&
|
389
|
+
console.error("Unexpected Fiber popped."),
|
390
|
+
(cursor.current = valueStack[index$jscomp$0]),
|
391
|
+
(valueStack[index$jscomp$0] = null),
|
392
|
+
(fiberStack[index$jscomp$0] = null),
|
393
|
+
index$jscomp$0--);
|
394
|
+
}
|
395
|
+
function push(cursor, value, fiber) {
|
396
|
+
index$jscomp$0++;
|
397
|
+
valueStack[index$jscomp$0] = cursor.current;
|
398
|
+
fiberStack[index$jscomp$0] = fiber;
|
399
|
+
cursor.current = value;
|
400
|
+
}
|
401
|
+
function requiredContext(c) {
|
402
|
+
null === c &&
|
303
403
|
console.error(
|
304
|
-
"
|
404
|
+
"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."
|
305
405
|
);
|
406
|
+
return c;
|
306
407
|
}
|
307
|
-
function
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
408
|
+
function pushHostContainer(fiber, nextRootInstance) {
|
409
|
+
push(rootInstanceStackCursor, nextRootInstance, fiber);
|
410
|
+
push(contextFiberStackCursor, fiber, fiber);
|
411
|
+
push(contextStackCursor, null, fiber);
|
412
|
+
var nextRootContext = nextRootInstance.nodeType;
|
413
|
+
switch (nextRootContext) {
|
414
|
+
case 9:
|
415
|
+
case 11:
|
416
|
+
nextRootContext = 9 === nextRootContext ? "#document" : "#fragment";
|
417
|
+
nextRootInstance = (nextRootInstance =
|
418
|
+
nextRootInstance.documentElement)
|
419
|
+
? (nextRootInstance = nextRootInstance.namespaceURI)
|
420
|
+
? getOwnHostContext(nextRootInstance)
|
421
|
+
: HostContextNamespaceNone
|
422
|
+
: HostContextNamespaceNone;
|
423
|
+
break;
|
424
|
+
default:
|
425
|
+
if (
|
426
|
+
((nextRootInstance =
|
427
|
+
8 === nextRootContext
|
428
|
+
? nextRootInstance.parentNode
|
429
|
+
: nextRootInstance),
|
430
|
+
(nextRootContext = nextRootInstance.tagName),
|
431
|
+
(nextRootInstance = nextRootInstance.namespaceURI))
|
432
|
+
)
|
433
|
+
(nextRootInstance = getOwnHostContext(nextRootInstance)),
|
434
|
+
(nextRootInstance = getChildHostContextProd(
|
435
|
+
nextRootInstance,
|
436
|
+
nextRootContext
|
437
|
+
));
|
438
|
+
else
|
439
|
+
switch (nextRootContext) {
|
440
|
+
case "svg":
|
441
|
+
nextRootInstance = HostContextNamespaceSvg;
|
442
|
+
break;
|
443
|
+
case "math":
|
444
|
+
nextRootInstance = HostContextNamespaceMath;
|
445
|
+
break;
|
446
|
+
default:
|
447
|
+
nextRootInstance = HostContextNamespaceNone;
|
448
|
+
}
|
449
|
+
}
|
450
|
+
nextRootContext = nextRootContext.toLowerCase();
|
451
|
+
nextRootContext = updatedAncestorInfoDev(null, nextRootContext);
|
452
|
+
nextRootContext = {
|
453
|
+
context: nextRootInstance,
|
454
|
+
ancestorInfo: nextRootContext
|
455
|
+
};
|
456
|
+
pop(contextStackCursor, fiber);
|
457
|
+
push(contextStackCursor, nextRootContext, fiber);
|
322
458
|
}
|
323
|
-
function
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
reentry = !0;
|
328
|
-
frame = Error.prepareStackTrace;
|
329
|
-
Error.prepareStackTrace = void 0;
|
330
|
-
var previousDispatcher = null;
|
331
|
-
previousDispatcher = ReactSharedInternals.H;
|
332
|
-
ReactSharedInternals.H = null;
|
333
|
-
disableLogs();
|
334
|
-
try {
|
335
|
-
var RunInRootFrame = {
|
336
|
-
DetermineComponentFrameRoot: function () {
|
337
|
-
try {
|
338
|
-
if (construct) {
|
339
|
-
var Fake = function () {
|
340
|
-
throw Error();
|
341
|
-
};
|
342
|
-
Object.defineProperty(Fake.prototype, "props", {
|
343
|
-
set: function () {
|
344
|
-
throw Error();
|
345
|
-
}
|
346
|
-
});
|
347
|
-
if ("object" === typeof Reflect && Reflect.construct) {
|
348
|
-
try {
|
349
|
-
Reflect.construct(Fake, []);
|
350
|
-
} catch (x) {
|
351
|
-
var control = x;
|
352
|
-
}
|
353
|
-
Reflect.construct(fn, [], Fake);
|
354
|
-
} else {
|
355
|
-
try {
|
356
|
-
Fake.call();
|
357
|
-
} catch (x$0) {
|
358
|
-
control = x$0;
|
359
|
-
}
|
360
|
-
fn.call(Fake.prototype);
|
361
|
-
}
|
362
|
-
} else {
|
363
|
-
try {
|
364
|
-
throw Error();
|
365
|
-
} catch (x$1) {
|
366
|
-
control = x$1;
|
367
|
-
}
|
368
|
-
(Fake = fn()) &&
|
369
|
-
"function" === typeof Fake.catch &&
|
370
|
-
Fake.catch(function () {});
|
371
|
-
}
|
372
|
-
} catch (sample) {
|
373
|
-
if (sample && control && "string" === typeof sample.stack)
|
374
|
-
return [sample.stack, control.stack];
|
375
|
-
}
|
376
|
-
return [null, null];
|
377
|
-
}
|
378
|
-
};
|
379
|
-
RunInRootFrame.DetermineComponentFrameRoot.displayName =
|
380
|
-
"DetermineComponentFrameRoot";
|
381
|
-
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
382
|
-
RunInRootFrame.DetermineComponentFrameRoot,
|
383
|
-
"name"
|
384
|
-
);
|
385
|
-
namePropDescriptor &&
|
386
|
-
namePropDescriptor.configurable &&
|
387
|
-
Object.defineProperty(
|
388
|
-
RunInRootFrame.DetermineComponentFrameRoot,
|
389
|
-
"name",
|
390
|
-
{ value: "DetermineComponentFrameRoot" }
|
391
|
-
);
|
392
|
-
var _RunInRootFrame$Deter =
|
393
|
-
RunInRootFrame.DetermineComponentFrameRoot(),
|
394
|
-
sampleStack = _RunInRootFrame$Deter[0],
|
395
|
-
controlStack = _RunInRootFrame$Deter[1];
|
396
|
-
if (sampleStack && controlStack) {
|
397
|
-
var sampleLines = sampleStack.split("\n"),
|
398
|
-
controlLines = controlStack.split("\n");
|
399
|
-
for (
|
400
|
-
_RunInRootFrame$Deter = namePropDescriptor = 0;
|
401
|
-
namePropDescriptor < sampleLines.length &&
|
402
|
-
!sampleLines[namePropDescriptor].includes(
|
403
|
-
"DetermineComponentFrameRoot"
|
404
|
-
);
|
405
|
-
|
406
|
-
)
|
407
|
-
namePropDescriptor++;
|
408
|
-
for (
|
409
|
-
;
|
410
|
-
_RunInRootFrame$Deter < controlLines.length &&
|
411
|
-
!controlLines[_RunInRootFrame$Deter].includes(
|
412
|
-
"DetermineComponentFrameRoot"
|
413
|
-
);
|
414
|
-
|
415
|
-
)
|
416
|
-
_RunInRootFrame$Deter++;
|
417
|
-
if (
|
418
|
-
namePropDescriptor === sampleLines.length ||
|
419
|
-
_RunInRootFrame$Deter === controlLines.length
|
420
|
-
)
|
421
|
-
for (
|
422
|
-
namePropDescriptor = sampleLines.length - 1,
|
423
|
-
_RunInRootFrame$Deter = controlLines.length - 1;
|
424
|
-
1 <= namePropDescriptor &&
|
425
|
-
0 <= _RunInRootFrame$Deter &&
|
426
|
-
sampleLines[namePropDescriptor] !==
|
427
|
-
controlLines[_RunInRootFrame$Deter];
|
428
|
-
|
429
|
-
)
|
430
|
-
_RunInRootFrame$Deter--;
|
431
|
-
for (
|
432
|
-
;
|
433
|
-
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
|
434
|
-
namePropDescriptor--, _RunInRootFrame$Deter--
|
435
|
-
)
|
436
|
-
if (
|
437
|
-
sampleLines[namePropDescriptor] !==
|
438
|
-
controlLines[_RunInRootFrame$Deter]
|
439
|
-
) {
|
440
|
-
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
|
441
|
-
do
|
442
|
-
if (
|
443
|
-
(namePropDescriptor--,
|
444
|
-
_RunInRootFrame$Deter--,
|
445
|
-
0 > _RunInRootFrame$Deter ||
|
446
|
-
sampleLines[namePropDescriptor] !==
|
447
|
-
controlLines[_RunInRootFrame$Deter])
|
448
|
-
) {
|
449
|
-
var _frame =
|
450
|
-
"\n" +
|
451
|
-
sampleLines[namePropDescriptor].replace(
|
452
|
-
" at new ",
|
453
|
-
" at "
|
454
|
-
);
|
455
|
-
fn.displayName &&
|
456
|
-
_frame.includes("<anonymous>") &&
|
457
|
-
(_frame = _frame.replace("<anonymous>", fn.displayName));
|
458
|
-
"function" === typeof fn &&
|
459
|
-
componentFrameCache.set(fn, _frame);
|
460
|
-
return _frame;
|
461
|
-
}
|
462
|
-
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
|
463
|
-
}
|
464
|
-
break;
|
465
|
-
}
|
466
|
-
}
|
467
|
-
} finally {
|
468
|
-
(reentry = !1),
|
469
|
-
(ReactSharedInternals.H = previousDispatcher),
|
470
|
-
reenableLogs(),
|
471
|
-
(Error.prepareStackTrace = frame);
|
472
|
-
}
|
473
|
-
sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
|
474
|
-
? describeBuiltInComponentFrame(sampleLines)
|
475
|
-
: "";
|
476
|
-
"function" === typeof fn && componentFrameCache.set(fn, sampleLines);
|
477
|
-
return sampleLines;
|
459
|
+
function popHostContainer(fiber) {
|
460
|
+
pop(contextStackCursor, fiber);
|
461
|
+
pop(contextFiberStackCursor, fiber);
|
462
|
+
pop(rootInstanceStackCursor, fiber);
|
478
463
|
}
|
479
|
-
function
|
480
|
-
|
481
|
-
case 26:
|
482
|
-
case 27:
|
483
|
-
case 5:
|
484
|
-
return describeBuiltInComponentFrame(fiber.type);
|
485
|
-
case 16:
|
486
|
-
return describeBuiltInComponentFrame("Lazy");
|
487
|
-
case 13:
|
488
|
-
return describeBuiltInComponentFrame("Suspense");
|
489
|
-
case 19:
|
490
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
491
|
-
case 0:
|
492
|
-
case 15:
|
493
|
-
return describeNativeComponentFrame(fiber.type, !1);
|
494
|
-
case 11:
|
495
|
-
return describeNativeComponentFrame(fiber.type.render, !1);
|
496
|
-
case 1:
|
497
|
-
return describeNativeComponentFrame(fiber.type, !0);
|
498
|
-
default:
|
499
|
-
return "";
|
500
|
-
}
|
464
|
+
function getHostContext() {
|
465
|
+
return requiredContext(contextStackCursor.current);
|
501
466
|
}
|
502
|
-
function
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
env = entry.env;
|
514
|
-
var JSCompiler_inline_result = describeBuiltInComponentFrame(
|
515
|
-
entry.name + (env ? " [" + env + "]" : "")
|
516
|
-
);
|
517
|
-
info = JSCompiler_temp_const + JSCompiler_inline_result;
|
518
|
-
}
|
519
|
-
}
|
520
|
-
workInProgress = workInProgress.return;
|
521
|
-
} while (workInProgress);
|
522
|
-
return info;
|
523
|
-
} catch (x) {
|
524
|
-
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
525
|
-
}
|
467
|
+
function pushHostContext(fiber) {
|
468
|
+
null !== fiber.memoizedState &&
|
469
|
+
push(hostTransitionProviderCursor, fiber, fiber);
|
470
|
+
var context = requiredContext(contextStackCursor.current);
|
471
|
+
var type = fiber.type;
|
472
|
+
var nextContext = getChildHostContextProd(context.context, type);
|
473
|
+
type = updatedAncestorInfoDev(context.ancestorInfo, type);
|
474
|
+
nextContext = { context: nextContext, ancestorInfo: type };
|
475
|
+
context !== nextContext &&
|
476
|
+
(push(contextFiberStackCursor, fiber, fiber),
|
477
|
+
push(contextStackCursor, nextContext, fiber));
|
526
478
|
}
|
527
|
-
function
|
528
|
-
|
529
|
-
|
530
|
-
|
479
|
+
function popHostContext(fiber) {
|
480
|
+
contextFiberStackCursor.current === fiber &&
|
481
|
+
(pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber));
|
482
|
+
hostTransitionProviderCursor.current === fiber &&
|
483
|
+
(pop(hostTransitionProviderCursor, fiber),
|
484
|
+
(HostTransitionContext._currentValue = NotPendingTransition));
|
531
485
|
}
|
532
|
-
function
|
533
|
-
return
|
486
|
+
function typeName(value) {
|
487
|
+
return (
|
488
|
+
("function" === typeof Symbol &&
|
489
|
+
Symbol.toStringTag &&
|
490
|
+
value[Symbol.toStringTag]) ||
|
491
|
+
value.constructor.name ||
|
492
|
+
"Object"
|
493
|
+
);
|
534
494
|
}
|
535
|
-
function
|
536
|
-
var previousFiber = current;
|
537
|
-
ReactSharedInternals.getCurrentStack =
|
538
|
-
null === fiber ? null : getCurrentFiberStackInDev;
|
539
|
-
isRendering = !1;
|
540
|
-
current = fiber;
|
495
|
+
function willCoercionThrow(value) {
|
541
496
|
try {
|
542
|
-
return
|
543
|
-
}
|
544
|
-
|
545
|
-
}
|
546
|
-
throw Error(
|
547
|
-
"runWithFiberInDEV should never be called in production. This is a bug in React."
|
548
|
-
);
|
549
|
-
}
|
550
|
-
function getNearestMountedFiber(fiber) {
|
551
|
-
var node = fiber,
|
552
|
-
nearestMounted = fiber;
|
553
|
-
if (fiber.alternate) for (; node.return; ) node = node.return;
|
554
|
-
else {
|
555
|
-
fiber = node;
|
556
|
-
do
|
557
|
-
(node = fiber),
|
558
|
-
0 !== (node.flags & 4098) && (nearestMounted = node.return),
|
559
|
-
(fiber = node.return);
|
560
|
-
while (fiber);
|
561
|
-
}
|
562
|
-
return 3 === node.tag ? nearestMounted : null;
|
563
|
-
}
|
564
|
-
function getSuspenseInstanceFromFiber(fiber) {
|
565
|
-
if (13 === fiber.tag) {
|
566
|
-
var suspenseState = fiber.memoizedState;
|
567
|
-
null === suspenseState &&
|
568
|
-
((fiber = fiber.alternate),
|
569
|
-
null !== fiber && (suspenseState = fiber.memoizedState));
|
570
|
-
if (null !== suspenseState) return suspenseState.dehydrated;
|
571
|
-
}
|
572
|
-
return null;
|
573
|
-
}
|
574
|
-
function assertIsMounted(fiber) {
|
575
|
-
if (getNearestMountedFiber(fiber) !== fiber)
|
576
|
-
throw Error("Unable to find node on an unmounted component.");
|
577
|
-
}
|
578
|
-
function findCurrentFiberUsingSlowPath(fiber) {
|
579
|
-
var alternate = fiber.alternate;
|
580
|
-
if (!alternate) {
|
581
|
-
alternate = getNearestMountedFiber(fiber);
|
582
|
-
if (null === alternate)
|
583
|
-
throw Error("Unable to find node on an unmounted component.");
|
584
|
-
return alternate !== fiber ? null : fiber;
|
585
|
-
}
|
586
|
-
for (var a = fiber, b = alternate; ; ) {
|
587
|
-
var parentA = a.return;
|
588
|
-
if (null === parentA) break;
|
589
|
-
var parentB = parentA.alternate;
|
590
|
-
if (null === parentB) {
|
591
|
-
b = parentA.return;
|
592
|
-
if (null !== b) {
|
593
|
-
a = b;
|
594
|
-
continue;
|
595
|
-
}
|
596
|
-
break;
|
597
|
-
}
|
598
|
-
if (parentA.child === parentB.child) {
|
599
|
-
for (parentB = parentA.child; parentB; ) {
|
600
|
-
if (parentB === a) return assertIsMounted(parentA), fiber;
|
601
|
-
if (parentB === b) return assertIsMounted(parentA), alternate;
|
602
|
-
parentB = parentB.sibling;
|
603
|
-
}
|
604
|
-
throw Error("Unable to find node on an unmounted component.");
|
605
|
-
}
|
606
|
-
if (a.return !== b.return) (a = parentA), (b = parentB);
|
607
|
-
else {
|
608
|
-
for (var didFindChild = !1, _child = parentA.child; _child; ) {
|
609
|
-
if (_child === a) {
|
610
|
-
didFindChild = !0;
|
611
|
-
a = parentA;
|
612
|
-
b = parentB;
|
613
|
-
break;
|
614
|
-
}
|
615
|
-
if (_child === b) {
|
616
|
-
didFindChild = !0;
|
617
|
-
b = parentA;
|
618
|
-
a = parentB;
|
619
|
-
break;
|
620
|
-
}
|
621
|
-
_child = _child.sibling;
|
622
|
-
}
|
623
|
-
if (!didFindChild) {
|
624
|
-
for (_child = parentB.child; _child; ) {
|
625
|
-
if (_child === a) {
|
626
|
-
didFindChild = !0;
|
627
|
-
a = parentB;
|
628
|
-
b = parentA;
|
629
|
-
break;
|
630
|
-
}
|
631
|
-
if (_child === b) {
|
632
|
-
didFindChild = !0;
|
633
|
-
b = parentB;
|
634
|
-
a = parentA;
|
635
|
-
break;
|
636
|
-
}
|
637
|
-
_child = _child.sibling;
|
638
|
-
}
|
639
|
-
if (!didFindChild)
|
640
|
-
throw Error(
|
641
|
-
"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."
|
642
|
-
);
|
643
|
-
}
|
644
|
-
}
|
645
|
-
if (a.alternate !== b)
|
646
|
-
throw Error(
|
647
|
-
"Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."
|
648
|
-
);
|
649
|
-
}
|
650
|
-
if (3 !== a.tag)
|
651
|
-
throw Error("Unable to find node on an unmounted component.");
|
652
|
-
return a.stateNode.current === a ? fiber : alternate;
|
653
|
-
}
|
654
|
-
function findCurrentHostFiberImpl(node) {
|
655
|
-
var tag = node.tag;
|
656
|
-
if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node;
|
657
|
-
for (node = node.child; null !== node; ) {
|
658
|
-
tag = findCurrentHostFiberImpl(node);
|
659
|
-
if (null !== tag) return tag;
|
660
|
-
node = node.sibling;
|
661
|
-
}
|
662
|
-
return null;
|
663
|
-
}
|
664
|
-
function resolveDispatcher() {
|
665
|
-
var dispatcher = ReactSharedInternals.H;
|
666
|
-
null === dispatcher &&
|
667
|
-
console.error(
|
668
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
669
|
-
);
|
670
|
-
return dispatcher;
|
671
|
-
}
|
672
|
-
function createCursor(defaultValue) {
|
673
|
-
return { current: defaultValue };
|
674
|
-
}
|
675
|
-
function pop(cursor, fiber) {
|
676
|
-
0 > index$jscomp$0
|
677
|
-
? console.error("Unexpected pop.")
|
678
|
-
: (fiber !== fiberStack[index$jscomp$0] &&
|
679
|
-
console.error("Unexpected Fiber popped."),
|
680
|
-
(cursor.current = valueStack[index$jscomp$0]),
|
681
|
-
(valueStack[index$jscomp$0] = null),
|
682
|
-
(fiberStack[index$jscomp$0] = null),
|
683
|
-
index$jscomp$0--);
|
684
|
-
}
|
685
|
-
function push(cursor, value, fiber) {
|
686
|
-
index$jscomp$0++;
|
687
|
-
valueStack[index$jscomp$0] = cursor.current;
|
688
|
-
fiberStack[index$jscomp$0] = fiber;
|
689
|
-
cursor.current = value;
|
690
|
-
}
|
691
|
-
function requiredContext(c) {
|
692
|
-
null === c &&
|
693
|
-
console.error(
|
694
|
-
"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."
|
695
|
-
);
|
696
|
-
return c;
|
697
|
-
}
|
698
|
-
function pushHostContainer(fiber, nextRootInstance) {
|
699
|
-
push(rootInstanceStackCursor, nextRootInstance, fiber);
|
700
|
-
push(contextFiberStackCursor, fiber, fiber);
|
701
|
-
push(contextStackCursor, null, fiber);
|
702
|
-
var nextRootContext = nextRootInstance.nodeType;
|
703
|
-
switch (nextRootContext) {
|
704
|
-
case 9:
|
705
|
-
case 11:
|
706
|
-
nextRootContext = 9 === nextRootContext ? "#document" : "#fragment";
|
707
|
-
nextRootInstance = (nextRootInstance =
|
708
|
-
nextRootInstance.documentElement)
|
709
|
-
? (nextRootInstance = nextRootInstance.namespaceURI)
|
710
|
-
? getOwnHostContext(nextRootInstance)
|
711
|
-
: HostContextNamespaceNone
|
712
|
-
: HostContextNamespaceNone;
|
713
|
-
break;
|
714
|
-
default:
|
715
|
-
if (
|
716
|
-
((nextRootInstance =
|
717
|
-
8 === nextRootContext
|
718
|
-
? nextRootInstance.parentNode
|
719
|
-
: nextRootInstance),
|
720
|
-
(nextRootContext = nextRootInstance.tagName),
|
721
|
-
(nextRootInstance = nextRootInstance.namespaceURI))
|
722
|
-
)
|
723
|
-
(nextRootInstance = getOwnHostContext(nextRootInstance)),
|
724
|
-
(nextRootInstance = getChildHostContextProd(
|
725
|
-
nextRootInstance,
|
726
|
-
nextRootContext
|
727
|
-
));
|
728
|
-
else
|
729
|
-
switch (nextRootContext) {
|
730
|
-
case "svg":
|
731
|
-
nextRootInstance = HostContextNamespaceSvg;
|
732
|
-
break;
|
733
|
-
case "math":
|
734
|
-
nextRootInstance = HostContextNamespaceMath;
|
735
|
-
break;
|
736
|
-
default:
|
737
|
-
nextRootInstance = HostContextNamespaceNone;
|
738
|
-
}
|
739
|
-
}
|
740
|
-
nextRootContext = nextRootContext.toLowerCase();
|
741
|
-
nextRootContext = updatedAncestorInfoDev(null, nextRootContext);
|
742
|
-
nextRootContext = {
|
743
|
-
context: nextRootInstance,
|
744
|
-
ancestorInfo: nextRootContext
|
745
|
-
};
|
746
|
-
pop(contextStackCursor, fiber);
|
747
|
-
push(contextStackCursor, nextRootContext, fiber);
|
748
|
-
}
|
749
|
-
function popHostContainer(fiber) {
|
750
|
-
pop(contextStackCursor, fiber);
|
751
|
-
pop(contextFiberStackCursor, fiber);
|
752
|
-
pop(rootInstanceStackCursor, fiber);
|
753
|
-
}
|
754
|
-
function getHostContext() {
|
755
|
-
return requiredContext(contextStackCursor.current);
|
756
|
-
}
|
757
|
-
function pushHostContext(fiber) {
|
758
|
-
null !== fiber.memoizedState &&
|
759
|
-
push(hostTransitionProviderCursor, fiber, fiber);
|
760
|
-
var context = requiredContext(contextStackCursor.current);
|
761
|
-
var type = fiber.type;
|
762
|
-
var nextContext = getChildHostContextProd(context.context, type);
|
763
|
-
type = updatedAncestorInfoDev(context.ancestorInfo, type);
|
764
|
-
nextContext = { context: nextContext, ancestorInfo: type };
|
765
|
-
context !== nextContext &&
|
766
|
-
(push(contextFiberStackCursor, fiber, fiber),
|
767
|
-
push(contextStackCursor, nextContext, fiber));
|
768
|
-
}
|
769
|
-
function popHostContext(fiber) {
|
770
|
-
contextFiberStackCursor.current === fiber &&
|
771
|
-
(pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber));
|
772
|
-
hostTransitionProviderCursor.current === fiber &&
|
773
|
-
(pop(hostTransitionProviderCursor, fiber),
|
774
|
-
(HostTransitionContext._currentValue = NotPendingTransition));
|
775
|
-
}
|
776
|
-
function typeName(value) {
|
777
|
-
return (
|
778
|
-
("function" === typeof Symbol &&
|
779
|
-
Symbol.toStringTag &&
|
780
|
-
value[Symbol.toStringTag]) ||
|
781
|
-
value.constructor.name ||
|
782
|
-
"Object"
|
783
|
-
);
|
784
|
-
}
|
785
|
-
function willCoercionThrow(value) {
|
786
|
-
try {
|
787
|
-
return testStringCoercion(value), !1;
|
788
|
-
} catch (e) {
|
789
|
-
return !0;
|
497
|
+
return testStringCoercion(value), !1;
|
498
|
+
} catch (e) {
|
499
|
+
return !0;
|
790
500
|
}
|
791
501
|
}
|
792
502
|
function testStringCoercion(value) {
|
@@ -1391,62 +1101,352 @@
|
|
1391
1101
|
}
|
1392
1102
|
return void 0 === expected ? void 0 : null;
|
1393
1103
|
}
|
1394
|
-
node = node.getAttribute(name);
|
1395
|
-
if ("" === node && !0 === expected) return !0;
|
1396
|
-
checkAttributeStringCoercion(expected, name);
|
1397
|
-
return node === "" + expected ? expected : node;
|
1104
|
+
node = node.getAttribute(name);
|
1105
|
+
if ("" === node && !0 === expected) return !0;
|
1106
|
+
checkAttributeStringCoercion(expected, name);
|
1107
|
+
return node === "" + expected ? expected : node;
|
1108
|
+
}
|
1109
|
+
}
|
1110
|
+
function setValueForAttribute(node, name, value) {
|
1111
|
+
if (isAttributeNameSafe(name))
|
1112
|
+
if (null === value) node.removeAttribute(name);
|
1113
|
+
else {
|
1114
|
+
switch (typeof value) {
|
1115
|
+
case "undefined":
|
1116
|
+
case "function":
|
1117
|
+
case "symbol":
|
1118
|
+
node.removeAttribute(name);
|
1119
|
+
return;
|
1120
|
+
case "boolean":
|
1121
|
+
var prefix = name.toLowerCase().slice(0, 5);
|
1122
|
+
if ("data-" !== prefix && "aria-" !== prefix) {
|
1123
|
+
node.removeAttribute(name);
|
1124
|
+
return;
|
1125
|
+
}
|
1126
|
+
}
|
1127
|
+
checkAttributeStringCoercion(value, name);
|
1128
|
+
node.setAttribute(name, "" + value);
|
1129
|
+
}
|
1130
|
+
}
|
1131
|
+
function setValueForKnownAttribute(node, name, value) {
|
1132
|
+
if (null === value) node.removeAttribute(name);
|
1133
|
+
else {
|
1134
|
+
switch (typeof value) {
|
1135
|
+
case "undefined":
|
1136
|
+
case "function":
|
1137
|
+
case "symbol":
|
1138
|
+
case "boolean":
|
1139
|
+
node.removeAttribute(name);
|
1140
|
+
return;
|
1141
|
+
}
|
1142
|
+
checkAttributeStringCoercion(value, name);
|
1143
|
+
node.setAttribute(name, "" + value);
|
1144
|
+
}
|
1145
|
+
}
|
1146
|
+
function setValueForNamespacedAttribute(node, namespace, name, value) {
|
1147
|
+
if (null === value) node.removeAttribute(name);
|
1148
|
+
else {
|
1149
|
+
switch (typeof value) {
|
1150
|
+
case "undefined":
|
1151
|
+
case "function":
|
1152
|
+
case "symbol":
|
1153
|
+
case "boolean":
|
1154
|
+
node.removeAttribute(name);
|
1155
|
+
return;
|
1156
|
+
}
|
1157
|
+
checkAttributeStringCoercion(value, name);
|
1158
|
+
node.setAttributeNS(namespace, name, "" + value);
|
1159
|
+
}
|
1160
|
+
}
|
1161
|
+
function disabledLog() {}
|
1162
|
+
function disableLogs() {
|
1163
|
+
if (0 === disabledDepth) {
|
1164
|
+
prevLog = console.log;
|
1165
|
+
prevInfo = console.info;
|
1166
|
+
prevWarn = console.warn;
|
1167
|
+
prevError = console.error;
|
1168
|
+
prevGroup = console.group;
|
1169
|
+
prevGroupCollapsed = console.groupCollapsed;
|
1170
|
+
prevGroupEnd = console.groupEnd;
|
1171
|
+
var props = {
|
1172
|
+
configurable: !0,
|
1173
|
+
enumerable: !0,
|
1174
|
+
value: disabledLog,
|
1175
|
+
writable: !0
|
1176
|
+
};
|
1177
|
+
Object.defineProperties(console, {
|
1178
|
+
info: props,
|
1179
|
+
log: props,
|
1180
|
+
warn: props,
|
1181
|
+
error: props,
|
1182
|
+
group: props,
|
1183
|
+
groupCollapsed: props,
|
1184
|
+
groupEnd: props
|
1185
|
+
});
|
1186
|
+
}
|
1187
|
+
disabledDepth++;
|
1188
|
+
}
|
1189
|
+
function reenableLogs() {
|
1190
|
+
disabledDepth--;
|
1191
|
+
if (0 === disabledDepth) {
|
1192
|
+
var props = { configurable: !0, enumerable: !0, writable: !0 };
|
1193
|
+
Object.defineProperties(console, {
|
1194
|
+
log: assign({}, props, { value: prevLog }),
|
1195
|
+
info: assign({}, props, { value: prevInfo }),
|
1196
|
+
warn: assign({}, props, { value: prevWarn }),
|
1197
|
+
error: assign({}, props, { value: prevError }),
|
1198
|
+
group: assign({}, props, { value: prevGroup }),
|
1199
|
+
groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
|
1200
|
+
groupEnd: assign({}, props, { value: prevGroupEnd })
|
1201
|
+
});
|
1202
|
+
}
|
1203
|
+
0 > disabledDepth &&
|
1204
|
+
console.error(
|
1205
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
1206
|
+
);
|
1207
|
+
}
|
1208
|
+
function describeBuiltInComponentFrame(name) {
|
1209
|
+
if (void 0 === prefix)
|
1210
|
+
try {
|
1211
|
+
throw Error();
|
1212
|
+
} catch (x) {
|
1213
|
+
var match = x.stack.trim().match(/\n( *(at )?)/);
|
1214
|
+
prefix = (match && match[1]) || "";
|
1215
|
+
suffix =
|
1216
|
+
-1 < x.stack.indexOf("\n at")
|
1217
|
+
? " (<anonymous>)"
|
1218
|
+
: -1 < x.stack.indexOf("@")
|
1219
|
+
? "@unknown:0:0"
|
1220
|
+
: "";
|
1221
|
+
}
|
1222
|
+
return "\n" + prefix + name + suffix;
|
1223
|
+
}
|
1224
|
+
function describeNativeComponentFrame(fn, construct) {
|
1225
|
+
if (!fn || reentry) return "";
|
1226
|
+
var frame = componentFrameCache.get(fn);
|
1227
|
+
if (void 0 !== frame) return frame;
|
1228
|
+
reentry = !0;
|
1229
|
+
frame = Error.prepareStackTrace;
|
1230
|
+
Error.prepareStackTrace = void 0;
|
1231
|
+
var previousDispatcher = null;
|
1232
|
+
previousDispatcher = ReactSharedInternals.H;
|
1233
|
+
ReactSharedInternals.H = null;
|
1234
|
+
disableLogs();
|
1235
|
+
try {
|
1236
|
+
var RunInRootFrame = {
|
1237
|
+
DetermineComponentFrameRoot: function () {
|
1238
|
+
try {
|
1239
|
+
if (construct) {
|
1240
|
+
var Fake = function () {
|
1241
|
+
throw Error();
|
1242
|
+
};
|
1243
|
+
Object.defineProperty(Fake.prototype, "props", {
|
1244
|
+
set: function () {
|
1245
|
+
throw Error();
|
1246
|
+
}
|
1247
|
+
});
|
1248
|
+
if ("object" === typeof Reflect && Reflect.construct) {
|
1249
|
+
try {
|
1250
|
+
Reflect.construct(Fake, []);
|
1251
|
+
} catch (x) {
|
1252
|
+
var control = x;
|
1253
|
+
}
|
1254
|
+
Reflect.construct(fn, [], Fake);
|
1255
|
+
} else {
|
1256
|
+
try {
|
1257
|
+
Fake.call();
|
1258
|
+
} catch (x$0) {
|
1259
|
+
control = x$0;
|
1260
|
+
}
|
1261
|
+
fn.call(Fake.prototype);
|
1262
|
+
}
|
1263
|
+
} else {
|
1264
|
+
try {
|
1265
|
+
throw Error();
|
1266
|
+
} catch (x$1) {
|
1267
|
+
control = x$1;
|
1268
|
+
}
|
1269
|
+
(Fake = fn()) &&
|
1270
|
+
"function" === typeof Fake.catch &&
|
1271
|
+
Fake.catch(function () {});
|
1272
|
+
}
|
1273
|
+
} catch (sample) {
|
1274
|
+
if (sample && control && "string" === typeof sample.stack)
|
1275
|
+
return [sample.stack, control.stack];
|
1276
|
+
}
|
1277
|
+
return [null, null];
|
1278
|
+
}
|
1279
|
+
};
|
1280
|
+
RunInRootFrame.DetermineComponentFrameRoot.displayName =
|
1281
|
+
"DetermineComponentFrameRoot";
|
1282
|
+
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
1283
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
1284
|
+
"name"
|
1285
|
+
);
|
1286
|
+
namePropDescriptor &&
|
1287
|
+
namePropDescriptor.configurable &&
|
1288
|
+
Object.defineProperty(
|
1289
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
1290
|
+
"name",
|
1291
|
+
{ value: "DetermineComponentFrameRoot" }
|
1292
|
+
);
|
1293
|
+
var _RunInRootFrame$Deter =
|
1294
|
+
RunInRootFrame.DetermineComponentFrameRoot(),
|
1295
|
+
sampleStack = _RunInRootFrame$Deter[0],
|
1296
|
+
controlStack = _RunInRootFrame$Deter[1];
|
1297
|
+
if (sampleStack && controlStack) {
|
1298
|
+
var sampleLines = sampleStack.split("\n"),
|
1299
|
+
controlLines = controlStack.split("\n");
|
1300
|
+
for (
|
1301
|
+
_RunInRootFrame$Deter = namePropDescriptor = 0;
|
1302
|
+
namePropDescriptor < sampleLines.length &&
|
1303
|
+
!sampleLines[namePropDescriptor].includes(
|
1304
|
+
"DetermineComponentFrameRoot"
|
1305
|
+
);
|
1306
|
+
|
1307
|
+
)
|
1308
|
+
namePropDescriptor++;
|
1309
|
+
for (
|
1310
|
+
;
|
1311
|
+
_RunInRootFrame$Deter < controlLines.length &&
|
1312
|
+
!controlLines[_RunInRootFrame$Deter].includes(
|
1313
|
+
"DetermineComponentFrameRoot"
|
1314
|
+
);
|
1315
|
+
|
1316
|
+
)
|
1317
|
+
_RunInRootFrame$Deter++;
|
1318
|
+
if (
|
1319
|
+
namePropDescriptor === sampleLines.length ||
|
1320
|
+
_RunInRootFrame$Deter === controlLines.length
|
1321
|
+
)
|
1322
|
+
for (
|
1323
|
+
namePropDescriptor = sampleLines.length - 1,
|
1324
|
+
_RunInRootFrame$Deter = controlLines.length - 1;
|
1325
|
+
1 <= namePropDescriptor &&
|
1326
|
+
0 <= _RunInRootFrame$Deter &&
|
1327
|
+
sampleLines[namePropDescriptor] !==
|
1328
|
+
controlLines[_RunInRootFrame$Deter];
|
1329
|
+
|
1330
|
+
)
|
1331
|
+
_RunInRootFrame$Deter--;
|
1332
|
+
for (
|
1333
|
+
;
|
1334
|
+
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
|
1335
|
+
namePropDescriptor--, _RunInRootFrame$Deter--
|
1336
|
+
)
|
1337
|
+
if (
|
1338
|
+
sampleLines[namePropDescriptor] !==
|
1339
|
+
controlLines[_RunInRootFrame$Deter]
|
1340
|
+
) {
|
1341
|
+
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
|
1342
|
+
do
|
1343
|
+
if (
|
1344
|
+
(namePropDescriptor--,
|
1345
|
+
_RunInRootFrame$Deter--,
|
1346
|
+
0 > _RunInRootFrame$Deter ||
|
1347
|
+
sampleLines[namePropDescriptor] !==
|
1348
|
+
controlLines[_RunInRootFrame$Deter])
|
1349
|
+
) {
|
1350
|
+
var _frame =
|
1351
|
+
"\n" +
|
1352
|
+
sampleLines[namePropDescriptor].replace(
|
1353
|
+
" at new ",
|
1354
|
+
" at "
|
1355
|
+
);
|
1356
|
+
fn.displayName &&
|
1357
|
+
_frame.includes("<anonymous>") &&
|
1358
|
+
(_frame = _frame.replace("<anonymous>", fn.displayName));
|
1359
|
+
"function" === typeof fn &&
|
1360
|
+
componentFrameCache.set(fn, _frame);
|
1361
|
+
return _frame;
|
1362
|
+
}
|
1363
|
+
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
|
1364
|
+
}
|
1365
|
+
break;
|
1366
|
+
}
|
1367
|
+
}
|
1368
|
+
} finally {
|
1369
|
+
(reentry = !1),
|
1370
|
+
(ReactSharedInternals.H = previousDispatcher),
|
1371
|
+
reenableLogs(),
|
1372
|
+
(Error.prepareStackTrace = frame);
|
1398
1373
|
}
|
1374
|
+
sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
|
1375
|
+
? describeBuiltInComponentFrame(sampleLines)
|
1376
|
+
: "";
|
1377
|
+
"function" === typeof fn && componentFrameCache.set(fn, sampleLines);
|
1378
|
+
return sampleLines;
|
1399
1379
|
}
|
1400
|
-
function
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1380
|
+
function describeFiber(fiber) {
|
1381
|
+
switch (fiber.tag) {
|
1382
|
+
case 26:
|
1383
|
+
case 27:
|
1384
|
+
case 5:
|
1385
|
+
return describeBuiltInComponentFrame(fiber.type);
|
1386
|
+
case 16:
|
1387
|
+
return describeBuiltInComponentFrame("Lazy");
|
1388
|
+
case 13:
|
1389
|
+
return describeBuiltInComponentFrame("Suspense");
|
1390
|
+
case 19:
|
1391
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
1392
|
+
case 0:
|
1393
|
+
case 15:
|
1394
|
+
return describeNativeComponentFrame(fiber.type, !1);
|
1395
|
+
case 11:
|
1396
|
+
return describeNativeComponentFrame(fiber.type.render, !1);
|
1397
|
+
case 1:
|
1398
|
+
return describeNativeComponentFrame(fiber.type, !0);
|
1399
|
+
default:
|
1400
|
+
return "";
|
1401
|
+
}
|
1420
1402
|
}
|
1421
|
-
function
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1403
|
+
function getStackByFiberInDevAndProd(workInProgress) {
|
1404
|
+
try {
|
1405
|
+
var info = "";
|
1406
|
+
do {
|
1407
|
+
info += describeFiber(workInProgress);
|
1408
|
+
var debugInfo = workInProgress._debugInfo;
|
1409
|
+
if (debugInfo)
|
1410
|
+
for (var i = debugInfo.length - 1; 0 <= i; i--) {
|
1411
|
+
var entry = debugInfo[i];
|
1412
|
+
if ("string" === typeof entry.name) {
|
1413
|
+
var JSCompiler_temp_const = info,
|
1414
|
+
env = entry.env;
|
1415
|
+
var JSCompiler_inline_result = describeBuiltInComponentFrame(
|
1416
|
+
entry.name + (env ? " [" + env + "]" : "")
|
1417
|
+
);
|
1418
|
+
info = JSCompiler_temp_const + JSCompiler_inline_result;
|
1419
|
+
}
|
1420
|
+
}
|
1421
|
+
workInProgress = workInProgress.return;
|
1422
|
+
} while (workInProgress);
|
1423
|
+
return info;
|
1424
|
+
} catch (x) {
|
1425
|
+
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
1434
1426
|
}
|
1435
1427
|
}
|
1436
|
-
function
|
1437
|
-
if (null ===
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1428
|
+
function getCurrentFiberOwnerNameInDevOrNull() {
|
1429
|
+
if (null === current) return null;
|
1430
|
+
var owner = current._debugOwner;
|
1431
|
+
return null != owner ? getComponentNameFromOwner(owner) : null;
|
1432
|
+
}
|
1433
|
+
function getCurrentFiberStackInDev() {
|
1434
|
+
return null === current ? "" : getStackByFiberInDevAndProd(current);
|
1435
|
+
}
|
1436
|
+
function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) {
|
1437
|
+
var previousFiber = current;
|
1438
|
+
ReactSharedInternals.getCurrentStack =
|
1439
|
+
null === fiber ? null : getCurrentFiberStackInDev;
|
1440
|
+
isRendering = !1;
|
1441
|
+
current = fiber;
|
1442
|
+
try {
|
1443
|
+
return callback(arg0, arg1, arg2, arg3, arg4);
|
1444
|
+
} finally {
|
1445
|
+
current = previousFiber;
|
1449
1446
|
}
|
1447
|
+
throw Error(
|
1448
|
+
"runWithFiberInDEV should never be called in production. This is a bug in React."
|
1449
|
+
);
|
1450
1450
|
}
|
1451
1451
|
function getToStringValue(value) {
|
1452
1452
|
switch (typeof value) {
|
@@ -4484,146 +4484,23 @@
|
|
4484
4484
|
refCount: 0
|
4485
4485
|
};
|
4486
4486
|
}
|
4487
|
-
function retainCache(cache) {
|
4488
|
-
cache.controller.signal.aborted &&
|
4489
|
-
console.warn(
|
4490
|
-
"A cache instance was retained after it was already freed. This likely indicates a bug in React."
|
4491
|
-
);
|
4492
|
-
cache.refCount++;
|
4493
|
-
}
|
4494
|
-
function releaseCache(cache) {
|
4495
|
-
cache.refCount--;
|
4496
|
-
0 > cache.refCount &&
|
4497
|
-
console.warn(
|
4498
|
-
"A cache instance was released after it was already freed. This likely indicates a bug in React."
|
4499
|
-
);
|
4500
|
-
0 === cache.refCount &&
|
4501
|
-
scheduleCallback$2(NormalPriority, function () {
|
4502
|
-
cache.controller.abort();
|
4503
|
-
});
|
4504
|
-
}
|
4505
|
-
function warnOnInvalidCallback(callback) {
|
4506
|
-
if (null !== callback && "function" !== typeof callback) {
|
4507
|
-
var key = String(callback);
|
4508
|
-
didWarnOnInvalidCallback.has(key) ||
|
4509
|
-
(didWarnOnInvalidCallback.add(key),
|
4510
|
-
console.error(
|
4511
|
-
"Expected the last optional `callback` argument to be a function. Instead received: %s.",
|
4512
|
-
callback
|
4513
|
-
));
|
4514
|
-
}
|
4515
|
-
}
|
4516
|
-
function applyDerivedStateFromProps(
|
4517
|
-
workInProgress,
|
4518
|
-
ctor,
|
4519
|
-
getDerivedStateFromProps,
|
4520
|
-
nextProps
|
4521
|
-
) {
|
4522
|
-
var prevState = workInProgress.memoizedState,
|
4523
|
-
partialState = getDerivedStateFromProps(nextProps, prevState);
|
4524
|
-
if (workInProgress.mode & StrictLegacyMode) {
|
4525
|
-
setIsStrictModeForDevtools(!0);
|
4526
|
-
try {
|
4527
|
-
partialState = getDerivedStateFromProps(nextProps, prevState);
|
4528
|
-
} finally {
|
4529
|
-
setIsStrictModeForDevtools(!1);
|
4530
|
-
}
|
4531
|
-
}
|
4532
|
-
void 0 === partialState &&
|
4533
|
-
((ctor = getComponentNameFromType(ctor) || "Component"),
|
4534
|
-
didWarnAboutUndefinedDerivedState.has(ctor) ||
|
4535
|
-
(didWarnAboutUndefinedDerivedState.add(ctor),
|
4536
|
-
console.error(
|
4537
|
-
"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
|
4538
|
-
ctor
|
4539
|
-
)));
|
4540
|
-
prevState =
|
4541
|
-
null === partialState || void 0 === partialState
|
4542
|
-
? prevState
|
4543
|
-
: assign({}, prevState, partialState);
|
4544
|
-
workInProgress.memoizedState = prevState;
|
4545
|
-
0 === workInProgress.lanes &&
|
4546
|
-
(workInProgress.updateQueue.baseState = prevState);
|
4547
|
-
}
|
4548
|
-
function checkShouldComponentUpdate(
|
4549
|
-
workInProgress,
|
4550
|
-
ctor,
|
4551
|
-
oldProps,
|
4552
|
-
newProps,
|
4553
|
-
oldState,
|
4554
|
-
newState,
|
4555
|
-
nextContext
|
4556
|
-
) {
|
4557
|
-
var instance = workInProgress.stateNode;
|
4558
|
-
if ("function" === typeof instance.shouldComponentUpdate) {
|
4559
|
-
oldProps = instance.shouldComponentUpdate(
|
4560
|
-
newProps,
|
4561
|
-
newState,
|
4562
|
-
nextContext
|
4563
|
-
);
|
4564
|
-
if (workInProgress.mode & StrictLegacyMode) {
|
4565
|
-
setIsStrictModeForDevtools(!0);
|
4566
|
-
try {
|
4567
|
-
oldProps = instance.shouldComponentUpdate(
|
4568
|
-
newProps,
|
4569
|
-
newState,
|
4570
|
-
nextContext
|
4571
|
-
);
|
4572
|
-
} finally {
|
4573
|
-
setIsStrictModeForDevtools(!1);
|
4574
|
-
}
|
4575
|
-
}
|
4576
|
-
void 0 === oldProps &&
|
4577
|
-
console.error(
|
4578
|
-
"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",
|
4579
|
-
getComponentNameFromType(ctor) || "Component"
|
4580
|
-
);
|
4581
|
-
return oldProps;
|
4582
|
-
}
|
4583
|
-
return ctor.prototype && ctor.prototype.isPureReactComponent
|
4584
|
-
? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
|
4585
|
-
: !0;
|
4586
|
-
}
|
4587
|
-
function callComponentWillReceiveProps(
|
4588
|
-
workInProgress,
|
4589
|
-
instance,
|
4590
|
-
newProps,
|
4591
|
-
nextContext
|
4592
|
-
) {
|
4593
|
-
var oldState = instance.state;
|
4594
|
-
"function" === typeof instance.componentWillReceiveProps &&
|
4595
|
-
instance.componentWillReceiveProps(newProps, nextContext);
|
4596
|
-
"function" === typeof instance.UNSAFE_componentWillReceiveProps &&
|
4597
|
-
instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
|
4598
|
-
instance.state !== oldState &&
|
4599
|
-
((workInProgress =
|
4600
|
-
getComponentNameFromFiber(workInProgress) || "Component"),
|
4601
|
-
didWarnAboutStateAssignmentForComponent.has(workInProgress) ||
|
4602
|
-
(didWarnAboutStateAssignmentForComponent.add(workInProgress),
|
4603
|
-
console.error(
|
4604
|
-
"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
|
4605
|
-
workInProgress
|
4606
|
-
)),
|
4607
|
-
classComponentUpdater.enqueueReplaceState(
|
4608
|
-
instance,
|
4609
|
-
instance.state,
|
4610
|
-
null
|
4611
|
-
));
|
4487
|
+
function retainCache(cache) {
|
4488
|
+
cache.controller.signal.aborted &&
|
4489
|
+
console.warn(
|
4490
|
+
"A cache instance was retained after it was already freed. This likely indicates a bug in React."
|
4491
|
+
);
|
4492
|
+
cache.refCount++;
|
4612
4493
|
}
|
4613
|
-
function
|
4614
|
-
|
4615
|
-
|
4616
|
-
|
4617
|
-
|
4618
|
-
|
4619
|
-
|
4620
|
-
|
4621
|
-
|
4622
|
-
|
4623
|
-
void 0 === newProps[_propName] &&
|
4624
|
-
(newProps[_propName] = Component[_propName]);
|
4625
|
-
}
|
4626
|
-
return newProps;
|
4494
|
+
function releaseCache(cache) {
|
4495
|
+
cache.refCount--;
|
4496
|
+
0 > cache.refCount &&
|
4497
|
+
console.warn(
|
4498
|
+
"A cache instance was released after it was already freed. This likely indicates a bug in React."
|
4499
|
+
);
|
4500
|
+
0 === cache.refCount &&
|
4501
|
+
scheduleCallback$2(NormalPriority, function () {
|
4502
|
+
cache.controller.abort();
|
4503
|
+
});
|
4627
4504
|
}
|
4628
4505
|
function createCapturedValueAtFiber(value, source) {
|
4629
4506
|
if ("object" === typeof value && null !== value) {
|
@@ -4951,6 +4828,129 @@
|
|
4951
4828
|
diffRoot
|
4952
4829
|
));
|
4953
4830
|
}
|
4831
|
+
function warnOnInvalidCallback(callback) {
|
4832
|
+
if (null !== callback && "function" !== typeof callback) {
|
4833
|
+
var key = String(callback);
|
4834
|
+
didWarnOnInvalidCallback.has(key) ||
|
4835
|
+
(didWarnOnInvalidCallback.add(key),
|
4836
|
+
console.error(
|
4837
|
+
"Expected the last optional `callback` argument to be a function. Instead received: %s.",
|
4838
|
+
callback
|
4839
|
+
));
|
4840
|
+
}
|
4841
|
+
}
|
4842
|
+
function applyDerivedStateFromProps(
|
4843
|
+
workInProgress,
|
4844
|
+
ctor,
|
4845
|
+
getDerivedStateFromProps,
|
4846
|
+
nextProps
|
4847
|
+
) {
|
4848
|
+
var prevState = workInProgress.memoizedState,
|
4849
|
+
partialState = getDerivedStateFromProps(nextProps, prevState);
|
4850
|
+
if (workInProgress.mode & StrictLegacyMode) {
|
4851
|
+
setIsStrictModeForDevtools(!0);
|
4852
|
+
try {
|
4853
|
+
partialState = getDerivedStateFromProps(nextProps, prevState);
|
4854
|
+
} finally {
|
4855
|
+
setIsStrictModeForDevtools(!1);
|
4856
|
+
}
|
4857
|
+
}
|
4858
|
+
void 0 === partialState &&
|
4859
|
+
((ctor = getComponentNameFromType(ctor) || "Component"),
|
4860
|
+
didWarnAboutUndefinedDerivedState.has(ctor) ||
|
4861
|
+
(didWarnAboutUndefinedDerivedState.add(ctor),
|
4862
|
+
console.error(
|
4863
|
+
"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
|
4864
|
+
ctor
|
4865
|
+
)));
|
4866
|
+
prevState =
|
4867
|
+
null === partialState || void 0 === partialState
|
4868
|
+
? prevState
|
4869
|
+
: assign({}, prevState, partialState);
|
4870
|
+
workInProgress.memoizedState = prevState;
|
4871
|
+
0 === workInProgress.lanes &&
|
4872
|
+
(workInProgress.updateQueue.baseState = prevState);
|
4873
|
+
}
|
4874
|
+
function checkShouldComponentUpdate(
|
4875
|
+
workInProgress,
|
4876
|
+
ctor,
|
4877
|
+
oldProps,
|
4878
|
+
newProps,
|
4879
|
+
oldState,
|
4880
|
+
newState,
|
4881
|
+
nextContext
|
4882
|
+
) {
|
4883
|
+
var instance = workInProgress.stateNode;
|
4884
|
+
if ("function" === typeof instance.shouldComponentUpdate) {
|
4885
|
+
oldProps = instance.shouldComponentUpdate(
|
4886
|
+
newProps,
|
4887
|
+
newState,
|
4888
|
+
nextContext
|
4889
|
+
);
|
4890
|
+
if (workInProgress.mode & StrictLegacyMode) {
|
4891
|
+
setIsStrictModeForDevtools(!0);
|
4892
|
+
try {
|
4893
|
+
oldProps = instance.shouldComponentUpdate(
|
4894
|
+
newProps,
|
4895
|
+
newState,
|
4896
|
+
nextContext
|
4897
|
+
);
|
4898
|
+
} finally {
|
4899
|
+
setIsStrictModeForDevtools(!1);
|
4900
|
+
}
|
4901
|
+
}
|
4902
|
+
void 0 === oldProps &&
|
4903
|
+
console.error(
|
4904
|
+
"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",
|
4905
|
+
getComponentNameFromType(ctor) || "Component"
|
4906
|
+
);
|
4907
|
+
return oldProps;
|
4908
|
+
}
|
4909
|
+
return ctor.prototype && ctor.prototype.isPureReactComponent
|
4910
|
+
? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
|
4911
|
+
: !0;
|
4912
|
+
}
|
4913
|
+
function callComponentWillReceiveProps(
|
4914
|
+
workInProgress,
|
4915
|
+
instance,
|
4916
|
+
newProps,
|
4917
|
+
nextContext
|
4918
|
+
) {
|
4919
|
+
var oldState = instance.state;
|
4920
|
+
"function" === typeof instance.componentWillReceiveProps &&
|
4921
|
+
instance.componentWillReceiveProps(newProps, nextContext);
|
4922
|
+
"function" === typeof instance.UNSAFE_componentWillReceiveProps &&
|
4923
|
+
instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
|
4924
|
+
instance.state !== oldState &&
|
4925
|
+
((workInProgress =
|
4926
|
+
getComponentNameFromFiber(workInProgress) || "Component"),
|
4927
|
+
didWarnAboutStateAssignmentForComponent.has(workInProgress) ||
|
4928
|
+
(didWarnAboutStateAssignmentForComponent.add(workInProgress),
|
4929
|
+
console.error(
|
4930
|
+
"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
|
4931
|
+
workInProgress
|
4932
|
+
)),
|
4933
|
+
classComponentUpdater.enqueueReplaceState(
|
4934
|
+
instance,
|
4935
|
+
instance.state,
|
4936
|
+
null
|
4937
|
+
));
|
4938
|
+
}
|
4939
|
+
function resolveClassComponentProps(Component, baseProps) {
|
4940
|
+
var newProps = baseProps;
|
4941
|
+
if ("ref" in baseProps) {
|
4942
|
+
newProps = {};
|
4943
|
+
for (var propName in baseProps)
|
4944
|
+
"ref" !== propName && (newProps[propName] = baseProps[propName]);
|
4945
|
+
}
|
4946
|
+
if ((Component = Component.defaultProps)) {
|
4947
|
+
newProps === baseProps && (newProps = assign({}, newProps));
|
4948
|
+
for (var _propName in Component)
|
4949
|
+
void 0 === newProps[_propName] &&
|
4950
|
+
(newProps[_propName] = Component[_propName]);
|
4951
|
+
}
|
4952
|
+
return newProps;
|
4953
|
+
}
|
4954
4954
|
function createThenableState() {
|
4955
4955
|
return { didWarnAboutUncachedPromise: !1, thenables: [] };
|
4956
4956
|
}
|
@@ -5253,7 +5253,7 @@
|
|
5253
5253
|
null;
|
5254
5254
|
hookTypesUpdateIndexDev = -1;
|
5255
5255
|
null !== current &&
|
5256
|
-
(current.flags &
|
5256
|
+
(current.flags & 65011712) !== (workInProgress.flags & 65011712) &&
|
5257
5257
|
console.error(
|
5258
5258
|
"Internal React error: Expected static flag was missing. Please notify the React team."
|
5259
5259
|
);
|
@@ -5331,7 +5331,7 @@
|
|
5331
5331
|
workInProgress.updateQueue = current.updateQueue;
|
5332
5332
|
workInProgress.flags =
|
5333
5333
|
(workInProgress.mode & StrictEffectsMode) !== NoMode
|
5334
|
-
? workInProgress.flags & -
|
5334
|
+
? workInProgress.flags & -402655237
|
5335
5335
|
: workInProgress.flags & -2053;
|
5336
5336
|
current.lanes &= ~lanes;
|
5337
5337
|
}
|
@@ -6193,13 +6193,13 @@
|
|
6193
6193
|
function mountEffect(create, deps) {
|
6194
6194
|
(currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode &&
|
6195
6195
|
(currentlyRenderingFiber.mode & NoStrictPassiveEffectsMode) === NoMode
|
6196
|
-
? mountEffectImpl(
|
6196
|
+
? mountEffectImpl(276826112, Passive, create, deps)
|
6197
6197
|
: mountEffectImpl(8390656, Passive, create, deps);
|
6198
6198
|
}
|
6199
6199
|
function mountLayoutEffect(create, deps) {
|
6200
6200
|
var fiberFlags = 4194308;
|
6201
6201
|
(currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode &&
|
6202
|
-
(fiberFlags |=
|
6202
|
+
(fiberFlags |= 134217728);
|
6203
6203
|
return mountEffectImpl(fiberFlags, Layout, create, deps);
|
6204
6204
|
}
|
6205
6205
|
function imperativeHandleEffect(create, ref) {
|
@@ -6233,7 +6233,7 @@
|
|
6233
6233
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
6234
6234
|
var fiberFlags = 4194308;
|
6235
6235
|
(currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode &&
|
6236
|
-
(fiberFlags |=
|
6236
|
+
(fiberFlags |= 134217728);
|
6237
6237
|
mountEffectImpl(
|
6238
6238
|
fiberFlags,
|
6239
6239
|
Layout,
|
@@ -6840,16 +6840,16 @@
|
|
6840
6840
|
return (
|
6841
6841
|
(newIndex = newIndex.index),
|
6842
6842
|
newIndex < lastPlacedIndex
|
6843
|
-
? ((newFiber.flags |=
|
6843
|
+
? ((newFiber.flags |= 67108866), lastPlacedIndex)
|
6844
6844
|
: newIndex
|
6845
6845
|
);
|
6846
|
-
newFiber.flags |=
|
6846
|
+
newFiber.flags |= 67108866;
|
6847
6847
|
return lastPlacedIndex;
|
6848
6848
|
}
|
6849
6849
|
function placeSingleChild(newFiber) {
|
6850
6850
|
shouldTrackSideEffects &&
|
6851
6851
|
null === newFiber.alternate &&
|
6852
|
-
(newFiber.flags |=
|
6852
|
+
(newFiber.flags |= 67108866);
|
6853
6853
|
return newFiber;
|
6854
6854
|
}
|
6855
6855
|
function updateTextNode(returnFiber, current, textContent, lanes) {
|
@@ -8810,7 +8810,7 @@
|
|
8810
8810
|
"function" === typeof _instance.componentDidMount &&
|
8811
8811
|
(workInProgress.flags |= 4194308);
|
8812
8812
|
(workInProgress.mode & StrictEffectsMode) !== NoMode &&
|
8813
|
-
(workInProgress.flags |=
|
8813
|
+
(workInProgress.flags |= 134217728);
|
8814
8814
|
_instance = !0;
|
8815
8815
|
} else if (null === current$jscomp$0) {
|
8816
8816
|
_instance = workInProgress.stateNode;
|
@@ -8874,11 +8874,11 @@
|
|
8874
8874
|
"function" === typeof _instance.componentDidMount &&
|
8875
8875
|
(workInProgress.flags |= 4194308),
|
8876
8876
|
(workInProgress.mode & StrictEffectsMode) !== NoMode &&
|
8877
|
-
(workInProgress.flags |=
|
8877
|
+
(workInProgress.flags |= 134217728))
|
8878
8878
|
: ("function" === typeof _instance.componentDidMount &&
|
8879
8879
|
(workInProgress.flags |= 4194308),
|
8880
8880
|
(workInProgress.mode & StrictEffectsMode) !== NoMode &&
|
8881
|
-
(workInProgress.flags |=
|
8881
|
+
(workInProgress.flags |= 134217728),
|
8882
8882
|
(workInProgress.memoizedProps = nextProps),
|
8883
8883
|
(workInProgress.memoizedState = oldContext)),
|
8884
8884
|
(_instance.props = nextProps),
|
@@ -8888,7 +8888,7 @@
|
|
8888
8888
|
: ("function" === typeof _instance.componentDidMount &&
|
8889
8889
|
(workInProgress.flags |= 4194308),
|
8890
8890
|
(workInProgress.mode & StrictEffectsMode) !== NoMode &&
|
8891
|
-
(workInProgress.flags |=
|
8891
|
+
(workInProgress.flags |= 134217728),
|
8892
8892
|
(_instance = !1));
|
8893
8893
|
} else {
|
8894
8894
|
_instance = workInProgress.stateNode;
|
@@ -9102,32 +9102,32 @@
|
|
9102
9102
|
return current;
|
9103
9103
|
}
|
9104
9104
|
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
9105
|
-
var
|
9106
|
-
var
|
9105
|
+
var JSCompiler_object_inline_digest_2384;
|
9106
|
+
var JSCompiler_object_inline_stack_2385 = workInProgress.pendingProps;
|
9107
9107
|
shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
|
9108
|
-
var
|
9108
|
+
var JSCompiler_object_inline_componentStack_2386 = !1;
|
9109
9109
|
var didSuspend = 0 !== (workInProgress.flags & 128);
|
9110
|
-
(
|
9111
|
-
(
|
9110
|
+
(JSCompiler_object_inline_digest_2384 = didSuspend) ||
|
9111
|
+
(JSCompiler_object_inline_digest_2384 =
|
9112
9112
|
null !== current && null === current.memoizedState
|
9113
9113
|
? !1
|
9114
9114
|
: 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
|
9115
|
-
|
9116
|
-
((
|
9115
|
+
JSCompiler_object_inline_digest_2384 &&
|
9116
|
+
((JSCompiler_object_inline_componentStack_2386 = !0),
|
9117
9117
|
(workInProgress.flags &= -129));
|
9118
|
-
|
9118
|
+
JSCompiler_object_inline_digest_2384 = 0 !== (workInProgress.flags & 32);
|
9119
9119
|
workInProgress.flags &= -33;
|
9120
9120
|
if (null === current) {
|
9121
9121
|
if (isHydrating) {
|
9122
|
-
|
9122
|
+
JSCompiler_object_inline_componentStack_2386
|
9123
9123
|
? pushPrimaryTreeSuspenseHandler(workInProgress)
|
9124
9124
|
: reuseSuspenseHandlerOnStack(workInProgress);
|
9125
9125
|
if (isHydrating) {
|
9126
|
-
var
|
9126
|
+
var JSCompiler_object_inline_message_2383 = nextHydratableInstance;
|
9127
9127
|
var JSCompiler_temp;
|
9128
|
-
if (!(JSCompiler_temp = !
|
9128
|
+
if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2383)) {
|
9129
9129
|
c: {
|
9130
|
-
var instance =
|
9130
|
+
var instance = JSCompiler_object_inline_message_2383;
|
9131
9131
|
for (
|
9132
9132
|
JSCompiler_temp = rootOrSingletonContext;
|
9133
9133
|
8 !== instance.nodeType;
|
@@ -9169,77 +9169,77 @@
|
|
9169
9169
|
JSCompiler_temp &&
|
9170
9170
|
(warnNonHydratedInstance(
|
9171
9171
|
workInProgress,
|
9172
|
-
|
9172
|
+
JSCompiler_object_inline_message_2383
|
9173
9173
|
),
|
9174
9174
|
throwOnHydrationMismatch(workInProgress));
|
9175
9175
|
}
|
9176
|
-
|
9176
|
+
JSCompiler_object_inline_message_2383 = workInProgress.memoizedState;
|
9177
9177
|
if (
|
9178
|
-
null !==
|
9179
|
-
((
|
9180
|
-
|
9181
|
-
null !==
|
9178
|
+
null !== JSCompiler_object_inline_message_2383 &&
|
9179
|
+
((JSCompiler_object_inline_message_2383 =
|
9180
|
+
JSCompiler_object_inline_message_2383.dehydrated),
|
9181
|
+
null !== JSCompiler_object_inline_message_2383)
|
9182
9182
|
)
|
9183
9183
|
return (
|
9184
|
-
isSuspenseInstanceFallback(
|
9184
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2383)
|
9185
9185
|
? (workInProgress.lanes = 32)
|
9186
9186
|
: (workInProgress.lanes = 536870912),
|
9187
9187
|
null
|
9188
9188
|
);
|
9189
9189
|
popSuspenseHandler(workInProgress);
|
9190
9190
|
}
|
9191
|
-
|
9192
|
-
|
9193
|
-
|
9194
|
-
|
9195
|
-
if (
|
9191
|
+
JSCompiler_object_inline_message_2383 =
|
9192
|
+
JSCompiler_object_inline_stack_2385.children;
|
9193
|
+
JSCompiler_object_inline_stack_2385 =
|
9194
|
+
JSCompiler_object_inline_stack_2385.fallback;
|
9195
|
+
if (JSCompiler_object_inline_componentStack_2386)
|
9196
9196
|
return (
|
9197
9197
|
reuseSuspenseHandlerOnStack(workInProgress),
|
9198
|
-
(
|
9198
|
+
(JSCompiler_object_inline_componentStack_2386 =
|
9199
9199
|
workInProgress.mode),
|
9200
|
-
(
|
9200
|
+
(JSCompiler_object_inline_message_2383 =
|
9201
9201
|
mountWorkInProgressOffscreenFiber(
|
9202
9202
|
{
|
9203
9203
|
mode: "hidden",
|
9204
|
-
children:
|
9204
|
+
children: JSCompiler_object_inline_message_2383
|
9205
9205
|
},
|
9206
|
-
|
9206
|
+
JSCompiler_object_inline_componentStack_2386
|
9207
9207
|
)),
|
9208
|
-
(
|
9209
|
-
|
9210
|
-
|
9208
|
+
(JSCompiler_object_inline_stack_2385 = createFiberFromFragment(
|
9209
|
+
JSCompiler_object_inline_stack_2385,
|
9210
|
+
JSCompiler_object_inline_componentStack_2386,
|
9211
9211
|
renderLanes,
|
9212
9212
|
null
|
9213
9213
|
)),
|
9214
|
-
(
|
9215
|
-
(
|
9216
|
-
(
|
9217
|
-
|
9218
|
-
(workInProgress.child =
|
9219
|
-
(
|
9214
|
+
(JSCompiler_object_inline_message_2383.return = workInProgress),
|
9215
|
+
(JSCompiler_object_inline_stack_2385.return = workInProgress),
|
9216
|
+
(JSCompiler_object_inline_message_2383.sibling =
|
9217
|
+
JSCompiler_object_inline_stack_2385),
|
9218
|
+
(workInProgress.child = JSCompiler_object_inline_message_2383),
|
9219
|
+
(JSCompiler_object_inline_componentStack_2386 =
|
9220
9220
|
workInProgress.child),
|
9221
|
-
(
|
9221
|
+
(JSCompiler_object_inline_componentStack_2386.memoizedState =
|
9222
9222
|
mountSuspenseOffscreenState(renderLanes)),
|
9223
|
-
(
|
9223
|
+
(JSCompiler_object_inline_componentStack_2386.childLanes =
|
9224
9224
|
getRemainingWorkInPrimaryTree(
|
9225
9225
|
current,
|
9226
|
-
|
9226
|
+
JSCompiler_object_inline_digest_2384,
|
9227
9227
|
renderLanes
|
9228
9228
|
)),
|
9229
9229
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9230
|
-
|
9230
|
+
JSCompiler_object_inline_stack_2385
|
9231
9231
|
);
|
9232
9232
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
9233
9233
|
return mountSuspensePrimaryChildren(
|
9234
9234
|
workInProgress,
|
9235
|
-
|
9235
|
+
JSCompiler_object_inline_message_2383
|
9236
9236
|
);
|
9237
9237
|
}
|
9238
9238
|
var prevState = current.memoizedState;
|
9239
9239
|
if (
|
9240
9240
|
null !== prevState &&
|
9241
|
-
((
|
9242
|
-
null !==
|
9241
|
+
((JSCompiler_object_inline_message_2383 = prevState.dehydrated),
|
9242
|
+
null !== JSCompiler_object_inline_message_2383)
|
9243
9243
|
) {
|
9244
9244
|
if (didSuspend)
|
9245
9245
|
workInProgress.flags & 256
|
@@ -9256,94 +9256,94 @@
|
|
9256
9256
|
(workInProgress.flags |= 128),
|
9257
9257
|
(workInProgress = null))
|
9258
9258
|
: (reuseSuspenseHandlerOnStack(workInProgress),
|
9259
|
-
(
|
9260
|
-
|
9261
|
-
(
|
9262
|
-
(
|
9259
|
+
(JSCompiler_object_inline_componentStack_2386 =
|
9260
|
+
JSCompiler_object_inline_stack_2385.fallback),
|
9261
|
+
(JSCompiler_object_inline_message_2383 = workInProgress.mode),
|
9262
|
+
(JSCompiler_object_inline_stack_2385 =
|
9263
9263
|
mountWorkInProgressOffscreenFiber(
|
9264
9264
|
{
|
9265
9265
|
mode: "visible",
|
9266
|
-
children:
|
9266
|
+
children: JSCompiler_object_inline_stack_2385.children
|
9267
9267
|
},
|
9268
|
-
|
9268
|
+
JSCompiler_object_inline_message_2383
|
9269
9269
|
)),
|
9270
|
-
(
|
9270
|
+
(JSCompiler_object_inline_componentStack_2386 =
|
9271
9271
|
createFiberFromFragment(
|
9272
|
-
|
9273
|
-
|
9272
|
+
JSCompiler_object_inline_componentStack_2386,
|
9273
|
+
JSCompiler_object_inline_message_2383,
|
9274
9274
|
renderLanes,
|
9275
9275
|
null
|
9276
9276
|
)),
|
9277
|
-
(
|
9278
|
-
(
|
9279
|
-
(
|
9277
|
+
(JSCompiler_object_inline_componentStack_2386.flags |= 2),
|
9278
|
+
(JSCompiler_object_inline_stack_2385.return = workInProgress),
|
9279
|
+
(JSCompiler_object_inline_componentStack_2386.return =
|
9280
9280
|
workInProgress),
|
9281
|
-
(
|
9282
|
-
|
9283
|
-
(workInProgress.child =
|
9281
|
+
(JSCompiler_object_inline_stack_2385.sibling =
|
9282
|
+
JSCompiler_object_inline_componentStack_2386),
|
9283
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2385),
|
9284
9284
|
reconcileChildFibers(
|
9285
9285
|
workInProgress,
|
9286
9286
|
current.child,
|
9287
9287
|
null,
|
9288
9288
|
renderLanes
|
9289
9289
|
),
|
9290
|
-
(
|
9291
|
-
(
|
9290
|
+
(JSCompiler_object_inline_stack_2385 = workInProgress.child),
|
9291
|
+
(JSCompiler_object_inline_stack_2385.memoizedState =
|
9292
9292
|
mountSuspenseOffscreenState(renderLanes)),
|
9293
|
-
(
|
9293
|
+
(JSCompiler_object_inline_stack_2385.childLanes =
|
9294
9294
|
getRemainingWorkInPrimaryTree(
|
9295
9295
|
current,
|
9296
|
-
|
9296
|
+
JSCompiler_object_inline_digest_2384,
|
9297
9297
|
renderLanes
|
9298
9298
|
)),
|
9299
9299
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9300
9300
|
(workInProgress =
|
9301
|
-
|
9301
|
+
JSCompiler_object_inline_componentStack_2386));
|
9302
9302
|
else if (
|
9303
9303
|
(pushPrimaryTreeSuspenseHandler(workInProgress),
|
9304
9304
|
isHydrating &&
|
9305
9305
|
console.error(
|
9306
9306
|
"We should not be hydrating here. This is a bug in React. Please file a bug."
|
9307
9307
|
),
|
9308
|
-
isSuspenseInstanceFallback(
|
9308
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2383))
|
9309
9309
|
) {
|
9310
|
-
|
9311
|
-
|
9312
|
-
|
9313
|
-
if (
|
9314
|
-
JSCompiler_temp =
|
9315
|
-
var message =
|
9316
|
-
instance =
|
9317
|
-
var componentStack =
|
9310
|
+
JSCompiler_object_inline_digest_2384 =
|
9311
|
+
JSCompiler_object_inline_message_2383.nextSibling &&
|
9312
|
+
JSCompiler_object_inline_message_2383.nextSibling.dataset;
|
9313
|
+
if (JSCompiler_object_inline_digest_2384) {
|
9314
|
+
JSCompiler_temp = JSCompiler_object_inline_digest_2384.dgst;
|
9315
|
+
var message = JSCompiler_object_inline_digest_2384.msg;
|
9316
|
+
instance = JSCompiler_object_inline_digest_2384.stck;
|
9317
|
+
var componentStack = JSCompiler_object_inline_digest_2384.cstck;
|
9318
9318
|
}
|
9319
|
-
|
9320
|
-
|
9321
|
-
|
9322
|
-
JSCompiler_temp =
|
9319
|
+
JSCompiler_object_inline_message_2383 = message;
|
9320
|
+
JSCompiler_object_inline_digest_2384 = JSCompiler_temp;
|
9321
|
+
JSCompiler_object_inline_stack_2385 = instance;
|
9322
|
+
JSCompiler_temp = JSCompiler_object_inline_componentStack_2386 =
|
9323
9323
|
componentStack;
|
9324
|
-
|
9325
|
-
|
9326
|
-
? Error(
|
9324
|
+
JSCompiler_object_inline_componentStack_2386 =
|
9325
|
+
JSCompiler_object_inline_message_2383
|
9326
|
+
? Error(JSCompiler_object_inline_message_2383)
|
9327
9327
|
: Error(
|
9328
9328
|
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
9329
9329
|
);
|
9330
|
-
|
9331
|
-
|
9332
|
-
|
9333
|
-
|
9334
|
-
|
9330
|
+
JSCompiler_object_inline_componentStack_2386.stack =
|
9331
|
+
JSCompiler_object_inline_stack_2385 || "";
|
9332
|
+
JSCompiler_object_inline_componentStack_2386.digest =
|
9333
|
+
JSCompiler_object_inline_digest_2384;
|
9334
|
+
JSCompiler_object_inline_digest_2384 =
|
9335
9335
|
void 0 === JSCompiler_temp ? null : JSCompiler_temp;
|
9336
|
-
|
9337
|
-
value:
|
9336
|
+
JSCompiler_object_inline_stack_2385 = {
|
9337
|
+
value: JSCompiler_object_inline_componentStack_2386,
|
9338
9338
|
source: null,
|
9339
|
-
stack:
|
9339
|
+
stack: JSCompiler_object_inline_digest_2384
|
9340
9340
|
};
|
9341
|
-
"string" === typeof
|
9341
|
+
"string" === typeof JSCompiler_object_inline_digest_2384 &&
|
9342
9342
|
CapturedStacks.set(
|
9343
|
-
|
9344
|
-
|
9343
|
+
JSCompiler_object_inline_componentStack_2386,
|
9344
|
+
JSCompiler_object_inline_stack_2385
|
9345
9345
|
);
|
9346
|
-
queueHydrationError(
|
9346
|
+
queueHydrationError(JSCompiler_object_inline_stack_2385);
|
9347
9347
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
9348
9348
|
current,
|
9349
9349
|
workInProgress,
|
@@ -9357,44 +9357,44 @@
|
|
9357
9357
|
renderLanes,
|
9358
9358
|
!1
|
9359
9359
|
),
|
9360
|
-
(
|
9360
|
+
(JSCompiler_object_inline_digest_2384 =
|
9361
9361
|
0 !== (renderLanes & current.childLanes)),
|
9362
|
-
didReceiveUpdate ||
|
9362
|
+
didReceiveUpdate || JSCompiler_object_inline_digest_2384)
|
9363
9363
|
) {
|
9364
|
-
|
9364
|
+
JSCompiler_object_inline_digest_2384 = workInProgressRoot;
|
9365
9365
|
if (
|
9366
|
-
null !==
|
9367
|
-
((
|
9368
|
-
(
|
9369
|
-
0 !== (
|
9366
|
+
null !== JSCompiler_object_inline_digest_2384 &&
|
9367
|
+
((JSCompiler_object_inline_stack_2385 = renderLanes & -renderLanes),
|
9368
|
+
(JSCompiler_object_inline_stack_2385 =
|
9369
|
+
0 !== (JSCompiler_object_inline_stack_2385 & 42)
|
9370
9370
|
? 1
|
9371
9371
|
: getBumpedLaneForHydrationByLane(
|
9372
|
-
|
9372
|
+
JSCompiler_object_inline_stack_2385
|
9373
9373
|
)),
|
9374
|
-
(
|
9374
|
+
(JSCompiler_object_inline_stack_2385 =
|
9375
9375
|
0 !==
|
9376
|
-
(
|
9377
|
-
(
|
9376
|
+
(JSCompiler_object_inline_stack_2385 &
|
9377
|
+
(JSCompiler_object_inline_digest_2384.suspendedLanes |
|
9378
9378
|
renderLanes))
|
9379
9379
|
? 0
|
9380
|
-
:
|
9381
|
-
0 !==
|
9382
|
-
|
9380
|
+
: JSCompiler_object_inline_stack_2385),
|
9381
|
+
0 !== JSCompiler_object_inline_stack_2385 &&
|
9382
|
+
JSCompiler_object_inline_stack_2385 !== prevState.retryLane)
|
9383
9383
|
)
|
9384
9384
|
throw (
|
9385
|
-
((prevState.retryLane =
|
9385
|
+
((prevState.retryLane = JSCompiler_object_inline_stack_2385),
|
9386
9386
|
enqueueConcurrentRenderForLane(
|
9387
9387
|
current,
|
9388
|
-
|
9388
|
+
JSCompiler_object_inline_stack_2385
|
9389
9389
|
),
|
9390
9390
|
scheduleUpdateOnFiber(
|
9391
|
-
|
9391
|
+
JSCompiler_object_inline_digest_2384,
|
9392
9392
|
current,
|
9393
|
-
|
9393
|
+
JSCompiler_object_inline_stack_2385
|
9394
9394
|
),
|
9395
9395
|
SelectiveHydrationException)
|
9396
9396
|
);
|
9397
|
-
|
9397
|
+
JSCompiler_object_inline_message_2383.data ===
|
9398
9398
|
SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
|
9399
9399
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
9400
9400
|
current,
|
@@ -9402,14 +9402,14 @@
|
|
9402
9402
|
renderLanes
|
9403
9403
|
);
|
9404
9404
|
} else
|
9405
|
-
|
9405
|
+
JSCompiler_object_inline_message_2383.data ===
|
9406
9406
|
SUSPENSE_PENDING_START_DATA
|
9407
9407
|
? ((workInProgress.flags |= 192),
|
9408
9408
|
(workInProgress.child = current.child),
|
9409
9409
|
(workInProgress = null))
|
9410
9410
|
: ((current = prevState.treeContext),
|
9411
9411
|
(nextHydratableInstance = getNextHydratable(
|
9412
|
-
|
9412
|
+
JSCompiler_object_inline_message_2383.nextSibling
|
9413
9413
|
)),
|
9414
9414
|
(hydrationParentFiber = workInProgress),
|
9415
9415
|
(isHydrating = !0),
|
@@ -9427,57 +9427,57 @@
|
|
9427
9427
|
(treeContextProvider = workInProgress)),
|
9428
9428
|
(workInProgress = mountSuspensePrimaryChildren(
|
9429
9429
|
workInProgress,
|
9430
|
-
|
9430
|
+
JSCompiler_object_inline_stack_2385.children
|
9431
9431
|
)),
|
9432
9432
|
(workInProgress.flags |= 4096));
|
9433
9433
|
return workInProgress;
|
9434
9434
|
}
|
9435
|
-
if (
|
9435
|
+
if (JSCompiler_object_inline_componentStack_2386)
|
9436
9436
|
return (
|
9437
9437
|
reuseSuspenseHandlerOnStack(workInProgress),
|
9438
|
-
(
|
9439
|
-
|
9440
|
-
(
|
9438
|
+
(JSCompiler_object_inline_componentStack_2386 =
|
9439
|
+
JSCompiler_object_inline_stack_2385.fallback),
|
9440
|
+
(JSCompiler_object_inline_message_2383 = workInProgress.mode),
|
9441
9441
|
(JSCompiler_temp = current.child),
|
9442
9442
|
(instance = JSCompiler_temp.sibling),
|
9443
|
-
(
|
9443
|
+
(JSCompiler_object_inline_stack_2385 = createWorkInProgress(
|
9444
9444
|
JSCompiler_temp,
|
9445
9445
|
{
|
9446
9446
|
mode: "hidden",
|
9447
|
-
children:
|
9447
|
+
children: JSCompiler_object_inline_stack_2385.children
|
9448
9448
|
}
|
9449
9449
|
)),
|
9450
|
-
(
|
9451
|
-
JSCompiler_temp.subtreeFlags &
|
9450
|
+
(JSCompiler_object_inline_stack_2385.subtreeFlags =
|
9451
|
+
JSCompiler_temp.subtreeFlags & 65011712),
|
9452
9452
|
null !== instance
|
9453
|
-
? (
|
9453
|
+
? (JSCompiler_object_inline_componentStack_2386 =
|
9454
9454
|
createWorkInProgress(
|
9455
9455
|
instance,
|
9456
|
-
|
9456
|
+
JSCompiler_object_inline_componentStack_2386
|
9457
9457
|
))
|
9458
|
-
: ((
|
9458
|
+
: ((JSCompiler_object_inline_componentStack_2386 =
|
9459
9459
|
createFiberFromFragment(
|
9460
|
-
|
9461
|
-
|
9460
|
+
JSCompiler_object_inline_componentStack_2386,
|
9461
|
+
JSCompiler_object_inline_message_2383,
|
9462
9462
|
renderLanes,
|
9463
9463
|
null
|
9464
9464
|
)),
|
9465
|
-
(
|
9466
|
-
(
|
9465
|
+
(JSCompiler_object_inline_componentStack_2386.flags |= 2)),
|
9466
|
+
(JSCompiler_object_inline_componentStack_2386.return =
|
9467
9467
|
workInProgress),
|
9468
|
-
(
|
9469
|
-
(
|
9470
|
-
|
9471
|
-
(workInProgress.child =
|
9472
|
-
(
|
9473
|
-
|
9474
|
-
(
|
9475
|
-
(
|
9476
|
-
null ===
|
9477
|
-
? (
|
9468
|
+
(JSCompiler_object_inline_stack_2385.return = workInProgress),
|
9469
|
+
(JSCompiler_object_inline_stack_2385.sibling =
|
9470
|
+
JSCompiler_object_inline_componentStack_2386),
|
9471
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2385),
|
9472
|
+
(JSCompiler_object_inline_stack_2385 =
|
9473
|
+
JSCompiler_object_inline_componentStack_2386),
|
9474
|
+
(JSCompiler_object_inline_componentStack_2386 = workInProgress.child),
|
9475
|
+
(JSCompiler_object_inline_message_2383 = current.child.memoizedState),
|
9476
|
+
null === JSCompiler_object_inline_message_2383
|
9477
|
+
? (JSCompiler_object_inline_message_2383 =
|
9478
9478
|
mountSuspenseOffscreenState(renderLanes))
|
9479
9479
|
: ((JSCompiler_temp =
|
9480
|
-
|
9480
|
+
JSCompiler_object_inline_message_2383.cachePool),
|
9481
9481
|
null !== JSCompiler_temp
|
9482
9482
|
? ((instance = CacheContext._currentValue),
|
9483
9483
|
(JSCompiler_temp =
|
@@ -9485,37 +9485,37 @@
|
|
9485
9485
|
? { parent: instance, pool: instance }
|
9486
9486
|
: JSCompiler_temp))
|
9487
9487
|
: (JSCompiler_temp = getSuspendedCache()),
|
9488
|
-
(
|
9488
|
+
(JSCompiler_object_inline_message_2383 = {
|
9489
9489
|
baseLanes:
|
9490
|
-
|
9490
|
+
JSCompiler_object_inline_message_2383.baseLanes | renderLanes,
|
9491
9491
|
cachePool: JSCompiler_temp
|
9492
9492
|
})),
|
9493
|
-
(
|
9494
|
-
|
9495
|
-
(
|
9493
|
+
(JSCompiler_object_inline_componentStack_2386.memoizedState =
|
9494
|
+
JSCompiler_object_inline_message_2383),
|
9495
|
+
(JSCompiler_object_inline_componentStack_2386.childLanes =
|
9496
9496
|
getRemainingWorkInPrimaryTree(
|
9497
9497
|
current,
|
9498
|
-
|
9498
|
+
JSCompiler_object_inline_digest_2384,
|
9499
9499
|
renderLanes
|
9500
9500
|
)),
|
9501
9501
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9502
|
-
|
9502
|
+
JSCompiler_object_inline_stack_2385
|
9503
9503
|
);
|
9504
9504
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
9505
9505
|
renderLanes = current.child;
|
9506
9506
|
current = renderLanes.sibling;
|
9507
9507
|
renderLanes = createWorkInProgress(renderLanes, {
|
9508
9508
|
mode: "visible",
|
9509
|
-
children:
|
9509
|
+
children: JSCompiler_object_inline_stack_2385.children
|
9510
9510
|
});
|
9511
9511
|
renderLanes.return = workInProgress;
|
9512
9512
|
renderLanes.sibling = null;
|
9513
9513
|
null !== current &&
|
9514
|
-
((
|
9515
|
-
null ===
|
9514
|
+
((JSCompiler_object_inline_digest_2384 = workInProgress.deletions),
|
9515
|
+
null === JSCompiler_object_inline_digest_2384
|
9516
9516
|
? ((workInProgress.deletions = [current]),
|
9517
9517
|
(workInProgress.flags |= 16))
|
9518
|
-
:
|
9518
|
+
: JSCompiler_object_inline_digest_2384.push(current));
|
9519
9519
|
workInProgress.child = renderLanes;
|
9520
9520
|
workInProgress.memoizedState = null;
|
9521
9521
|
return renderLanes;
|
@@ -12247,6 +12247,7 @@
|
|
12247
12247
|
((finishedWork.updateQueue = null),
|
12248
12248
|
attachSuspenseRetryListeners(finishedWork, flags)));
|
12249
12249
|
break;
|
12250
|
+
case 30:
|
12250
12251
|
case 21:
|
12251
12252
|
break;
|
12252
12253
|
default:
|
@@ -12550,7 +12551,7 @@
|
|
12550
12551
|
break;
|
12551
12552
|
case 12:
|
12552
12553
|
if (flags & 2048) {
|
12553
|
-
|
12554
|
+
flags = pushNestedEffectDurations();
|
12554
12555
|
recursivelyTraversePassiveMountEffects(
|
12555
12556
|
finishedRoot,
|
12556
12557
|
finishedWork,
|
@@ -12559,7 +12560,7 @@
|
|
12559
12560
|
);
|
12560
12561
|
finishedRoot = finishedWork.stateNode;
|
12561
12562
|
finishedRoot.passiveEffectDuration +=
|
12562
|
-
bubbleNestedEffectDurations(
|
12563
|
+
bubbleNestedEffectDurations(flags);
|
12563
12564
|
try {
|
12564
12565
|
runWithFiberInDEV(
|
12565
12566
|
finishedWork,
|
@@ -12592,6 +12593,7 @@
|
|
12592
12593
|
break;
|
12593
12594
|
case 22:
|
12594
12595
|
prevEffectDuration = finishedWork.stateNode;
|
12596
|
+
var _current = finishedWork.alternate;
|
12595
12597
|
null !== finishedWork.memoizedState
|
12596
12598
|
? prevEffectDuration._visibility & OffscreenPassiveEffectsConnected
|
12597
12599
|
? recursivelyTraversePassiveMountEffects(
|
@@ -12621,10 +12623,7 @@
|
|
12621
12623
|
0 !== (finishedWork.subtreeFlags & 10256)
|
12622
12624
|
));
|
12623
12625
|
flags & 2048 &&
|
12624
|
-
commitOffscreenPassiveMountEffects(
|
12625
|
-
finishedWork.alternate,
|
12626
|
-
finishedWork
|
12627
|
-
);
|
12626
|
+
commitOffscreenPassiveMountEffects(_current, finishedWork);
|
12628
12627
|
break;
|
12629
12628
|
case 24:
|
12630
12629
|
recursivelyTraversePassiveMountEffects(
|
@@ -13046,7 +13045,7 @@
|
|
13046
13045
|
(workInProgress.deletions = null),
|
13047
13046
|
(workInProgress.actualDuration = -0),
|
13048
13047
|
(workInProgress.actualStartTime = -1.1));
|
13049
|
-
workInProgress.flags = current.flags &
|
13048
|
+
workInProgress.flags = current.flags & 65011712;
|
13050
13049
|
workInProgress.childLanes = current.childLanes;
|
13051
13050
|
workInProgress.lanes = current.lanes;
|
13052
13051
|
workInProgress.child = current.child;
|
@@ -13084,7 +13083,7 @@
|
|
13084
13083
|
return workInProgress;
|
13085
13084
|
}
|
13086
13085
|
function resetWorkInProgress(workInProgress, renderLanes) {
|
13087
|
-
workInProgress.flags &=
|
13086
|
+
workInProgress.flags &= 65011714;
|
13088
13087
|
var current = workInProgress.alternate;
|
13089
13088
|
null === current
|
13090
13089
|
? ((workInProgress.childLanes = 0),
|
@@ -13403,8 +13402,8 @@
|
|
13403
13402
|
|
13404
13403
|
)
|
13405
13404
|
(newChildLanes |= _child2.lanes | _child2.childLanes),
|
13406
|
-
(subtreeFlags |= _child2.subtreeFlags &
|
13407
|
-
(subtreeFlags |= _child2.flags &
|
13405
|
+
(subtreeFlags |= _child2.subtreeFlags & 65011712),
|
13406
|
+
(subtreeFlags |= _child2.flags & 65011712),
|
13408
13407
|
(_treeBaseDuration += _child2.treeBaseDuration),
|
13409
13408
|
(_child2 = _child2.sibling);
|
13410
13409
|
completedWork.treeBaseDuration = _treeBaseDuration;
|
@@ -13416,8 +13415,8 @@
|
|
13416
13415
|
)
|
13417
13416
|
(newChildLanes |=
|
13418
13417
|
_treeBaseDuration.lanes | _treeBaseDuration.childLanes),
|
13419
|
-
(subtreeFlags |= _treeBaseDuration.subtreeFlags &
|
13420
|
-
(subtreeFlags |= _treeBaseDuration.flags &
|
13418
|
+
(subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712),
|
13419
|
+
(subtreeFlags |= _treeBaseDuration.flags & 65011712),
|
13421
13420
|
(_treeBaseDuration.return = completedWork),
|
13422
13421
|
(_treeBaseDuration = _treeBaseDuration.sibling);
|
13423
13422
|
else if ((completedWork.mode & ProfileMode) !== NoMode) {
|
@@ -13994,6 +13993,8 @@
|
|
13994
13993
|
);
|
13995
13994
|
case 25:
|
13996
13995
|
return null;
|
13996
|
+
case 30:
|
13997
|
+
return null;
|
13997
13998
|
}
|
13998
13999
|
throw Error(
|
13999
14000
|
"Unknown unit of work tag (" +
|
@@ -14333,6 +14334,7 @@
|
|
14333
14334
|
lanes,
|
14334
14335
|
workInProgressRootRecoverableErrors,
|
14335
14336
|
workInProgressTransitions,
|
14337
|
+
workInProgressAppearingViewTransitions,
|
14336
14338
|
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
14337
14339
|
workInProgressDeferredLane,
|
14338
14340
|
workInProgressRootInterleavedUpdatedLanes,
|
@@ -14361,6 +14363,7 @@
|
|
14361
14363
|
forceSync,
|
14362
14364
|
workInProgressRootRecoverableErrors,
|
14363
14365
|
workInProgressTransitions,
|
14366
|
+
workInProgressAppearingViewTransitions,
|
14364
14367
|
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
14365
14368
|
lanes,
|
14366
14369
|
workInProgressDeferredLane,
|
@@ -14381,6 +14384,7 @@
|
|
14381
14384
|
forceSync,
|
14382
14385
|
workInProgressRootRecoverableErrors,
|
14383
14386
|
workInProgressTransitions,
|
14387
|
+
workInProgressAppearingViewTransitions,
|
14384
14388
|
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
14385
14389
|
lanes,
|
14386
14390
|
workInProgressDeferredLane,
|
@@ -14404,6 +14408,7 @@
|
|
14404
14408
|
finishedWork,
|
14405
14409
|
recoverableErrors,
|
14406
14410
|
transitions,
|
14411
|
+
appearingViewTransitions,
|
14407
14412
|
didIncludeRenderPhaseUpdate,
|
14408
14413
|
lanes,
|
14409
14414
|
spawnedLane,
|
@@ -14418,8 +14423,9 @@
|
|
14418
14423
|
root.timeoutHandle = noTimeout;
|
14419
14424
|
suspendedCommitReason = finishedWork.subtreeFlags;
|
14420
14425
|
if (
|
14421
|
-
suspendedCommitReason
|
14422
|
-
|
14426
|
+
(suspendedCommitReason =
|
14427
|
+
suspendedCommitReason & 8192 ||
|
14428
|
+
16785408 === (suspendedCommitReason & 16785408))
|
14423
14429
|
)
|
14424
14430
|
if (
|
14425
14431
|
((suspendedState = {
|
@@ -14427,7 +14433,8 @@
|
|
14427
14433
|
count: 0,
|
14428
14434
|
unsuspend: noop$1
|
14429
14435
|
}),
|
14430
|
-
|
14436
|
+
suspendedCommitReason &&
|
14437
|
+
accumulateSuspenseyCommitOnFiber(finishedWork),
|
14431
14438
|
(suspendedCommitReason = waitForCommitToBeReady()),
|
14432
14439
|
null !== suspendedCommitReason)
|
14433
14440
|
) {
|
@@ -14439,6 +14446,7 @@
|
|
14439
14446
|
lanes,
|
14440
14447
|
recoverableErrors,
|
14441
14448
|
transitions,
|
14449
|
+
appearingViewTransitions,
|
14442
14450
|
didIncludeRenderPhaseUpdate,
|
14443
14451
|
spawnedLane,
|
14444
14452
|
updatedLanes,
|
@@ -14463,6 +14471,7 @@
|
|
14463
14471
|
lanes,
|
14464
14472
|
recoverableErrors,
|
14465
14473
|
transitions,
|
14474
|
+
appearingViewTransitions,
|
14466
14475
|
didIncludeRenderPhaseUpdate,
|
14467
14476
|
spawnedLane,
|
14468
14477
|
updatedLanes,
|
@@ -14572,6 +14581,7 @@
|
|
14572
14581
|
workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors =
|
14573
14582
|
null;
|
14574
14583
|
workInProgressRootDidIncludeRecursiveRenderUpdate = !1;
|
14584
|
+
workInProgressAppearingViewTransitions = null;
|
14575
14585
|
0 !== (lanes & 8) && (lanes |= lanes & 32);
|
14576
14586
|
var allEntangledLanes = root.entangledLanes;
|
14577
14587
|
if (0 !== allEntangledLanes)
|
@@ -15130,6 +15140,7 @@
|
|
15130
15140
|
lanes,
|
15131
15141
|
recoverableErrors,
|
15132
15142
|
transitions,
|
15143
|
+
appearingViewTransitions,
|
15133
15144
|
didIncludeRenderPhaseUpdate,
|
15134
15145
|
spawnedLane,
|
15135
15146
|
updatedLanes,
|
@@ -15185,25 +15196,31 @@
|
|
15185
15196
|
}))
|
15186
15197
|
: ((root.callbackNode = null), (root.callbackPriority = 0));
|
15187
15198
|
commitStartTime = now();
|
15188
|
-
|
15189
|
-
if (0 !== (finishedWork.subtreeFlags & 13878) ||
|
15190
|
-
|
15199
|
+
recoverableErrors = 0 !== (finishedWork.flags & 13878);
|
15200
|
+
if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) {
|
15201
|
+
recoverableErrors = ReactSharedInternals.T;
|
15191
15202
|
ReactSharedInternals.T = null;
|
15192
|
-
|
15203
|
+
transitions = ReactDOMSharedInternals.p;
|
15193
15204
|
ReactDOMSharedInternals.p = DiscreteEventPriority;
|
15194
|
-
|
15205
|
+
spawnedLane = executionContext;
|
15195
15206
|
executionContext |= CommitContext;
|
15196
15207
|
try {
|
15197
|
-
commitBeforeMutationEffects(
|
15208
|
+
commitBeforeMutationEffects(
|
15209
|
+
root,
|
15210
|
+
finishedWork,
|
15211
|
+
lanes,
|
15212
|
+
appearingViewTransitions
|
15213
|
+
);
|
15198
15214
|
} finally {
|
15199
|
-
(executionContext =
|
15200
|
-
(ReactDOMSharedInternals.p =
|
15201
|
-
(ReactSharedInternals.T =
|
15215
|
+
(executionContext = spawnedLane),
|
15216
|
+
(ReactDOMSharedInternals.p = transitions),
|
15217
|
+
(ReactSharedInternals.T = recoverableErrors);
|
15202
15218
|
}
|
15203
15219
|
}
|
15204
15220
|
pendingEffectsStatus = PENDING_MUTATION_PHASE;
|
15205
15221
|
flushMutationEffects();
|
15206
15222
|
flushLayoutEffects();
|
15223
|
+
flushSpawnedWork();
|
15207
15224
|
}
|
15208
15225
|
}
|
15209
15226
|
function flushMutationEffects() {
|
@@ -15344,7 +15361,6 @@
|
|
15344
15361
|
var root = pendingEffectsRoot,
|
15345
15362
|
finishedWork = pendingFinishedWork,
|
15346
15363
|
lanes = pendingEffectsLanes,
|
15347
|
-
recoverableErrors = pendingRecoverableErrors,
|
15348
15364
|
rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
|
15349
15365
|
if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
|
15350
15366
|
rootHasLayoutEffect = ReactSharedInternals.T;
|
@@ -15376,21 +15392,34 @@
|
|
15376
15392
|
(ReactSharedInternals.T = rootHasLayoutEffect);
|
15377
15393
|
}
|
15378
15394
|
}
|
15395
|
+
pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE;
|
15396
|
+
}
|
15397
|
+
}
|
15398
|
+
function flushSpawnedWork() {
|
15399
|
+
if (
|
15400
|
+
pendingEffectsStatus === PENDING_SPAWNED_WORK ||
|
15401
|
+
pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE
|
15402
|
+
) {
|
15403
|
+
pendingEffectsStatus = NO_PENDING_EFFECTS;
|
15379
15404
|
requestPaint();
|
15380
|
-
|
15381
|
-
|
15382
|
-
|
15405
|
+
var root = pendingEffectsRoot,
|
15406
|
+
finishedWork = pendingFinishedWork,
|
15407
|
+
lanes = pendingEffectsLanes,
|
15408
|
+
recoverableErrors = pendingRecoverableErrors,
|
15409
|
+
rootDidHavePassiveEffects =
|
15410
|
+
0 !== (finishedWork.subtreeFlags & 10256) ||
|
15411
|
+
0 !== (finishedWork.flags & 10256);
|
15412
|
+
rootDidHavePassiveEffects
|
15383
15413
|
? (pendingEffectsStatus = PENDING_PASSIVE_PHASE)
|
15384
15414
|
: ((pendingEffectsStatus = NO_PENDING_EFFECTS),
|
15385
15415
|
(pendingEffectsRoot = null),
|
15386
15416
|
releaseRootPooledCache(root, root.pendingLanes),
|
15387
15417
|
(nestedPassiveUpdateCount = 0),
|
15388
15418
|
(rootWithPassiveNestedUpdates = null));
|
15389
|
-
|
15390
|
-
0 ===
|
15391
|
-
|
15392
|
-
|
15393
|
-
rootHasLayoutEffect = lanesToEventPriority(lanes);
|
15419
|
+
var remainingLanes = root.pendingLanes;
|
15420
|
+
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
15421
|
+
rootDidHavePassiveEffects || commitDoubleInvokeEffectsInDEV(root);
|
15422
|
+
rootDidHavePassiveEffects = lanesToEventPriority(lanes);
|
15394
15423
|
finishedWork = finishedWork.stateNode;
|
15395
15424
|
if (
|
15396
15425
|
injectedHook &&
|
@@ -15398,7 +15427,7 @@
|
|
15398
15427
|
)
|
15399
15428
|
try {
|
15400
15429
|
var didError = 128 === (finishedWork.current.flags & 128);
|
15401
|
-
switch (
|
15430
|
+
switch (rootDidHavePassiveEffects) {
|
15402
15431
|
case DiscreteEventPriority:
|
15403
15432
|
var schedulerPriority = ImmediatePriority;
|
15404
15433
|
break;
|
@@ -15458,8 +15487,8 @@
|
|
15458
15487
|
}
|
15459
15488
|
0 !== (pendingEffectsLanes & 3) && flushPendingEffects();
|
15460
15489
|
ensureRootIsScheduled(root);
|
15461
|
-
|
15462
|
-
0 !== (lanes & 4194218) && 0 !== (
|
15490
|
+
remainingLanes = root.pendingLanes;
|
15491
|
+
0 !== (lanes & 4194218) && 0 !== (remainingLanes & 42)
|
15463
15492
|
? ((nestedUpdateScheduled = !0),
|
15464
15493
|
root === rootWithNestedUpdates
|
15465
15494
|
? nestedUpdateCount++
|
@@ -15489,6 +15518,7 @@
|
|
15489
15518
|
function flushPendingEffects(wasDelayedCommit) {
|
15490
15519
|
flushMutationEffects();
|
15491
15520
|
flushLayoutEffects();
|
15521
|
+
flushSpawnedWork();
|
15492
15522
|
return flushPassiveEffects(wasDelayedCommit);
|
15493
15523
|
}
|
15494
15524
|
function flushPassiveEffects() {
|
@@ -15706,14 +15736,14 @@
|
|
15706
15736
|
parentFiber,
|
15707
15737
|
isInStrictMode
|
15708
15738
|
) {
|
15709
|
-
if (0 !== (parentFiber.subtreeFlags &
|
15739
|
+
if (0 !== (parentFiber.subtreeFlags & 67117056))
|
15710
15740
|
for (parentFiber = parentFiber.child; null !== parentFiber; ) {
|
15711
15741
|
var root = root$jscomp$0,
|
15712
15742
|
fiber = parentFiber,
|
15713
15743
|
isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE;
|
15714
15744
|
isStrictModeFiber = isInStrictMode || isStrictModeFiber;
|
15715
15745
|
22 !== fiber.tag
|
15716
|
-
? fiber.flags &
|
15746
|
+
? fiber.flags & 67108864
|
15717
15747
|
? isStrictModeFiber &&
|
15718
15748
|
runWithFiberInDEV(
|
15719
15749
|
fiber,
|
@@ -15735,7 +15765,7 @@
|
|
15735
15765
|
root,
|
15736
15766
|
fiber
|
15737
15767
|
)
|
15738
|
-
: fiber.subtreeFlags &
|
15768
|
+
: fiber.subtreeFlags & 67108864 &&
|
15739
15769
|
runWithFiberInDEV(
|
15740
15770
|
fiber,
|
15741
15771
|
recursivelyTraverseAndDoubleInvokeEffectsInDEV,
|
@@ -21017,6 +21047,7 @@
|
|
21017
21047
|
var Scheduler = require("scheduler"),
|
21018
21048
|
React = require("react"),
|
21019
21049
|
ReactDOM = require("react-dom"),
|
21050
|
+
assign = Object.assign,
|
21020
21051
|
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
21021
21052
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
21022
21053
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
@@ -21035,30 +21066,13 @@
|
|
21035
21066
|
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
21036
21067
|
Symbol.for("react.legacy_hidden");
|
21037
21068
|
Symbol.for("react.tracing_marker");
|
21038
|
-
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel")
|
21039
|
-
|
21069
|
+
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
|
21070
|
+
Symbol.for("react.view_transition");
|
21071
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
21040
21072
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
21073
|
+
isArrayImpl = Array.isArray,
|
21041
21074
|
ReactSharedInternals =
|
21042
21075
|
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
21043
|
-
assign = Object.assign,
|
21044
|
-
disabledDepth = 0,
|
21045
|
-
prevLog,
|
21046
|
-
prevInfo,
|
21047
|
-
prevWarn,
|
21048
|
-
prevError,
|
21049
|
-
prevGroup,
|
21050
|
-
prevGroupCollapsed,
|
21051
|
-
prevGroupEnd;
|
21052
|
-
disabledLog.__reactDisabledLog = !0;
|
21053
|
-
var prefix,
|
21054
|
-
suffix,
|
21055
|
-
reentry = !1;
|
21056
|
-
var componentFrameCache = new (
|
21057
|
-
"function" === typeof WeakMap ? WeakMap : Map
|
21058
|
-
)();
|
21059
|
-
var current = null,
|
21060
|
-
isRendering = !1,
|
21061
|
-
isArrayImpl = Array.isArray,
|
21062
21076
|
ReactDOMSharedInternals =
|
21063
21077
|
ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
21064
21078
|
NotPending = Object.freeze({
|
@@ -21128,6 +21142,23 @@
|
|
21128
21142
|
),
|
21129
21143
|
illegalAttributeNameCache = {},
|
21130
21144
|
validatedAttributeNameCache = {},
|
21145
|
+
disabledDepth = 0,
|
21146
|
+
prevLog,
|
21147
|
+
prevInfo,
|
21148
|
+
prevWarn,
|
21149
|
+
prevError,
|
21150
|
+
prevGroup,
|
21151
|
+
prevGroupCollapsed,
|
21152
|
+
prevGroupEnd;
|
21153
|
+
disabledLog.__reactDisabledLog = !0;
|
21154
|
+
var prefix,
|
21155
|
+
suffix,
|
21156
|
+
reentry = !1;
|
21157
|
+
var componentFrameCache = new (
|
21158
|
+
"function" === typeof WeakMap ? WeakMap : Map
|
21159
|
+
)();
|
21160
|
+
var current = null,
|
21161
|
+
isRendering = !1,
|
21131
21162
|
escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g,
|
21132
21163
|
didWarnValueDefaultValue$1 = !1,
|
21133
21164
|
didWarnCheckedDefaultChecked = !1,
|
@@ -22365,6 +22396,26 @@
|
|
22365
22396
|
_currentRenderer: null,
|
22366
22397
|
_currentRenderer2: null
|
22367
22398
|
},
|
22399
|
+
CapturedStacks = new WeakMap(),
|
22400
|
+
forkStack = [],
|
22401
|
+
forkStackIndex = 0,
|
22402
|
+
treeForkProvider = null,
|
22403
|
+
treeForkCount = 0,
|
22404
|
+
idStack = [],
|
22405
|
+
idStackIndex = 0,
|
22406
|
+
treeContextProvider = null,
|
22407
|
+
treeContextId = 1,
|
22408
|
+
treeContextOverflow = "",
|
22409
|
+
hydrationParentFiber = null,
|
22410
|
+
nextHydratableInstance = null,
|
22411
|
+
isHydrating = !1,
|
22412
|
+
didSuspendOrErrorDEV = !1,
|
22413
|
+
hydrationDiffRootDEV = null,
|
22414
|
+
hydrationErrors = null,
|
22415
|
+
rootOrSingletonContext = !1,
|
22416
|
+
HydrationMismatchException = Error(
|
22417
|
+
"Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."
|
22418
|
+
),
|
22368
22419
|
ReactStrictModeWarnings = {
|
22369
22420
|
recordUnsafeLifecycleWarnings: function () {},
|
22370
22421
|
flushPendingUnsafeLifecycleWarnings: function () {},
|
@@ -22572,21 +22623,6 @@
|
|
22572
22623
|
var didWarnOnInvalidCallback = new Set();
|
22573
22624
|
Object.freeze(fakeInternalInstance);
|
22574
22625
|
var classComponentUpdater = {
|
22575
|
-
isMounted: function (component) {
|
22576
|
-
var owner = current;
|
22577
|
-
if (null !== owner && isRendering && 1 === owner.tag) {
|
22578
|
-
var instance = owner.stateNode;
|
22579
|
-
instance._warnedAboutRefsInRender ||
|
22580
|
-
console.error(
|
22581
|
-
"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",
|
22582
|
-
getComponentNameFromFiber(owner) || "A component"
|
22583
|
-
);
|
22584
|
-
instance._warnedAboutRefsInRender = !0;
|
22585
|
-
}
|
22586
|
-
return (component = component._reactInternals)
|
22587
|
-
? getNearestMountedFiber(component) === component
|
22588
|
-
: !1;
|
22589
|
-
},
|
22590
22626
|
enqueueSetState: function (inst, payload, callback) {
|
22591
22627
|
inst = inst._reactInternals;
|
22592
22628
|
var lane = requestUpdateLane(inst),
|
@@ -22634,26 +22670,6 @@
|
|
22634
22670
|
injectedProfilingHooks.markForceUpdateScheduled(inst, lane);
|
22635
22671
|
}
|
22636
22672
|
},
|
22637
|
-
CapturedStacks = new WeakMap(),
|
22638
|
-
forkStack = [],
|
22639
|
-
forkStackIndex = 0,
|
22640
|
-
treeForkProvider = null,
|
22641
|
-
treeForkCount = 0,
|
22642
|
-
idStack = [],
|
22643
|
-
idStackIndex = 0,
|
22644
|
-
treeContextProvider = null,
|
22645
|
-
treeContextId = 1,
|
22646
|
-
treeContextOverflow = "",
|
22647
|
-
hydrationParentFiber = null,
|
22648
|
-
nextHydratableInstance = null,
|
22649
|
-
isHydrating = !1,
|
22650
|
-
didSuspendOrErrorDEV = !1,
|
22651
|
-
hydrationDiffRootDEV = null,
|
22652
|
-
hydrationErrors = null,
|
22653
|
-
rootOrSingletonContext = !1,
|
22654
|
-
HydrationMismatchException = Error(
|
22655
|
-
"Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."
|
22656
|
-
),
|
22657
22673
|
SuspenseException = Error(
|
22658
22674
|
"Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
|
22659
22675
|
),
|
@@ -24034,6 +24050,7 @@
|
|
24034
24050
|
workInProgressSuspendedRetryLanes = 0,
|
24035
24051
|
workInProgressRootConcurrentErrors = null,
|
24036
24052
|
workInProgressRootRecoverableErrors = null,
|
24053
|
+
workInProgressAppearingViewTransitions = null,
|
24037
24054
|
workInProgressRootDidIncludeRecursiveRenderUpdate = !1,
|
24038
24055
|
globalMostRecentFallbackTime = 0,
|
24039
24056
|
FALLBACK_THROTTLE_MS = 300,
|
@@ -24047,7 +24064,9 @@
|
|
24047
24064
|
NO_PENDING_EFFECTS = 0,
|
24048
24065
|
PENDING_MUTATION_PHASE = 1,
|
24049
24066
|
PENDING_LAYOUT_PHASE = 2,
|
24050
|
-
|
24067
|
+
PENDING_AFTER_MUTATION_PHASE = 3,
|
24068
|
+
PENDING_SPAWNED_WORK = 4,
|
24069
|
+
PENDING_PASSIVE_PHASE = 5,
|
24051
24070
|
pendingEffectsStatus = 0,
|
24052
24071
|
pendingEffectsRoot = null,
|
24053
24072
|
pendingFinishedWork = null,
|
@@ -24599,11 +24618,11 @@
|
|
24599
24618
|
};
|
24600
24619
|
(function () {
|
24601
24620
|
var isomorphicReactPackageVersion = React.version;
|
24602
|
-
if ("19.1.0-canary-
|
24621
|
+
if ("19.1.0-canary-74ea0c73-20250109" !== isomorphicReactPackageVersion)
|
24603
24622
|
throw Error(
|
24604
24623
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
24605
24624
|
(isomorphicReactPackageVersion +
|
24606
|
-
"\n - react-dom: 19.1.0-canary-
|
24625
|
+
"\n - react-dom: 19.1.0-canary-74ea0c73-20250109\nLearn more: https://react.dev/warnings/version-mismatch")
|
24607
24626
|
);
|
24608
24627
|
})();
|
24609
24628
|
("function" === typeof Map &&
|
@@ -24640,10 +24659,10 @@
|
|
24640
24659
|
!(function () {
|
24641
24660
|
var internals = {
|
24642
24661
|
bundleType: 1,
|
24643
|
-
version: "19.1.0-canary-
|
24662
|
+
version: "19.1.0-canary-74ea0c73-20250109",
|
24644
24663
|
rendererPackageName: "react-dom",
|
24645
24664
|
currentDispatcherRef: ReactSharedInternals,
|
24646
|
-
reconcilerVersion: "19.1.0-canary-
|
24665
|
+
reconcilerVersion: "19.1.0-canary-74ea0c73-20250109"
|
24647
24666
|
};
|
24648
24667
|
internals.overrideHookState = overrideHookState;
|
24649
24668
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -25119,7 +25138,7 @@
|
|
25119
25138
|
exports.useFormStatus = function () {
|
25120
25139
|
return resolveDispatcher().useHostTransitionStatus();
|
25121
25140
|
};
|
25122
|
-
exports.version = "19.1.0-canary-
|
25141
|
+
exports.version = "19.1.0-canary-74ea0c73-20250109";
|
25123
25142
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
25124
25143
|
"function" ===
|
25125
25144
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|