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.
@@ -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,528 +371,124 @@
257
371
  }
258
372
  return null;
259
373
  }
260
- function disabledLog() {}
261
- function disableLogs() {
262
- if (0 === disabledDepth) {
263
- prevLog = console.log;
264
- prevInfo = console.info;
265
- prevWarn = console.warn;
266
- prevError = console.error;
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 createCursor(defaultValue) {
375
+ return { current: defaultValue };
287
376
  }
288
- function reenableLogs() {
289
- disabledDepth--;
290
- if (0 === disabledDepth) {
291
- var props = { configurable: !0, enumerable: !0, writable: !0 };
292
- Object.defineProperties(console, {
293
- log: assign({}, props, { value: prevLog }),
294
- info: assign({}, props, { value: prevInfo }),
295
- warn: assign({}, props, { value: prevWarn }),
296
- error: assign({}, props, { value: prevError }),
297
- group: assign({}, props, { value: prevGroup }),
298
- groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
299
- groupEnd: assign({}, props, { value: prevGroupEnd })
300
- });
301
- }
302
- 0 > disabledDepth &&
377
+ function pop(cursor, fiber) {
378
+ 0 > index$jscomp$0
379
+ ? console.error("Unexpected pop.")
380
+ : (fiber !== fiberStack[index$jscomp$0] &&
381
+ console.error("Unexpected Fiber popped."),
382
+ (cursor.current = valueStack[index$jscomp$0]),
383
+ (valueStack[index$jscomp$0] = null),
384
+ (fiberStack[index$jscomp$0] = null),
385
+ index$jscomp$0--);
386
+ }
387
+ function push(cursor, value, fiber) {
388
+ index$jscomp$0++;
389
+ valueStack[index$jscomp$0] = cursor.current;
390
+ fiberStack[index$jscomp$0] = fiber;
391
+ cursor.current = value;
392
+ }
393
+ function requiredContext(c) {
394
+ null === c &&
303
395
  console.error(
304
- "disabledDepth fell below zero. This is a bug in React. Please file an issue."
396
+ "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."
305
397
  );
398
+ return c;
306
399
  }
307
- function describeBuiltInComponentFrame(name) {
308
- if (void 0 === prefix)
309
- try {
310
- throw Error();
311
- } catch (x) {
312
- var match = x.stack.trim().match(/\n( *(at )?)/);
313
- prefix = (match && match[1]) || "";
314
- suffix =
315
- -1 < x.stack.indexOf("\n at")
316
- ? " (<anonymous>)"
317
- : -1 < x.stack.indexOf("@")
318
- ? "@unknown:0:0"
319
- : "";
320
- }
321
- return "\n" + prefix + name + suffix;
400
+ function pushHostContainer(fiber, nextRootInstance) {
401
+ push(rootInstanceStackCursor, nextRootInstance, fiber);
402
+ push(contextFiberStackCursor, fiber, fiber);
403
+ push(contextStackCursor, null, fiber);
404
+ var nextRootContext = nextRootInstance.nodeType;
405
+ switch (nextRootContext) {
406
+ case 9:
407
+ case 11:
408
+ nextRootContext = 9 === nextRootContext ? "#document" : "#fragment";
409
+ nextRootInstance = (nextRootInstance =
410
+ nextRootInstance.documentElement)
411
+ ? (nextRootInstance = nextRootInstance.namespaceURI)
412
+ ? getOwnHostContext(nextRootInstance)
413
+ : HostContextNamespaceNone
414
+ : HostContextNamespaceNone;
415
+ break;
416
+ default:
417
+ if (
418
+ ((nextRootInstance =
419
+ 8 === nextRootContext
420
+ ? nextRootInstance.parentNode
421
+ : nextRootInstance),
422
+ (nextRootContext = nextRootInstance.tagName),
423
+ (nextRootInstance = nextRootInstance.namespaceURI))
424
+ )
425
+ (nextRootInstance = getOwnHostContext(nextRootInstance)),
426
+ (nextRootInstance = getChildHostContextProd(
427
+ nextRootInstance,
428
+ nextRootContext
429
+ ));
430
+ else
431
+ switch (nextRootContext) {
432
+ case "svg":
433
+ nextRootInstance = HostContextNamespaceSvg;
434
+ break;
435
+ case "math":
436
+ nextRootInstance = HostContextNamespaceMath;
437
+ break;
438
+ default:
439
+ nextRootInstance = HostContextNamespaceNone;
440
+ }
441
+ }
442
+ nextRootContext = nextRootContext.toLowerCase();
443
+ nextRootContext = updatedAncestorInfoDev(null, nextRootContext);
444
+ nextRootContext = {
445
+ context: nextRootInstance,
446
+ ancestorInfo: nextRootContext
447
+ };
448
+ pop(contextStackCursor, fiber);
449
+ push(contextStackCursor, nextRootContext, fiber);
322
450
  }
323
- function describeNativeComponentFrame(fn, construct) {
324
- if (!fn || reentry) return "";
325
- var frame = componentFrameCache.get(fn);
326
- if (void 0 !== frame) return frame;
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;
478
- }
479
- function describeFiber(fiber) {
480
- switch (fiber.tag) {
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
- }
451
+ function popHostContainer(fiber) {
452
+ pop(contextStackCursor, fiber);
453
+ pop(contextFiberStackCursor, fiber);
454
+ pop(rootInstanceStackCursor, fiber);
501
455
  }
502
- function getStackByFiberInDevAndProd(workInProgress) {
503
- try {
504
- var info = "";
505
- do {
506
- info += describeFiber(workInProgress);
507
- var debugInfo = workInProgress._debugInfo;
508
- if (debugInfo)
509
- for (var i = debugInfo.length - 1; 0 <= i; i--) {
510
- var entry = debugInfo[i];
511
- if ("string" === typeof entry.name) {
512
- var JSCompiler_temp_const = info,
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
- }
456
+ function getHostContext() {
457
+ return requiredContext(contextStackCursor.current);
526
458
  }
527
- function getCurrentFiberOwnerNameInDevOrNull() {
528
- if (null === current) return null;
529
- var owner = current._debugOwner;
530
- return null != owner ? getComponentNameFromOwner(owner) : null;
459
+ function pushHostContext(fiber) {
460
+ null !== fiber.memoizedState &&
461
+ push(hostTransitionProviderCursor, fiber, fiber);
462
+ var context = requiredContext(contextStackCursor.current);
463
+ var type = fiber.type;
464
+ var nextContext = getChildHostContextProd(context.context, type);
465
+ type = updatedAncestorInfoDev(context.ancestorInfo, type);
466
+ nextContext = { context: nextContext, ancestorInfo: type };
467
+ context !== nextContext &&
468
+ (push(contextFiberStackCursor, fiber, fiber),
469
+ push(contextStackCursor, nextContext, fiber));
531
470
  }
532
- function getCurrentFiberStackInDev() {
533
- return null === current ? "" : getStackByFiberInDevAndProd(current);
471
+ function popHostContext(fiber) {
472
+ contextFiberStackCursor.current === fiber &&
473
+ (pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber));
474
+ hostTransitionProviderCursor.current === fiber &&
475
+ (pop(hostTransitionProviderCursor, fiber),
476
+ (HostTransitionContext._currentValue = NotPendingTransition));
534
477
  }
535
- function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) {
536
- var previousFiber = current;
537
- ReactSharedInternals.getCurrentStack =
538
- null === fiber ? null : getCurrentFiberStackInDev;
539
- isRendering = !1;
540
- current = fiber;
541
- try {
542
- return callback(arg0, arg1, arg2, arg3, arg4);
543
- } finally {
544
- current = previousFiber;
545
- }
546
- throw Error(
547
- "runWithFiberInDEV should never be called in production. This is a bug in React."
478
+ function typeName(value) {
479
+ return (
480
+ ("function" === typeof Symbol &&
481
+ Symbol.toStringTag &&
482
+ value[Symbol.toStringTag]) ||
483
+ value.constructor.name ||
484
+ "Object"
548
485
  );
549
486
  }
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 createCursor(defaultValue) {
665
- return { current: defaultValue };
666
- }
667
- function pop(cursor, fiber) {
668
- 0 > index$jscomp$0
669
- ? console.error("Unexpected pop.")
670
- : (fiber !== fiberStack[index$jscomp$0] &&
671
- console.error("Unexpected Fiber popped."),
672
- (cursor.current = valueStack[index$jscomp$0]),
673
- (valueStack[index$jscomp$0] = null),
674
- (fiberStack[index$jscomp$0] = null),
675
- index$jscomp$0--);
676
- }
677
- function push(cursor, value, fiber) {
678
- index$jscomp$0++;
679
- valueStack[index$jscomp$0] = cursor.current;
680
- fiberStack[index$jscomp$0] = fiber;
681
- cursor.current = value;
682
- }
683
- function requiredContext(c) {
684
- null === c &&
685
- console.error(
686
- "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."
687
- );
688
- return c;
689
- }
690
- function pushHostContainer(fiber, nextRootInstance) {
691
- push(rootInstanceStackCursor, nextRootInstance, fiber);
692
- push(contextFiberStackCursor, fiber, fiber);
693
- push(contextStackCursor, null, fiber);
694
- var nextRootContext = nextRootInstance.nodeType;
695
- switch (nextRootContext) {
696
- case 9:
697
- case 11:
698
- nextRootContext = 9 === nextRootContext ? "#document" : "#fragment";
699
- nextRootInstance = (nextRootInstance =
700
- nextRootInstance.documentElement)
701
- ? (nextRootInstance = nextRootInstance.namespaceURI)
702
- ? getOwnHostContext(nextRootInstance)
703
- : HostContextNamespaceNone
704
- : HostContextNamespaceNone;
705
- break;
706
- default:
707
- if (
708
- ((nextRootInstance =
709
- 8 === nextRootContext
710
- ? nextRootInstance.parentNode
711
- : nextRootInstance),
712
- (nextRootContext = nextRootInstance.tagName),
713
- (nextRootInstance = nextRootInstance.namespaceURI))
714
- )
715
- (nextRootInstance = getOwnHostContext(nextRootInstance)),
716
- (nextRootInstance = getChildHostContextProd(
717
- nextRootInstance,
718
- nextRootContext
719
- ));
720
- else
721
- switch (nextRootContext) {
722
- case "svg":
723
- nextRootInstance = HostContextNamespaceSvg;
724
- break;
725
- case "math":
726
- nextRootInstance = HostContextNamespaceMath;
727
- break;
728
- default:
729
- nextRootInstance = HostContextNamespaceNone;
730
- }
731
- }
732
- nextRootContext = nextRootContext.toLowerCase();
733
- nextRootContext = updatedAncestorInfoDev(null, nextRootContext);
734
- nextRootContext = {
735
- context: nextRootInstance,
736
- ancestorInfo: nextRootContext
737
- };
738
- pop(contextStackCursor, fiber);
739
- push(contextStackCursor, nextRootContext, fiber);
740
- }
741
- function popHostContainer(fiber) {
742
- pop(contextStackCursor, fiber);
743
- pop(contextFiberStackCursor, fiber);
744
- pop(rootInstanceStackCursor, fiber);
745
- }
746
- function getHostContext() {
747
- return requiredContext(contextStackCursor.current);
748
- }
749
- function pushHostContext(fiber) {
750
- null !== fiber.memoizedState &&
751
- push(hostTransitionProviderCursor, fiber, fiber);
752
- var context = requiredContext(contextStackCursor.current);
753
- var type = fiber.type;
754
- var nextContext = getChildHostContextProd(context.context, type);
755
- type = updatedAncestorInfoDev(context.ancestorInfo, type);
756
- nextContext = { context: nextContext, ancestorInfo: type };
757
- context !== nextContext &&
758
- (push(contextFiberStackCursor, fiber, fiber),
759
- push(contextStackCursor, nextContext, fiber));
760
- }
761
- function popHostContext(fiber) {
762
- contextFiberStackCursor.current === fiber &&
763
- (pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber));
764
- hostTransitionProviderCursor.current === fiber &&
765
- (pop(hostTransitionProviderCursor, fiber),
766
- (HostTransitionContext._currentValue = NotPendingTransition));
767
- }
768
- function typeName(value) {
769
- return (
770
- ("function" === typeof Symbol &&
771
- Symbol.toStringTag &&
772
- value[Symbol.toStringTag]) ||
773
- value.constructor.name ||
774
- "Object"
775
- );
776
- }
777
- function willCoercionThrow(value) {
778
- try {
779
- return testStringCoercion(value), !1;
780
- } catch (e) {
781
- return !0;
487
+ function willCoercionThrow(value) {
488
+ try {
489
+ return testStringCoercion(value), !1;
490
+ } catch (e) {
491
+ return !0;
782
492
  }
783
493
  }
784
494
  function testStringCoercion(value) {
@@ -1383,62 +1093,352 @@
1383
1093
  }
1384
1094
  return void 0 === expected ? void 0 : null;
1385
1095
  }
1386
- node = node.getAttribute(name);
1387
- if ("" === node && !0 === expected) return !0;
1388
- checkAttributeStringCoercion(expected, name);
1389
- return node === "" + expected ? expected : node;
1096
+ node = node.getAttribute(name);
1097
+ if ("" === node && !0 === expected) return !0;
1098
+ checkAttributeStringCoercion(expected, name);
1099
+ return node === "" + expected ? expected : node;
1100
+ }
1101
+ }
1102
+ function setValueForAttribute(node, name, value) {
1103
+ if (isAttributeNameSafe(name))
1104
+ if (null === value) node.removeAttribute(name);
1105
+ else {
1106
+ switch (typeof value) {
1107
+ case "undefined":
1108
+ case "function":
1109
+ case "symbol":
1110
+ node.removeAttribute(name);
1111
+ return;
1112
+ case "boolean":
1113
+ var prefix = name.toLowerCase().slice(0, 5);
1114
+ if ("data-" !== prefix && "aria-" !== prefix) {
1115
+ node.removeAttribute(name);
1116
+ return;
1117
+ }
1118
+ }
1119
+ checkAttributeStringCoercion(value, name);
1120
+ node.setAttribute(name, "" + value);
1121
+ }
1122
+ }
1123
+ function setValueForKnownAttribute(node, name, value) {
1124
+ if (null === value) node.removeAttribute(name);
1125
+ else {
1126
+ switch (typeof value) {
1127
+ case "undefined":
1128
+ case "function":
1129
+ case "symbol":
1130
+ case "boolean":
1131
+ node.removeAttribute(name);
1132
+ return;
1133
+ }
1134
+ checkAttributeStringCoercion(value, name);
1135
+ node.setAttribute(name, "" + value);
1136
+ }
1137
+ }
1138
+ function setValueForNamespacedAttribute(node, namespace, name, value) {
1139
+ if (null === value) node.removeAttribute(name);
1140
+ else {
1141
+ switch (typeof value) {
1142
+ case "undefined":
1143
+ case "function":
1144
+ case "symbol":
1145
+ case "boolean":
1146
+ node.removeAttribute(name);
1147
+ return;
1148
+ }
1149
+ checkAttributeStringCoercion(value, name);
1150
+ node.setAttributeNS(namespace, name, "" + value);
1151
+ }
1152
+ }
1153
+ function disabledLog() {}
1154
+ function disableLogs() {
1155
+ if (0 === disabledDepth) {
1156
+ prevLog = console.log;
1157
+ prevInfo = console.info;
1158
+ prevWarn = console.warn;
1159
+ prevError = console.error;
1160
+ prevGroup = console.group;
1161
+ prevGroupCollapsed = console.groupCollapsed;
1162
+ prevGroupEnd = console.groupEnd;
1163
+ var props = {
1164
+ configurable: !0,
1165
+ enumerable: !0,
1166
+ value: disabledLog,
1167
+ writable: !0
1168
+ };
1169
+ Object.defineProperties(console, {
1170
+ info: props,
1171
+ log: props,
1172
+ warn: props,
1173
+ error: props,
1174
+ group: props,
1175
+ groupCollapsed: props,
1176
+ groupEnd: props
1177
+ });
1178
+ }
1179
+ disabledDepth++;
1180
+ }
1181
+ function reenableLogs() {
1182
+ disabledDepth--;
1183
+ if (0 === disabledDepth) {
1184
+ var props = { configurable: !0, enumerable: !0, writable: !0 };
1185
+ Object.defineProperties(console, {
1186
+ log: assign({}, props, { value: prevLog }),
1187
+ info: assign({}, props, { value: prevInfo }),
1188
+ warn: assign({}, props, { value: prevWarn }),
1189
+ error: assign({}, props, { value: prevError }),
1190
+ group: assign({}, props, { value: prevGroup }),
1191
+ groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
1192
+ groupEnd: assign({}, props, { value: prevGroupEnd })
1193
+ });
1194
+ }
1195
+ 0 > disabledDepth &&
1196
+ console.error(
1197
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
1198
+ );
1199
+ }
1200
+ function describeBuiltInComponentFrame(name) {
1201
+ if (void 0 === prefix)
1202
+ try {
1203
+ throw Error();
1204
+ } catch (x) {
1205
+ var match = x.stack.trim().match(/\n( *(at )?)/);
1206
+ prefix = (match && match[1]) || "";
1207
+ suffix =
1208
+ -1 < x.stack.indexOf("\n at")
1209
+ ? " (<anonymous>)"
1210
+ : -1 < x.stack.indexOf("@")
1211
+ ? "@unknown:0:0"
1212
+ : "";
1213
+ }
1214
+ return "\n" + prefix + name + suffix;
1215
+ }
1216
+ function describeNativeComponentFrame(fn, construct) {
1217
+ if (!fn || reentry) return "";
1218
+ var frame = componentFrameCache.get(fn);
1219
+ if (void 0 !== frame) return frame;
1220
+ reentry = !0;
1221
+ frame = Error.prepareStackTrace;
1222
+ Error.prepareStackTrace = void 0;
1223
+ var previousDispatcher = null;
1224
+ previousDispatcher = ReactSharedInternals.H;
1225
+ ReactSharedInternals.H = null;
1226
+ disableLogs();
1227
+ try {
1228
+ var RunInRootFrame = {
1229
+ DetermineComponentFrameRoot: function () {
1230
+ try {
1231
+ if (construct) {
1232
+ var Fake = function () {
1233
+ throw Error();
1234
+ };
1235
+ Object.defineProperty(Fake.prototype, "props", {
1236
+ set: function () {
1237
+ throw Error();
1238
+ }
1239
+ });
1240
+ if ("object" === typeof Reflect && Reflect.construct) {
1241
+ try {
1242
+ Reflect.construct(Fake, []);
1243
+ } catch (x) {
1244
+ var control = x;
1245
+ }
1246
+ Reflect.construct(fn, [], Fake);
1247
+ } else {
1248
+ try {
1249
+ Fake.call();
1250
+ } catch (x$0) {
1251
+ control = x$0;
1252
+ }
1253
+ fn.call(Fake.prototype);
1254
+ }
1255
+ } else {
1256
+ try {
1257
+ throw Error();
1258
+ } catch (x$1) {
1259
+ control = x$1;
1260
+ }
1261
+ (Fake = fn()) &&
1262
+ "function" === typeof Fake.catch &&
1263
+ Fake.catch(function () {});
1264
+ }
1265
+ } catch (sample) {
1266
+ if (sample && control && "string" === typeof sample.stack)
1267
+ return [sample.stack, control.stack];
1268
+ }
1269
+ return [null, null];
1270
+ }
1271
+ };
1272
+ RunInRootFrame.DetermineComponentFrameRoot.displayName =
1273
+ "DetermineComponentFrameRoot";
1274
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
1275
+ RunInRootFrame.DetermineComponentFrameRoot,
1276
+ "name"
1277
+ );
1278
+ namePropDescriptor &&
1279
+ namePropDescriptor.configurable &&
1280
+ Object.defineProperty(
1281
+ RunInRootFrame.DetermineComponentFrameRoot,
1282
+ "name",
1283
+ { value: "DetermineComponentFrameRoot" }
1284
+ );
1285
+ var _RunInRootFrame$Deter =
1286
+ RunInRootFrame.DetermineComponentFrameRoot(),
1287
+ sampleStack = _RunInRootFrame$Deter[0],
1288
+ controlStack = _RunInRootFrame$Deter[1];
1289
+ if (sampleStack && controlStack) {
1290
+ var sampleLines = sampleStack.split("\n"),
1291
+ controlLines = controlStack.split("\n");
1292
+ for (
1293
+ _RunInRootFrame$Deter = namePropDescriptor = 0;
1294
+ namePropDescriptor < sampleLines.length &&
1295
+ !sampleLines[namePropDescriptor].includes(
1296
+ "DetermineComponentFrameRoot"
1297
+ );
1298
+
1299
+ )
1300
+ namePropDescriptor++;
1301
+ for (
1302
+ ;
1303
+ _RunInRootFrame$Deter < controlLines.length &&
1304
+ !controlLines[_RunInRootFrame$Deter].includes(
1305
+ "DetermineComponentFrameRoot"
1306
+ );
1307
+
1308
+ )
1309
+ _RunInRootFrame$Deter++;
1310
+ if (
1311
+ namePropDescriptor === sampleLines.length ||
1312
+ _RunInRootFrame$Deter === controlLines.length
1313
+ )
1314
+ for (
1315
+ namePropDescriptor = sampleLines.length - 1,
1316
+ _RunInRootFrame$Deter = controlLines.length - 1;
1317
+ 1 <= namePropDescriptor &&
1318
+ 0 <= _RunInRootFrame$Deter &&
1319
+ sampleLines[namePropDescriptor] !==
1320
+ controlLines[_RunInRootFrame$Deter];
1321
+
1322
+ )
1323
+ _RunInRootFrame$Deter--;
1324
+ for (
1325
+ ;
1326
+ 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
1327
+ namePropDescriptor--, _RunInRootFrame$Deter--
1328
+ )
1329
+ if (
1330
+ sampleLines[namePropDescriptor] !==
1331
+ controlLines[_RunInRootFrame$Deter]
1332
+ ) {
1333
+ if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
1334
+ do
1335
+ if (
1336
+ (namePropDescriptor--,
1337
+ _RunInRootFrame$Deter--,
1338
+ 0 > _RunInRootFrame$Deter ||
1339
+ sampleLines[namePropDescriptor] !==
1340
+ controlLines[_RunInRootFrame$Deter])
1341
+ ) {
1342
+ var _frame =
1343
+ "\n" +
1344
+ sampleLines[namePropDescriptor].replace(
1345
+ " at new ",
1346
+ " at "
1347
+ );
1348
+ fn.displayName &&
1349
+ _frame.includes("<anonymous>") &&
1350
+ (_frame = _frame.replace("<anonymous>", fn.displayName));
1351
+ "function" === typeof fn &&
1352
+ componentFrameCache.set(fn, _frame);
1353
+ return _frame;
1354
+ }
1355
+ while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
1356
+ }
1357
+ break;
1358
+ }
1359
+ }
1360
+ } finally {
1361
+ (reentry = !1),
1362
+ (ReactSharedInternals.H = previousDispatcher),
1363
+ reenableLogs(),
1364
+ (Error.prepareStackTrace = frame);
1390
1365
  }
1366
+ sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
1367
+ ? describeBuiltInComponentFrame(sampleLines)
1368
+ : "";
1369
+ "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
1370
+ return sampleLines;
1391
1371
  }
1392
- function setValueForAttribute(node, name, value) {
1393
- if (isAttributeNameSafe(name))
1394
- if (null === value) node.removeAttribute(name);
1395
- else {
1396
- switch (typeof value) {
1397
- case "undefined":
1398
- case "function":
1399
- case "symbol":
1400
- node.removeAttribute(name);
1401
- return;
1402
- case "boolean":
1403
- var prefix = name.toLowerCase().slice(0, 5);
1404
- if ("data-" !== prefix && "aria-" !== prefix) {
1405
- node.removeAttribute(name);
1406
- return;
1407
- }
1408
- }
1409
- checkAttributeStringCoercion(value, name);
1410
- node.setAttribute(name, "" + value);
1411
- }
1372
+ function describeFiber(fiber) {
1373
+ switch (fiber.tag) {
1374
+ case 26:
1375
+ case 27:
1376
+ case 5:
1377
+ return describeBuiltInComponentFrame(fiber.type);
1378
+ case 16:
1379
+ return describeBuiltInComponentFrame("Lazy");
1380
+ case 13:
1381
+ return describeBuiltInComponentFrame("Suspense");
1382
+ case 19:
1383
+ return describeBuiltInComponentFrame("SuspenseList");
1384
+ case 0:
1385
+ case 15:
1386
+ return describeNativeComponentFrame(fiber.type, !1);
1387
+ case 11:
1388
+ return describeNativeComponentFrame(fiber.type.render, !1);
1389
+ case 1:
1390
+ return describeNativeComponentFrame(fiber.type, !0);
1391
+ default:
1392
+ return "";
1393
+ }
1412
1394
  }
1413
- function setValueForKnownAttribute(node, name, value) {
1414
- if (null === value) node.removeAttribute(name);
1415
- else {
1416
- switch (typeof value) {
1417
- case "undefined":
1418
- case "function":
1419
- case "symbol":
1420
- case "boolean":
1421
- node.removeAttribute(name);
1422
- return;
1423
- }
1424
- checkAttributeStringCoercion(value, name);
1425
- node.setAttribute(name, "" + value);
1395
+ function getStackByFiberInDevAndProd(workInProgress) {
1396
+ try {
1397
+ var info = "";
1398
+ do {
1399
+ info += describeFiber(workInProgress);
1400
+ var debugInfo = workInProgress._debugInfo;
1401
+ if (debugInfo)
1402
+ for (var i = debugInfo.length - 1; 0 <= i; i--) {
1403
+ var entry = debugInfo[i];
1404
+ if ("string" === typeof entry.name) {
1405
+ var JSCompiler_temp_const = info,
1406
+ env = entry.env;
1407
+ var JSCompiler_inline_result = describeBuiltInComponentFrame(
1408
+ entry.name + (env ? " [" + env + "]" : "")
1409
+ );
1410
+ info = JSCompiler_temp_const + JSCompiler_inline_result;
1411
+ }
1412
+ }
1413
+ workInProgress = workInProgress.return;
1414
+ } while (workInProgress);
1415
+ return info;
1416
+ } catch (x) {
1417
+ return "\nError generating stack: " + x.message + "\n" + x.stack;
1426
1418
  }
1427
1419
  }
1428
- function setValueForNamespacedAttribute(node, namespace, name, value) {
1429
- if (null === value) node.removeAttribute(name);
1430
- else {
1431
- switch (typeof value) {
1432
- case "undefined":
1433
- case "function":
1434
- case "symbol":
1435
- case "boolean":
1436
- node.removeAttribute(name);
1437
- return;
1438
- }
1439
- checkAttributeStringCoercion(value, name);
1440
- node.setAttributeNS(namespace, name, "" + value);
1420
+ function getCurrentFiberOwnerNameInDevOrNull() {
1421
+ if (null === current) return null;
1422
+ var owner = current._debugOwner;
1423
+ return null != owner ? getComponentNameFromOwner(owner) : null;
1424
+ }
1425
+ function getCurrentFiberStackInDev() {
1426
+ return null === current ? "" : getStackByFiberInDevAndProd(current);
1427
+ }
1428
+ function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) {
1429
+ var previousFiber = current;
1430
+ ReactSharedInternals.getCurrentStack =
1431
+ null === fiber ? null : getCurrentFiberStackInDev;
1432
+ isRendering = !1;
1433
+ current = fiber;
1434
+ try {
1435
+ return callback(arg0, arg1, arg2, arg3, arg4);
1436
+ } finally {
1437
+ current = previousFiber;
1441
1438
  }
1439
+ throw Error(
1440
+ "runWithFiberInDEV should never be called in production. This is a bug in React."
1441
+ );
1442
1442
  }
1443
1443
  function getToStringValue(value) {
1444
1444
  switch (typeof value) {
@@ -4476,146 +4476,23 @@
4476
4476
  refCount: 0
4477
4477
  };
4478
4478
  }
4479
- function retainCache(cache) {
4480
- cache.controller.signal.aborted &&
4481
- console.warn(
4482
- "A cache instance was retained after it was already freed. This likely indicates a bug in React."
4483
- );
4484
- cache.refCount++;
4485
- }
4486
- function releaseCache(cache) {
4487
- cache.refCount--;
4488
- 0 > cache.refCount &&
4489
- console.warn(
4490
- "A cache instance was released after it was already freed. This likely indicates a bug in React."
4491
- );
4492
- 0 === cache.refCount &&
4493
- scheduleCallback$2(NormalPriority, function () {
4494
- cache.controller.abort();
4495
- });
4496
- }
4497
- function warnOnInvalidCallback(callback) {
4498
- if (null !== callback && "function" !== typeof callback) {
4499
- var key = String(callback);
4500
- didWarnOnInvalidCallback.has(key) ||
4501
- (didWarnOnInvalidCallback.add(key),
4502
- console.error(
4503
- "Expected the last optional `callback` argument to be a function. Instead received: %s.",
4504
- callback
4505
- ));
4506
- }
4507
- }
4508
- function applyDerivedStateFromProps(
4509
- workInProgress,
4510
- ctor,
4511
- getDerivedStateFromProps,
4512
- nextProps
4513
- ) {
4514
- var prevState = workInProgress.memoizedState,
4515
- partialState = getDerivedStateFromProps(nextProps, prevState);
4516
- if (workInProgress.mode & StrictLegacyMode) {
4517
- setIsStrictModeForDevtools(!0);
4518
- try {
4519
- partialState = getDerivedStateFromProps(nextProps, prevState);
4520
- } finally {
4521
- setIsStrictModeForDevtools(!1);
4522
- }
4523
- }
4524
- void 0 === partialState &&
4525
- ((ctor = getComponentNameFromType(ctor) || "Component"),
4526
- didWarnAboutUndefinedDerivedState.has(ctor) ||
4527
- (didWarnAboutUndefinedDerivedState.add(ctor),
4528
- console.error(
4529
- "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
4530
- ctor
4531
- )));
4532
- prevState =
4533
- null === partialState || void 0 === partialState
4534
- ? prevState
4535
- : assign({}, prevState, partialState);
4536
- workInProgress.memoizedState = prevState;
4537
- 0 === workInProgress.lanes &&
4538
- (workInProgress.updateQueue.baseState = prevState);
4539
- }
4540
- function checkShouldComponentUpdate(
4541
- workInProgress,
4542
- ctor,
4543
- oldProps,
4544
- newProps,
4545
- oldState,
4546
- newState,
4547
- nextContext
4548
- ) {
4549
- var instance = workInProgress.stateNode;
4550
- if ("function" === typeof instance.shouldComponentUpdate) {
4551
- oldProps = instance.shouldComponentUpdate(
4552
- newProps,
4553
- newState,
4554
- nextContext
4555
- );
4556
- if (workInProgress.mode & StrictLegacyMode) {
4557
- setIsStrictModeForDevtools(!0);
4558
- try {
4559
- oldProps = instance.shouldComponentUpdate(
4560
- newProps,
4561
- newState,
4562
- nextContext
4563
- );
4564
- } finally {
4565
- setIsStrictModeForDevtools(!1);
4566
- }
4567
- }
4568
- void 0 === oldProps &&
4569
- console.error(
4570
- "%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",
4571
- getComponentNameFromType(ctor) || "Component"
4572
- );
4573
- return oldProps;
4574
- }
4575
- return ctor.prototype && ctor.prototype.isPureReactComponent
4576
- ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
4577
- : !0;
4578
- }
4579
- function callComponentWillReceiveProps(
4580
- workInProgress,
4581
- instance,
4582
- newProps,
4583
- nextContext
4584
- ) {
4585
- var oldState = instance.state;
4586
- "function" === typeof instance.componentWillReceiveProps &&
4587
- instance.componentWillReceiveProps(newProps, nextContext);
4588
- "function" === typeof instance.UNSAFE_componentWillReceiveProps &&
4589
- instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
4590
- instance.state !== oldState &&
4591
- ((workInProgress =
4592
- getComponentNameFromFiber(workInProgress) || "Component"),
4593
- didWarnAboutStateAssignmentForComponent.has(workInProgress) ||
4594
- (didWarnAboutStateAssignmentForComponent.add(workInProgress),
4595
- console.error(
4596
- "%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
4597
- workInProgress
4598
- )),
4599
- classComponentUpdater.enqueueReplaceState(
4600
- instance,
4601
- instance.state,
4602
- null
4603
- ));
4479
+ function retainCache(cache) {
4480
+ cache.controller.signal.aborted &&
4481
+ console.warn(
4482
+ "A cache instance was retained after it was already freed. This likely indicates a bug in React."
4483
+ );
4484
+ cache.refCount++;
4604
4485
  }
4605
- function resolveClassComponentProps(Component, baseProps) {
4606
- var newProps = baseProps;
4607
- if ("ref" in baseProps) {
4608
- newProps = {};
4609
- for (var propName in baseProps)
4610
- "ref" !== propName && (newProps[propName] = baseProps[propName]);
4611
- }
4612
- if ((Component = Component.defaultProps)) {
4613
- newProps === baseProps && (newProps = assign({}, newProps));
4614
- for (var _propName in Component)
4615
- void 0 === newProps[_propName] &&
4616
- (newProps[_propName] = Component[_propName]);
4617
- }
4618
- return newProps;
4486
+ function releaseCache(cache) {
4487
+ cache.refCount--;
4488
+ 0 > cache.refCount &&
4489
+ console.warn(
4490
+ "A cache instance was released after it was already freed. This likely indicates a bug in React."
4491
+ );
4492
+ 0 === cache.refCount &&
4493
+ scheduleCallback$2(NormalPriority, function () {
4494
+ cache.controller.abort();
4495
+ });
4619
4496
  }
4620
4497
  function createCapturedValueAtFiber(value, source) {
4621
4498
  if ("object" === typeof value && null !== value) {
@@ -4943,6 +4820,129 @@
4943
4820
  diffRoot
4944
4821
  ));
4945
4822
  }
4823
+ function warnOnInvalidCallback(callback) {
4824
+ if (null !== callback && "function" !== typeof callback) {
4825
+ var key = String(callback);
4826
+ didWarnOnInvalidCallback.has(key) ||
4827
+ (didWarnOnInvalidCallback.add(key),
4828
+ console.error(
4829
+ "Expected the last optional `callback` argument to be a function. Instead received: %s.",
4830
+ callback
4831
+ ));
4832
+ }
4833
+ }
4834
+ function applyDerivedStateFromProps(
4835
+ workInProgress,
4836
+ ctor,
4837
+ getDerivedStateFromProps,
4838
+ nextProps
4839
+ ) {
4840
+ var prevState = workInProgress.memoizedState,
4841
+ partialState = getDerivedStateFromProps(nextProps, prevState);
4842
+ if (workInProgress.mode & StrictLegacyMode) {
4843
+ setIsStrictModeForDevtools(!0);
4844
+ try {
4845
+ partialState = getDerivedStateFromProps(nextProps, prevState);
4846
+ } finally {
4847
+ setIsStrictModeForDevtools(!1);
4848
+ }
4849
+ }
4850
+ void 0 === partialState &&
4851
+ ((ctor = getComponentNameFromType(ctor) || "Component"),
4852
+ didWarnAboutUndefinedDerivedState.has(ctor) ||
4853
+ (didWarnAboutUndefinedDerivedState.add(ctor),
4854
+ console.error(
4855
+ "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
4856
+ ctor
4857
+ )));
4858
+ prevState =
4859
+ null === partialState || void 0 === partialState
4860
+ ? prevState
4861
+ : assign({}, prevState, partialState);
4862
+ workInProgress.memoizedState = prevState;
4863
+ 0 === workInProgress.lanes &&
4864
+ (workInProgress.updateQueue.baseState = prevState);
4865
+ }
4866
+ function checkShouldComponentUpdate(
4867
+ workInProgress,
4868
+ ctor,
4869
+ oldProps,
4870
+ newProps,
4871
+ oldState,
4872
+ newState,
4873
+ nextContext
4874
+ ) {
4875
+ var instance = workInProgress.stateNode;
4876
+ if ("function" === typeof instance.shouldComponentUpdate) {
4877
+ oldProps = instance.shouldComponentUpdate(
4878
+ newProps,
4879
+ newState,
4880
+ nextContext
4881
+ );
4882
+ if (workInProgress.mode & StrictLegacyMode) {
4883
+ setIsStrictModeForDevtools(!0);
4884
+ try {
4885
+ oldProps = instance.shouldComponentUpdate(
4886
+ newProps,
4887
+ newState,
4888
+ nextContext
4889
+ );
4890
+ } finally {
4891
+ setIsStrictModeForDevtools(!1);
4892
+ }
4893
+ }
4894
+ void 0 === oldProps &&
4895
+ console.error(
4896
+ "%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",
4897
+ getComponentNameFromType(ctor) || "Component"
4898
+ );
4899
+ return oldProps;
4900
+ }
4901
+ return ctor.prototype && ctor.prototype.isPureReactComponent
4902
+ ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
4903
+ : !0;
4904
+ }
4905
+ function callComponentWillReceiveProps(
4906
+ workInProgress,
4907
+ instance,
4908
+ newProps,
4909
+ nextContext
4910
+ ) {
4911
+ var oldState = instance.state;
4912
+ "function" === typeof instance.componentWillReceiveProps &&
4913
+ instance.componentWillReceiveProps(newProps, nextContext);
4914
+ "function" === typeof instance.UNSAFE_componentWillReceiveProps &&
4915
+ instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
4916
+ instance.state !== oldState &&
4917
+ ((workInProgress =
4918
+ getComponentNameFromFiber(workInProgress) || "Component"),
4919
+ didWarnAboutStateAssignmentForComponent.has(workInProgress) ||
4920
+ (didWarnAboutStateAssignmentForComponent.add(workInProgress),
4921
+ console.error(
4922
+ "%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
4923
+ workInProgress
4924
+ )),
4925
+ classComponentUpdater.enqueueReplaceState(
4926
+ instance,
4927
+ instance.state,
4928
+ null
4929
+ ));
4930
+ }
4931
+ function resolveClassComponentProps(Component, baseProps) {
4932
+ var newProps = baseProps;
4933
+ if ("ref" in baseProps) {
4934
+ newProps = {};
4935
+ for (var propName in baseProps)
4936
+ "ref" !== propName && (newProps[propName] = baseProps[propName]);
4937
+ }
4938
+ if ((Component = Component.defaultProps)) {
4939
+ newProps === baseProps && (newProps = assign({}, newProps));
4940
+ for (var _propName in Component)
4941
+ void 0 === newProps[_propName] &&
4942
+ (newProps[_propName] = Component[_propName]);
4943
+ }
4944
+ return newProps;
4945
+ }
4946
4946
  function createThenableState() {
4947
4947
  return { didWarnAboutUncachedPromise: !1, thenables: [] };
4948
4948
  }
@@ -5245,7 +5245,7 @@
5245
5245
  null;
5246
5246
  hookTypesUpdateIndexDev = -1;
5247
5247
  null !== current &&
5248
- (current.flags & 29360128) !== (workInProgress.flags & 29360128) &&
5248
+ (current.flags & 65011712) !== (workInProgress.flags & 65011712) &&
5249
5249
  console.error(
5250
5250
  "Internal React error: Expected static flag was missing. Please notify the React team."
5251
5251
  );
@@ -5323,7 +5323,7 @@
5323
5323
  workInProgress.updateQueue = current.updateQueue;
5324
5324
  workInProgress.flags =
5325
5325
  (workInProgress.mode & StrictEffectsMode) !== NoMode
5326
- ? workInProgress.flags & -201328645
5326
+ ? workInProgress.flags & -402655237
5327
5327
  : workInProgress.flags & -2053;
5328
5328
  current.lanes &= ~lanes;
5329
5329
  }
@@ -6185,13 +6185,13 @@
6185
6185
  function mountEffect(create, deps) {
6186
6186
  (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode &&
6187
6187
  (currentlyRenderingFiber.mode & NoStrictPassiveEffectsMode) === NoMode
6188
- ? mountEffectImpl(142608384, Passive, create, deps)
6188
+ ? mountEffectImpl(276826112, Passive, create, deps)
6189
6189
  : mountEffectImpl(8390656, Passive, create, deps);
6190
6190
  }
6191
6191
  function mountLayoutEffect(create, deps) {
6192
6192
  var fiberFlags = 4194308;
6193
6193
  (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode &&
6194
- (fiberFlags |= 67108864);
6194
+ (fiberFlags |= 134217728);
6195
6195
  return mountEffectImpl(fiberFlags, Layout, create, deps);
6196
6196
  }
6197
6197
  function imperativeHandleEffect(create, ref) {
@@ -6225,7 +6225,7 @@
6225
6225
  deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
6226
6226
  var fiberFlags = 4194308;
6227
6227
  (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode &&
6228
- (fiberFlags |= 67108864);
6228
+ (fiberFlags |= 134217728);
6229
6229
  mountEffectImpl(
6230
6230
  fiberFlags,
6231
6231
  Layout,
@@ -6832,16 +6832,16 @@
6832
6832
  return (
6833
6833
  (newIndex = newIndex.index),
6834
6834
  newIndex < lastPlacedIndex
6835
- ? ((newFiber.flags |= 33554434), lastPlacedIndex)
6835
+ ? ((newFiber.flags |= 67108866), lastPlacedIndex)
6836
6836
  : newIndex
6837
6837
  );
6838
- newFiber.flags |= 33554434;
6838
+ newFiber.flags |= 67108866;
6839
6839
  return lastPlacedIndex;
6840
6840
  }
6841
6841
  function placeSingleChild(newFiber) {
6842
6842
  shouldTrackSideEffects &&
6843
6843
  null === newFiber.alternate &&
6844
- (newFiber.flags |= 33554434);
6844
+ (newFiber.flags |= 67108866);
6845
6845
  return newFiber;
6846
6846
  }
6847
6847
  function updateTextNode(returnFiber, current, textContent, lanes) {
@@ -8802,7 +8802,7 @@
8802
8802
  "function" === typeof _instance.componentDidMount &&
8803
8803
  (workInProgress.flags |= 4194308);
8804
8804
  (workInProgress.mode & StrictEffectsMode) !== NoMode &&
8805
- (workInProgress.flags |= 67108864);
8805
+ (workInProgress.flags |= 134217728);
8806
8806
  _instance = !0;
8807
8807
  } else if (null === current$jscomp$0) {
8808
8808
  _instance = workInProgress.stateNode;
@@ -8866,11 +8866,11 @@
8866
8866
  "function" === typeof _instance.componentDidMount &&
8867
8867
  (workInProgress.flags |= 4194308),
8868
8868
  (workInProgress.mode & StrictEffectsMode) !== NoMode &&
8869
- (workInProgress.flags |= 67108864))
8869
+ (workInProgress.flags |= 134217728))
8870
8870
  : ("function" === typeof _instance.componentDidMount &&
8871
8871
  (workInProgress.flags |= 4194308),
8872
8872
  (workInProgress.mode & StrictEffectsMode) !== NoMode &&
8873
- (workInProgress.flags |= 67108864),
8873
+ (workInProgress.flags |= 134217728),
8874
8874
  (workInProgress.memoizedProps = nextProps),
8875
8875
  (workInProgress.memoizedState = oldContext)),
8876
8876
  (_instance.props = nextProps),
@@ -8880,7 +8880,7 @@
8880
8880
  : ("function" === typeof _instance.componentDidMount &&
8881
8881
  (workInProgress.flags |= 4194308),
8882
8882
  (workInProgress.mode & StrictEffectsMode) !== NoMode &&
8883
- (workInProgress.flags |= 67108864),
8883
+ (workInProgress.flags |= 134217728),
8884
8884
  (_instance = !1));
8885
8885
  } else {
8886
8886
  _instance = workInProgress.stateNode;
@@ -9094,32 +9094,32 @@
9094
9094
  return current;
9095
9095
  }
9096
9096
  function updateSuspenseComponent(current, workInProgress, renderLanes) {
9097
- var JSCompiler_object_inline_digest_2362;
9098
- var JSCompiler_object_inline_stack_2363 = workInProgress.pendingProps;
9097
+ var JSCompiler_object_inline_digest_2379;
9098
+ var JSCompiler_object_inline_stack_2380 = workInProgress.pendingProps;
9099
9099
  shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
9100
- var JSCompiler_object_inline_componentStack_2364 = !1;
9100
+ var JSCompiler_object_inline_componentStack_2381 = !1;
9101
9101
  var didSuspend = 0 !== (workInProgress.flags & 128);
9102
- (JSCompiler_object_inline_digest_2362 = didSuspend) ||
9103
- (JSCompiler_object_inline_digest_2362 =
9102
+ (JSCompiler_object_inline_digest_2379 = didSuspend) ||
9103
+ (JSCompiler_object_inline_digest_2379 =
9104
9104
  null !== current && null === current.memoizedState
9105
9105
  ? !1
9106
9106
  : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
9107
- JSCompiler_object_inline_digest_2362 &&
9108
- ((JSCompiler_object_inline_componentStack_2364 = !0),
9107
+ JSCompiler_object_inline_digest_2379 &&
9108
+ ((JSCompiler_object_inline_componentStack_2381 = !0),
9109
9109
  (workInProgress.flags &= -129));
9110
- JSCompiler_object_inline_digest_2362 = 0 !== (workInProgress.flags & 32);
9110
+ JSCompiler_object_inline_digest_2379 = 0 !== (workInProgress.flags & 32);
9111
9111
  workInProgress.flags &= -33;
9112
9112
  if (null === current) {
9113
9113
  if (isHydrating) {
9114
- JSCompiler_object_inline_componentStack_2364
9114
+ JSCompiler_object_inline_componentStack_2381
9115
9115
  ? pushPrimaryTreeSuspenseHandler(workInProgress)
9116
9116
  : reuseSuspenseHandlerOnStack(workInProgress);
9117
9117
  if (isHydrating) {
9118
- var JSCompiler_object_inline_message_2361 = nextHydratableInstance;
9118
+ var JSCompiler_object_inline_message_2378 = nextHydratableInstance;
9119
9119
  var JSCompiler_temp;
9120
- if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2361)) {
9120
+ if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2378)) {
9121
9121
  c: {
9122
- var instance = JSCompiler_object_inline_message_2361;
9122
+ var instance = JSCompiler_object_inline_message_2378;
9123
9123
  for (
9124
9124
  JSCompiler_temp = rootOrSingletonContext;
9125
9125
  8 !== instance.nodeType;
@@ -9161,77 +9161,77 @@
9161
9161
  JSCompiler_temp &&
9162
9162
  (warnNonHydratedInstance(
9163
9163
  workInProgress,
9164
- JSCompiler_object_inline_message_2361
9164
+ JSCompiler_object_inline_message_2378
9165
9165
  ),
9166
9166
  throwOnHydrationMismatch(workInProgress));
9167
9167
  }
9168
- JSCompiler_object_inline_message_2361 = workInProgress.memoizedState;
9168
+ JSCompiler_object_inline_message_2378 = workInProgress.memoizedState;
9169
9169
  if (
9170
- null !== JSCompiler_object_inline_message_2361 &&
9171
- ((JSCompiler_object_inline_message_2361 =
9172
- JSCompiler_object_inline_message_2361.dehydrated),
9173
- null !== JSCompiler_object_inline_message_2361)
9170
+ null !== JSCompiler_object_inline_message_2378 &&
9171
+ ((JSCompiler_object_inline_message_2378 =
9172
+ JSCompiler_object_inline_message_2378.dehydrated),
9173
+ null !== JSCompiler_object_inline_message_2378)
9174
9174
  )
9175
9175
  return (
9176
- isSuspenseInstanceFallback(JSCompiler_object_inline_message_2361)
9176
+ isSuspenseInstanceFallback(JSCompiler_object_inline_message_2378)
9177
9177
  ? (workInProgress.lanes = 32)
9178
9178
  : (workInProgress.lanes = 536870912),
9179
9179
  null
9180
9180
  );
9181
9181
  popSuspenseHandler(workInProgress);
9182
9182
  }
9183
- JSCompiler_object_inline_message_2361 =
9184
- JSCompiler_object_inline_stack_2363.children;
9185
- JSCompiler_object_inline_stack_2363 =
9186
- JSCompiler_object_inline_stack_2363.fallback;
9187
- if (JSCompiler_object_inline_componentStack_2364)
9183
+ JSCompiler_object_inline_message_2378 =
9184
+ JSCompiler_object_inline_stack_2380.children;
9185
+ JSCompiler_object_inline_stack_2380 =
9186
+ JSCompiler_object_inline_stack_2380.fallback;
9187
+ if (JSCompiler_object_inline_componentStack_2381)
9188
9188
  return (
9189
9189
  reuseSuspenseHandlerOnStack(workInProgress),
9190
- (JSCompiler_object_inline_componentStack_2364 =
9190
+ (JSCompiler_object_inline_componentStack_2381 =
9191
9191
  workInProgress.mode),
9192
- (JSCompiler_object_inline_message_2361 =
9192
+ (JSCompiler_object_inline_message_2378 =
9193
9193
  mountWorkInProgressOffscreenFiber(
9194
9194
  {
9195
9195
  mode: "hidden",
9196
- children: JSCompiler_object_inline_message_2361
9196
+ children: JSCompiler_object_inline_message_2378
9197
9197
  },
9198
- JSCompiler_object_inline_componentStack_2364
9198
+ JSCompiler_object_inline_componentStack_2381
9199
9199
  )),
9200
- (JSCompiler_object_inline_stack_2363 = createFiberFromFragment(
9201
- JSCompiler_object_inline_stack_2363,
9202
- JSCompiler_object_inline_componentStack_2364,
9200
+ (JSCompiler_object_inline_stack_2380 = createFiberFromFragment(
9201
+ JSCompiler_object_inline_stack_2380,
9202
+ JSCompiler_object_inline_componentStack_2381,
9203
9203
  renderLanes,
9204
9204
  null
9205
9205
  )),
9206
- (JSCompiler_object_inline_message_2361.return = workInProgress),
9207
- (JSCompiler_object_inline_stack_2363.return = workInProgress),
9208
- (JSCompiler_object_inline_message_2361.sibling =
9209
- JSCompiler_object_inline_stack_2363),
9210
- (workInProgress.child = JSCompiler_object_inline_message_2361),
9211
- (JSCompiler_object_inline_componentStack_2364 =
9206
+ (JSCompiler_object_inline_message_2378.return = workInProgress),
9207
+ (JSCompiler_object_inline_stack_2380.return = workInProgress),
9208
+ (JSCompiler_object_inline_message_2378.sibling =
9209
+ JSCompiler_object_inline_stack_2380),
9210
+ (workInProgress.child = JSCompiler_object_inline_message_2378),
9211
+ (JSCompiler_object_inline_componentStack_2381 =
9212
9212
  workInProgress.child),
9213
- (JSCompiler_object_inline_componentStack_2364.memoizedState =
9213
+ (JSCompiler_object_inline_componentStack_2381.memoizedState =
9214
9214
  mountSuspenseOffscreenState(renderLanes)),
9215
- (JSCompiler_object_inline_componentStack_2364.childLanes =
9215
+ (JSCompiler_object_inline_componentStack_2381.childLanes =
9216
9216
  getRemainingWorkInPrimaryTree(
9217
9217
  current,
9218
- JSCompiler_object_inline_digest_2362,
9218
+ JSCompiler_object_inline_digest_2379,
9219
9219
  renderLanes
9220
9220
  )),
9221
9221
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9222
- JSCompiler_object_inline_stack_2363
9222
+ JSCompiler_object_inline_stack_2380
9223
9223
  );
9224
9224
  pushPrimaryTreeSuspenseHandler(workInProgress);
9225
9225
  return mountSuspensePrimaryChildren(
9226
9226
  workInProgress,
9227
- JSCompiler_object_inline_message_2361
9227
+ JSCompiler_object_inline_message_2378
9228
9228
  );
9229
9229
  }
9230
9230
  var prevState = current.memoizedState;
9231
9231
  if (
9232
9232
  null !== prevState &&
9233
- ((JSCompiler_object_inline_message_2361 = prevState.dehydrated),
9234
- null !== JSCompiler_object_inline_message_2361)
9233
+ ((JSCompiler_object_inline_message_2378 = prevState.dehydrated),
9234
+ null !== JSCompiler_object_inline_message_2378)
9235
9235
  ) {
9236
9236
  if (didSuspend)
9237
9237
  workInProgress.flags & 256
@@ -9248,94 +9248,94 @@
9248
9248
  (workInProgress.flags |= 128),
9249
9249
  (workInProgress = null))
9250
9250
  : (reuseSuspenseHandlerOnStack(workInProgress),
9251
- (JSCompiler_object_inline_componentStack_2364 =
9252
- JSCompiler_object_inline_stack_2363.fallback),
9253
- (JSCompiler_object_inline_message_2361 = workInProgress.mode),
9254
- (JSCompiler_object_inline_stack_2363 =
9251
+ (JSCompiler_object_inline_componentStack_2381 =
9252
+ JSCompiler_object_inline_stack_2380.fallback),
9253
+ (JSCompiler_object_inline_message_2378 = workInProgress.mode),
9254
+ (JSCompiler_object_inline_stack_2380 =
9255
9255
  mountWorkInProgressOffscreenFiber(
9256
9256
  {
9257
9257
  mode: "visible",
9258
- children: JSCompiler_object_inline_stack_2363.children
9258
+ children: JSCompiler_object_inline_stack_2380.children
9259
9259
  },
9260
- JSCompiler_object_inline_message_2361
9260
+ JSCompiler_object_inline_message_2378
9261
9261
  )),
9262
- (JSCompiler_object_inline_componentStack_2364 =
9262
+ (JSCompiler_object_inline_componentStack_2381 =
9263
9263
  createFiberFromFragment(
9264
- JSCompiler_object_inline_componentStack_2364,
9265
- JSCompiler_object_inline_message_2361,
9264
+ JSCompiler_object_inline_componentStack_2381,
9265
+ JSCompiler_object_inline_message_2378,
9266
9266
  renderLanes,
9267
9267
  null
9268
9268
  )),
9269
- (JSCompiler_object_inline_componentStack_2364.flags |= 2),
9270
- (JSCompiler_object_inline_stack_2363.return = workInProgress),
9271
- (JSCompiler_object_inline_componentStack_2364.return =
9269
+ (JSCompiler_object_inline_componentStack_2381.flags |= 2),
9270
+ (JSCompiler_object_inline_stack_2380.return = workInProgress),
9271
+ (JSCompiler_object_inline_componentStack_2381.return =
9272
9272
  workInProgress),
9273
- (JSCompiler_object_inline_stack_2363.sibling =
9274
- JSCompiler_object_inline_componentStack_2364),
9275
- (workInProgress.child = JSCompiler_object_inline_stack_2363),
9273
+ (JSCompiler_object_inline_stack_2380.sibling =
9274
+ JSCompiler_object_inline_componentStack_2381),
9275
+ (workInProgress.child = JSCompiler_object_inline_stack_2380),
9276
9276
  reconcileChildFibers(
9277
9277
  workInProgress,
9278
9278
  current.child,
9279
9279
  null,
9280
9280
  renderLanes
9281
9281
  ),
9282
- (JSCompiler_object_inline_stack_2363 = workInProgress.child),
9283
- (JSCompiler_object_inline_stack_2363.memoizedState =
9282
+ (JSCompiler_object_inline_stack_2380 = workInProgress.child),
9283
+ (JSCompiler_object_inline_stack_2380.memoizedState =
9284
9284
  mountSuspenseOffscreenState(renderLanes)),
9285
- (JSCompiler_object_inline_stack_2363.childLanes =
9285
+ (JSCompiler_object_inline_stack_2380.childLanes =
9286
9286
  getRemainingWorkInPrimaryTree(
9287
9287
  current,
9288
- JSCompiler_object_inline_digest_2362,
9288
+ JSCompiler_object_inline_digest_2379,
9289
9289
  renderLanes
9290
9290
  )),
9291
9291
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9292
9292
  (workInProgress =
9293
- JSCompiler_object_inline_componentStack_2364));
9293
+ JSCompiler_object_inline_componentStack_2381));
9294
9294
  else if (
9295
9295
  (pushPrimaryTreeSuspenseHandler(workInProgress),
9296
9296
  isHydrating &&
9297
9297
  console.error(
9298
9298
  "We should not be hydrating here. This is a bug in React. Please file a bug."
9299
9299
  ),
9300
- isSuspenseInstanceFallback(JSCompiler_object_inline_message_2361))
9300
+ isSuspenseInstanceFallback(JSCompiler_object_inline_message_2378))
9301
9301
  ) {
9302
- JSCompiler_object_inline_digest_2362 =
9303
- JSCompiler_object_inline_message_2361.nextSibling &&
9304
- JSCompiler_object_inline_message_2361.nextSibling.dataset;
9305
- if (JSCompiler_object_inline_digest_2362) {
9306
- JSCompiler_temp = JSCompiler_object_inline_digest_2362.dgst;
9307
- var message = JSCompiler_object_inline_digest_2362.msg;
9308
- instance = JSCompiler_object_inline_digest_2362.stck;
9309
- var componentStack = JSCompiler_object_inline_digest_2362.cstck;
9302
+ JSCompiler_object_inline_digest_2379 =
9303
+ JSCompiler_object_inline_message_2378.nextSibling &&
9304
+ JSCompiler_object_inline_message_2378.nextSibling.dataset;
9305
+ if (JSCompiler_object_inline_digest_2379) {
9306
+ JSCompiler_temp = JSCompiler_object_inline_digest_2379.dgst;
9307
+ var message = JSCompiler_object_inline_digest_2379.msg;
9308
+ instance = JSCompiler_object_inline_digest_2379.stck;
9309
+ var componentStack = JSCompiler_object_inline_digest_2379.cstck;
9310
9310
  }
9311
- JSCompiler_object_inline_message_2361 = message;
9312
- JSCompiler_object_inline_digest_2362 = JSCompiler_temp;
9313
- JSCompiler_object_inline_stack_2363 = instance;
9314
- JSCompiler_temp = JSCompiler_object_inline_componentStack_2364 =
9311
+ JSCompiler_object_inline_message_2378 = message;
9312
+ JSCompiler_object_inline_digest_2379 = JSCompiler_temp;
9313
+ JSCompiler_object_inline_stack_2380 = instance;
9314
+ JSCompiler_temp = JSCompiler_object_inline_componentStack_2381 =
9315
9315
  componentStack;
9316
- JSCompiler_object_inline_componentStack_2364 =
9317
- JSCompiler_object_inline_message_2361
9318
- ? Error(JSCompiler_object_inline_message_2361)
9316
+ JSCompiler_object_inline_componentStack_2381 =
9317
+ JSCompiler_object_inline_message_2378
9318
+ ? Error(JSCompiler_object_inline_message_2378)
9319
9319
  : Error(
9320
9320
  "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
9321
9321
  );
9322
- JSCompiler_object_inline_componentStack_2364.stack =
9323
- JSCompiler_object_inline_stack_2363 || "";
9324
- JSCompiler_object_inline_componentStack_2364.digest =
9325
- JSCompiler_object_inline_digest_2362;
9326
- JSCompiler_object_inline_digest_2362 =
9322
+ JSCompiler_object_inline_componentStack_2381.stack =
9323
+ JSCompiler_object_inline_stack_2380 || "";
9324
+ JSCompiler_object_inline_componentStack_2381.digest =
9325
+ JSCompiler_object_inline_digest_2379;
9326
+ JSCompiler_object_inline_digest_2379 =
9327
9327
  void 0 === JSCompiler_temp ? null : JSCompiler_temp;
9328
- JSCompiler_object_inline_stack_2363 = {
9329
- value: JSCompiler_object_inline_componentStack_2364,
9328
+ JSCompiler_object_inline_stack_2380 = {
9329
+ value: JSCompiler_object_inline_componentStack_2381,
9330
9330
  source: null,
9331
- stack: JSCompiler_object_inline_digest_2362
9331
+ stack: JSCompiler_object_inline_digest_2379
9332
9332
  };
9333
- "string" === typeof JSCompiler_object_inline_digest_2362 &&
9333
+ "string" === typeof JSCompiler_object_inline_digest_2379 &&
9334
9334
  CapturedStacks.set(
9335
- JSCompiler_object_inline_componentStack_2364,
9336
- JSCompiler_object_inline_stack_2363
9335
+ JSCompiler_object_inline_componentStack_2381,
9336
+ JSCompiler_object_inline_stack_2380
9337
9337
  );
9338
- queueHydrationError(JSCompiler_object_inline_stack_2363);
9338
+ queueHydrationError(JSCompiler_object_inline_stack_2380);
9339
9339
  workInProgress = retrySuspenseComponentWithoutHydrating(
9340
9340
  current,
9341
9341
  workInProgress,
@@ -9349,44 +9349,44 @@
9349
9349
  renderLanes,
9350
9350
  !1
9351
9351
  ),
9352
- (JSCompiler_object_inline_digest_2362 =
9352
+ (JSCompiler_object_inline_digest_2379 =
9353
9353
  0 !== (renderLanes & current.childLanes)),
9354
- didReceiveUpdate || JSCompiler_object_inline_digest_2362)
9354
+ didReceiveUpdate || JSCompiler_object_inline_digest_2379)
9355
9355
  ) {
9356
- JSCompiler_object_inline_digest_2362 = workInProgressRoot;
9356
+ JSCompiler_object_inline_digest_2379 = workInProgressRoot;
9357
9357
  if (
9358
- null !== JSCompiler_object_inline_digest_2362 &&
9359
- ((JSCompiler_object_inline_stack_2363 = renderLanes & -renderLanes),
9360
- (JSCompiler_object_inline_stack_2363 =
9361
- 0 !== (JSCompiler_object_inline_stack_2363 & 42)
9358
+ null !== JSCompiler_object_inline_digest_2379 &&
9359
+ ((JSCompiler_object_inline_stack_2380 = renderLanes & -renderLanes),
9360
+ (JSCompiler_object_inline_stack_2380 =
9361
+ 0 !== (JSCompiler_object_inline_stack_2380 & 42)
9362
9362
  ? 1
9363
9363
  : getBumpedLaneForHydrationByLane(
9364
- JSCompiler_object_inline_stack_2363
9364
+ JSCompiler_object_inline_stack_2380
9365
9365
  )),
9366
- (JSCompiler_object_inline_stack_2363 =
9366
+ (JSCompiler_object_inline_stack_2380 =
9367
9367
  0 !==
9368
- (JSCompiler_object_inline_stack_2363 &
9369
- (JSCompiler_object_inline_digest_2362.suspendedLanes |
9368
+ (JSCompiler_object_inline_stack_2380 &
9369
+ (JSCompiler_object_inline_digest_2379.suspendedLanes |
9370
9370
  renderLanes))
9371
9371
  ? 0
9372
- : JSCompiler_object_inline_stack_2363),
9373
- 0 !== JSCompiler_object_inline_stack_2363 &&
9374
- JSCompiler_object_inline_stack_2363 !== prevState.retryLane)
9372
+ : JSCompiler_object_inline_stack_2380),
9373
+ 0 !== JSCompiler_object_inline_stack_2380 &&
9374
+ JSCompiler_object_inline_stack_2380 !== prevState.retryLane)
9375
9375
  )
9376
9376
  throw (
9377
- ((prevState.retryLane = JSCompiler_object_inline_stack_2363),
9377
+ ((prevState.retryLane = JSCompiler_object_inline_stack_2380),
9378
9378
  enqueueConcurrentRenderForLane(
9379
9379
  current,
9380
- JSCompiler_object_inline_stack_2363
9380
+ JSCompiler_object_inline_stack_2380
9381
9381
  ),
9382
9382
  scheduleUpdateOnFiber(
9383
- JSCompiler_object_inline_digest_2362,
9383
+ JSCompiler_object_inline_digest_2379,
9384
9384
  current,
9385
- JSCompiler_object_inline_stack_2363
9385
+ JSCompiler_object_inline_stack_2380
9386
9386
  ),
9387
9387
  SelectiveHydrationException)
9388
9388
  );
9389
- JSCompiler_object_inline_message_2361.data ===
9389
+ JSCompiler_object_inline_message_2378.data ===
9390
9390
  SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
9391
9391
  workInProgress = retrySuspenseComponentWithoutHydrating(
9392
9392
  current,
@@ -9394,14 +9394,14 @@
9394
9394
  renderLanes
9395
9395
  );
9396
9396
  } else
9397
- JSCompiler_object_inline_message_2361.data ===
9397
+ JSCompiler_object_inline_message_2378.data ===
9398
9398
  SUSPENSE_PENDING_START_DATA
9399
9399
  ? ((workInProgress.flags |= 192),
9400
9400
  (workInProgress.child = current.child),
9401
9401
  (workInProgress = null))
9402
9402
  : ((current = prevState.treeContext),
9403
9403
  (nextHydratableInstance = getNextHydratable(
9404
- JSCompiler_object_inline_message_2361.nextSibling
9404
+ JSCompiler_object_inline_message_2378.nextSibling
9405
9405
  )),
9406
9406
  (hydrationParentFiber = workInProgress),
9407
9407
  (isHydrating = !0),
@@ -9419,57 +9419,57 @@
9419
9419
  (treeContextProvider = workInProgress)),
9420
9420
  (workInProgress = mountSuspensePrimaryChildren(
9421
9421
  workInProgress,
9422
- JSCompiler_object_inline_stack_2363.children
9422
+ JSCompiler_object_inline_stack_2380.children
9423
9423
  )),
9424
9424
  (workInProgress.flags |= 4096));
9425
9425
  return workInProgress;
9426
9426
  }
9427
- if (JSCompiler_object_inline_componentStack_2364)
9427
+ if (JSCompiler_object_inline_componentStack_2381)
9428
9428
  return (
9429
9429
  reuseSuspenseHandlerOnStack(workInProgress),
9430
- (JSCompiler_object_inline_componentStack_2364 =
9431
- JSCompiler_object_inline_stack_2363.fallback),
9432
- (JSCompiler_object_inline_message_2361 = workInProgress.mode),
9430
+ (JSCompiler_object_inline_componentStack_2381 =
9431
+ JSCompiler_object_inline_stack_2380.fallback),
9432
+ (JSCompiler_object_inline_message_2378 = workInProgress.mode),
9433
9433
  (JSCompiler_temp = current.child),
9434
9434
  (instance = JSCompiler_temp.sibling),
9435
- (JSCompiler_object_inline_stack_2363 = createWorkInProgress(
9435
+ (JSCompiler_object_inline_stack_2380 = createWorkInProgress(
9436
9436
  JSCompiler_temp,
9437
9437
  {
9438
9438
  mode: "hidden",
9439
- children: JSCompiler_object_inline_stack_2363.children
9439
+ children: JSCompiler_object_inline_stack_2380.children
9440
9440
  }
9441
9441
  )),
9442
- (JSCompiler_object_inline_stack_2363.subtreeFlags =
9443
- JSCompiler_temp.subtreeFlags & 29360128),
9442
+ (JSCompiler_object_inline_stack_2380.subtreeFlags =
9443
+ JSCompiler_temp.subtreeFlags & 65011712),
9444
9444
  null !== instance
9445
- ? (JSCompiler_object_inline_componentStack_2364 =
9445
+ ? (JSCompiler_object_inline_componentStack_2381 =
9446
9446
  createWorkInProgress(
9447
9447
  instance,
9448
- JSCompiler_object_inline_componentStack_2364
9448
+ JSCompiler_object_inline_componentStack_2381
9449
9449
  ))
9450
- : ((JSCompiler_object_inline_componentStack_2364 =
9450
+ : ((JSCompiler_object_inline_componentStack_2381 =
9451
9451
  createFiberFromFragment(
9452
- JSCompiler_object_inline_componentStack_2364,
9453
- JSCompiler_object_inline_message_2361,
9452
+ JSCompiler_object_inline_componentStack_2381,
9453
+ JSCompiler_object_inline_message_2378,
9454
9454
  renderLanes,
9455
9455
  null
9456
9456
  )),
9457
- (JSCompiler_object_inline_componentStack_2364.flags |= 2)),
9458
- (JSCompiler_object_inline_componentStack_2364.return =
9457
+ (JSCompiler_object_inline_componentStack_2381.flags |= 2)),
9458
+ (JSCompiler_object_inline_componentStack_2381.return =
9459
9459
  workInProgress),
9460
- (JSCompiler_object_inline_stack_2363.return = workInProgress),
9461
- (JSCompiler_object_inline_stack_2363.sibling =
9462
- JSCompiler_object_inline_componentStack_2364),
9463
- (workInProgress.child = JSCompiler_object_inline_stack_2363),
9464
- (JSCompiler_object_inline_stack_2363 =
9465
- JSCompiler_object_inline_componentStack_2364),
9466
- (JSCompiler_object_inline_componentStack_2364 = workInProgress.child),
9467
- (JSCompiler_object_inline_message_2361 = current.child.memoizedState),
9468
- null === JSCompiler_object_inline_message_2361
9469
- ? (JSCompiler_object_inline_message_2361 =
9460
+ (JSCompiler_object_inline_stack_2380.return = workInProgress),
9461
+ (JSCompiler_object_inline_stack_2380.sibling =
9462
+ JSCompiler_object_inline_componentStack_2381),
9463
+ (workInProgress.child = JSCompiler_object_inline_stack_2380),
9464
+ (JSCompiler_object_inline_stack_2380 =
9465
+ JSCompiler_object_inline_componentStack_2381),
9466
+ (JSCompiler_object_inline_componentStack_2381 = workInProgress.child),
9467
+ (JSCompiler_object_inline_message_2378 = current.child.memoizedState),
9468
+ null === JSCompiler_object_inline_message_2378
9469
+ ? (JSCompiler_object_inline_message_2378 =
9470
9470
  mountSuspenseOffscreenState(renderLanes))
9471
9471
  : ((JSCompiler_temp =
9472
- JSCompiler_object_inline_message_2361.cachePool),
9472
+ JSCompiler_object_inline_message_2378.cachePool),
9473
9473
  null !== JSCompiler_temp
9474
9474
  ? ((instance = CacheContext._currentValue),
9475
9475
  (JSCompiler_temp =
@@ -9477,37 +9477,37 @@
9477
9477
  ? { parent: instance, pool: instance }
9478
9478
  : JSCompiler_temp))
9479
9479
  : (JSCompiler_temp = getSuspendedCache()),
9480
- (JSCompiler_object_inline_message_2361 = {
9480
+ (JSCompiler_object_inline_message_2378 = {
9481
9481
  baseLanes:
9482
- JSCompiler_object_inline_message_2361.baseLanes | renderLanes,
9482
+ JSCompiler_object_inline_message_2378.baseLanes | renderLanes,
9483
9483
  cachePool: JSCompiler_temp
9484
9484
  })),
9485
- (JSCompiler_object_inline_componentStack_2364.memoizedState =
9486
- JSCompiler_object_inline_message_2361),
9487
- (JSCompiler_object_inline_componentStack_2364.childLanes =
9485
+ (JSCompiler_object_inline_componentStack_2381.memoizedState =
9486
+ JSCompiler_object_inline_message_2378),
9487
+ (JSCompiler_object_inline_componentStack_2381.childLanes =
9488
9488
  getRemainingWorkInPrimaryTree(
9489
9489
  current,
9490
- JSCompiler_object_inline_digest_2362,
9490
+ JSCompiler_object_inline_digest_2379,
9491
9491
  renderLanes
9492
9492
  )),
9493
9493
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9494
- JSCompiler_object_inline_stack_2363
9494
+ JSCompiler_object_inline_stack_2380
9495
9495
  );
9496
9496
  pushPrimaryTreeSuspenseHandler(workInProgress);
9497
9497
  renderLanes = current.child;
9498
9498
  current = renderLanes.sibling;
9499
9499
  renderLanes = createWorkInProgress(renderLanes, {
9500
9500
  mode: "visible",
9501
- children: JSCompiler_object_inline_stack_2363.children
9501
+ children: JSCompiler_object_inline_stack_2380.children
9502
9502
  });
9503
9503
  renderLanes.return = workInProgress;
9504
9504
  renderLanes.sibling = null;
9505
9505
  null !== current &&
9506
- ((JSCompiler_object_inline_digest_2362 = workInProgress.deletions),
9507
- null === JSCompiler_object_inline_digest_2362
9506
+ ((JSCompiler_object_inline_digest_2379 = workInProgress.deletions),
9507
+ null === JSCompiler_object_inline_digest_2379
9508
9508
  ? ((workInProgress.deletions = [current]),
9509
9509
  (workInProgress.flags |= 16))
9510
- : JSCompiler_object_inline_digest_2362.push(current));
9510
+ : JSCompiler_object_inline_digest_2379.push(current));
9511
9511
  workInProgress.child = renderLanes;
9512
9512
  workInProgress.memoizedState = null;
9513
9513
  return renderLanes;
@@ -12239,6 +12239,7 @@
12239
12239
  ((finishedWork.updateQueue = null),
12240
12240
  attachSuspenseRetryListeners(finishedWork, flags)));
12241
12241
  break;
12242
+ case 30:
12242
12243
  case 21:
12243
12244
  break;
12244
12245
  default:
@@ -12542,7 +12543,7 @@
12542
12543
  break;
12543
12544
  case 12:
12544
12545
  if (flags & 2048) {
12545
- prevEffectDuration = pushNestedEffectDurations();
12546
+ flags = pushNestedEffectDurations();
12546
12547
  recursivelyTraversePassiveMountEffects(
12547
12548
  finishedRoot,
12548
12549
  finishedWork,
@@ -12551,7 +12552,7 @@
12551
12552
  );
12552
12553
  finishedRoot = finishedWork.stateNode;
12553
12554
  finishedRoot.passiveEffectDuration +=
12554
- bubbleNestedEffectDurations(prevEffectDuration);
12555
+ bubbleNestedEffectDurations(flags);
12555
12556
  try {
12556
12557
  runWithFiberInDEV(
12557
12558
  finishedWork,
@@ -12584,6 +12585,7 @@
12584
12585
  break;
12585
12586
  case 22:
12586
12587
  prevEffectDuration = finishedWork.stateNode;
12588
+ var _current = finishedWork.alternate;
12587
12589
  null !== finishedWork.memoizedState
12588
12590
  ? prevEffectDuration._visibility & OffscreenPassiveEffectsConnected
12589
12591
  ? recursivelyTraversePassiveMountEffects(
@@ -12613,10 +12615,7 @@
12613
12615
  0 !== (finishedWork.subtreeFlags & 10256)
12614
12616
  ));
12615
12617
  flags & 2048 &&
12616
- commitOffscreenPassiveMountEffects(
12617
- finishedWork.alternate,
12618
- finishedWork
12619
- );
12618
+ commitOffscreenPassiveMountEffects(_current, finishedWork);
12620
12619
  break;
12621
12620
  case 24:
12622
12621
  recursivelyTraversePassiveMountEffects(
@@ -13038,7 +13037,7 @@
13038
13037
  (workInProgress.deletions = null),
13039
13038
  (workInProgress.actualDuration = -0),
13040
13039
  (workInProgress.actualStartTime = -1.1));
13041
- workInProgress.flags = current.flags & 29360128;
13040
+ workInProgress.flags = current.flags & 65011712;
13042
13041
  workInProgress.childLanes = current.childLanes;
13043
13042
  workInProgress.lanes = current.lanes;
13044
13043
  workInProgress.child = current.child;
@@ -13076,7 +13075,7 @@
13076
13075
  return workInProgress;
13077
13076
  }
13078
13077
  function resetWorkInProgress(workInProgress, renderLanes) {
13079
- workInProgress.flags &= 29360130;
13078
+ workInProgress.flags &= 65011714;
13080
13079
  var current = workInProgress.alternate;
13081
13080
  null === current
13082
13081
  ? ((workInProgress.childLanes = 0),
@@ -13395,8 +13394,8 @@
13395
13394
 
13396
13395
  )
13397
13396
  (newChildLanes |= _child2.lanes | _child2.childLanes),
13398
- (subtreeFlags |= _child2.subtreeFlags & 29360128),
13399
- (subtreeFlags |= _child2.flags & 29360128),
13397
+ (subtreeFlags |= _child2.subtreeFlags & 65011712),
13398
+ (subtreeFlags |= _child2.flags & 65011712),
13400
13399
  (_treeBaseDuration += _child2.treeBaseDuration),
13401
13400
  (_child2 = _child2.sibling);
13402
13401
  completedWork.treeBaseDuration = _treeBaseDuration;
@@ -13408,8 +13407,8 @@
13408
13407
  )
13409
13408
  (newChildLanes |=
13410
13409
  _treeBaseDuration.lanes | _treeBaseDuration.childLanes),
13411
- (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128),
13412
- (subtreeFlags |= _treeBaseDuration.flags & 29360128),
13410
+ (subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712),
13411
+ (subtreeFlags |= _treeBaseDuration.flags & 65011712),
13413
13412
  (_treeBaseDuration.return = completedWork),
13414
13413
  (_treeBaseDuration = _treeBaseDuration.sibling);
13415
13414
  else if ((completedWork.mode & ProfileMode) !== NoMode) {
@@ -13986,6 +13985,8 @@
13986
13985
  );
13987
13986
  case 25:
13988
13987
  return null;
13988
+ case 30:
13989
+ return null;
13989
13990
  }
13990
13991
  throw Error(
13991
13992
  "Unknown unit of work tag (" +
@@ -14325,6 +14326,7 @@
14325
14326
  lanes,
14326
14327
  workInProgressRootRecoverableErrors,
14327
14328
  workInProgressTransitions,
14329
+ workInProgressAppearingViewTransitions,
14328
14330
  workInProgressRootDidIncludeRecursiveRenderUpdate,
14329
14331
  workInProgressDeferredLane,
14330
14332
  workInProgressRootInterleavedUpdatedLanes,
@@ -14353,6 +14355,7 @@
14353
14355
  forceSync,
14354
14356
  workInProgressRootRecoverableErrors,
14355
14357
  workInProgressTransitions,
14358
+ workInProgressAppearingViewTransitions,
14356
14359
  workInProgressRootDidIncludeRecursiveRenderUpdate,
14357
14360
  lanes,
14358
14361
  workInProgressDeferredLane,
@@ -14373,6 +14376,7 @@
14373
14376
  forceSync,
14374
14377
  workInProgressRootRecoverableErrors,
14375
14378
  workInProgressTransitions,
14379
+ workInProgressAppearingViewTransitions,
14376
14380
  workInProgressRootDidIncludeRecursiveRenderUpdate,
14377
14381
  lanes,
14378
14382
  workInProgressDeferredLane,
@@ -14396,6 +14400,7 @@
14396
14400
  finishedWork,
14397
14401
  recoverableErrors,
14398
14402
  transitions,
14403
+ appearingViewTransitions,
14399
14404
  didIncludeRenderPhaseUpdate,
14400
14405
  lanes,
14401
14406
  spawnedLane,
@@ -14410,12 +14415,14 @@
14410
14415
  root.timeoutHandle = noTimeout;
14411
14416
  suspendedCommitReason = finishedWork.subtreeFlags;
14412
14417
  if (
14413
- suspendedCommitReason & 8192 ||
14414
- 16785408 === (suspendedCommitReason & 16785408)
14418
+ (suspendedCommitReason =
14419
+ suspendedCommitReason & 8192 ||
14420
+ 16785408 === (suspendedCommitReason & 16785408))
14415
14421
  )
14416
14422
  if (
14417
14423
  ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
14418
- accumulateSuspenseyCommitOnFiber(finishedWork),
14424
+ suspendedCommitReason &&
14425
+ accumulateSuspenseyCommitOnFiber(finishedWork),
14419
14426
  (suspendedCommitReason = waitForCommitToBeReady()),
14420
14427
  null !== suspendedCommitReason)
14421
14428
  ) {
@@ -14427,6 +14434,7 @@
14427
14434
  lanes,
14428
14435
  recoverableErrors,
14429
14436
  transitions,
14437
+ appearingViewTransitions,
14430
14438
  didIncludeRenderPhaseUpdate,
14431
14439
  spawnedLane,
14432
14440
  updatedLanes,
@@ -14451,6 +14459,7 @@
14451
14459
  lanes,
14452
14460
  recoverableErrors,
14453
14461
  transitions,
14462
+ appearingViewTransitions,
14454
14463
  didIncludeRenderPhaseUpdate,
14455
14464
  spawnedLane,
14456
14465
  updatedLanes,
@@ -14560,6 +14569,7 @@
14560
14569
  workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors =
14561
14570
  null;
14562
14571
  workInProgressRootDidIncludeRecursiveRenderUpdate = !1;
14572
+ workInProgressAppearingViewTransitions = null;
14563
14573
  0 !== (lanes & 8) && (lanes |= lanes & 32);
14564
14574
  var allEntangledLanes = root.entangledLanes;
14565
14575
  if (0 !== allEntangledLanes)
@@ -15118,6 +15128,7 @@
15118
15128
  lanes,
15119
15129
  recoverableErrors,
15120
15130
  transitions,
15131
+ appearingViewTransitions,
15121
15132
  didIncludeRenderPhaseUpdate,
15122
15133
  spawnedLane,
15123
15134
  updatedLanes,
@@ -15173,25 +15184,31 @@
15173
15184
  }))
15174
15185
  : ((root.callbackNode = null), (root.callbackPriority = 0));
15175
15186
  commitStartTime = now();
15176
- lanes = 0 !== (finishedWork.flags & 13878);
15177
- if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) {
15178
- lanes = ReactSharedInternals.T;
15187
+ recoverableErrors = 0 !== (finishedWork.flags & 13878);
15188
+ if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) {
15189
+ recoverableErrors = ReactSharedInternals.T;
15179
15190
  ReactSharedInternals.T = null;
15180
- recoverableErrors = ReactDOMSharedInternals.p;
15191
+ transitions = ReactDOMSharedInternals.p;
15181
15192
  ReactDOMSharedInternals.p = DiscreteEventPriority;
15182
- transitions = executionContext;
15193
+ spawnedLane = executionContext;
15183
15194
  executionContext |= CommitContext;
15184
15195
  try {
15185
- commitBeforeMutationEffects(root, finishedWork);
15196
+ commitBeforeMutationEffects(
15197
+ root,
15198
+ finishedWork,
15199
+ lanes,
15200
+ appearingViewTransitions
15201
+ );
15186
15202
  } finally {
15187
- (executionContext = transitions),
15188
- (ReactDOMSharedInternals.p = recoverableErrors),
15189
- (ReactSharedInternals.T = lanes);
15203
+ (executionContext = spawnedLane),
15204
+ (ReactDOMSharedInternals.p = transitions),
15205
+ (ReactSharedInternals.T = recoverableErrors);
15190
15206
  }
15191
15207
  }
15192
15208
  pendingEffectsStatus = PENDING_MUTATION_PHASE;
15193
15209
  flushMutationEffects();
15194
15210
  flushLayoutEffects();
15211
+ flushSpawnedWork();
15195
15212
  }
15196
15213
  }
15197
15214
  function flushMutationEffects() {
@@ -15332,7 +15349,6 @@
15332
15349
  var root = pendingEffectsRoot,
15333
15350
  finishedWork = pendingFinishedWork,
15334
15351
  lanes = pendingEffectsLanes,
15335
- recoverableErrors = pendingRecoverableErrors,
15336
15352
  rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
15337
15353
  if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
15338
15354
  rootHasLayoutEffect = ReactSharedInternals.T;
@@ -15364,21 +15380,34 @@
15364
15380
  (ReactSharedInternals.T = rootHasLayoutEffect);
15365
15381
  }
15366
15382
  }
15383
+ pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE;
15384
+ }
15385
+ }
15386
+ function flushSpawnedWork() {
15387
+ if (
15388
+ pendingEffectsStatus === PENDING_SPAWNED_WORK ||
15389
+ pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE
15390
+ ) {
15391
+ pendingEffectsStatus = NO_PENDING_EFFECTS;
15367
15392
  requestPaint();
15368
- (rootHasLayoutEffect =
15369
- 0 !== (finishedWork.subtreeFlags & 10256) ||
15370
- 0 !== (finishedWork.flags & 10256))
15393
+ var root = pendingEffectsRoot,
15394
+ finishedWork = pendingFinishedWork,
15395
+ lanes = pendingEffectsLanes,
15396
+ recoverableErrors = pendingRecoverableErrors,
15397
+ rootDidHavePassiveEffects =
15398
+ 0 !== (finishedWork.subtreeFlags & 10256) ||
15399
+ 0 !== (finishedWork.flags & 10256);
15400
+ rootDidHavePassiveEffects
15371
15401
  ? (pendingEffectsStatus = PENDING_PASSIVE_PHASE)
15372
15402
  : ((pendingEffectsStatus = NO_PENDING_EFFECTS),
15373
15403
  (pendingEffectsRoot = null),
15374
15404
  releaseRootPooledCache(root, root.pendingLanes),
15375
15405
  (nestedPassiveUpdateCount = 0),
15376
15406
  (rootWithPassiveNestedUpdates = null));
15377
- previousPriority = root.pendingLanes;
15378
- 0 === previousPriority &&
15379
- (legacyErrorBoundariesThatAlreadyFailed = null);
15380
- rootHasLayoutEffect || commitDoubleInvokeEffectsInDEV(root);
15381
- rootHasLayoutEffect = lanesToEventPriority(lanes);
15407
+ var remainingLanes = root.pendingLanes;
15408
+ 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
15409
+ rootDidHavePassiveEffects || commitDoubleInvokeEffectsInDEV(root);
15410
+ rootDidHavePassiveEffects = lanesToEventPriority(lanes);
15382
15411
  finishedWork = finishedWork.stateNode;
15383
15412
  if (
15384
15413
  injectedHook &&
@@ -15386,7 +15415,7 @@
15386
15415
  )
15387
15416
  try {
15388
15417
  var didError = 128 === (finishedWork.current.flags & 128);
15389
- switch (rootHasLayoutEffect) {
15418
+ switch (rootDidHavePassiveEffects) {
15390
15419
  case DiscreteEventPriority:
15391
15420
  var schedulerPriority = ImmediatePriority;
15392
15421
  break;
@@ -15446,8 +15475,8 @@
15446
15475
  }
15447
15476
  0 !== (pendingEffectsLanes & 3) && flushPendingEffects();
15448
15477
  ensureRootIsScheduled(root);
15449
- previousPriority = root.pendingLanes;
15450
- 0 !== (lanes & 4194218) && 0 !== (previousPriority & 42)
15478
+ remainingLanes = root.pendingLanes;
15479
+ 0 !== (lanes & 4194218) && 0 !== (remainingLanes & 42)
15451
15480
  ? ((nestedUpdateScheduled = !0),
15452
15481
  root === rootWithNestedUpdates
15453
15482
  ? nestedUpdateCount++
@@ -15477,6 +15506,7 @@
15477
15506
  function flushPendingEffects(wasDelayedCommit) {
15478
15507
  flushMutationEffects();
15479
15508
  flushLayoutEffects();
15509
+ flushSpawnedWork();
15480
15510
  return flushPassiveEffects(wasDelayedCommit);
15481
15511
  }
15482
15512
  function flushPassiveEffects() {
@@ -15694,14 +15724,14 @@
15694
15724
  parentFiber,
15695
15725
  isInStrictMode
15696
15726
  ) {
15697
- if (0 !== (parentFiber.subtreeFlags & 33562624))
15727
+ if (0 !== (parentFiber.subtreeFlags & 67117056))
15698
15728
  for (parentFiber = parentFiber.child; null !== parentFiber; ) {
15699
15729
  var root = root$jscomp$0,
15700
15730
  fiber = parentFiber,
15701
15731
  isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE;
15702
15732
  isStrictModeFiber = isInStrictMode || isStrictModeFiber;
15703
15733
  22 !== fiber.tag
15704
- ? fiber.flags & 33554432
15734
+ ? fiber.flags & 67108864
15705
15735
  ? isStrictModeFiber &&
15706
15736
  runWithFiberInDEV(
15707
15737
  fiber,
@@ -15723,7 +15753,7 @@
15723
15753
  root,
15724
15754
  fiber
15725
15755
  )
15726
- : fiber.subtreeFlags & 33554432 &&
15756
+ : fiber.subtreeFlags & 67108864 &&
15727
15757
  runWithFiberInDEV(
15728
15758
  fiber,
15729
15759
  recursivelyTraverseAndDoubleInvokeEffectsInDEV,
@@ -20960,6 +20990,7 @@
20960
20990
  var Scheduler = require("scheduler"),
20961
20991
  React = require("react"),
20962
20992
  ReactDOM = require("react-dom"),
20993
+ assign = Object.assign,
20963
20994
  REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
20964
20995
  REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
20965
20996
  REACT_PORTAL_TYPE = Symbol.for("react.portal"),
@@ -20978,30 +21009,13 @@
20978
21009
  var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
20979
21010
  Symbol.for("react.legacy_hidden");
20980
21011
  Symbol.for("react.tracing_marker");
20981
- var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
20982
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
21012
+ var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
21013
+ Symbol.for("react.view_transition");
21014
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
20983
21015
  REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
21016
+ isArrayImpl = Array.isArray,
20984
21017
  ReactSharedInternals =
20985
21018
  React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
20986
- assign = Object.assign,
20987
- disabledDepth = 0,
20988
- prevLog,
20989
- prevInfo,
20990
- prevWarn,
20991
- prevError,
20992
- prevGroup,
20993
- prevGroupCollapsed,
20994
- prevGroupEnd;
20995
- disabledLog.__reactDisabledLog = !0;
20996
- var prefix,
20997
- suffix,
20998
- reentry = !1;
20999
- var componentFrameCache = new (
21000
- "function" === typeof WeakMap ? WeakMap : Map
21001
- )();
21002
- var current = null,
21003
- isRendering = !1,
21004
- isArrayImpl = Array.isArray,
21005
21019
  ReactDOMSharedInternals =
21006
21020
  ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
21007
21021
  NotPending = Object.freeze({
@@ -21071,6 +21085,23 @@
21071
21085
  ),
21072
21086
  illegalAttributeNameCache = {},
21073
21087
  validatedAttributeNameCache = {},
21088
+ disabledDepth = 0,
21089
+ prevLog,
21090
+ prevInfo,
21091
+ prevWarn,
21092
+ prevError,
21093
+ prevGroup,
21094
+ prevGroupCollapsed,
21095
+ prevGroupEnd;
21096
+ disabledLog.__reactDisabledLog = !0;
21097
+ var prefix,
21098
+ suffix,
21099
+ reentry = !1;
21100
+ var componentFrameCache = new (
21101
+ "function" === typeof WeakMap ? WeakMap : Map
21102
+ )();
21103
+ var current = null,
21104
+ isRendering = !1,
21074
21105
  escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g,
21075
21106
  didWarnValueDefaultValue$1 = !1,
21076
21107
  didWarnCheckedDefaultChecked = !1,
@@ -22308,6 +22339,26 @@
22308
22339
  _currentRenderer: null,
22309
22340
  _currentRenderer2: null
22310
22341
  },
22342
+ CapturedStacks = new WeakMap(),
22343
+ forkStack = [],
22344
+ forkStackIndex = 0,
22345
+ treeForkProvider = null,
22346
+ treeForkCount = 0,
22347
+ idStack = [],
22348
+ idStackIndex = 0,
22349
+ treeContextProvider = null,
22350
+ treeContextId = 1,
22351
+ treeContextOverflow = "",
22352
+ hydrationParentFiber = null,
22353
+ nextHydratableInstance = null,
22354
+ isHydrating = !1,
22355
+ didSuspendOrErrorDEV = !1,
22356
+ hydrationDiffRootDEV = null,
22357
+ hydrationErrors = null,
22358
+ rootOrSingletonContext = !1,
22359
+ HydrationMismatchException = Error(
22360
+ "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."
22361
+ ),
22311
22362
  ReactStrictModeWarnings = {
22312
22363
  recordUnsafeLifecycleWarnings: function () {},
22313
22364
  flushPendingUnsafeLifecycleWarnings: function () {},
@@ -22515,21 +22566,6 @@
22515
22566
  var didWarnOnInvalidCallback = new Set();
22516
22567
  Object.freeze(fakeInternalInstance);
22517
22568
  var classComponentUpdater = {
22518
- isMounted: function (component) {
22519
- var owner = current;
22520
- if (null !== owner && isRendering && 1 === owner.tag) {
22521
- var instance = owner.stateNode;
22522
- instance._warnedAboutRefsInRender ||
22523
- console.error(
22524
- "%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.",
22525
- getComponentNameFromFiber(owner) || "A component"
22526
- );
22527
- instance._warnedAboutRefsInRender = !0;
22528
- }
22529
- return (component = component._reactInternals)
22530
- ? getNearestMountedFiber(component) === component
22531
- : !1;
22532
- },
22533
22569
  enqueueSetState: function (inst, payload, callback) {
22534
22570
  inst = inst._reactInternals;
22535
22571
  var lane = requestUpdateLane(inst),
@@ -22577,26 +22613,6 @@
22577
22613
  injectedProfilingHooks.markForceUpdateScheduled(inst, lane);
22578
22614
  }
22579
22615
  },
22580
- CapturedStacks = new WeakMap(),
22581
- forkStack = [],
22582
- forkStackIndex = 0,
22583
- treeForkProvider = null,
22584
- treeForkCount = 0,
22585
- idStack = [],
22586
- idStackIndex = 0,
22587
- treeContextProvider = null,
22588
- treeContextId = 1,
22589
- treeContextOverflow = "",
22590
- hydrationParentFiber = null,
22591
- nextHydratableInstance = null,
22592
- isHydrating = !1,
22593
- didSuspendOrErrorDEV = !1,
22594
- hydrationDiffRootDEV = null,
22595
- hydrationErrors = null,
22596
- rootOrSingletonContext = !1,
22597
- HydrationMismatchException = Error(
22598
- "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."
22599
- ),
22600
22616
  SuspenseException = Error(
22601
22617
  "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`."
22602
22618
  ),
@@ -23977,6 +23993,7 @@
23977
23993
  workInProgressSuspendedRetryLanes = 0,
23978
23994
  workInProgressRootConcurrentErrors = null,
23979
23995
  workInProgressRootRecoverableErrors = null,
23996
+ workInProgressAppearingViewTransitions = null,
23980
23997
  workInProgressRootDidIncludeRecursiveRenderUpdate = !1,
23981
23998
  globalMostRecentFallbackTime = 0,
23982
23999
  FALLBACK_THROTTLE_MS = 300,
@@ -23990,7 +24007,9 @@
23990
24007
  NO_PENDING_EFFECTS = 0,
23991
24008
  PENDING_MUTATION_PHASE = 1,
23992
24009
  PENDING_LAYOUT_PHASE = 2,
23993
- PENDING_PASSIVE_PHASE = 3,
24010
+ PENDING_AFTER_MUTATION_PHASE = 3,
24011
+ PENDING_SPAWNED_WORK = 4,
24012
+ PENDING_PASSIVE_PHASE = 5,
23994
24013
  pendingEffectsStatus = 0,
23995
24014
  pendingEffectsRoot = null,
23996
24015
  pendingFinishedWork = null,
@@ -24542,11 +24561,11 @@
24542
24561
  };
24543
24562
  (function () {
24544
24563
  var isomorphicReactPackageVersion = React.version;
24545
- if ("19.1.0-canary-7b402084-20250107" !== isomorphicReactPackageVersion)
24564
+ if ("19.1.0-canary-74ea0c73-20250109" !== isomorphicReactPackageVersion)
24546
24565
  throw Error(
24547
24566
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
24548
24567
  (isomorphicReactPackageVersion +
24549
- "\n - react-dom: 19.1.0-canary-7b402084-20250107\nLearn more: https://react.dev/warnings/version-mismatch")
24568
+ "\n - react-dom: 19.1.0-canary-74ea0c73-20250109\nLearn more: https://react.dev/warnings/version-mismatch")
24550
24569
  );
24551
24570
  })();
24552
24571
  ("function" === typeof Map &&
@@ -24583,10 +24602,10 @@
24583
24602
  !(function () {
24584
24603
  var internals = {
24585
24604
  bundleType: 1,
24586
- version: "19.1.0-canary-7b402084-20250107",
24605
+ version: "19.1.0-canary-74ea0c73-20250109",
24587
24606
  rendererPackageName: "react-dom",
24588
24607
  currentDispatcherRef: ReactSharedInternals,
24589
- reconcilerVersion: "19.1.0-canary-7b402084-20250107"
24608
+ reconcilerVersion: "19.1.0-canary-74ea0c73-20250109"
24590
24609
  };
24591
24610
  internals.overrideHookState = overrideHookState;
24592
24611
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -24732,7 +24751,7 @@
24732
24751
  listenToAllSupportedEvents(container);
24733
24752
  return new ReactDOMHydrationRoot(initialChildren);
24734
24753
  };
24735
- exports.version = "19.1.0-canary-7b402084-20250107";
24754
+ exports.version = "19.1.0-canary-74ea0c73-20250109";
24736
24755
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
24737
24756
  "function" ===
24738
24757
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&