react-dom 19.3.0-canary-c7862584-20251006 → 19.3.0-canary-a4eb2dfa-20251006

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.
@@ -86,6 +86,8 @@
86
86
  return "Suspense";
87
87
  case REACT_SUSPENSE_LIST_TYPE:
88
88
  return "SuspenseList";
89
+ case REACT_VIEW_TRANSITION_TYPE:
90
+ return "ViewTransition";
89
91
  }
90
92
  if ("object" === typeof type)
91
93
  switch (type.$$typeof) {
@@ -842,7 +844,8 @@
842
844
  return parentContext.insertionMode >= HTML_TABLE_MODE ||
843
845
  parentContext.insertionMode < HTML_MODE
844
846
  ? createFormatContext(HTML_MODE, null, subtreeScope, null)
845
- : parentContext.tagScope !== subtreeScope
847
+ : null !== parentContext.viewTransition ||
848
+ parentContext.tagScope !== subtreeScope
846
849
  ? createFormatContext(
847
850
  parentContext.insertionMode,
848
851
  parentContext.selectedValue,
@@ -865,7 +868,8 @@
865
868
  };
866
869
  }
867
870
  function getSuspenseFallbackFormatContext(resumableState, parentContext) {
868
- parentContext.tagScope & 32 && (resumableState.instructions |= 128);
871
+ parentContext.tagScope & 32 &&
872
+ (resumableState.instructions |= NeedUpgradeToViewTransitions);
869
873
  return createFormatContext(
870
874
  parentContext.insertionMode,
871
875
  parentContext.selectedValue,
@@ -886,6 +890,31 @@
886
890
  resumableState
887
891
  );
888
892
  }
893
+ function makeId(resumableState, treeId, localId) {
894
+ resumableState = "_" + resumableState.idPrefix + "R_" + treeId;
895
+ 0 < localId && (resumableState += "H" + localId.toString(32));
896
+ return resumableState + "_";
897
+ }
898
+ function pushViewTransitionAttributes(target, formatContext) {
899
+ formatContext = formatContext.viewTransition;
900
+ null !== formatContext &&
901
+ ("auto" !== formatContext.name &&
902
+ (pushStringAttribute(
903
+ target,
904
+ "vt-name",
905
+ 0 === formatContext.nameIdx
906
+ ? formatContext.name
907
+ : formatContext.name + "_" + formatContext.nameIdx
908
+ ),
909
+ formatContext.nameIdx++),
910
+ pushStringAttribute(target, "vt-update", formatContext.update),
911
+ "none" !== formatContext.enter &&
912
+ pushStringAttribute(target, "vt-enter", formatContext.enter),
913
+ "none" !== formatContext.exit &&
914
+ pushStringAttribute(target, "vt-exit", formatContext.exit),
915
+ "none" !== formatContext.share &&
916
+ pushStringAttribute(target, "vt-share", formatContext.share));
917
+ }
889
918
  function pushStyleAttribute(target, style) {
890
919
  if ("object" !== typeof style)
891
920
  throw Error(
@@ -1431,7 +1460,7 @@
1431
1460
  checkHtmlStringCoercion(styleText);
1432
1461
  return ("" + styleText).replace(styleRegex, styleReplacer);
1433
1462
  }
1434
- function pushSelfClosing(target, props, tag) {
1463
+ function pushSelfClosing(target, props, tag, formatContext) {
1435
1464
  target.push(startChunkForTag(tag));
1436
1465
  for (var propKey in props)
1437
1466
  if (hasOwnProperty.call(props, propKey)) {
@@ -1448,6 +1477,7 @@
1448
1477
  pushAttribute(target, propKey, propValue);
1449
1478
  }
1450
1479
  }
1480
+ pushViewTransitionAttributes(target, formatContext);
1451
1481
  target.push(endOfStartTagSelfClosing);
1452
1482
  return null;
1453
1483
  }
@@ -1525,7 +1555,7 @@
1525
1555
  target.push(endChunkForTag("script"));
1526
1556
  return null;
1527
1557
  }
1528
- function pushStartSingletonElement(target, props, tag) {
1558
+ function pushStartSingletonElement(target, props, tag, formatContext) {
1529
1559
  target.push(startChunkForTag(tag));
1530
1560
  var innerHTML = (tag = null),
1531
1561
  propKey;
@@ -1544,11 +1574,12 @@
1544
1574
  pushAttribute(target, propKey, propValue);
1545
1575
  }
1546
1576
  }
1577
+ pushViewTransitionAttributes(target, formatContext);
1547
1578
  target.push(endOfStartTag);
1548
1579
  pushInnerHTML(target, innerHTML, tag);
1549
1580
  return tag;
1550
1581
  }
1551
- function pushStartGenericElement(target, props, tag) {
1582
+ function pushStartGenericElement(target, props, tag, formatContext) {
1552
1583
  target.push(startChunkForTag(tag));
1553
1584
  var innerHTML = (tag = null),
1554
1585
  propKey;
@@ -1567,6 +1598,7 @@
1567
1598
  pushAttribute(target, propKey, propValue);
1568
1599
  }
1569
1600
  }
1601
+ pushViewTransitionAttributes(target, formatContext);
1570
1602
  target.push(endOfStartTag);
1571
1603
  pushInnerHTML(target, innerHTML, tag);
1572
1604
  return "string" === typeof tag
@@ -1672,6 +1704,7 @@
1672
1704
  pushAttribute(target$jscomp$0, propKey, propValue);
1673
1705
  }
1674
1706
  }
1707
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1675
1708
  target$jscomp$0.push(endOfStartTag);
1676
1709
  pushInnerHTML(target$jscomp$0, innerHTML, children);
1677
1710
  if ("string" === typeof children) {
@@ -1720,6 +1753,7 @@
1720
1753
  );
1721
1754
  }
1722
1755
  }
1756
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1723
1757
  target$jscomp$0.push(endOfStartTag);
1724
1758
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
1725
1759
  return children$jscomp$0;
@@ -1833,6 +1867,7 @@
1833
1867
  null === value$jscomp$0 &&
1834
1868
  null !== defaultValue &&
1835
1869
  (value$jscomp$0 = defaultValue);
1870
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1836
1871
  target$jscomp$0.push(endOfStartTag);
1837
1872
  if (null != children$jscomp$2) {
1838
1873
  console.error(
@@ -1960,6 +1995,7 @@
1960
1995
  ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
1961
1996
  : null !== defaultValue$jscomp$0 &&
1962
1997
  pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
1998
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1963
1999
  target$jscomp$0.push(endOfStartTagSelfClosing);
1964
2000
  null != formData &&
1965
2001
  formData.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -2026,6 +2062,7 @@
2026
2062
  formTarget$jscomp$0,
2027
2063
  name$jscomp$0
2028
2064
  );
2065
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2029
2066
  target$jscomp$0.push(endOfStartTag);
2030
2067
  null != formData$jscomp$0 &&
2031
2068
  formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -2123,6 +2160,7 @@
2123
2160
  pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
2124
2161
  null != formTarget$jscomp$1 &&
2125
2162
  pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
2163
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2126
2164
  target$jscomp$0.push(endOfStartTag);
2127
2165
  null !== formActionName &&
2128
2166
  (target$jscomp$0.push('<input type="hidden"'),
@@ -2159,6 +2197,7 @@
2159
2197
  );
2160
2198
  }
2161
2199
  }
2200
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2162
2201
  target$jscomp$0.push(endOfStartTag);
2163
2202
  return null;
2164
2203
  case "object":
@@ -2204,6 +2243,7 @@
2204
2243
  );
2205
2244
  }
2206
2245
  }
2246
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2207
2247
  target$jscomp$0.push(endOfStartTag);
2208
2248
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
2209
2249
  if ("string" === typeof children$jscomp$5) {
@@ -2587,20 +2627,32 @@
2587
2627
  var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
2588
2628
  target$jscomp$0,
2589
2629
  props,
2590
- "meta"
2630
+ "meta",
2631
+ formatContext
2591
2632
  );
2592
2633
  else
2593
2634
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
2594
2635
  (JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
2595
2636
  ? null
2596
2637
  : "string" === typeof props.charSet
2597
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
2638
+ ? pushSelfClosing(
2639
+ renderState.charsetChunks,
2640
+ props,
2641
+ "meta",
2642
+ formatContext
2643
+ )
2598
2644
  : "viewport" === props.name
2599
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
2645
+ ? pushSelfClosing(
2646
+ renderState.viewportChunks,
2647
+ props,
2648
+ "meta",
2649
+ formatContext
2650
+ )
2600
2651
  : pushSelfClosing(
2601
2652
  renderState.hoistableChunks,
2602
2653
  props,
2603
- "meta"
2654
+ "meta",
2655
+ formatContext
2604
2656
  ));
2605
2657
  return JSCompiler_inline_result$jscomp$8;
2606
2658
  case "listing":
@@ -2628,6 +2680,7 @@
2628
2680
  );
2629
2681
  }
2630
2682
  }
2683
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2631
2684
  target$jscomp$0.push(endOfStartTag);
2632
2685
  if (null != innerHTML$jscomp$7) {
2633
2686
  if (null != children$jscomp$10)
@@ -2746,7 +2799,7 @@
2746
2799
  promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
2747
2800
  }
2748
2801
  }
2749
- return pushSelfClosing(target$jscomp$0, props, "img");
2802
+ return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
2750
2803
  case "base":
2751
2804
  case "area":
2752
2805
  case "br":
@@ -2758,7 +2811,7 @@
2758
2811
  case "source":
2759
2812
  case "track":
2760
2813
  case "wbr":
2761
- return pushSelfClosing(target$jscomp$0, props, type);
2814
+ return pushSelfClosing(target$jscomp$0, props, type, formatContext);
2762
2815
  case "annotation-xml":
2763
2816
  case "color-profile":
2764
2817
  case "font-face":
@@ -2778,13 +2831,15 @@
2778
2831
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
2779
2832
  preamble.headChunks,
2780
2833
  props,
2781
- "head"
2834
+ "head",
2835
+ formatContext
2782
2836
  );
2783
2837
  } else
2784
2838
  JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
2785
2839
  target$jscomp$0,
2786
2840
  props,
2787
- "head"
2841
+ "head",
2842
+ formatContext
2788
2843
  );
2789
2844
  return JSCompiler_inline_result$jscomp$9;
2790
2845
  case "body":
@@ -2797,13 +2852,15 @@
2797
2852
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
2798
2853
  preamble$jscomp$0.bodyChunks,
2799
2854
  props,
2800
- "body"
2855
+ "body",
2856
+ formatContext
2801
2857
  );
2802
2858
  } else
2803
2859
  JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
2804
2860
  target$jscomp$0,
2805
2861
  props,
2806
- "body"
2862
+ "body",
2863
+ formatContext
2807
2864
  );
2808
2865
  return JSCompiler_inline_result$jscomp$10;
2809
2866
  case "html":
@@ -2816,13 +2873,15 @@
2816
2873
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
2817
2874
  preamble$jscomp$1.htmlChunks,
2818
2875
  props,
2819
- "html"
2876
+ "html",
2877
+ formatContext
2820
2878
  );
2821
2879
  } else
2822
2880
  JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
2823
2881
  target$jscomp$0,
2824
2882
  props,
2825
- "html"
2883
+ "html",
2884
+ formatContext
2826
2885
  );
2827
2886
  return JSCompiler_inline_result$jscomp$11;
2828
2887
  default:
@@ -2874,6 +2933,7 @@
2874
2933
  }
2875
2934
  }
2876
2935
  }
2936
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2877
2937
  target$jscomp$0.push(endOfStartTag);
2878
2938
  pushInnerHTML(
2879
2939
  target$jscomp$0,
@@ -2883,7 +2943,12 @@
2883
2943
  return children$jscomp$11;
2884
2944
  }
2885
2945
  }
2886
- return pushStartGenericElement(target$jscomp$0, props, type);
2946
+ return pushStartGenericElement(
2947
+ target$jscomp$0,
2948
+ props,
2949
+ type,
2950
+ formatContext
2951
+ );
2887
2952
  }
2888
2953
  function endChunkForTag(tag) {
2889
2954
  var chunk = endTagCache.get(tag);
@@ -3610,6 +3675,8 @@
3610
3675
  return "SuspenseList";
3611
3676
  case REACT_ACTIVITY_TYPE:
3612
3677
  return "Activity";
3678
+ case REACT_VIEW_TRANSITION_TYPE:
3679
+ return "ViewTransition";
3613
3680
  }
3614
3681
  if ("object" === typeof type)
3615
3682
  switch (
@@ -3739,6 +3806,13 @@
3739
3806
  ),
3740
3807
  (didWarnAboutNoopUpdateForComponent[warningKey] = !0));
3741
3808
  }
3809
+ function getTreeId(context) {
3810
+ var overflow = context.overflow;
3811
+ context = context.id;
3812
+ return (
3813
+ (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow
3814
+ );
3815
+ }
3742
3816
  function pushTreeContext(baseContext, totalChildren, index) {
3743
3817
  var baseIdWithLeadingBit = baseContext.id;
3744
3818
  baseContext = baseContext.overflow;
@@ -4364,6 +4438,8 @@
4364
4438
  return describeBuiltInComponentFrame("SuspenseList");
4365
4439
  case REACT_SUSPENSE_TYPE:
4366
4440
  return describeBuiltInComponentFrame("Suspense");
4441
+ case REACT_VIEW_TRANSITION_TYPE:
4442
+ return describeBuiltInComponentFrame("ViewTransition");
4367
4443
  }
4368
4444
  return "";
4369
4445
  }
@@ -5765,6 +5841,26 @@
5765
5841
  }
5766
5842
  return;
5767
5843
  case REACT_VIEW_TRANSITION_TYPE:
5844
+ var prevContext$jscomp$0 = task.formatContext,
5845
+ prevKeyPath$jscomp$4 = task.keyPath;
5846
+ var resumableState$jscomp$0 = request.resumableState;
5847
+ if (null == props.name || "auto" === props.name) {
5848
+ var treeId = getTreeId(task.treeContext);
5849
+ makeId(resumableState$jscomp$0, treeId, 0);
5850
+ }
5851
+ task.formatContext = prevContext$jscomp$0;
5852
+ task.keyPath = keyPath;
5853
+ if (null != props.name && "auto" !== props.name)
5854
+ renderNodeDestructive(request, task, props.children, -1);
5855
+ else {
5856
+ var prevTreeContext = task.treeContext;
5857
+ task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
5858
+ renderNode(request, task, props.children, -1);
5859
+ task.treeContext = prevTreeContext;
5860
+ }
5861
+ task.formatContext = prevContext$jscomp$0;
5862
+ task.keyPath = prevKeyPath$jscomp$4;
5863
+ return;
5768
5864
  case REACT_SCOPE_TYPE:
5769
5865
  throw Error(
5770
5866
  "ReactDOMServer does not yet support scope components."
@@ -5789,8 +5885,8 @@
5789
5885
  (task.row = _prevRow);
5790
5886
  }
5791
5887
  } else {
5792
- var prevKeyPath$jscomp$4 = task.keyPath,
5793
- prevContext$jscomp$0 = task.formatContext,
5888
+ var prevKeyPath$jscomp$5 = task.keyPath,
5889
+ prevContext$jscomp$1 = task.formatContext,
5794
5890
  prevRow$jscomp$0 = task.row,
5795
5891
  parentBoundary = task.blockedBoundary,
5796
5892
  parentPreamble = task.blockedPreamble,
@@ -5850,7 +5946,7 @@
5850
5946
  task.keyPath = fallbackKeyPath;
5851
5947
  task.formatContext = getSuspenseFallbackFormatContext(
5852
5948
  request.resumableState,
5853
- prevContext$jscomp$0
5949
+ prevContext$jscomp$1
5854
5950
  );
5855
5951
  task.componentStack =
5856
5952
  replaceSuspenseComponentStackWithSuspenseFallbackStack(
@@ -5875,8 +5971,8 @@
5875
5971
  } finally {
5876
5972
  (task.blockedSegment = parentSegment),
5877
5973
  (task.blockedPreamble = parentPreamble),
5878
- (task.keyPath = prevKeyPath$jscomp$4),
5879
- (task.formatContext = prevContext$jscomp$0);
5974
+ (task.keyPath = prevKeyPath$jscomp$5),
5975
+ (task.formatContext = prevContext$jscomp$1);
5880
5976
  }
5881
5977
  var suspendedPrimaryTask = createRenderTask(
5882
5978
  request,
@@ -5910,7 +6006,7 @@
5910
6006
  task.keyPath = keyPath;
5911
6007
  task.formatContext = getSuspenseContentFormatContext(
5912
6008
  request.resumableState,
5913
- prevContext$jscomp$0
6009
+ prevContext$jscomp$1
5914
6010
  );
5915
6011
  task.row = null;
5916
6012
  contentRootSegment.status = 6;
@@ -5972,8 +6068,8 @@
5972
6068
  (task.blockedPreamble = parentPreamble),
5973
6069
  (task.hoistableState = parentHoistableState),
5974
6070
  (task.blockedSegment = parentSegment),
5975
- (task.keyPath = prevKeyPath$jscomp$4),
5976
- (task.formatContext = prevContext$jscomp$0),
6071
+ (task.keyPath = prevKeyPath$jscomp$5),
6072
+ (task.formatContext = prevContext$jscomp$1),
5977
6073
  (task.row = prevRow$jscomp$0);
5978
6074
  }
5979
6075
  var suspendedFallbackTask = createRenderTask(
@@ -6039,7 +6135,7 @@
6039
6135
  var value$jscomp$0 = props.value,
6040
6136
  children$jscomp$2 = props.children;
6041
6137
  var prevSnapshot = task.context;
6042
- var prevKeyPath$jscomp$5 = task.keyPath;
6138
+ var prevKeyPath$jscomp$6 = task.keyPath;
6043
6139
  var prevValue = type._currentValue2;
6044
6140
  type._currentValue2 = value$jscomp$0;
6045
6141
  void 0 !== type._currentRenderer2 &&
@@ -6082,7 +6178,7 @@
6082
6178
  var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot =
6083
6179
  prevSnapshot$jscomp$0.parent);
6084
6180
  task.context = JSCompiler_inline_result$jscomp$0;
6085
- task.keyPath = prevKeyPath$jscomp$5;
6181
+ task.keyPath = prevKeyPath$jscomp$6;
6086
6182
  prevSnapshot !== task.context &&
6087
6183
  console.error(
6088
6184
  "Popping the context provider did not return back to the original snapshot. This is a bug in React."
@@ -6096,10 +6192,10 @@
6096
6192
  "A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
6097
6193
  );
6098
6194
  var newChildren = render(context$jscomp$0._currentValue2),
6099
- prevKeyPath$jscomp$6 = task.keyPath;
6195
+ prevKeyPath$jscomp$7 = task.keyPath;
6100
6196
  task.keyPath = keyPath;
6101
6197
  renderNodeDestructive(request, task, newChildren, -1);
6102
- task.keyPath = prevKeyPath$jscomp$6;
6198
+ task.keyPath = prevKeyPath$jscomp$7;
6103
6199
  return;
6104
6200
  case REACT_LAZY_TYPE:
6105
6201
  var Component = callLazyInitInDEV(type);
@@ -7840,7 +7936,10 @@
7840
7936
  request = request.renderState;
7841
7937
  i = boundary.rootSegmentID;
7842
7938
  boundary = boundary.contentState;
7843
- var requiresStyleInsertion = request.stylesToHoist;
7939
+ var requiresStyleInsertion = request.stylesToHoist,
7940
+ requiresViewTransitions =
7941
+ (completedSegments.instructions & NeedUpgradeToViewTransitions) !==
7942
+ NothingSent;
7844
7943
  request.stylesToHoist = !1;
7845
7944
  destination.push(request.startInlineScript);
7846
7945
  destination.push(endOfStartTag);
@@ -7853,6 +7952,13 @@
7853
7952
  NothingSent &&
7854
7953
  ((completedSegments.instructions |= SentCompleteBoundaryFunction),
7855
7954
  destination.push(completeBoundaryScriptFunctionOnly)),
7955
+ requiresViewTransitions &&
7956
+ (completedSegments.instructions & SentUpgradeToViewTransitions) ===
7957
+ NothingSent &&
7958
+ ((completedSegments.instructions |= SentUpgradeToViewTransitions),
7959
+ destination.push(
7960
+ completeBoundaryUpgradeToViewTransitionsInstruction
7961
+ )),
7856
7962
  (completedSegments.instructions & SentStyleInsertionFunction) ===
7857
7963
  NothingSent
7858
7964
  ? ((completedSegments.instructions |= SentStyleInsertionFunction),
@@ -7862,6 +7968,13 @@
7862
7968
  NothingSent &&
7863
7969
  ((completedSegments.instructions |= SentCompleteBoundaryFunction),
7864
7970
  destination.push(completeBoundaryScriptFunctionOnly)),
7971
+ requiresViewTransitions &&
7972
+ (completedSegments.instructions & SentUpgradeToViewTransitions) ===
7973
+ NothingSent &&
7974
+ ((completedSegments.instructions |= SentUpgradeToViewTransitions),
7975
+ destination.push(
7976
+ completeBoundaryUpgradeToViewTransitionsInstruction
7977
+ )),
7865
7978
  destination.push(completeBoundaryScript1Partial));
7866
7979
  completedSegments = i.toString(16);
7867
7980
  destination.push(request.boundaryPrefix);
@@ -9470,6 +9583,8 @@
9470
9583
  SentStyleInsertionFunction = 8,
9471
9584
  SentCompletedShellId = 32,
9472
9585
  SentMarkShellTime = 64,
9586
+ NeedUpgradeToViewTransitions = 128,
9587
+ SentUpgradeToViewTransitions = 256,
9473
9588
  EXISTS = null,
9474
9589
  PRELOAD_NO_CREDS = [];
9475
9590
  Object.freeze(PRELOAD_NO_CREDS);
@@ -9562,6 +9677,8 @@
9562
9677
  completeSegmentScriptEnd = '")\x3c/script>',
9563
9678
  completeBoundaryScriptFunctionOnly =
9564
9679
  '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};',
9680
+ completeBoundaryUpgradeToViewTransitionsInstruction =
9681
+ '$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),\nH=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(B){var z=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=\nperformance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);',
9565
9682
  completeBoundaryScript1Partial = '$RC("',
9566
9683
  completeBoundaryWithStylesScript1FullPartial =
9567
9684
  '$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("',
@@ -9726,20 +9843,14 @@
9726
9843
  return [!1, unsupportedStartTransition];
9727
9844
  },
9728
9845
  useId: function () {
9729
- var treeId = currentlyRenderingTask.treeContext;
9730
- var overflow = treeId.overflow;
9731
- treeId = treeId.id;
9732
- treeId =
9733
- (treeId & ~(1 << (32 - clz32(treeId) - 1))).toString(32) + overflow;
9734
- var resumableState = currentResumableState;
9846
+ var treeId = getTreeId(currentlyRenderingTask.treeContext),
9847
+ resumableState = currentResumableState;
9735
9848
  if (null === resumableState)
9736
9849
  throw Error(
9737
9850
  "Invalid hook call. Hooks can only be called inside of the body of a function component."
9738
9851
  );
9739
- overflow = localIdCounter++;
9740
- treeId = "_" + resumableState.idPrefix + "R_" + treeId;
9741
- 0 < overflow && (treeId += "H" + overflow.toString(32));
9742
- return treeId + "_";
9852
+ var localId = localIdCounter++;
9853
+ return makeId(resumableState, treeId, localId);
9743
9854
  },
9744
9855
  useSyncExternalStore: function (
9745
9856
  subscribe,
@@ -9874,5 +9985,5 @@
9874
9985
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
9875
9986
  );
9876
9987
  };
9877
- exports.version = "19.3.0-canary-c7862584-20251006";
9988
+ exports.version = "19.3.0-canary-a4eb2dfa-20251006";
9878
9989
  })();