@vxrn/vendor 1.1.345 → 1.1.347
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/react/cjs/react-compiler-runtime.development.js +1 -18
- package/react/cjs/react-jsx-dev-runtime.development.js +127 -144
- package/react/cjs/react-jsx-dev-runtime.react-server.development.js +128 -145
- package/react/cjs/react-jsx-runtime.development.js +127 -144
- package/react/cjs/react-jsx-runtime.react-server.development.js +128 -145
- package/react/cjs/react.development.js +204 -230
- package/react/cjs/react.production.js +9 -10
- package/react/cjs/react.react-server.development.js +172 -199
- package/react/cjs/react.react-server.production.js +6 -7
- package/react/package.json +2 -2
- package/react-dom/cjs/react-dom-client.development.js +6107 -5750
- package/react-dom/cjs/react-dom-client.production.js +2295 -1924
- package/react-dom/cjs/react-dom-profiling.development.js +6134 -5777
- package/react-dom/cjs/react-dom-profiling.profiling.js +2572 -2247
- package/react-dom/cjs/react-dom-server-legacy.browser.development.js +1244 -1040
- package/react-dom/cjs/react-dom-server-legacy.browser.production.js +891 -761
- package/react-dom/cjs/react-dom-server-legacy.node.development.js +1244 -1040
- package/react-dom/cjs/react-dom-server-legacy.node.production.js +887 -761
- package/react-dom/cjs/react-dom-server.browser.development.js +1380 -1060
- package/react-dom/cjs/react-dom-server.browser.production.js +999 -749
- package/react-dom/cjs/react-dom-server.bun.development.js +1241 -1032
- package/react-dom/cjs/react-dom-server.bun.production.js +886 -754
- package/react-dom/cjs/react-dom-server.edge.development.js +1393 -1069
- package/react-dom/cjs/react-dom-server.edge.production.js +1007 -758
- package/react-dom/cjs/react-dom-server.node.development.js +1624 -1254
- package/react-dom/cjs/react-dom-server.node.production.js +1242 -953
- package/react-dom/cjs/react-dom-test-utils.development.js +1 -20
- package/react-dom/cjs/react-dom.development.js +34 -50
- package/react-dom/cjs/react-dom.production.js +4 -3
- package/react-dom/cjs/react-dom.react-server.development.js +48 -66
- package/react-dom/cjs/react-dom.react-server.production.js +6 -8
- package/react-dom/package.json +3 -3
- package/react-dom/static.browser.js +1 -0
- package/react-dom/static.edge.js +1 -0
- package/react-dom/static.node.js +1 -0
|
@@ -41,36 +41,6 @@
|
|
|
41
41
|
function scriptReplacer(match, prefix, s, suffix) {
|
|
42
42
|
return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
|
|
43
43
|
}
|
|
44
|
-
function warn(format) {
|
|
45
|
-
for (
|
|
46
|
-
var _len = arguments.length,
|
|
47
|
-
args = Array(1 < _len ? _len - 1 : 0),
|
|
48
|
-
_key = 1;
|
|
49
|
-
_key < _len;
|
|
50
|
-
_key++
|
|
51
|
-
)
|
|
52
|
-
args[_key - 1] = arguments[_key];
|
|
53
|
-
printWarning("warn", format, args, Error("react-stack-top-frame"));
|
|
54
|
-
}
|
|
55
|
-
function error$jscomp$2(format) {
|
|
56
|
-
for (
|
|
57
|
-
var _len2 = arguments.length,
|
|
58
|
-
args = Array(1 < _len2 ? _len2 - 1 : 0),
|
|
59
|
-
_key2 = 1;
|
|
60
|
-
_key2 < _len2;
|
|
61
|
-
_key2++
|
|
62
|
-
)
|
|
63
|
-
args[_key2 - 1] = arguments[_key2];
|
|
64
|
-
printWarning("error", format, args, Error("react-stack-top-frame"));
|
|
65
|
-
}
|
|
66
|
-
function printWarning(level, format, args, currentStack) {
|
|
67
|
-
ReactSharedInternals.getCurrentStack &&
|
|
68
|
-
((currentStack = ReactSharedInternals.getCurrentStack(currentStack)),
|
|
69
|
-
"" !== currentStack &&
|
|
70
|
-
((format += "%s"), (args = args.concat([currentStack]))));
|
|
71
|
-
args.unshift(format);
|
|
72
|
-
Function.prototype.apply.call(console[level], console, args);
|
|
73
|
-
}
|
|
74
44
|
function objectName(object) {
|
|
75
45
|
return Object.prototype.toString
|
|
76
46
|
.call(object)
|
|
@@ -98,8 +68,8 @@
|
|
|
98
68
|
return value.$$typeof === CLIENT_REFERENCE_TAG
|
|
99
69
|
? "client"
|
|
100
70
|
: (value = value.displayName || value.name)
|
|
101
|
-
|
|
102
|
-
|
|
71
|
+
? "function " + value
|
|
72
|
+
: "function";
|
|
103
73
|
default:
|
|
104
74
|
return String(value);
|
|
105
75
|
}
|
|
@@ -142,8 +112,8 @@
|
|
|
142
112
|
"string" === typeof value
|
|
143
113
|
? value
|
|
144
114
|
: "object" === typeof value && null !== value
|
|
145
|
-
|
|
146
|
-
|
|
115
|
+
? "{" + describeObjectForErrorMessage(value) + "}"
|
|
116
|
+
: "{" + describeValueForErrorMessage(value) + "}";
|
|
147
117
|
"" + i === expandedName
|
|
148
118
|
? ((start = objKind.length),
|
|
149
119
|
(length = value.length),
|
|
@@ -229,9 +199,9 @@
|
|
|
229
199
|
return void 0 === expandedName
|
|
230
200
|
? objKind
|
|
231
201
|
: -1 < start && 0 < length
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
202
|
+
? ((objectOrArray = " ".repeat(start) + "^".repeat(length)),
|
|
203
|
+
"\n " + objKind + "\n " + objectOrArray)
|
|
204
|
+
: "\n " + objKind;
|
|
235
205
|
}
|
|
236
206
|
function murmurhash3_32_gc(key, seed) {
|
|
237
207
|
var remainder = key.length & 3;
|
|
@@ -290,6 +260,11 @@
|
|
|
290
260
|
4294967295;
|
|
291
261
|
return (h1 ^ (h1 >>> 16)) >>> 0;
|
|
292
262
|
}
|
|
263
|
+
function handleErrorInNextTick(error) {
|
|
264
|
+
setTimeout(function () {
|
|
265
|
+
throw error;
|
|
266
|
+
});
|
|
267
|
+
}
|
|
293
268
|
function writeChunk(destination, chunk) {
|
|
294
269
|
if (0 !== chunk.byteLength)
|
|
295
270
|
if (2048 < chunk.byteLength)
|
|
@@ -336,7 +311,7 @@
|
|
|
336
311
|
function stringToPrecomputedChunk(content) {
|
|
337
312
|
content = textEncoder.encode(content);
|
|
338
313
|
2048 < content.byteLength &&
|
|
339
|
-
error
|
|
314
|
+
console.error(
|
|
340
315
|
"precomputed chunks must be smaller than the view size configured for this host. This is a bug in React."
|
|
341
316
|
);
|
|
342
317
|
return content;
|
|
@@ -368,7 +343,7 @@
|
|
|
368
343
|
function checkAttributeStringCoercion(value, attributeName) {
|
|
369
344
|
if (willCoercionThrow(value))
|
|
370
345
|
return (
|
|
371
|
-
error
|
|
346
|
+
console.error(
|
|
372
347
|
"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
373
348
|
attributeName,
|
|
374
349
|
typeName(value)
|
|
@@ -379,7 +354,7 @@
|
|
|
379
354
|
function checkCSSPropertyStringCoercion(value, propName) {
|
|
380
355
|
if (willCoercionThrow(value))
|
|
381
356
|
return (
|
|
382
|
-
error
|
|
357
|
+
console.error(
|
|
383
358
|
"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
384
359
|
propName,
|
|
385
360
|
typeName(value)
|
|
@@ -390,7 +365,7 @@
|
|
|
390
365
|
function checkHtmlStringCoercion(value) {
|
|
391
366
|
if (willCoercionThrow(value))
|
|
392
367
|
return (
|
|
393
|
-
error
|
|
368
|
+
console.error(
|
|
394
369
|
"The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",
|
|
395
370
|
typeName(value)
|
|
396
371
|
),
|
|
@@ -405,7 +380,7 @@
|
|
|
405
380
|
if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
|
|
406
381
|
return (validatedAttributeNameCache[attributeName] = !0);
|
|
407
382
|
illegalAttributeNameCache[attributeName] = !0;
|
|
408
|
-
error
|
|
383
|
+
console.error("Invalid attribute name: `%s`", attributeName);
|
|
409
384
|
return !1;
|
|
410
385
|
}
|
|
411
386
|
function checkControlledValueProps(tagName, props) {
|
|
@@ -416,17 +391,17 @@
|
|
|
416
391
|
props.disabled ||
|
|
417
392
|
null == props.value ||
|
|
418
393
|
("select" === tagName
|
|
419
|
-
? error
|
|
394
|
+
? console.error(
|
|
420
395
|
"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."
|
|
421
396
|
)
|
|
422
|
-
: error
|
|
397
|
+
: console.error(
|
|
423
398
|
"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."
|
|
424
399
|
));
|
|
425
400
|
props.onChange ||
|
|
426
401
|
props.readOnly ||
|
|
427
402
|
props.disabled ||
|
|
428
403
|
null == props.checked ||
|
|
429
|
-
error
|
|
404
|
+
console.error(
|
|
430
405
|
"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."
|
|
431
406
|
);
|
|
432
407
|
}
|
|
@@ -441,7 +416,7 @@
|
|
|
441
416
|
tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;
|
|
442
417
|
if (null == tagName)
|
|
443
418
|
return (
|
|
444
|
-
error
|
|
419
|
+
console.error(
|
|
445
420
|
"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",
|
|
446
421
|
name
|
|
447
422
|
),
|
|
@@ -449,7 +424,7 @@
|
|
|
449
424
|
);
|
|
450
425
|
if (name !== tagName)
|
|
451
426
|
return (
|
|
452
|
-
error
|
|
427
|
+
console.error(
|
|
453
428
|
"Invalid ARIA attribute `%s`. Did you mean `%s`?",
|
|
454
429
|
name,
|
|
455
430
|
tagName
|
|
@@ -462,7 +437,7 @@
|
|
|
462
437
|
tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;
|
|
463
438
|
if (null == tagName) return (warnedProperties$1[name] = !0), !1;
|
|
464
439
|
name !== tagName &&
|
|
465
|
-
(error
|
|
440
|
+
(console.error(
|
|
466
441
|
"Unknown ARIA attribute `%s`. Did you mean `%s`?",
|
|
467
442
|
name,
|
|
468
443
|
tagName
|
|
@@ -482,13 +457,13 @@
|
|
|
482
457
|
})
|
|
483
458
|
.join(", ");
|
|
484
459
|
1 === invalidProps.length
|
|
485
|
-
? error
|
|
460
|
+
? console.error(
|
|
486
461
|
"Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
|
|
487
462
|
props,
|
|
488
463
|
type
|
|
489
464
|
)
|
|
490
465
|
: 1 < invalidProps.length &&
|
|
491
|
-
error
|
|
466
|
+
console.error(
|
|
492
467
|
"Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
|
|
493
468
|
props,
|
|
494
469
|
type
|
|
@@ -500,7 +475,7 @@
|
|
|
500
475
|
var lowerCasedName = name.toLowerCase();
|
|
501
476
|
if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName)
|
|
502
477
|
return (
|
|
503
|
-
error
|
|
478
|
+
console.error(
|
|
504
479
|
"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."
|
|
505
480
|
),
|
|
506
481
|
(warnedProperties[name] = !0)
|
|
@@ -521,7 +496,7 @@
|
|
|
521
496
|
: null;
|
|
522
497
|
if (null != eventRegistry)
|
|
523
498
|
return (
|
|
524
|
-
error
|
|
499
|
+
console.error(
|
|
525
500
|
"Invalid event handler property `%s`. Did you mean `%s`?",
|
|
526
501
|
name,
|
|
527
502
|
eventRegistry
|
|
@@ -530,7 +505,7 @@
|
|
|
530
505
|
);
|
|
531
506
|
if (EVENT_NAME_REGEX.test(name))
|
|
532
507
|
return (
|
|
533
|
-
error
|
|
508
|
+
console.error(
|
|
534
509
|
"Unknown event handler property `%s`. It will be ignored.",
|
|
535
510
|
name
|
|
536
511
|
),
|
|
@@ -539,7 +514,7 @@
|
|
|
539
514
|
} else if (EVENT_NAME_REGEX.test(name))
|
|
540
515
|
return (
|
|
541
516
|
INVALID_EVENT_NAME_REGEX.test(name) &&
|
|
542
|
-
error
|
|
517
|
+
console.error(
|
|
543
518
|
"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",
|
|
544
519
|
name
|
|
545
520
|
),
|
|
@@ -548,14 +523,14 @@
|
|
|
548
523
|
if (rARIA.test(name) || rARIACamel.test(name)) return !0;
|
|
549
524
|
if ("innerhtml" === lowerCasedName)
|
|
550
525
|
return (
|
|
551
|
-
error
|
|
526
|
+
console.error(
|
|
552
527
|
"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."
|
|
553
528
|
),
|
|
554
529
|
(warnedProperties[name] = !0)
|
|
555
530
|
);
|
|
556
531
|
if ("aria" === lowerCasedName)
|
|
557
532
|
return (
|
|
558
|
-
error
|
|
533
|
+
console.error(
|
|
559
534
|
"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."
|
|
560
535
|
),
|
|
561
536
|
(warnedProperties[name] = !0)
|
|
@@ -567,7 +542,7 @@
|
|
|
567
542
|
"string" !== typeof value
|
|
568
543
|
)
|
|
569
544
|
return (
|
|
570
|
-
error
|
|
545
|
+
console.error(
|
|
571
546
|
"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",
|
|
572
547
|
typeof value
|
|
573
548
|
),
|
|
@@ -575,7 +550,7 @@
|
|
|
575
550
|
);
|
|
576
551
|
if ("number" === typeof value && isNaN(value))
|
|
577
552
|
return (
|
|
578
|
-
error
|
|
553
|
+
console.error(
|
|
579
554
|
"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",
|
|
580
555
|
name
|
|
581
556
|
),
|
|
@@ -587,7 +562,7 @@
|
|
|
587
562
|
lowerCasedName !== name)
|
|
588
563
|
)
|
|
589
564
|
return (
|
|
590
|
-
error
|
|
565
|
+
console.error(
|
|
591
566
|
"Invalid DOM property `%s`. Did you mean `%s`?",
|
|
592
567
|
name,
|
|
593
568
|
lowerCasedName
|
|
@@ -596,7 +571,7 @@
|
|
|
596
571
|
);
|
|
597
572
|
} else if (name !== lowerCasedName)
|
|
598
573
|
return (
|
|
599
|
-
error
|
|
574
|
+
console.error(
|
|
600
575
|
"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",
|
|
601
576
|
name,
|
|
602
577
|
lowerCasedName
|
|
@@ -665,7 +640,7 @@
|
|
|
665
640
|
if ("data-" === lowerCasedName || "aria-" === lowerCasedName)
|
|
666
641
|
return !0;
|
|
667
642
|
value
|
|
668
|
-
? error
|
|
643
|
+
? console.error(
|
|
669
644
|
'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',
|
|
670
645
|
value,
|
|
671
646
|
name,
|
|
@@ -673,7 +648,7 @@
|
|
|
673
648
|
value,
|
|
674
649
|
name
|
|
675
650
|
)
|
|
676
|
-
: error
|
|
651
|
+
: console.error(
|
|
677
652
|
'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',
|
|
678
653
|
value,
|
|
679
654
|
name,
|
|
@@ -722,7 +697,7 @@
|
|
|
722
697
|
default:
|
|
723
698
|
return !0;
|
|
724
699
|
}
|
|
725
|
-
error
|
|
700
|
+
console.error(
|
|
726
701
|
"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",
|
|
727
702
|
value,
|
|
728
703
|
name,
|
|
@@ -749,13 +724,13 @@
|
|
|
749
724
|
})
|
|
750
725
|
.join(", ");
|
|
751
726
|
1 === unknownProps.length
|
|
752
|
-
? error
|
|
727
|
+
? console.error(
|
|
753
728
|
"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",
|
|
754
729
|
props,
|
|
755
730
|
type
|
|
756
731
|
)
|
|
757
732
|
: 1 < unknownProps.length &&
|
|
758
|
-
error
|
|
733
|
+
console.error(
|
|
759
734
|
"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",
|
|
760
735
|
props,
|
|
761
736
|
type
|
|
@@ -856,7 +831,7 @@
|
|
|
856
831
|
onHeaders &&
|
|
857
832
|
"number" === typeof maxHeadersLength &&
|
|
858
833
|
0 >= maxHeadersLength &&
|
|
859
|
-
error
|
|
834
|
+
console.error(
|
|
860
835
|
"React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.",
|
|
861
836
|
0 === maxHeadersLength ? "zero" : maxHeadersLength
|
|
862
837
|
);
|
|
@@ -866,7 +841,8 @@
|
|
|
866
841
|
fontPreloads: "",
|
|
867
842
|
highImagePreloads: "",
|
|
868
843
|
remainingCapacity:
|
|
869
|
-
|
|
844
|
+
2 +
|
|
845
|
+
("number" === typeof maxHeadersLength ? maxHeadersLength : 2e3)
|
|
870
846
|
}
|
|
871
847
|
: null;
|
|
872
848
|
onHeaders = {
|
|
@@ -930,8 +906,8 @@
|
|
|
930
906
|
null == maxHeadersLength.crossOrigin
|
|
931
907
|
? void 0
|
|
932
908
|
: "use-credentials" === maxHeadersLength.crossOrigin
|
|
933
|
-
|
|
934
|
-
|
|
909
|
+
? "use-credentials"
|
|
910
|
+
: ""));
|
|
935
911
|
preloadBootstrapScriptOrModule(
|
|
936
912
|
resumableState,
|
|
937
913
|
onHeaders,
|
|
@@ -984,8 +960,8 @@
|
|
|
984
960
|
"string" === typeof importMap || null == importMap.crossOrigin
|
|
985
961
|
? void 0
|
|
986
962
|
: "use-credentials" === importMap.crossOrigin
|
|
987
|
-
|
|
988
|
-
|
|
963
|
+
? "use-credentials"
|
|
964
|
+
: "")),
|
|
989
965
|
preloadBootstrapScriptOrModule(
|
|
990
966
|
resumableState,
|
|
991
967
|
onHeaders,
|
|
@@ -1053,8 +1029,8 @@
|
|
|
1053
1029
|
"http://www.w3.org/2000/svg" === namespaceURI
|
|
1054
1030
|
? SVG_MODE
|
|
1055
1031
|
: "http://www.w3.org/1998/Math/MathML" === namespaceURI
|
|
1056
|
-
|
|
1057
|
-
|
|
1032
|
+
? MATHML_MODE
|
|
1033
|
+
: ROOT_HTML_MODE,
|
|
1058
1034
|
null,
|
|
1059
1035
|
0
|
|
1060
1036
|
);
|
|
@@ -1115,12 +1091,12 @@
|
|
|
1115
1091
|
return parentContext.insertionMode >= HTML_TABLE_MODE
|
|
1116
1092
|
? createFormatContext(HTML_MODE, null, parentContext.tagScope)
|
|
1117
1093
|
: parentContext.insertionMode === ROOT_HTML_MODE
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1094
|
+
? "html" === type
|
|
1095
|
+
? createFormatContext(HTML_HTML_MODE, null, parentContext.tagScope)
|
|
1096
|
+
: createFormatContext(HTML_MODE, null, parentContext.tagScope)
|
|
1097
|
+
: parentContext.insertionMode === HTML_HTML_MODE
|
|
1098
|
+
? createFormatContext(HTML_MODE, null, parentContext.tagScope)
|
|
1099
|
+
: parentContext;
|
|
1124
1100
|
}
|
|
1125
1101
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
1126
1102
|
if ("" === text) return textEmbedded;
|
|
@@ -1157,7 +1133,7 @@
|
|
|
1157
1133
|
(warnedStyleNames.hasOwnProperty(name) &&
|
|
1158
1134
|
warnedStyleNames[name]) ||
|
|
1159
1135
|
((warnedStyleNames[name] = !0),
|
|
1160
|
-
error
|
|
1136
|
+
console.error(
|
|
1161
1137
|
"Unsupported style property %s. Did you mean %s?",
|
|
1162
1138
|
name,
|
|
1163
1139
|
camelize(name.replace(msPattern$1, "ms-"))
|
|
@@ -1167,7 +1143,7 @@
|
|
|
1167
1143
|
(warnedStyleNames.hasOwnProperty(name) &&
|
|
1168
1144
|
warnedStyleNames[name]) ||
|
|
1169
1145
|
((warnedStyleNames[name] = !0),
|
|
1170
|
-
error
|
|
1146
|
+
console.error(
|
|
1171
1147
|
"Unsupported vendor-prefixed style property %s. Did you mean %s?",
|
|
1172
1148
|
name,
|
|
1173
1149
|
name.charAt(0).toUpperCase() + name.slice(1)
|
|
@@ -1178,7 +1154,7 @@
|
|
|
1178
1154
|
(warnedStyleValues.hasOwnProperty(value$jscomp$0) &&
|
|
1179
1155
|
warnedStyleValues[value$jscomp$0]) ||
|
|
1180
1156
|
((warnedStyleValues[value$jscomp$0] = !0),
|
|
1181
|
-
error
|
|
1157
|
+
console.error(
|
|
1182
1158
|
'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',
|
|
1183
1159
|
name,
|
|
1184
1160
|
value$jscomp$0.replace(
|
|
@@ -1191,14 +1167,14 @@
|
|
|
1191
1167
|
(isNaN(value)
|
|
1192
1168
|
? warnedForNaNValue ||
|
|
1193
1169
|
((warnedForNaNValue = !0),
|
|
1194
|
-
error
|
|
1170
|
+
console.error(
|
|
1195
1171
|
"`NaN` is an invalid value for the `%s` css style property.",
|
|
1196
1172
|
nameChunk
|
|
1197
1173
|
))
|
|
1198
1174
|
: isFinite(value) ||
|
|
1199
1175
|
warnedForInfinityValue ||
|
|
1200
1176
|
((warnedForInfinityValue = !0),
|
|
1201
|
-
error
|
|
1177
|
+
console.error(
|
|
1202
1178
|
"`Infinity` is an invalid value for the `%s` css style property.",
|
|
1203
1179
|
nameChunk
|
|
1204
1180
|
)));
|
|
@@ -1292,7 +1268,7 @@
|
|
|
1292
1268
|
"function" === typeof x.then
|
|
1293
1269
|
)
|
|
1294
1270
|
throw x;
|
|
1295
|
-
error
|
|
1271
|
+
console.error(
|
|
1296
1272
|
"Failed to serialize an action for progressive enhancement:\n%s",
|
|
1297
1273
|
x
|
|
1298
1274
|
);
|
|
@@ -1315,19 +1291,19 @@
|
|
|
1315
1291
|
null === name ||
|
|
1316
1292
|
didWarnFormActionName ||
|
|
1317
1293
|
((didWarnFormActionName = !0),
|
|
1318
|
-
error
|
|
1294
|
+
console.error(
|
|
1319
1295
|
'Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.'
|
|
1320
1296
|
));
|
|
1321
1297
|
(null === formEncType && null === formMethod) ||
|
|
1322
1298
|
didWarnFormActionMethod ||
|
|
1323
1299
|
((didWarnFormActionMethod = !0),
|
|
1324
|
-
error
|
|
1300
|
+
console.error(
|
|
1325
1301
|
"Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden."
|
|
1326
1302
|
));
|
|
1327
1303
|
null === formTarget ||
|
|
1328
1304
|
didWarnFormActionTarget ||
|
|
1329
1305
|
((didWarnFormActionTarget = !0),
|
|
1330
|
-
error
|
|
1306
|
+
console.error(
|
|
1331
1307
|
"Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."
|
|
1332
1308
|
));
|
|
1333
1309
|
var customFields = getCustomFormFields(resumableState, formAction);
|
|
@@ -1377,12 +1353,12 @@
|
|
|
1377
1353
|
case "href":
|
|
1378
1354
|
if ("" === value) {
|
|
1379
1355
|
"src" === name
|
|
1380
|
-
? error
|
|
1356
|
+
? console.error(
|
|
1381
1357
|
'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
|
|
1382
1358
|
name,
|
|
1383
1359
|
name
|
|
1384
1360
|
)
|
|
1385
|
-
: error
|
|
1361
|
+
: console.error(
|
|
1386
1362
|
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
|
|
1387
1363
|
name,
|
|
1388
1364
|
name
|
|
@@ -1459,7 +1435,7 @@
|
|
|
1459
1435
|
"" !== value ||
|
|
1460
1436
|
didWarnForNewBooleanPropsWithEmptyValue[name] ||
|
|
1461
1437
|
((didWarnForNewBooleanPropsWithEmptyValue[name] = !0),
|
|
1462
|
-
error
|
|
1438
|
+
console.error(
|
|
1463
1439
|
"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",
|
|
1464
1440
|
name
|
|
1465
1441
|
));
|
|
@@ -1618,13 +1594,13 @@
|
|
|
1618
1594
|
null != value &&
|
|
1619
1595
|
((value = isArrayImpl(value)),
|
|
1620
1596
|
props.multiple && !value
|
|
1621
|
-
? error
|
|
1597
|
+
? console.error(
|
|
1622
1598
|
"The `%s` prop supplied to <select> must be an array if `multiple` is true.",
|
|
1623
1599
|
propName
|
|
1624
1600
|
)
|
|
1625
1601
|
: !props.multiple &&
|
|
1626
1602
|
value &&
|
|
1627
|
-
error
|
|
1603
|
+
console.error(
|
|
1628
1604
|
"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",
|
|
1629
1605
|
propName
|
|
1630
1606
|
));
|
|
@@ -1639,7 +1615,7 @@
|
|
|
1639
1615
|
"number" === typeof child ||
|
|
1640
1616
|
"bigint" === typeof child ||
|
|
1641
1617
|
((didWarnInvalidOptionChildren = !0),
|
|
1642
|
-
error
|
|
1618
|
+
console.error(
|
|
1643
1619
|
"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."
|
|
1644
1620
|
)));
|
|
1645
1621
|
});
|
|
@@ -1759,9 +1735,9 @@
|
|
|
1759
1735
|
"number" === typeof children
|
|
1760
1736
|
? "a number for children"
|
|
1761
1737
|
: Array.isArray(children)
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
error
|
|
1738
|
+
? "an array for children"
|
|
1739
|
+
: "something unexpected for children"),
|
|
1740
|
+
console.error(
|
|
1765
1741
|
"A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",
|
|
1766
1742
|
props
|
|
1767
1743
|
));
|
|
@@ -1823,11 +1799,11 @@
|
|
|
1823
1799
|
didWarnValueNull ||
|
|
1824
1800
|
((didWarnValueNull = !0),
|
|
1825
1801
|
"select" === type && props.multiple
|
|
1826
|
-
? error
|
|
1802
|
+
? console.error(
|
|
1827
1803
|
"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",
|
|
1828
1804
|
type
|
|
1829
1805
|
)
|
|
1830
|
-
: error
|
|
1806
|
+
: console.error(
|
|
1831
1807
|
"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",
|
|
1832
1808
|
type
|
|
1833
1809
|
));
|
|
@@ -1853,14 +1829,14 @@
|
|
|
1853
1829
|
!props.suppressContentEditableWarning &&
|
|
1854
1830
|
props.contentEditable &&
|
|
1855
1831
|
null != props.children &&
|
|
1856
|
-
error
|
|
1832
|
+
console.error(
|
|
1857
1833
|
"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."
|
|
1858
1834
|
);
|
|
1859
1835
|
formatContext.insertionMode !== SVG_MODE &&
|
|
1860
1836
|
formatContext.insertionMode !== MATHML_MODE &&
|
|
1861
1837
|
-1 === type.indexOf("-") &&
|
|
1862
1838
|
type.toLowerCase() !== type &&
|
|
1863
|
-
error
|
|
1839
|
+
console.error(
|
|
1864
1840
|
"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",
|
|
1865
1841
|
type
|
|
1866
1842
|
);
|
|
@@ -1913,7 +1889,7 @@
|
|
|
1913
1889
|
void 0 === props.value ||
|
|
1914
1890
|
void 0 === props.defaultValue ||
|
|
1915
1891
|
didWarnDefaultSelectValue ||
|
|
1916
|
-
(error
|
|
1892
|
+
(console.error(
|
|
1917
1893
|
"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"
|
|
1918
1894
|
),
|
|
1919
1895
|
(didWarnDefaultSelectValue = !0));
|
|
@@ -1965,7 +1941,7 @@
|
|
|
1965
1941
|
case "selected":
|
|
1966
1942
|
selected = propValue$jscomp$1;
|
|
1967
1943
|
didWarnSelectedSetOnOption ||
|
|
1968
|
-
(error
|
|
1944
|
+
(console.error(
|
|
1969
1945
|
"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."
|
|
1970
1946
|
),
|
|
1971
1947
|
(didWarnSelectedSetOnOption = !0));
|
|
@@ -1991,7 +1967,7 @@
|
|
|
1991
1967
|
null === innerHTML$jscomp$1 ||
|
|
1992
1968
|
didWarnInvalidOptionInnerHTML ||
|
|
1993
1969
|
((didWarnInvalidOptionInnerHTML = !0),
|
|
1994
|
-
error
|
|
1970
|
+
console.error(
|
|
1995
1971
|
"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."
|
|
1996
1972
|
)),
|
|
1997
1973
|
(stringValue = flattenOptionChildren(children$jscomp$1));
|
|
@@ -2018,7 +1994,7 @@
|
|
|
2018
1994
|
void 0 === props.value ||
|
|
2019
1995
|
void 0 === props.defaultValue ||
|
|
2020
1996
|
didWarnDefaultTextareaValue ||
|
|
2021
|
-
(error
|
|
1997
|
+
(console.error(
|
|
2022
1998
|
"Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components"
|
|
2023
1999
|
),
|
|
2024
2000
|
(didWarnDefaultTextareaValue = !0));
|
|
@@ -2058,7 +2034,7 @@
|
|
|
2058
2034
|
(value$jscomp$0 = defaultValue);
|
|
2059
2035
|
target$jscomp$0.push(endOfStartTag);
|
|
2060
2036
|
if (null != children$jscomp$2) {
|
|
2061
|
-
error
|
|
2037
|
+
console.error(
|
|
2062
2038
|
"Use the `defaultValue` or `value` props instead of setting children on <textarea>."
|
|
2063
2039
|
);
|
|
2064
2040
|
if (null != value$jscomp$0)
|
|
@@ -2146,7 +2122,7 @@
|
|
|
2146
2122
|
"submit" === props.type ||
|
|
2147
2123
|
didWarnFormActionType ||
|
|
2148
2124
|
((didWarnFormActionType = !0),
|
|
2149
|
-
error
|
|
2125
|
+
console.error(
|
|
2150
2126
|
'An input can only specify a formAction along with type="submit" or type="image".'
|
|
2151
2127
|
));
|
|
2152
2128
|
var formData = pushFormActionAttribute(
|
|
@@ -2162,7 +2138,7 @@
|
|
|
2162
2138
|
null === checked ||
|
|
2163
2139
|
null === defaultChecked ||
|
|
2164
2140
|
didWarnDefaultChecked ||
|
|
2165
|
-
(error
|
|
2141
|
+
(console.error(
|
|
2166
2142
|
"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",
|
|
2167
2143
|
"A component",
|
|
2168
2144
|
props.type
|
|
@@ -2171,7 +2147,7 @@
|
|
|
2171
2147
|
null === value$jscomp$1 ||
|
|
2172
2148
|
null === defaultValue$jscomp$0 ||
|
|
2173
2149
|
didWarnDefaultInputValue ||
|
|
2174
|
-
(error
|
|
2150
|
+
(console.error(
|
|
2175
2151
|
"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",
|
|
2176
2152
|
"A component",
|
|
2177
2153
|
props.type
|
|
@@ -2238,7 +2214,7 @@
|
|
|
2238
2214
|
"submit" === props.type ||
|
|
2239
2215
|
didWarnFormActionType ||
|
|
2240
2216
|
((didWarnFormActionType = !0),
|
|
2241
|
-
error
|
|
2217
|
+
console.error(
|
|
2242
2218
|
'A button can only specify a formAction along with type="submit" or no type.'
|
|
2243
2219
|
));
|
|
2244
2220
|
var formData$jscomp$0 = pushFormActionAttribute(
|
|
@@ -2308,13 +2284,13 @@
|
|
|
2308
2284
|
(null === formEncType$jscomp$1 && null === formMethod$jscomp$1) ||
|
|
2309
2285
|
didWarnFormActionMethod ||
|
|
2310
2286
|
((didWarnFormActionMethod = !0),
|
|
2311
|
-
error
|
|
2287
|
+
console.error(
|
|
2312
2288
|
"Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden."
|
|
2313
2289
|
));
|
|
2314
2290
|
null === formTarget$jscomp$1 ||
|
|
2315
2291
|
didWarnFormActionTarget ||
|
|
2316
2292
|
((didWarnFormActionTarget = !0),
|
|
2317
|
-
error
|
|
2293
|
+
console.error(
|
|
2318
2294
|
"Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."
|
|
2319
2295
|
));
|
|
2320
2296
|
var customFields = getCustomFormFields(
|
|
@@ -2390,51 +2366,103 @@
|
|
|
2390
2366
|
}
|
|
2391
2367
|
target$jscomp$0.push(endOfStartTag);
|
|
2392
2368
|
return null;
|
|
2369
|
+
case "object":
|
|
2370
|
+
target$jscomp$0.push(startChunkForTag("object"));
|
|
2371
|
+
var children$jscomp$5 = null,
|
|
2372
|
+
innerHTML$jscomp$4 = null,
|
|
2373
|
+
propKey$jscomp$7;
|
|
2374
|
+
for (propKey$jscomp$7 in props)
|
|
2375
|
+
if (hasOwnProperty.call(props, propKey$jscomp$7)) {
|
|
2376
|
+
var propValue$jscomp$7 = props[propKey$jscomp$7];
|
|
2377
|
+
if (null != propValue$jscomp$7)
|
|
2378
|
+
switch (propKey$jscomp$7) {
|
|
2379
|
+
case "children":
|
|
2380
|
+
children$jscomp$5 = propValue$jscomp$7;
|
|
2381
|
+
break;
|
|
2382
|
+
case "dangerouslySetInnerHTML":
|
|
2383
|
+
innerHTML$jscomp$4 = propValue$jscomp$7;
|
|
2384
|
+
break;
|
|
2385
|
+
case "data":
|
|
2386
|
+
checkAttributeStringCoercion(propValue$jscomp$7, "data");
|
|
2387
|
+
var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
|
|
2388
|
+
if ("" === sanitizedValue) {
|
|
2389
|
+
console.error(
|
|
2390
|
+
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
|
|
2391
|
+
propKey$jscomp$7,
|
|
2392
|
+
propKey$jscomp$7
|
|
2393
|
+
);
|
|
2394
|
+
break;
|
|
2395
|
+
}
|
|
2396
|
+
target$jscomp$0.push(
|
|
2397
|
+
attributeSeparator,
|
|
2398
|
+
stringToChunk("data"),
|
|
2399
|
+
attributeAssign,
|
|
2400
|
+
stringToChunk(escapeTextForBrowser(sanitizedValue)),
|
|
2401
|
+
attributeEnd
|
|
2402
|
+
);
|
|
2403
|
+
break;
|
|
2404
|
+
default:
|
|
2405
|
+
pushAttribute(
|
|
2406
|
+
target$jscomp$0,
|
|
2407
|
+
propKey$jscomp$7,
|
|
2408
|
+
propValue$jscomp$7
|
|
2409
|
+
);
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
target$jscomp$0.push(endOfStartTag);
|
|
2413
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
|
|
2414
|
+
if ("string" === typeof children$jscomp$5) {
|
|
2415
|
+
target$jscomp$0.push(
|
|
2416
|
+
stringToChunk(escapeTextForBrowser(children$jscomp$5))
|
|
2417
|
+
);
|
|
2418
|
+
var JSCompiler_inline_result$jscomp$3 = null;
|
|
2419
|
+
} else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
|
|
2420
|
+
return JSCompiler_inline_result$jscomp$3;
|
|
2393
2421
|
case "title":
|
|
2394
2422
|
var insertionMode = formatContext.insertionMode,
|
|
2395
2423
|
noscriptTagInScope = !!(formatContext.tagScope & 1);
|
|
2396
2424
|
if (hasOwnProperty.call(props, "children")) {
|
|
2397
|
-
var children$jscomp$
|
|
2398
|
-
child = Array.isArray(children$jscomp$
|
|
2399
|
-
? 2 > children$jscomp$
|
|
2400
|
-
? children$jscomp$
|
|
2425
|
+
var children$jscomp$6 = props.children,
|
|
2426
|
+
child = Array.isArray(children$jscomp$6)
|
|
2427
|
+
? 2 > children$jscomp$6.length
|
|
2428
|
+
? children$jscomp$6[0]
|
|
2401
2429
|
: null
|
|
2402
|
-
: children$jscomp$
|
|
2403
|
-
Array.isArray(children$jscomp$
|
|
2404
|
-
? error
|
|
2430
|
+
: children$jscomp$6;
|
|
2431
|
+
Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
|
|
2432
|
+
? console.error(
|
|
2405
2433
|
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be commong to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
|
|
2406
|
-
children$jscomp$
|
|
2434
|
+
children$jscomp$6.length
|
|
2407
2435
|
)
|
|
2408
2436
|
: "function" === typeof child || "symbol" === typeof child
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2437
|
+
? console.error(
|
|
2438
|
+
"React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",
|
|
2439
|
+
"function" === typeof child ? "a Function" : "a Sybmol"
|
|
2440
|
+
)
|
|
2441
|
+
: child &&
|
|
2442
|
+
child.toString === {}.toString &&
|
|
2443
|
+
(null != child.$$typeof
|
|
2444
|
+
? console.error(
|
|
2445
|
+
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."
|
|
2446
|
+
)
|
|
2447
|
+
: console.error(
|
|
2448
|
+
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."
|
|
2449
|
+
));
|
|
2422
2450
|
}
|
|
2423
2451
|
if (
|
|
2424
2452
|
insertionMode === SVG_MODE ||
|
|
2425
2453
|
noscriptTagInScope ||
|
|
2426
2454
|
null != props.itemProp
|
|
2427
2455
|
)
|
|
2428
|
-
var JSCompiler_inline_result$jscomp$
|
|
2456
|
+
var JSCompiler_inline_result$jscomp$4 = pushTitleImpl(
|
|
2429
2457
|
target$jscomp$0,
|
|
2430
2458
|
props
|
|
2431
2459
|
);
|
|
2432
2460
|
else
|
|
2433
2461
|
isFallback
|
|
2434
|
-
? (JSCompiler_inline_result$jscomp$
|
|
2462
|
+
? (JSCompiler_inline_result$jscomp$4 = null)
|
|
2435
2463
|
: (pushTitleImpl(renderState.hoistableChunks, props),
|
|
2436
|
-
(JSCompiler_inline_result$jscomp$
|
|
2437
|
-
return JSCompiler_inline_result$jscomp$
|
|
2464
|
+
(JSCompiler_inline_result$jscomp$4 = void 0));
|
|
2465
|
+
return JSCompiler_inline_result$jscomp$4;
|
|
2438
2466
|
case "link":
|
|
2439
2467
|
var rel = props.rel,
|
|
2440
2468
|
href = props.href,
|
|
@@ -2450,18 +2478,18 @@
|
|
|
2450
2478
|
"stylesheet" === rel &&
|
|
2451
2479
|
"string" === typeof props.precedence &&
|
|
2452
2480
|
(("string" === typeof href && href) ||
|
|
2453
|
-
error
|
|
2481
|
+
console.error(
|
|
2454
2482
|
'React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',
|
|
2455
2483
|
null === href
|
|
2456
2484
|
? "`null`"
|
|
2457
2485
|
: void 0 === href
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2486
|
+
? "`undefined`"
|
|
2487
|
+
: "" === href
|
|
2488
|
+
? "an empty string"
|
|
2489
|
+
: 'something with type "' + typeof href + '"'
|
|
2462
2490
|
));
|
|
2463
2491
|
pushLinkImpl(target$jscomp$0, props);
|
|
2464
|
-
var JSCompiler_inline_result$jscomp$
|
|
2492
|
+
var JSCompiler_inline_result$jscomp$5 = null;
|
|
2465
2493
|
} else if ("stylesheet" === props.rel)
|
|
2466
2494
|
if (
|
|
2467
2495
|
"string" !== typeof precedence ||
|
|
@@ -2471,7 +2499,7 @@
|
|
|
2471
2499
|
) {
|
|
2472
2500
|
if ("string" === typeof precedence)
|
|
2473
2501
|
if (null != props.disabled)
|
|
2474
|
-
error
|
|
2502
|
+
console.error(
|
|
2475
2503
|
'React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.'
|
|
2476
2504
|
);
|
|
2477
2505
|
else if (props.onLoad || props.onError) {
|
|
@@ -2479,15 +2507,15 @@
|
|
|
2479
2507
|
props.onLoad && props.onError
|
|
2480
2508
|
? "`onLoad` and `onError` props"
|
|
2481
2509
|
: props.onLoad
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
error
|
|
2510
|
+
? "`onLoad` prop"
|
|
2511
|
+
: "`onError` prop";
|
|
2512
|
+
console.error(
|
|
2485
2513
|
'React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',
|
|
2486
2514
|
propDescription,
|
|
2487
2515
|
propDescription
|
|
2488
2516
|
);
|
|
2489
2517
|
}
|
|
2490
|
-
JSCompiler_inline_result$jscomp$
|
|
2518
|
+
JSCompiler_inline_result$jscomp$5 = pushLinkImpl(
|
|
2491
2519
|
target$jscomp$0,
|
|
2492
2520
|
props
|
|
2493
2521
|
);
|
|
@@ -2533,19 +2561,19 @@
|
|
|
2533
2561
|
hoistableState.stylesheets.add(_resource);
|
|
2534
2562
|
}
|
|
2535
2563
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
|
2536
|
-
JSCompiler_inline_result$jscomp$
|
|
2564
|
+
JSCompiler_inline_result$jscomp$5 = null;
|
|
2537
2565
|
}
|
|
2538
2566
|
else
|
|
2539
2567
|
props.onLoad || props.onError
|
|
2540
|
-
? (JSCompiler_inline_result$jscomp$
|
|
2568
|
+
? (JSCompiler_inline_result$jscomp$5 = pushLinkImpl(
|
|
2541
2569
|
target$jscomp$0,
|
|
2542
2570
|
props
|
|
2543
2571
|
))
|
|
2544
2572
|
: (textEmbedded && target$jscomp$0.push(textSeparator),
|
|
2545
|
-
(JSCompiler_inline_result$jscomp$
|
|
2573
|
+
(JSCompiler_inline_result$jscomp$5 = isFallback
|
|
2546
2574
|
? null
|
|
2547
2575
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
|
2548
|
-
return JSCompiler_inline_result$jscomp$
|
|
2576
|
+
return JSCompiler_inline_result$jscomp$5;
|
|
2549
2577
|
case "script":
|
|
2550
2578
|
var asyncProp = props.async;
|
|
2551
2579
|
if (
|
|
@@ -2560,7 +2588,7 @@
|
|
|
2560
2588
|
formatContext.tagScope & 1 ||
|
|
2561
2589
|
null != props.itemProp
|
|
2562
2590
|
)
|
|
2563
|
-
var JSCompiler_inline_result$jscomp$
|
|
2591
|
+
var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
|
|
2564
2592
|
target$jscomp$0,
|
|
2565
2593
|
props
|
|
2566
2594
|
);
|
|
@@ -2591,29 +2619,29 @@
|
|
|
2591
2619
|
pushScriptImpl(resource$jscomp$0, scriptProps);
|
|
2592
2620
|
}
|
|
2593
2621
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
|
2594
|
-
JSCompiler_inline_result$jscomp$
|
|
2622
|
+
JSCompiler_inline_result$jscomp$6 = null;
|
|
2595
2623
|
}
|
|
2596
|
-
return JSCompiler_inline_result$jscomp$
|
|
2624
|
+
return JSCompiler_inline_result$jscomp$6;
|
|
2597
2625
|
case "style":
|
|
2598
2626
|
var insertionMode$jscomp$0 = formatContext.insertionMode,
|
|
2599
2627
|
noscriptTagInScope$jscomp$0 = !!(formatContext.tagScope & 1);
|
|
2600
2628
|
if (hasOwnProperty.call(props, "children")) {
|
|
2601
|
-
var children$jscomp$
|
|
2602
|
-
child$jscomp$0 = Array.isArray(children$jscomp$
|
|
2603
|
-
? 2 > children$jscomp$
|
|
2604
|
-
? children$jscomp$
|
|
2629
|
+
var children$jscomp$7 = props.children,
|
|
2630
|
+
child$jscomp$0 = Array.isArray(children$jscomp$7)
|
|
2631
|
+
? 2 > children$jscomp$7.length
|
|
2632
|
+
? children$jscomp$7[0]
|
|
2605
2633
|
: null
|
|
2606
|
-
: children$jscomp$
|
|
2634
|
+
: children$jscomp$7;
|
|
2607
2635
|
("function" === typeof child$jscomp$0 ||
|
|
2608
2636
|
"symbol" === typeof child$jscomp$0 ||
|
|
2609
2637
|
Array.isArray(child$jscomp$0)) &&
|
|
2610
|
-
error
|
|
2638
|
+
console.error(
|
|
2611
2639
|
"React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",
|
|
2612
2640
|
"function" === typeof child$jscomp$0
|
|
2613
2641
|
? "a Function"
|
|
2614
2642
|
: "symbol" === typeof child$jscomp$0
|
|
2615
|
-
|
|
2616
|
-
|
|
2643
|
+
? "a Sybmol"
|
|
2644
|
+
: "an Array"
|
|
2617
2645
|
);
|
|
2618
2646
|
}
|
|
2619
2647
|
var precedence$jscomp$0 = props.precedence,
|
|
@@ -2627,34 +2655,34 @@
|
|
|
2627
2655
|
"" === href$jscomp$0
|
|
2628
2656
|
) {
|
|
2629
2657
|
target$jscomp$0.push(startChunkForTag("style"));
|
|
2630
|
-
var children$jscomp$
|
|
2631
|
-
innerHTML$jscomp$
|
|
2632
|
-
propKey$jscomp$
|
|
2633
|
-
for (propKey$jscomp$
|
|
2634
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
2635
|
-
var propValue$jscomp$
|
|
2636
|
-
if (null != propValue$jscomp$
|
|
2637
|
-
switch (propKey$jscomp$
|
|
2658
|
+
var children$jscomp$8 = null,
|
|
2659
|
+
innerHTML$jscomp$5 = null,
|
|
2660
|
+
propKey$jscomp$8;
|
|
2661
|
+
for (propKey$jscomp$8 in props)
|
|
2662
|
+
if (hasOwnProperty.call(props, propKey$jscomp$8)) {
|
|
2663
|
+
var propValue$jscomp$8 = props[propKey$jscomp$8];
|
|
2664
|
+
if (null != propValue$jscomp$8)
|
|
2665
|
+
switch (propKey$jscomp$8) {
|
|
2638
2666
|
case "children":
|
|
2639
|
-
children$jscomp$
|
|
2667
|
+
children$jscomp$8 = propValue$jscomp$8;
|
|
2640
2668
|
break;
|
|
2641
2669
|
case "dangerouslySetInnerHTML":
|
|
2642
|
-
innerHTML$jscomp$
|
|
2670
|
+
innerHTML$jscomp$5 = propValue$jscomp$8;
|
|
2643
2671
|
break;
|
|
2644
2672
|
default:
|
|
2645
2673
|
pushAttribute(
|
|
2646
2674
|
target$jscomp$0,
|
|
2647
|
-
propKey$jscomp$
|
|
2648
|
-
propValue$jscomp$
|
|
2675
|
+
propKey$jscomp$8,
|
|
2676
|
+
propValue$jscomp$8
|
|
2649
2677
|
);
|
|
2650
2678
|
}
|
|
2651
2679
|
}
|
|
2652
2680
|
target$jscomp$0.push(endOfStartTag);
|
|
2653
|
-
var child$jscomp$1 = Array.isArray(children$jscomp$
|
|
2654
|
-
? 2 > children$jscomp$
|
|
2655
|
-
? children$jscomp$
|
|
2681
|
+
var child$jscomp$1 = Array.isArray(children$jscomp$8)
|
|
2682
|
+
? 2 > children$jscomp$8.length
|
|
2683
|
+
? children$jscomp$8[0]
|
|
2656
2684
|
: null
|
|
2657
|
-
: children$jscomp$
|
|
2685
|
+
: children$jscomp$8;
|
|
2658
2686
|
"function" !== typeof child$jscomp$1 &&
|
|
2659
2687
|
"symbol" !== typeof child$jscomp$1 &&
|
|
2660
2688
|
null !== child$jscomp$1 &&
|
|
@@ -2664,14 +2692,14 @@
|
|
|
2664
2692
|
);
|
|
2665
2693
|
pushInnerHTML(
|
|
2666
2694
|
target$jscomp$0,
|
|
2667
|
-
innerHTML$jscomp$
|
|
2668
|
-
children$jscomp$
|
|
2695
|
+
innerHTML$jscomp$5,
|
|
2696
|
+
children$jscomp$8
|
|
2669
2697
|
);
|
|
2670
2698
|
target$jscomp$0.push(endChunkForTag("style"));
|
|
2671
|
-
var JSCompiler_inline_result$jscomp$
|
|
2699
|
+
var JSCompiler_inline_result$jscomp$7 = null;
|
|
2672
2700
|
} else {
|
|
2673
2701
|
href$jscomp$0.includes(" ") &&
|
|
2674
|
-
error
|
|
2702
|
+
console.error(
|
|
2675
2703
|
'React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',
|
|
2676
2704
|
href$jscomp$0
|
|
2677
2705
|
);
|
|
@@ -2684,7 +2712,7 @@
|
|
|
2684
2712
|
if (resourceState$jscomp$1 !== EXISTS) {
|
|
2685
2713
|
resumableState.styleResources[href$jscomp$0] = EXISTS;
|
|
2686
2714
|
resourceState$jscomp$1 &&
|
|
2687
|
-
error
|
|
2715
|
+
console.error(
|
|
2688
2716
|
'React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',
|
|
2689
2717
|
href$jscomp$0
|
|
2690
2718
|
);
|
|
@@ -2705,26 +2733,26 @@
|
|
|
2705
2733
|
styleQueue$jscomp$0
|
|
2706
2734
|
));
|
|
2707
2735
|
var target = styleQueue$jscomp$0.rules,
|
|
2708
|
-
children$jscomp$
|
|
2709
|
-
innerHTML$jscomp$
|
|
2710
|
-
propKey$jscomp$
|
|
2711
|
-
for (propKey$jscomp$
|
|
2712
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
2713
|
-
var propValue$jscomp$
|
|
2714
|
-
if (null != propValue$jscomp$
|
|
2715
|
-
switch (propKey$jscomp$
|
|
2736
|
+
children$jscomp$9 = null,
|
|
2737
|
+
innerHTML$jscomp$6 = null,
|
|
2738
|
+
propKey$jscomp$9;
|
|
2739
|
+
for (propKey$jscomp$9 in props)
|
|
2740
|
+
if (hasOwnProperty.call(props, propKey$jscomp$9)) {
|
|
2741
|
+
var propValue$jscomp$9 = props[propKey$jscomp$9];
|
|
2742
|
+
if (null != propValue$jscomp$9)
|
|
2743
|
+
switch (propKey$jscomp$9) {
|
|
2716
2744
|
case "children":
|
|
2717
|
-
children$jscomp$
|
|
2745
|
+
children$jscomp$9 = propValue$jscomp$9;
|
|
2718
2746
|
break;
|
|
2719
2747
|
case "dangerouslySetInnerHTML":
|
|
2720
|
-
innerHTML$jscomp$
|
|
2748
|
+
innerHTML$jscomp$6 = propValue$jscomp$9;
|
|
2721
2749
|
}
|
|
2722
2750
|
}
|
|
2723
|
-
var child$jscomp$2 = Array.isArray(children$jscomp$
|
|
2724
|
-
? 2 > children$jscomp$
|
|
2725
|
-
? children$jscomp$
|
|
2751
|
+
var child$jscomp$2 = Array.isArray(children$jscomp$9)
|
|
2752
|
+
? 2 > children$jscomp$9.length
|
|
2753
|
+
? children$jscomp$9[0]
|
|
2726
2754
|
: null
|
|
2727
|
-
: children$jscomp$
|
|
2755
|
+
: children$jscomp$9;
|
|
2728
2756
|
"function" !== typeof child$jscomp$2 &&
|
|
2729
2757
|
"symbol" !== typeof child$jscomp$2 &&
|
|
2730
2758
|
null !== child$jscomp$2 &&
|
|
@@ -2732,75 +2760,79 @@
|
|
|
2732
2760
|
target.push(
|
|
2733
2761
|
stringToChunk(escapeStyleTextContent(child$jscomp$2))
|
|
2734
2762
|
);
|
|
2735
|
-
pushInnerHTML(target, innerHTML$jscomp$
|
|
2763
|
+
pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$9);
|
|
2736
2764
|
}
|
|
2737
2765
|
styleQueue$jscomp$0 &&
|
|
2738
2766
|
hoistableState &&
|
|
2739
2767
|
hoistableState.styles.add(styleQueue$jscomp$0);
|
|
2740
2768
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
|
2741
|
-
JSCompiler_inline_result$jscomp$
|
|
2769
|
+
JSCompiler_inline_result$jscomp$7 = void 0;
|
|
2742
2770
|
}
|
|
2743
|
-
return JSCompiler_inline_result$jscomp$
|
|
2771
|
+
return JSCompiler_inline_result$jscomp$7;
|
|
2744
2772
|
case "meta":
|
|
2745
2773
|
if (
|
|
2746
2774
|
formatContext.insertionMode === SVG_MODE ||
|
|
2747
2775
|
formatContext.tagScope & 1 ||
|
|
2748
2776
|
null != props.itemProp
|
|
2749
2777
|
)
|
|
2750
|
-
var JSCompiler_inline_result$jscomp$
|
|
2778
|
+
var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
|
|
2751
2779
|
target$jscomp$0,
|
|
2752
2780
|
props,
|
|
2753
2781
|
"meta"
|
|
2754
2782
|
);
|
|
2755
2783
|
else
|
|
2756
2784
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
|
2757
|
-
(JSCompiler_inline_result$jscomp$
|
|
2785
|
+
(JSCompiler_inline_result$jscomp$8 = isFallback
|
|
2758
2786
|
? null
|
|
2759
2787
|
: "string" === typeof props.charSet
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2788
|
+
? pushSelfClosing(renderState.charsetChunks, props, "meta")
|
|
2789
|
+
: "viewport" === props.name
|
|
2790
|
+
? pushSelfClosing(renderState.viewportChunks, props, "meta")
|
|
2791
|
+
: pushSelfClosing(
|
|
2792
|
+
renderState.hoistableChunks,
|
|
2793
|
+
props,
|
|
2794
|
+
"meta"
|
|
2795
|
+
));
|
|
2796
|
+
return JSCompiler_inline_result$jscomp$8;
|
|
2765
2797
|
case "listing":
|
|
2766
2798
|
case "pre":
|
|
2767
2799
|
target$jscomp$0.push(startChunkForTag(type));
|
|
2768
|
-
var children$jscomp$
|
|
2769
|
-
innerHTML$jscomp$
|
|
2770
|
-
propKey$jscomp$
|
|
2771
|
-
for (propKey$jscomp$
|
|
2772
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
2773
|
-
var propValue$jscomp$
|
|
2774
|
-
if (null != propValue$jscomp$
|
|
2775
|
-
switch (propKey$jscomp$
|
|
2800
|
+
var children$jscomp$10 = null,
|
|
2801
|
+
innerHTML$jscomp$7 = null,
|
|
2802
|
+
propKey$jscomp$10;
|
|
2803
|
+
for (propKey$jscomp$10 in props)
|
|
2804
|
+
if (hasOwnProperty.call(props, propKey$jscomp$10)) {
|
|
2805
|
+
var propValue$jscomp$10 = props[propKey$jscomp$10];
|
|
2806
|
+
if (null != propValue$jscomp$10)
|
|
2807
|
+
switch (propKey$jscomp$10) {
|
|
2776
2808
|
case "children":
|
|
2777
|
-
children$jscomp$
|
|
2809
|
+
children$jscomp$10 = propValue$jscomp$10;
|
|
2778
2810
|
break;
|
|
2779
2811
|
case "dangerouslySetInnerHTML":
|
|
2780
|
-
innerHTML$jscomp$
|
|
2812
|
+
innerHTML$jscomp$7 = propValue$jscomp$10;
|
|
2781
2813
|
break;
|
|
2782
2814
|
default:
|
|
2783
2815
|
pushAttribute(
|
|
2784
2816
|
target$jscomp$0,
|
|
2785
|
-
propKey$jscomp$
|
|
2786
|
-
propValue$jscomp$
|
|
2817
|
+
propKey$jscomp$10,
|
|
2818
|
+
propValue$jscomp$10
|
|
2787
2819
|
);
|
|
2788
2820
|
}
|
|
2789
2821
|
}
|
|
2790
2822
|
target$jscomp$0.push(endOfStartTag);
|
|
2791
|
-
if (null != innerHTML$jscomp$
|
|
2792
|
-
if (null != children$jscomp$
|
|
2823
|
+
if (null != innerHTML$jscomp$7) {
|
|
2824
|
+
if (null != children$jscomp$10)
|
|
2793
2825
|
throw Error(
|
|
2794
2826
|
"Can only set one of `children` or `props.dangerouslySetInnerHTML`."
|
|
2795
2827
|
);
|
|
2796
2828
|
if (
|
|
2797
|
-
"object" !== typeof innerHTML$jscomp$
|
|
2798
|
-
!("__html" in innerHTML$jscomp$
|
|
2829
|
+
"object" !== typeof innerHTML$jscomp$7 ||
|
|
2830
|
+
!("__html" in innerHTML$jscomp$7)
|
|
2799
2831
|
)
|
|
2800
2832
|
throw Error(
|
|
2801
2833
|
"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
|
|
2802
2834
|
);
|
|
2803
|
-
var html = innerHTML$jscomp$
|
|
2835
|
+
var html = innerHTML$jscomp$7.__html;
|
|
2804
2836
|
null !== html &&
|
|
2805
2837
|
void 0 !== html &&
|
|
2806
2838
|
("string" === typeof html && 0 < html.length && "\n" === html[0]
|
|
@@ -2808,10 +2840,10 @@
|
|
|
2808
2840
|
: (checkHtmlStringCoercion(html),
|
|
2809
2841
|
target$jscomp$0.push(stringToChunk("" + html))));
|
|
2810
2842
|
}
|
|
2811
|
-
"string" === typeof children$jscomp$
|
|
2812
|
-
"\n" === children$jscomp$
|
|
2843
|
+
"string" === typeof children$jscomp$10 &&
|
|
2844
|
+
"\n" === children$jscomp$10[0] &&
|
|
2813
2845
|
target$jscomp$0.push(leadingNewline);
|
|
2814
|
-
return children$jscomp$
|
|
2846
|
+
return children$jscomp$10;
|
|
2815
2847
|
case "img":
|
|
2816
2848
|
var src = props.src,
|
|
2817
2849
|
srcSet = props.srcSet;
|
|
@@ -2875,7 +2907,7 @@
|
|
|
2875
2907
|
fetchPriority: props.fetchPriority,
|
|
2876
2908
|
referrerPolicy: props.refererPolicy
|
|
2877
2909
|
})),
|
|
2878
|
-
|
|
2910
|
+
0 <= (headers.remainingCapacity -= header.length + 2))
|
|
2879
2911
|
? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
|
|
2880
2912
|
headers.highImagePreloads &&
|
|
2881
2913
|
(headers.highImagePreloads += ", "),
|
|
@@ -2928,56 +2960,56 @@
|
|
|
2928
2960
|
null === renderState.headChunks
|
|
2929
2961
|
) {
|
|
2930
2962
|
renderState.headChunks = [];
|
|
2931
|
-
var JSCompiler_inline_result$jscomp$
|
|
2963
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
|
2932
2964
|
renderState.headChunks,
|
|
2933
2965
|
props,
|
|
2934
2966
|
"head"
|
|
2935
2967
|
);
|
|
2936
2968
|
} else
|
|
2937
|
-
JSCompiler_inline_result$jscomp$
|
|
2969
|
+
JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
|
2938
2970
|
target$jscomp$0,
|
|
2939
2971
|
props,
|
|
2940
2972
|
"head"
|
|
2941
2973
|
);
|
|
2942
|
-
return JSCompiler_inline_result$jscomp$
|
|
2974
|
+
return JSCompiler_inline_result$jscomp$9;
|
|
2943
2975
|
case "html":
|
|
2944
2976
|
if (
|
|
2945
2977
|
formatContext.insertionMode === ROOT_HTML_MODE &&
|
|
2946
2978
|
null === renderState.htmlChunks
|
|
2947
2979
|
) {
|
|
2948
2980
|
renderState.htmlChunks = [doctypeChunk];
|
|
2949
|
-
var JSCompiler_inline_result$jscomp$
|
|
2981
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
|
2950
2982
|
renderState.htmlChunks,
|
|
2951
2983
|
props,
|
|
2952
2984
|
"html"
|
|
2953
2985
|
);
|
|
2954
2986
|
} else
|
|
2955
|
-
JSCompiler_inline_result$jscomp$
|
|
2987
|
+
JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
|
2956
2988
|
target$jscomp$0,
|
|
2957
2989
|
props,
|
|
2958
2990
|
"html"
|
|
2959
2991
|
);
|
|
2960
|
-
return JSCompiler_inline_result$jscomp$
|
|
2992
|
+
return JSCompiler_inline_result$jscomp$10;
|
|
2961
2993
|
default:
|
|
2962
2994
|
if (-1 !== type.indexOf("-")) {
|
|
2963
2995
|
target$jscomp$0.push(startChunkForTag(type));
|
|
2964
|
-
var children$jscomp$
|
|
2965
|
-
innerHTML$jscomp$
|
|
2966
|
-
propKey$jscomp$
|
|
2967
|
-
for (propKey$jscomp$
|
|
2968
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
2969
|
-
var propValue$jscomp$
|
|
2970
|
-
if (null != propValue$jscomp$
|
|
2971
|
-
var attributeName = propKey$jscomp$
|
|
2972
|
-
switch (propKey$jscomp$
|
|
2996
|
+
var children$jscomp$11 = null,
|
|
2997
|
+
innerHTML$jscomp$8 = null,
|
|
2998
|
+
propKey$jscomp$11;
|
|
2999
|
+
for (propKey$jscomp$11 in props)
|
|
3000
|
+
if (hasOwnProperty.call(props, propKey$jscomp$11)) {
|
|
3001
|
+
var propValue$jscomp$11 = props[propKey$jscomp$11];
|
|
3002
|
+
if (null != propValue$jscomp$11) {
|
|
3003
|
+
var attributeName = propKey$jscomp$11;
|
|
3004
|
+
switch (propKey$jscomp$11) {
|
|
2973
3005
|
case "children":
|
|
2974
|
-
children$jscomp$
|
|
3006
|
+
children$jscomp$11 = propValue$jscomp$11;
|
|
2975
3007
|
break;
|
|
2976
3008
|
case "dangerouslySetInnerHTML":
|
|
2977
|
-
innerHTML$jscomp$
|
|
3009
|
+
innerHTML$jscomp$8 = propValue$jscomp$11;
|
|
2978
3010
|
break;
|
|
2979
3011
|
case "style":
|
|
2980
|
-
pushStyleAttribute(target$jscomp$0, propValue$jscomp$
|
|
3012
|
+
pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
|
|
2981
3013
|
break;
|
|
2982
3014
|
case "suppressContentEditableWarning":
|
|
2983
3015
|
case "suppressHydrationWarning":
|
|
@@ -2987,21 +3019,21 @@
|
|
|
2987
3019
|
attributeName = "class";
|
|
2988
3020
|
default:
|
|
2989
3021
|
if (
|
|
2990
|
-
isAttributeNameSafe(propKey$jscomp$
|
|
2991
|
-
"function" !== typeof propValue$jscomp$
|
|
2992
|
-
"symbol" !== typeof propValue$jscomp$
|
|
2993
|
-
!1 !== propValue$jscomp$
|
|
3022
|
+
isAttributeNameSafe(propKey$jscomp$11) &&
|
|
3023
|
+
"function" !== typeof propValue$jscomp$11 &&
|
|
3024
|
+
"symbol" !== typeof propValue$jscomp$11 &&
|
|
3025
|
+
!1 !== propValue$jscomp$11
|
|
2994
3026
|
) {
|
|
2995
|
-
if (!0 === propValue$jscomp$
|
|
2996
|
-
propValue$jscomp$
|
|
2997
|
-
else if ("object" === typeof propValue$jscomp$
|
|
3027
|
+
if (!0 === propValue$jscomp$11)
|
|
3028
|
+
propValue$jscomp$11 = "";
|
|
3029
|
+
else if ("object" === typeof propValue$jscomp$11)
|
|
2998
3030
|
continue;
|
|
2999
3031
|
target$jscomp$0.push(
|
|
3000
3032
|
attributeSeparator,
|
|
3001
3033
|
stringToChunk(attributeName),
|
|
3002
3034
|
attributeAssign,
|
|
3003
3035
|
stringToChunk(
|
|
3004
|
-
escapeTextForBrowser(propValue$jscomp$
|
|
3036
|
+
escapeTextForBrowser(propValue$jscomp$11)
|
|
3005
3037
|
),
|
|
3006
3038
|
attributeEnd
|
|
3007
3039
|
);
|
|
@@ -3012,10 +3044,10 @@
|
|
|
3012
3044
|
target$jscomp$0.push(endOfStartTag);
|
|
3013
3045
|
pushInnerHTML(
|
|
3014
3046
|
target$jscomp$0,
|
|
3015
|
-
innerHTML$jscomp$
|
|
3016
|
-
children$jscomp$
|
|
3047
|
+
innerHTML$jscomp$8,
|
|
3048
|
+
children$jscomp$11
|
|
3017
3049
|
);
|
|
3018
|
-
return children$jscomp$
|
|
3050
|
+
return children$jscomp$11;
|
|
3019
3051
|
}
|
|
3020
3052
|
}
|
|
3021
3053
|
return pushStartGenericElement(target$jscomp$0, props, type);
|
|
@@ -3173,7 +3205,7 @@
|
|
|
3173
3205
|
hrefs = styleQueue.hrefs;
|
|
3174
3206
|
0 < rules.length &&
|
|
3175
3207
|
0 === hrefs.length &&
|
|
3176
|
-
error
|
|
3208
|
+
console.error(
|
|
3177
3209
|
"React expected to have at least one href for an a hoistable style but found none. This is a bug in React."
|
|
3178
3210
|
);
|
|
3179
3211
|
var i = 0;
|
|
@@ -3409,7 +3441,7 @@
|
|
|
3409
3441
|
) {
|
|
3410
3442
|
(resumableState.scriptResources.hasOwnProperty(href) ||
|
|
3411
3443
|
resumableState.moduleScriptResources.hasOwnProperty(href)) &&
|
|
3412
|
-
error
|
|
3444
|
+
console.error(
|
|
3413
3445
|
'Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',
|
|
3414
3446
|
href
|
|
3415
3447
|
);
|
|
@@ -3467,7 +3499,7 @@
|
|
|
3467
3499
|
}
|
|
3468
3500
|
function escapeStringForLinkHeaderQuotedParamValueContext(value, name) {
|
|
3469
3501
|
willCoercionThrow(value) &&
|
|
3470
|
-
(error
|
|
3502
|
+
(console.error(
|
|
3471
3503
|
"The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
3472
3504
|
name,
|
|
3473
3505
|
typeName(value)
|
|
@@ -3528,7 +3560,7 @@
|
|
|
3528
3560
|
if ("object" === typeof type)
|
|
3529
3561
|
switch (
|
|
3530
3562
|
("number" === typeof type.tag &&
|
|
3531
|
-
error
|
|
3563
|
+
console.error(
|
|
3532
3564
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
3533
3565
|
),
|
|
3534
3566
|
type.$$typeof)
|
|
@@ -3618,12 +3650,12 @@
|
|
|
3618
3650
|
(null === prev
|
|
3619
3651
|
? pushAllNext(newSnapshot)
|
|
3620
3652
|
: null === newSnapshot
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3653
|
+
? popAllPrevious(prev)
|
|
3654
|
+
: prev.depth === newSnapshot.depth
|
|
3655
|
+
? popToNearestCommonAncestor(prev, newSnapshot)
|
|
3656
|
+
: prev.depth > newSnapshot.depth
|
|
3657
|
+
? popPreviousToCommonLevel(prev, newSnapshot)
|
|
3658
|
+
: popNextToCommonLevel(prev, newSnapshot),
|
|
3627
3659
|
(currentActiveSnapshot = newSnapshot));
|
|
3628
3660
|
}
|
|
3629
3661
|
function warnOnInvalidCallback(callback) {
|
|
@@ -3631,7 +3663,7 @@
|
|
|
3631
3663
|
var key = String(callback);
|
|
3632
3664
|
didWarnOnInvalidCallback.has(key) ||
|
|
3633
3665
|
(didWarnOnInvalidCallback.add(key),
|
|
3634
|
-
error
|
|
3666
|
+
console.error(
|
|
3635
3667
|
"Expected the last optional `callback` argument to be a function. Instead received: %s.",
|
|
3636
3668
|
callback
|
|
3637
3669
|
));
|
|
@@ -3644,7 +3676,7 @@
|
|
|
3644
3676
|
"ReactClass";
|
|
3645
3677
|
var warningKey = publicInstance + "." + callerName;
|
|
3646
3678
|
didWarnAboutNoopUpdateForComponent[warningKey] ||
|
|
3647
|
-
(error
|
|
3679
|
+
(console.error(
|
|
3648
3680
|
"Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\n\nPlease check the code for the %s component.",
|
|
3649
3681
|
callerName,
|
|
3650
3682
|
publicInstance
|
|
@@ -3744,7 +3776,7 @@
|
|
|
3744
3776
|
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
3745
3777
|
);
|
|
3746
3778
|
isInHookUserCodeInDev &&
|
|
3747
|
-
error
|
|
3779
|
+
console.error(
|
|
3748
3780
|
"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"
|
|
3749
3781
|
);
|
|
3750
3782
|
return currentlyRenderingComponent;
|
|
@@ -3761,9 +3793,9 @@
|
|
|
3761
3793
|
(firstWorkInProgressHook = workInProgressHook = createHook()))
|
|
3762
3794
|
: ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
|
|
3763
3795
|
: null === workInProgressHook.next
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3796
|
+
? ((isReRender = !1),
|
|
3797
|
+
(workInProgressHook = workInProgressHook.next = createHook()))
|
|
3798
|
+
: ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
|
|
3767
3799
|
return workInProgressHook;
|
|
3768
3800
|
}
|
|
3769
3801
|
function getThenableStateAfterSuspending() {
|
|
@@ -3785,7 +3817,7 @@
|
|
|
3785
3817
|
}
|
|
3786
3818
|
function readContext(context) {
|
|
3787
3819
|
isInHookUserCodeInDev &&
|
|
3788
|
-
error
|
|
3820
|
+
console.error(
|
|
3789
3821
|
"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."
|
|
3790
3822
|
);
|
|
3791
3823
|
return context._currentValue;
|
|
@@ -3825,8 +3857,8 @@
|
|
|
3825
3857
|
? initialArg()
|
|
3826
3858
|
: initialArg
|
|
3827
3859
|
: void 0 !== init
|
|
3828
|
-
|
|
3829
|
-
|
|
3860
|
+
? init(initialArg)
|
|
3861
|
+
: initialArg;
|
|
3830
3862
|
isInHookUserCodeInDev = !1;
|
|
3831
3863
|
workInProgressHook.memoizedState = reducer;
|
|
3832
3864
|
reducer = workInProgressHook.queue = { last: null, dispatch: null };
|
|
@@ -3847,14 +3879,14 @@
|
|
|
3847
3879
|
a: {
|
|
3848
3880
|
var JSCompiler_inline_result = prevState[1];
|
|
3849
3881
|
if (null === JSCompiler_inline_result)
|
|
3850
|
-
error
|
|
3882
|
+
console.error(
|
|
3851
3883
|
"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",
|
|
3852
3884
|
currentHookNameInDev
|
|
3853
3885
|
),
|
|
3854
3886
|
(JSCompiler_inline_result = !1);
|
|
3855
3887
|
else {
|
|
3856
3888
|
deps.length !== JSCompiler_inline_result.length &&
|
|
3857
|
-
error
|
|
3889
|
+
console.error(
|
|
3858
3890
|
"The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",
|
|
3859
3891
|
currentHookNameInDev,
|
|
3860
3892
|
"[" + deps.join(", ") + "]",
|
|
@@ -4027,10 +4059,16 @@
|
|
|
4027
4059
|
});
|
|
4028
4060
|
}
|
|
4029
4061
|
0 > disabledDepth &&
|
|
4030
|
-
error
|
|
4062
|
+
console.error(
|
|
4031
4063
|
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
4032
4064
|
);
|
|
4033
4065
|
}
|
|
4066
|
+
function prepareStackTrace(error, structuredStackTrace) {
|
|
4067
|
+
error = (error.name || "Error") + ": " + (error.message || "");
|
|
4068
|
+
for (var i = 0; i < structuredStackTrace.length; i++)
|
|
4069
|
+
error += "\n at " + structuredStackTrace[i].toString();
|
|
4070
|
+
return error;
|
|
4071
|
+
}
|
|
4034
4072
|
function describeBuiltInComponentFrame(name) {
|
|
4035
4073
|
if (void 0 === prefix)
|
|
4036
4074
|
try {
|
|
@@ -4038,8 +4076,14 @@
|
|
|
4038
4076
|
} catch (x) {
|
|
4039
4077
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
4040
4078
|
prefix = (match && match[1]) || "";
|
|
4079
|
+
suffix =
|
|
4080
|
+
-1 < x.stack.indexOf("\n at")
|
|
4081
|
+
? " (<anonymous>)"
|
|
4082
|
+
: -1 < x.stack.indexOf("@")
|
|
4083
|
+
? "@unknown:0:0"
|
|
4084
|
+
: "";
|
|
4041
4085
|
}
|
|
4042
|
-
return "\n" + prefix + name;
|
|
4086
|
+
return "\n" + prefix + name + suffix;
|
|
4043
4087
|
}
|
|
4044
4088
|
function describeNativeComponentFrame(fn, construct) {
|
|
4045
4089
|
if (!fn || reentry) return "";
|
|
@@ -4047,69 +4091,69 @@
|
|
|
4047
4091
|
if (void 0 !== frame) return frame;
|
|
4048
4092
|
reentry = !0;
|
|
4049
4093
|
frame = Error.prepareStackTrace;
|
|
4050
|
-
Error.prepareStackTrace =
|
|
4094
|
+
Error.prepareStackTrace = prepareStackTrace;
|
|
4051
4095
|
var previousDispatcher = null;
|
|
4052
4096
|
previousDispatcher = ReactSharedInternals.H;
|
|
4053
4097
|
ReactSharedInternals.H = null;
|
|
4054
4098
|
disableLogs();
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
};
|
|
4062
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
4063
|
-
set: function () {
|
|
4099
|
+
try {
|
|
4100
|
+
var RunInRootFrame = {
|
|
4101
|
+
DetermineComponentFrameRoot: function () {
|
|
4102
|
+
try {
|
|
4103
|
+
if (construct) {
|
|
4104
|
+
var Fake = function () {
|
|
4064
4105
|
throw Error();
|
|
4106
|
+
};
|
|
4107
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
4108
|
+
set: function () {
|
|
4109
|
+
throw Error();
|
|
4110
|
+
}
|
|
4111
|
+
});
|
|
4112
|
+
if ("object" === typeof Reflect && Reflect.construct) {
|
|
4113
|
+
try {
|
|
4114
|
+
Reflect.construct(Fake, []);
|
|
4115
|
+
} catch (x) {
|
|
4116
|
+
var control = x;
|
|
4117
|
+
}
|
|
4118
|
+
Reflect.construct(fn, [], Fake);
|
|
4119
|
+
} else {
|
|
4120
|
+
try {
|
|
4121
|
+
Fake.call();
|
|
4122
|
+
} catch (x$0) {
|
|
4123
|
+
control = x$0;
|
|
4124
|
+
}
|
|
4125
|
+
fn.call(Fake.prototype);
|
|
4065
4126
|
}
|
|
4066
|
-
});
|
|
4067
|
-
if ("object" === typeof Reflect && Reflect.construct) {
|
|
4068
|
-
try {
|
|
4069
|
-
Reflect.construct(Fake, []);
|
|
4070
|
-
} catch (x) {
|
|
4071
|
-
var control = x;
|
|
4072
|
-
}
|
|
4073
|
-
Reflect.construct(fn, [], Fake);
|
|
4074
4127
|
} else {
|
|
4075
4128
|
try {
|
|
4076
|
-
|
|
4077
|
-
} catch (x$
|
|
4078
|
-
control = x$
|
|
4129
|
+
throw Error();
|
|
4130
|
+
} catch (x$1) {
|
|
4131
|
+
control = x$1;
|
|
4079
4132
|
}
|
|
4080
|
-
fn
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
try {
|
|
4084
|
-
throw Error();
|
|
4085
|
-
} catch (x$1) {
|
|
4086
|
-
control = x$1;
|
|
4133
|
+
(Fake = fn()) &&
|
|
4134
|
+
"function" === typeof Fake.catch &&
|
|
4135
|
+
Fake.catch(function () {});
|
|
4087
4136
|
}
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4137
|
+
} catch (sample) {
|
|
4138
|
+
if (sample && control && "string" === typeof sample.stack)
|
|
4139
|
+
return [sample.stack, control.stack];
|
|
4091
4140
|
}
|
|
4092
|
-
|
|
4093
|
-
if (sample && control && "string" === typeof sample.stack)
|
|
4094
|
-
return [sample.stack, control.stack];
|
|
4141
|
+
return [null, null];
|
|
4095
4142
|
}
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
"DetermineComponentFrameRoot";
|
|
4101
|
-
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
|
4102
|
-
RunInRootFrame.DetermineComponentFrameRoot,
|
|
4103
|
-
"name"
|
|
4104
|
-
);
|
|
4105
|
-
namePropDescriptor &&
|
|
4106
|
-
namePropDescriptor.configurable &&
|
|
4107
|
-
Object.defineProperty(
|
|
4143
|
+
};
|
|
4144
|
+
RunInRootFrame.DetermineComponentFrameRoot.displayName =
|
|
4145
|
+
"DetermineComponentFrameRoot";
|
|
4146
|
+
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
|
4108
4147
|
RunInRootFrame.DetermineComponentFrameRoot,
|
|
4109
|
-
"name"
|
|
4110
|
-
{ value: "DetermineComponentFrameRoot" }
|
|
4148
|
+
"name"
|
|
4111
4149
|
);
|
|
4112
|
-
|
|
4150
|
+
namePropDescriptor &&
|
|
4151
|
+
namePropDescriptor.configurable &&
|
|
4152
|
+
Object.defineProperty(
|
|
4153
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
|
4154
|
+
"name",
|
|
4155
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
4156
|
+
);
|
|
4113
4157
|
var _RunInRootFrame$Deter =
|
|
4114
4158
|
RunInRootFrame.DetermineComponentFrameRoot(),
|
|
4115
4159
|
sampleStack = _RunInRootFrame$Deter[0],
|
|
@@ -4118,54 +4162,58 @@
|
|
|
4118
4162
|
var sampleLines = sampleStack.split("\n"),
|
|
4119
4163
|
controlLines = controlStack.split("\n");
|
|
4120
4164
|
for (
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
!sampleLines[
|
|
4165
|
+
_RunInRootFrame$Deter = namePropDescriptor = 0;
|
|
4166
|
+
namePropDescriptor < sampleLines.length &&
|
|
4167
|
+
!sampleLines[namePropDescriptor].includes(
|
|
4124
4168
|
"DetermineComponentFrameRoot"
|
|
4125
4169
|
);
|
|
4126
4170
|
|
|
4127
4171
|
)
|
|
4128
|
-
|
|
4172
|
+
namePropDescriptor++;
|
|
4129
4173
|
for (
|
|
4130
4174
|
;
|
|
4131
|
-
|
|
4132
|
-
!controlLines[
|
|
4175
|
+
_RunInRootFrame$Deter < controlLines.length &&
|
|
4176
|
+
!controlLines[_RunInRootFrame$Deter].includes(
|
|
4177
|
+
"DetermineComponentFrameRoot"
|
|
4178
|
+
);
|
|
4133
4179
|
|
|
4134
4180
|
)
|
|
4135
|
-
|
|
4181
|
+
_RunInRootFrame$Deter++;
|
|
4136
4182
|
if (
|
|
4137
|
-
|
|
4138
|
-
|
|
4183
|
+
namePropDescriptor === sampleLines.length ||
|
|
4184
|
+
_RunInRootFrame$Deter === controlLines.length
|
|
4139
4185
|
)
|
|
4140
4186
|
for (
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
1 <=
|
|
4144
|
-
0 <=
|
|
4145
|
-
sampleLines[
|
|
4187
|
+
namePropDescriptor = sampleLines.length - 1,
|
|
4188
|
+
_RunInRootFrame$Deter = controlLines.length - 1;
|
|
4189
|
+
1 <= namePropDescriptor &&
|
|
4190
|
+
0 <= _RunInRootFrame$Deter &&
|
|
4191
|
+
sampleLines[namePropDescriptor] !==
|
|
4192
|
+
controlLines[_RunInRootFrame$Deter];
|
|
4146
4193
|
|
|
4147
4194
|
)
|
|
4148
|
-
|
|
4195
|
+
_RunInRootFrame$Deter--;
|
|
4149
4196
|
for (
|
|
4150
4197
|
;
|
|
4151
|
-
1 <=
|
|
4152
|
-
_RunInRootFrame$Deter
|
|
4198
|
+
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
|
|
4199
|
+
namePropDescriptor--, _RunInRootFrame$Deter--
|
|
4153
4200
|
)
|
|
4154
4201
|
if (
|
|
4155
|
-
sampleLines[
|
|
4202
|
+
sampleLines[namePropDescriptor] !==
|
|
4203
|
+
controlLines[_RunInRootFrame$Deter]
|
|
4156
4204
|
) {
|
|
4157
|
-
if (1 !==
|
|
4205
|
+
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
|
|
4158
4206
|
do
|
|
4159
4207
|
if (
|
|
4160
|
-
(
|
|
4161
|
-
|
|
4162
|
-
0 >
|
|
4163
|
-
sampleLines[
|
|
4164
|
-
controlLines[
|
|
4208
|
+
(namePropDescriptor--,
|
|
4209
|
+
_RunInRootFrame$Deter--,
|
|
4210
|
+
0 > _RunInRootFrame$Deter ||
|
|
4211
|
+
sampleLines[namePropDescriptor] !==
|
|
4212
|
+
controlLines[_RunInRootFrame$Deter])
|
|
4165
4213
|
) {
|
|
4166
4214
|
var _frame =
|
|
4167
4215
|
"\n" +
|
|
4168
|
-
sampleLines[
|
|
4216
|
+
sampleLines[namePropDescriptor].replace(
|
|
4169
4217
|
" at new ",
|
|
4170
4218
|
" at "
|
|
4171
4219
|
);
|
|
@@ -4176,7 +4224,7 @@
|
|
|
4176
4224
|
componentFrameCache.set(fn, _frame);
|
|
4177
4225
|
return _frame;
|
|
4178
4226
|
}
|
|
4179
|
-
while (1 <=
|
|
4227
|
+
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
|
|
4180
4228
|
}
|
|
4181
4229
|
break;
|
|
4182
4230
|
}
|
|
@@ -4193,42 +4241,90 @@
|
|
|
4193
4241
|
"function" === typeof fn && componentFrameCache.set(fn, sampleLines);
|
|
4194
4242
|
return sampleLines;
|
|
4195
4243
|
}
|
|
4244
|
+
function describeComponentStackByType(type) {
|
|
4245
|
+
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
4246
|
+
if ("function" === typeof type)
|
|
4247
|
+
return type.prototype && type.prototype.isReactComponent
|
|
4248
|
+
? ((type = describeNativeComponentFrame(type, !0)), type)
|
|
4249
|
+
: describeNativeComponentFrame(type, !1);
|
|
4250
|
+
if ("object" === typeof type && null !== type) {
|
|
4251
|
+
switch (type.$$typeof) {
|
|
4252
|
+
case REACT_FORWARD_REF_TYPE:
|
|
4253
|
+
return describeNativeComponentFrame(type.render, !1);
|
|
4254
|
+
case REACT_MEMO_TYPE:
|
|
4255
|
+
return describeNativeComponentFrame(type.type, !1);
|
|
4256
|
+
case REACT_LAZY_TYPE:
|
|
4257
|
+
var lazyComponent = type,
|
|
4258
|
+
payload = lazyComponent._payload;
|
|
4259
|
+
lazyComponent = lazyComponent._init;
|
|
4260
|
+
try {
|
|
4261
|
+
type = lazyComponent(payload);
|
|
4262
|
+
} catch (x) {
|
|
4263
|
+
return describeBuiltInComponentFrame("Lazy");
|
|
4264
|
+
}
|
|
4265
|
+
return describeComponentStackByType(type);
|
|
4266
|
+
}
|
|
4267
|
+
if ("string" === typeof type.name)
|
|
4268
|
+
return (
|
|
4269
|
+
(payload = type.env),
|
|
4270
|
+
describeBuiltInComponentFrame(
|
|
4271
|
+
type.name + (payload ? " [" + payload + "]" : "")
|
|
4272
|
+
)
|
|
4273
|
+
);
|
|
4274
|
+
}
|
|
4275
|
+
switch (type) {
|
|
4276
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
4277
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
|
4278
|
+
case REACT_SUSPENSE_TYPE:
|
|
4279
|
+
return describeBuiltInComponentFrame("Suspense");
|
|
4280
|
+
}
|
|
4281
|
+
return "";
|
|
4282
|
+
}
|
|
4196
4283
|
function getStackByComponentStackNode(componentStack) {
|
|
4197
4284
|
try {
|
|
4198
4285
|
var info = "";
|
|
4199
|
-
do
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
break;
|
|
4204
|
-
case 1:
|
|
4205
|
-
var JSCompiler_temp_const = info;
|
|
4206
|
-
var JSCompiler_inline_result = describeNativeComponentFrame(
|
|
4207
|
-
componentStack.type,
|
|
4208
|
-
!1
|
|
4209
|
-
);
|
|
4210
|
-
info = JSCompiler_temp_const + JSCompiler_inline_result;
|
|
4211
|
-
break;
|
|
4212
|
-
case 2:
|
|
4213
|
-
JSCompiler_temp_const = info;
|
|
4214
|
-
var JSCompiler_inline_result$jscomp$0 =
|
|
4215
|
-
describeNativeComponentFrame(componentStack.type, !0);
|
|
4216
|
-
info = JSCompiler_temp_const + JSCompiler_inline_result$jscomp$0;
|
|
4217
|
-
}
|
|
4218
|
-
componentStack = componentStack.parent;
|
|
4219
|
-
} while (componentStack);
|
|
4286
|
+
do
|
|
4287
|
+
(info += describeComponentStackByType(componentStack.type)),
|
|
4288
|
+
(componentStack = componentStack.parent);
|
|
4289
|
+
while (componentStack);
|
|
4220
4290
|
return info;
|
|
4221
4291
|
} catch (x) {
|
|
4222
4292
|
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
|
4223
4293
|
}
|
|
4224
4294
|
}
|
|
4225
4295
|
function defaultErrorHandler(error) {
|
|
4226
|
-
|
|
4296
|
+
if (
|
|
4297
|
+
"object" === typeof error &&
|
|
4298
|
+
null !== error &&
|
|
4299
|
+
"string" === typeof error.environmentName
|
|
4300
|
+
) {
|
|
4301
|
+
var JSCompiler_inline_result = error.environmentName;
|
|
4302
|
+
error = [error].slice(0);
|
|
4303
|
+
"string" === typeof error[0]
|
|
4304
|
+
? error.splice(
|
|
4305
|
+
0,
|
|
4306
|
+
1,
|
|
4307
|
+
"\u001b[0m\u001b[7m%c%s\u001b[0m%c " + error[0],
|
|
4308
|
+
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
|
4309
|
+
" " + JSCompiler_inline_result + " ",
|
|
4310
|
+
""
|
|
4311
|
+
)
|
|
4312
|
+
: error.splice(
|
|
4313
|
+
0,
|
|
4314
|
+
0,
|
|
4315
|
+
"\u001b[0m\u001b[7m%c%s\u001b[0m%c ",
|
|
4316
|
+
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
|
4317
|
+
" " + JSCompiler_inline_result + " ",
|
|
4318
|
+
""
|
|
4319
|
+
);
|
|
4320
|
+
error.unshift(console);
|
|
4321
|
+
JSCompiler_inline_result = bind.apply(console.error, error);
|
|
4322
|
+
JSCompiler_inline_result();
|
|
4323
|
+
} else console.error(error);
|
|
4227
4324
|
return null;
|
|
4228
4325
|
}
|
|
4229
4326
|
function noop() {}
|
|
4230
4327
|
function RequestInstance(
|
|
4231
|
-
children,
|
|
4232
4328
|
resumableState,
|
|
4233
4329
|
renderState,
|
|
4234
4330
|
rootFormatContext,
|
|
@@ -4241,8 +4337,7 @@
|
|
|
4241
4337
|
onPostpone,
|
|
4242
4338
|
formState
|
|
4243
4339
|
) {
|
|
4244
|
-
var
|
|
4245
|
-
abortSet = new Set();
|
|
4340
|
+
var abortSet = new Set();
|
|
4246
4341
|
this.destination = null;
|
|
4247
4342
|
this.flushScheduled = !1;
|
|
4248
4343
|
this.resumableState = resumableState;
|
|
@@ -4250,12 +4345,12 @@
|
|
|
4250
4345
|
this.rootFormatContext = rootFormatContext;
|
|
4251
4346
|
this.progressiveChunkSize =
|
|
4252
4347
|
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
|
|
4253
|
-
this.status =
|
|
4348
|
+
this.status = 10;
|
|
4254
4349
|
this.fatalError = null;
|
|
4255
4350
|
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
|
4256
4351
|
this.completedRootSegment = null;
|
|
4257
4352
|
this.abortableTasks = abortSet;
|
|
4258
|
-
this.pingedTasks =
|
|
4353
|
+
this.pingedTasks = [];
|
|
4259
4354
|
this.clientRenderedBoundaries = [];
|
|
4260
4355
|
this.completedBoundaries = [];
|
|
4261
4356
|
this.partialBoundaries = [];
|
|
@@ -4268,35 +4363,64 @@
|
|
|
4268
4363
|
this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
|
|
4269
4364
|
this.formState = void 0 === formState ? null : formState;
|
|
4270
4365
|
this.didWarnForKey = null;
|
|
4271
|
-
|
|
4272
|
-
|
|
4366
|
+
}
|
|
4367
|
+
function createRequest(
|
|
4368
|
+
children,
|
|
4369
|
+
resumableState,
|
|
4370
|
+
renderState,
|
|
4371
|
+
rootFormatContext,
|
|
4372
|
+
progressiveChunkSize,
|
|
4373
|
+
onError,
|
|
4374
|
+
onAllReady,
|
|
4375
|
+
onShellReady,
|
|
4376
|
+
onShellError,
|
|
4377
|
+
onFatalError,
|
|
4378
|
+
onPostpone,
|
|
4379
|
+
formState
|
|
4380
|
+
) {
|
|
4381
|
+
resumableState = new RequestInstance(
|
|
4382
|
+
resumableState,
|
|
4383
|
+
renderState,
|
|
4384
|
+
rootFormatContext,
|
|
4385
|
+
progressiveChunkSize,
|
|
4386
|
+
onError,
|
|
4387
|
+
onAllReady,
|
|
4388
|
+
onShellReady,
|
|
4389
|
+
onShellError,
|
|
4390
|
+
onFatalError,
|
|
4391
|
+
onPostpone,
|
|
4392
|
+
formState
|
|
4393
|
+
);
|
|
4394
|
+
renderState = createPendingSegment(
|
|
4395
|
+
resumableState,
|
|
4273
4396
|
0,
|
|
4274
4397
|
null,
|
|
4275
4398
|
rootFormatContext,
|
|
4276
4399
|
!1,
|
|
4277
4400
|
!1
|
|
4278
4401
|
);
|
|
4279
|
-
|
|
4402
|
+
renderState.parentFlushed = !0;
|
|
4280
4403
|
children = createRenderTask(
|
|
4281
|
-
|
|
4404
|
+
resumableState,
|
|
4282
4405
|
null,
|
|
4283
4406
|
children,
|
|
4284
4407
|
-1,
|
|
4285
4408
|
null,
|
|
4286
|
-
|
|
4409
|
+
renderState,
|
|
4287
4410
|
null,
|
|
4288
|
-
|
|
4411
|
+
resumableState.abortableTasks,
|
|
4289
4412
|
null,
|
|
4290
4413
|
rootFormatContext,
|
|
4291
|
-
emptyContextObject,
|
|
4292
4414
|
null,
|
|
4293
4415
|
emptyTreeContext,
|
|
4294
4416
|
null,
|
|
4295
4417
|
!1
|
|
4296
4418
|
);
|
|
4297
|
-
|
|
4419
|
+
pushComponentStack(children);
|
|
4420
|
+
resumableState.pingedTasks.push(children);
|
|
4421
|
+
return resumableState;
|
|
4298
4422
|
}
|
|
4299
|
-
function
|
|
4423
|
+
function createPrerenderRequest(
|
|
4300
4424
|
children,
|
|
4301
4425
|
resumableState,
|
|
4302
4426
|
renderState,
|
|
@@ -4307,10 +4431,9 @@
|
|
|
4307
4431
|
onShellReady,
|
|
4308
4432
|
onShellError,
|
|
4309
4433
|
onFatalError,
|
|
4310
|
-
onPostpone
|
|
4311
|
-
formState
|
|
4434
|
+
onPostpone
|
|
4312
4435
|
) {
|
|
4313
|
-
|
|
4436
|
+
children = createRequest(
|
|
4314
4437
|
children,
|
|
4315
4438
|
resumableState,
|
|
4316
4439
|
renderState,
|
|
@@ -4322,8 +4445,14 @@
|
|
|
4322
4445
|
onShellError,
|
|
4323
4446
|
onFatalError,
|
|
4324
4447
|
onPostpone,
|
|
4325
|
-
|
|
4448
|
+
void 0
|
|
4326
4449
|
);
|
|
4450
|
+
children.trackedPostpones = {
|
|
4451
|
+
workingMap: new Map(),
|
|
4452
|
+
rootNodes: [],
|
|
4453
|
+
rootSlots: null
|
|
4454
|
+
};
|
|
4455
|
+
return children;
|
|
4327
4456
|
}
|
|
4328
4457
|
function resolveRequest() {
|
|
4329
4458
|
if (currentRequest) return currentRequest;
|
|
@@ -4337,9 +4466,13 @@
|
|
|
4337
4466
|
request.pingedTasks.push(task);
|
|
4338
4467
|
1 === request.pingedTasks.length &&
|
|
4339
4468
|
((request.flushScheduled = null !== request.destination),
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4469
|
+
null !== request.trackedPostpones || 10 === request.status
|
|
4470
|
+
? scheduleMicrotask(function () {
|
|
4471
|
+
return performWork(request);
|
|
4472
|
+
})
|
|
4473
|
+
: setTimeout(function () {
|
|
4474
|
+
return performWork(request);
|
|
4475
|
+
}, 0));
|
|
4343
4476
|
}
|
|
4344
4477
|
function createSuspenseBoundary(request, fallbackAbortableTasks) {
|
|
4345
4478
|
return {
|
|
@@ -4371,7 +4504,6 @@
|
|
|
4371
4504
|
abortSet,
|
|
4372
4505
|
keyPath,
|
|
4373
4506
|
formatContext,
|
|
4374
|
-
legacyContext,
|
|
4375
4507
|
context,
|
|
4376
4508
|
treeContext,
|
|
4377
4509
|
componentStack,
|
|
@@ -4394,7 +4526,6 @@
|
|
|
4394
4526
|
abortSet: abortSet,
|
|
4395
4527
|
keyPath: keyPath,
|
|
4396
4528
|
formatContext: formatContext,
|
|
4397
|
-
legacyContext: legacyContext,
|
|
4398
4529
|
context: context,
|
|
4399
4530
|
treeContext: treeContext,
|
|
4400
4531
|
componentStack: componentStack,
|
|
@@ -4415,7 +4546,6 @@
|
|
|
4415
4546
|
abortSet,
|
|
4416
4547
|
keyPath,
|
|
4417
4548
|
formatContext,
|
|
4418
|
-
legacyContext,
|
|
4419
4549
|
context,
|
|
4420
4550
|
treeContext,
|
|
4421
4551
|
componentStack,
|
|
@@ -4439,7 +4569,6 @@
|
|
|
4439
4569
|
abortSet: abortSet,
|
|
4440
4570
|
keyPath: keyPath,
|
|
4441
4571
|
formatContext: formatContext,
|
|
4442
|
-
legacyContext: legacyContext,
|
|
4443
4572
|
context: context,
|
|
4444
4573
|
treeContext: treeContext,
|
|
4445
4574
|
componentStack: componentStack,
|
|
@@ -4476,11 +4605,57 @@
|
|
|
4476
4605
|
? ""
|
|
4477
4606
|
: getStackByComponentStackNode(currentTaskInDEV.componentStack);
|
|
4478
4607
|
}
|
|
4479
|
-
function
|
|
4480
|
-
|
|
4608
|
+
function pushServerComponentStack(task, debugInfo) {
|
|
4609
|
+
if (null != debugInfo)
|
|
4610
|
+
for (var i = 0; i < debugInfo.length; i++) {
|
|
4611
|
+
var componentInfo = debugInfo[i];
|
|
4612
|
+
"string" === typeof componentInfo.name &&
|
|
4613
|
+
(task.componentStack = {
|
|
4614
|
+
parent: task.componentStack,
|
|
4615
|
+
type: componentInfo,
|
|
4616
|
+
owner: componentInfo.owner,
|
|
4617
|
+
stack: null
|
|
4618
|
+
});
|
|
4619
|
+
}
|
|
4481
4620
|
}
|
|
4482
|
-
function
|
|
4483
|
-
|
|
4621
|
+
function pushComponentStack(task) {
|
|
4622
|
+
var node = task.node;
|
|
4623
|
+
if ("object" === typeof node && null !== node)
|
|
4624
|
+
switch (node.$$typeof) {
|
|
4625
|
+
case REACT_ELEMENT_TYPE:
|
|
4626
|
+
var type = node.type,
|
|
4627
|
+
owner = node._owner;
|
|
4628
|
+
pushServerComponentStack(task, node._debugInfo);
|
|
4629
|
+
task.componentStack = {
|
|
4630
|
+
parent: task.componentStack,
|
|
4631
|
+
type: type,
|
|
4632
|
+
owner: owner,
|
|
4633
|
+
stack: null
|
|
4634
|
+
};
|
|
4635
|
+
break;
|
|
4636
|
+
case REACT_LAZY_TYPE:
|
|
4637
|
+
pushServerComponentStack(task, node._debugInfo);
|
|
4638
|
+
break;
|
|
4639
|
+
default:
|
|
4640
|
+
"function" === typeof node.then &&
|
|
4641
|
+
pushServerComponentStack(task, node._debugInfo);
|
|
4642
|
+
}
|
|
4643
|
+
}
|
|
4644
|
+
function getThrownInfo(node) {
|
|
4645
|
+
var errorInfo = {};
|
|
4646
|
+
node &&
|
|
4647
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
|
4648
|
+
configurable: !0,
|
|
4649
|
+
enumerable: !0,
|
|
4650
|
+
get: function () {
|
|
4651
|
+
var stack = getStackByComponentStackNode(node);
|
|
4652
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
|
4653
|
+
value: stack
|
|
4654
|
+
});
|
|
4655
|
+
return stack;
|
|
4656
|
+
}
|
|
4657
|
+
});
|
|
4658
|
+
return errorInfo;
|
|
4484
4659
|
}
|
|
4485
4660
|
function encodeErrorForBoundary(
|
|
4486
4661
|
boundary,
|
|
@@ -4504,23 +4679,25 @@
|
|
|
4504
4679
|
boundary.errorStack = null !== error ? wasAborted + error : null;
|
|
4505
4680
|
boundary.errorComponentStack = thrownInfo.componentStack;
|
|
4506
4681
|
}
|
|
4507
|
-
function logRecoverableError(request, error
|
|
4508
|
-
request = request.onError
|
|
4509
|
-
|
|
4510
|
-
|
|
4682
|
+
function logRecoverableError(request, error, errorInfo) {
|
|
4683
|
+
request = request.onError;
|
|
4684
|
+
error = request(error, errorInfo);
|
|
4685
|
+
if (null != error && "string" !== typeof error)
|
|
4686
|
+
console.error(
|
|
4511
4687
|
'onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',
|
|
4512
|
-
typeof
|
|
4688
|
+
typeof error
|
|
4513
4689
|
);
|
|
4514
|
-
else return
|
|
4690
|
+
else return error;
|
|
4515
4691
|
}
|
|
4516
4692
|
function fatalError(request, error) {
|
|
4517
|
-
var onShellError = request.onShellError
|
|
4518
|
-
|
|
4519
|
-
onShellError = request.onFatalError;
|
|
4693
|
+
var onShellError = request.onShellError,
|
|
4694
|
+
onFatalError = request.onFatalError;
|
|
4520
4695
|
onShellError(error);
|
|
4696
|
+
onFatalError(error);
|
|
4521
4697
|
null !== request.destination
|
|
4522
|
-
? ((request.status =
|
|
4523
|
-
|
|
4698
|
+
? ((request.status = CLOSED),
|
|
4699
|
+
closeWithError(request.destination, error))
|
|
4700
|
+
: ((request.status = 13), (request.fatalError = error));
|
|
4524
4701
|
}
|
|
4525
4702
|
function renderWithHooks(
|
|
4526
4703
|
request,
|
|
@@ -4542,7 +4719,7 @@
|
|
|
4542
4719
|
thenableIndexCounter = 0;
|
|
4543
4720
|
thenableState = prevThenableState;
|
|
4544
4721
|
for (
|
|
4545
|
-
request = Component
|
|
4722
|
+
request = callComponentInDEV(Component, props, secondArg);
|
|
4546
4723
|
didScheduleRenderPhaseUpdate;
|
|
4547
4724
|
|
|
4548
4725
|
)
|
|
@@ -4585,8 +4762,8 @@
|
|
|
4585
4762
|
renderNode(request, task, children, -1),
|
|
4586
4763
|
(task.treeContext = keyPath))
|
|
4587
4764
|
: didEmitActionStateMarkers
|
|
4588
|
-
|
|
4589
|
-
|
|
4765
|
+
? renderNode(request, task, children, -1)
|
|
4766
|
+
: renderNodeDestructive(request, task, children, -1);
|
|
4590
4767
|
task.keyPath = actionStateCount;
|
|
4591
4768
|
}
|
|
4592
4769
|
function renderElement(request, task, keyPath, type, props, ref) {
|
|
@@ -4606,12 +4783,6 @@
|
|
|
4606
4783
|
(newProps[_propName] = defaultProps[_propName]);
|
|
4607
4784
|
}
|
|
4608
4785
|
var resolvedProps = newProps;
|
|
4609
|
-
var previousComponentStack = task.componentStack;
|
|
4610
|
-
task.componentStack = {
|
|
4611
|
-
tag: 2,
|
|
4612
|
-
parent: task.componentStack,
|
|
4613
|
-
type: type
|
|
4614
|
-
};
|
|
4615
4786
|
var context = emptyContextObject,
|
|
4616
4787
|
contextType = type.contextType;
|
|
4617
4788
|
if (
|
|
@@ -4626,13 +4797,13 @@
|
|
|
4626
4797
|
void 0 === contextType
|
|
4627
4798
|
? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file."
|
|
4628
4799
|
: "object" !== typeof contextType
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
error
|
|
4800
|
+
? " However, it is set to a " + typeof contextType + "."
|
|
4801
|
+
: contextType.$$typeof === REACT_CONSUMER_TYPE
|
|
4802
|
+
? " Did you accidentally pass the Context.Consumer instead?"
|
|
4803
|
+
: " However, it is set to an object with keys {" +
|
|
4804
|
+
Object.keys(contextType).join(", ") +
|
|
4805
|
+
"}.";
|
|
4806
|
+
console.error(
|
|
4636
4807
|
"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",
|
|
4637
4808
|
getComponentNameFromType(type) || "Component",
|
|
4638
4809
|
addendum
|
|
@@ -4649,7 +4820,7 @@
|
|
|
4649
4820
|
var componentName = getComponentNameFromType(type) || "Component";
|
|
4650
4821
|
didWarnAboutUninitializedState.has(componentName) ||
|
|
4651
4822
|
(didWarnAboutUninitializedState.add(componentName),
|
|
4652
|
-
error
|
|
4823
|
+
console.error(
|
|
4653
4824
|
"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",
|
|
4654
4825
|
componentName,
|
|
4655
4826
|
null === instance.state ? "null" : "undefined",
|
|
@@ -4696,7 +4867,7 @@
|
|
|
4696
4867
|
(didWarnAboutLegacyLifecyclesAndDerivedState.add(
|
|
4697
4868
|
_componentName
|
|
4698
4869
|
),
|
|
4699
|
-
error
|
|
4870
|
+
console.error(
|
|
4700
4871
|
"Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles",
|
|
4701
4872
|
_componentName,
|
|
4702
4873
|
newApiName,
|
|
@@ -4715,88 +4886,87 @@
|
|
|
4715
4886
|
var name = getComponentNameFromType(type) || "Component";
|
|
4716
4887
|
instance.render ||
|
|
4717
4888
|
(type.prototype && "function" === typeof type.prototype.render
|
|
4718
|
-
? error
|
|
4889
|
+
? console.error(
|
|
4719
4890
|
"No `render` method found on the %s instance: did you accidentally return an object from the constructor?",
|
|
4720
4891
|
name
|
|
4721
4892
|
)
|
|
4722
|
-
: error
|
|
4893
|
+
: console.error(
|
|
4723
4894
|
"No `render` method found on the %s instance: you may have forgotten to define `render`.",
|
|
4724
4895
|
name
|
|
4725
4896
|
));
|
|
4726
4897
|
!instance.getInitialState ||
|
|
4727
4898
|
instance.getInitialState.isReactClassApproved ||
|
|
4728
4899
|
instance.state ||
|
|
4729
|
-
error
|
|
4900
|
+
console.error(
|
|
4730
4901
|
"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",
|
|
4731
4902
|
name
|
|
4732
4903
|
);
|
|
4733
4904
|
instance.getDefaultProps &&
|
|
4734
4905
|
!instance.getDefaultProps.isReactClassApproved &&
|
|
4735
|
-
error
|
|
4906
|
+
console.error(
|
|
4736
4907
|
"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",
|
|
4737
4908
|
name
|
|
4738
4909
|
);
|
|
4739
|
-
instance.propTypes &&
|
|
4740
|
-
error$jscomp$2(
|
|
4741
|
-
"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",
|
|
4742
|
-
name
|
|
4743
|
-
);
|
|
4744
4910
|
instance.contextType &&
|
|
4745
|
-
error
|
|
4911
|
+
console.error(
|
|
4746
4912
|
"contextType was defined as an instance property on %s. Use a static property to define contextType instead.",
|
|
4747
4913
|
name
|
|
4748
4914
|
);
|
|
4749
4915
|
type.childContextTypes &&
|
|
4750
|
-
|
|
4751
|
-
|
|
4916
|
+
!didWarnAboutChildContextTypes.has(type) &&
|
|
4917
|
+
(didWarnAboutChildContextTypes.add(type),
|
|
4918
|
+
console.error(
|
|
4919
|
+
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
|
|
4752
4920
|
name
|
|
4753
|
-
);
|
|
4921
|
+
));
|
|
4754
4922
|
type.contextTypes &&
|
|
4755
|
-
|
|
4756
|
-
|
|
4923
|
+
!didWarnAboutContextTypes$1.has(type) &&
|
|
4924
|
+
(didWarnAboutContextTypes$1.add(type),
|
|
4925
|
+
console.error(
|
|
4926
|
+
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
|
|
4757
4927
|
name
|
|
4758
|
-
);
|
|
4928
|
+
));
|
|
4759
4929
|
"function" === typeof instance.componentShouldUpdate &&
|
|
4760
|
-
error
|
|
4930
|
+
console.error(
|
|
4761
4931
|
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
|
|
4762
4932
|
name
|
|
4763
4933
|
);
|
|
4764
4934
|
type.prototype &&
|
|
4765
4935
|
type.prototype.isPureReactComponent &&
|
|
4766
4936
|
"undefined" !== typeof instance.shouldComponentUpdate &&
|
|
4767
|
-
error
|
|
4937
|
+
console.error(
|
|
4768
4938
|
"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",
|
|
4769
4939
|
getComponentNameFromType(type) || "A pure component"
|
|
4770
4940
|
);
|
|
4771
4941
|
"function" === typeof instance.componentDidUnmount &&
|
|
4772
|
-
error
|
|
4942
|
+
console.error(
|
|
4773
4943
|
"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",
|
|
4774
4944
|
name
|
|
4775
4945
|
);
|
|
4776
4946
|
"function" === typeof instance.componentDidReceiveProps &&
|
|
4777
|
-
error
|
|
4947
|
+
console.error(
|
|
4778
4948
|
"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",
|
|
4779
4949
|
name
|
|
4780
4950
|
);
|
|
4781
4951
|
"function" === typeof instance.componentWillRecieveProps &&
|
|
4782
|
-
error
|
|
4952
|
+
console.error(
|
|
4783
4953
|
"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",
|
|
4784
4954
|
name
|
|
4785
4955
|
);
|
|
4786
4956
|
"function" === typeof instance.UNSAFE_componentWillRecieveProps &&
|
|
4787
|
-
error
|
|
4957
|
+
console.error(
|
|
4788
4958
|
"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",
|
|
4789
4959
|
name
|
|
4790
4960
|
);
|
|
4791
4961
|
var hasMutatedProps = instance.props !== resolvedProps;
|
|
4792
4962
|
void 0 !== instance.props &&
|
|
4793
4963
|
hasMutatedProps &&
|
|
4794
|
-
error
|
|
4964
|
+
console.error(
|
|
4795
4965
|
"When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",
|
|
4796
4966
|
name
|
|
4797
4967
|
);
|
|
4798
4968
|
instance.defaultProps &&
|
|
4799
|
-
error
|
|
4969
|
+
console.error(
|
|
4800
4970
|
"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",
|
|
4801
4971
|
name,
|
|
4802
4972
|
name
|
|
@@ -4805,32 +4975,32 @@
|
|
|
4805
4975
|
"function" === typeof instance.componentDidUpdate ||
|
|
4806
4976
|
didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type) ||
|
|
4807
4977
|
(didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type),
|
|
4808
|
-
error
|
|
4978
|
+
console.error(
|
|
4809
4979
|
"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",
|
|
4810
4980
|
getComponentNameFromType(type)
|
|
4811
4981
|
));
|
|
4812
4982
|
"function" === typeof instance.getDerivedStateFromProps &&
|
|
4813
|
-
error
|
|
4983
|
+
console.error(
|
|
4814
4984
|
"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
|
|
4815
4985
|
name
|
|
4816
4986
|
);
|
|
4817
4987
|
"function" === typeof instance.getDerivedStateFromError &&
|
|
4818
|
-
error
|
|
4988
|
+
console.error(
|
|
4819
4989
|
"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
|
|
4820
4990
|
name
|
|
4821
4991
|
);
|
|
4822
4992
|
"function" === typeof type.getSnapshotBeforeUpdate &&
|
|
4823
|
-
error
|
|
4993
|
+
console.error(
|
|
4824
4994
|
"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",
|
|
4825
4995
|
name
|
|
4826
4996
|
);
|
|
4827
4997
|
var state = instance.state;
|
|
4828
4998
|
state &&
|
|
4829
4999
|
("object" !== typeof state || isArrayImpl(state)) &&
|
|
4830
|
-
error
|
|
5000
|
+
console.error("%s.state: must be set to an object or null", name);
|
|
4831
5001
|
"function" === typeof instance.getChildContext &&
|
|
4832
5002
|
"object" !== typeof type.childContextTypes &&
|
|
4833
|
-
error
|
|
5003
|
+
console.error(
|
|
4834
5004
|
"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",
|
|
4835
5005
|
name
|
|
4836
5006
|
);
|
|
@@ -4855,7 +5025,7 @@
|
|
|
4855
5025
|
(didWarnAboutDirectlyAssigningPropsToState.add(
|
|
4856
5026
|
componentName$jscomp$0
|
|
4857
5027
|
),
|
|
4858
|
-
error
|
|
5028
|
+
console.error(
|
|
4859
5029
|
"%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",
|
|
4860
5030
|
componentName$jscomp$0
|
|
4861
5031
|
));
|
|
@@ -4871,7 +5041,7 @@
|
|
|
4871
5041
|
getComponentNameFromType(type) || "Component";
|
|
4872
5042
|
didWarnAboutUndefinedDerivedState.has(componentName$jscomp$1) ||
|
|
4873
5043
|
(didWarnAboutUndefinedDerivedState.add(componentName$jscomp$1),
|
|
4874
|
-
error
|
|
5044
|
+
console.error(
|
|
4875
5045
|
"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
|
|
4876
5046
|
componentName$jscomp$1
|
|
4877
5047
|
));
|
|
@@ -4896,7 +5066,7 @@
|
|
|
4896
5066
|
var componentName$jscomp$2 =
|
|
4897
5067
|
getComponentNameFromType(type) || "Unknown";
|
|
4898
5068
|
didWarnAboutDeprecatedWillMount[componentName$jscomp$2] ||
|
|
4899
|
-
(warn(
|
|
5069
|
+
(console.warn(
|
|
4900
5070
|
"componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.\n\nPlease update the following components: %s",
|
|
4901
5071
|
componentName$jscomp$2
|
|
4902
5072
|
),
|
|
@@ -4908,7 +5078,7 @@
|
|
|
4908
5078
|
"function" === typeof instance.UNSAFE_componentWillMount &&
|
|
4909
5079
|
instance.UNSAFE_componentWillMount();
|
|
4910
5080
|
oldState !== instance.state &&
|
|
4911
|
-
(error
|
|
5081
|
+
(console.error(
|
|
4912
5082
|
"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
|
|
4913
5083
|
getComponentNameFromType(type) || "Component"
|
|
4914
5084
|
),
|
|
@@ -4959,10 +5129,11 @@
|
|
|
4959
5129
|
}
|
|
4960
5130
|
} else internalInstance.queue = null;
|
|
4961
5131
|
}
|
|
4962
|
-
var nextChildren = instance
|
|
5132
|
+
var nextChildren = callRenderInDEV(instance);
|
|
5133
|
+
if (12 === request.status) throw null;
|
|
4963
5134
|
instance.props !== resolvedProps &&
|
|
4964
5135
|
(didWarnAboutReassigningProps ||
|
|
4965
|
-
error
|
|
5136
|
+
console.error(
|
|
4966
5137
|
"It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",
|
|
4967
5138
|
getComponentNameFromType(type) || "a component"
|
|
4968
5139
|
),
|
|
@@ -4971,19 +5142,12 @@
|
|
|
4971
5142
|
task.keyPath = keyPath;
|
|
4972
5143
|
renderNodeDestructive(request, task, nextChildren, -1);
|
|
4973
5144
|
task.keyPath = prevKeyPath;
|
|
4974
|
-
task.componentStack = previousComponentStack;
|
|
4975
5145
|
} else {
|
|
4976
|
-
var previousComponentStack$jscomp$0 = task.componentStack;
|
|
4977
|
-
task.componentStack = {
|
|
4978
|
-
tag: 1,
|
|
4979
|
-
parent: task.componentStack,
|
|
4980
|
-
type: type
|
|
4981
|
-
};
|
|
4982
5146
|
if (type.prototype && "function" === typeof type.prototype.render) {
|
|
4983
5147
|
var componentName$jscomp$3 =
|
|
4984
5148
|
getComponentNameFromType(type) || "Unknown";
|
|
4985
5149
|
didWarnAboutBadClass[componentName$jscomp$3] ||
|
|
4986
|
-
(error
|
|
5150
|
+
(console.error(
|
|
4987
5151
|
"The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",
|
|
4988
5152
|
componentName$jscomp$3,
|
|
4989
5153
|
componentName$jscomp$3
|
|
@@ -4991,52 +5155,54 @@
|
|
|
4991
5155
|
(didWarnAboutBadClass[componentName$jscomp$3] = !0));
|
|
4992
5156
|
}
|
|
4993
5157
|
var value = renderWithHooks(
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5158
|
+
request,
|
|
5159
|
+
task,
|
|
5160
|
+
keyPath,
|
|
5161
|
+
type,
|
|
5162
|
+
props,
|
|
5163
|
+
void 0
|
|
5164
|
+
);
|
|
5165
|
+
if (12 === request.status) throw null;
|
|
5166
|
+
var hasId = 0 !== localIdCounter,
|
|
5002
5167
|
actionStateCount = actionStateCounter,
|
|
5003
5168
|
actionStateMatchingIndex$jscomp$0 = actionStateMatchingIndex;
|
|
5004
|
-
type.contextTypes
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5169
|
+
if (type.contextTypes) {
|
|
5170
|
+
var _componentName$jscomp$0 =
|
|
5171
|
+
getComponentNameFromType(type) || "Unknown";
|
|
5172
|
+
didWarnAboutContextTypes[_componentName$jscomp$0] ||
|
|
5173
|
+
((didWarnAboutContextTypes[_componentName$jscomp$0] = !0),
|
|
5174
|
+
console.error(
|
|
5175
|
+
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
|
|
5176
|
+
_componentName$jscomp$0
|
|
5177
|
+
));
|
|
5178
|
+
}
|
|
5009
5179
|
type &&
|
|
5010
5180
|
type.childContextTypes &&
|
|
5011
|
-
error
|
|
5181
|
+
console.error(
|
|
5012
5182
|
"childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...",
|
|
5013
5183
|
type.displayName || type.name || "Component"
|
|
5014
5184
|
);
|
|
5015
5185
|
if ("function" === typeof type.getDerivedStateFromProps) {
|
|
5016
|
-
var
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
_componentName$jscomp$0
|
|
5020
|
-
] ||
|
|
5021
|
-
(error$jscomp$2(
|
|
5186
|
+
var _componentName2 = getComponentNameFromType(type) || "Unknown";
|
|
5187
|
+
didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] ||
|
|
5188
|
+
(console.error(
|
|
5022
5189
|
"%s: Function components do not support getDerivedStateFromProps.",
|
|
5023
|
-
|
|
5190
|
+
_componentName2
|
|
5024
5191
|
),
|
|
5025
|
-
(didWarnAboutGetDerivedStateOnFunctionComponent[
|
|
5026
|
-
|
|
5027
|
-
] = !0));
|
|
5192
|
+
(didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] =
|
|
5193
|
+
!0));
|
|
5028
5194
|
}
|
|
5029
5195
|
if (
|
|
5030
5196
|
"object" === typeof type.contextType &&
|
|
5031
5197
|
null !== type.contextType
|
|
5032
5198
|
) {
|
|
5033
|
-
var
|
|
5034
|
-
didWarnAboutContextTypeOnFunctionComponent[
|
|
5035
|
-
(error
|
|
5199
|
+
var _componentName3 = getComponentNameFromType(type) || "Unknown";
|
|
5200
|
+
didWarnAboutContextTypeOnFunctionComponent[_componentName3] ||
|
|
5201
|
+
(console.error(
|
|
5036
5202
|
"%s: Function components do not support contextType.",
|
|
5037
|
-
|
|
5203
|
+
_componentName3
|
|
5038
5204
|
),
|
|
5039
|
-
(didWarnAboutContextTypeOnFunctionComponent[
|
|
5205
|
+
(didWarnAboutContextTypeOnFunctionComponent[_componentName3] =
|
|
5040
5206
|
!0));
|
|
5041
5207
|
}
|
|
5042
5208
|
finishFunctionComponent(
|
|
@@ -5048,11 +5214,8 @@
|
|
|
5048
5214
|
actionStateCount,
|
|
5049
5215
|
actionStateMatchingIndex$jscomp$0
|
|
5050
5216
|
);
|
|
5051
|
-
task.componentStack = previousComponentStack$jscomp$0;
|
|
5052
5217
|
}
|
|
5053
5218
|
else if ("string" === typeof type) {
|
|
5054
|
-
var previousComponentStack$jscomp$1 = task.componentStack;
|
|
5055
|
-
task.componentStack = createBuiltInComponentStack(task, type);
|
|
5056
5219
|
var segment = task.blockedSegment;
|
|
5057
5220
|
if (null === segment) {
|
|
5058
5221
|
var children = props.children,
|
|
@@ -5122,7 +5285,6 @@
|
|
|
5122
5285
|
}
|
|
5123
5286
|
segment.lastPushedText = !1;
|
|
5124
5287
|
}
|
|
5125
|
-
task.componentStack = previousComponentStack$jscomp$1;
|
|
5126
5288
|
} else {
|
|
5127
5289
|
switch (type) {
|
|
5128
5290
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
@@ -5144,16 +5306,10 @@
|
|
|
5144
5306
|
}
|
|
5145
5307
|
return;
|
|
5146
5308
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
5147
|
-
var preiousComponentStack = task.componentStack;
|
|
5148
|
-
task.componentStack = createBuiltInComponentStack(
|
|
5149
|
-
task,
|
|
5150
|
-
"SuspenseList"
|
|
5151
|
-
);
|
|
5152
5309
|
var _prevKeyPath3 = task.keyPath;
|
|
5153
5310
|
task.keyPath = keyPath;
|
|
5154
5311
|
renderNodeDestructive(request, task, props.children, -1);
|
|
5155
5312
|
task.keyPath = _prevKeyPath3;
|
|
5156
|
-
task.componentStack = preiousComponentStack;
|
|
5157
5313
|
return;
|
|
5158
5314
|
case REACT_SCOPE_TYPE:
|
|
5159
5315
|
throw Error(
|
|
@@ -5170,10 +5326,7 @@
|
|
|
5170
5326
|
task.keyPath = _prevKeyPath;
|
|
5171
5327
|
}
|
|
5172
5328
|
} else {
|
|
5173
|
-
var
|
|
5174
|
-
suspenseComponentStack = (task.componentStack =
|
|
5175
|
-
createBuiltInComponentStack(task, "Suspense")),
|
|
5176
|
-
prevKeyPath$jscomp$3 = task.keyPath,
|
|
5329
|
+
var prevKeyPath$jscomp$3 = task.keyPath,
|
|
5177
5330
|
parentBoundary = task.blockedBoundary,
|
|
5178
5331
|
parentHoistableState = task.hoistableState,
|
|
5179
5332
|
parentSegment = task.blockedSegment,
|
|
@@ -5202,101 +5355,131 @@
|
|
|
5202
5355
|
!1
|
|
5203
5356
|
);
|
|
5204
5357
|
contentRootSegment.parentFlushed = !0;
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5358
|
+
if (null !== request.trackedPostpones) {
|
|
5359
|
+
var fallbackKeyPath = [
|
|
5360
|
+
keyPath[0],
|
|
5361
|
+
"Suspense Fallback",
|
|
5362
|
+
keyPath[2]
|
|
5363
|
+
],
|
|
5364
|
+
fallbackReplayNode = [
|
|
5365
|
+
fallbackKeyPath[1],
|
|
5366
|
+
fallbackKeyPath[2],
|
|
5367
|
+
[],
|
|
5368
|
+
null
|
|
5369
|
+
];
|
|
5370
|
+
request.trackedPostpones.workingMap.set(
|
|
5371
|
+
fallbackKeyPath,
|
|
5372
|
+
fallbackReplayNode
|
|
5373
|
+
);
|
|
5374
|
+
newBoundary.trackedFallbackNode = fallbackReplayNode;
|
|
5375
|
+
task.blockedSegment = boundarySegment;
|
|
5376
|
+
task.keyPath = fallbackKeyPath;
|
|
5377
|
+
boundarySegment.status = 6;
|
|
5378
|
+
try {
|
|
5379
|
+
renderNode(request, task, fallback, -1),
|
|
5380
|
+
boundarySegment.lastPushedText &&
|
|
5381
|
+
boundarySegment.textEmbedded &&
|
|
5382
|
+
boundarySegment.chunks.push(textSeparator),
|
|
5383
|
+
(boundarySegment.status = COMPLETED);
|
|
5384
|
+
} catch (thrownValue) {
|
|
5385
|
+
throw (
|
|
5386
|
+
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
|
5387
|
+
thrownValue)
|
|
5388
|
+
);
|
|
5389
|
+
} finally {
|
|
5390
|
+
(task.blockedSegment = parentSegment),
|
|
5391
|
+
(task.keyPath = prevKeyPath$jscomp$3);
|
|
5223
5392
|
}
|
|
5224
|
-
|
|
5225
|
-
contentRootSegment.status = 4;
|
|
5226
|
-
newBoundary.status = CLIENT_RENDERED;
|
|
5227
|
-
var thrownInfo = getThrownInfo(request, task.componentStack);
|
|
5228
|
-
var errorDigest = logRecoverableError(
|
|
5393
|
+
var suspendedPrimaryTask = createRenderTask(
|
|
5229
5394
|
request,
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
encodeErrorForBoundary(
|
|
5395
|
+
null,
|
|
5396
|
+
content,
|
|
5397
|
+
-1,
|
|
5234
5398
|
newBoundary,
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5399
|
+
contentRootSegment,
|
|
5400
|
+
newBoundary.contentState,
|
|
5401
|
+
task.abortSet,
|
|
5402
|
+
keyPath,
|
|
5403
|
+
task.formatContext,
|
|
5404
|
+
task.context,
|
|
5405
|
+
task.treeContext,
|
|
5406
|
+
task.componentStack,
|
|
5407
|
+
task.isFallback
|
|
5239
5408
|
);
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5409
|
+
pushComponentStack(suspendedPrimaryTask);
|
|
5410
|
+
request.pingedTasks.push(suspendedPrimaryTask);
|
|
5411
|
+
} else {
|
|
5412
|
+
task.blockedBoundary = newBoundary;
|
|
5413
|
+
task.hoistableState = newBoundary.contentState;
|
|
5414
|
+
task.blockedSegment = contentRootSegment;
|
|
5415
|
+
task.keyPath = keyPath;
|
|
5416
|
+
contentRootSegment.status = 6;
|
|
5417
|
+
try {
|
|
5418
|
+
if (
|
|
5419
|
+
(renderNode(request, task, content, -1),
|
|
5420
|
+
contentRootSegment.lastPushedText &&
|
|
5421
|
+
contentRootSegment.textEmbedded &&
|
|
5422
|
+
contentRootSegment.chunks.push(textSeparator),
|
|
5423
|
+
(contentRootSegment.status = COMPLETED),
|
|
5424
|
+
queueCompletedSegment(newBoundary, contentRootSegment),
|
|
5425
|
+
0 === newBoundary.pendingTasks &&
|
|
5426
|
+
newBoundary.status === PENDING)
|
|
5427
|
+
) {
|
|
5428
|
+
newBoundary.status = COMPLETED;
|
|
5429
|
+
break a;
|
|
5430
|
+
}
|
|
5431
|
+
} catch (thrownValue$2) {
|
|
5432
|
+
newBoundary.status = CLIENT_RENDERED;
|
|
5433
|
+
if (12 === request.status) {
|
|
5434
|
+
contentRootSegment.status = 3;
|
|
5435
|
+
var error = request.fatalError;
|
|
5436
|
+
} else
|
|
5437
|
+
(contentRootSegment.status = 4), (error = thrownValue$2);
|
|
5438
|
+
var thrownInfo = getThrownInfo(task.componentStack);
|
|
5439
|
+
var errorDigest = logRecoverableError(
|
|
5440
|
+
request,
|
|
5441
|
+
error,
|
|
5442
|
+
thrownInfo
|
|
5443
|
+
);
|
|
5444
|
+
encodeErrorForBoundary(
|
|
5445
|
+
newBoundary,
|
|
5446
|
+
errorDigest,
|
|
5447
|
+
error,
|
|
5448
|
+
thrownInfo,
|
|
5449
|
+
!1
|
|
5450
|
+
);
|
|
5451
|
+
untrackBoundary(request, newBoundary);
|
|
5452
|
+
} finally {
|
|
5453
|
+
(task.blockedBoundary = parentBoundary),
|
|
5454
|
+
(task.hoistableState = parentHoistableState),
|
|
5455
|
+
(task.blockedSegment = parentSegment),
|
|
5456
|
+
(task.keyPath = prevKeyPath$jscomp$3);
|
|
5457
|
+
}
|
|
5458
|
+
var suspendedFallbackTask = createRenderTask(
|
|
5459
|
+
request,
|
|
5460
|
+
null,
|
|
5461
|
+
fallback,
|
|
5462
|
+
-1,
|
|
5463
|
+
parentBoundary,
|
|
5464
|
+
boundarySegment,
|
|
5465
|
+
newBoundary.fallbackState,
|
|
5466
|
+
fallbackAbortSet,
|
|
5467
|
+
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
5468
|
+
task.formatContext,
|
|
5469
|
+
task.context,
|
|
5470
|
+
task.treeContext,
|
|
5471
|
+
task.componentStack,
|
|
5472
|
+
!0
|
|
5264
5473
|
);
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
fallbackReplayNode)
|
|
5268
|
-
: (newBoundary.trackedFallbackNode = fallbackReplayNode);
|
|
5474
|
+
pushComponentStack(suspendedFallbackTask);
|
|
5475
|
+
request.pingedTasks.push(suspendedFallbackTask);
|
|
5269
5476
|
}
|
|
5270
|
-
var suspendedFallbackTask = createRenderTask(
|
|
5271
|
-
request,
|
|
5272
|
-
null,
|
|
5273
|
-
fallback,
|
|
5274
|
-
-1,
|
|
5275
|
-
parentBoundary,
|
|
5276
|
-
boundarySegment,
|
|
5277
|
-
newBoundary.fallbackState,
|
|
5278
|
-
fallbackAbortSet,
|
|
5279
|
-
fallbackKeyPath,
|
|
5280
|
-
task.formatContext,
|
|
5281
|
-
task.legacyContext,
|
|
5282
|
-
task.context,
|
|
5283
|
-
task.treeContext,
|
|
5284
|
-
suspenseComponentStack,
|
|
5285
|
-
!0
|
|
5286
|
-
);
|
|
5287
|
-
request.pingedTasks.push(suspendedFallbackTask);
|
|
5288
5477
|
}
|
|
5289
5478
|
return;
|
|
5290
5479
|
}
|
|
5291
5480
|
if ("object" === typeof type && null !== type)
|
|
5292
5481
|
switch (type.$$typeof) {
|
|
5293
5482
|
case REACT_FORWARD_REF_TYPE:
|
|
5294
|
-
var previousComponentStack$jscomp$3 = task.componentStack;
|
|
5295
|
-
task.componentStack = {
|
|
5296
|
-
tag: 1,
|
|
5297
|
-
parent: task.componentStack,
|
|
5298
|
-
type: type.render
|
|
5299
|
-
};
|
|
5300
5483
|
if ("ref" in props) {
|
|
5301
5484
|
var propsWithoutRef = {};
|
|
5302
5485
|
for (var key in props)
|
|
@@ -5319,7 +5502,6 @@
|
|
|
5319
5502
|
actionStateCounter,
|
|
5320
5503
|
actionStateMatchingIndex
|
|
5321
5504
|
);
|
|
5322
|
-
task.componentStack = previousComponentStack$jscomp$3;
|
|
5323
5505
|
return;
|
|
5324
5506
|
case REACT_MEMO_TYPE:
|
|
5325
5507
|
renderElement(request, task, keyPath, type.type, props, ref);
|
|
@@ -5335,7 +5517,7 @@
|
|
|
5335
5517
|
void 0 !== type._currentRenderer &&
|
|
5336
5518
|
null !== type._currentRenderer &&
|
|
5337
5519
|
type._currentRenderer !== rendererSigil &&
|
|
5338
|
-
error
|
|
5520
|
+
console.error(
|
|
5339
5521
|
"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
|
|
5340
5522
|
);
|
|
5341
5523
|
type._currentRenderer = rendererSigil;
|
|
@@ -5357,7 +5539,7 @@
|
|
|
5357
5539
|
"Tried to pop a Context at the root of the app. This is a bug in React."
|
|
5358
5540
|
);
|
|
5359
5541
|
prevSnapshot$jscomp$0.context !== type &&
|
|
5360
|
-
error
|
|
5542
|
+
console.error(
|
|
5361
5543
|
"The parent context is not the expected context. This is probably a bug in React."
|
|
5362
5544
|
);
|
|
5363
5545
|
prevSnapshot$jscomp$0.context._currentValue =
|
|
@@ -5365,7 +5547,7 @@
|
|
|
5365
5547
|
void 0 !== type._currentRenderer &&
|
|
5366
5548
|
null !== type._currentRenderer &&
|
|
5367
5549
|
type._currentRenderer !== rendererSigil &&
|
|
5368
|
-
error
|
|
5550
|
+
console.error(
|
|
5369
5551
|
"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
|
|
5370
5552
|
);
|
|
5371
5553
|
type._currentRenderer = rendererSigil;
|
|
@@ -5374,7 +5556,7 @@
|
|
|
5374
5556
|
task.context = JSCompiler_inline_result$jscomp$0;
|
|
5375
5557
|
task.keyPath = prevKeyPath$jscomp$4;
|
|
5376
5558
|
prevSnapshot !== task.context &&
|
|
5377
|
-
error
|
|
5559
|
+
console.error(
|
|
5378
5560
|
"Popping the context provider did not return back to the original snapshot. This is a bug in React."
|
|
5379
5561
|
);
|
|
5380
5562
|
return;
|
|
@@ -5382,7 +5564,7 @@
|
|
|
5382
5564
|
var context$jscomp$0 = type._context,
|
|
5383
5565
|
render = props.children;
|
|
5384
5566
|
"function" !== typeof render &&
|
|
5385
|
-
error
|
|
5567
|
+
console.error(
|
|
5386
5568
|
"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."
|
|
5387
5569
|
);
|
|
5388
5570
|
var newChildren = render(context$jscomp$0._currentValue),
|
|
@@ -5392,12 +5574,9 @@
|
|
|
5392
5574
|
task.keyPath = prevKeyPath$jscomp$5;
|
|
5393
5575
|
return;
|
|
5394
5576
|
case REACT_LAZY_TYPE:
|
|
5395
|
-
var
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
Component = init(type._payload);
|
|
5399
|
-
renderElement(request, task, keyPath, Component, props, void 0);
|
|
5400
|
-
task.componentStack = previousComponentStack$jscomp$4;
|
|
5577
|
+
var Component = callLazyInitInDEV(type);
|
|
5578
|
+
if (12 === request.status) throw null;
|
|
5579
|
+
renderElement(request, task, keyPath, Component, props, ref);
|
|
5401
5580
|
return;
|
|
5402
5581
|
}
|
|
5403
5582
|
var info = "";
|
|
@@ -5442,56 +5621,123 @@
|
|
|
5442
5621
|
(task.replay = prevReplay), (task.blockedSegment = null);
|
|
5443
5622
|
}
|
|
5444
5623
|
}
|
|
5445
|
-
function renderNodeDestructive(request, task, node
|
|
5446
|
-
|
|
5447
|
-
resumeNode(request, task, task.replay.slots, node
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5624
|
+
function renderNodeDestructive(request, task, node, childIndex) {
|
|
5625
|
+
null !== task.replay && "number" === typeof task.replay.slots
|
|
5626
|
+
? resumeNode(request, task, task.replay.slots, node, childIndex)
|
|
5627
|
+
: ((task.node = node),
|
|
5628
|
+
(task.childIndex = childIndex),
|
|
5629
|
+
(node = task.componentStack),
|
|
5630
|
+
pushComponentStack(task),
|
|
5631
|
+
retryNode(request, task),
|
|
5632
|
+
(task.componentStack = node));
|
|
5633
|
+
}
|
|
5634
|
+
function retryNode(request, task) {
|
|
5635
|
+
var node = task.node,
|
|
5636
|
+
childIndex = task.childIndex;
|
|
5637
|
+
if (null !== node) {
|
|
5638
|
+
if ("object" === typeof node) {
|
|
5639
|
+
switch (node.$$typeof) {
|
|
5455
5640
|
case REACT_ELEMENT_TYPE:
|
|
5456
|
-
var type = node
|
|
5457
|
-
key = node
|
|
5458
|
-
props = node
|
|
5459
|
-
node
|
|
5460
|
-
var ref = void 0 !== node
|
|
5461
|
-
|
|
5641
|
+
var type = node.type,
|
|
5642
|
+
key = node.key,
|
|
5643
|
+
props = node.props;
|
|
5644
|
+
node = props.ref;
|
|
5645
|
+
var ref = void 0 !== node ? node : null,
|
|
5646
|
+
name = getComponentNameFromType(type),
|
|
5462
5647
|
keyOrIndex =
|
|
5463
|
-
null == key ? (-1 === childIndex ? 0 : childIndex) : key
|
|
5464
|
-
|
|
5465
|
-
if (null !== task.replay)
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5648
|
+
null == key ? (-1 === childIndex ? 0 : childIndex) : key,
|
|
5649
|
+
keyPath = [task.keyPath, name, keyOrIndex];
|
|
5650
|
+
if (null !== task.replay) {
|
|
5651
|
+
var replay = task.replay;
|
|
5652
|
+
childIndex = replay.nodes;
|
|
5653
|
+
for (node = 0; node < childIndex.length; node++)
|
|
5654
|
+
if (((key = childIndex[node]), keyOrIndex === key[1])) {
|
|
5655
|
+
if (4 === key.length) {
|
|
5656
|
+
if (null !== name && name !== key[0])
|
|
5657
|
+
throw Error(
|
|
5658
|
+
"Expected the resume to render <" +
|
|
5659
|
+
key[0] +
|
|
5660
|
+
"> in this slot but instead it rendered <" +
|
|
5661
|
+
name +
|
|
5662
|
+
">. The tree doesn't match so React will fallback to client rendering."
|
|
5663
|
+
);
|
|
5664
|
+
var childNodes = key[2];
|
|
5665
|
+
key = key[3];
|
|
5666
|
+
name = task.node;
|
|
5667
|
+
task.replay = {
|
|
5668
|
+
nodes: childNodes,
|
|
5669
|
+
slots: key,
|
|
5670
|
+
pendingTasks: 1
|
|
5671
|
+
};
|
|
5672
|
+
try {
|
|
5673
|
+
renderElement(request, task, keyPath, type, props, ref);
|
|
5674
|
+
if (
|
|
5675
|
+
1 === task.replay.pendingTasks &&
|
|
5676
|
+
0 < task.replay.nodes.length
|
|
5677
|
+
)
|
|
5478
5678
|
throw Error(
|
|
5479
|
-
"
|
|
5480
|
-
node[0] +
|
|
5481
|
-
"> in this slot but instead it rendered <" +
|
|
5482
|
-
name +
|
|
5483
|
-
">. The tree doesn't match so React will fallback to client rendering."
|
|
5679
|
+
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
|
5484
5680
|
);
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5681
|
+
task.replay.pendingTasks--;
|
|
5682
|
+
} catch (x) {
|
|
5683
|
+
if (
|
|
5684
|
+
"object" === typeof x &&
|
|
5685
|
+
null !== x &&
|
|
5686
|
+
(x === SuspenseException ||
|
|
5687
|
+
"function" === typeof x.then)
|
|
5688
|
+
)
|
|
5689
|
+
throw (
|
|
5690
|
+
(task.node === name && (task.replay = replay), x)
|
|
5691
|
+
);
|
|
5692
|
+
task.replay.pendingTasks--;
|
|
5693
|
+
props = getThrownInfo(task.componentStack);
|
|
5694
|
+
erroredReplay(
|
|
5695
|
+
request,
|
|
5696
|
+
task.blockedBoundary,
|
|
5697
|
+
x,
|
|
5698
|
+
props,
|
|
5699
|
+
childNodes,
|
|
5700
|
+
key
|
|
5701
|
+
);
|
|
5702
|
+
}
|
|
5703
|
+
task.replay = replay;
|
|
5704
|
+
} else {
|
|
5705
|
+
if (type !== REACT_SUSPENSE_TYPE)
|
|
5706
|
+
throw Error(
|
|
5707
|
+
"Expected the resume to render <Suspense> in this slot but instead it rendered <" +
|
|
5708
|
+
(getComponentNameFromType(type) || "Unknown") +
|
|
5709
|
+
">. The tree doesn't match so React will fallback to client rendering."
|
|
5710
|
+
);
|
|
5711
|
+
a: {
|
|
5712
|
+
type = void 0;
|
|
5713
|
+
ref = key[5];
|
|
5714
|
+
replay = key[2];
|
|
5715
|
+
name = key[3];
|
|
5716
|
+
keyOrIndex = null === key[4] ? [] : key[4][2];
|
|
5717
|
+
key = null === key[4] ? null : key[4][3];
|
|
5718
|
+
var prevKeyPath = task.keyPath,
|
|
5719
|
+
previousReplaySet = task.replay,
|
|
5720
|
+
parentBoundary = task.blockedBoundary,
|
|
5721
|
+
parentHoistableState = task.hoistableState,
|
|
5722
|
+
content = props.children;
|
|
5723
|
+
props = props.fallback;
|
|
5724
|
+
var fallbackAbortSet = new Set(),
|
|
5725
|
+
resumedBoundary = createSuspenseBoundary(
|
|
5726
|
+
request,
|
|
5727
|
+
fallbackAbortSet
|
|
5728
|
+
);
|
|
5729
|
+
resumedBoundary.parentFlushed = !0;
|
|
5730
|
+
resumedBoundary.rootSegmentID = ref;
|
|
5731
|
+
task.blockedBoundary = resumedBoundary;
|
|
5732
|
+
task.hoistableState = resumedBoundary.contentState;
|
|
5733
|
+
task.keyPath = keyPath;
|
|
5488
5734
|
task.replay = {
|
|
5489
|
-
nodes:
|
|
5735
|
+
nodes: replay,
|
|
5490
5736
|
slots: name,
|
|
5491
5737
|
pendingTasks: 1
|
|
5492
5738
|
};
|
|
5493
5739
|
try {
|
|
5494
|
-
|
|
5740
|
+
renderNode(request, task, content, -1);
|
|
5495
5741
|
if (
|
|
5496
5742
|
1 === task.replay.pendingTasks &&
|
|
5497
5743
|
0 < task.replay.nodes.length
|
|
@@ -5500,262 +5746,178 @@
|
|
|
5500
5746
|
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
|
5501
5747
|
);
|
|
5502
5748
|
task.replay.pendingTasks--;
|
|
5503
|
-
} catch (x) {
|
|
5504
5749
|
if (
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
request,
|
|
5517
|
-
task.blockedBoundary,
|
|
5518
|
-
x,
|
|
5519
|
-
type,
|
|
5520
|
-
childNodes,
|
|
5521
|
-
name
|
|
5522
|
-
);
|
|
5523
|
-
}
|
|
5524
|
-
task.replay = replay;
|
|
5525
|
-
} else {
|
|
5526
|
-
if (type !== REACT_SUSPENSE_TYPE)
|
|
5527
|
-
throw Error(
|
|
5528
|
-
"Expected the resume to render <Suspense> in this slot but instead it rendered <" +
|
|
5529
|
-
(getComponentNameFromType(type) || "Unknown") +
|
|
5530
|
-
">. The tree doesn't match so React will fallback to client rendering."
|
|
5531
|
-
);
|
|
5532
|
-
b: {
|
|
5533
|
-
type = void 0;
|
|
5534
|
-
var props$jscomp$0 = props;
|
|
5535
|
-
props = node[5];
|
|
5536
|
-
ref = node[2];
|
|
5537
|
-
replay = node[3];
|
|
5538
|
-
name = null === node[4] ? [] : node[4][2];
|
|
5539
|
-
node = null === node[4] ? null : node[4][3];
|
|
5540
|
-
keyOrIndex = task.componentStack;
|
|
5541
|
-
var suspenseComponentStack = (task.componentStack =
|
|
5542
|
-
createBuiltInComponentStack(task, "Suspense")),
|
|
5543
|
-
prevKeyPath = task.keyPath,
|
|
5544
|
-
previousReplaySet = task.replay,
|
|
5545
|
-
parentBoundary = task.blockedBoundary,
|
|
5546
|
-
parentHoistableState = task.hoistableState,
|
|
5547
|
-
content = props$jscomp$0.children;
|
|
5548
|
-
props$jscomp$0 = props$jscomp$0.fallback;
|
|
5549
|
-
var fallbackAbortSet = new Set(),
|
|
5550
|
-
resumedBoundary = createSuspenseBoundary(
|
|
5750
|
+
0 === resumedBoundary.pendingTasks &&
|
|
5751
|
+
resumedBoundary.status === PENDING
|
|
5752
|
+
) {
|
|
5753
|
+
resumedBoundary.status = COMPLETED;
|
|
5754
|
+
request.completedBoundaries.push(resumedBoundary);
|
|
5755
|
+
break a;
|
|
5756
|
+
}
|
|
5757
|
+
} catch (error) {
|
|
5758
|
+
(resumedBoundary.status = CLIENT_RENDERED),
|
|
5759
|
+
(childNodes = getThrownInfo(task.componentStack)),
|
|
5760
|
+
(type = logRecoverableError(
|
|
5551
5761
|
request,
|
|
5552
|
-
|
|
5762
|
+
error,
|
|
5763
|
+
childNodes
|
|
5764
|
+
)),
|
|
5765
|
+
encodeErrorForBoundary(
|
|
5766
|
+
resumedBoundary,
|
|
5767
|
+
type,
|
|
5768
|
+
error,
|
|
5769
|
+
childNodes,
|
|
5770
|
+
!1
|
|
5771
|
+
),
|
|
5772
|
+
task.replay.pendingTasks--,
|
|
5773
|
+
request.clientRenderedBoundaries.push(
|
|
5774
|
+
resumedBoundary
|
|
5553
5775
|
);
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
nodes: ref,
|
|
5560
|
-
slots: replay,
|
|
5561
|
-
pendingTasks: 1
|
|
5562
|
-
};
|
|
5563
|
-
try {
|
|
5564
|
-
renderNode(request, task, content, -1);
|
|
5565
|
-
if (
|
|
5566
|
-
1 === task.replay.pendingTasks &&
|
|
5567
|
-
0 < task.replay.nodes.length
|
|
5568
|
-
)
|
|
5569
|
-
throw Error(
|
|
5570
|
-
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
|
5571
|
-
);
|
|
5572
|
-
task.replay.pendingTasks--;
|
|
5573
|
-
if (
|
|
5574
|
-
0 === resumedBoundary.pendingTasks &&
|
|
5575
|
-
resumedBoundary.status === PENDING
|
|
5576
|
-
) {
|
|
5577
|
-
resumedBoundary.status = COMPLETED;
|
|
5578
|
-
request.completedBoundaries.push(resumedBoundary);
|
|
5579
|
-
break b;
|
|
5580
|
-
}
|
|
5581
|
-
} catch (error$3) {
|
|
5582
|
-
(resumedBoundary.status = CLIENT_RENDERED),
|
|
5583
|
-
(childNodes = getThrownInfo(
|
|
5584
|
-
request,
|
|
5585
|
-
task.componentStack
|
|
5586
|
-
)),
|
|
5587
|
-
(type = logRecoverableError(
|
|
5588
|
-
request,
|
|
5589
|
-
error$3,
|
|
5590
|
-
childNodes
|
|
5591
|
-
)),
|
|
5592
|
-
encodeErrorForBoundary(
|
|
5593
|
-
resumedBoundary,
|
|
5594
|
-
type,
|
|
5595
|
-
error$3,
|
|
5596
|
-
childNodes,
|
|
5597
|
-
!1
|
|
5598
|
-
),
|
|
5599
|
-
task.replay.pendingTasks--,
|
|
5600
|
-
request.clientRenderedBoundaries.push(
|
|
5601
|
-
resumedBoundary
|
|
5602
|
-
);
|
|
5603
|
-
} finally {
|
|
5604
|
-
(task.blockedBoundary = parentBoundary),
|
|
5605
|
-
(task.hoistableState = parentHoistableState),
|
|
5606
|
-
(task.replay = previousReplaySet),
|
|
5607
|
-
(task.keyPath = prevKeyPath),
|
|
5608
|
-
(task.componentStack = keyOrIndex);
|
|
5609
|
-
}
|
|
5610
|
-
childNodes = createReplayTask(
|
|
5611
|
-
request,
|
|
5612
|
-
null,
|
|
5613
|
-
{ nodes: name, slots: node, pendingTasks: 0 },
|
|
5614
|
-
props$jscomp$0,
|
|
5615
|
-
-1,
|
|
5616
|
-
parentBoundary,
|
|
5617
|
-
resumedBoundary.fallbackState,
|
|
5618
|
-
fallbackAbortSet,
|
|
5619
|
-
[key[0], "Suspense Fallback", key[2]],
|
|
5620
|
-
task.formatContext,
|
|
5621
|
-
task.legacyContext,
|
|
5622
|
-
task.context,
|
|
5623
|
-
task.treeContext,
|
|
5624
|
-
suspenseComponentStack,
|
|
5625
|
-
!0
|
|
5626
|
-
);
|
|
5627
|
-
request.pingedTasks.push(childNodes);
|
|
5776
|
+
} finally {
|
|
5777
|
+
(task.blockedBoundary = parentBoundary),
|
|
5778
|
+
(task.hoistableState = parentHoistableState),
|
|
5779
|
+
(task.replay = previousReplaySet),
|
|
5780
|
+
(task.keyPath = prevKeyPath);
|
|
5628
5781
|
}
|
|
5782
|
+
childNodes = createReplayTask(
|
|
5783
|
+
request,
|
|
5784
|
+
null,
|
|
5785
|
+
{ nodes: keyOrIndex, slots: key, pendingTasks: 0 },
|
|
5786
|
+
props,
|
|
5787
|
+
-1,
|
|
5788
|
+
parentBoundary,
|
|
5789
|
+
resumedBoundary.fallbackState,
|
|
5790
|
+
fallbackAbortSet,
|
|
5791
|
+
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
5792
|
+
task.formatContext,
|
|
5793
|
+
task.context,
|
|
5794
|
+
task.treeContext,
|
|
5795
|
+
task.componentStack,
|
|
5796
|
+
!0
|
|
5797
|
+
);
|
|
5798
|
+
pushComponentStack(childNodes);
|
|
5799
|
+
request.pingedTasks.push(childNodes);
|
|
5629
5800
|
}
|
|
5630
|
-
childIndex.splice(node$jscomp$0, 1);
|
|
5631
|
-
break a;
|
|
5632
5801
|
}
|
|
5802
|
+
childIndex.splice(node, 1);
|
|
5803
|
+
break;
|
|
5633
5804
|
}
|
|
5634
|
-
|
|
5635
|
-
else renderElement(request, task, key, type, props, ref);
|
|
5805
|
+
} else renderElement(request, task, keyPath, type, props, ref);
|
|
5636
5806
|
return;
|
|
5637
5807
|
case REACT_PORTAL_TYPE:
|
|
5638
5808
|
throw Error(
|
|
5639
5809
|
"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
|
|
5640
5810
|
);
|
|
5641
5811
|
case REACT_LAZY_TYPE:
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
node$jscomp$0 = type(node$jscomp$0._payload);
|
|
5646
|
-
task.componentStack = childNodes;
|
|
5647
|
-
renderNodeDestructive(request, task, node$jscomp$0, childIndex);
|
|
5812
|
+
node = callLazyInitInDEV(node);
|
|
5813
|
+
if (12 === request.status) throw null;
|
|
5814
|
+
renderNodeDestructive(request, task, node, childIndex);
|
|
5648
5815
|
return;
|
|
5649
5816
|
}
|
|
5650
|
-
if (isArrayImpl(node
|
|
5651
|
-
renderChildrenArray(request, task, node
|
|
5817
|
+
if (isArrayImpl(node)) {
|
|
5818
|
+
renderChildrenArray(request, task, node, childIndex);
|
|
5652
5819
|
return;
|
|
5653
5820
|
}
|
|
5654
|
-
null === node
|
|
5655
|
-
? (
|
|
5821
|
+
null === node || "object" !== typeof node
|
|
5822
|
+
? (props = null)
|
|
5656
5823
|
: ((childNodes =
|
|
5657
|
-
(MAYBE_ITERATOR_SYMBOL &&
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
if (childNodes === node$jscomp$0) {
|
|
5824
|
+
(MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
|
|
5825
|
+
node["@@iterator"]),
|
|
5826
|
+
(props = "function" === typeof childNodes ? childNodes : null));
|
|
5827
|
+
if (props && (childNodes = props.call(node))) {
|
|
5828
|
+
if (childNodes === node) {
|
|
5663
5829
|
if (
|
|
5664
5830
|
-1 !== childIndex ||
|
|
5665
5831
|
null === task.componentStack ||
|
|
5666
|
-
|
|
5832
|
+
"function" !== typeof task.componentStack.type ||
|
|
5667
5833
|
"[object GeneratorFunction]" !==
|
|
5668
5834
|
Object.prototype.toString.call(task.componentStack.type) ||
|
|
5669
5835
|
"[object Generator]" !==
|
|
5670
5836
|
Object.prototype.toString.call(childNodes)
|
|
5671
5837
|
)
|
|
5672
5838
|
didWarnAboutGenerators ||
|
|
5673
|
-
error
|
|
5839
|
+
console.error(
|
|
5674
5840
|
"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
|
|
5675
5841
|
),
|
|
5676
5842
|
(didWarnAboutGenerators = !0);
|
|
5677
5843
|
} else
|
|
5678
|
-
node
|
|
5844
|
+
node.entries !== props ||
|
|
5679
5845
|
didWarnAboutMaps ||
|
|
5680
|
-
(error
|
|
5846
|
+
(console.error(
|
|
5681
5847
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
5682
5848
|
),
|
|
5683
5849
|
(didWarnAboutMaps = !0));
|
|
5684
|
-
node
|
|
5685
|
-
if (!node
|
|
5686
|
-
|
|
5687
|
-
do
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
while (!node$jscomp$0.done);
|
|
5691
|
-
renderChildrenArray(request, task, type, childIndex);
|
|
5850
|
+
node = childNodes.next();
|
|
5851
|
+
if (!node.done) {
|
|
5852
|
+
props = [];
|
|
5853
|
+
do props.push(node.value), (node = childNodes.next());
|
|
5854
|
+
while (!node.done);
|
|
5855
|
+
renderChildrenArray(request, task, props, childIndex);
|
|
5692
5856
|
}
|
|
5693
5857
|
return;
|
|
5694
5858
|
}
|
|
5695
|
-
if ("function" === typeof node
|
|
5859
|
+
if ("function" === typeof node.then)
|
|
5696
5860
|
return (
|
|
5697
5861
|
(task.thenableState = null),
|
|
5698
5862
|
renderNodeDestructive(
|
|
5699
5863
|
request,
|
|
5700
5864
|
task,
|
|
5701
|
-
unwrapThenable(node
|
|
5865
|
+
unwrapThenable(node),
|
|
5702
5866
|
childIndex
|
|
5703
5867
|
)
|
|
5704
5868
|
);
|
|
5705
|
-
if (node
|
|
5869
|
+
if (node.$$typeof === REACT_CONTEXT_TYPE)
|
|
5706
5870
|
return renderNodeDestructive(
|
|
5707
5871
|
request,
|
|
5708
5872
|
task,
|
|
5709
|
-
node
|
|
5873
|
+
node._currentValue,
|
|
5710
5874
|
childIndex
|
|
5711
5875
|
);
|
|
5712
|
-
childIndex = Object.prototype.toString.call(node
|
|
5876
|
+
childIndex = Object.prototype.toString.call(node);
|
|
5713
5877
|
throw Error(
|
|
5714
5878
|
"Objects are not valid as a React child (found: " +
|
|
5715
5879
|
("[object Object]" === childIndex
|
|
5716
|
-
? "object with keys {" +
|
|
5717
|
-
Object.keys(node$jscomp$0).join(", ") +
|
|
5718
|
-
"}"
|
|
5880
|
+
? "object with keys {" + Object.keys(node).join(", ") + "}"
|
|
5719
5881
|
: childIndex) +
|
|
5720
5882
|
"). If you meant to render a collection of children, use an array instead."
|
|
5721
5883
|
);
|
|
5722
5884
|
}
|
|
5723
|
-
"string" === typeof node
|
|
5724
|
-
? ((childIndex = task.blockedSegment),
|
|
5725
|
-
null !== childIndex &&
|
|
5726
|
-
(childIndex.lastPushedText = pushTextInstance(
|
|
5727
|
-
childIndex.chunks,
|
|
5728
|
-
node$jscomp$0,
|
|
5729
|
-
request.renderState,
|
|
5730
|
-
childIndex.lastPushedText
|
|
5731
|
-
)))
|
|
5732
|
-
: "number" === typeof node$jscomp$0 ||
|
|
5733
|
-
"bigint" === typeof node$jscomp$0
|
|
5885
|
+
"string" === typeof node
|
|
5734
5886
|
? ((childIndex = task.blockedSegment),
|
|
5735
5887
|
null !== childIndex &&
|
|
5736
5888
|
(childIndex.lastPushedText = pushTextInstance(
|
|
5737
5889
|
childIndex.chunks,
|
|
5738
|
-
|
|
5890
|
+
node,
|
|
5739
5891
|
request.renderState,
|
|
5740
5892
|
childIndex.lastPushedText
|
|
5741
5893
|
)))
|
|
5742
|
-
:
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5894
|
+
: "number" === typeof node || "bigint" === typeof node
|
|
5895
|
+
? ((childIndex = task.blockedSegment),
|
|
5896
|
+
null !== childIndex &&
|
|
5897
|
+
(childIndex.lastPushedText = pushTextInstance(
|
|
5898
|
+
childIndex.chunks,
|
|
5899
|
+
"" + node,
|
|
5900
|
+
request.renderState,
|
|
5901
|
+
childIndex.lastPushedText
|
|
5902
|
+
)))
|
|
5903
|
+
: ("function" === typeof node &&
|
|
5904
|
+
((childIndex = node.displayName || node.name || "Component"),
|
|
5905
|
+
console.error(
|
|
5906
|
+
"Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",
|
|
5907
|
+
childIndex,
|
|
5908
|
+
childIndex
|
|
5909
|
+
)),
|
|
5910
|
+
"symbol" === typeof node &&
|
|
5911
|
+
console.error(
|
|
5912
|
+
"Symbols are not valid as a React child.\n %s",
|
|
5913
|
+
String(node)
|
|
5914
|
+
));
|
|
5755
5915
|
}
|
|
5756
5916
|
}
|
|
5757
5917
|
function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
|
|
5758
|
-
var prevKeyPath = task.keyPath
|
|
5918
|
+
var prevKeyPath = task.keyPath,
|
|
5919
|
+
previousComponentStack = task.componentStack;
|
|
5920
|
+
pushServerComponentStack(task, task.node._debugInfo);
|
|
5759
5921
|
if (
|
|
5760
5922
|
-1 !== childIndex &&
|
|
5761
5923
|
((task.keyPath = [task.keyPath, "Fragment", childIndex]),
|
|
@@ -5789,7 +5951,7 @@
|
|
|
5789
5951
|
)
|
|
5790
5952
|
throw x;
|
|
5791
5953
|
task.replay.pendingTasks--;
|
|
5792
|
-
children = getThrownInfo(
|
|
5954
|
+
children = getThrownInfo(task.componentStack);
|
|
5793
5955
|
erroredReplay(
|
|
5794
5956
|
request$jscomp$0,
|
|
5795
5957
|
task.blockedBoundary,
|
|
@@ -5805,6 +5967,7 @@
|
|
|
5805
5967
|
}
|
|
5806
5968
|
}
|
|
5807
5969
|
task.keyPath = prevKeyPath;
|
|
5970
|
+
task.componentStack = previousComponentStack;
|
|
5808
5971
|
return;
|
|
5809
5972
|
}
|
|
5810
5973
|
replay = task.treeContext;
|
|
@@ -5830,6 +5993,7 @@
|
|
|
5830
5993
|
}
|
|
5831
5994
|
task.treeContext = replay;
|
|
5832
5995
|
task.keyPath = prevKeyPath;
|
|
5996
|
+
task.componentStack = previousComponentStack;
|
|
5833
5997
|
return;
|
|
5834
5998
|
}
|
|
5835
5999
|
for (j = 0; j < replayNodes; j++) {
|
|
@@ -5855,39 +6019,55 @@
|
|
|
5855
6019
|
null == didWarnForKey &&
|
|
5856
6020
|
(didWarnForKey = request.didWarnForKey = new WeakSet());
|
|
5857
6021
|
request = node.componentStack;
|
|
5858
|
-
null
|
|
5859
|
-
didWarnForKey.
|
|
5860
|
-
(
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
6022
|
+
if (null !== request && !didWarnForKey.has(request)) {
|
|
6023
|
+
didWarnForKey.add(request);
|
|
6024
|
+
var componentName = getComponentNameFromType(resumeSegmentID.type);
|
|
6025
|
+
didWarnForKey = resumeSegmentID._owner;
|
|
6026
|
+
var parentOwner = request.owner;
|
|
6027
|
+
request = "";
|
|
6028
|
+
if (parentOwner && "undefined" !== typeof parentOwner.type) {
|
|
6029
|
+
var name = getComponentNameFromType(parentOwner.type);
|
|
6030
|
+
name &&
|
|
6031
|
+
(request = "\n\nCheck the render method of `" + name + "`.");
|
|
6032
|
+
}
|
|
6033
|
+
request ||
|
|
6034
|
+
(componentName &&
|
|
6035
|
+
(request =
|
|
6036
|
+
"\n\nCheck the top-level render call using <" +
|
|
6037
|
+
componentName +
|
|
6038
|
+
">."));
|
|
6039
|
+
componentName = "";
|
|
6040
|
+
null != didWarnForKey &&
|
|
6041
|
+
parentOwner !== didWarnForKey &&
|
|
6042
|
+
((parentOwner = null),
|
|
6043
|
+
"undefined" !== typeof didWarnForKey.type
|
|
6044
|
+
? (parentOwner = getComponentNameFromType(didWarnForKey.type))
|
|
6045
|
+
: "string" === typeof didWarnForKey.name &&
|
|
6046
|
+
(parentOwner = didWarnForKey.name),
|
|
6047
|
+
parentOwner &&
|
|
6048
|
+
(componentName =
|
|
6049
|
+
" It was passed a child from " + parentOwner + "."));
|
|
6050
|
+
didWarnForKey = node.componentStack;
|
|
6051
|
+
node.componentStack = {
|
|
6052
|
+
parent: node.componentStack,
|
|
6053
|
+
type: resumeSegmentID.type,
|
|
6054
|
+
owner: resumeSegmentID._owner,
|
|
6055
|
+
stack: null
|
|
6056
|
+
};
|
|
6057
|
+
console.error(
|
|
5880
6058
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
)
|
|
5884
|
-
|
|
6059
|
+
request,
|
|
6060
|
+
componentName
|
|
6061
|
+
);
|
|
6062
|
+
node.componentStack = didWarnForKey;
|
|
6063
|
+
}
|
|
5885
6064
|
}
|
|
5886
6065
|
task.treeContext = pushTreeContext(replay, replayNodes, j);
|
|
5887
6066
|
renderNode(request$jscomp$0, task, childIndex, j);
|
|
5888
6067
|
}
|
|
5889
6068
|
task.treeContext = replay;
|
|
5890
6069
|
task.keyPath = prevKeyPath;
|
|
6070
|
+
task.componentStack = previousComponentStack;
|
|
5891
6071
|
}
|
|
5892
6072
|
function untrackBoundary(request, boundary) {
|
|
5893
6073
|
request = request.trackedPostpones;
|
|
@@ -5898,9 +6078,55 @@
|
|
|
5898
6078
|
void 0 !== boundary &&
|
|
5899
6079
|
((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
|
|
5900
6080
|
}
|
|
6081
|
+
function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
6082
|
+
return createReplayTask(
|
|
6083
|
+
request,
|
|
6084
|
+
thenableState,
|
|
6085
|
+
task.replay,
|
|
6086
|
+
task.node,
|
|
6087
|
+
task.childIndex,
|
|
6088
|
+
task.blockedBoundary,
|
|
6089
|
+
task.hoistableState,
|
|
6090
|
+
task.abortSet,
|
|
6091
|
+
task.keyPath,
|
|
6092
|
+
task.formatContext,
|
|
6093
|
+
task.context,
|
|
6094
|
+
task.treeContext,
|
|
6095
|
+
task.componentStack,
|
|
6096
|
+
task.isFallback
|
|
6097
|
+
);
|
|
6098
|
+
}
|
|
6099
|
+
function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
|
6100
|
+
var segment = task.blockedSegment,
|
|
6101
|
+
newSegment = createPendingSegment(
|
|
6102
|
+
request,
|
|
6103
|
+
segment.chunks.length,
|
|
6104
|
+
null,
|
|
6105
|
+
task.formatContext,
|
|
6106
|
+
segment.lastPushedText,
|
|
6107
|
+
!0
|
|
6108
|
+
);
|
|
6109
|
+
segment.children.push(newSegment);
|
|
6110
|
+
segment.lastPushedText = !1;
|
|
6111
|
+
return createRenderTask(
|
|
6112
|
+
request,
|
|
6113
|
+
thenableState,
|
|
6114
|
+
task.node,
|
|
6115
|
+
task.childIndex,
|
|
6116
|
+
task.blockedBoundary,
|
|
6117
|
+
newSegment,
|
|
6118
|
+
task.hoistableState,
|
|
6119
|
+
task.abortSet,
|
|
6120
|
+
task.keyPath,
|
|
6121
|
+
task.formatContext,
|
|
6122
|
+
task.context,
|
|
6123
|
+
task.treeContext,
|
|
6124
|
+
task.componentStack,
|
|
6125
|
+
task.isFallback
|
|
6126
|
+
);
|
|
6127
|
+
}
|
|
5901
6128
|
function renderNode(request, task, node, childIndex) {
|
|
5902
6129
|
var previousFormatContext = task.formatContext,
|
|
5903
|
-
previousLegacyContext = task.legacyContext,
|
|
5904
6130
|
previousContext = task.context,
|
|
5905
6131
|
previousKeyPath = task.keyPath,
|
|
5906
6132
|
previousTreeContext = task.treeContext,
|
|
@@ -5916,37 +6142,36 @@
|
|
|
5916
6142
|
thrownValue === SuspenseException
|
|
5917
6143
|
? getSuspendedThenable()
|
|
5918
6144
|
: thrownValue),
|
|
5919
|
-
"object" === typeof node &&
|
|
5920
|
-
null !== node &&
|
|
5921
|
-
"function" === typeof node.then)
|
|
6145
|
+
"object" === typeof node && null !== node)
|
|
5922
6146
|
) {
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
request
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
task.
|
|
5932
|
-
task.
|
|
5933
|
-
task.keyPath
|
|
5934
|
-
task.
|
|
5935
|
-
task.
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
6147
|
+
if ("function" === typeof node.then) {
|
|
6148
|
+
childIndex = getThenableStateAfterSuspending();
|
|
6149
|
+
request = spawnNewSuspendedReplayTask(
|
|
6150
|
+
request,
|
|
6151
|
+
task,
|
|
6152
|
+
childIndex
|
|
6153
|
+
).ping;
|
|
6154
|
+
node.then(request, request);
|
|
6155
|
+
task.formatContext = previousFormatContext;
|
|
6156
|
+
task.context = previousContext;
|
|
6157
|
+
task.keyPath = previousKeyPath;
|
|
6158
|
+
task.treeContext = previousTreeContext;
|
|
6159
|
+
task.componentStack = previousComponentStack;
|
|
6160
|
+
switchContext(previousContext);
|
|
6161
|
+
return;
|
|
6162
|
+
}
|
|
6163
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
|
6164
|
+
node = getThenableStateAfterSuspending();
|
|
6165
|
+
node = spawnNewSuspendedReplayTask(request, task, node);
|
|
6166
|
+
request.pingedTasks.push(node);
|
|
6167
|
+
task.formatContext = previousFormatContext;
|
|
6168
|
+
task.context = previousContext;
|
|
6169
|
+
task.keyPath = previousKeyPath;
|
|
6170
|
+
task.treeContext = previousTreeContext;
|
|
6171
|
+
task.componentStack = previousComponentStack;
|
|
6172
|
+
switchContext(previousContext);
|
|
6173
|
+
return;
|
|
6174
|
+
}
|
|
5950
6175
|
}
|
|
5951
6176
|
}
|
|
5952
6177
|
else {
|
|
@@ -5954,62 +6179,49 @@
|
|
|
5954
6179
|
chunkLength = segment.chunks.length;
|
|
5955
6180
|
try {
|
|
5956
6181
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
5957
|
-
} catch (thrownValue$
|
|
6182
|
+
} catch (thrownValue$3) {
|
|
5958
6183
|
if (
|
|
5959
6184
|
(resetHooksState(),
|
|
5960
6185
|
(segment.children.length = childrenLength),
|
|
5961
6186
|
(segment.chunks.length = chunkLength),
|
|
5962
6187
|
(node =
|
|
5963
|
-
thrownValue$
|
|
6188
|
+
thrownValue$3 === SuspenseException
|
|
5964
6189
|
? getSuspendedThenable()
|
|
5965
|
-
: thrownValue$
|
|
5966
|
-
"object" === typeof node &&
|
|
5967
|
-
null !== node &&
|
|
5968
|
-
"function" === typeof node.then)
|
|
6190
|
+
: thrownValue$3),
|
|
6191
|
+
"object" === typeof node && null !== node)
|
|
5969
6192
|
) {
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
task.
|
|
5991
|
-
task.
|
|
5992
|
-
task.
|
|
5993
|
-
task.
|
|
5994
|
-
task.
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
).ping;
|
|
5999
|
-
node.then(request, request);
|
|
6000
|
-
task.formatContext = previousFormatContext;
|
|
6001
|
-
task.legacyContext = previousLegacyContext;
|
|
6002
|
-
task.context = previousContext;
|
|
6003
|
-
task.keyPath = previousKeyPath;
|
|
6004
|
-
task.treeContext = previousTreeContext;
|
|
6005
|
-
task.componentStack = previousComponentStack;
|
|
6006
|
-
switchContext(previousContext);
|
|
6007
|
-
return;
|
|
6193
|
+
if ("function" === typeof node.then) {
|
|
6194
|
+
childIndex = getThenableStateAfterSuspending();
|
|
6195
|
+
request = spawnNewSuspendedRenderTask(
|
|
6196
|
+
request,
|
|
6197
|
+
task,
|
|
6198
|
+
childIndex
|
|
6199
|
+
).ping;
|
|
6200
|
+
node.then(request, request);
|
|
6201
|
+
task.formatContext = previousFormatContext;
|
|
6202
|
+
task.context = previousContext;
|
|
6203
|
+
task.keyPath = previousKeyPath;
|
|
6204
|
+
task.treeContext = previousTreeContext;
|
|
6205
|
+
task.componentStack = previousComponentStack;
|
|
6206
|
+
switchContext(previousContext);
|
|
6207
|
+
return;
|
|
6208
|
+
}
|
|
6209
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
|
6210
|
+
node = getThenableStateAfterSuspending();
|
|
6211
|
+
node = spawnNewSuspendedRenderTask(request, task, node);
|
|
6212
|
+
request.pingedTasks.push(node);
|
|
6213
|
+
task.formatContext = previousFormatContext;
|
|
6214
|
+
task.context = previousContext;
|
|
6215
|
+
task.keyPath = previousKeyPath;
|
|
6216
|
+
task.treeContext = previousTreeContext;
|
|
6217
|
+
task.componentStack = previousComponentStack;
|
|
6218
|
+
switchContext(previousContext);
|
|
6219
|
+
return;
|
|
6220
|
+
}
|
|
6008
6221
|
}
|
|
6009
6222
|
}
|
|
6010
6223
|
}
|
|
6011
6224
|
task.formatContext = previousFormatContext;
|
|
6012
|
-
task.legacyContext = previousLegacyContext;
|
|
6013
6225
|
task.context = previousContext;
|
|
6014
6226
|
task.keyPath = previousKeyPath;
|
|
6015
6227
|
task.treeContext = previousTreeContext;
|
|
@@ -6110,27 +6322,31 @@
|
|
|
6110
6322
|
function abortTask(task, request, error) {
|
|
6111
6323
|
var boundary = task.blockedBoundary,
|
|
6112
6324
|
segment = task.blockedSegment;
|
|
6113
|
-
null !== segment
|
|
6325
|
+
if (null !== segment) {
|
|
6326
|
+
if (6 === segment.status) return;
|
|
6327
|
+
segment.status = 3;
|
|
6328
|
+
}
|
|
6329
|
+
segment = getThrownInfo(task.componentStack);
|
|
6114
6330
|
if (null === boundary) {
|
|
6115
|
-
if (
|
|
6116
|
-
|
|
6117
|
-
if (null ===
|
|
6118
|
-
logRecoverableError(request, error,
|
|
6331
|
+
if (13 !== request.status && request.status !== CLOSED) {
|
|
6332
|
+
boundary = task.replay;
|
|
6333
|
+
if (null === boundary) {
|
|
6334
|
+
logRecoverableError(request, error, segment);
|
|
6119
6335
|
fatalError(request, error);
|
|
6120
6336
|
return;
|
|
6121
6337
|
}
|
|
6122
|
-
|
|
6123
|
-
0 ===
|
|
6124
|
-
0 <
|
|
6125
|
-
((
|
|
6338
|
+
boundary.pendingTasks--;
|
|
6339
|
+
0 === boundary.pendingTasks &&
|
|
6340
|
+
0 < boundary.nodes.length &&
|
|
6341
|
+
((task = logRecoverableError(request, error, segment)),
|
|
6126
6342
|
abortRemainingReplayNodes(
|
|
6127
6343
|
request,
|
|
6128
6344
|
null,
|
|
6129
|
-
|
|
6130
|
-
|
|
6345
|
+
boundary.nodes,
|
|
6346
|
+
boundary.slots,
|
|
6131
6347
|
error,
|
|
6348
|
+
task,
|
|
6132
6349
|
segment,
|
|
6133
|
-
boundary,
|
|
6134
6350
|
!0
|
|
6135
6351
|
));
|
|
6136
6352
|
request.pendingRootTasks--;
|
|
@@ -6140,9 +6356,9 @@
|
|
|
6140
6356
|
boundary.pendingTasks--,
|
|
6141
6357
|
boundary.status !== CLIENT_RENDERED &&
|
|
6142
6358
|
((boundary.status = CLIENT_RENDERED),
|
|
6143
|
-
(task =
|
|
6144
|
-
(
|
|
6145
|
-
encodeErrorForBoundary(boundary,
|
|
6359
|
+
(task = logRecoverableError(request, error, segment)),
|
|
6360
|
+
(boundary.status = CLIENT_RENDERED),
|
|
6361
|
+
encodeErrorForBoundary(boundary, task, error, segment, !0),
|
|
6146
6362
|
untrackBoundary(request, boundary),
|
|
6147
6363
|
boundary.parentFlushed &&
|
|
6148
6364
|
request.clientRenderedBoundaries.push(boundary)),
|
|
@@ -6199,7 +6415,7 @@
|
|
|
6199
6415
|
media: props$jscomp$0.media
|
|
6200
6416
|
}
|
|
6201
6417
|
);
|
|
6202
|
-
if (
|
|
6418
|
+
if (0 <= (headers.remainingCapacity -= header.length + 2))
|
|
6203
6419
|
(renderState.resets.style[key] = PRELOAD_NO_CREDS),
|
|
6204
6420
|
linkHeader && (linkHeader += ", "),
|
|
6205
6421
|
(linkHeader += header),
|
|
@@ -6214,8 +6430,8 @@
|
|
|
6214
6430
|
linkHeader ? onHeaders({ Link: linkHeader }) : onHeaders({});
|
|
6215
6431
|
}
|
|
6216
6432
|
}
|
|
6217
|
-
} catch (error
|
|
6218
|
-
logRecoverableError(request, error
|
|
6433
|
+
} catch (error) {
|
|
6434
|
+
logRecoverableError(request, error, {});
|
|
6219
6435
|
}
|
|
6220
6436
|
}
|
|
6221
6437
|
function completeShell(request) {
|
|
@@ -6288,7 +6504,10 @@
|
|
|
6288
6504
|
0 === request.allPendingTasks && completeAll(request);
|
|
6289
6505
|
}
|
|
6290
6506
|
function performWork(request$jscomp$1) {
|
|
6291
|
-
if (
|
|
6507
|
+
if (
|
|
6508
|
+
request$jscomp$1.status !== CLOSED &&
|
|
6509
|
+
13 !== request$jscomp$1.status
|
|
6510
|
+
) {
|
|
6292
6511
|
var prevContext = currentActiveSnapshot,
|
|
6293
6512
|
prevDispatcher = ReactSharedInternals.H;
|
|
6294
6513
|
ReactSharedInternals.H = HooksDispatcher;
|
|
@@ -6316,12 +6535,15 @@
|
|
|
6316
6535
|
prevTaskInDEV = currentTaskInDEV;
|
|
6317
6536
|
currentTaskInDEV = request;
|
|
6318
6537
|
try {
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6538
|
+
"number" === typeof request.replay.slots
|
|
6539
|
+
? resumeNode(
|
|
6540
|
+
request$jscomp$0,
|
|
6541
|
+
request,
|
|
6542
|
+
request.replay.slots,
|
|
6543
|
+
request.node,
|
|
6544
|
+
request.childIndex
|
|
6545
|
+
)
|
|
6546
|
+
: retryNode(request$jscomp$0, request);
|
|
6325
6547
|
if (
|
|
6326
6548
|
1 === request.replay.pendingTasks &&
|
|
6327
6549
|
0 < request.replay.nodes.length
|
|
@@ -6346,19 +6568,16 @@
|
|
|
6346
6568
|
var ping = request.ping;
|
|
6347
6569
|
x.then(ping, ping);
|
|
6348
6570
|
request.thenableState = getThenableStateAfterSuspending();
|
|
6349
|
-
null !== request.componentStack &&
|
|
6350
|
-
(request.componentStack = request.componentStack.parent);
|
|
6351
6571
|
} else {
|
|
6352
6572
|
request.replay.pendingTasks--;
|
|
6353
6573
|
request.abortSet.delete(request);
|
|
6354
|
-
var errorInfo = getThrownInfo(
|
|
6355
|
-
request$jscomp$0,
|
|
6356
|
-
request.componentStack
|
|
6357
|
-
);
|
|
6574
|
+
var errorInfo = getThrownInfo(request.componentStack);
|
|
6358
6575
|
erroredReplay(
|
|
6359
6576
|
request$jscomp$0,
|
|
6360
6577
|
request.blockedBoundary,
|
|
6361
|
-
|
|
6578
|
+
12 === request$jscomp$0.status
|
|
6579
|
+
? request$jscomp$0.fatalError
|
|
6580
|
+
: x,
|
|
6362
6581
|
errorInfo,
|
|
6363
6582
|
request.replay.nodes,
|
|
6364
6583
|
request.replay.slots
|
|
@@ -6379,18 +6598,14 @@
|
|
|
6379
6598
|
var task$jscomp$0 = task,
|
|
6380
6599
|
segment$jscomp$0 = segment;
|
|
6381
6600
|
if (segment$jscomp$0.status === PENDING) {
|
|
6601
|
+
segment$jscomp$0.status = 6;
|
|
6382
6602
|
switchContext(task$jscomp$0.context);
|
|
6383
6603
|
request$jscomp$0 = currentTaskInDEV;
|
|
6384
6604
|
currentTaskInDEV = task$jscomp$0;
|
|
6385
6605
|
var childrenLength = segment$jscomp$0.children.length,
|
|
6386
6606
|
chunkLength = segment$jscomp$0.chunks.length;
|
|
6387
6607
|
try {
|
|
6388
|
-
|
|
6389
|
-
request,
|
|
6390
|
-
task$jscomp$0,
|
|
6391
|
-
task$jscomp$0.node,
|
|
6392
|
-
task$jscomp$0.childIndex
|
|
6393
|
-
),
|
|
6608
|
+
retryNode(request, task$jscomp$0),
|
|
6394
6609
|
segment$jscomp$0.lastPushedText &&
|
|
6395
6610
|
segment$jscomp$0.textEmbedded &&
|
|
6396
6611
|
segment$jscomp$0.chunks.push(textSeparator),
|
|
@@ -6408,22 +6623,21 @@
|
|
|
6408
6623
|
var x$jscomp$0 =
|
|
6409
6624
|
thrownValue === SuspenseException
|
|
6410
6625
|
? getSuspendedThenable()
|
|
6411
|
-
:
|
|
6626
|
+
: 12 === request.status
|
|
6627
|
+
? request.fatalError
|
|
6628
|
+
: thrownValue;
|
|
6412
6629
|
if (
|
|
6413
6630
|
"object" === typeof x$jscomp$0 &&
|
|
6414
6631
|
null !== x$jscomp$0 &&
|
|
6415
6632
|
"function" === typeof x$jscomp$0.then
|
|
6416
6633
|
) {
|
|
6417
|
-
|
|
6418
|
-
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
6634
|
+
segment$jscomp$0.status = PENDING;
|
|
6419
6635
|
task$jscomp$0.thenableState =
|
|
6420
6636
|
getThenableStateAfterSuspending();
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
task$jscomp$0.componentStack.parent);
|
|
6637
|
+
var ping$jscomp$0 = task$jscomp$0.ping;
|
|
6638
|
+
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
6424
6639
|
} else {
|
|
6425
6640
|
var errorInfo$jscomp$0 = getThrownInfo(
|
|
6426
|
-
request,
|
|
6427
6641
|
task$jscomp$0.componentStack
|
|
6428
6642
|
);
|
|
6429
6643
|
task$jscomp$0.abortSet.delete(task$jscomp$0);
|
|
@@ -6464,9 +6678,9 @@
|
|
|
6464
6678
|
request$jscomp$1,
|
|
6465
6679
|
request$jscomp$1.destination
|
|
6466
6680
|
);
|
|
6467
|
-
} catch (error
|
|
6468
|
-
logRecoverableError(request$jscomp$1, error
|
|
6469
|
-
fatalError(request$jscomp$1, error
|
|
6681
|
+
} catch (error) {
|
|
6682
|
+
logRecoverableError(request$jscomp$1, error, {}),
|
|
6683
|
+
fatalError(request$jscomp$1, error);
|
|
6470
6684
|
} finally {
|
|
6471
6685
|
(currentResumableState = prevResumableState),
|
|
6472
6686
|
(ReactSharedInternals.H = prevDispatcher),
|
|
@@ -6664,18 +6878,18 @@
|
|
|
6664
6878
|
SentCompleteBoundaryFunction),
|
|
6665
6879
|
writeChunk(destination, completeBoundaryWithStylesScript1FullBoth))
|
|
6666
6880
|
: (completedSegments.instructions & SentStyleInsertionFunction) ===
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6881
|
+
NothingSent
|
|
6882
|
+
? ((completedSegments.instructions |= SentStyleInsertionFunction),
|
|
6883
|
+
writeChunk(
|
|
6884
|
+
destination,
|
|
6885
|
+
completeBoundaryWithStylesScript1FullPartial
|
|
6886
|
+
))
|
|
6887
|
+
: writeChunk(destination, completeBoundaryWithStylesScript1Partial)
|
|
6674
6888
|
: (completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6889
|
+
NothingSent
|
|
6890
|
+
? ((completedSegments.instructions |= SentCompleteBoundaryFunction),
|
|
6891
|
+
writeChunk(destination, completeBoundaryScript1Full))
|
|
6892
|
+
: writeChunk(destination, completeBoundaryScript1Partial);
|
|
6679
6893
|
completedSegments = stringToChunk(i.toString(16));
|
|
6680
6894
|
writeChunk(destination, request.boundaryPrefix);
|
|
6681
6895
|
writeChunk(destination, completedSegments);
|
|
@@ -7020,9 +7234,10 @@
|
|
|
7020
7234
|
i.hasHtml && writeChunk(destination, endChunkForTag("html")),
|
|
7021
7235
|
completeWriting(destination),
|
|
7022
7236
|
0 !== request.abortableTasks.size &&
|
|
7023
|
-
error
|
|
7237
|
+
console.error(
|
|
7024
7238
|
"There was still abortable task at the root when we closed. This is a bug in React."
|
|
7025
7239
|
),
|
|
7240
|
+
(request.status = CLOSED),
|
|
7026
7241
|
destination.close(),
|
|
7027
7242
|
(request.destination = null))
|
|
7028
7243
|
: completeWriting(destination);
|
|
@@ -7031,24 +7246,23 @@
|
|
|
7031
7246
|
function startWork(request) {
|
|
7032
7247
|
request.flushScheduled = null !== request.destination;
|
|
7033
7248
|
supportsRequestStorage
|
|
7034
|
-
?
|
|
7249
|
+
? scheduleMicrotask(function () {
|
|
7035
7250
|
return requestStorage.run(request, performWork, request);
|
|
7036
|
-
}
|
|
7037
|
-
:
|
|
7251
|
+
})
|
|
7252
|
+
: scheduleMicrotask(function () {
|
|
7038
7253
|
return performWork(request);
|
|
7039
|
-
}
|
|
7040
|
-
|
|
7041
|
-
(
|
|
7042
|
-
|
|
7043
|
-
|
|
7254
|
+
});
|
|
7255
|
+
setTimeout(function () {
|
|
7256
|
+
10 === request.status && (request.status = 11);
|
|
7257
|
+
null === request.trackedPostpones &&
|
|
7258
|
+
(supportsRequestStorage
|
|
7259
|
+
? requestStorage.run(
|
|
7044
7260
|
request,
|
|
7045
7261
|
enqueueEarlyPreloadsAfterInitialWork,
|
|
7046
7262
|
request
|
|
7047
|
-
)
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
return enqueueEarlyPreloadsAfterInitialWork(request);
|
|
7051
|
-
}, 0));
|
|
7263
|
+
)
|
|
7264
|
+
: enqueueEarlyPreloadsAfterInitialWork(request));
|
|
7265
|
+
}, 0);
|
|
7052
7266
|
}
|
|
7053
7267
|
function enqueueEarlyPreloadsAfterInitialWork(request) {
|
|
7054
7268
|
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
|
|
@@ -7065,14 +7279,33 @@
|
|
|
7065
7279
|
: (request.flushScheduled = !1);
|
|
7066
7280
|
}, 0));
|
|
7067
7281
|
}
|
|
7282
|
+
function startFlowing(request, destination) {
|
|
7283
|
+
if (13 === request.status)
|
|
7284
|
+
(request.status = CLOSED),
|
|
7285
|
+
closeWithError(destination, request.fatalError);
|
|
7286
|
+
else if (request.status !== CLOSED && null === request.destination) {
|
|
7287
|
+
request.destination = destination;
|
|
7288
|
+
try {
|
|
7289
|
+
flushCompletedQueues(request, destination);
|
|
7290
|
+
} catch (error) {
|
|
7291
|
+
logRecoverableError(request, error, {}), fatalError(request, error);
|
|
7292
|
+
}
|
|
7293
|
+
}
|
|
7294
|
+
}
|
|
7068
7295
|
function abort(request, reason) {
|
|
7296
|
+
if (11 === request.status || 10 === request.status) request.status = 12;
|
|
7069
7297
|
try {
|
|
7070
7298
|
var abortableTasks = request.abortableTasks;
|
|
7071
7299
|
if (0 < abortableTasks.size) {
|
|
7072
7300
|
var error =
|
|
7073
7301
|
void 0 === reason
|
|
7074
7302
|
? Error("The render was aborted by the server without a reason.")
|
|
7075
|
-
: reason
|
|
7303
|
+
: "object" === typeof reason &&
|
|
7304
|
+
null !== reason &&
|
|
7305
|
+
"function" === typeof reason.then
|
|
7306
|
+
? Error("The render was aborted by the server with a promise.")
|
|
7307
|
+
: reason;
|
|
7308
|
+
request.fatalError = error;
|
|
7076
7309
|
abortableTasks.forEach(function (task) {
|
|
7077
7310
|
return abortTask(task, request, error);
|
|
7078
7311
|
});
|
|
@@ -7080,14 +7313,21 @@
|
|
|
7080
7313
|
}
|
|
7081
7314
|
null !== request.destination &&
|
|
7082
7315
|
flushCompletedQueues(request, request.destination);
|
|
7083
|
-
} catch (error$
|
|
7084
|
-
logRecoverableError(request, error$
|
|
7316
|
+
} catch (error$4) {
|
|
7317
|
+
logRecoverableError(request, error$4, {}), fatalError(request, error$4);
|
|
7085
7318
|
}
|
|
7086
7319
|
}
|
|
7320
|
+
function ensureCorrectIsomorphicReactVersion() {
|
|
7321
|
+
var isomorphicReactPackageVersion = React.version;
|
|
7322
|
+
if ("19.0.0" !== isomorphicReactPackageVersion)
|
|
7323
|
+
throw Error(
|
|
7324
|
+
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
7325
|
+
(isomorphicReactPackageVersion +
|
|
7326
|
+
"\n - react-dom: 19.0.0\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
7327
|
+
);
|
|
7328
|
+
}
|
|
7087
7329
|
var React = require("react"),
|
|
7088
7330
|
ReactDOM = require("react-dom"),
|
|
7089
|
-
ReactSharedInternals =
|
|
7090
|
-
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
7091
7331
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
7092
7332
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
7093
7333
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
@@ -7111,6 +7351,15 @@
|
|
|
7111
7351
|
jsxPropsParents = new WeakMap(),
|
|
7112
7352
|
jsxChildrenParents = new WeakMap(),
|
|
7113
7353
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
|
7354
|
+
LocalPromise = Promise,
|
|
7355
|
+
scheduleMicrotask =
|
|
7356
|
+
"function" === typeof queueMicrotask
|
|
7357
|
+
? queueMicrotask
|
|
7358
|
+
: function (callback) {
|
|
7359
|
+
LocalPromise.resolve(null)
|
|
7360
|
+
.then(callback)
|
|
7361
|
+
.catch(handleErrorInNextTick);
|
|
7362
|
+
},
|
|
7114
7363
|
currentView = null,
|
|
7115
7364
|
writtenBytes = 0,
|
|
7116
7365
|
textEncoder = new TextEncoder(),
|
|
@@ -7790,6 +8039,8 @@
|
|
|
7790
8039
|
msPattern = /^ms-/,
|
|
7791
8040
|
isJavaScriptProtocol =
|
|
7792
8041
|
/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,
|
|
8042
|
+
ReactSharedInternals =
|
|
8043
|
+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
7793
8044
|
ReactDOMSharedInternals =
|
|
7794
8045
|
ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
7795
8046
|
NotPending = Object.freeze({
|
|
@@ -7821,7 +8072,7 @@
|
|
|
7821
8072
|
"<" +
|
|
7822
8073
|
escapeHrefForLinkHeaderURLContext(href) +
|
|
7823
8074
|
">; rel=dns-prefetch"),
|
|
7824
|
-
|
|
8075
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2));
|
|
7825
8076
|
JSCompiler_temp
|
|
7826
8077
|
? ((renderState.resets.dns[href] = EXISTS),
|
|
7827
8078
|
resumableState.preconnects &&
|
|
@@ -7845,8 +8096,8 @@
|
|
|
7845
8096
|
"use-credentials" === crossOrigin
|
|
7846
8097
|
? "credentials"
|
|
7847
8098
|
: "string" === typeof crossOrigin
|
|
7848
|
-
|
|
7849
|
-
|
|
8099
|
+
? "anonymous"
|
|
8100
|
+
: "default";
|
|
7850
8101
|
if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
|
|
7851
8102
|
resumableState.connectResources[bucket][href] = EXISTS;
|
|
7852
8103
|
resumableState = renderState.headers;
|
|
@@ -7870,7 +8121,7 @@
|
|
|
7870
8121
|
}
|
|
7871
8122
|
JSCompiler_temp =
|
|
7872
8123
|
((header = JSCompiler_temp),
|
|
7873
|
-
|
|
8124
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2));
|
|
7874
8125
|
}
|
|
7875
8126
|
JSCompiler_temp
|
|
7876
8127
|
? ((renderState.resets.connect[bucket][href] = EXISTS),
|
|
@@ -7913,7 +8164,7 @@
|
|
|
7913
8164
|
0 < resumableState.remainingCapacity &&
|
|
7914
8165
|
"high" === fetchPriority &&
|
|
7915
8166
|
((header = getPreloadAsHeader(href, as, options)),
|
|
7916
|
-
|
|
8167
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2))
|
|
7917
8168
|
? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
|
|
7918
8169
|
resumableState.highImagePreloads &&
|
|
7919
8170
|
(resumableState.highImagePreloads += ", "),
|
|
@@ -7983,7 +8234,7 @@
|
|
|
7983
8234
|
0 < resumableState.remainingCapacity &&
|
|
7984
8235
|
"font" === as &&
|
|
7985
8236
|
((key = getPreloadAsHeader(href, as, options)),
|
|
7986
|
-
|
|
8237
|
+
0 <= (resumableState.remainingCapacity -= key.length + 2))
|
|
7987
8238
|
)
|
|
7988
8239
|
(renderState.resets.font[href] = PRELOAD_NO_CREDS),
|
|
7989
8240
|
resumableState.fontPreloads &&
|
|
@@ -8343,6 +8594,7 @@
|
|
|
8343
8594
|
LATE = 3,
|
|
8344
8595
|
regexForHrefInLinkHeaderURLContext = /[<>\r\n]/g,
|
|
8345
8596
|
regexForLinkHeaderQuotedParamValueContext = /["';,\r\n]/g,
|
|
8597
|
+
bind = Function.prototype.bind,
|
|
8346
8598
|
supportsRequestStorage = "function" === typeof AsyncLocalStorage,
|
|
8347
8599
|
requestStorage = supportsRequestStorage ? new AsyncLocalStorage() : null,
|
|
8348
8600
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
@@ -8357,6 +8609,8 @@
|
|
|
8357
8609
|
var didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
|
|
8358
8610
|
var didWarnAboutDirectlyAssigningPropsToState = new Set();
|
|
8359
8611
|
var didWarnAboutUndefinedDerivedState = new Set();
|
|
8612
|
+
var didWarnAboutContextTypes$1 = new Set();
|
|
8613
|
+
var didWarnAboutChildContextTypes = new Set();
|
|
8360
8614
|
var didWarnAboutInvalidateContextType = new Set();
|
|
8361
8615
|
var didWarnOnInvalidCallback = new Set();
|
|
8362
8616
|
var classComponentUpdater = {
|
|
@@ -8513,12 +8767,15 @@
|
|
|
8513
8767
|
HooksDispatcher.useFormState = useActionState;
|
|
8514
8768
|
HooksDispatcher.useActionState = useActionState;
|
|
8515
8769
|
var currentResumableState = null,
|
|
8770
|
+
currentTaskInDEV = null,
|
|
8516
8771
|
DefaultAsyncDispatcher = {
|
|
8517
8772
|
getCacheForType: function () {
|
|
8518
8773
|
throw Error("Not implemented.");
|
|
8519
8774
|
},
|
|
8520
8775
|
getOwner: function () {
|
|
8521
|
-
return null
|
|
8776
|
+
return null === currentTaskInDEV
|
|
8777
|
+
? null
|
|
8778
|
+
: currentTaskInDEV.componentStack;
|
|
8522
8779
|
}
|
|
8523
8780
|
},
|
|
8524
8781
|
disabledDepth = 0,
|
|
@@ -8531,32 +8788,114 @@
|
|
|
8531
8788
|
prevGroupEnd;
|
|
8532
8789
|
disabledLog.__reactDisabledLog = !0;
|
|
8533
8790
|
var prefix,
|
|
8791
|
+
suffix,
|
|
8534
8792
|
reentry = !1;
|
|
8535
8793
|
var componentFrameCache = new (
|
|
8536
8794
|
"function" === typeof WeakMap ? WeakMap : Map
|
|
8537
8795
|
)();
|
|
8538
|
-
var
|
|
8796
|
+
var callComponent = {
|
|
8797
|
+
"react-stack-bottom-frame": function (Component, props, secondArg) {
|
|
8798
|
+
return Component(props, secondArg);
|
|
8799
|
+
}
|
|
8800
|
+
},
|
|
8801
|
+
callComponentInDEV =
|
|
8802
|
+
callComponent["react-stack-bottom-frame"].bind(callComponent),
|
|
8803
|
+
callRender = {
|
|
8804
|
+
"react-stack-bottom-frame": function (instance) {
|
|
8805
|
+
return instance.render();
|
|
8806
|
+
}
|
|
8807
|
+
},
|
|
8808
|
+
callRenderInDEV = callRender["react-stack-bottom-frame"].bind(callRender),
|
|
8809
|
+
callLazyInit = {
|
|
8810
|
+
"react-stack-bottom-frame": function (lazy) {
|
|
8811
|
+
var init = lazy._init;
|
|
8812
|
+
return init(lazy._payload);
|
|
8813
|
+
}
|
|
8814
|
+
},
|
|
8815
|
+
callLazyInitInDEV =
|
|
8816
|
+
callLazyInit["react-stack-bottom-frame"].bind(callLazyInit),
|
|
8817
|
+
CLIENT_RENDERED = 4,
|
|
8539
8818
|
PENDING = 0,
|
|
8540
8819
|
COMPLETED = 1,
|
|
8541
8820
|
FLUSHED = 2,
|
|
8542
8821
|
POSTPONED = 5,
|
|
8822
|
+
CLOSED = 14,
|
|
8543
8823
|
currentRequest = null,
|
|
8544
|
-
currentTaskInDEV = null,
|
|
8545
8824
|
didWarnAboutBadClass = {},
|
|
8825
|
+
didWarnAboutContextTypes = {},
|
|
8546
8826
|
didWarnAboutContextTypeOnFunctionComponent = {},
|
|
8547
8827
|
didWarnAboutGetDerivedStateOnFunctionComponent = {},
|
|
8548
8828
|
didWarnAboutReassigningProps = !1,
|
|
8549
8829
|
didWarnAboutGenerators = !1,
|
|
8550
8830
|
didWarnAboutMaps = !1;
|
|
8551
|
-
(
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8831
|
+
ensureCorrectIsomorphicReactVersion();
|
|
8832
|
+
ensureCorrectIsomorphicReactVersion();
|
|
8833
|
+
exports.prerender = function (children, options) {
|
|
8834
|
+
return new Promise(function (resolve, reject) {
|
|
8835
|
+
var onHeaders = options ? options.onHeaders : void 0,
|
|
8836
|
+
onHeadersImpl;
|
|
8837
|
+
onHeaders &&
|
|
8838
|
+
(onHeadersImpl = function (headersDescriptor) {
|
|
8839
|
+
onHeaders(new Headers(headersDescriptor));
|
|
8840
|
+
});
|
|
8841
|
+
var resources = createResumableState(
|
|
8842
|
+
options ? options.identifierPrefix : void 0,
|
|
8843
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
|
8844
|
+
options ? options.bootstrapScriptContent : void 0,
|
|
8845
|
+
options ? options.bootstrapScripts : void 0,
|
|
8846
|
+
options ? options.bootstrapModules : void 0
|
|
8847
|
+
),
|
|
8848
|
+
request = createPrerenderRequest(
|
|
8849
|
+
children,
|
|
8850
|
+
resources,
|
|
8851
|
+
createRenderState(
|
|
8852
|
+
resources,
|
|
8853
|
+
void 0,
|
|
8854
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
|
8855
|
+
options ? options.importMap : void 0,
|
|
8856
|
+
onHeadersImpl,
|
|
8857
|
+
options ? options.maxHeadersLength : void 0
|
|
8858
|
+
),
|
|
8859
|
+
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
8860
|
+
options ? options.progressiveChunkSize : void 0,
|
|
8861
|
+
options ? options.onError : void 0,
|
|
8862
|
+
function () {
|
|
8863
|
+
var result = {
|
|
8864
|
+
prelude: new ReadableStream(
|
|
8865
|
+
{
|
|
8866
|
+
type: "bytes",
|
|
8867
|
+
pull: function (controller) {
|
|
8868
|
+
startFlowing(request, controller);
|
|
8869
|
+
},
|
|
8870
|
+
cancel: function (reason) {
|
|
8871
|
+
request.destination = null;
|
|
8872
|
+
abort(request, reason);
|
|
8873
|
+
}
|
|
8874
|
+
},
|
|
8875
|
+
{ highWaterMark: 0 }
|
|
8876
|
+
)
|
|
8877
|
+
};
|
|
8878
|
+
resolve(result);
|
|
8879
|
+
},
|
|
8880
|
+
void 0,
|
|
8881
|
+
void 0,
|
|
8882
|
+
reject,
|
|
8883
|
+
options ? options.onPostpone : void 0
|
|
8884
|
+
);
|
|
8885
|
+
if (options && options.signal) {
|
|
8886
|
+
var signal = options.signal;
|
|
8887
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
8888
|
+
else {
|
|
8889
|
+
var listener = function () {
|
|
8890
|
+
abort(request, signal.reason);
|
|
8891
|
+
signal.removeEventListener("abort", listener);
|
|
8892
|
+
};
|
|
8893
|
+
signal.addEventListener("abort", listener);
|
|
8894
|
+
}
|
|
8895
|
+
}
|
|
8896
|
+
startWork(request);
|
|
8897
|
+
});
|
|
8898
|
+
};
|
|
8560
8899
|
exports.renderToReadableStream = function (children, options) {
|
|
8561
8900
|
return new Promise(function (resolve, reject) {
|
|
8562
8901
|
var onFatalError,
|
|
@@ -8578,7 +8917,7 @@
|
|
|
8578
8917
|
options ? options.bootstrapScripts : void 0,
|
|
8579
8918
|
options ? options.bootstrapModules : void 0
|
|
8580
8919
|
),
|
|
8581
|
-
request
|
|
8920
|
+
request = createRequest(
|
|
8582
8921
|
children,
|
|
8583
8922
|
resumableState,
|
|
8584
8923
|
createRenderState(
|
|
@@ -8598,26 +8937,11 @@
|
|
|
8598
8937
|
{
|
|
8599
8938
|
type: "bytes",
|
|
8600
8939
|
pull: function (controller) {
|
|
8601
|
-
|
|
8602
|
-
if (1 === request.status)
|
|
8603
|
-
(request.status = 2),
|
|
8604
|
-
closeWithError(controller, request.fatalError);
|
|
8605
|
-
else if (
|
|
8606
|
-
2 !== request.status &&
|
|
8607
|
-
null === request.destination
|
|
8608
|
-
) {
|
|
8609
|
-
request.destination = controller;
|
|
8610
|
-
try {
|
|
8611
|
-
flushCompletedQueues(request, controller);
|
|
8612
|
-
} catch (error$7) {
|
|
8613
|
-
logRecoverableError(request, error$7, {}),
|
|
8614
|
-
fatalError(request, error$7);
|
|
8615
|
-
}
|
|
8616
|
-
}
|
|
8940
|
+
startFlowing(request, controller);
|
|
8617
8941
|
},
|
|
8618
8942
|
cancel: function (reason) {
|
|
8619
|
-
request
|
|
8620
|
-
abort(request
|
|
8943
|
+
request.destination = null;
|
|
8944
|
+
abort(request, reason);
|
|
8621
8945
|
}
|
|
8622
8946
|
},
|
|
8623
8947
|
{ highWaterMark: 0 }
|
|
@@ -8635,17 +8959,17 @@
|
|
|
8635
8959
|
);
|
|
8636
8960
|
if (options && options.signal) {
|
|
8637
8961
|
var signal = options.signal;
|
|
8638
|
-
if (signal.aborted) abort(request
|
|
8962
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
8639
8963
|
else {
|
|
8640
8964
|
var listener = function () {
|
|
8641
|
-
abort(request
|
|
8965
|
+
abort(request, signal.reason);
|
|
8642
8966
|
signal.removeEventListener("abort", listener);
|
|
8643
8967
|
};
|
|
8644
8968
|
signal.addEventListener("abort", listener);
|
|
8645
8969
|
}
|
|
8646
8970
|
}
|
|
8647
|
-
startWork(request
|
|
8971
|
+
startWork(request);
|
|
8648
8972
|
});
|
|
8649
8973
|
};
|
|
8650
|
-
exports.version = "19.0.0
|
|
8974
|
+
exports.version = "19.0.0";
|
|
8651
8975
|
})();
|