react-markup 0.0.0-experimental-b94603b9-20250513 → 0.0.0-experimental-4a45ba92-20250515

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.
@@ -5851,52 +5851,122 @@
5851
5851
  function createPreambleState() {
5852
5852
  return { htmlChunks: null, headChunks: null, bodyChunks: null };
5853
5853
  }
5854
- function createFormatContext(insertionMode, selectedValue, tagScope) {
5854
+ function createFormatContext(
5855
+ insertionMode,
5856
+ selectedValue,
5857
+ tagScope,
5858
+ viewTransition
5859
+ ) {
5855
5860
  return {
5856
5861
  insertionMode: insertionMode,
5857
5862
  selectedValue: selectedValue,
5858
- tagScope: tagScope
5863
+ tagScope: tagScope,
5864
+ viewTransition: viewTransition
5859
5865
  };
5860
5866
  }
5861
5867
  function getChildFormatContext(parentContext, type, props) {
5868
+ var subtreeScope = parentContext.tagScope & -25;
5862
5869
  switch (type) {
5863
5870
  case "noscript":
5864
- return createFormatContext(2, null, parentContext.tagScope | 1);
5871
+ return createFormatContext(2, null, subtreeScope | 1, null);
5865
5872
  case "select":
5866
5873
  return createFormatContext(
5867
5874
  2,
5868
5875
  null != props.value ? props.value : props.defaultValue,
5869
- parentContext.tagScope
5876
+ subtreeScope,
5877
+ null
5870
5878
  );
5871
5879
  case "svg":
5872
- return createFormatContext(4, null, parentContext.tagScope);
5880
+ return createFormatContext(4, null, subtreeScope, null);
5873
5881
  case "picture":
5874
- return createFormatContext(2, null, parentContext.tagScope | 2);
5882
+ return createFormatContext(2, null, subtreeScope | 2, null);
5875
5883
  case "math":
5876
- return createFormatContext(5, null, parentContext.tagScope);
5884
+ return createFormatContext(5, null, subtreeScope, null);
5877
5885
  case "foreignObject":
5878
- return createFormatContext(2, null, parentContext.tagScope);
5886
+ return createFormatContext(2, null, subtreeScope, null);
5879
5887
  case "table":
5880
- return createFormatContext(6, null, parentContext.tagScope);
5888
+ return createFormatContext(6, null, subtreeScope, null);
5881
5889
  case "thead":
5882
5890
  case "tbody":
5883
5891
  case "tfoot":
5884
- return createFormatContext(7, null, parentContext.tagScope);
5892
+ return createFormatContext(7, null, subtreeScope, null);
5885
5893
  case "colgroup":
5886
- return createFormatContext(9, null, parentContext.tagScope);
5894
+ return createFormatContext(9, null, subtreeScope, null);
5887
5895
  case "tr":
5888
- return createFormatContext(8, null, parentContext.tagScope);
5896
+ return createFormatContext(8, null, subtreeScope, null);
5889
5897
  case "head":
5890
5898
  if (2 > parentContext.insertionMode)
5891
- return createFormatContext(3, null, parentContext.tagScope);
5899
+ return createFormatContext(3, null, subtreeScope, null);
5892
5900
  break;
5893
5901
  case "html":
5894
5902
  if (0 === parentContext.insertionMode)
5895
- return createFormatContext(1, null, parentContext.tagScope);
5903
+ return createFormatContext(1, null, subtreeScope, null);
5896
5904
  }
5897
5905
  return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
5898
- ? createFormatContext(2, null, parentContext.tagScope)
5899
- : parentContext;
5906
+ ? createFormatContext(2, null, subtreeScope, null)
5907
+ : null !== parentContext.viewTransition ||
5908
+ parentContext.tagScope !== subtreeScope
5909
+ ? createFormatContext(
5910
+ parentContext.insertionMode,
5911
+ parentContext.selectedValue,
5912
+ subtreeScope,
5913
+ null
5914
+ )
5915
+ : parentContext;
5916
+ }
5917
+ function getSuspenseViewTransition(parentViewTransition) {
5918
+ return null === parentViewTransition
5919
+ ? null
5920
+ : {
5921
+ update: parentViewTransition.update,
5922
+ enter: null,
5923
+ exit: null,
5924
+ share: parentViewTransition.update,
5925
+ name: parentViewTransition.autoName,
5926
+ autoName: parentViewTransition.autoName,
5927
+ nameIdx: 0
5928
+ };
5929
+ }
5930
+ function getSuspenseFallbackFormatContext(parentContext) {
5931
+ return createFormatContext(
5932
+ parentContext.insertionMode,
5933
+ parentContext.selectedValue,
5934
+ parentContext.tagScope | 12,
5935
+ getSuspenseViewTransition(parentContext.viewTransition)
5936
+ );
5937
+ }
5938
+ function getSuspenseContentFormatContext(parentContext) {
5939
+ return createFormatContext(
5940
+ parentContext.insertionMode,
5941
+ parentContext.selectedValue,
5942
+ parentContext.tagScope | 16,
5943
+ getSuspenseViewTransition(parentContext.viewTransition)
5944
+ );
5945
+ }
5946
+ function makeId(resumableState, treeId, localId) {
5947
+ resumableState = "\u00ab" + resumableState.idPrefix + "R" + treeId;
5948
+ 0 < localId && (resumableState += "H" + localId.toString(32));
5949
+ return resumableState + "\u00bb";
5950
+ }
5951
+ function pushViewTransitionAttributes(target, formatContext) {
5952
+ formatContext = formatContext.viewTransition;
5953
+ null !== formatContext &&
5954
+ ("auto" !== formatContext.name &&
5955
+ (pushStringAttribute(
5956
+ target,
5957
+ "vt-name",
5958
+ 0 === formatContext.nameIdx
5959
+ ? formatContext.name
5960
+ : formatContext.name + "_" + formatContext.nameIdx
5961
+ ),
5962
+ formatContext.nameIdx++),
5963
+ pushStringAttribute(target, "vt-update", formatContext.update),
5964
+ null !== formatContext.enter &&
5965
+ pushStringAttribute(target, "vt-enter", formatContext.enter),
5966
+ null !== formatContext.exit &&
5967
+ pushStringAttribute(target, "vt-exit", formatContext.exit),
5968
+ null !== formatContext.share &&
5969
+ pushStringAttribute(target, "vt-share", formatContext.share));
5900
5970
  }
5901
5971
  function pushStyleAttribute(target, style) {
5902
5972
  if ("object" !== typeof style)
@@ -6482,7 +6552,7 @@
6482
6552
  checkHtmlStringCoercion(styleText);
6483
6553
  return ("" + styleText).replace(styleRegex, styleReplacer);
6484
6554
  }
6485
- function pushSelfClosing(target, props, tag) {
6555
+ function pushSelfClosing(target, props, tag, formatContext) {
6486
6556
  target.push(startChunkForTag(tag));
6487
6557
  for (var propKey in props)
6488
6558
  if (hasOwnProperty.call(props, propKey)) {
@@ -6499,6 +6569,7 @@
6499
6569
  pushAttribute(target, propKey, propValue);
6500
6570
  }
6501
6571
  }
6572
+ pushViewTransitionAttributes(target, formatContext);
6502
6573
  target.push(endOfStartTagSelfClosing);
6503
6574
  return null;
6504
6575
  }
@@ -6576,7 +6647,7 @@
6576
6647
  target.push(endChunkForTag("script"));
6577
6648
  return null;
6578
6649
  }
6579
- function pushStartSingletonElement(target, props, tag) {
6650
+ function pushStartSingletonElement(target, props, tag, formatContext) {
6580
6651
  target.push(startChunkForTag(tag));
6581
6652
  var innerHTML = (tag = null),
6582
6653
  propKey;
@@ -6595,11 +6666,12 @@
6595
6666
  pushAttribute(target, propKey, propValue);
6596
6667
  }
6597
6668
  }
6669
+ pushViewTransitionAttributes(target, formatContext);
6598
6670
  target.push(endOfStartTag);
6599
6671
  pushInnerHTML(target, innerHTML, tag);
6600
6672
  return tag;
6601
6673
  }
6602
- function pushStartGenericElement(target, props, tag) {
6674
+ function pushStartGenericElement(target, props, tag, formatContext) {
6603
6675
  target.push(startChunkForTag(tag));
6604
6676
  var innerHTML = (tag = null),
6605
6677
  propKey;
@@ -6618,6 +6690,7 @@
6618
6690
  pushAttribute(target, propKey, propValue);
6619
6691
  }
6620
6692
  }
6693
+ pushViewTransitionAttributes(target, formatContext);
6621
6694
  target.push(endOfStartTag);
6622
6695
  pushInnerHTML(target, innerHTML, tag);
6623
6696
  return "string" === typeof tag
@@ -6642,8 +6715,7 @@
6642
6715
  preambleState,
6643
6716
  hoistableState,
6644
6717
  formatContext,
6645
- textEmbedded,
6646
- isFallback
6718
+ textEmbedded
6647
6719
  ) {
6648
6720
  validateProperties$2(type, props);
6649
6721
  ("input" !== type && "textarea" !== type && "select" !== type) ||
@@ -6724,6 +6796,7 @@
6724
6796
  pushAttribute(target$jscomp$0, propKey, propValue);
6725
6797
  }
6726
6798
  }
6799
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
6727
6800
  target$jscomp$0.push(endOfStartTag);
6728
6801
  pushInnerHTML(target$jscomp$0, innerHTML, children);
6729
6802
  if ("string" === typeof children) {
@@ -6772,6 +6845,7 @@
6772
6845
  );
6773
6846
  }
6774
6847
  }
6848
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
6775
6849
  target$jscomp$0.push(endOfStartTag);
6776
6850
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
6777
6851
  return children$jscomp$0;
@@ -6885,6 +6959,7 @@
6885
6959
  null === value$jscomp$0 &&
6886
6960
  null !== defaultValue &&
6887
6961
  (value$jscomp$0 = defaultValue);
6962
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
6888
6963
  target$jscomp$0.push(endOfStartTag);
6889
6964
  if (null != children$jscomp$2) {
6890
6965
  console.error(
@@ -7012,6 +7087,7 @@
7012
7087
  ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
7013
7088
  : null !== defaultValue$jscomp$0 &&
7014
7089
  pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
7090
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
7015
7091
  target$jscomp$0.push(endOfStartTagSelfClosing);
7016
7092
  null != formData &&
7017
7093
  formData.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -7078,6 +7154,7 @@
7078
7154
  formTarget$jscomp$0,
7079
7155
  name$jscomp$0
7080
7156
  );
7157
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
7081
7158
  target$jscomp$0.push(endOfStartTag);
7082
7159
  null != formData$jscomp$0 &&
7083
7160
  formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -7175,6 +7252,7 @@
7175
7252
  pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
7176
7253
  null != formTarget$jscomp$1 &&
7177
7254
  pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
7255
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
7178
7256
  target$jscomp$0.push(endOfStartTag);
7179
7257
  null !== formActionName &&
7180
7258
  (target$jscomp$0.push('<input type="hidden"'),
@@ -7211,6 +7289,7 @@
7211
7289
  );
7212
7290
  }
7213
7291
  }
7292
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
7214
7293
  target$jscomp$0.push(endOfStartTag);
7215
7294
  return null;
7216
7295
  case "object":
@@ -7256,6 +7335,7 @@
7256
7335
  );
7257
7336
  }
7258
7337
  }
7338
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
7259
7339
  target$jscomp$0.push(endOfStartTag);
7260
7340
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
7261
7341
  if ("string" === typeof children$jscomp$5) {
@@ -7264,8 +7344,8 @@
7264
7344
  } else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
7265
7345
  return JSCompiler_inline_result$jscomp$3;
7266
7346
  case "title":
7267
- var insertionMode = formatContext.insertionMode,
7268
- noscriptTagInScope = !!(formatContext.tagScope & 1);
7347
+ var noscriptTagInScope = formatContext.tagScope & 1,
7348
+ isFallback = formatContext.tagScope & 4;
7269
7349
  if (hasOwnProperty.call(props, "children")) {
7270
7350
  var children$jscomp$6 = props.children,
7271
7351
  child = Array.isArray(children$jscomp$6)
@@ -7294,7 +7374,7 @@
7294
7374
  ));
7295
7375
  }
7296
7376
  if (
7297
- 4 === insertionMode ||
7377
+ 4 === formatContext.insertionMode ||
7298
7378
  noscriptTagInScope ||
7299
7379
  null != props.itemProp
7300
7380
  )
@@ -7309,12 +7389,14 @@
7309
7389
  (JSCompiler_inline_result$jscomp$4 = void 0));
7310
7390
  return JSCompiler_inline_result$jscomp$4;
7311
7391
  case "link":
7312
- var rel = props.rel,
7392
+ var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
7393
+ isFallback$jscomp$0 = formatContext.tagScope & 4,
7394
+ rel = props.rel,
7313
7395
  href = props.href,
7314
7396
  precedence = props.precedence;
7315
7397
  if (
7316
7398
  4 === formatContext.insertionMode ||
7317
- formatContext.tagScope & 1 ||
7399
+ noscriptTagInScope$jscomp$0 ||
7318
7400
  null != props.itemProp ||
7319
7401
  "string" !== typeof rel ||
7320
7402
  "string" !== typeof href ||
@@ -7415,12 +7497,13 @@
7415
7497
  props
7416
7498
  ))
7417
7499
  : (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
7418
- (JSCompiler_inline_result$jscomp$5 = isFallback
7500
+ (JSCompiler_inline_result$jscomp$5 = isFallback$jscomp$0
7419
7501
  ? null
7420
7502
  : pushLinkImpl(renderState.hoistableChunks, props)));
7421
7503
  return JSCompiler_inline_result$jscomp$5;
7422
7504
  case "script":
7423
- var asyncProp = props.async;
7505
+ var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
7506
+ asyncProp = props.async;
7424
7507
  if (
7425
7508
  "string" !== typeof props.src ||
7426
7509
  !props.src ||
@@ -7430,7 +7513,7 @@
7430
7513
  props.onLoad ||
7431
7514
  props.onError ||
7432
7515
  4 === formatContext.insertionMode ||
7433
- formatContext.tagScope & 1 ||
7516
+ noscriptTagInScope$jscomp$1 ||
7434
7517
  null != props.itemProp
7435
7518
  )
7436
7519
  var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
@@ -7468,8 +7551,7 @@
7468
7551
  }
7469
7552
  return JSCompiler_inline_result$jscomp$6;
7470
7553
  case "style":
7471
- var insertionMode$jscomp$0 = formatContext.insertionMode,
7472
- noscriptTagInScope$jscomp$0 = !!(formatContext.tagScope & 1);
7554
+ var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1;
7473
7555
  if (hasOwnProperty.call(props, "children")) {
7474
7556
  var children$jscomp$7 = props.children,
7475
7557
  child$jscomp$0 = Array.isArray(children$jscomp$7)
@@ -7492,8 +7574,8 @@
7492
7574
  var precedence$jscomp$0 = props.precedence,
7493
7575
  href$jscomp$0 = props.href;
7494
7576
  if (
7495
- 4 === insertionMode$jscomp$0 ||
7496
- noscriptTagInScope$jscomp$0 ||
7577
+ 4 === formatContext.insertionMode ||
7578
+ noscriptTagInScope$jscomp$2 ||
7497
7579
  null != props.itemProp ||
7498
7580
  "string" !== typeof precedence$jscomp$0 ||
7499
7581
  "string" !== typeof href$jscomp$0 ||
@@ -7609,28 +7691,42 @@
7609
7691
  }
7610
7692
  return JSCompiler_inline_result$jscomp$7;
7611
7693
  case "meta":
7694
+ var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
7695
+ isFallback$jscomp$1 = formatContext.tagScope & 4;
7612
7696
  if (
7613
7697
  4 === formatContext.insertionMode ||
7614
- formatContext.tagScope & 1 ||
7698
+ noscriptTagInScope$jscomp$3 ||
7615
7699
  null != props.itemProp
7616
7700
  )
7617
7701
  var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
7618
7702
  target$jscomp$0,
7619
7703
  props,
7620
- "meta"
7704
+ "meta",
7705
+ formatContext
7621
7706
  );
7622
7707
  else
7623
7708
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
7624
- (JSCompiler_inline_result$jscomp$8 = isFallback
7709
+ (JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
7625
7710
  ? null
7626
7711
  : "string" === typeof props.charSet
7627
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
7712
+ ? pushSelfClosing(
7713
+ renderState.charsetChunks,
7714
+ props,
7715
+ "meta",
7716
+ formatContext
7717
+ )
7628
7718
  : "viewport" === props.name
7629
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
7719
+ ? pushSelfClosing(
7720
+ renderState.viewportChunks,
7721
+ props,
7722
+ "meta",
7723
+ formatContext
7724
+ )
7630
7725
  : pushSelfClosing(
7631
7726
  renderState.hoistableChunks,
7632
7727
  props,
7633
- "meta"
7728
+ "meta",
7729
+ formatContext
7634
7730
  ));
7635
7731
  return JSCompiler_inline_result$jscomp$8;
7636
7732
  case "listing":
@@ -7658,6 +7754,7 @@
7658
7754
  );
7659
7755
  }
7660
7756
  }
7757
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
7661
7758
  target$jscomp$0.push(endOfStartTag);
7662
7759
  if (null != innerHTML$jscomp$7) {
7663
7760
  if (null != children$jscomp$10)
@@ -7684,17 +7781,18 @@
7684
7781
  target$jscomp$0.push(leadingNewline);
7685
7782
  return children$jscomp$10;
7686
7783
  case "img":
7687
- var src = props.src,
7784
+ var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
7785
+ src = props.src,
7688
7786
  srcSet = props.srcSet;
7689
7787
  if (
7690
7788
  !(
7691
7789
  "lazy" === props.loading ||
7692
7790
  (!src && !srcSet) ||
7693
7791
  ("string" !== typeof src && null != src) ||
7694
- ("string" !== typeof srcSet && null != srcSet)
7792
+ ("string" !== typeof srcSet && null != srcSet) ||
7793
+ "low" === props.fetchPriority ||
7794
+ pictureOrNoScriptTagInScope
7695
7795
  ) &&
7696
- "low" !== props.fetchPriority &&
7697
- !1 === !!(formatContext.tagScope & 3) &&
7698
7796
  ("string" !== typeof src ||
7699
7797
  ":" !== src[4] ||
7700
7798
  ("d" !== src[0] && "D" !== src[0]) ||
@@ -7772,7 +7870,7 @@
7772
7870
  promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
7773
7871
  }
7774
7872
  }
7775
- return pushSelfClosing(target$jscomp$0, props, "img");
7873
+ return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
7776
7874
  case "base":
7777
7875
  case "area":
7778
7876
  case "br":
@@ -7784,7 +7882,7 @@
7784
7882
  case "source":
7785
7883
  case "track":
7786
7884
  case "wbr":
7787
- return pushSelfClosing(target$jscomp$0, props, type);
7885
+ return pushSelfClosing(target$jscomp$0, props, type, formatContext);
7788
7886
  case "annotation-xml":
7789
7887
  case "color-profile":
7790
7888
  case "font-face":
@@ -7804,13 +7902,15 @@
7804
7902
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
7805
7903
  preamble.headChunks,
7806
7904
  props,
7807
- "head"
7905
+ "head",
7906
+ formatContext
7808
7907
  );
7809
7908
  } else
7810
7909
  JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
7811
7910
  target$jscomp$0,
7812
7911
  props,
7813
- "head"
7912
+ "head",
7913
+ formatContext
7814
7914
  );
7815
7915
  return JSCompiler_inline_result$jscomp$9;
7816
7916
  case "body":
@@ -7823,13 +7923,15 @@
7823
7923
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
7824
7924
  preamble$jscomp$0.bodyChunks,
7825
7925
  props,
7826
- "body"
7926
+ "body",
7927
+ formatContext
7827
7928
  );
7828
7929
  } else
7829
7930
  JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
7830
7931
  target$jscomp$0,
7831
7932
  props,
7832
- "body"
7933
+ "body",
7934
+ formatContext
7833
7935
  );
7834
7936
  return JSCompiler_inline_result$jscomp$10;
7835
7937
  case "html":
@@ -7842,13 +7944,15 @@
7842
7944
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
7843
7945
  preamble$jscomp$1.htmlChunks,
7844
7946
  props,
7845
- "html"
7947
+ "html",
7948
+ formatContext
7846
7949
  );
7847
7950
  } else
7848
7951
  JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
7849
7952
  target$jscomp$0,
7850
7953
  props,
7851
- "html"
7954
+ "html",
7955
+ formatContext
7852
7956
  );
7853
7957
  return JSCompiler_inline_result$jscomp$11;
7854
7958
  default:
@@ -7900,6 +8004,7 @@
7900
8004
  }
7901
8005
  }
7902
8006
  }
8007
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
7903
8008
  target$jscomp$0.push(endOfStartTag);
7904
8009
  pushInnerHTML(
7905
8010
  target$jscomp$0,
@@ -7909,7 +8014,12 @@
7909
8014
  return children$jscomp$11;
7910
8015
  }
7911
8016
  }
7912
- return pushStartGenericElement(target$jscomp$0, props, type);
8017
+ return pushStartGenericElement(
8018
+ target$jscomp$0,
8019
+ props,
8020
+ type,
8021
+ formatContext
8022
+ );
7913
8023
  }
7914
8024
  function endChunkForTag(tag) {
7915
8025
  var chunk = endTagCache.get(tag);
@@ -8590,6 +8700,13 @@
8590
8700
  ),
8591
8701
  (didWarnAboutNoopUpdateForComponent[warningKey] = !0));
8592
8702
  }
8703
+ function getTreeId(context) {
8704
+ var overflow = context.overflow;
8705
+ context = context.id;
8706
+ return (
8707
+ (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow
8708
+ );
8709
+ }
8593
8710
  function pushTreeContext(baseContext, totalChildren, index) {
8594
8711
  var baseIdWithLeadingBit = baseContext.id;
8595
8712
  baseContext = baseContext.overflow;
@@ -9008,7 +9125,6 @@
9008
9125
  null,
9009
9126
  emptyTreeContext,
9010
9127
  null,
9011
- !1,
9012
9128
  emptyContextObject,
9013
9129
  null
9014
9130
  );
@@ -9063,7 +9179,6 @@
9063
9179
  context,
9064
9180
  treeContext,
9065
9181
  componentStack,
9066
- isFallback,
9067
9182
  legacyContext,
9068
9183
  debugTask
9069
9184
  ) {
@@ -9088,8 +9203,7 @@
9088
9203
  context: context,
9089
9204
  treeContext: treeContext,
9090
9205
  componentStack: componentStack,
9091
- thenableState: thenableState,
9092
- isFallback: isFallback
9206
+ thenableState: thenableState
9093
9207
  };
9094
9208
  task.debugTask = debugTask;
9095
9209
  abortSet.add(task);
@@ -9109,7 +9223,6 @@
9109
9223
  context,
9110
9224
  treeContext,
9111
9225
  componentStack,
9112
- isFallback,
9113
9226
  legacyContext,
9114
9227
  debugTask
9115
9228
  ) {
@@ -9135,8 +9248,7 @@
9135
9248
  context: context,
9136
9249
  treeContext: treeContext,
9137
9250
  componentStack: componentStack,
9138
- thenableState: thenableState,
9139
- isFallback: isFallback
9251
+ thenableState: thenableState
9140
9252
  };
9141
9253
  task.debugTask = debugTask;
9142
9254
  abortSet.add(task);
@@ -9861,7 +9973,6 @@
9861
9973
  hoistableState = task.hoistableState,
9862
9974
  formatContext = task.formatContext,
9863
9975
  textEmbedded = segment.lastPushedText,
9864
- isFallback = task.isFallback,
9865
9976
  propKey;
9866
9977
  for (propKey in props)
9867
9978
  if (hasOwnProperty.call(props, propKey)) {
@@ -9886,17 +9997,16 @@
9886
9997
  preambleState,
9887
9998
  hoistableState,
9888
9999
  formatContext,
9889
- textEmbedded,
9890
- isFallback
10000
+ textEmbedded
9891
10001
  );
9892
10002
  segment.lastPushedText = !1;
9893
- var _prevContext = task.formatContext,
10003
+ var _prevContext2 = task.formatContext,
9894
10004
  _prevKeyPath2 = task.keyPath;
9895
10005
  task.keyPath = keyPath;
9896
10006
  if (
9897
10007
  3 ===
9898
10008
  (task.formatContext = getChildFormatContext(
9899
- _prevContext,
10009
+ _prevContext2,
9900
10010
  type,
9901
10011
  props
9902
10012
  )).insertionMode
@@ -9925,14 +10035,13 @@
9925
10035
  task.context,
9926
10036
  task.treeContext,
9927
10037
  task.componentStack,
9928
- task.isFallback,
9929
10038
  emptyContextObject,
9930
10039
  task.debugTask
9931
10040
  );
9932
10041
  pushComponentStack(preambleTask);
9933
10042
  request.pingedTasks.push(preambleTask);
9934
10043
  } else renderNode(request, task, _children, -1);
9935
- task.formatContext = _prevContext;
10044
+ task.formatContext = _prevContext2;
9936
10045
  task.keyPath = _prevKeyPath2;
9937
10046
  a: {
9938
10047
  var target$jscomp$0 = segment.chunks,
@@ -9958,19 +10067,19 @@
9958
10067
  case "wbr":
9959
10068
  break a;
9960
10069
  case "body":
9961
- if (1 >= _prevContext.insertionMode) {
10070
+ if (1 >= _prevContext2.insertionMode) {
9962
10071
  resumableState$jscomp$0.hasBody = !0;
9963
10072
  break a;
9964
10073
  }
9965
10074
  break;
9966
10075
  case "html":
9967
- if (0 === _prevContext.insertionMode) {
10076
+ if (0 === _prevContext2.insertionMode) {
9968
10077
  resumableState$jscomp$0.hasHtml = !0;
9969
10078
  break a;
9970
10079
  }
9971
10080
  break;
9972
10081
  case "head":
9973
- if (1 >= _prevContext.insertionMode) break a;
10082
+ if (1 >= _prevContext2.insertionMode) break a;
9974
10083
  }
9975
10084
  target$jscomp$0.push(endChunkForTag(type));
9976
10085
  }
@@ -10012,9 +10121,24 @@
10012
10121
  task.keyPath = _prevKeyPath4;
10013
10122
  return;
10014
10123
  case REACT_VIEW_TRANSITION_TYPE:
10015
- var prevKeyPath$jscomp$3 = task.keyPath;
10124
+ var prevContext$jscomp$0 = task.formatContext,
10125
+ prevKeyPath$jscomp$3 = task.keyPath;
10126
+ var resumableState$jscomp$1 = request.resumableState;
10127
+ if (null == props.name || "auto" === props.name) {
10128
+ var treeId = getTreeId(task.treeContext);
10129
+ makeId(resumableState$jscomp$1, treeId, 0);
10130
+ }
10131
+ task.formatContext = prevContext$jscomp$0;
10016
10132
  task.keyPath = keyPath;
10017
- renderNodeDestructive(request, task, props.children, -1);
10133
+ if (null != props.name && "auto" !== props.name)
10134
+ renderNodeDestructive(request, task, props.children, -1);
10135
+ else {
10136
+ var prevTreeContext = task.treeContext;
10137
+ task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
10138
+ renderNode(request, task, props.children, -1);
10139
+ task.treeContext = prevTreeContext;
10140
+ }
10141
+ task.formatContext = prevContext$jscomp$0;
10018
10142
  task.keyPath = prevKeyPath$jscomp$3;
10019
10143
  return;
10020
10144
  case REACT_SCOPE_TYPE:
@@ -10023,16 +10147,21 @@
10023
10147
  );
10024
10148
  case REACT_SUSPENSE_TYPE:
10025
10149
  a: if (null !== task.replay) {
10026
- var _prevKeyPath = task.keyPath;
10150
+ var _prevKeyPath = task.keyPath,
10151
+ _prevContext = task.formatContext;
10027
10152
  task.keyPath = keyPath;
10153
+ task.formatContext =
10154
+ getSuspenseContentFormatContext(_prevContext);
10028
10155
  var _content = props.children;
10029
10156
  try {
10030
10157
  renderNode(request, task, _content, -1);
10031
10158
  } finally {
10032
- task.keyPath = _prevKeyPath;
10159
+ (task.keyPath = _prevKeyPath),
10160
+ (task.formatContext = _prevContext);
10033
10161
  }
10034
10162
  } else {
10035
10163
  var prevKeyPath$jscomp$4 = task.keyPath,
10164
+ prevContext$jscomp$1 = task.formatContext,
10036
10165
  parentBoundary = task.blockedBoundary,
10037
10166
  parentPreamble = task.blockedPreamble,
10038
10167
  parentHoistableState = task.hoistableState,
@@ -10095,6 +10224,8 @@
10095
10224
  task.blockedSegment = boundarySegment;
10096
10225
  task.blockedPreamble = newBoundary.fallbackPreamble;
10097
10226
  task.keyPath = fallbackKeyPath;
10227
+ task.formatContext =
10228
+ getSuspenseFallbackFormatContext(prevContext$jscomp$1);
10098
10229
  boundarySegment.status = 6;
10099
10230
  try {
10100
10231
  renderNode(request, task, fallback, -1),
@@ -10107,7 +10238,8 @@
10107
10238
  } finally {
10108
10239
  (task.blockedSegment = parentSegment),
10109
10240
  (task.blockedPreamble = parentPreamble),
10110
- (task.keyPath = prevKeyPath$jscomp$4);
10241
+ (task.keyPath = prevKeyPath$jscomp$4),
10242
+ (task.formatContext = prevContext$jscomp$1);
10111
10243
  }
10112
10244
  var suspendedPrimaryTask = createRenderTask(
10113
10245
  request,
@@ -10120,11 +10252,10 @@
10120
10252
  newBoundary.contentState,
10121
10253
  task.abortSet,
10122
10254
  keyPath,
10123
- task.formatContext,
10255
+ getSuspenseContentFormatContext(task.formatContext),
10124
10256
  task.context,
10125
10257
  task.treeContext,
10126
10258
  task.componentStack,
10127
- task.isFallback,
10128
10259
  emptyContextObject,
10129
10260
  task.debugTask
10130
10261
  );
@@ -10136,6 +10267,8 @@
10136
10267
  task.hoistableState = newBoundary.contentState;
10137
10268
  task.blockedSegment = contentRootSegment;
10138
10269
  task.keyPath = keyPath;
10270
+ task.formatContext =
10271
+ getSuspenseContentFormatContext(prevContext$jscomp$1);
10139
10272
  contentRootSegment.status = 6;
10140
10273
  try {
10141
10274
  if (
@@ -10191,7 +10324,8 @@
10191
10324
  (task.blockedPreamble = parentPreamble),
10192
10325
  (task.hoistableState = parentHoistableState),
10193
10326
  (task.blockedSegment = parentSegment),
10194
- (task.keyPath = prevKeyPath$jscomp$4);
10327
+ (task.keyPath = prevKeyPath$jscomp$4),
10328
+ (task.formatContext = prevContext$jscomp$1);
10195
10329
  }
10196
10330
  var suspendedFallbackTask = createRenderTask(
10197
10331
  request,
@@ -10204,11 +10338,10 @@
10204
10338
  newBoundary.fallbackState,
10205
10339
  fallbackAbortSet,
10206
10340
  [keyPath[0], "Suspense Fallback", keyPath[2]],
10207
- task.formatContext,
10341
+ getSuspenseFallbackFormatContext(task.formatContext),
10208
10342
  task.context,
10209
10343
  task.treeContext,
10210
10344
  task.componentStack,
10211
- !0,
10212
10345
  emptyContextObject,
10213
10346
  task.debugTask
10214
10347
  );
@@ -10388,9 +10521,9 @@
10388
10521
  ">. The tree doesn't match so React will fallback to client rendering."
10389
10522
  );
10390
10523
  var childNodes = node[2];
10391
- node = node[3];
10392
- name = task.node;
10393
- task.replay = { nodes: childNodes, slots: node, pendingTasks: 1 };
10524
+ name = node[3];
10525
+ keyOrIndex = task.node;
10526
+ task.replay = { nodes: childNodes, slots: name, pendingTasks: 1 };
10394
10527
  try {
10395
10528
  renderElement(request, task, keyPath, type, props, ref);
10396
10529
  if (
@@ -10407,7 +10540,7 @@
10407
10540
  null !== x &&
10408
10541
  (x === SuspenseException || "function" === typeof x.then)
10409
10542
  )
10410
- throw (task.node === name && (task.replay = replay), x);
10543
+ throw (task.node === keyOrIndex && (task.replay = replay), x);
10411
10544
  task.replay.pendingTasks--;
10412
10545
  props = getThrownInfo(task.componentStack);
10413
10546
  erroredReplay(
@@ -10416,7 +10549,7 @@
10416
10549
  x,
10417
10550
  props,
10418
10551
  childNodes,
10419
- node,
10552
+ name,
10420
10553
  task.debugTask
10421
10554
  );
10422
10555
  }
@@ -10436,6 +10569,7 @@
10436
10569
  keyOrIndex = null === node[4] ? [] : node[4][2];
10437
10570
  node = null === node[4] ? null : node[4][3];
10438
10571
  var prevKeyPath = task.keyPath,
10572
+ prevContext = task.formatContext,
10439
10573
  previousReplaySet = task.replay,
10440
10574
  parentBoundary = task.blockedBoundary,
10441
10575
  parentHoistableState = task.hoistableState,
@@ -10461,6 +10595,7 @@
10461
10595
  task.blockedBoundary = props;
10462
10596
  task.hoistableState = props.contentState;
10463
10597
  task.keyPath = keyPath;
10598
+ task.formatContext = getSuspenseContentFormatContext(prevContext);
10464
10599
  task.replay = { nodes: ref, slots: name, pendingTasks: 1 };
10465
10600
  try {
10466
10601
  renderNode(request, task, content, -1);
@@ -10503,7 +10638,8 @@
10503
10638
  (task.blockedBoundary = parentBoundary),
10504
10639
  (task.hoistableState = parentHoistableState),
10505
10640
  (task.replay = previousReplaySet),
10506
- (task.keyPath = prevKeyPath);
10641
+ (task.keyPath = prevKeyPath),
10642
+ (task.formatContext = prevContext);
10507
10643
  }
10508
10644
  props = createReplayTask(
10509
10645
  request,
@@ -10515,11 +10651,10 @@
10515
10651
  props.fallbackState,
10516
10652
  fallbackAbortSet,
10517
10653
  [keyPath[0], "Suspense Fallback", keyPath[2]],
10518
- task.formatContext,
10654
+ getSuspenseFallbackFormatContext(task.formatContext),
10519
10655
  task.context,
10520
10656
  task.treeContext,
10521
10657
  task.componentStack,
10522
- !0,
10523
10658
  emptyContextObject,
10524
10659
  task.debugTask
10525
10660
  );
@@ -11020,7 +11155,6 @@
11020
11155
  task.context,
11021
11156
  task.treeContext,
11022
11157
  task.componentStack,
11023
- task.isFallback,
11024
11158
  emptyContextObject,
11025
11159
  task.debugTask
11026
11160
  );
@@ -11052,7 +11186,6 @@
11052
11186
  task.context,
11053
11187
  task.treeContext,
11054
11188
  task.componentStack,
11055
- task.isFallback,
11056
11189
  emptyContextObject,
11057
11190
  task.debugTask
11058
11191
  );
@@ -13730,20 +13863,14 @@
13730
13863
  useTransition: clientHookNotSupported,
13731
13864
  useSyncExternalStore: clientHookNotSupported,
13732
13865
  useId: function () {
13733
- var treeId = currentlyRenderingTask.treeContext;
13734
- var overflow = treeId.overflow;
13735
- treeId = treeId.id;
13736
- treeId =
13737
- (treeId & ~(1 << (32 - clz32(treeId) - 1))).toString(32) + overflow;
13738
- var resumableState = currentResumableState;
13866
+ var treeId = getTreeId(currentlyRenderingTask.treeContext),
13867
+ resumableState = currentResumableState;
13739
13868
  if (null === resumableState)
13740
13869
  throw Error(
13741
13870
  "Invalid hook call. Hooks can only be called inside of the body of a function component."
13742
13871
  );
13743
- overflow = localIdCounter++;
13744
- treeId = "\u00ab" + resumableState.idPrefix + "R" + treeId;
13745
- 0 < overflow && (treeId += "H" + overflow.toString(32));
13746
- return treeId + "\u00bb";
13872
+ var localId = localIdCounter++;
13873
+ return makeId(resumableState, treeId, localId);
13747
13874
  },
13748
13875
  useHostTransitionStatus: function () {
13749
13876
  resolveCurrentlyRenderingComponent();
@@ -13855,7 +13982,7 @@
13855
13982
  void 0,
13856
13983
  void 0
13857
13984
  ),
13858
- createFormatContext(0, null, 0),
13985
+ createFormatContext(0, null, 0, null),
13859
13986
  Infinity,
13860
13987
  function (error, errorInfo) {
13861
13988
  if ("object" === typeof error && null !== error) {
@@ -14016,5 +14143,5 @@
14016
14143
  });
14017
14144
  });
14018
14145
  };
14019
- exports.version = "19.2.0-experimental-b94603b9-20250513";
14146
+ exports.version = "19.2.0-experimental-4a45ba92-20250515";
14020
14147
  })();