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) {
@@ -1137,7 +1139,8 @@
1137
1139
  return parentContext.insertionMode >= HTML_TABLE_MODE ||
1138
1140
  parentContext.insertionMode < HTML_MODE
1139
1141
  ? createFormatContext(HTML_MODE, null, subtreeScope, null)
1140
- : parentContext.tagScope !== subtreeScope
1142
+ : null !== parentContext.viewTransition ||
1143
+ parentContext.tagScope !== subtreeScope
1141
1144
  ? createFormatContext(
1142
1145
  parentContext.insertionMode,
1143
1146
  parentContext.selectedValue,
@@ -1160,7 +1163,8 @@
1160
1163
  };
1161
1164
  }
1162
1165
  function getSuspenseFallbackFormatContext(resumableState, parentContext) {
1163
- parentContext.tagScope & 32 && (resumableState.instructions |= 128);
1166
+ parentContext.tagScope & 32 &&
1167
+ (resumableState.instructions |= NeedUpgradeToViewTransitions);
1164
1168
  return createFormatContext(
1165
1169
  parentContext.insertionMode,
1166
1170
  parentContext.selectedValue,
@@ -1181,12 +1185,37 @@
1181
1185
  resumableState
1182
1186
  );
1183
1187
  }
1188
+ function makeId(resumableState, treeId, localId) {
1189
+ resumableState = "_" + resumableState.idPrefix + "R_" + treeId;
1190
+ 0 < localId && (resumableState += "H" + localId.toString(32));
1191
+ return resumableState + "_";
1192
+ }
1184
1193
  function pushTextInstance(target, text, renderState, textEmbedded) {
1185
1194
  if ("" === text) return textEmbedded;
1186
1195
  textEmbedded && target.push(textSeparator);
1187
1196
  target.push(stringToChunk(escapeTextForBrowser(text)));
1188
1197
  return !0;
1189
1198
  }
1199
+ function pushViewTransitionAttributes(target, formatContext) {
1200
+ formatContext = formatContext.viewTransition;
1201
+ null !== formatContext &&
1202
+ ("auto" !== formatContext.name &&
1203
+ (pushStringAttribute(
1204
+ target,
1205
+ "vt-name",
1206
+ 0 === formatContext.nameIdx
1207
+ ? formatContext.name
1208
+ : formatContext.name + "_" + formatContext.nameIdx
1209
+ ),
1210
+ formatContext.nameIdx++),
1211
+ pushStringAttribute(target, "vt-update", formatContext.update),
1212
+ "none" !== formatContext.enter &&
1213
+ pushStringAttribute(target, "vt-enter", formatContext.enter),
1214
+ "none" !== formatContext.exit &&
1215
+ pushStringAttribute(target, "vt-exit", formatContext.exit),
1216
+ "none" !== formatContext.share &&
1217
+ pushStringAttribute(target, "vt-share", formatContext.share));
1218
+ }
1190
1219
  function pushStyleAttribute(target, style) {
1191
1220
  if ("object" !== typeof style)
1192
1221
  throw Error(
@@ -1749,7 +1778,7 @@
1749
1778
  checkHtmlStringCoercion(styleText);
1750
1779
  return ("" + styleText).replace(styleRegex, styleReplacer);
1751
1780
  }
1752
- function pushSelfClosing(target, props, tag) {
1781
+ function pushSelfClosing(target, props, tag, formatContext) {
1753
1782
  target.push(startChunkForTag(tag));
1754
1783
  for (var propKey in props)
1755
1784
  if (hasOwnProperty.call(props, propKey)) {
@@ -1766,6 +1795,7 @@
1766
1795
  pushAttribute(target, propKey, propValue);
1767
1796
  }
1768
1797
  }
1798
+ pushViewTransitionAttributes(target, formatContext);
1769
1799
  target.push(endOfStartTagSelfClosing);
1770
1800
  return null;
1771
1801
  }
@@ -1843,7 +1873,7 @@
1843
1873
  target.push(endChunkForTag("script"));
1844
1874
  return null;
1845
1875
  }
1846
- function pushStartSingletonElement(target, props, tag) {
1876
+ function pushStartSingletonElement(target, props, tag, formatContext) {
1847
1877
  target.push(startChunkForTag(tag));
1848
1878
  var innerHTML = (tag = null),
1849
1879
  propKey;
@@ -1862,11 +1892,12 @@
1862
1892
  pushAttribute(target, propKey, propValue);
1863
1893
  }
1864
1894
  }
1895
+ pushViewTransitionAttributes(target, formatContext);
1865
1896
  target.push(endOfStartTag);
1866
1897
  pushInnerHTML(target, innerHTML, tag);
1867
1898
  return tag;
1868
1899
  }
1869
- function pushStartGenericElement(target, props, tag) {
1900
+ function pushStartGenericElement(target, props, tag, formatContext) {
1870
1901
  target.push(startChunkForTag(tag));
1871
1902
  var innerHTML = (tag = null),
1872
1903
  propKey;
@@ -1885,6 +1916,7 @@
1885
1916
  pushAttribute(target, propKey, propValue);
1886
1917
  }
1887
1918
  }
1919
+ pushViewTransitionAttributes(target, formatContext);
1888
1920
  target.push(endOfStartTag);
1889
1921
  pushInnerHTML(target, innerHTML, tag);
1890
1922
  return "string" === typeof tag
@@ -1990,6 +2022,7 @@
1990
2022
  pushAttribute(target$jscomp$0, propKey, propValue);
1991
2023
  }
1992
2024
  }
2025
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1993
2026
  target$jscomp$0.push(endOfStartTag);
1994
2027
  pushInnerHTML(target$jscomp$0, innerHTML, children);
1995
2028
  if ("string" === typeof children) {
@@ -2038,6 +2071,7 @@
2038
2071
  );
2039
2072
  }
2040
2073
  }
2074
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2041
2075
  target$jscomp$0.push(endOfStartTag);
2042
2076
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
2043
2077
  return children$jscomp$0;
@@ -2151,6 +2185,7 @@
2151
2185
  null === value$jscomp$0 &&
2152
2186
  null !== defaultValue &&
2153
2187
  (value$jscomp$0 = defaultValue);
2188
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2154
2189
  target$jscomp$0.push(endOfStartTag);
2155
2190
  if (null != children$jscomp$2) {
2156
2191
  console.error(
@@ -2280,6 +2315,7 @@
2280
2315
  ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
2281
2316
  : null !== defaultValue$jscomp$0 &&
2282
2317
  pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
2318
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2283
2319
  target$jscomp$0.push(endOfStartTagSelfClosing);
2284
2320
  null != formData &&
2285
2321
  formData.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -2346,6 +2382,7 @@
2346
2382
  formTarget$jscomp$0,
2347
2383
  name$jscomp$0
2348
2384
  );
2385
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2349
2386
  target$jscomp$0.push(endOfStartTag);
2350
2387
  null != formData$jscomp$0 &&
2351
2388
  formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -2445,6 +2482,7 @@
2445
2482
  pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
2446
2483
  null != formTarget$jscomp$1 &&
2447
2484
  pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
2485
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2448
2486
  target$jscomp$0.push(endOfStartTag);
2449
2487
  null !== formActionName &&
2450
2488
  (target$jscomp$0.push(startHiddenInputChunk),
@@ -2483,6 +2521,7 @@
2483
2521
  );
2484
2522
  }
2485
2523
  }
2524
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2486
2525
  target$jscomp$0.push(endOfStartTag);
2487
2526
  return null;
2488
2527
  case "object":
@@ -2528,6 +2567,7 @@
2528
2567
  );
2529
2568
  }
2530
2569
  }
2570
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2531
2571
  target$jscomp$0.push(endOfStartTag);
2532
2572
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
2533
2573
  if ("string" === typeof children$jscomp$5) {
@@ -2919,20 +2959,32 @@
2919
2959
  var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
2920
2960
  target$jscomp$0,
2921
2961
  props,
2922
- "meta"
2962
+ "meta",
2963
+ formatContext
2923
2964
  );
2924
2965
  else
2925
2966
  textEmbedded && target$jscomp$0.push(textSeparator),
2926
2967
  (JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
2927
2968
  ? null
2928
2969
  : "string" === typeof props.charSet
2929
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
2970
+ ? pushSelfClosing(
2971
+ renderState.charsetChunks,
2972
+ props,
2973
+ "meta",
2974
+ formatContext
2975
+ )
2930
2976
  : "viewport" === props.name
2931
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
2977
+ ? pushSelfClosing(
2978
+ renderState.viewportChunks,
2979
+ props,
2980
+ "meta",
2981
+ formatContext
2982
+ )
2932
2983
  : pushSelfClosing(
2933
2984
  renderState.hoistableChunks,
2934
2985
  props,
2935
- "meta"
2986
+ "meta",
2987
+ formatContext
2936
2988
  ));
2937
2989
  return JSCompiler_inline_result$jscomp$8;
2938
2990
  case "listing":
@@ -2960,6 +3012,7 @@
2960
3012
  );
2961
3013
  }
2962
3014
  }
3015
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2963
3016
  target$jscomp$0.push(endOfStartTag);
2964
3017
  if (null != innerHTML$jscomp$7) {
2965
3018
  if (null != children$jscomp$10)
@@ -3078,7 +3131,7 @@
3078
3131
  promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
3079
3132
  }
3080
3133
  }
3081
- return pushSelfClosing(target$jscomp$0, props, "img");
3134
+ return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
3082
3135
  case "base":
3083
3136
  case "area":
3084
3137
  case "br":
@@ -3090,7 +3143,7 @@
3090
3143
  case "source":
3091
3144
  case "track":
3092
3145
  case "wbr":
3093
- return pushSelfClosing(target$jscomp$0, props, type);
3146
+ return pushSelfClosing(target$jscomp$0, props, type, formatContext);
3094
3147
  case "annotation-xml":
3095
3148
  case "color-profile":
3096
3149
  case "font-face":
@@ -3111,13 +3164,15 @@
3111
3164
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
3112
3165
  preamble.headChunks,
3113
3166
  props,
3114
- "head"
3167
+ "head",
3168
+ formatContext
3115
3169
  );
3116
3170
  } else
3117
3171
  JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
3118
3172
  target$jscomp$0,
3119
3173
  props,
3120
- "head"
3174
+ "head",
3175
+ formatContext
3121
3176
  );
3122
3177
  return JSCompiler_inline_result$jscomp$9;
3123
3178
  case "body":
@@ -3131,13 +3186,15 @@
3131
3186
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
3132
3187
  preamble$jscomp$0.bodyChunks,
3133
3188
  props,
3134
- "body"
3189
+ "body",
3190
+ formatContext
3135
3191
  );
3136
3192
  } else
3137
3193
  JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
3138
3194
  target$jscomp$0,
3139
3195
  props,
3140
- "body"
3196
+ "body",
3197
+ formatContext
3141
3198
  );
3142
3199
  return JSCompiler_inline_result$jscomp$10;
3143
3200
  case "html":
@@ -3151,13 +3208,15 @@
3151
3208
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
3152
3209
  preamble$jscomp$1.htmlChunks,
3153
3210
  props,
3154
- "html"
3211
+ "html",
3212
+ formatContext
3155
3213
  );
3156
3214
  } else
3157
3215
  JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
3158
3216
  target$jscomp$0,
3159
3217
  props,
3160
- "html"
3218
+ "html",
3219
+ formatContext
3161
3220
  );
3162
3221
  return JSCompiler_inline_result$jscomp$11;
3163
3222
  default:
@@ -3211,6 +3270,7 @@
3211
3270
  }
3212
3271
  }
3213
3272
  }
3273
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
3214
3274
  target$jscomp$0.push(endOfStartTag);
3215
3275
  pushInnerHTML(
3216
3276
  target$jscomp$0,
@@ -3220,7 +3280,12 @@
3220
3280
  return children$jscomp$11;
3221
3281
  }
3222
3282
  }
3223
- return pushStartGenericElement(target$jscomp$0, props, type);
3283
+ return pushStartGenericElement(
3284
+ target$jscomp$0,
3285
+ props,
3286
+ type,
3287
+ formatContext
3288
+ );
3224
3289
  }
3225
3290
  function endChunkForTag(tag) {
3226
3291
  var chunk = endTagCache.get(tag);
@@ -3765,6 +3830,8 @@
3765
3830
  return "SuspenseList";
3766
3831
  case REACT_ACTIVITY_TYPE:
3767
3832
  return "Activity";
3833
+ case REACT_VIEW_TRANSITION_TYPE:
3834
+ return "ViewTransition";
3768
3835
  }
3769
3836
  if ("object" === typeof type)
3770
3837
  switch (
@@ -3894,6 +3961,13 @@
3894
3961
  ),
3895
3962
  (didWarnAboutNoopUpdateForComponent[warningKey] = !0));
3896
3963
  }
3964
+ function getTreeId(context) {
3965
+ var overflow = context.overflow;
3966
+ context = context.id;
3967
+ return (
3968
+ (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow
3969
+ );
3970
+ }
3897
3971
  function pushTreeContext(baseContext, totalChildren, index) {
3898
3972
  var baseIdWithLeadingBit = baseContext.id;
3899
3973
  baseContext = baseContext.overflow;
@@ -4525,9 +4599,28 @@
4525
4599
  return describeBuiltInComponentFrame("SuspenseList");
4526
4600
  case REACT_SUSPENSE_TYPE:
4527
4601
  return describeBuiltInComponentFrame("Suspense");
4602
+ case REACT_VIEW_TRANSITION_TYPE:
4603
+ return describeBuiltInComponentFrame("ViewTransition");
4528
4604
  }
4529
4605
  return "";
4530
4606
  }
4607
+ function getViewTransitionClassName(defaultClass, eventClass) {
4608
+ defaultClass =
4609
+ null == defaultClass || "string" === typeof defaultClass
4610
+ ? defaultClass
4611
+ : defaultClass.default;
4612
+ eventClass =
4613
+ null == eventClass || "string" === typeof eventClass
4614
+ ? eventClass
4615
+ : eventClass.default;
4616
+ return null == eventClass
4617
+ ? "auto" === defaultClass
4618
+ ? null
4619
+ : defaultClass
4620
+ : "auto" === eventClass
4621
+ ? null
4622
+ : eventClass;
4623
+ }
4531
4624
  function resetOwnerStackLimit() {
4532
4625
  var now = getCurrentTime();
4533
4626
  1e3 < now - lastResetTime &&
@@ -6098,6 +6191,76 @@
6098
6191
  }
6099
6192
  return;
6100
6193
  case REACT_VIEW_TRANSITION_TYPE:
6194
+ var prevContext$jscomp$0 = task.formatContext,
6195
+ prevKeyPath$jscomp$4 = task.keyPath;
6196
+ var resumableState$jscomp$0 = request.resumableState;
6197
+ if (null != props.name && "auto" !== props.name)
6198
+ var autoName = props.name;
6199
+ else {
6200
+ var treeId = getTreeId(task.treeContext);
6201
+ autoName = makeId(resumableState$jscomp$0, treeId, 0);
6202
+ }
6203
+ var resumableState$jscomp$1 = request.resumableState,
6204
+ update = getViewTransitionClassName(props.default, props.update),
6205
+ enter = getViewTransitionClassName(props.default, props.enter),
6206
+ exit = getViewTransitionClassName(props.default, props.exit),
6207
+ share = getViewTransitionClassName(props.default, props.share),
6208
+ name$jscomp$0 = props.name,
6209
+ autoName$jscomp$0 = autoName;
6210
+ null == update && (update = "auto");
6211
+ null == enter && (enter = "auto");
6212
+ null == exit && (exit = "auto");
6213
+ if (null == name$jscomp$0) {
6214
+ var parentViewTransition = prevContext$jscomp$0.viewTransition;
6215
+ null !== parentViewTransition
6216
+ ? ((name$jscomp$0 = parentViewTransition.name),
6217
+ (share = parentViewTransition.share))
6218
+ : ((name$jscomp$0 = "auto"), (share = "none"));
6219
+ } else
6220
+ null == share && (share = "auto"),
6221
+ prevContext$jscomp$0.tagScope & 4 &&
6222
+ (resumableState$jscomp$1.instructions |=
6223
+ NeedUpgradeToViewTransitions);
6224
+ prevContext$jscomp$0.tagScope & 8
6225
+ ? (resumableState$jscomp$1.instructions |=
6226
+ NeedUpgradeToViewTransitions)
6227
+ : (exit = "none");
6228
+ prevContext$jscomp$0.tagScope & 16
6229
+ ? (resumableState$jscomp$1.instructions |=
6230
+ NeedUpgradeToViewTransitions)
6231
+ : (enter = "none");
6232
+ var viewTransition = {
6233
+ update: update,
6234
+ enter: enter,
6235
+ exit: exit,
6236
+ share: share,
6237
+ name: name$jscomp$0,
6238
+ autoName: autoName$jscomp$0,
6239
+ nameIdx: 0
6240
+ },
6241
+ subtreeScope = prevContext$jscomp$0.tagScope & -25;
6242
+ subtreeScope =
6243
+ "none" !== update ? subtreeScope | 32 : subtreeScope & -33;
6244
+ "none" !== enter && (subtreeScope |= 64);
6245
+ var JSCompiler_inline_result$jscomp$0 = createFormatContext(
6246
+ prevContext$jscomp$0.insertionMode,
6247
+ prevContext$jscomp$0.selectedValue,
6248
+ subtreeScope,
6249
+ viewTransition
6250
+ );
6251
+ task.formatContext = JSCompiler_inline_result$jscomp$0;
6252
+ task.keyPath = keyPath;
6253
+ if (null != props.name && "auto" !== props.name)
6254
+ renderNodeDestructive(request, task, props.children, -1);
6255
+ else {
6256
+ var prevTreeContext = task.treeContext;
6257
+ task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
6258
+ renderNode(request, task, props.children, -1);
6259
+ task.treeContext = prevTreeContext;
6260
+ }
6261
+ task.formatContext = prevContext$jscomp$0;
6262
+ task.keyPath = prevKeyPath$jscomp$4;
6263
+ return;
6101
6264
  case REACT_SCOPE_TYPE:
6102
6265
  throw Error(
6103
6266
  "ReactDOMServer does not yet support scope components."
@@ -6122,8 +6285,8 @@
6122
6285
  (task.row = _prevRow);
6123
6286
  }
6124
6287
  } else {
6125
- var prevKeyPath$jscomp$4 = task.keyPath,
6126
- prevContext$jscomp$0 = task.formatContext,
6288
+ var prevKeyPath$jscomp$5 = task.keyPath,
6289
+ prevContext$jscomp$1 = task.formatContext,
6127
6290
  prevRow$jscomp$0 = task.row,
6128
6291
  parentBoundary = task.blockedBoundary,
6129
6292
  parentPreamble = task.blockedPreamble,
@@ -6192,7 +6355,7 @@
6192
6355
  task.keyPath = fallbackKeyPath;
6193
6356
  task.formatContext = getSuspenseFallbackFormatContext(
6194
6357
  request.resumableState,
6195
- prevContext$jscomp$0
6358
+ prevContext$jscomp$1
6196
6359
  );
6197
6360
  task.componentStack =
6198
6361
  replaceSuspenseComponentStackWithSuspenseFallbackStack(
@@ -6215,8 +6378,8 @@
6215
6378
  } finally {
6216
6379
  (task.blockedSegment = parentSegment),
6217
6380
  (task.blockedPreamble = parentPreamble),
6218
- (task.keyPath = prevKeyPath$jscomp$4),
6219
- (task.formatContext = prevContext$jscomp$0);
6381
+ (task.keyPath = prevKeyPath$jscomp$5),
6382
+ (task.formatContext = prevContext$jscomp$1);
6220
6383
  }
6221
6384
  var suspendedPrimaryTask = createRenderTask(
6222
6385
  request,
@@ -6250,7 +6413,7 @@
6250
6413
  task.keyPath = keyPath;
6251
6414
  task.formatContext = getSuspenseContentFormatContext(
6252
6415
  request.resumableState,
6253
- prevContext$jscomp$0
6416
+ prevContext$jscomp$1
6254
6417
  );
6255
6418
  task.row = null;
6256
6419
  contentRootSegment.status = 6;
@@ -6310,8 +6473,8 @@
6310
6473
  (task.blockedPreamble = parentPreamble),
6311
6474
  (task.hoistableState = parentHoistableState),
6312
6475
  (task.blockedSegment = parentSegment),
6313
- (task.keyPath = prevKeyPath$jscomp$4),
6314
- (task.formatContext = prevContext$jscomp$0),
6476
+ (task.keyPath = prevKeyPath$jscomp$5),
6477
+ (task.formatContext = prevContext$jscomp$1),
6315
6478
  (task.row = prevRow$jscomp$0);
6316
6479
  }
6317
6480
  var suspendedFallbackTask = createRenderTask(
@@ -6377,7 +6540,7 @@
6377
6540
  var value$jscomp$0 = props.value,
6378
6541
  children$jscomp$2 = props.children;
6379
6542
  var prevSnapshot = task.context;
6380
- var prevKeyPath$jscomp$5 = task.keyPath;
6543
+ var prevKeyPath$jscomp$6 = task.keyPath;
6381
6544
  var prevValue = type._currentValue;
6382
6545
  type._currentValue = value$jscomp$0;
6383
6546
  void 0 !== type._currentRenderer &&
@@ -6417,10 +6580,10 @@
6417
6580
  "Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
6418
6581
  );
6419
6582
  type._currentRenderer = rendererSigil;
6420
- var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot =
6583
+ var JSCompiler_inline_result$jscomp$1 = (currentActiveSnapshot =
6421
6584
  prevSnapshot$jscomp$0.parent);
6422
- task.context = JSCompiler_inline_result$jscomp$0;
6423
- task.keyPath = prevKeyPath$jscomp$5;
6585
+ task.context = JSCompiler_inline_result$jscomp$1;
6586
+ task.keyPath = prevKeyPath$jscomp$6;
6424
6587
  prevSnapshot !== task.context &&
6425
6588
  console.error(
6426
6589
  "Popping the context provider did not return back to the original snapshot. This is a bug in React."
@@ -6434,10 +6597,10 @@
6434
6597
  "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."
6435
6598
  );
6436
6599
  var newChildren = render(context$jscomp$0._currentValue),
6437
- prevKeyPath$jscomp$6 = task.keyPath;
6600
+ prevKeyPath$jscomp$7 = task.keyPath;
6438
6601
  task.keyPath = keyPath;
6439
6602
  renderNodeDestructive(request, task, newChildren, -1);
6440
- task.keyPath = prevKeyPath$jscomp$6;
6603
+ task.keyPath = prevKeyPath$jscomp$7;
6441
6604
  return;
6442
6605
  case REACT_LAZY_TYPE:
6443
6606
  var Component = callLazyInitInDEV(type);
@@ -8197,7 +8360,10 @@
8197
8360
  request = request.renderState;
8198
8361
  i = boundary.rootSegmentID;
8199
8362
  boundary = boundary.contentState;
8200
- var requiresStyleInsertion = request.stylesToHoist;
8363
+ var requiresStyleInsertion = request.stylesToHoist,
8364
+ requiresViewTransitions =
8365
+ (completedSegments.instructions & NeedUpgradeToViewTransitions) !==
8366
+ NothingSent;
8201
8367
  request.stylesToHoist = !1;
8202
8368
  writeChunk(destination, request.startInlineScript);
8203
8369
  writeChunk(destination, endOfStartTag);
@@ -8210,6 +8376,14 @@
8210
8376
  NothingSent &&
8211
8377
  ((completedSegments.instructions |= SentCompleteBoundaryFunction),
8212
8378
  writeChunk(destination, completeBoundaryScriptFunctionOnly)),
8379
+ requiresViewTransitions &&
8380
+ (completedSegments.instructions & SentUpgradeToViewTransitions) ===
8381
+ NothingSent &&
8382
+ ((completedSegments.instructions |= SentUpgradeToViewTransitions),
8383
+ writeChunk(
8384
+ destination,
8385
+ completeBoundaryUpgradeToViewTransitionsInstruction
8386
+ )),
8213
8387
  (completedSegments.instructions & SentStyleInsertionFunction) ===
8214
8388
  NothingSent
8215
8389
  ? ((completedSegments.instructions |= SentStyleInsertionFunction),
@@ -8222,6 +8396,14 @@
8222
8396
  NothingSent &&
8223
8397
  ((completedSegments.instructions |= SentCompleteBoundaryFunction),
8224
8398
  writeChunk(destination, completeBoundaryScriptFunctionOnly)),
8399
+ requiresViewTransitions &&
8400
+ (completedSegments.instructions & SentUpgradeToViewTransitions) ===
8401
+ NothingSent &&
8402
+ ((completedSegments.instructions |= SentUpgradeToViewTransitions),
8403
+ writeChunk(
8404
+ destination,
8405
+ completeBoundaryUpgradeToViewTransitionsInstruction
8406
+ )),
8225
8407
  writeChunk(destination, completeBoundaryScript1Partial));
8226
8408
  completedSegments = stringToChunk(i.toString(16));
8227
8409
  writeChunk(destination, request.boundaryPrefix);
@@ -8808,11 +8990,11 @@
8808
8990
  }
8809
8991
  function ensureCorrectIsomorphicReactVersion() {
8810
8992
  var isomorphicReactPackageVersion = React.version;
8811
- if ("19.3.0-canary-c7862584-20251006" !== isomorphicReactPackageVersion)
8993
+ if ("19.3.0-canary-a4eb2dfa-20251006" !== isomorphicReactPackageVersion)
8812
8994
  throw Error(
8813
8995
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
8814
8996
  (isomorphicReactPackageVersion +
8815
- "\n - react-dom: 19.3.0-canary-c7862584-20251006\nLearn more: https://react.dev/warnings/version-mismatch")
8997
+ "\n - react-dom: 19.3.0-canary-a4eb2dfa-20251006\nLearn more: https://react.dev/warnings/version-mismatch")
8816
8998
  );
8817
8999
  }
8818
9000
  var React = require("react"),
@@ -9900,6 +10082,8 @@
9900
10082
  SentStyleInsertionFunction = 8,
9901
10083
  SentCompletedShellId = 32,
9902
10084
  SentMarkShellTime = 64,
10085
+ NeedUpgradeToViewTransitions = 128,
10086
+ SentUpgradeToViewTransitions = 256,
9903
10087
  EXISTS = null,
9904
10088
  PRELOAD_NO_CREDS = [];
9905
10089
  Object.freeze(PRELOAD_NO_CREDS);
@@ -10044,12 +10228,12 @@
10044
10228
  stringToPrecomputedChunk('<template data-rsi="" data-sid="');
10045
10229
  stringToPrecomputedChunk('" data-pid="');
10046
10230
  var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
10047
- '$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)};'
10048
- );
10049
- stringToChunk(
10050
- '$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);'
10051
- );
10052
- var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
10231
+ '$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)};'
10232
+ ),
10233
+ completeBoundaryUpgradeToViewTransitionsInstruction = stringToChunk(
10234
+ '$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);'
10235
+ ),
10236
+ completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
10053
10237
  completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
10054
10238
  '$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("'
10055
10239
  ),
@@ -10231,20 +10415,14 @@
10231
10415
  return [!1, unsupportedStartTransition];
10232
10416
  },
10233
10417
  useId: function () {
10234
- var treeId = currentlyRenderingTask.treeContext;
10235
- var overflow = treeId.overflow;
10236
- treeId = treeId.id;
10237
- treeId =
10238
- (treeId & ~(1 << (32 - clz32(treeId) - 1))).toString(32) + overflow;
10239
- var resumableState = currentResumableState;
10418
+ var treeId = getTreeId(currentlyRenderingTask.treeContext),
10419
+ resumableState = currentResumableState;
10240
10420
  if (null === resumableState)
10241
10421
  throw Error(
10242
10422
  "Invalid hook call. Hooks can only be called inside of the body of a function component."
10243
10423
  );
10244
- overflow = localIdCounter++;
10245
- treeId = "_" + resumableState.idPrefix + "R_" + treeId;
10246
- 0 < overflow && (treeId += "H" + overflow.toString(32));
10247
- return treeId + "_";
10424
+ var localId = localIdCounter++;
10425
+ return makeId(resumableState, treeId, localId);
10248
10426
  },
10249
10427
  useSyncExternalStore: function (
10250
10428
  subscribe,
@@ -10617,5 +10795,5 @@
10617
10795
  startWork(request);
10618
10796
  });
10619
10797
  };
10620
- exports.version = "19.3.0-canary-c7862584-20251006";
10798
+ exports.version = "19.3.0-canary-a4eb2dfa-20251006";
10621
10799
  })();