react-graph-grid 0.1.4 → 0.1.5
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/README.md +4 -0
- package/dist/index.esm.js +21 -0
- package/dist/index.js +56 -0
- package/dist/index10.esm.js +3844 -0
- package/dist/index10.js +3848 -0
- package/dist/index11.esm.js +4121 -0
- package/dist/index11.js +4125 -0
- package/dist/index12.esm.js +5238 -0
- package/dist/index12.js +5242 -0
- package/dist/index13.esm.js +5466 -0
- package/dist/index13.js +5470 -0
- package/dist/index14.esm.js +22 -0
- package/dist/index14.js +26 -0
- package/dist/index15.esm.js +402 -0
- package/dist/index15.js +403 -0
- package/dist/index16.esm.js +507 -0
- package/dist/index16.js +507 -0
- package/dist/index17.esm.js +256 -0
- package/dist/index17.js +257 -0
- package/dist/index18.esm.js +261 -0
- package/dist/index18.js +263 -0
- package/dist/index19.esm.js +623 -0
- package/dist/index19.js +624 -0
- package/dist/index2.esm.js +6 -0
- package/dist/index2.js +2 -0
- package/dist/index20.esm.js +219 -0
- package/dist/index20.js +220 -0
- package/dist/index21.esm.js +298 -0
- package/dist/index21.js +299 -0
- package/dist/index22.esm.js +662 -0
- package/dist/index22.js +663 -0
- package/dist/index23.esm.js +340 -0
- package/dist/index23.js +341 -0
- package/dist/index24.esm.js +269 -0
- package/dist/index24.js +270 -0
- package/dist/index25.esm.js +600 -0
- package/dist/index25.js +601 -0
- package/dist/index26.esm.js +245 -0
- package/dist/index26.js +246 -0
- package/dist/index27.esm.js +136 -0
- package/dist/index27.js +137 -0
- package/dist/index28.esm.js +70 -0
- package/dist/index28.js +70 -0
- package/dist/index29.esm.js +748 -0
- package/dist/index29.js +748 -0
- package/dist/index30.esm.js +363 -0
- package/dist/index30.js +363 -0
- package/dist/index4.esm.js +27 -0
- package/dist/index4.js +27 -0
- package/dist/index5.esm.js +35 -0
- package/dist/index5.js +39 -0
- package/dist/index6.esm.js +200 -0
- package/dist/index6.js +204 -0
- package/dist/index7.esm.js +9 -0
- package/dist/index7.js +13 -0
- package/dist/index8.esm.js +65 -0
- package/dist/index8.js +68 -0
- package/dist/index9.esm.js +102 -0
- package/dist/index9.js +103 -0
- package/{src/css/default.css → dist/react-graph-grid.css} +2 -1
- package/package.json +6 -3
- package/eslint.config.js +0 -29
- package/index.html +0 -13
- package/index.js +0 -19
- package/npm.aps +0 -0
- package/src/Base.jsx +0 -81
- package/src/Card.jsx +0 -333
- package/src/Dropdown.jsx +0 -339
- package/src/FieldEdit.jsx +0 -376
- package/src/Graph.jsx +0 -482
- package/src/Grid.jsx +0 -887
- package/src/GridCD.jsx +0 -180
- package/src/GridDB.jsx +0 -897
- package/src/GridFE.jsx +0 -753
- package/src/GridFL.jsx +0 -468
- package/src/GridGR.jsx +0 -311
- package/src/GridPK.jsx +0 -414
- package/src/Modal.jsx +0 -511
- package/src/Overlay.jsx +0 -140
- package/src/Tests/DebugApp.jsx +0 -334
- package/src/Tests/TestData.jsx +0 -251
- package/src/Themes/DefaultGridTheme.jsx +0 -36
- package/src/Themes/Images.jsx +0 -438
- package/src/Themes/Translate.jsx +0 -76
- package/src/css/default_.css +0 -945
- package/src/main.jsx +0 -10
- package/vite.config.js +0 -14
- /package/{public → dist}/IM.svg +0 -0
|
@@ -0,0 +1,4121 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "./index2.esm.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-dom-server.browser.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var require_react_dom_server_browser_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12
|
+
var React = __require("react"), ReactDOM = __require("react-dom");
|
|
13
|
+
function formatProdErrorMessage(code) {
|
|
14
|
+
var url = "https://react.dev/errors/" + code;
|
|
15
|
+
if (1 < arguments.length) {
|
|
16
|
+
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
17
|
+
for (var i = 2; i < arguments.length; i++) url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|
18
|
+
}
|
|
19
|
+
return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
20
|
+
}
|
|
21
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_SCOPE_TYPE = Symbol.for("react.scope"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
22
|
+
function getIteratorFn(maybeIterable) {
|
|
23
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
24
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
25
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
26
|
+
}
|
|
27
|
+
var isArrayImpl = Array.isArray;
|
|
28
|
+
function murmurhash3_32_gc(key, seed) {
|
|
29
|
+
var remainder = key.length & 3;
|
|
30
|
+
var bytes = key.length - remainder;
|
|
31
|
+
var h1 = seed;
|
|
32
|
+
for (seed = 0; seed < bytes;) {
|
|
33
|
+
var k1 = key.charCodeAt(seed) & 255 | (key.charCodeAt(++seed) & 255) << 8 | (key.charCodeAt(++seed) & 255) << 16 | (key.charCodeAt(++seed) & 255) << 24;
|
|
34
|
+
++seed;
|
|
35
|
+
k1 = 3432918353 * (k1 & 65535) + ((3432918353 * (k1 >>> 16) & 65535) << 16) & 4294967295;
|
|
36
|
+
k1 = k1 << 15 | k1 >>> 17;
|
|
37
|
+
k1 = 461845907 * (k1 & 65535) + ((461845907 * (k1 >>> 16) & 65535) << 16) & 4294967295;
|
|
38
|
+
h1 ^= k1;
|
|
39
|
+
h1 = h1 << 13 | h1 >>> 19;
|
|
40
|
+
h1 = 5 * (h1 & 65535) + ((5 * (h1 >>> 16) & 65535) << 16) & 4294967295;
|
|
41
|
+
h1 = (h1 & 65535) + 27492 + (((h1 >>> 16) + 58964 & 65535) << 16);
|
|
42
|
+
}
|
|
43
|
+
k1 = 0;
|
|
44
|
+
switch (remainder) {
|
|
45
|
+
case 3: k1 ^= (key.charCodeAt(seed + 2) & 255) << 16;
|
|
46
|
+
case 2: k1 ^= (key.charCodeAt(seed + 1) & 255) << 8;
|
|
47
|
+
case 1: k1 ^= key.charCodeAt(seed) & 255, k1 = 3432918353 * (k1 & 65535) + ((3432918353 * (k1 >>> 16) & 65535) << 16) & 4294967295, k1 = k1 << 15 | k1 >>> 17, h1 ^= 461845907 * (k1 & 65535) + ((461845907 * (k1 >>> 16) & 65535) << 16) & 4294967295;
|
|
48
|
+
}
|
|
49
|
+
h1 ^= key.length;
|
|
50
|
+
h1 ^= h1 >>> 16;
|
|
51
|
+
h1 = 2246822507 * (h1 & 65535) + ((2246822507 * (h1 >>> 16) & 65535) << 16) & 4294967295;
|
|
52
|
+
h1 ^= h1 >>> 13;
|
|
53
|
+
h1 = 3266489909 * (h1 & 65535) + ((3266489909 * (h1 >>> 16) & 65535) << 16) & 4294967295;
|
|
54
|
+
return (h1 ^ h1 >>> 16) >>> 0;
|
|
55
|
+
}
|
|
56
|
+
var channel = new MessageChannel(), taskQueue = [];
|
|
57
|
+
channel.port1.onmessage = function() {
|
|
58
|
+
var task = taskQueue.shift();
|
|
59
|
+
task && task();
|
|
60
|
+
};
|
|
61
|
+
function scheduleWork(callback) {
|
|
62
|
+
taskQueue.push(callback);
|
|
63
|
+
channel.port2.postMessage(null);
|
|
64
|
+
}
|
|
65
|
+
function handleErrorInNextTick(error) {
|
|
66
|
+
setTimeout(function() {
|
|
67
|
+
throw error;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
var LocalPromise = Promise, scheduleMicrotask = "function" === typeof queueMicrotask ? queueMicrotask : function(callback) {
|
|
71
|
+
LocalPromise.resolve(null).then(callback).catch(handleErrorInNextTick);
|
|
72
|
+
}, currentView = null, writtenBytes = 0;
|
|
73
|
+
function writeChunk(destination, chunk) {
|
|
74
|
+
if (0 !== chunk.byteLength) if (2048 < chunk.byteLength) 0 < writtenBytes && (destination.enqueue(new Uint8Array(currentView.buffer, 0, writtenBytes)), currentView = new Uint8Array(2048), writtenBytes = 0), destination.enqueue(chunk);
|
|
75
|
+
else {
|
|
76
|
+
var allowableBytes = currentView.length - writtenBytes;
|
|
77
|
+
allowableBytes < chunk.byteLength && (0 === allowableBytes ? destination.enqueue(currentView) : (currentView.set(chunk.subarray(0, allowableBytes), writtenBytes), destination.enqueue(currentView), chunk = chunk.subarray(allowableBytes)), currentView = new Uint8Array(2048), writtenBytes = 0);
|
|
78
|
+
currentView.set(chunk, writtenBytes);
|
|
79
|
+
writtenBytes += chunk.byteLength;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function writeChunkAndReturn(destination, chunk) {
|
|
83
|
+
writeChunk(destination, chunk);
|
|
84
|
+
return !0;
|
|
85
|
+
}
|
|
86
|
+
function completeWriting(destination) {
|
|
87
|
+
currentView && 0 < writtenBytes && (destination.enqueue(new Uint8Array(currentView.buffer, 0, writtenBytes)), currentView = null, writtenBytes = 0);
|
|
88
|
+
}
|
|
89
|
+
var textEncoder = new TextEncoder();
|
|
90
|
+
function stringToChunk(content) {
|
|
91
|
+
return textEncoder.encode(content);
|
|
92
|
+
}
|
|
93
|
+
function stringToPrecomputedChunk(content) {
|
|
94
|
+
return textEncoder.encode(content);
|
|
95
|
+
}
|
|
96
|
+
function byteLengthOfChunk(chunk) {
|
|
97
|
+
return chunk.byteLength;
|
|
98
|
+
}
|
|
99
|
+
function closeWithError(destination, error) {
|
|
100
|
+
"function" === typeof destination.error ? destination.error(error) : destination.close();
|
|
101
|
+
}
|
|
102
|
+
var assign = Object.assign, hasOwnProperty = Object.prototype.hasOwnProperty, VALID_ATTRIBUTE_NAME_REGEX = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), illegalAttributeNameCache = {}, validatedAttributeNameCache = {};
|
|
103
|
+
function isAttributeNameSafe(attributeName) {
|
|
104
|
+
if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) return !0;
|
|
105
|
+
if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1;
|
|
106
|
+
if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) return validatedAttributeNameCache[attributeName] = !0;
|
|
107
|
+
illegalAttributeNameCache[attributeName] = !0;
|
|
108
|
+
return !1;
|
|
109
|
+
}
|
|
110
|
+
var unitlessNumbers = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")), aliases = new Map([
|
|
111
|
+
["acceptCharset", "accept-charset"],
|
|
112
|
+
["htmlFor", "for"],
|
|
113
|
+
["httpEquiv", "http-equiv"],
|
|
114
|
+
["crossOrigin", "crossorigin"],
|
|
115
|
+
["accentHeight", "accent-height"],
|
|
116
|
+
["alignmentBaseline", "alignment-baseline"],
|
|
117
|
+
["arabicForm", "arabic-form"],
|
|
118
|
+
["baselineShift", "baseline-shift"],
|
|
119
|
+
["capHeight", "cap-height"],
|
|
120
|
+
["clipPath", "clip-path"],
|
|
121
|
+
["clipRule", "clip-rule"],
|
|
122
|
+
["colorInterpolation", "color-interpolation"],
|
|
123
|
+
["colorInterpolationFilters", "color-interpolation-filters"],
|
|
124
|
+
["colorProfile", "color-profile"],
|
|
125
|
+
["colorRendering", "color-rendering"],
|
|
126
|
+
["dominantBaseline", "dominant-baseline"],
|
|
127
|
+
["enableBackground", "enable-background"],
|
|
128
|
+
["fillOpacity", "fill-opacity"],
|
|
129
|
+
["fillRule", "fill-rule"],
|
|
130
|
+
["floodColor", "flood-color"],
|
|
131
|
+
["floodOpacity", "flood-opacity"],
|
|
132
|
+
["fontFamily", "font-family"],
|
|
133
|
+
["fontSize", "font-size"],
|
|
134
|
+
["fontSizeAdjust", "font-size-adjust"],
|
|
135
|
+
["fontStretch", "font-stretch"],
|
|
136
|
+
["fontStyle", "font-style"],
|
|
137
|
+
["fontVariant", "font-variant"],
|
|
138
|
+
["fontWeight", "font-weight"],
|
|
139
|
+
["glyphName", "glyph-name"],
|
|
140
|
+
["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
|
|
141
|
+
["glyphOrientationVertical", "glyph-orientation-vertical"],
|
|
142
|
+
["horizAdvX", "horiz-adv-x"],
|
|
143
|
+
["horizOriginX", "horiz-origin-x"],
|
|
144
|
+
["imageRendering", "image-rendering"],
|
|
145
|
+
["letterSpacing", "letter-spacing"],
|
|
146
|
+
["lightingColor", "lighting-color"],
|
|
147
|
+
["markerEnd", "marker-end"],
|
|
148
|
+
["markerMid", "marker-mid"],
|
|
149
|
+
["markerStart", "marker-start"],
|
|
150
|
+
["overlinePosition", "overline-position"],
|
|
151
|
+
["overlineThickness", "overline-thickness"],
|
|
152
|
+
["paintOrder", "paint-order"],
|
|
153
|
+
["panose-1", "panose-1"],
|
|
154
|
+
["pointerEvents", "pointer-events"],
|
|
155
|
+
["renderingIntent", "rendering-intent"],
|
|
156
|
+
["shapeRendering", "shape-rendering"],
|
|
157
|
+
["stopColor", "stop-color"],
|
|
158
|
+
["stopOpacity", "stop-opacity"],
|
|
159
|
+
["strikethroughPosition", "strikethrough-position"],
|
|
160
|
+
["strikethroughThickness", "strikethrough-thickness"],
|
|
161
|
+
["strokeDasharray", "stroke-dasharray"],
|
|
162
|
+
["strokeDashoffset", "stroke-dashoffset"],
|
|
163
|
+
["strokeLinecap", "stroke-linecap"],
|
|
164
|
+
["strokeLinejoin", "stroke-linejoin"],
|
|
165
|
+
["strokeMiterlimit", "stroke-miterlimit"],
|
|
166
|
+
["strokeOpacity", "stroke-opacity"],
|
|
167
|
+
["strokeWidth", "stroke-width"],
|
|
168
|
+
["textAnchor", "text-anchor"],
|
|
169
|
+
["textDecoration", "text-decoration"],
|
|
170
|
+
["textRendering", "text-rendering"],
|
|
171
|
+
["transformOrigin", "transform-origin"],
|
|
172
|
+
["underlinePosition", "underline-position"],
|
|
173
|
+
["underlineThickness", "underline-thickness"],
|
|
174
|
+
["unicodeBidi", "unicode-bidi"],
|
|
175
|
+
["unicodeRange", "unicode-range"],
|
|
176
|
+
["unitsPerEm", "units-per-em"],
|
|
177
|
+
["vAlphabetic", "v-alphabetic"],
|
|
178
|
+
["vHanging", "v-hanging"],
|
|
179
|
+
["vIdeographic", "v-ideographic"],
|
|
180
|
+
["vMathematical", "v-mathematical"],
|
|
181
|
+
["vectorEffect", "vector-effect"],
|
|
182
|
+
["vertAdvY", "vert-adv-y"],
|
|
183
|
+
["vertOriginX", "vert-origin-x"],
|
|
184
|
+
["vertOriginY", "vert-origin-y"],
|
|
185
|
+
["wordSpacing", "word-spacing"],
|
|
186
|
+
["writingMode", "writing-mode"],
|
|
187
|
+
["xmlnsXlink", "xmlns:xlink"],
|
|
188
|
+
["xHeight", "x-height"]
|
|
189
|
+
]), matchHtmlRegExp = /["'&<>]/;
|
|
190
|
+
function escapeTextForBrowser(text) {
|
|
191
|
+
if ("boolean" === typeof text || "number" === typeof text || "bigint" === typeof text) return "" + text;
|
|
192
|
+
text = "" + text;
|
|
193
|
+
var match = matchHtmlRegExp.exec(text);
|
|
194
|
+
if (match) {
|
|
195
|
+
var html = "", index, lastIndex = 0;
|
|
196
|
+
for (index = match.index; index < text.length; index++) {
|
|
197
|
+
switch (text.charCodeAt(index)) {
|
|
198
|
+
case 34:
|
|
199
|
+
match = """;
|
|
200
|
+
break;
|
|
201
|
+
case 38:
|
|
202
|
+
match = "&";
|
|
203
|
+
break;
|
|
204
|
+
case 39:
|
|
205
|
+
match = "'";
|
|
206
|
+
break;
|
|
207
|
+
case 60:
|
|
208
|
+
match = "<";
|
|
209
|
+
break;
|
|
210
|
+
case 62:
|
|
211
|
+
match = ">";
|
|
212
|
+
break;
|
|
213
|
+
default: continue;
|
|
214
|
+
}
|
|
215
|
+
lastIndex !== index && (html += text.slice(lastIndex, index));
|
|
216
|
+
lastIndex = index + 1;
|
|
217
|
+
html += match;
|
|
218
|
+
}
|
|
219
|
+
text = lastIndex !== index ? html + text.slice(lastIndex, index) : html;
|
|
220
|
+
}
|
|
221
|
+
return text;
|
|
222
|
+
}
|
|
223
|
+
var uppercasePattern = /([A-Z])/g, msPattern = /^ms-/, isJavaScriptProtocol = /^[\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;
|
|
224
|
+
function sanitizeURL(url) {
|
|
225
|
+
return isJavaScriptProtocol.test("" + url) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : url;
|
|
226
|
+
}
|
|
227
|
+
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, sharedNotPendingObject = {
|
|
228
|
+
pending: !1,
|
|
229
|
+
data: null,
|
|
230
|
+
method: null,
|
|
231
|
+
action: null
|
|
232
|
+
}, previousDispatcher = ReactDOMSharedInternals.d;
|
|
233
|
+
ReactDOMSharedInternals.d = {
|
|
234
|
+
f: previousDispatcher.f,
|
|
235
|
+
r: previousDispatcher.r,
|
|
236
|
+
D: prefetchDNS,
|
|
237
|
+
C: preconnect,
|
|
238
|
+
L: preload,
|
|
239
|
+
m: preloadModule,
|
|
240
|
+
X: preinitScript,
|
|
241
|
+
S: preinitStyle,
|
|
242
|
+
M: preinitModuleScript
|
|
243
|
+
};
|
|
244
|
+
var PRELOAD_NO_CREDS = [], currentlyFlushingRenderState = null;
|
|
245
|
+
stringToPrecomputedChunk("\"></template>");
|
|
246
|
+
var startInlineScript = stringToPrecomputedChunk("<script"), endInlineScript = stringToPrecomputedChunk("<\/script>"), startScriptSrc = stringToPrecomputedChunk("<script src=\""), startModuleSrc = stringToPrecomputedChunk("<script type=\"module\" src=\""), scriptNonce = stringToPrecomputedChunk(" nonce=\""), scriptIntegirty = stringToPrecomputedChunk(" integrity=\""), scriptCrossOrigin = stringToPrecomputedChunk(" crossorigin=\""), endAsyncScript = stringToPrecomputedChunk(" async=\"\"><\/script>"), startInlineStyle = stringToPrecomputedChunk("<style"), scriptRegex = /(<\/|<)(s)(cript)/gi;
|
|
247
|
+
function scriptReplacer(match, prefix$1, s, suffix$1) {
|
|
248
|
+
return "" + prefix$1 + ("s" === s ? "\\u0073" : "\\u0053") + suffix$1;
|
|
249
|
+
}
|
|
250
|
+
var importMapScriptStart = stringToPrecomputedChunk("<script type=\"importmap\">"), importMapScriptEnd = stringToPrecomputedChunk("<\/script>");
|
|
251
|
+
function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) {
|
|
252
|
+
externalRuntimeConfig = "string" === typeof nonce ? nonce : nonce && nonce.script;
|
|
253
|
+
var inlineScriptWithNonce = void 0 === externalRuntimeConfig ? startInlineScript : stringToPrecomputedChunk("<script nonce=\"" + escapeTextForBrowser(externalRuntimeConfig) + "\""), nonceStyle = "string" === typeof nonce ? void 0 : nonce && nonce.style, inlineStyleWithNonce = void 0 === nonceStyle ? startInlineStyle : stringToPrecomputedChunk("<style nonce=\"" + escapeTextForBrowser(nonceStyle) + "\""), idPrefix = resumableState.idPrefix, bootstrapChunks = [], bootstrapScriptContent = resumableState.bootstrapScriptContent, bootstrapScripts = resumableState.bootstrapScripts, bootstrapModules = resumableState.bootstrapModules;
|
|
254
|
+
void 0 !== bootstrapScriptContent && (bootstrapChunks.push(inlineScriptWithNonce), pushCompletedShellIdAttribute(bootstrapChunks, resumableState), bootstrapChunks.push(endOfStartTag, stringToChunk(("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer)), endInlineScript));
|
|
255
|
+
bootstrapScriptContent = [];
|
|
256
|
+
void 0 !== importMap && (bootstrapScriptContent.push(importMapScriptStart), bootstrapScriptContent.push(stringToChunk(("" + JSON.stringify(importMap)).replace(scriptRegex, scriptReplacer))), bootstrapScriptContent.push(importMapScriptEnd));
|
|
257
|
+
importMap = onHeaders ? {
|
|
258
|
+
preconnects: "",
|
|
259
|
+
fontPreloads: "",
|
|
260
|
+
highImagePreloads: "",
|
|
261
|
+
remainingCapacity: 2 + ("number" === typeof maxHeadersLength ? maxHeadersLength : 2e3)
|
|
262
|
+
} : null;
|
|
263
|
+
onHeaders = {
|
|
264
|
+
placeholderPrefix: stringToPrecomputedChunk(idPrefix + "P:"),
|
|
265
|
+
segmentPrefix: stringToPrecomputedChunk(idPrefix + "S:"),
|
|
266
|
+
boundaryPrefix: stringToPrecomputedChunk(idPrefix + "B:"),
|
|
267
|
+
startInlineScript: inlineScriptWithNonce,
|
|
268
|
+
startInlineStyle: inlineStyleWithNonce,
|
|
269
|
+
preamble: createPreambleState(),
|
|
270
|
+
externalRuntimeScript: null,
|
|
271
|
+
bootstrapChunks,
|
|
272
|
+
importMapChunks: bootstrapScriptContent,
|
|
273
|
+
onHeaders,
|
|
274
|
+
headers: importMap,
|
|
275
|
+
resets: {
|
|
276
|
+
font: {},
|
|
277
|
+
dns: {},
|
|
278
|
+
connect: {
|
|
279
|
+
default: {},
|
|
280
|
+
anonymous: {},
|
|
281
|
+
credentials: {}
|
|
282
|
+
},
|
|
283
|
+
image: {},
|
|
284
|
+
style: {}
|
|
285
|
+
},
|
|
286
|
+
charsetChunks: [],
|
|
287
|
+
viewportChunks: [],
|
|
288
|
+
hoistableChunks: [],
|
|
289
|
+
preconnects: /* @__PURE__ */ new Set(),
|
|
290
|
+
fontPreloads: /* @__PURE__ */ new Set(),
|
|
291
|
+
highImagePreloads: /* @__PURE__ */ new Set(),
|
|
292
|
+
styles: /* @__PURE__ */ new Map(),
|
|
293
|
+
bootstrapScripts: /* @__PURE__ */ new Set(),
|
|
294
|
+
scripts: /* @__PURE__ */ new Set(),
|
|
295
|
+
bulkPreloads: /* @__PURE__ */ new Set(),
|
|
296
|
+
preloads: {
|
|
297
|
+
images: /* @__PURE__ */ new Map(),
|
|
298
|
+
stylesheets: /* @__PURE__ */ new Map(),
|
|
299
|
+
scripts: /* @__PURE__ */ new Map(),
|
|
300
|
+
moduleScripts: /* @__PURE__ */ new Map()
|
|
301
|
+
},
|
|
302
|
+
nonce: {
|
|
303
|
+
script: externalRuntimeConfig,
|
|
304
|
+
style: nonceStyle
|
|
305
|
+
},
|
|
306
|
+
hoistableState: null,
|
|
307
|
+
stylesToHoist: !1
|
|
308
|
+
};
|
|
309
|
+
if (void 0 !== bootstrapScripts) for (importMap = 0; importMap < bootstrapScripts.length; importMap++) idPrefix = bootstrapScripts[importMap], nonceStyle = inlineScriptWithNonce = void 0, inlineStyleWithNonce = {
|
|
310
|
+
rel: "preload",
|
|
311
|
+
as: "script",
|
|
312
|
+
fetchPriority: "low",
|
|
313
|
+
nonce
|
|
314
|
+
}, "string" === typeof idPrefix ? inlineStyleWithNonce.href = maxHeadersLength = idPrefix : (inlineStyleWithNonce.href = maxHeadersLength = idPrefix.src, inlineStyleWithNonce.integrity = nonceStyle = "string" === typeof idPrefix.integrity ? idPrefix.integrity : void 0, inlineStyleWithNonce.crossOrigin = inlineScriptWithNonce = "string" === typeof idPrefix || null == idPrefix.crossOrigin ? void 0 : "use-credentials" === idPrefix.crossOrigin ? "use-credentials" : ""), idPrefix = resumableState, bootstrapScriptContent = maxHeadersLength, idPrefix.scriptResources[bootstrapScriptContent] = null, idPrefix.moduleScriptResources[bootstrapScriptContent] = null, idPrefix = [], pushLinkImpl(idPrefix, inlineStyleWithNonce), onHeaders.bootstrapScripts.add(idPrefix), bootstrapChunks.push(startScriptSrc, stringToChunk(escapeTextForBrowser(maxHeadersLength)), attributeEnd), externalRuntimeConfig && bootstrapChunks.push(scriptNonce, stringToChunk(escapeTextForBrowser(externalRuntimeConfig)), attributeEnd), "string" === typeof nonceStyle && bootstrapChunks.push(scriptIntegirty, stringToChunk(escapeTextForBrowser(nonceStyle)), attributeEnd), "string" === typeof inlineScriptWithNonce && bootstrapChunks.push(scriptCrossOrigin, stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)), attributeEnd), pushCompletedShellIdAttribute(bootstrapChunks, resumableState), bootstrapChunks.push(endAsyncScript);
|
|
315
|
+
if (void 0 !== bootstrapModules) for (nonce = 0; nonce < bootstrapModules.length; nonce++) nonceStyle = bootstrapModules[nonce], maxHeadersLength = importMap = void 0, inlineScriptWithNonce = {
|
|
316
|
+
rel: "modulepreload",
|
|
317
|
+
fetchPriority: "low",
|
|
318
|
+
nonce: externalRuntimeConfig
|
|
319
|
+
}, "string" === typeof nonceStyle ? inlineScriptWithNonce.href = bootstrapScripts = nonceStyle : (inlineScriptWithNonce.href = bootstrapScripts = nonceStyle.src, inlineScriptWithNonce.integrity = maxHeadersLength = "string" === typeof nonceStyle.integrity ? nonceStyle.integrity : void 0, inlineScriptWithNonce.crossOrigin = importMap = "string" === typeof nonceStyle || null == nonceStyle.crossOrigin ? void 0 : "use-credentials" === nonceStyle.crossOrigin ? "use-credentials" : ""), nonceStyle = resumableState, inlineStyleWithNonce = bootstrapScripts, nonceStyle.scriptResources[inlineStyleWithNonce] = null, nonceStyle.moduleScriptResources[inlineStyleWithNonce] = null, nonceStyle = [], pushLinkImpl(nonceStyle, inlineScriptWithNonce), onHeaders.bootstrapScripts.add(nonceStyle), bootstrapChunks.push(startModuleSrc, stringToChunk(escapeTextForBrowser(bootstrapScripts)), attributeEnd), externalRuntimeConfig && bootstrapChunks.push(scriptNonce, stringToChunk(escapeTextForBrowser(externalRuntimeConfig)), attributeEnd), "string" === typeof maxHeadersLength && bootstrapChunks.push(scriptIntegirty, stringToChunk(escapeTextForBrowser(maxHeadersLength)), attributeEnd), "string" === typeof importMap && bootstrapChunks.push(scriptCrossOrigin, stringToChunk(escapeTextForBrowser(importMap)), attributeEnd), pushCompletedShellIdAttribute(bootstrapChunks, resumableState), bootstrapChunks.push(endAsyncScript);
|
|
320
|
+
return onHeaders;
|
|
321
|
+
}
|
|
322
|
+
function createResumableState(identifierPrefix, externalRuntimeConfig, bootstrapScriptContent, bootstrapScripts, bootstrapModules) {
|
|
323
|
+
return {
|
|
324
|
+
idPrefix: void 0 === identifierPrefix ? "" : identifierPrefix,
|
|
325
|
+
nextFormID: 0,
|
|
326
|
+
streamingFormat: 0,
|
|
327
|
+
bootstrapScriptContent,
|
|
328
|
+
bootstrapScripts,
|
|
329
|
+
bootstrapModules,
|
|
330
|
+
instructions: 0,
|
|
331
|
+
hasBody: !1,
|
|
332
|
+
hasHtml: !1,
|
|
333
|
+
unknownResources: {},
|
|
334
|
+
dnsResources: {},
|
|
335
|
+
connectResources: {
|
|
336
|
+
default: {},
|
|
337
|
+
anonymous: {},
|
|
338
|
+
credentials: {}
|
|
339
|
+
},
|
|
340
|
+
imageResources: {},
|
|
341
|
+
styleResources: {},
|
|
342
|
+
scriptResources: {},
|
|
343
|
+
moduleUnknownResources: {},
|
|
344
|
+
moduleScriptResources: {}
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
function createPreambleState() {
|
|
348
|
+
return {
|
|
349
|
+
htmlChunks: null,
|
|
350
|
+
headChunks: null,
|
|
351
|
+
bodyChunks: null
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
function createFormatContext(insertionMode, selectedValue, tagScope, viewTransition) {
|
|
355
|
+
return {
|
|
356
|
+
insertionMode,
|
|
357
|
+
selectedValue,
|
|
358
|
+
tagScope,
|
|
359
|
+
viewTransition
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
function createRootFormatContext(namespaceURI) {
|
|
363
|
+
return createFormatContext("http://www.w3.org/2000/svg" === namespaceURI ? 4 : "http://www.w3.org/1998/Math/MathML" === namespaceURI ? 5 : 0, null, 0, null);
|
|
364
|
+
}
|
|
365
|
+
function getChildFormatContext(parentContext, type, props) {
|
|
366
|
+
var subtreeScope = parentContext.tagScope & -25;
|
|
367
|
+
switch (type) {
|
|
368
|
+
case "noscript": return createFormatContext(2, null, subtreeScope | 1, null);
|
|
369
|
+
case "select": return createFormatContext(2, null != props.value ? props.value : props.defaultValue, subtreeScope, null);
|
|
370
|
+
case "svg": return createFormatContext(4, null, subtreeScope, null);
|
|
371
|
+
case "picture": return createFormatContext(2, null, subtreeScope | 2, null);
|
|
372
|
+
case "math": return createFormatContext(5, null, subtreeScope, null);
|
|
373
|
+
case "foreignObject": return createFormatContext(2, null, subtreeScope, null);
|
|
374
|
+
case "table": return createFormatContext(6, null, subtreeScope, null);
|
|
375
|
+
case "thead":
|
|
376
|
+
case "tbody":
|
|
377
|
+
case "tfoot": return createFormatContext(7, null, subtreeScope, null);
|
|
378
|
+
case "colgroup": return createFormatContext(9, null, subtreeScope, null);
|
|
379
|
+
case "tr": return createFormatContext(8, null, subtreeScope, null);
|
|
380
|
+
case "head":
|
|
381
|
+
if (2 > parentContext.insertionMode) return createFormatContext(3, null, subtreeScope, null);
|
|
382
|
+
break;
|
|
383
|
+
case "html": if (0 === parentContext.insertionMode) return createFormatContext(1, null, subtreeScope, null);
|
|
384
|
+
}
|
|
385
|
+
return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode ? createFormatContext(2, null, subtreeScope, null) : parentContext.tagScope !== subtreeScope ? createFormatContext(parentContext.insertionMode, parentContext.selectedValue, subtreeScope, null) : parentContext;
|
|
386
|
+
}
|
|
387
|
+
function getSuspenseViewTransition(parentViewTransition) {
|
|
388
|
+
return null === parentViewTransition ? null : {
|
|
389
|
+
update: parentViewTransition.update,
|
|
390
|
+
enter: "none",
|
|
391
|
+
exit: "none",
|
|
392
|
+
share: parentViewTransition.update,
|
|
393
|
+
name: parentViewTransition.autoName,
|
|
394
|
+
autoName: parentViewTransition.autoName,
|
|
395
|
+
nameIdx: 0
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
|
399
|
+
parentContext.tagScope & 32 && (resumableState.instructions |= 128);
|
|
400
|
+
return createFormatContext(parentContext.insertionMode, parentContext.selectedValue, parentContext.tagScope | 12, getSuspenseViewTransition(parentContext.viewTransition));
|
|
401
|
+
}
|
|
402
|
+
function getSuspenseContentFormatContext(resumableState, parentContext) {
|
|
403
|
+
resumableState = getSuspenseViewTransition(parentContext.viewTransition);
|
|
404
|
+
var subtreeScope = parentContext.tagScope | 16;
|
|
405
|
+
null !== resumableState && "none" !== resumableState.share && (subtreeScope |= 64);
|
|
406
|
+
return createFormatContext(parentContext.insertionMode, parentContext.selectedValue, subtreeScope, resumableState);
|
|
407
|
+
}
|
|
408
|
+
var textSeparator = stringToPrecomputedChunk("<!-- -->");
|
|
409
|
+
function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
410
|
+
if ("" === text) return textEmbedded;
|
|
411
|
+
textEmbedded && target.push(textSeparator);
|
|
412
|
+
target.push(stringToChunk(escapeTextForBrowser(text)));
|
|
413
|
+
return !0;
|
|
414
|
+
}
|
|
415
|
+
var styleNameCache = /* @__PURE__ */ new Map(), styleAttributeStart = stringToPrecomputedChunk(" style=\""), styleAssign = stringToPrecomputedChunk(":"), styleSeparator = stringToPrecomputedChunk(";");
|
|
416
|
+
function pushStyleAttribute(target, style) {
|
|
417
|
+
if ("object" !== typeof style) throw Error(formatProdErrorMessage(62));
|
|
418
|
+
var isFirst = !0, styleName;
|
|
419
|
+
for (styleName in style) if (hasOwnProperty.call(style, styleName)) {
|
|
420
|
+
var styleValue = style[styleName];
|
|
421
|
+
if (null != styleValue && "boolean" !== typeof styleValue && "" !== styleValue) {
|
|
422
|
+
if (0 === styleName.indexOf("--")) {
|
|
423
|
+
var nameChunk = stringToChunk(escapeTextForBrowser(styleName));
|
|
424
|
+
styleValue = stringToChunk(escapeTextForBrowser(("" + styleValue).trim()));
|
|
425
|
+
} else nameChunk = styleNameCache.get(styleName), void 0 === nameChunk && (nameChunk = stringToPrecomputedChunk(escapeTextForBrowser(styleName.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern, "-ms-"))), styleNameCache.set(styleName, nameChunk)), styleValue = "number" === typeof styleValue ? 0 === styleValue || unitlessNumbers.has(styleName) ? stringToChunk("" + styleValue) : stringToChunk(styleValue + "px") : stringToChunk(escapeTextForBrowser(("" + styleValue).trim()));
|
|
426
|
+
isFirst ? (isFirst = !1, target.push(styleAttributeStart, nameChunk, styleAssign, styleValue)) : target.push(styleSeparator, nameChunk, styleAssign, styleValue);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
isFirst || target.push(attributeEnd);
|
|
430
|
+
}
|
|
431
|
+
var attributeSeparator = stringToPrecomputedChunk(" "), attributeAssign = stringToPrecomputedChunk("=\""), attributeEnd = stringToPrecomputedChunk("\""), attributeEmptyString = stringToPrecomputedChunk("=\"\"");
|
|
432
|
+
function pushBooleanAttribute(target, name, value) {
|
|
433
|
+
value && "function" !== typeof value && "symbol" !== typeof value && target.push(attributeSeparator, stringToChunk(name), attributeEmptyString);
|
|
434
|
+
}
|
|
435
|
+
function pushStringAttribute(target, name, value) {
|
|
436
|
+
"function" !== typeof value && "symbol" !== typeof value && "boolean" !== typeof value && target.push(attributeSeparator, stringToChunk(name), attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
|
|
437
|
+
}
|
|
438
|
+
var actionJavaScriptURL = stringToPrecomputedChunk(escapeTextForBrowser("javascript:throw new Error('React form unexpectedly submitted.')")), startHiddenInputChunk = stringToPrecomputedChunk("<input type=\"hidden\"");
|
|
439
|
+
function pushAdditionalFormField(value, key) {
|
|
440
|
+
this.push(startHiddenInputChunk);
|
|
441
|
+
validateAdditionalFormField(value);
|
|
442
|
+
pushStringAttribute(this, "name", key);
|
|
443
|
+
pushStringAttribute(this, "value", value);
|
|
444
|
+
this.push(endOfStartTagSelfClosing);
|
|
445
|
+
}
|
|
446
|
+
function validateAdditionalFormField(value) {
|
|
447
|
+
if ("string" !== typeof value) throw Error(formatProdErrorMessage(480));
|
|
448
|
+
}
|
|
449
|
+
function getCustomFormFields(resumableState, formAction) {
|
|
450
|
+
if ("function" === typeof formAction.$$FORM_ACTION) {
|
|
451
|
+
var id = resumableState.nextFormID++;
|
|
452
|
+
resumableState = resumableState.idPrefix + id;
|
|
453
|
+
try {
|
|
454
|
+
var customFields = formAction.$$FORM_ACTION(resumableState);
|
|
455
|
+
if (customFields) customFields.data?.forEach(validateAdditionalFormField);
|
|
456
|
+
return customFields;
|
|
457
|
+
} catch (x) {
|
|
458
|
+
if ("object" === typeof x && null !== x && "function" === typeof x.then) throw x;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
return null;
|
|
462
|
+
}
|
|
463
|
+
function pushFormActionAttribute(target, resumableState, renderState, formAction, formEncType, formMethod, formTarget, name) {
|
|
464
|
+
var formData = null;
|
|
465
|
+
if ("function" === typeof formAction) {
|
|
466
|
+
var customFields = getCustomFormFields(resumableState, formAction);
|
|
467
|
+
null !== customFields ? (name = customFields.name, formAction = customFields.action || "", formEncType = customFields.encType, formMethod = customFields.method, formTarget = customFields.target, formData = customFields.data) : (target.push(attributeSeparator, stringToChunk("formAction"), attributeAssign, actionJavaScriptURL, attributeEnd), formTarget = formMethod = formEncType = formAction = name = null, injectFormReplayingRuntime(resumableState, renderState));
|
|
468
|
+
}
|
|
469
|
+
null != name && pushAttribute(target, "name", name);
|
|
470
|
+
null != formAction && pushAttribute(target, "formAction", formAction);
|
|
471
|
+
null != formEncType && pushAttribute(target, "formEncType", formEncType);
|
|
472
|
+
null != formMethod && pushAttribute(target, "formMethod", formMethod);
|
|
473
|
+
null != formTarget && pushAttribute(target, "formTarget", formTarget);
|
|
474
|
+
return formData;
|
|
475
|
+
}
|
|
476
|
+
function pushAttribute(target, name, value) {
|
|
477
|
+
switch (name) {
|
|
478
|
+
case "className":
|
|
479
|
+
pushStringAttribute(target, "class", value);
|
|
480
|
+
break;
|
|
481
|
+
case "tabIndex":
|
|
482
|
+
pushStringAttribute(target, "tabindex", value);
|
|
483
|
+
break;
|
|
484
|
+
case "dir":
|
|
485
|
+
case "role":
|
|
486
|
+
case "viewBox":
|
|
487
|
+
case "width":
|
|
488
|
+
case "height":
|
|
489
|
+
pushStringAttribute(target, name, value);
|
|
490
|
+
break;
|
|
491
|
+
case "style":
|
|
492
|
+
pushStyleAttribute(target, value);
|
|
493
|
+
break;
|
|
494
|
+
case "src":
|
|
495
|
+
case "href": if ("" === value) break;
|
|
496
|
+
case "action":
|
|
497
|
+
case "formAction":
|
|
498
|
+
if (null == value || "function" === typeof value || "symbol" === typeof value || "boolean" === typeof value) break;
|
|
499
|
+
value = sanitizeURL("" + value);
|
|
500
|
+
target.push(attributeSeparator, stringToChunk(name), attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
|
|
501
|
+
break;
|
|
502
|
+
case "defaultValue":
|
|
503
|
+
case "defaultChecked":
|
|
504
|
+
case "innerHTML":
|
|
505
|
+
case "suppressContentEditableWarning":
|
|
506
|
+
case "suppressHydrationWarning":
|
|
507
|
+
case "ref": break;
|
|
508
|
+
case "autoFocus":
|
|
509
|
+
case "multiple":
|
|
510
|
+
case "muted":
|
|
511
|
+
pushBooleanAttribute(target, name.toLowerCase(), value);
|
|
512
|
+
break;
|
|
513
|
+
case "xlinkHref":
|
|
514
|
+
if ("function" === typeof value || "symbol" === typeof value || "boolean" === typeof value) break;
|
|
515
|
+
value = sanitizeURL("" + value);
|
|
516
|
+
target.push(attributeSeparator, stringToChunk("xlink:href"), attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
|
|
517
|
+
break;
|
|
518
|
+
case "contentEditable":
|
|
519
|
+
case "spellCheck":
|
|
520
|
+
case "draggable":
|
|
521
|
+
case "value":
|
|
522
|
+
case "autoReverse":
|
|
523
|
+
case "externalResourcesRequired":
|
|
524
|
+
case "focusable":
|
|
525
|
+
case "preserveAlpha":
|
|
526
|
+
"function" !== typeof value && "symbol" !== typeof value && target.push(attributeSeparator, stringToChunk(name), attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
|
|
527
|
+
break;
|
|
528
|
+
case "inert":
|
|
529
|
+
case "allowFullScreen":
|
|
530
|
+
case "async":
|
|
531
|
+
case "autoPlay":
|
|
532
|
+
case "controls":
|
|
533
|
+
case "default":
|
|
534
|
+
case "defer":
|
|
535
|
+
case "disabled":
|
|
536
|
+
case "disablePictureInPicture":
|
|
537
|
+
case "disableRemotePlayback":
|
|
538
|
+
case "formNoValidate":
|
|
539
|
+
case "hidden":
|
|
540
|
+
case "loop":
|
|
541
|
+
case "noModule":
|
|
542
|
+
case "noValidate":
|
|
543
|
+
case "open":
|
|
544
|
+
case "playsInline":
|
|
545
|
+
case "readOnly":
|
|
546
|
+
case "required":
|
|
547
|
+
case "reversed":
|
|
548
|
+
case "scoped":
|
|
549
|
+
case "seamless":
|
|
550
|
+
case "itemScope":
|
|
551
|
+
value && "function" !== typeof value && "symbol" !== typeof value && target.push(attributeSeparator, stringToChunk(name), attributeEmptyString);
|
|
552
|
+
break;
|
|
553
|
+
case "capture":
|
|
554
|
+
case "download":
|
|
555
|
+
!0 === value ? target.push(attributeSeparator, stringToChunk(name), attributeEmptyString) : !1 !== value && "function" !== typeof value && "symbol" !== typeof value && target.push(attributeSeparator, stringToChunk(name), attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
|
|
556
|
+
break;
|
|
557
|
+
case "cols":
|
|
558
|
+
case "rows":
|
|
559
|
+
case "size":
|
|
560
|
+
case "span":
|
|
561
|
+
"function" !== typeof value && "symbol" !== typeof value && !isNaN(value) && 1 <= value && target.push(attributeSeparator, stringToChunk(name), attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
|
|
562
|
+
break;
|
|
563
|
+
case "rowSpan":
|
|
564
|
+
case "start":
|
|
565
|
+
"function" === typeof value || "symbol" === typeof value || isNaN(value) || target.push(attributeSeparator, stringToChunk(name), attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
|
|
566
|
+
break;
|
|
567
|
+
case "xlinkActuate":
|
|
568
|
+
pushStringAttribute(target, "xlink:actuate", value);
|
|
569
|
+
break;
|
|
570
|
+
case "xlinkArcrole":
|
|
571
|
+
pushStringAttribute(target, "xlink:arcrole", value);
|
|
572
|
+
break;
|
|
573
|
+
case "xlinkRole":
|
|
574
|
+
pushStringAttribute(target, "xlink:role", value);
|
|
575
|
+
break;
|
|
576
|
+
case "xlinkShow":
|
|
577
|
+
pushStringAttribute(target, "xlink:show", value);
|
|
578
|
+
break;
|
|
579
|
+
case "xlinkTitle":
|
|
580
|
+
pushStringAttribute(target, "xlink:title", value);
|
|
581
|
+
break;
|
|
582
|
+
case "xlinkType":
|
|
583
|
+
pushStringAttribute(target, "xlink:type", value);
|
|
584
|
+
break;
|
|
585
|
+
case "xmlBase":
|
|
586
|
+
pushStringAttribute(target, "xml:base", value);
|
|
587
|
+
break;
|
|
588
|
+
case "xmlLang":
|
|
589
|
+
pushStringAttribute(target, "xml:lang", value);
|
|
590
|
+
break;
|
|
591
|
+
case "xmlSpace":
|
|
592
|
+
pushStringAttribute(target, "xml:space", value);
|
|
593
|
+
break;
|
|
594
|
+
default: if (!(2 < name.length) || "o" !== name[0] && "O" !== name[0] || "n" !== name[1] && "N" !== name[1]) {
|
|
595
|
+
if (name = aliases.get(name) || name, isAttributeNameSafe(name)) {
|
|
596
|
+
switch (typeof value) {
|
|
597
|
+
case "function":
|
|
598
|
+
case "symbol": return;
|
|
599
|
+
case "boolean":
|
|
600
|
+
var prefix$8 = name.toLowerCase().slice(0, 5);
|
|
601
|
+
if ("data-" !== prefix$8 && "aria-" !== prefix$8) return;
|
|
602
|
+
}
|
|
603
|
+
target.push(attributeSeparator, stringToChunk(name), attributeAssign, stringToChunk(escapeTextForBrowser(value)), attributeEnd);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
var endOfStartTag = stringToPrecomputedChunk(">"), endOfStartTagSelfClosing = stringToPrecomputedChunk("/>");
|
|
609
|
+
function pushInnerHTML(target, innerHTML, children) {
|
|
610
|
+
if (null != innerHTML) {
|
|
611
|
+
if (null != children) throw Error(formatProdErrorMessage(60));
|
|
612
|
+
if ("object" !== typeof innerHTML || !("__html" in innerHTML)) throw Error(formatProdErrorMessage(61));
|
|
613
|
+
innerHTML = innerHTML.__html;
|
|
614
|
+
null !== innerHTML && void 0 !== innerHTML && target.push(stringToChunk("" + innerHTML));
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
function flattenOptionChildren(children) {
|
|
618
|
+
var content = "";
|
|
619
|
+
React.Children.forEach(children, function(child) {
|
|
620
|
+
null != child && (content += child);
|
|
621
|
+
});
|
|
622
|
+
return content;
|
|
623
|
+
}
|
|
624
|
+
var selectedMarkerAttribute = stringToPrecomputedChunk(" selected=\"\""), formReplayingRuntimeScript = stringToPrecomputedChunk("addEventListener(\"submit\",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute(\"formAction\");null!=f&&(e=f,b=null)}\"javascript:throw new Error('React form unexpectedly submitted.')\"===e&&(a.preventDefault(),b?(a=document.createElement(\"input\"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});");
|
|
625
|
+
function injectFormReplayingRuntime(resumableState, renderState) {
|
|
626
|
+
if (0 === (resumableState.instructions & 16)) {
|
|
627
|
+
resumableState.instructions |= 16;
|
|
628
|
+
var preamble = renderState.preamble, bootstrapChunks = renderState.bootstrapChunks;
|
|
629
|
+
(preamble.htmlChunks || preamble.headChunks) && 0 === bootstrapChunks.length ? (bootstrapChunks.push(renderState.startInlineScript), pushCompletedShellIdAttribute(bootstrapChunks, resumableState), bootstrapChunks.push(endOfStartTag, formReplayingRuntimeScript, endInlineScript)) : bootstrapChunks.unshift(renderState.startInlineScript, endOfStartTag, formReplayingRuntimeScript, endInlineScript);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
var formStateMarkerIsMatching = stringToPrecomputedChunk("<!--F!-->"), formStateMarkerIsNotMatching = stringToPrecomputedChunk("<!--F-->");
|
|
633
|
+
function pushLinkImpl(target, props) {
|
|
634
|
+
target.push(startChunkForTag("link"));
|
|
635
|
+
for (var propKey in props) if (hasOwnProperty.call(props, propKey)) {
|
|
636
|
+
var propValue = props[propKey];
|
|
637
|
+
if (null != propValue) switch (propKey) {
|
|
638
|
+
case "children":
|
|
639
|
+
case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(399, "link"));
|
|
640
|
+
default: pushAttribute(target, propKey, propValue);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
target.push(endOfStartTagSelfClosing);
|
|
644
|
+
return null;
|
|
645
|
+
}
|
|
646
|
+
var styleRegex = /(<\/|<)(s)(tyle)/gi;
|
|
647
|
+
function styleReplacer(match, prefix$1, s, suffix$1) {
|
|
648
|
+
return "" + prefix$1 + ("s" === s ? "\\73 " : "\\53 ") + suffix$1;
|
|
649
|
+
}
|
|
650
|
+
function pushSelfClosing(target, props, tag) {
|
|
651
|
+
target.push(startChunkForTag(tag));
|
|
652
|
+
for (var propKey in props) if (hasOwnProperty.call(props, propKey)) {
|
|
653
|
+
var propValue = props[propKey];
|
|
654
|
+
if (null != propValue) switch (propKey) {
|
|
655
|
+
case "children":
|
|
656
|
+
case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(399, tag));
|
|
657
|
+
default: pushAttribute(target, propKey, propValue);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
target.push(endOfStartTagSelfClosing);
|
|
661
|
+
return null;
|
|
662
|
+
}
|
|
663
|
+
function pushTitleImpl(target, props) {
|
|
664
|
+
target.push(startChunkForTag("title"));
|
|
665
|
+
var children = null, innerHTML = null, propKey;
|
|
666
|
+
for (propKey in props) if (hasOwnProperty.call(props, propKey)) {
|
|
667
|
+
var propValue = props[propKey];
|
|
668
|
+
if (null != propValue) switch (propKey) {
|
|
669
|
+
case "children":
|
|
670
|
+
children = propValue;
|
|
671
|
+
break;
|
|
672
|
+
case "dangerouslySetInnerHTML":
|
|
673
|
+
innerHTML = propValue;
|
|
674
|
+
break;
|
|
675
|
+
default: pushAttribute(target, propKey, propValue);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
target.push(endOfStartTag);
|
|
679
|
+
props = Array.isArray(children) ? 2 > children.length ? children[0] : null : children;
|
|
680
|
+
"function" !== typeof props && "symbol" !== typeof props && null !== props && void 0 !== props && target.push(stringToChunk(escapeTextForBrowser("" + props)));
|
|
681
|
+
pushInnerHTML(target, innerHTML, children);
|
|
682
|
+
target.push(endChunkForTag("title"));
|
|
683
|
+
return null;
|
|
684
|
+
}
|
|
685
|
+
var headPreambleContributionChunk = stringToPrecomputedChunk("<!--head-->"), bodyPreambleContributionChunk = stringToPrecomputedChunk("<!--body-->"), htmlPreambleContributionChunk = stringToPrecomputedChunk("<!--html-->");
|
|
686
|
+
function pushScriptImpl(target, props) {
|
|
687
|
+
target.push(startChunkForTag("script"));
|
|
688
|
+
var children = null, innerHTML = null, propKey;
|
|
689
|
+
for (propKey in props) if (hasOwnProperty.call(props, propKey)) {
|
|
690
|
+
var propValue = props[propKey];
|
|
691
|
+
if (null != propValue) switch (propKey) {
|
|
692
|
+
case "children":
|
|
693
|
+
children = propValue;
|
|
694
|
+
break;
|
|
695
|
+
case "dangerouslySetInnerHTML":
|
|
696
|
+
innerHTML = propValue;
|
|
697
|
+
break;
|
|
698
|
+
default: pushAttribute(target, propKey, propValue);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
target.push(endOfStartTag);
|
|
702
|
+
pushInnerHTML(target, innerHTML, children);
|
|
703
|
+
"string" === typeof children && target.push(stringToChunk(("" + children).replace(scriptRegex, scriptReplacer)));
|
|
704
|
+
target.push(endChunkForTag("script"));
|
|
705
|
+
return null;
|
|
706
|
+
}
|
|
707
|
+
function pushStartSingletonElement(target, props, tag) {
|
|
708
|
+
target.push(startChunkForTag(tag));
|
|
709
|
+
var innerHTML = tag = null, propKey;
|
|
710
|
+
for (propKey in props) if (hasOwnProperty.call(props, propKey)) {
|
|
711
|
+
var propValue = props[propKey];
|
|
712
|
+
if (null != propValue) switch (propKey) {
|
|
713
|
+
case "children":
|
|
714
|
+
tag = propValue;
|
|
715
|
+
break;
|
|
716
|
+
case "dangerouslySetInnerHTML":
|
|
717
|
+
innerHTML = propValue;
|
|
718
|
+
break;
|
|
719
|
+
default: pushAttribute(target, propKey, propValue);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
target.push(endOfStartTag);
|
|
723
|
+
pushInnerHTML(target, innerHTML, tag);
|
|
724
|
+
return tag;
|
|
725
|
+
}
|
|
726
|
+
function pushStartGenericElement(target, props, tag) {
|
|
727
|
+
target.push(startChunkForTag(tag));
|
|
728
|
+
var innerHTML = tag = null, propKey;
|
|
729
|
+
for (propKey in props) if (hasOwnProperty.call(props, propKey)) {
|
|
730
|
+
var propValue = props[propKey];
|
|
731
|
+
if (null != propValue) switch (propKey) {
|
|
732
|
+
case "children":
|
|
733
|
+
tag = propValue;
|
|
734
|
+
break;
|
|
735
|
+
case "dangerouslySetInnerHTML":
|
|
736
|
+
innerHTML = propValue;
|
|
737
|
+
break;
|
|
738
|
+
default: pushAttribute(target, propKey, propValue);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
target.push(endOfStartTag);
|
|
742
|
+
pushInnerHTML(target, innerHTML, tag);
|
|
743
|
+
return "string" === typeof tag ? (target.push(stringToChunk(escapeTextForBrowser(tag))), null) : tag;
|
|
744
|
+
}
|
|
745
|
+
var leadingNewline = stringToPrecomputedChunk("\n"), VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, validatedTagCache = /* @__PURE__ */ new Map();
|
|
746
|
+
function startChunkForTag(tag) {
|
|
747
|
+
var tagStartChunk = validatedTagCache.get(tag);
|
|
748
|
+
if (void 0 === tagStartChunk) {
|
|
749
|
+
if (!VALID_TAG_REGEX.test(tag)) throw Error(formatProdErrorMessage(65, tag));
|
|
750
|
+
tagStartChunk = stringToPrecomputedChunk("<" + tag);
|
|
751
|
+
validatedTagCache.set(tag, tagStartChunk);
|
|
752
|
+
}
|
|
753
|
+
return tagStartChunk;
|
|
754
|
+
}
|
|
755
|
+
var doctypeChunk = stringToPrecomputedChunk("<!DOCTYPE html>");
|
|
756
|
+
function pushStartInstance(target$jscomp$0, type, props, resumableState, renderState, preambleState, hoistableState, formatContext, textEmbedded) {
|
|
757
|
+
switch (type) {
|
|
758
|
+
case "div":
|
|
759
|
+
case "span":
|
|
760
|
+
case "svg":
|
|
761
|
+
case "path": break;
|
|
762
|
+
case "a":
|
|
763
|
+
target$jscomp$0.push(startChunkForTag("a"));
|
|
764
|
+
var children = null, innerHTML = null, propKey;
|
|
765
|
+
for (propKey in props) if (hasOwnProperty.call(props, propKey)) {
|
|
766
|
+
var propValue = props[propKey];
|
|
767
|
+
if (null != propValue) switch (propKey) {
|
|
768
|
+
case "children":
|
|
769
|
+
children = propValue;
|
|
770
|
+
break;
|
|
771
|
+
case "dangerouslySetInnerHTML":
|
|
772
|
+
innerHTML = propValue;
|
|
773
|
+
break;
|
|
774
|
+
case "href":
|
|
775
|
+
"" === propValue ? pushStringAttribute(target$jscomp$0, "href", "") : pushAttribute(target$jscomp$0, propKey, propValue);
|
|
776
|
+
break;
|
|
777
|
+
default: pushAttribute(target$jscomp$0, propKey, propValue);
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
target$jscomp$0.push(endOfStartTag);
|
|
781
|
+
pushInnerHTML(target$jscomp$0, innerHTML, children);
|
|
782
|
+
if ("string" === typeof children) {
|
|
783
|
+
target$jscomp$0.push(stringToChunk(escapeTextForBrowser(children)));
|
|
784
|
+
var JSCompiler_inline_result = null;
|
|
785
|
+
} else JSCompiler_inline_result = children;
|
|
786
|
+
return JSCompiler_inline_result;
|
|
787
|
+
case "g":
|
|
788
|
+
case "p":
|
|
789
|
+
case "li": break;
|
|
790
|
+
case "select":
|
|
791
|
+
target$jscomp$0.push(startChunkForTag("select"));
|
|
792
|
+
var children$jscomp$0 = null, innerHTML$jscomp$0 = null, propKey$jscomp$0;
|
|
793
|
+
for (propKey$jscomp$0 in props) if (hasOwnProperty.call(props, propKey$jscomp$0)) {
|
|
794
|
+
var propValue$jscomp$0 = props[propKey$jscomp$0];
|
|
795
|
+
if (null != propValue$jscomp$0) switch (propKey$jscomp$0) {
|
|
796
|
+
case "children":
|
|
797
|
+
children$jscomp$0 = propValue$jscomp$0;
|
|
798
|
+
break;
|
|
799
|
+
case "dangerouslySetInnerHTML":
|
|
800
|
+
innerHTML$jscomp$0 = propValue$jscomp$0;
|
|
801
|
+
break;
|
|
802
|
+
case "defaultValue":
|
|
803
|
+
case "value": break;
|
|
804
|
+
default: pushAttribute(target$jscomp$0, propKey$jscomp$0, propValue$jscomp$0);
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
target$jscomp$0.push(endOfStartTag);
|
|
808
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
|
|
809
|
+
return children$jscomp$0;
|
|
810
|
+
case "option":
|
|
811
|
+
var selectedValue = formatContext.selectedValue;
|
|
812
|
+
target$jscomp$0.push(startChunkForTag("option"));
|
|
813
|
+
var children$jscomp$1 = null, value = null, selected = null, innerHTML$jscomp$1 = null, propKey$jscomp$1;
|
|
814
|
+
for (propKey$jscomp$1 in props) if (hasOwnProperty.call(props, propKey$jscomp$1)) {
|
|
815
|
+
var propValue$jscomp$1 = props[propKey$jscomp$1];
|
|
816
|
+
if (null != propValue$jscomp$1) switch (propKey$jscomp$1) {
|
|
817
|
+
case "children":
|
|
818
|
+
children$jscomp$1 = propValue$jscomp$1;
|
|
819
|
+
break;
|
|
820
|
+
case "selected":
|
|
821
|
+
selected = propValue$jscomp$1;
|
|
822
|
+
break;
|
|
823
|
+
case "dangerouslySetInnerHTML":
|
|
824
|
+
innerHTML$jscomp$1 = propValue$jscomp$1;
|
|
825
|
+
break;
|
|
826
|
+
case "value": value = propValue$jscomp$1;
|
|
827
|
+
default: pushAttribute(target$jscomp$0, propKey$jscomp$1, propValue$jscomp$1);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
if (null != selectedValue) {
|
|
831
|
+
var stringValue = null !== value ? "" + value : flattenOptionChildren(children$jscomp$1);
|
|
832
|
+
if (isArrayImpl(selectedValue)) {
|
|
833
|
+
for (var i = 0; i < selectedValue.length; i++) if ("" + selectedValue[i] === stringValue) {
|
|
834
|
+
target$jscomp$0.push(selectedMarkerAttribute);
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
} else "" + selectedValue === stringValue && target$jscomp$0.push(selectedMarkerAttribute);
|
|
838
|
+
} else selected && target$jscomp$0.push(selectedMarkerAttribute);
|
|
839
|
+
target$jscomp$0.push(endOfStartTag);
|
|
840
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$1, children$jscomp$1);
|
|
841
|
+
return children$jscomp$1;
|
|
842
|
+
case "textarea":
|
|
843
|
+
target$jscomp$0.push(startChunkForTag("textarea"));
|
|
844
|
+
var value$jscomp$0 = null, defaultValue = null, children$jscomp$2 = null, propKey$jscomp$2;
|
|
845
|
+
for (propKey$jscomp$2 in props) if (hasOwnProperty.call(props, propKey$jscomp$2)) {
|
|
846
|
+
var propValue$jscomp$2 = props[propKey$jscomp$2];
|
|
847
|
+
if (null != propValue$jscomp$2) switch (propKey$jscomp$2) {
|
|
848
|
+
case "children":
|
|
849
|
+
children$jscomp$2 = propValue$jscomp$2;
|
|
850
|
+
break;
|
|
851
|
+
case "value":
|
|
852
|
+
value$jscomp$0 = propValue$jscomp$2;
|
|
853
|
+
break;
|
|
854
|
+
case "defaultValue":
|
|
855
|
+
defaultValue = propValue$jscomp$2;
|
|
856
|
+
break;
|
|
857
|
+
case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(91));
|
|
858
|
+
default: pushAttribute(target$jscomp$0, propKey$jscomp$2, propValue$jscomp$2);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
null === value$jscomp$0 && null !== defaultValue && (value$jscomp$0 = defaultValue);
|
|
862
|
+
target$jscomp$0.push(endOfStartTag);
|
|
863
|
+
if (null != children$jscomp$2) {
|
|
864
|
+
if (null != value$jscomp$0) throw Error(formatProdErrorMessage(92));
|
|
865
|
+
if (isArrayImpl(children$jscomp$2)) {
|
|
866
|
+
if (1 < children$jscomp$2.length) throw Error(formatProdErrorMessage(93));
|
|
867
|
+
value$jscomp$0 = "" + children$jscomp$2[0];
|
|
868
|
+
}
|
|
869
|
+
value$jscomp$0 = "" + children$jscomp$2;
|
|
870
|
+
}
|
|
871
|
+
"string" === typeof value$jscomp$0 && "\n" === value$jscomp$0[0] && target$jscomp$0.push(leadingNewline);
|
|
872
|
+
null !== value$jscomp$0 && target$jscomp$0.push(stringToChunk(escapeTextForBrowser("" + value$jscomp$0)));
|
|
873
|
+
return null;
|
|
874
|
+
case "input":
|
|
875
|
+
target$jscomp$0.push(startChunkForTag("input"));
|
|
876
|
+
var name = null, formAction = null, formEncType = null, formMethod = null, formTarget = null, value$jscomp$1 = null, defaultValue$jscomp$0 = null, checked = null, defaultChecked = null, propKey$jscomp$3;
|
|
877
|
+
for (propKey$jscomp$3 in props) if (hasOwnProperty.call(props, propKey$jscomp$3)) {
|
|
878
|
+
var propValue$jscomp$3 = props[propKey$jscomp$3];
|
|
879
|
+
if (null != propValue$jscomp$3) switch (propKey$jscomp$3) {
|
|
880
|
+
case "children":
|
|
881
|
+
case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(399, "input"));
|
|
882
|
+
case "name":
|
|
883
|
+
name = propValue$jscomp$3;
|
|
884
|
+
break;
|
|
885
|
+
case "formAction":
|
|
886
|
+
formAction = propValue$jscomp$3;
|
|
887
|
+
break;
|
|
888
|
+
case "formEncType":
|
|
889
|
+
formEncType = propValue$jscomp$3;
|
|
890
|
+
break;
|
|
891
|
+
case "formMethod":
|
|
892
|
+
formMethod = propValue$jscomp$3;
|
|
893
|
+
break;
|
|
894
|
+
case "formTarget":
|
|
895
|
+
formTarget = propValue$jscomp$3;
|
|
896
|
+
break;
|
|
897
|
+
case "defaultChecked":
|
|
898
|
+
defaultChecked = propValue$jscomp$3;
|
|
899
|
+
break;
|
|
900
|
+
case "defaultValue":
|
|
901
|
+
defaultValue$jscomp$0 = propValue$jscomp$3;
|
|
902
|
+
break;
|
|
903
|
+
case "checked":
|
|
904
|
+
checked = propValue$jscomp$3;
|
|
905
|
+
break;
|
|
906
|
+
case "value":
|
|
907
|
+
value$jscomp$1 = propValue$jscomp$3;
|
|
908
|
+
break;
|
|
909
|
+
default: pushAttribute(target$jscomp$0, propKey$jscomp$3, propValue$jscomp$3);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
var formData = pushFormActionAttribute(target$jscomp$0, resumableState, renderState, formAction, formEncType, formMethod, formTarget, name);
|
|
913
|
+
null !== checked ? pushBooleanAttribute(target$jscomp$0, "checked", checked) : null !== defaultChecked && pushBooleanAttribute(target$jscomp$0, "checked", defaultChecked);
|
|
914
|
+
null !== value$jscomp$1 ? pushAttribute(target$jscomp$0, "value", value$jscomp$1) : null !== defaultValue$jscomp$0 && pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
|
|
915
|
+
target$jscomp$0.push(endOfStartTagSelfClosing);
|
|
916
|
+
formData?.forEach(pushAdditionalFormField, target$jscomp$0);
|
|
917
|
+
return null;
|
|
918
|
+
case "button":
|
|
919
|
+
target$jscomp$0.push(startChunkForTag("button"));
|
|
920
|
+
var children$jscomp$3 = null, innerHTML$jscomp$2 = null, name$jscomp$0 = null, formAction$jscomp$0 = null, formEncType$jscomp$0 = null, formMethod$jscomp$0 = null, formTarget$jscomp$0 = null, propKey$jscomp$4;
|
|
921
|
+
for (propKey$jscomp$4 in props) if (hasOwnProperty.call(props, propKey$jscomp$4)) {
|
|
922
|
+
var propValue$jscomp$4 = props[propKey$jscomp$4];
|
|
923
|
+
if (null != propValue$jscomp$4) switch (propKey$jscomp$4) {
|
|
924
|
+
case "children":
|
|
925
|
+
children$jscomp$3 = propValue$jscomp$4;
|
|
926
|
+
break;
|
|
927
|
+
case "dangerouslySetInnerHTML":
|
|
928
|
+
innerHTML$jscomp$2 = propValue$jscomp$4;
|
|
929
|
+
break;
|
|
930
|
+
case "name":
|
|
931
|
+
name$jscomp$0 = propValue$jscomp$4;
|
|
932
|
+
break;
|
|
933
|
+
case "formAction":
|
|
934
|
+
formAction$jscomp$0 = propValue$jscomp$4;
|
|
935
|
+
break;
|
|
936
|
+
case "formEncType":
|
|
937
|
+
formEncType$jscomp$0 = propValue$jscomp$4;
|
|
938
|
+
break;
|
|
939
|
+
case "formMethod":
|
|
940
|
+
formMethod$jscomp$0 = propValue$jscomp$4;
|
|
941
|
+
break;
|
|
942
|
+
case "formTarget":
|
|
943
|
+
formTarget$jscomp$0 = propValue$jscomp$4;
|
|
944
|
+
break;
|
|
945
|
+
default: pushAttribute(target$jscomp$0, propKey$jscomp$4, propValue$jscomp$4);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
var formData$jscomp$0 = pushFormActionAttribute(target$jscomp$0, resumableState, renderState, formAction$jscomp$0, formEncType$jscomp$0, formMethod$jscomp$0, formTarget$jscomp$0, name$jscomp$0);
|
|
949
|
+
target$jscomp$0.push(endOfStartTag);
|
|
950
|
+
formData$jscomp$0?.forEach(pushAdditionalFormField, target$jscomp$0);
|
|
951
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$2, children$jscomp$3);
|
|
952
|
+
if ("string" === typeof children$jscomp$3) {
|
|
953
|
+
target$jscomp$0.push(stringToChunk(escapeTextForBrowser(children$jscomp$3)));
|
|
954
|
+
var JSCompiler_inline_result$jscomp$0 = null;
|
|
955
|
+
} else JSCompiler_inline_result$jscomp$0 = children$jscomp$3;
|
|
956
|
+
return JSCompiler_inline_result$jscomp$0;
|
|
957
|
+
case "form":
|
|
958
|
+
target$jscomp$0.push(startChunkForTag("form"));
|
|
959
|
+
var children$jscomp$4 = null, innerHTML$jscomp$3 = null, formAction$jscomp$1 = null, formEncType$jscomp$1 = null, formMethod$jscomp$1 = null, formTarget$jscomp$1 = null, propKey$jscomp$5;
|
|
960
|
+
for (propKey$jscomp$5 in props) if (hasOwnProperty.call(props, propKey$jscomp$5)) {
|
|
961
|
+
var propValue$jscomp$5 = props[propKey$jscomp$5];
|
|
962
|
+
if (null != propValue$jscomp$5) switch (propKey$jscomp$5) {
|
|
963
|
+
case "children":
|
|
964
|
+
children$jscomp$4 = propValue$jscomp$5;
|
|
965
|
+
break;
|
|
966
|
+
case "dangerouslySetInnerHTML":
|
|
967
|
+
innerHTML$jscomp$3 = propValue$jscomp$5;
|
|
968
|
+
break;
|
|
969
|
+
case "action":
|
|
970
|
+
formAction$jscomp$1 = propValue$jscomp$5;
|
|
971
|
+
break;
|
|
972
|
+
case "encType":
|
|
973
|
+
formEncType$jscomp$1 = propValue$jscomp$5;
|
|
974
|
+
break;
|
|
975
|
+
case "method":
|
|
976
|
+
formMethod$jscomp$1 = propValue$jscomp$5;
|
|
977
|
+
break;
|
|
978
|
+
case "target":
|
|
979
|
+
formTarget$jscomp$1 = propValue$jscomp$5;
|
|
980
|
+
break;
|
|
981
|
+
default: pushAttribute(target$jscomp$0, propKey$jscomp$5, propValue$jscomp$5);
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
var formData$jscomp$1 = null, formActionName = null;
|
|
985
|
+
if ("function" === typeof formAction$jscomp$1) {
|
|
986
|
+
var customFields = getCustomFormFields(resumableState, formAction$jscomp$1);
|
|
987
|
+
null !== customFields ? (formAction$jscomp$1 = customFields.action || "", formEncType$jscomp$1 = customFields.encType, formMethod$jscomp$1 = customFields.method, formTarget$jscomp$1 = customFields.target, formData$jscomp$1 = customFields.data, formActionName = customFields.name) : (target$jscomp$0.push(attributeSeparator, stringToChunk("action"), attributeAssign, actionJavaScriptURL, attributeEnd), formTarget$jscomp$1 = formMethod$jscomp$1 = formEncType$jscomp$1 = formAction$jscomp$1 = null, injectFormReplayingRuntime(resumableState, renderState));
|
|
988
|
+
}
|
|
989
|
+
null != formAction$jscomp$1 && pushAttribute(target$jscomp$0, "action", formAction$jscomp$1);
|
|
990
|
+
null != formEncType$jscomp$1 && pushAttribute(target$jscomp$0, "encType", formEncType$jscomp$1);
|
|
991
|
+
null != formMethod$jscomp$1 && pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
|
|
992
|
+
null != formTarget$jscomp$1 && pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
|
|
993
|
+
target$jscomp$0.push(endOfStartTag);
|
|
994
|
+
null !== formActionName && (target$jscomp$0.push(startHiddenInputChunk), pushStringAttribute(target$jscomp$0, "name", formActionName), target$jscomp$0.push(endOfStartTagSelfClosing), formData$jscomp$1?.forEach(pushAdditionalFormField, target$jscomp$0));
|
|
995
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$3, children$jscomp$4);
|
|
996
|
+
if ("string" === typeof children$jscomp$4) {
|
|
997
|
+
target$jscomp$0.push(stringToChunk(escapeTextForBrowser(children$jscomp$4)));
|
|
998
|
+
var JSCompiler_inline_result$jscomp$1 = null;
|
|
999
|
+
} else JSCompiler_inline_result$jscomp$1 = children$jscomp$4;
|
|
1000
|
+
return JSCompiler_inline_result$jscomp$1;
|
|
1001
|
+
case "menuitem":
|
|
1002
|
+
target$jscomp$0.push(startChunkForTag("menuitem"));
|
|
1003
|
+
for (var propKey$jscomp$6 in props) if (hasOwnProperty.call(props, propKey$jscomp$6)) {
|
|
1004
|
+
var propValue$jscomp$6 = props[propKey$jscomp$6];
|
|
1005
|
+
if (null != propValue$jscomp$6) switch (propKey$jscomp$6) {
|
|
1006
|
+
case "children":
|
|
1007
|
+
case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(400));
|
|
1008
|
+
default: pushAttribute(target$jscomp$0, propKey$jscomp$6, propValue$jscomp$6);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
target$jscomp$0.push(endOfStartTag);
|
|
1012
|
+
return null;
|
|
1013
|
+
case "object":
|
|
1014
|
+
target$jscomp$0.push(startChunkForTag("object"));
|
|
1015
|
+
var children$jscomp$5 = null, innerHTML$jscomp$4 = null, propKey$jscomp$7;
|
|
1016
|
+
for (propKey$jscomp$7 in props) if (hasOwnProperty.call(props, propKey$jscomp$7)) {
|
|
1017
|
+
var propValue$jscomp$7 = props[propKey$jscomp$7];
|
|
1018
|
+
if (null != propValue$jscomp$7) switch (propKey$jscomp$7) {
|
|
1019
|
+
case "children":
|
|
1020
|
+
children$jscomp$5 = propValue$jscomp$7;
|
|
1021
|
+
break;
|
|
1022
|
+
case "dangerouslySetInnerHTML":
|
|
1023
|
+
innerHTML$jscomp$4 = propValue$jscomp$7;
|
|
1024
|
+
break;
|
|
1025
|
+
case "data":
|
|
1026
|
+
var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
|
|
1027
|
+
if ("" === sanitizedValue) break;
|
|
1028
|
+
target$jscomp$0.push(attributeSeparator, stringToChunk("data"), attributeAssign, stringToChunk(escapeTextForBrowser(sanitizedValue)), attributeEnd);
|
|
1029
|
+
break;
|
|
1030
|
+
default: pushAttribute(target$jscomp$0, propKey$jscomp$7, propValue$jscomp$7);
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
target$jscomp$0.push(endOfStartTag);
|
|
1034
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
|
|
1035
|
+
if ("string" === typeof children$jscomp$5) {
|
|
1036
|
+
target$jscomp$0.push(stringToChunk(escapeTextForBrowser(children$jscomp$5)));
|
|
1037
|
+
var JSCompiler_inline_result$jscomp$2 = null;
|
|
1038
|
+
} else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
|
|
1039
|
+
return JSCompiler_inline_result$jscomp$2;
|
|
1040
|
+
case "title":
|
|
1041
|
+
var noscriptTagInScope = formatContext.tagScope & 1, isFallback = formatContext.tagScope & 4;
|
|
1042
|
+
if (4 === formatContext.insertionMode || noscriptTagInScope || null != props.itemProp) var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(target$jscomp$0, props);
|
|
1043
|
+
else isFallback ? JSCompiler_inline_result$jscomp$3 = null : (pushTitleImpl(renderState.hoistableChunks, props), JSCompiler_inline_result$jscomp$3 = void 0);
|
|
1044
|
+
return JSCompiler_inline_result$jscomp$3;
|
|
1045
|
+
case "link":
|
|
1046
|
+
var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1, isFallback$jscomp$0 = formatContext.tagScope & 4, rel = props.rel, href = props.href, precedence = props.precedence;
|
|
1047
|
+
if (4 === formatContext.insertionMode || noscriptTagInScope$jscomp$0 || null != props.itemProp || "string" !== typeof rel || "string" !== typeof href || "" === href) {
|
|
1048
|
+
pushLinkImpl(target$jscomp$0, props);
|
|
1049
|
+
var JSCompiler_inline_result$jscomp$4 = null;
|
|
1050
|
+
} else if ("stylesheet" === props.rel) if ("string" !== typeof precedence || null != props.disabled || props.onLoad || props.onError) JSCompiler_inline_result$jscomp$4 = pushLinkImpl(target$jscomp$0, props);
|
|
1051
|
+
else {
|
|
1052
|
+
var styleQueue = renderState.styles.get(precedence), resourceState = resumableState.styleResources.hasOwnProperty(href) ? resumableState.styleResources[href] : void 0;
|
|
1053
|
+
if (null !== resourceState) {
|
|
1054
|
+
resumableState.styleResources[href] = null;
|
|
1055
|
+
styleQueue || (styleQueue = {
|
|
1056
|
+
precedence: stringToChunk(escapeTextForBrowser(precedence)),
|
|
1057
|
+
rules: [],
|
|
1058
|
+
hrefs: [],
|
|
1059
|
+
sheets: /* @__PURE__ */ new Map()
|
|
1060
|
+
}, renderState.styles.set(precedence, styleQueue));
|
|
1061
|
+
var resource = {
|
|
1062
|
+
state: 0,
|
|
1063
|
+
props: assign({}, props, {
|
|
1064
|
+
"data-precedence": props.precedence,
|
|
1065
|
+
precedence: null
|
|
1066
|
+
})
|
|
1067
|
+
};
|
|
1068
|
+
if (resourceState) {
|
|
1069
|
+
2 === resourceState.length && adoptPreloadCredentials(resource.props, resourceState);
|
|
1070
|
+
var preloadResource = renderState.preloads.stylesheets.get(href);
|
|
1071
|
+
preloadResource && 0 < preloadResource.length ? preloadResource.length = 0 : resource.state = 1;
|
|
1072
|
+
}
|
|
1073
|
+
styleQueue.sheets.set(href, resource);
|
|
1074
|
+
hoistableState && hoistableState.stylesheets.add(resource);
|
|
1075
|
+
} else if (styleQueue) {
|
|
1076
|
+
var resource$9 = styleQueue.sheets.get(href);
|
|
1077
|
+
resource$9 && hoistableState && hoistableState.stylesheets.add(resource$9);
|
|
1078
|
+
}
|
|
1079
|
+
textEmbedded && target$jscomp$0.push(textSeparator);
|
|
1080
|
+
JSCompiler_inline_result$jscomp$4 = null;
|
|
1081
|
+
}
|
|
1082
|
+
else props.onLoad || props.onError ? JSCompiler_inline_result$jscomp$4 = pushLinkImpl(target$jscomp$0, props) : (textEmbedded && target$jscomp$0.push(textSeparator), JSCompiler_inline_result$jscomp$4 = isFallback$jscomp$0 ? null : pushLinkImpl(renderState.hoistableChunks, props));
|
|
1083
|
+
return JSCompiler_inline_result$jscomp$4;
|
|
1084
|
+
case "script":
|
|
1085
|
+
var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1, asyncProp = props.async;
|
|
1086
|
+
if ("string" !== typeof props.src || !props.src || !asyncProp || "function" === typeof asyncProp || "symbol" === typeof asyncProp || props.onLoad || props.onError || 4 === formatContext.insertionMode || noscriptTagInScope$jscomp$1 || null != props.itemProp) var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(target$jscomp$0, props);
|
|
1087
|
+
else {
|
|
1088
|
+
var key = props.src;
|
|
1089
|
+
if ("module" === props.type) {
|
|
1090
|
+
var resources = resumableState.moduleScriptResources;
|
|
1091
|
+
var preloads = renderState.preloads.moduleScripts;
|
|
1092
|
+
} else resources = resumableState.scriptResources, preloads = renderState.preloads.scripts;
|
|
1093
|
+
var resourceState$jscomp$0 = resources.hasOwnProperty(key) ? resources[key] : void 0;
|
|
1094
|
+
if (null !== resourceState$jscomp$0) {
|
|
1095
|
+
resources[key] = null;
|
|
1096
|
+
var scriptProps = props;
|
|
1097
|
+
if (resourceState$jscomp$0) {
|
|
1098
|
+
2 === resourceState$jscomp$0.length && (scriptProps = assign({}, props), adoptPreloadCredentials(scriptProps, resourceState$jscomp$0));
|
|
1099
|
+
var preloadResource$jscomp$0 = preloads.get(key);
|
|
1100
|
+
preloadResource$jscomp$0 && (preloadResource$jscomp$0.length = 0);
|
|
1101
|
+
}
|
|
1102
|
+
var resource$jscomp$0 = [];
|
|
1103
|
+
renderState.scripts.add(resource$jscomp$0);
|
|
1104
|
+
pushScriptImpl(resource$jscomp$0, scriptProps);
|
|
1105
|
+
}
|
|
1106
|
+
textEmbedded && target$jscomp$0.push(textSeparator);
|
|
1107
|
+
JSCompiler_inline_result$jscomp$5 = null;
|
|
1108
|
+
}
|
|
1109
|
+
return JSCompiler_inline_result$jscomp$5;
|
|
1110
|
+
case "style":
|
|
1111
|
+
var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1, precedence$jscomp$0 = props.precedence, href$jscomp$0 = props.href, nonce = props.nonce;
|
|
1112
|
+
if (4 === formatContext.insertionMode || noscriptTagInScope$jscomp$2 || null != props.itemProp || "string" !== typeof precedence$jscomp$0 || "string" !== typeof href$jscomp$0 || "" === href$jscomp$0) {
|
|
1113
|
+
target$jscomp$0.push(startChunkForTag("style"));
|
|
1114
|
+
var children$jscomp$6 = null, innerHTML$jscomp$5 = null, propKey$jscomp$8;
|
|
1115
|
+
for (propKey$jscomp$8 in props) if (hasOwnProperty.call(props, propKey$jscomp$8)) {
|
|
1116
|
+
var propValue$jscomp$8 = props[propKey$jscomp$8];
|
|
1117
|
+
if (null != propValue$jscomp$8) switch (propKey$jscomp$8) {
|
|
1118
|
+
case "children":
|
|
1119
|
+
children$jscomp$6 = propValue$jscomp$8;
|
|
1120
|
+
break;
|
|
1121
|
+
case "dangerouslySetInnerHTML":
|
|
1122
|
+
innerHTML$jscomp$5 = propValue$jscomp$8;
|
|
1123
|
+
break;
|
|
1124
|
+
default: pushAttribute(target$jscomp$0, propKey$jscomp$8, propValue$jscomp$8);
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
target$jscomp$0.push(endOfStartTag);
|
|
1128
|
+
var child = Array.isArray(children$jscomp$6) ? 2 > children$jscomp$6.length ? children$jscomp$6[0] : null : children$jscomp$6;
|
|
1129
|
+
"function" !== typeof child && "symbol" !== typeof child && null !== child && void 0 !== child && target$jscomp$0.push(stringToChunk(("" + child).replace(styleRegex, styleReplacer)));
|
|
1130
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
|
|
1131
|
+
target$jscomp$0.push(endChunkForTag("style"));
|
|
1132
|
+
var JSCompiler_inline_result$jscomp$6 = null;
|
|
1133
|
+
} else {
|
|
1134
|
+
var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
|
|
1135
|
+
if (null !== (resumableState.styleResources.hasOwnProperty(href$jscomp$0) ? resumableState.styleResources[href$jscomp$0] : void 0)) {
|
|
1136
|
+
resumableState.styleResources[href$jscomp$0] = null;
|
|
1137
|
+
styleQueue$jscomp$0 || (styleQueue$jscomp$0 = {
|
|
1138
|
+
precedence: stringToChunk(escapeTextForBrowser(precedence$jscomp$0)),
|
|
1139
|
+
rules: [],
|
|
1140
|
+
hrefs: [],
|
|
1141
|
+
sheets: /* @__PURE__ */ new Map()
|
|
1142
|
+
}, renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
|
|
1143
|
+
var nonceStyle = renderState.nonce.style;
|
|
1144
|
+
if (!nonceStyle || nonceStyle === nonce) {
|
|
1145
|
+
styleQueue$jscomp$0.hrefs.push(stringToChunk(escapeTextForBrowser(href$jscomp$0)));
|
|
1146
|
+
var target = styleQueue$jscomp$0.rules, children$jscomp$7 = null, innerHTML$jscomp$6 = null, propKey$jscomp$9;
|
|
1147
|
+
for (propKey$jscomp$9 in props) if (hasOwnProperty.call(props, propKey$jscomp$9)) {
|
|
1148
|
+
var propValue$jscomp$9 = props[propKey$jscomp$9];
|
|
1149
|
+
if (null != propValue$jscomp$9) switch (propKey$jscomp$9) {
|
|
1150
|
+
case "children":
|
|
1151
|
+
children$jscomp$7 = propValue$jscomp$9;
|
|
1152
|
+
break;
|
|
1153
|
+
case "dangerouslySetInnerHTML": innerHTML$jscomp$6 = propValue$jscomp$9;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
var child$jscomp$0 = Array.isArray(children$jscomp$7) ? 2 > children$jscomp$7.length ? children$jscomp$7[0] : null : children$jscomp$7;
|
|
1157
|
+
"function" !== typeof child$jscomp$0 && "symbol" !== typeof child$jscomp$0 && null !== child$jscomp$0 && void 0 !== child$jscomp$0 && target.push(stringToChunk(("" + child$jscomp$0).replace(styleRegex, styleReplacer)));
|
|
1158
|
+
pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
styleQueue$jscomp$0 && hoistableState && hoistableState.styles.add(styleQueue$jscomp$0);
|
|
1162
|
+
textEmbedded && target$jscomp$0.push(textSeparator);
|
|
1163
|
+
JSCompiler_inline_result$jscomp$6 = void 0;
|
|
1164
|
+
}
|
|
1165
|
+
return JSCompiler_inline_result$jscomp$6;
|
|
1166
|
+
case "meta":
|
|
1167
|
+
var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1, isFallback$jscomp$1 = formatContext.tagScope & 4;
|
|
1168
|
+
if (4 === formatContext.insertionMode || noscriptTagInScope$jscomp$3 || null != props.itemProp) var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(target$jscomp$0, props, "meta");
|
|
1169
|
+
else textEmbedded && target$jscomp$0.push(textSeparator), JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1 ? null : "string" === typeof props.charSet ? pushSelfClosing(renderState.charsetChunks, props, "meta") : "viewport" === props.name ? pushSelfClosing(renderState.viewportChunks, props, "meta") : pushSelfClosing(renderState.hoistableChunks, props, "meta");
|
|
1170
|
+
return JSCompiler_inline_result$jscomp$7;
|
|
1171
|
+
case "listing":
|
|
1172
|
+
case "pre":
|
|
1173
|
+
target$jscomp$0.push(startChunkForTag(type));
|
|
1174
|
+
var children$jscomp$8 = null, innerHTML$jscomp$7 = null, propKey$jscomp$10;
|
|
1175
|
+
for (propKey$jscomp$10 in props) if (hasOwnProperty.call(props, propKey$jscomp$10)) {
|
|
1176
|
+
var propValue$jscomp$10 = props[propKey$jscomp$10];
|
|
1177
|
+
if (null != propValue$jscomp$10) switch (propKey$jscomp$10) {
|
|
1178
|
+
case "children":
|
|
1179
|
+
children$jscomp$8 = propValue$jscomp$10;
|
|
1180
|
+
break;
|
|
1181
|
+
case "dangerouslySetInnerHTML":
|
|
1182
|
+
innerHTML$jscomp$7 = propValue$jscomp$10;
|
|
1183
|
+
break;
|
|
1184
|
+
default: pushAttribute(target$jscomp$0, propKey$jscomp$10, propValue$jscomp$10);
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
target$jscomp$0.push(endOfStartTag);
|
|
1188
|
+
if (null != innerHTML$jscomp$7) {
|
|
1189
|
+
if (null != children$jscomp$8) throw Error(formatProdErrorMessage(60));
|
|
1190
|
+
if ("object" !== typeof innerHTML$jscomp$7 || !("__html" in innerHTML$jscomp$7)) throw Error(formatProdErrorMessage(61));
|
|
1191
|
+
var html = innerHTML$jscomp$7.__html;
|
|
1192
|
+
null !== html && void 0 !== html && ("string" === typeof html && 0 < html.length && "\n" === html[0] ? target$jscomp$0.push(leadingNewline, stringToChunk(html)) : target$jscomp$0.push(stringToChunk("" + html)));
|
|
1193
|
+
}
|
|
1194
|
+
"string" === typeof children$jscomp$8 && "\n" === children$jscomp$8[0] && target$jscomp$0.push(leadingNewline);
|
|
1195
|
+
return children$jscomp$8;
|
|
1196
|
+
case "img":
|
|
1197
|
+
var pictureOrNoScriptTagInScope = formatContext.tagScope & 3, src = props.src, srcSet = props.srcSet;
|
|
1198
|
+
if (!("lazy" === props.loading || !src && !srcSet || "string" !== typeof src && null != src || "string" !== typeof srcSet && null != srcSet || "low" === props.fetchPriority || pictureOrNoScriptTagInScope) && ("string" !== typeof src || ":" !== src[4] || "d" !== src[0] && "D" !== src[0] || "a" !== src[1] && "A" !== src[1] || "t" !== src[2] && "T" !== src[2] || "a" !== src[3] && "A" !== src[3]) && ("string" !== typeof srcSet || ":" !== srcSet[4] || "d" !== srcSet[0] && "D" !== srcSet[0] || "a" !== srcSet[1] && "A" !== srcSet[1] || "t" !== srcSet[2] && "T" !== srcSet[2] || "a" !== srcSet[3] && "A" !== srcSet[3])) {
|
|
1199
|
+
null !== hoistableState && formatContext.tagScope & 64 && (hoistableState.suspenseyImages = !0);
|
|
1200
|
+
var sizes = "string" === typeof props.sizes ? props.sizes : void 0, key$jscomp$0 = srcSet ? srcSet + "\n" + (sizes || "") : src, promotablePreloads = renderState.preloads.images, resource$jscomp$1 = promotablePreloads.get(key$jscomp$0);
|
|
1201
|
+
if (resource$jscomp$1) {
|
|
1202
|
+
if ("high" === props.fetchPriority || 10 > renderState.highImagePreloads.size) promotablePreloads.delete(key$jscomp$0), renderState.highImagePreloads.add(resource$jscomp$1);
|
|
1203
|
+
} else if (!resumableState.imageResources.hasOwnProperty(key$jscomp$0)) {
|
|
1204
|
+
resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
|
|
1205
|
+
var input = props.crossOrigin;
|
|
1206
|
+
var JSCompiler_inline_result$jscomp$8 = "string" === typeof input ? "use-credentials" === input ? input : "" : void 0;
|
|
1207
|
+
var headers = renderState.headers, header;
|
|
1208
|
+
headers && 0 < headers.remainingCapacity && "string" !== typeof props.srcSet && ("high" === props.fetchPriority || 500 > headers.highImagePreloads.length) && (header = getPreloadAsHeader(src, "image", {
|
|
1209
|
+
imageSrcSet: props.srcSet,
|
|
1210
|
+
imageSizes: props.sizes,
|
|
1211
|
+
crossOrigin: JSCompiler_inline_result$jscomp$8,
|
|
1212
|
+
integrity: props.integrity,
|
|
1213
|
+
nonce: props.nonce,
|
|
1214
|
+
type: props.type,
|
|
1215
|
+
fetchPriority: props.fetchPriority,
|
|
1216
|
+
referrerPolicy: props.refererPolicy
|
|
1217
|
+
}), 0 <= (headers.remainingCapacity -= header.length + 2)) ? (renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS, headers.highImagePreloads && (headers.highImagePreloads += ", "), headers.highImagePreloads += header) : (resource$jscomp$1 = [], pushLinkImpl(resource$jscomp$1, {
|
|
1218
|
+
rel: "preload",
|
|
1219
|
+
as: "image",
|
|
1220
|
+
href: srcSet ? void 0 : src,
|
|
1221
|
+
imageSrcSet: srcSet,
|
|
1222
|
+
imageSizes: sizes,
|
|
1223
|
+
crossOrigin: JSCompiler_inline_result$jscomp$8,
|
|
1224
|
+
integrity: props.integrity,
|
|
1225
|
+
type: props.type,
|
|
1226
|
+
fetchPriority: props.fetchPriority,
|
|
1227
|
+
referrerPolicy: props.referrerPolicy
|
|
1228
|
+
}), "high" === props.fetchPriority || 10 > renderState.highImagePreloads.size ? renderState.highImagePreloads.add(resource$jscomp$1) : (renderState.bulkPreloads.add(resource$jscomp$1), promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
return pushSelfClosing(target$jscomp$0, props, "img");
|
|
1232
|
+
case "base":
|
|
1233
|
+
case "area":
|
|
1234
|
+
case "br":
|
|
1235
|
+
case "col":
|
|
1236
|
+
case "embed":
|
|
1237
|
+
case "hr":
|
|
1238
|
+
case "keygen":
|
|
1239
|
+
case "param":
|
|
1240
|
+
case "source":
|
|
1241
|
+
case "track":
|
|
1242
|
+
case "wbr": return pushSelfClosing(target$jscomp$0, props, type);
|
|
1243
|
+
case "annotation-xml":
|
|
1244
|
+
case "color-profile":
|
|
1245
|
+
case "font-face":
|
|
1246
|
+
case "font-face-src":
|
|
1247
|
+
case "font-face-uri":
|
|
1248
|
+
case "font-face-format":
|
|
1249
|
+
case "font-face-name":
|
|
1250
|
+
case "missing-glyph": break;
|
|
1251
|
+
case "head":
|
|
1252
|
+
if (2 > formatContext.insertionMode) {
|
|
1253
|
+
var preamble = preambleState || renderState.preamble;
|
|
1254
|
+
if (preamble.headChunks) throw Error(formatProdErrorMessage(545, "`<head>`"));
|
|
1255
|
+
null !== preambleState && target$jscomp$0.push(headPreambleContributionChunk);
|
|
1256
|
+
preamble.headChunks = [];
|
|
1257
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(preamble.headChunks, props, "head");
|
|
1258
|
+
} else JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(target$jscomp$0, props, "head");
|
|
1259
|
+
return JSCompiler_inline_result$jscomp$9;
|
|
1260
|
+
case "body":
|
|
1261
|
+
if (2 > formatContext.insertionMode) {
|
|
1262
|
+
var preamble$jscomp$0 = preambleState || renderState.preamble;
|
|
1263
|
+
if (preamble$jscomp$0.bodyChunks) throw Error(formatProdErrorMessage(545, "`<body>`"));
|
|
1264
|
+
null !== preambleState && target$jscomp$0.push(bodyPreambleContributionChunk);
|
|
1265
|
+
preamble$jscomp$0.bodyChunks = [];
|
|
1266
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(preamble$jscomp$0.bodyChunks, props, "body");
|
|
1267
|
+
} else JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(target$jscomp$0, props, "body");
|
|
1268
|
+
return JSCompiler_inline_result$jscomp$10;
|
|
1269
|
+
case "html":
|
|
1270
|
+
if (0 === formatContext.insertionMode) {
|
|
1271
|
+
var preamble$jscomp$1 = preambleState || renderState.preamble;
|
|
1272
|
+
if (preamble$jscomp$1.htmlChunks) throw Error(formatProdErrorMessage(545, "`<html>`"));
|
|
1273
|
+
null !== preambleState && target$jscomp$0.push(htmlPreambleContributionChunk);
|
|
1274
|
+
preamble$jscomp$1.htmlChunks = [doctypeChunk];
|
|
1275
|
+
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(preamble$jscomp$1.htmlChunks, props, "html");
|
|
1276
|
+
} else JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(target$jscomp$0, props, "html");
|
|
1277
|
+
return JSCompiler_inline_result$jscomp$11;
|
|
1278
|
+
default: if (-1 !== type.indexOf("-")) {
|
|
1279
|
+
target$jscomp$0.push(startChunkForTag(type));
|
|
1280
|
+
var children$jscomp$9 = null, innerHTML$jscomp$8 = null, propKey$jscomp$11;
|
|
1281
|
+
for (propKey$jscomp$11 in props) if (hasOwnProperty.call(props, propKey$jscomp$11)) {
|
|
1282
|
+
var propValue$jscomp$11 = props[propKey$jscomp$11];
|
|
1283
|
+
if (null != propValue$jscomp$11) {
|
|
1284
|
+
var attributeName = propKey$jscomp$11;
|
|
1285
|
+
switch (propKey$jscomp$11) {
|
|
1286
|
+
case "children":
|
|
1287
|
+
children$jscomp$9 = propValue$jscomp$11;
|
|
1288
|
+
break;
|
|
1289
|
+
case "dangerouslySetInnerHTML":
|
|
1290
|
+
innerHTML$jscomp$8 = propValue$jscomp$11;
|
|
1291
|
+
break;
|
|
1292
|
+
case "style":
|
|
1293
|
+
pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
|
|
1294
|
+
break;
|
|
1295
|
+
case "suppressContentEditableWarning":
|
|
1296
|
+
case "suppressHydrationWarning":
|
|
1297
|
+
case "ref": break;
|
|
1298
|
+
case "className": attributeName = "class";
|
|
1299
|
+
default: if (isAttributeNameSafe(propKey$jscomp$11) && "function" !== typeof propValue$jscomp$11 && "symbol" !== typeof propValue$jscomp$11 && !1 !== propValue$jscomp$11) {
|
|
1300
|
+
if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
|
|
1301
|
+
else if ("object" === typeof propValue$jscomp$11) continue;
|
|
1302
|
+
target$jscomp$0.push(attributeSeparator, stringToChunk(attributeName), attributeAssign, stringToChunk(escapeTextForBrowser(propValue$jscomp$11)), attributeEnd);
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
target$jscomp$0.push(endOfStartTag);
|
|
1308
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
|
|
1309
|
+
return children$jscomp$9;
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
return pushStartGenericElement(target$jscomp$0, props, type);
|
|
1313
|
+
}
|
|
1314
|
+
var endTagCache = /* @__PURE__ */ new Map();
|
|
1315
|
+
function endChunkForTag(tag) {
|
|
1316
|
+
var chunk = endTagCache.get(tag);
|
|
1317
|
+
void 0 === chunk && (chunk = stringToPrecomputedChunk("</" + tag + ">"), endTagCache.set(tag, chunk));
|
|
1318
|
+
return chunk;
|
|
1319
|
+
}
|
|
1320
|
+
function hoistPreambleState(renderState, preambleState) {
|
|
1321
|
+
renderState = renderState.preamble;
|
|
1322
|
+
null === renderState.htmlChunks && preambleState.htmlChunks && (renderState.htmlChunks = preambleState.htmlChunks);
|
|
1323
|
+
null === renderState.headChunks && preambleState.headChunks && (renderState.headChunks = preambleState.headChunks);
|
|
1324
|
+
null === renderState.bodyChunks && preambleState.bodyChunks && (renderState.bodyChunks = preambleState.bodyChunks);
|
|
1325
|
+
}
|
|
1326
|
+
function writeBootstrap(destination, renderState) {
|
|
1327
|
+
renderState = renderState.bootstrapChunks;
|
|
1328
|
+
for (var i = 0; i < renderState.length - 1; i++) writeChunk(destination, renderState[i]);
|
|
1329
|
+
return i < renderState.length ? (i = renderState[i], renderState.length = 0, writeChunkAndReturn(destination, i)) : !0;
|
|
1330
|
+
}
|
|
1331
|
+
var shellTimeRuntimeScript = stringToPrecomputedChunk("requestAnimationFrame(function(){$RT=performance.now()});"), placeholder1 = stringToPrecomputedChunk("<template id=\""), placeholder2 = stringToPrecomputedChunk("\"></template>"), startActivityBoundary = stringToPrecomputedChunk("<!--&-->"), endActivityBoundary = stringToPrecomputedChunk("<!--/&-->"), startCompletedSuspenseBoundary = stringToPrecomputedChunk("<!--$-->"), startPendingSuspenseBoundary1 = stringToPrecomputedChunk("<!--$?--><template id=\""), startPendingSuspenseBoundary2 = stringToPrecomputedChunk("\"></template>"), startClientRenderedSuspenseBoundary = stringToPrecomputedChunk("<!--$!-->"), endSuspenseBoundary = stringToPrecomputedChunk("<!--/$-->"), clientRenderedSuspenseBoundaryError1 = stringToPrecomputedChunk("<template"), clientRenderedSuspenseBoundaryErrorAttrInterstitial = stringToPrecomputedChunk("\""), clientRenderedSuspenseBoundaryError1A = stringToPrecomputedChunk(" data-dgst=\"");
|
|
1332
|
+
stringToPrecomputedChunk(" data-msg=\"");
|
|
1333
|
+
stringToPrecomputedChunk(" data-stck=\"");
|
|
1334
|
+
stringToPrecomputedChunk(" data-cstck=\"");
|
|
1335
|
+
var clientRenderedSuspenseBoundaryError2 = stringToPrecomputedChunk("></template>");
|
|
1336
|
+
function writeStartPendingSuspenseBoundary(destination, renderState, id) {
|
|
1337
|
+
writeChunk(destination, startPendingSuspenseBoundary1);
|
|
1338
|
+
if (null === id) throw Error(formatProdErrorMessage(395));
|
|
1339
|
+
writeChunk(destination, renderState.boundaryPrefix);
|
|
1340
|
+
writeChunk(destination, stringToChunk(id.toString(16)));
|
|
1341
|
+
return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
|
|
1342
|
+
}
|
|
1343
|
+
var startSegmentHTML = stringToPrecomputedChunk("<div hidden id=\""), startSegmentHTML2 = stringToPrecomputedChunk("\">"), endSegmentHTML = stringToPrecomputedChunk("</div>"), startSegmentSVG = stringToPrecomputedChunk("<svg aria-hidden=\"true\" style=\"display:none\" id=\""), startSegmentSVG2 = stringToPrecomputedChunk("\">"), endSegmentSVG = stringToPrecomputedChunk("</svg>"), startSegmentMathML = stringToPrecomputedChunk("<math aria-hidden=\"true\" style=\"display:none\" id=\""), startSegmentMathML2 = stringToPrecomputedChunk("\">"), endSegmentMathML = stringToPrecomputedChunk("</math>"), startSegmentTable = stringToPrecomputedChunk("<table hidden id=\""), startSegmentTable2 = stringToPrecomputedChunk("\">"), endSegmentTable = stringToPrecomputedChunk("</table>"), startSegmentTableBody = stringToPrecomputedChunk("<table hidden><tbody id=\""), startSegmentTableBody2 = stringToPrecomputedChunk("\">"), endSegmentTableBody = stringToPrecomputedChunk("</tbody></table>"), startSegmentTableRow = stringToPrecomputedChunk("<table hidden><tr id=\""), startSegmentTableRow2 = stringToPrecomputedChunk("\">"), endSegmentTableRow = stringToPrecomputedChunk("</tr></table>"), startSegmentColGroup = stringToPrecomputedChunk("<table hidden><colgroup id=\""), startSegmentColGroup2 = stringToPrecomputedChunk("\">"), endSegmentColGroup = stringToPrecomputedChunk("</colgroup></table>");
|
|
1344
|
+
function writeStartSegment(destination, renderState, formatContext, id) {
|
|
1345
|
+
switch (formatContext.insertionMode) {
|
|
1346
|
+
case 0:
|
|
1347
|
+
case 1:
|
|
1348
|
+
case 3:
|
|
1349
|
+
case 2: return writeChunk(destination, startSegmentHTML), writeChunk(destination, renderState.segmentPrefix), writeChunk(destination, stringToChunk(id.toString(16))), writeChunkAndReturn(destination, startSegmentHTML2);
|
|
1350
|
+
case 4: return writeChunk(destination, startSegmentSVG), writeChunk(destination, renderState.segmentPrefix), writeChunk(destination, stringToChunk(id.toString(16))), writeChunkAndReturn(destination, startSegmentSVG2);
|
|
1351
|
+
case 5: return writeChunk(destination, startSegmentMathML), writeChunk(destination, renderState.segmentPrefix), writeChunk(destination, stringToChunk(id.toString(16))), writeChunkAndReturn(destination, startSegmentMathML2);
|
|
1352
|
+
case 6: return writeChunk(destination, startSegmentTable), writeChunk(destination, renderState.segmentPrefix), writeChunk(destination, stringToChunk(id.toString(16))), writeChunkAndReturn(destination, startSegmentTable2);
|
|
1353
|
+
case 7: return writeChunk(destination, startSegmentTableBody), writeChunk(destination, renderState.segmentPrefix), writeChunk(destination, stringToChunk(id.toString(16))), writeChunkAndReturn(destination, startSegmentTableBody2);
|
|
1354
|
+
case 8: return writeChunk(destination, startSegmentTableRow), writeChunk(destination, renderState.segmentPrefix), writeChunk(destination, stringToChunk(id.toString(16))), writeChunkAndReturn(destination, startSegmentTableRow2);
|
|
1355
|
+
case 9: return writeChunk(destination, startSegmentColGroup), writeChunk(destination, renderState.segmentPrefix), writeChunk(destination, stringToChunk(id.toString(16))), writeChunkAndReturn(destination, startSegmentColGroup2);
|
|
1356
|
+
default: throw Error(formatProdErrorMessage(397));
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
function writeEndSegment(destination, formatContext) {
|
|
1360
|
+
switch (formatContext.insertionMode) {
|
|
1361
|
+
case 0:
|
|
1362
|
+
case 1:
|
|
1363
|
+
case 3:
|
|
1364
|
+
case 2: return writeChunkAndReturn(destination, endSegmentHTML);
|
|
1365
|
+
case 4: return writeChunkAndReturn(destination, endSegmentSVG);
|
|
1366
|
+
case 5: return writeChunkAndReturn(destination, endSegmentMathML);
|
|
1367
|
+
case 6: return writeChunkAndReturn(destination, endSegmentTable);
|
|
1368
|
+
case 7: return writeChunkAndReturn(destination, endSegmentTableBody);
|
|
1369
|
+
case 8: return writeChunkAndReturn(destination, endSegmentTableRow);
|
|
1370
|
+
case 9: return writeChunkAndReturn(destination, endSegmentColGroup);
|
|
1371
|
+
default: throw Error(formatProdErrorMessage(397));
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
var completeSegmentScript1Full = stringToPrecomputedChunk("$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS(\""), completeSegmentScript1Partial = stringToPrecomputedChunk("$RS(\""), completeSegmentScript2 = stringToPrecomputedChunk("\",\""), completeSegmentScriptEnd = stringToPrecomputedChunk("\")<\/script>");
|
|
1375
|
+
stringToPrecomputedChunk("<template data-rsi=\"\" data-sid=\"");
|
|
1376
|
+
stringToPrecomputedChunk("\" data-pid=\"");
|
|
1377
|
+
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk("$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if(\"/$\"===d||\"/&\"===d)if(0===h)break;else h--;else\"$\"!==d&&\"$?\"!==d&&\"$~\"!==d&&\"$!\"!==d&&\"&\"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data=\"$\";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data=\"$~\",$RB.push(a,b),2===$RB.length&&(\"number\"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};");
|
|
1378
|
+
stringToChunk("$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),\"auto\"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute(\"vt-name\"))||(a=\"_T_\"+K++ +\"_\"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll(\"[vt-share]\"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute(\"vt-name\"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if(\"/$\"===r)if(0===f)break;else f--;else\"$\"!==r&&\"$?\"!==r&&\"$~\"!==r&&\"$!\"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute(\"vt-name\"),y=m.get(D);k(d,y?\"vt-share\":\"vt-exit\");y&&(k(y,\"vt-share\"),m.set(D,null));var E=d.querySelectorAll(\"[vt-share]\");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute(\"vt-name\"),\nH=m.get(G);H&&(k(F,\"vt-share\"),k(H,\"vt-share\"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute(\"vt-name\"))&&k(t,\"vt-enter\"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute(\"vt-update\");J&&\"none\"!==J&&!l.includes(n)&&k(n,\"vt-update\");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&\"none\"!==c.getAttribute(\"vt-update\"));u.push.apply(u,I.querySelectorAll('img[src]:not([loading=\"lazy\"])'))}}}if(B){var z=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener(\"load\",q);w.g.addEventListener(\"error\",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=\nperformance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];\"\"===b.getAttribute(\"style\")&&b.removeAttribute(\"style\")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);");
|
|
1379
|
+
var completeBoundaryScript1Partial = stringToPrecomputedChunk("$RC(\""), completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk("$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),v=[],k=0;b=e[k++];)\"not all\"===b.getAttribute(\"media\")?v.push(b):(\"LINK\"===b.tagName&&$RM.set(b.getAttribute(\"href\"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement(\"link\");a.href=d;a.rel=\n\"stylesheet\";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute(\"media\");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute(\"data-precedence\");a.removeAttribute(\"media\")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n\"$~\";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,\"CSS failed to load\"))};$RR(\""), completeBoundaryWithStylesScript1Partial = stringToPrecomputedChunk("$RR(\""), completeBoundaryScript2 = stringToPrecomputedChunk("\",\""), completeBoundaryScript3a = stringToPrecomputedChunk("\","), completeBoundaryScript3b = stringToPrecomputedChunk("\""), completeBoundaryScriptEnd = stringToPrecomputedChunk(")<\/script>");
|
|
1380
|
+
stringToPrecomputedChunk("<template data-rci=\"\" data-bid=\"");
|
|
1381
|
+
stringToPrecomputedChunk("<template data-rri=\"\" data-bid=\"");
|
|
1382
|
+
stringToPrecomputedChunk("\" data-sid=\"");
|
|
1383
|
+
stringToPrecomputedChunk("\" data-sty=\"");
|
|
1384
|
+
var clientRenderScriptFunctionOnly = stringToPrecomputedChunk("$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};"), clientRenderScript1Full = stringToPrecomputedChunk("$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX(\""), clientRenderScript1Partial = stringToPrecomputedChunk("$RX(\""), clientRenderScript1A = stringToPrecomputedChunk("\""), clientRenderErrorScriptArgInterstitial = stringToPrecomputedChunk(","), clientRenderScriptEnd = stringToPrecomputedChunk(")<\/script>");
|
|
1385
|
+
stringToPrecomputedChunk("<template data-rxi=\"\" data-bid=\"");
|
|
1386
|
+
stringToPrecomputedChunk("\" data-dgst=\"");
|
|
1387
|
+
stringToPrecomputedChunk("\" data-msg=\"");
|
|
1388
|
+
stringToPrecomputedChunk("\" data-stck=\"");
|
|
1389
|
+
stringToPrecomputedChunk("\" data-cstck=\"");
|
|
1390
|
+
var regexForJSStringsInInstructionScripts = /[<\u2028\u2029]/g;
|
|
1391
|
+
function escapeJSStringsForInstructionScripts(input) {
|
|
1392
|
+
return JSON.stringify(input).replace(regexForJSStringsInInstructionScripts, function(match) {
|
|
1393
|
+
switch (match) {
|
|
1394
|
+
case "<": return "\\u003c";
|
|
1395
|
+
case "\u2028": return "\\u2028";
|
|
1396
|
+
case "\u2029": return "\\u2029";
|
|
1397
|
+
default: throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");
|
|
1398
|
+
}
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
var regexForJSStringsInScripts = /[&><\u2028\u2029]/g;
|
|
1402
|
+
function escapeJSObjectForInstructionScripts(input) {
|
|
1403
|
+
return JSON.stringify(input).replace(regexForJSStringsInScripts, function(match) {
|
|
1404
|
+
switch (match) {
|
|
1405
|
+
case "&": return "\\u0026";
|
|
1406
|
+
case ">": return "\\u003e";
|
|
1407
|
+
case "<": return "\\u003c";
|
|
1408
|
+
case "\u2028": return "\\u2028";
|
|
1409
|
+
case "\u2029": return "\\u2029";
|
|
1410
|
+
default: throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");
|
|
1411
|
+
}
|
|
1412
|
+
});
|
|
1413
|
+
}
|
|
1414
|
+
var lateStyleTagResourceOpen1 = stringToPrecomputedChunk(" media=\"not all\" data-precedence=\""), lateStyleTagResourceOpen2 = stringToPrecomputedChunk("\" data-href=\""), lateStyleTagResourceOpen3 = stringToPrecomputedChunk("\">"), lateStyleTagTemplateClose = stringToPrecomputedChunk("</style>"), currentlyRenderingBoundaryHasStylesToHoist = !1, destinationHasCapacity = !0;
|
|
1415
|
+
function flushStyleTagsLateForBoundary(styleQueue) {
|
|
1416
|
+
var rules = styleQueue.rules, hrefs = styleQueue.hrefs, i = 0;
|
|
1417
|
+
if (hrefs.length) {
|
|
1418
|
+
writeChunk(this, currentlyFlushingRenderState.startInlineStyle);
|
|
1419
|
+
writeChunk(this, lateStyleTagResourceOpen1);
|
|
1420
|
+
writeChunk(this, styleQueue.precedence);
|
|
1421
|
+
for (writeChunk(this, lateStyleTagResourceOpen2); i < hrefs.length - 1; i++) writeChunk(this, hrefs[i]), writeChunk(this, spaceSeparator);
|
|
1422
|
+
writeChunk(this, hrefs[i]);
|
|
1423
|
+
writeChunk(this, lateStyleTagResourceOpen3);
|
|
1424
|
+
for (i = 0; i < rules.length; i++) writeChunk(this, rules[i]);
|
|
1425
|
+
destinationHasCapacity = writeChunkAndReturn(this, lateStyleTagTemplateClose);
|
|
1426
|
+
currentlyRenderingBoundaryHasStylesToHoist = !0;
|
|
1427
|
+
rules.length = 0;
|
|
1428
|
+
hrefs.length = 0;
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
function hasStylesToHoist(stylesheet) {
|
|
1432
|
+
return 2 !== stylesheet.state ? currentlyRenderingBoundaryHasStylesToHoist = !0 : !1;
|
|
1433
|
+
}
|
|
1434
|
+
function writeHoistablesForBoundary(destination, hoistableState, renderState) {
|
|
1435
|
+
currentlyRenderingBoundaryHasStylesToHoist = !1;
|
|
1436
|
+
destinationHasCapacity = !0;
|
|
1437
|
+
currentlyFlushingRenderState = renderState;
|
|
1438
|
+
hoistableState.styles.forEach(flushStyleTagsLateForBoundary, destination);
|
|
1439
|
+
currentlyFlushingRenderState = null;
|
|
1440
|
+
hoistableState.stylesheets.forEach(hasStylesToHoist);
|
|
1441
|
+
currentlyRenderingBoundaryHasStylesToHoist && (renderState.stylesToHoist = !0);
|
|
1442
|
+
return destinationHasCapacity;
|
|
1443
|
+
}
|
|
1444
|
+
function flushResource(resource) {
|
|
1445
|
+
for (var i = 0; i < resource.length; i++) writeChunk(this, resource[i]);
|
|
1446
|
+
resource.length = 0;
|
|
1447
|
+
}
|
|
1448
|
+
var stylesheetFlushingQueue = [];
|
|
1449
|
+
function flushStyleInPreamble(stylesheet) {
|
|
1450
|
+
pushLinkImpl(stylesheetFlushingQueue, stylesheet.props);
|
|
1451
|
+
for (var i = 0; i < stylesheetFlushingQueue.length; i++) writeChunk(this, stylesheetFlushingQueue[i]);
|
|
1452
|
+
stylesheetFlushingQueue.length = 0;
|
|
1453
|
+
stylesheet.state = 2;
|
|
1454
|
+
}
|
|
1455
|
+
var styleTagResourceOpen1 = stringToPrecomputedChunk(" data-precedence=\""), styleTagResourceOpen2 = stringToPrecomputedChunk("\" data-href=\""), spaceSeparator = stringToPrecomputedChunk(" "), styleTagResourceOpen3 = stringToPrecomputedChunk("\">"), styleTagResourceClose = stringToPrecomputedChunk("</style>");
|
|
1456
|
+
function flushStylesInPreamble(styleQueue) {
|
|
1457
|
+
var hasStylesheets = 0 < styleQueue.sheets.size;
|
|
1458
|
+
styleQueue.sheets.forEach(flushStyleInPreamble, this);
|
|
1459
|
+
styleQueue.sheets.clear();
|
|
1460
|
+
var rules = styleQueue.rules, hrefs = styleQueue.hrefs;
|
|
1461
|
+
if (!hasStylesheets || hrefs.length) {
|
|
1462
|
+
writeChunk(this, currentlyFlushingRenderState.startInlineStyle);
|
|
1463
|
+
writeChunk(this, styleTagResourceOpen1);
|
|
1464
|
+
writeChunk(this, styleQueue.precedence);
|
|
1465
|
+
styleQueue = 0;
|
|
1466
|
+
if (hrefs.length) {
|
|
1467
|
+
for (writeChunk(this, styleTagResourceOpen2); styleQueue < hrefs.length - 1; styleQueue++) writeChunk(this, hrefs[styleQueue]), writeChunk(this, spaceSeparator);
|
|
1468
|
+
writeChunk(this, hrefs[styleQueue]);
|
|
1469
|
+
}
|
|
1470
|
+
writeChunk(this, styleTagResourceOpen3);
|
|
1471
|
+
for (styleQueue = 0; styleQueue < rules.length; styleQueue++) writeChunk(this, rules[styleQueue]);
|
|
1472
|
+
writeChunk(this, styleTagResourceClose);
|
|
1473
|
+
rules.length = 0;
|
|
1474
|
+
hrefs.length = 0;
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
function preloadLateStyle(stylesheet) {
|
|
1478
|
+
if (0 === stylesheet.state) {
|
|
1479
|
+
stylesheet.state = 1;
|
|
1480
|
+
var props = stylesheet.props;
|
|
1481
|
+
pushLinkImpl(stylesheetFlushingQueue, {
|
|
1482
|
+
rel: "preload",
|
|
1483
|
+
as: "style",
|
|
1484
|
+
href: stylesheet.props.href,
|
|
1485
|
+
crossOrigin: props.crossOrigin,
|
|
1486
|
+
fetchPriority: props.fetchPriority,
|
|
1487
|
+
integrity: props.integrity,
|
|
1488
|
+
media: props.media,
|
|
1489
|
+
hrefLang: props.hrefLang,
|
|
1490
|
+
referrerPolicy: props.referrerPolicy
|
|
1491
|
+
});
|
|
1492
|
+
for (stylesheet = 0; stylesheet < stylesheetFlushingQueue.length; stylesheet++) writeChunk(this, stylesheetFlushingQueue[stylesheet]);
|
|
1493
|
+
stylesheetFlushingQueue.length = 0;
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
function preloadLateStyles(styleQueue) {
|
|
1497
|
+
styleQueue.sheets.forEach(preloadLateStyle, this);
|
|
1498
|
+
styleQueue.sheets.clear();
|
|
1499
|
+
}
|
|
1500
|
+
stringToPrecomputedChunk("<link rel=\"expect\" href=\"#");
|
|
1501
|
+
stringToPrecomputedChunk("\" blocking=\"render\"/>");
|
|
1502
|
+
var completedShellIdAttributeStart = stringToPrecomputedChunk(" id=\"");
|
|
1503
|
+
function pushCompletedShellIdAttribute(target, resumableState) {
|
|
1504
|
+
0 === (resumableState.instructions & 32) && (resumableState.instructions |= 32, target.push(completedShellIdAttributeStart, stringToChunk(escapeTextForBrowser("_" + resumableState.idPrefix + "R_")), attributeEnd));
|
|
1505
|
+
}
|
|
1506
|
+
var arrayFirstOpenBracket = stringToPrecomputedChunk("["), arraySubsequentOpenBracket = stringToPrecomputedChunk(",["), arrayInterstitial = stringToPrecomputedChunk(","), arrayCloseBracket = stringToPrecomputedChunk("]");
|
|
1507
|
+
function writeStyleResourceDependenciesInJS(destination, hoistableState) {
|
|
1508
|
+
writeChunk(destination, arrayFirstOpenBracket);
|
|
1509
|
+
var nextArrayOpenBrackChunk = arrayFirstOpenBracket;
|
|
1510
|
+
hoistableState.stylesheets.forEach(function(resource) {
|
|
1511
|
+
if (2 !== resource.state) if (3 === resource.state) writeChunk(destination, nextArrayOpenBrackChunk), writeChunk(destination, stringToChunk(escapeJSObjectForInstructionScripts("" + resource.props.href))), writeChunk(destination, arrayCloseBracket), nextArrayOpenBrackChunk = arraySubsequentOpenBracket;
|
|
1512
|
+
else {
|
|
1513
|
+
writeChunk(destination, nextArrayOpenBrackChunk);
|
|
1514
|
+
var precedence = resource.props["data-precedence"], props = resource.props;
|
|
1515
|
+
writeChunk(destination, stringToChunk(escapeJSObjectForInstructionScripts(sanitizeURL("" + resource.props.href))));
|
|
1516
|
+
precedence = "" + precedence;
|
|
1517
|
+
writeChunk(destination, arrayInterstitial);
|
|
1518
|
+
writeChunk(destination, stringToChunk(escapeJSObjectForInstructionScripts(precedence)));
|
|
1519
|
+
for (var propKey in props) if (hasOwnProperty.call(props, propKey) && (precedence = props[propKey], null != precedence)) switch (propKey) {
|
|
1520
|
+
case "href":
|
|
1521
|
+
case "rel":
|
|
1522
|
+
case "precedence":
|
|
1523
|
+
case "data-precedence": break;
|
|
1524
|
+
case "children":
|
|
1525
|
+
case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(399, "link"));
|
|
1526
|
+
default: writeStyleResourceAttributeInJS(destination, propKey, precedence);
|
|
1527
|
+
}
|
|
1528
|
+
writeChunk(destination, arrayCloseBracket);
|
|
1529
|
+
nextArrayOpenBrackChunk = arraySubsequentOpenBracket;
|
|
1530
|
+
resource.state = 3;
|
|
1531
|
+
}
|
|
1532
|
+
});
|
|
1533
|
+
writeChunk(destination, arrayCloseBracket);
|
|
1534
|
+
}
|
|
1535
|
+
function writeStyleResourceAttributeInJS(destination, name, value) {
|
|
1536
|
+
var attributeName = name.toLowerCase();
|
|
1537
|
+
switch (typeof value) {
|
|
1538
|
+
case "function":
|
|
1539
|
+
case "symbol": return;
|
|
1540
|
+
}
|
|
1541
|
+
switch (name) {
|
|
1542
|
+
case "innerHTML":
|
|
1543
|
+
case "dangerouslySetInnerHTML":
|
|
1544
|
+
case "suppressContentEditableWarning":
|
|
1545
|
+
case "suppressHydrationWarning":
|
|
1546
|
+
case "style":
|
|
1547
|
+
case "ref": return;
|
|
1548
|
+
case "className":
|
|
1549
|
+
attributeName = "class";
|
|
1550
|
+
name = "" + value;
|
|
1551
|
+
break;
|
|
1552
|
+
case "hidden":
|
|
1553
|
+
if (!1 === value) return;
|
|
1554
|
+
name = "";
|
|
1555
|
+
break;
|
|
1556
|
+
case "src":
|
|
1557
|
+
case "href":
|
|
1558
|
+
value = sanitizeURL(value);
|
|
1559
|
+
name = "" + value;
|
|
1560
|
+
break;
|
|
1561
|
+
default:
|
|
1562
|
+
if (2 < name.length && ("o" === name[0] || "O" === name[0]) && ("n" === name[1] || "N" === name[1]) || !isAttributeNameSafe(name)) return;
|
|
1563
|
+
name = "" + value;
|
|
1564
|
+
}
|
|
1565
|
+
writeChunk(destination, arrayInterstitial);
|
|
1566
|
+
writeChunk(destination, stringToChunk(escapeJSObjectForInstructionScripts(attributeName)));
|
|
1567
|
+
writeChunk(destination, arrayInterstitial);
|
|
1568
|
+
writeChunk(destination, stringToChunk(escapeJSObjectForInstructionScripts(name)));
|
|
1569
|
+
}
|
|
1570
|
+
function createHoistableState() {
|
|
1571
|
+
return {
|
|
1572
|
+
styles: /* @__PURE__ */ new Set(),
|
|
1573
|
+
stylesheets: /* @__PURE__ */ new Set(),
|
|
1574
|
+
suspenseyImages: !1
|
|
1575
|
+
};
|
|
1576
|
+
}
|
|
1577
|
+
function prefetchDNS(href) {
|
|
1578
|
+
var request = currentRequest ? currentRequest : null;
|
|
1579
|
+
if (request) {
|
|
1580
|
+
var resumableState = request.resumableState, renderState = request.renderState;
|
|
1581
|
+
if ("string" === typeof href && href) {
|
|
1582
|
+
if (!resumableState.dnsResources.hasOwnProperty(href)) {
|
|
1583
|
+
resumableState.dnsResources[href] = null;
|
|
1584
|
+
resumableState = renderState.headers;
|
|
1585
|
+
var header, JSCompiler_temp;
|
|
1586
|
+
if (JSCompiler_temp = resumableState && 0 < resumableState.remainingCapacity) JSCompiler_temp = (header = "<" + ("" + href).replace(regexForHrefInLinkHeaderURLContext, escapeHrefForLinkHeaderURLContextReplacer) + ">; rel=dns-prefetch", 0 <= (resumableState.remainingCapacity -= header.length + 2));
|
|
1587
|
+
JSCompiler_temp ? (renderState.resets.dns[href] = null, resumableState.preconnects && (resumableState.preconnects += ", "), resumableState.preconnects += header) : (header = [], pushLinkImpl(header, {
|
|
1588
|
+
href,
|
|
1589
|
+
rel: "dns-prefetch"
|
|
1590
|
+
}), renderState.preconnects.add(header));
|
|
1591
|
+
}
|
|
1592
|
+
enqueueFlush(request);
|
|
1593
|
+
}
|
|
1594
|
+
} else previousDispatcher.D(href);
|
|
1595
|
+
}
|
|
1596
|
+
function preconnect(href, crossOrigin) {
|
|
1597
|
+
var request = currentRequest ? currentRequest : null;
|
|
1598
|
+
if (request) {
|
|
1599
|
+
var resumableState = request.resumableState, renderState = request.renderState;
|
|
1600
|
+
if ("string" === typeof href && href) {
|
|
1601
|
+
var bucket = "use-credentials" === crossOrigin ? "credentials" : "string" === typeof crossOrigin ? "anonymous" : "default";
|
|
1602
|
+
if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
|
|
1603
|
+
resumableState.connectResources[bucket][href] = null;
|
|
1604
|
+
resumableState = renderState.headers;
|
|
1605
|
+
var header, JSCompiler_temp;
|
|
1606
|
+
if (JSCompiler_temp = resumableState && 0 < resumableState.remainingCapacity) {
|
|
1607
|
+
JSCompiler_temp = "<" + ("" + href).replace(regexForHrefInLinkHeaderURLContext, escapeHrefForLinkHeaderURLContextReplacer) + ">; rel=preconnect";
|
|
1608
|
+
if ("string" === typeof crossOrigin) {
|
|
1609
|
+
var escapedCrossOrigin = ("" + crossOrigin).replace(regexForLinkHeaderQuotedParamValueContext, escapeStringForLinkHeaderQuotedParamValueContextReplacer);
|
|
1610
|
+
JSCompiler_temp += "; crossorigin=\"" + escapedCrossOrigin + "\"";
|
|
1611
|
+
}
|
|
1612
|
+
JSCompiler_temp = (header = JSCompiler_temp, 0 <= (resumableState.remainingCapacity -= header.length + 2));
|
|
1613
|
+
}
|
|
1614
|
+
JSCompiler_temp ? (renderState.resets.connect[bucket][href] = null, resumableState.preconnects && (resumableState.preconnects += ", "), resumableState.preconnects += header) : (bucket = [], pushLinkImpl(bucket, {
|
|
1615
|
+
rel: "preconnect",
|
|
1616
|
+
href,
|
|
1617
|
+
crossOrigin
|
|
1618
|
+
}), renderState.preconnects.add(bucket));
|
|
1619
|
+
}
|
|
1620
|
+
enqueueFlush(request);
|
|
1621
|
+
}
|
|
1622
|
+
} else previousDispatcher.C(href, crossOrigin);
|
|
1623
|
+
}
|
|
1624
|
+
function preload(href, as, options) {
|
|
1625
|
+
var request = currentRequest ? currentRequest : null;
|
|
1626
|
+
if (request) {
|
|
1627
|
+
var resumableState = request.resumableState, renderState = request.renderState;
|
|
1628
|
+
if (as && href) {
|
|
1629
|
+
switch (as) {
|
|
1630
|
+
case "image":
|
|
1631
|
+
if (options) {
|
|
1632
|
+
var imageSrcSet = options.imageSrcSet;
|
|
1633
|
+
var imageSizes = options.imageSizes;
|
|
1634
|
+
var fetchPriority = options.fetchPriority;
|
|
1635
|
+
}
|
|
1636
|
+
var key = imageSrcSet ? imageSrcSet + "\n" + (imageSizes || "") : href;
|
|
1637
|
+
if (resumableState.imageResources.hasOwnProperty(key)) return;
|
|
1638
|
+
resumableState.imageResources[key] = PRELOAD_NO_CREDS;
|
|
1639
|
+
resumableState = renderState.headers;
|
|
1640
|
+
var header;
|
|
1641
|
+
resumableState && 0 < resumableState.remainingCapacity && "string" !== typeof imageSrcSet && "high" === fetchPriority && (header = getPreloadAsHeader(href, as, options), 0 <= (resumableState.remainingCapacity -= header.length + 2)) ? (renderState.resets.image[key] = PRELOAD_NO_CREDS, resumableState.highImagePreloads && (resumableState.highImagePreloads += ", "), resumableState.highImagePreloads += header) : (resumableState = [], pushLinkImpl(resumableState, assign({
|
|
1642
|
+
rel: "preload",
|
|
1643
|
+
href: imageSrcSet ? void 0 : href,
|
|
1644
|
+
as
|
|
1645
|
+
}, options)), "high" === fetchPriority ? renderState.highImagePreloads.add(resumableState) : (renderState.bulkPreloads.add(resumableState), renderState.preloads.images.set(key, resumableState)));
|
|
1646
|
+
break;
|
|
1647
|
+
case "style":
|
|
1648
|
+
if (resumableState.styleResources.hasOwnProperty(href)) return;
|
|
1649
|
+
imageSrcSet = [];
|
|
1650
|
+
pushLinkImpl(imageSrcSet, assign({
|
|
1651
|
+
rel: "preload",
|
|
1652
|
+
href,
|
|
1653
|
+
as
|
|
1654
|
+
}, options));
|
|
1655
|
+
resumableState.styleResources[href] = !options || "string" !== typeof options.crossOrigin && "string" !== typeof options.integrity ? PRELOAD_NO_CREDS : [options.crossOrigin, options.integrity];
|
|
1656
|
+
renderState.preloads.stylesheets.set(href, imageSrcSet);
|
|
1657
|
+
renderState.bulkPreloads.add(imageSrcSet);
|
|
1658
|
+
break;
|
|
1659
|
+
case "script":
|
|
1660
|
+
if (resumableState.scriptResources.hasOwnProperty(href)) return;
|
|
1661
|
+
imageSrcSet = [];
|
|
1662
|
+
renderState.preloads.scripts.set(href, imageSrcSet);
|
|
1663
|
+
renderState.bulkPreloads.add(imageSrcSet);
|
|
1664
|
+
pushLinkImpl(imageSrcSet, assign({
|
|
1665
|
+
rel: "preload",
|
|
1666
|
+
href,
|
|
1667
|
+
as
|
|
1668
|
+
}, options));
|
|
1669
|
+
resumableState.scriptResources[href] = !options || "string" !== typeof options.crossOrigin && "string" !== typeof options.integrity ? PRELOAD_NO_CREDS : [options.crossOrigin, options.integrity];
|
|
1670
|
+
break;
|
|
1671
|
+
default:
|
|
1672
|
+
if (resumableState.unknownResources.hasOwnProperty(as)) {
|
|
1673
|
+
if (imageSrcSet = resumableState.unknownResources[as], imageSrcSet.hasOwnProperty(href)) return;
|
|
1674
|
+
} else imageSrcSet = {}, resumableState.unknownResources[as] = imageSrcSet;
|
|
1675
|
+
imageSrcSet[href] = PRELOAD_NO_CREDS;
|
|
1676
|
+
if ((resumableState = renderState.headers) && 0 < resumableState.remainingCapacity && "font" === as && (key = getPreloadAsHeader(href, as, options), 0 <= (resumableState.remainingCapacity -= key.length + 2))) renderState.resets.font[href] = PRELOAD_NO_CREDS, resumableState.fontPreloads && (resumableState.fontPreloads += ", "), resumableState.fontPreloads += key;
|
|
1677
|
+
else switch (resumableState = [], href = assign({
|
|
1678
|
+
rel: "preload",
|
|
1679
|
+
href,
|
|
1680
|
+
as
|
|
1681
|
+
}, options), pushLinkImpl(resumableState, href), as) {
|
|
1682
|
+
case "font":
|
|
1683
|
+
renderState.fontPreloads.add(resumableState);
|
|
1684
|
+
break;
|
|
1685
|
+
default: renderState.bulkPreloads.add(resumableState);
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
enqueueFlush(request);
|
|
1689
|
+
}
|
|
1690
|
+
} else previousDispatcher.L(href, as, options);
|
|
1691
|
+
}
|
|
1692
|
+
function preloadModule(href, options) {
|
|
1693
|
+
var request = currentRequest ? currentRequest : null;
|
|
1694
|
+
if (request) {
|
|
1695
|
+
var resumableState = request.resumableState, renderState = request.renderState;
|
|
1696
|
+
if (href) {
|
|
1697
|
+
var as = options && "string" === typeof options.as ? options.as : "script";
|
|
1698
|
+
switch (as) {
|
|
1699
|
+
case "script":
|
|
1700
|
+
if (resumableState.moduleScriptResources.hasOwnProperty(href)) return;
|
|
1701
|
+
as = [];
|
|
1702
|
+
resumableState.moduleScriptResources[href] = !options || "string" !== typeof options.crossOrigin && "string" !== typeof options.integrity ? PRELOAD_NO_CREDS : [options.crossOrigin, options.integrity];
|
|
1703
|
+
renderState.preloads.moduleScripts.set(href, as);
|
|
1704
|
+
break;
|
|
1705
|
+
default:
|
|
1706
|
+
if (resumableState.moduleUnknownResources.hasOwnProperty(as)) {
|
|
1707
|
+
var resources = resumableState.unknownResources[as];
|
|
1708
|
+
if (resources.hasOwnProperty(href)) return;
|
|
1709
|
+
} else resources = {}, resumableState.moduleUnknownResources[as] = resources;
|
|
1710
|
+
as = [];
|
|
1711
|
+
resources[href] = PRELOAD_NO_CREDS;
|
|
1712
|
+
}
|
|
1713
|
+
pushLinkImpl(as, assign({
|
|
1714
|
+
rel: "modulepreload",
|
|
1715
|
+
href
|
|
1716
|
+
}, options));
|
|
1717
|
+
renderState.bulkPreloads.add(as);
|
|
1718
|
+
enqueueFlush(request);
|
|
1719
|
+
}
|
|
1720
|
+
} else previousDispatcher.m(href, options);
|
|
1721
|
+
}
|
|
1722
|
+
function preinitStyle(href, precedence, options) {
|
|
1723
|
+
var request = currentRequest ? currentRequest : null;
|
|
1724
|
+
if (request) {
|
|
1725
|
+
var resumableState = request.resumableState, renderState = request.renderState;
|
|
1726
|
+
if (href) {
|
|
1727
|
+
precedence = precedence || "default";
|
|
1728
|
+
var styleQueue = renderState.styles.get(precedence), resourceState = resumableState.styleResources.hasOwnProperty(href) ? resumableState.styleResources[href] : void 0;
|
|
1729
|
+
null !== resourceState && (resumableState.styleResources[href] = null, styleQueue || (styleQueue = {
|
|
1730
|
+
precedence: stringToChunk(escapeTextForBrowser(precedence)),
|
|
1731
|
+
rules: [],
|
|
1732
|
+
hrefs: [],
|
|
1733
|
+
sheets: /* @__PURE__ */ new Map()
|
|
1734
|
+
}, renderState.styles.set(precedence, styleQueue)), precedence = {
|
|
1735
|
+
state: 0,
|
|
1736
|
+
props: assign({
|
|
1737
|
+
rel: "stylesheet",
|
|
1738
|
+
href,
|
|
1739
|
+
"data-precedence": precedence
|
|
1740
|
+
}, options)
|
|
1741
|
+
}, resourceState && (2 === resourceState.length && adoptPreloadCredentials(precedence.props, resourceState), (renderState = renderState.preloads.stylesheets.get(href)) && 0 < renderState.length ? renderState.length = 0 : precedence.state = 1), styleQueue.sheets.set(href, precedence), enqueueFlush(request));
|
|
1742
|
+
}
|
|
1743
|
+
} else previousDispatcher.S(href, precedence, options);
|
|
1744
|
+
}
|
|
1745
|
+
function preinitScript(src, options) {
|
|
1746
|
+
var request = currentRequest ? currentRequest : null;
|
|
1747
|
+
if (request) {
|
|
1748
|
+
var resumableState = request.resumableState, renderState = request.renderState;
|
|
1749
|
+
if (src) {
|
|
1750
|
+
var resourceState = resumableState.scriptResources.hasOwnProperty(src) ? resumableState.scriptResources[src] : void 0;
|
|
1751
|
+
null !== resourceState && (resumableState.scriptResources[src] = null, options = assign({
|
|
1752
|
+
src,
|
|
1753
|
+
async: !0
|
|
1754
|
+
}, options), resourceState && (2 === resourceState.length && adoptPreloadCredentials(options, resourceState), src = renderState.preloads.scripts.get(src)) && (src.length = 0), src = [], renderState.scripts.add(src), pushScriptImpl(src, options), enqueueFlush(request));
|
|
1755
|
+
}
|
|
1756
|
+
} else previousDispatcher.X(src, options);
|
|
1757
|
+
}
|
|
1758
|
+
function preinitModuleScript(src, options) {
|
|
1759
|
+
var request = currentRequest ? currentRequest : null;
|
|
1760
|
+
if (request) {
|
|
1761
|
+
var resumableState = request.resumableState, renderState = request.renderState;
|
|
1762
|
+
if (src) {
|
|
1763
|
+
var resourceState = resumableState.moduleScriptResources.hasOwnProperty(src) ? resumableState.moduleScriptResources[src] : void 0;
|
|
1764
|
+
null !== resourceState && (resumableState.moduleScriptResources[src] = null, options = assign({
|
|
1765
|
+
src,
|
|
1766
|
+
type: "module",
|
|
1767
|
+
async: !0
|
|
1768
|
+
}, options), resourceState && (2 === resourceState.length && adoptPreloadCredentials(options, resourceState), src = renderState.preloads.moduleScripts.get(src)) && (src.length = 0), src = [], renderState.scripts.add(src), pushScriptImpl(src, options), enqueueFlush(request));
|
|
1769
|
+
}
|
|
1770
|
+
} else previousDispatcher.M(src, options);
|
|
1771
|
+
}
|
|
1772
|
+
function adoptPreloadCredentials(target, preloadState) {
|
|
1773
|
+
target.crossOrigin ??= preloadState[0];
|
|
1774
|
+
target.integrity ??= preloadState[1];
|
|
1775
|
+
}
|
|
1776
|
+
function getPreloadAsHeader(href, as, params) {
|
|
1777
|
+
href = ("" + href).replace(regexForHrefInLinkHeaderURLContext, escapeHrefForLinkHeaderURLContextReplacer);
|
|
1778
|
+
as = ("" + as).replace(regexForLinkHeaderQuotedParamValueContext, escapeStringForLinkHeaderQuotedParamValueContextReplacer);
|
|
1779
|
+
as = "<" + href + ">; rel=preload; as=\"" + as + "\"";
|
|
1780
|
+
for (var paramName in params) hasOwnProperty.call(params, paramName) && (href = params[paramName], "string" === typeof href && (as += "; " + paramName.toLowerCase() + "=\"" + ("" + href).replace(regexForLinkHeaderQuotedParamValueContext, escapeStringForLinkHeaderQuotedParamValueContextReplacer) + "\""));
|
|
1781
|
+
return as;
|
|
1782
|
+
}
|
|
1783
|
+
var regexForHrefInLinkHeaderURLContext = /[<>\r\n]/g;
|
|
1784
|
+
function escapeHrefForLinkHeaderURLContextReplacer(match) {
|
|
1785
|
+
switch (match) {
|
|
1786
|
+
case "<": return "%3C";
|
|
1787
|
+
case ">": return "%3E";
|
|
1788
|
+
case "\n": return "%0A";
|
|
1789
|
+
case "\r": return "%0D";
|
|
1790
|
+
default: throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
var regexForLinkHeaderQuotedParamValueContext = /["';,\r\n]/g;
|
|
1794
|
+
function escapeStringForLinkHeaderQuotedParamValueContextReplacer(match) {
|
|
1795
|
+
switch (match) {
|
|
1796
|
+
case "\"": return "%22";
|
|
1797
|
+
case "'": return "%27";
|
|
1798
|
+
case ";": return "%3B";
|
|
1799
|
+
case ",": return "%2C";
|
|
1800
|
+
case "\n": return "%0A";
|
|
1801
|
+
case "\r": return "%0D";
|
|
1802
|
+
default: throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
function hoistStyleQueueDependency(styleQueue) {
|
|
1806
|
+
this.styles.add(styleQueue);
|
|
1807
|
+
}
|
|
1808
|
+
function hoistStylesheetDependency(stylesheet) {
|
|
1809
|
+
this.stylesheets.add(stylesheet);
|
|
1810
|
+
}
|
|
1811
|
+
function hoistHoistables(parentState, childState) {
|
|
1812
|
+
childState.styles.forEach(hoistStyleQueueDependency, parentState);
|
|
1813
|
+
childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
|
|
1814
|
+
childState.suspenseyImages && (parentState.suspenseyImages = !0);
|
|
1815
|
+
}
|
|
1816
|
+
function hasSuspenseyContent(hoistableState) {
|
|
1817
|
+
return 0 < hoistableState.stylesheets.size || hoistableState.suspenseyImages;
|
|
1818
|
+
}
|
|
1819
|
+
var bind = Function.prototype.bind, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
1820
|
+
function getComponentNameFromType(type) {
|
|
1821
|
+
if (null == type) return null;
|
|
1822
|
+
if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
1823
|
+
if ("string" === typeof type) return type;
|
|
1824
|
+
switch (type) {
|
|
1825
|
+
case REACT_FRAGMENT_TYPE: return "Fragment";
|
|
1826
|
+
case REACT_PROFILER_TYPE: return "Profiler";
|
|
1827
|
+
case REACT_STRICT_MODE_TYPE: return "StrictMode";
|
|
1828
|
+
case REACT_SUSPENSE_TYPE: return "Suspense";
|
|
1829
|
+
case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
|
|
1830
|
+
case REACT_ACTIVITY_TYPE: return "Activity";
|
|
1831
|
+
}
|
|
1832
|
+
if ("object" === typeof type) switch (type.$$typeof) {
|
|
1833
|
+
case REACT_PORTAL_TYPE: return "Portal";
|
|
1834
|
+
case REACT_CONTEXT_TYPE: return type.displayName || "Context";
|
|
1835
|
+
case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer";
|
|
1836
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1837
|
+
var innerType = type.render;
|
|
1838
|
+
type = type.displayName;
|
|
1839
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1840
|
+
return type;
|
|
1841
|
+
case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1842
|
+
case REACT_LAZY_TYPE:
|
|
1843
|
+
innerType = type._payload;
|
|
1844
|
+
type = type._init;
|
|
1845
|
+
try {
|
|
1846
|
+
return getComponentNameFromType(type(innerType));
|
|
1847
|
+
} catch (x) {}
|
|
1848
|
+
}
|
|
1849
|
+
return null;
|
|
1850
|
+
}
|
|
1851
|
+
var emptyContextObject = {}, currentActiveSnapshot = null;
|
|
1852
|
+
function popToNearestCommonAncestor(prev, next) {
|
|
1853
|
+
if (prev !== next) {
|
|
1854
|
+
prev.context._currentValue = prev.parentValue;
|
|
1855
|
+
prev = prev.parent;
|
|
1856
|
+
var parentNext = next.parent;
|
|
1857
|
+
if (null === prev) {
|
|
1858
|
+
if (null !== parentNext) throw Error(formatProdErrorMessage(401));
|
|
1859
|
+
} else {
|
|
1860
|
+
if (null === parentNext) throw Error(formatProdErrorMessage(401));
|
|
1861
|
+
popToNearestCommonAncestor(prev, parentNext);
|
|
1862
|
+
}
|
|
1863
|
+
next.context._currentValue = next.value;
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
function popAllPrevious(prev) {
|
|
1867
|
+
prev.context._currentValue = prev.parentValue;
|
|
1868
|
+
prev = prev.parent;
|
|
1869
|
+
null !== prev && popAllPrevious(prev);
|
|
1870
|
+
}
|
|
1871
|
+
function pushAllNext(next) {
|
|
1872
|
+
var parentNext = next.parent;
|
|
1873
|
+
null !== parentNext && pushAllNext(parentNext);
|
|
1874
|
+
next.context._currentValue = next.value;
|
|
1875
|
+
}
|
|
1876
|
+
function popPreviousToCommonLevel(prev, next) {
|
|
1877
|
+
prev.context._currentValue = prev.parentValue;
|
|
1878
|
+
prev = prev.parent;
|
|
1879
|
+
if (null === prev) throw Error(formatProdErrorMessage(402));
|
|
1880
|
+
prev.depth === next.depth ? popToNearestCommonAncestor(prev, next) : popPreviousToCommonLevel(prev, next);
|
|
1881
|
+
}
|
|
1882
|
+
function popNextToCommonLevel(prev, next) {
|
|
1883
|
+
var parentNext = next.parent;
|
|
1884
|
+
if (null === parentNext) throw Error(formatProdErrorMessage(402));
|
|
1885
|
+
prev.depth === parentNext.depth ? popToNearestCommonAncestor(prev, parentNext) : popNextToCommonLevel(prev, parentNext);
|
|
1886
|
+
next.context._currentValue = next.value;
|
|
1887
|
+
}
|
|
1888
|
+
function switchContext(newSnapshot) {
|
|
1889
|
+
var prev = currentActiveSnapshot;
|
|
1890
|
+
prev !== newSnapshot && (null === prev ? pushAllNext(newSnapshot) : null === newSnapshot ? popAllPrevious(prev) : prev.depth === newSnapshot.depth ? popToNearestCommonAncestor(prev, newSnapshot) : prev.depth > newSnapshot.depth ? popPreviousToCommonLevel(prev, newSnapshot) : popNextToCommonLevel(prev, newSnapshot), currentActiveSnapshot = newSnapshot);
|
|
1891
|
+
}
|
|
1892
|
+
var classComponentUpdater = {
|
|
1893
|
+
enqueueSetState: function(inst, payload) {
|
|
1894
|
+
inst = inst._reactInternals;
|
|
1895
|
+
null !== inst.queue && inst.queue.push(payload);
|
|
1896
|
+
},
|
|
1897
|
+
enqueueReplaceState: function(inst, payload) {
|
|
1898
|
+
inst = inst._reactInternals;
|
|
1899
|
+
inst.replace = !0;
|
|
1900
|
+
inst.queue = [payload];
|
|
1901
|
+
},
|
|
1902
|
+
enqueueForceUpdate: function() {}
|
|
1903
|
+
}, emptyTreeContext = {
|
|
1904
|
+
id: 1,
|
|
1905
|
+
overflow: ""
|
|
1906
|
+
};
|
|
1907
|
+
function pushTreeContext(baseContext, totalChildren, index) {
|
|
1908
|
+
var baseIdWithLeadingBit = baseContext.id;
|
|
1909
|
+
baseContext = baseContext.overflow;
|
|
1910
|
+
var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
|
|
1911
|
+
baseIdWithLeadingBit &= ~(1 << baseLength);
|
|
1912
|
+
index += 1;
|
|
1913
|
+
var length = 32 - clz32(totalChildren) + baseLength;
|
|
1914
|
+
if (30 < length) {
|
|
1915
|
+
var numberOfOverflowBits = baseLength - baseLength % 5;
|
|
1916
|
+
length = (baseIdWithLeadingBit & (1 << numberOfOverflowBits) - 1).toString(32);
|
|
1917
|
+
baseIdWithLeadingBit >>= numberOfOverflowBits;
|
|
1918
|
+
baseLength -= numberOfOverflowBits;
|
|
1919
|
+
return {
|
|
1920
|
+
id: 1 << 32 - clz32(totalChildren) + baseLength | index << baseLength | baseIdWithLeadingBit,
|
|
1921
|
+
overflow: length + baseContext
|
|
1922
|
+
};
|
|
1923
|
+
}
|
|
1924
|
+
return {
|
|
1925
|
+
id: 1 << length | index << baseLength | baseIdWithLeadingBit,
|
|
1926
|
+
overflow: baseContext
|
|
1927
|
+
};
|
|
1928
|
+
}
|
|
1929
|
+
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, log = Math.log, LN2 = Math.LN2;
|
|
1930
|
+
function clz32Fallback(x) {
|
|
1931
|
+
x >>>= 0;
|
|
1932
|
+
return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0;
|
|
1933
|
+
}
|
|
1934
|
+
function noop() {}
|
|
1935
|
+
var SuspenseException = Error(formatProdErrorMessage(460));
|
|
1936
|
+
function trackUsedThenable(thenableState$1, thenable, index) {
|
|
1937
|
+
index = thenableState$1[index];
|
|
1938
|
+
void 0 === index ? thenableState$1.push(thenable) : index !== thenable && (thenable.then(noop, noop), thenable = index);
|
|
1939
|
+
switch (thenable.status) {
|
|
1940
|
+
case "fulfilled": return thenable.value;
|
|
1941
|
+
case "rejected": throw thenable.reason;
|
|
1942
|
+
default:
|
|
1943
|
+
"string" === typeof thenable.status ? thenable.then(noop, noop) : (thenableState$1 = thenable, thenableState$1.status = "pending", thenableState$1.then(function(fulfilledValue) {
|
|
1944
|
+
if ("pending" === thenable.status) {
|
|
1945
|
+
var fulfilledThenable = thenable;
|
|
1946
|
+
fulfilledThenable.status = "fulfilled";
|
|
1947
|
+
fulfilledThenable.value = fulfilledValue;
|
|
1948
|
+
}
|
|
1949
|
+
}, function(error) {
|
|
1950
|
+
if ("pending" === thenable.status) {
|
|
1951
|
+
var rejectedThenable = thenable;
|
|
1952
|
+
rejectedThenable.status = "rejected";
|
|
1953
|
+
rejectedThenable.reason = error;
|
|
1954
|
+
}
|
|
1955
|
+
}));
|
|
1956
|
+
switch (thenable.status) {
|
|
1957
|
+
case "fulfilled": return thenable.value;
|
|
1958
|
+
case "rejected": throw thenable.reason;
|
|
1959
|
+
}
|
|
1960
|
+
suspendedThenable = thenable;
|
|
1961
|
+
throw SuspenseException;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
var suspendedThenable = null;
|
|
1965
|
+
function getSuspendedThenable() {
|
|
1966
|
+
if (null === suspendedThenable) throw Error(formatProdErrorMessage(459));
|
|
1967
|
+
var thenable = suspendedThenable;
|
|
1968
|
+
suspendedThenable = null;
|
|
1969
|
+
return thenable;
|
|
1970
|
+
}
|
|
1971
|
+
function is(x, y) {
|
|
1972
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
1973
|
+
}
|
|
1974
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is, currentlyRenderingComponent = null, currentlyRenderingTask = null, currentlyRenderingRequest = null, currentlyRenderingKeyPath = null, firstWorkInProgressHook = null, workInProgressHook = null, isReRender = !1, didScheduleRenderPhaseUpdate = !1, localIdCounter = 0, actionStateCounter = 0, actionStateMatchingIndex = -1, thenableIndexCounter = 0, thenableState = null, renderPhaseUpdates = null, numberOfReRenders = 0;
|
|
1975
|
+
function resolveCurrentlyRenderingComponent() {
|
|
1976
|
+
if (null === currentlyRenderingComponent) throw Error(formatProdErrorMessage(321));
|
|
1977
|
+
return currentlyRenderingComponent;
|
|
1978
|
+
}
|
|
1979
|
+
function createHook() {
|
|
1980
|
+
if (0 < numberOfReRenders) throw Error(formatProdErrorMessage(312));
|
|
1981
|
+
return {
|
|
1982
|
+
memoizedState: null,
|
|
1983
|
+
queue: null,
|
|
1984
|
+
next: null
|
|
1985
|
+
};
|
|
1986
|
+
}
|
|
1987
|
+
function createWorkInProgressHook() {
|
|
1988
|
+
null === workInProgressHook ? null === firstWorkInProgressHook ? (isReRender = !1, firstWorkInProgressHook = workInProgressHook = createHook()) : (isReRender = !0, workInProgressHook = firstWorkInProgressHook) : null === workInProgressHook.next ? (isReRender = !1, workInProgressHook = workInProgressHook.next = createHook()) : (isReRender = !0, workInProgressHook = workInProgressHook.next);
|
|
1989
|
+
return workInProgressHook;
|
|
1990
|
+
}
|
|
1991
|
+
function getThenableStateAfterSuspending() {
|
|
1992
|
+
var state = thenableState;
|
|
1993
|
+
thenableState = null;
|
|
1994
|
+
return state;
|
|
1995
|
+
}
|
|
1996
|
+
function resetHooksState() {
|
|
1997
|
+
currentlyRenderingKeyPath = currentlyRenderingRequest = currentlyRenderingTask = currentlyRenderingComponent = null;
|
|
1998
|
+
didScheduleRenderPhaseUpdate = !1;
|
|
1999
|
+
firstWorkInProgressHook = null;
|
|
2000
|
+
numberOfReRenders = 0;
|
|
2001
|
+
workInProgressHook = renderPhaseUpdates = null;
|
|
2002
|
+
}
|
|
2003
|
+
function basicStateReducer(state, action) {
|
|
2004
|
+
return "function" === typeof action ? action(state) : action;
|
|
2005
|
+
}
|
|
2006
|
+
function useReducer(reducer, initialArg, init) {
|
|
2007
|
+
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
|
2008
|
+
workInProgressHook = createWorkInProgressHook();
|
|
2009
|
+
if (isReRender) {
|
|
2010
|
+
var queue = workInProgressHook.queue;
|
|
2011
|
+
initialArg = queue.dispatch;
|
|
2012
|
+
if (null !== renderPhaseUpdates && (init = renderPhaseUpdates.get(queue), void 0 !== init)) {
|
|
2013
|
+
renderPhaseUpdates.delete(queue);
|
|
2014
|
+
queue = workInProgressHook.memoizedState;
|
|
2015
|
+
do
|
|
2016
|
+
queue = reducer(queue, init.action), init = init.next;
|
|
2017
|
+
while (null !== init);
|
|
2018
|
+
workInProgressHook.memoizedState = queue;
|
|
2019
|
+
return [queue, initialArg];
|
|
2020
|
+
}
|
|
2021
|
+
return [workInProgressHook.memoizedState, initialArg];
|
|
2022
|
+
}
|
|
2023
|
+
reducer = reducer === basicStateReducer ? "function" === typeof initialArg ? initialArg() : initialArg : void 0 !== init ? init(initialArg) : initialArg;
|
|
2024
|
+
workInProgressHook.memoizedState = reducer;
|
|
2025
|
+
reducer = workInProgressHook.queue = {
|
|
2026
|
+
last: null,
|
|
2027
|
+
dispatch: null
|
|
2028
|
+
};
|
|
2029
|
+
reducer = reducer.dispatch = dispatchAction.bind(null, currentlyRenderingComponent, reducer);
|
|
2030
|
+
return [workInProgressHook.memoizedState, reducer];
|
|
2031
|
+
}
|
|
2032
|
+
function useMemo(nextCreate, deps) {
|
|
2033
|
+
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
|
2034
|
+
workInProgressHook = createWorkInProgressHook();
|
|
2035
|
+
deps = void 0 === deps ? null : deps;
|
|
2036
|
+
if (null !== workInProgressHook) {
|
|
2037
|
+
var prevState = workInProgressHook.memoizedState;
|
|
2038
|
+
if (null !== prevState && null !== deps) {
|
|
2039
|
+
var prevDeps = prevState[1];
|
|
2040
|
+
a: if (null === prevDeps) prevDeps = !1;
|
|
2041
|
+
else {
|
|
2042
|
+
for (var i = 0; i < prevDeps.length && i < deps.length; i++) if (!objectIs(deps[i], prevDeps[i])) {
|
|
2043
|
+
prevDeps = !1;
|
|
2044
|
+
break a;
|
|
2045
|
+
}
|
|
2046
|
+
prevDeps = !0;
|
|
2047
|
+
}
|
|
2048
|
+
if (prevDeps) return prevState[0];
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
nextCreate = nextCreate();
|
|
2052
|
+
workInProgressHook.memoizedState = [nextCreate, deps];
|
|
2053
|
+
return nextCreate;
|
|
2054
|
+
}
|
|
2055
|
+
function dispatchAction(componentIdentity, queue, action) {
|
|
2056
|
+
if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));
|
|
2057
|
+
if (componentIdentity === currentlyRenderingComponent) if (didScheduleRenderPhaseUpdate = !0, componentIdentity = {
|
|
2058
|
+
action,
|
|
2059
|
+
next: null
|
|
2060
|
+
}, null === renderPhaseUpdates && (renderPhaseUpdates = /* @__PURE__ */ new Map()), action = renderPhaseUpdates.get(queue), void 0 === action) renderPhaseUpdates.set(queue, componentIdentity);
|
|
2061
|
+
else {
|
|
2062
|
+
for (queue = action; null !== queue.next;) queue = queue.next;
|
|
2063
|
+
queue.next = componentIdentity;
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
function throwOnUseEffectEventCall() {
|
|
2067
|
+
throw Error(formatProdErrorMessage(440));
|
|
2068
|
+
}
|
|
2069
|
+
function unsupportedStartTransition() {
|
|
2070
|
+
throw Error(formatProdErrorMessage(394));
|
|
2071
|
+
}
|
|
2072
|
+
function unsupportedSetOptimisticState() {
|
|
2073
|
+
throw Error(formatProdErrorMessage(479));
|
|
2074
|
+
}
|
|
2075
|
+
function useActionState(action, initialState, permalink) {
|
|
2076
|
+
resolveCurrentlyRenderingComponent();
|
|
2077
|
+
var actionStateHookIndex = actionStateCounter++, request = currentlyRenderingRequest;
|
|
2078
|
+
if ("function" === typeof action.$$FORM_ACTION) {
|
|
2079
|
+
var nextPostbackStateKey = null, componentKeyPath = currentlyRenderingKeyPath;
|
|
2080
|
+
request = request.formState;
|
|
2081
|
+
var isSignatureEqual = action.$$IS_SIGNATURE_EQUAL;
|
|
2082
|
+
if (null !== request && "function" === typeof isSignatureEqual) {
|
|
2083
|
+
var postbackKey = request[1];
|
|
2084
|
+
isSignatureEqual.call(action, request[2], request[3]) && (nextPostbackStateKey = void 0 !== permalink ? "p" + permalink : "k" + murmurhash3_32_gc(JSON.stringify([
|
|
2085
|
+
componentKeyPath,
|
|
2086
|
+
null,
|
|
2087
|
+
actionStateHookIndex
|
|
2088
|
+
]), 0), postbackKey === nextPostbackStateKey && (actionStateMatchingIndex = actionStateHookIndex, initialState = request[0]));
|
|
2089
|
+
}
|
|
2090
|
+
var boundAction = action.bind(null, initialState);
|
|
2091
|
+
action = function(payload) {
|
|
2092
|
+
boundAction(payload);
|
|
2093
|
+
};
|
|
2094
|
+
"function" === typeof boundAction.$$FORM_ACTION && (action.$$FORM_ACTION = function(prefix$1) {
|
|
2095
|
+
prefix$1 = boundAction.$$FORM_ACTION(prefix$1);
|
|
2096
|
+
void 0 !== permalink && (permalink += "", prefix$1.action = permalink);
|
|
2097
|
+
var formData = prefix$1.data;
|
|
2098
|
+
formData && (null === nextPostbackStateKey && (nextPostbackStateKey = void 0 !== permalink ? "p" + permalink : "k" + murmurhash3_32_gc(JSON.stringify([
|
|
2099
|
+
componentKeyPath,
|
|
2100
|
+
null,
|
|
2101
|
+
actionStateHookIndex
|
|
2102
|
+
]), 0)), formData.append("$ACTION_KEY", nextPostbackStateKey));
|
|
2103
|
+
return prefix$1;
|
|
2104
|
+
});
|
|
2105
|
+
return [
|
|
2106
|
+
initialState,
|
|
2107
|
+
action,
|
|
2108
|
+
!1
|
|
2109
|
+
];
|
|
2110
|
+
}
|
|
2111
|
+
var boundAction$22 = action.bind(null, initialState);
|
|
2112
|
+
return [
|
|
2113
|
+
initialState,
|
|
2114
|
+
function(payload) {
|
|
2115
|
+
boundAction$22(payload);
|
|
2116
|
+
},
|
|
2117
|
+
!1
|
|
2118
|
+
];
|
|
2119
|
+
}
|
|
2120
|
+
function unwrapThenable(thenable) {
|
|
2121
|
+
var index = thenableIndexCounter;
|
|
2122
|
+
thenableIndexCounter += 1;
|
|
2123
|
+
null === thenableState && (thenableState = []);
|
|
2124
|
+
return trackUsedThenable(thenableState, thenable, index);
|
|
2125
|
+
}
|
|
2126
|
+
function unsupportedRefresh() {
|
|
2127
|
+
throw Error(formatProdErrorMessage(393));
|
|
2128
|
+
}
|
|
2129
|
+
var HooksDispatcher = {
|
|
2130
|
+
readContext: function(context) {
|
|
2131
|
+
return context._currentValue;
|
|
2132
|
+
},
|
|
2133
|
+
use: function(usable) {
|
|
2134
|
+
if (null !== usable && "object" === typeof usable) {
|
|
2135
|
+
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
|
2136
|
+
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue;
|
|
2137
|
+
}
|
|
2138
|
+
throw Error(formatProdErrorMessage(438, String(usable)));
|
|
2139
|
+
},
|
|
2140
|
+
useContext: function(context) {
|
|
2141
|
+
resolveCurrentlyRenderingComponent();
|
|
2142
|
+
return context._currentValue;
|
|
2143
|
+
},
|
|
2144
|
+
useMemo,
|
|
2145
|
+
useReducer,
|
|
2146
|
+
useRef: function(initialValue) {
|
|
2147
|
+
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
|
2148
|
+
workInProgressHook = createWorkInProgressHook();
|
|
2149
|
+
var previousRef = workInProgressHook.memoizedState;
|
|
2150
|
+
return null === previousRef ? (initialValue = { current: initialValue }, workInProgressHook.memoizedState = initialValue) : previousRef;
|
|
2151
|
+
},
|
|
2152
|
+
useState: function(initialState) {
|
|
2153
|
+
return useReducer(basicStateReducer, initialState);
|
|
2154
|
+
},
|
|
2155
|
+
useInsertionEffect: noop,
|
|
2156
|
+
useLayoutEffect: noop,
|
|
2157
|
+
useCallback: function(callback, deps) {
|
|
2158
|
+
return useMemo(function() {
|
|
2159
|
+
return callback;
|
|
2160
|
+
}, deps);
|
|
2161
|
+
},
|
|
2162
|
+
useImperativeHandle: noop,
|
|
2163
|
+
useEffect: noop,
|
|
2164
|
+
useDebugValue: noop,
|
|
2165
|
+
useDeferredValue: function(value, initialValue) {
|
|
2166
|
+
resolveCurrentlyRenderingComponent();
|
|
2167
|
+
return void 0 !== initialValue ? initialValue : value;
|
|
2168
|
+
},
|
|
2169
|
+
useTransition: function() {
|
|
2170
|
+
resolveCurrentlyRenderingComponent();
|
|
2171
|
+
return [!1, unsupportedStartTransition];
|
|
2172
|
+
},
|
|
2173
|
+
useId: function() {
|
|
2174
|
+
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
|
2175
|
+
var overflow = JSCompiler_inline_result.overflow;
|
|
2176
|
+
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
2177
|
+
JSCompiler_inline_result = (JSCompiler_inline_result & ~(1 << 32 - clz32(JSCompiler_inline_result) - 1)).toString(32) + overflow;
|
|
2178
|
+
var resumableState = currentResumableState;
|
|
2179
|
+
if (null === resumableState) throw Error(formatProdErrorMessage(404));
|
|
2180
|
+
overflow = localIdCounter++;
|
|
2181
|
+
JSCompiler_inline_result = "_" + resumableState.idPrefix + "R_" + JSCompiler_inline_result;
|
|
2182
|
+
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
2183
|
+
return JSCompiler_inline_result + "_";
|
|
2184
|
+
},
|
|
2185
|
+
useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) {
|
|
2186
|
+
if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));
|
|
2187
|
+
return getServerSnapshot();
|
|
2188
|
+
},
|
|
2189
|
+
useOptimistic: function(passthrough) {
|
|
2190
|
+
resolveCurrentlyRenderingComponent();
|
|
2191
|
+
return [passthrough, unsupportedSetOptimisticState];
|
|
2192
|
+
},
|
|
2193
|
+
useActionState,
|
|
2194
|
+
useFormState: useActionState,
|
|
2195
|
+
useHostTransitionStatus: function() {
|
|
2196
|
+
resolveCurrentlyRenderingComponent();
|
|
2197
|
+
return sharedNotPendingObject;
|
|
2198
|
+
},
|
|
2199
|
+
useMemoCache: function(size) {
|
|
2200
|
+
for (var data = Array(size), i = 0; i < size; i++) data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
2201
|
+
return data;
|
|
2202
|
+
},
|
|
2203
|
+
useCacheRefresh: function() {
|
|
2204
|
+
return unsupportedRefresh;
|
|
2205
|
+
},
|
|
2206
|
+
useEffectEvent: function() {
|
|
2207
|
+
return throwOnUseEffectEventCall;
|
|
2208
|
+
}
|
|
2209
|
+
}, currentResumableState = null, DefaultAsyncDispatcher = {
|
|
2210
|
+
getCacheForType: function() {
|
|
2211
|
+
throw Error(formatProdErrorMessage(248));
|
|
2212
|
+
},
|
|
2213
|
+
cacheSignal: function() {
|
|
2214
|
+
throw Error(formatProdErrorMessage(248));
|
|
2215
|
+
}
|
|
2216
|
+
}, prefix, suffix;
|
|
2217
|
+
function describeBuiltInComponentFrame(name) {
|
|
2218
|
+
if (void 0 === prefix) try {
|
|
2219
|
+
throw Error();
|
|
2220
|
+
} catch (x) {
|
|
2221
|
+
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
2222
|
+
prefix = match && match[1] || "";
|
|
2223
|
+
suffix = -1 < x.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
2224
|
+
}
|
|
2225
|
+
return "\n" + prefix + name + suffix;
|
|
2226
|
+
}
|
|
2227
|
+
var reentry = !1;
|
|
2228
|
+
function describeNativeComponentFrame(fn, construct) {
|
|
2229
|
+
if (!fn || reentry) return "";
|
|
2230
|
+
reentry = !0;
|
|
2231
|
+
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
2232
|
+
Error.prepareStackTrace = void 0;
|
|
2233
|
+
try {
|
|
2234
|
+
var RunInRootFrame = { DetermineComponentFrameRoot: function() {
|
|
2235
|
+
try {
|
|
2236
|
+
if (construct) {
|
|
2237
|
+
var Fake = function() {
|
|
2238
|
+
throw Error();
|
|
2239
|
+
};
|
|
2240
|
+
Object.defineProperty(Fake.prototype, "props", { set: function() {
|
|
2241
|
+
throw Error();
|
|
2242
|
+
} });
|
|
2243
|
+
if ("object" === typeof Reflect && Reflect.construct) {
|
|
2244
|
+
try {
|
|
2245
|
+
Reflect.construct(Fake, []);
|
|
2246
|
+
} catch (x) {
|
|
2247
|
+
var control = x;
|
|
2248
|
+
}
|
|
2249
|
+
Reflect.construct(fn, [], Fake);
|
|
2250
|
+
} else {
|
|
2251
|
+
try {
|
|
2252
|
+
Fake.call();
|
|
2253
|
+
} catch (x$24) {
|
|
2254
|
+
control = x$24;
|
|
2255
|
+
}
|
|
2256
|
+
fn.call(Fake.prototype);
|
|
2257
|
+
}
|
|
2258
|
+
} else {
|
|
2259
|
+
try {
|
|
2260
|
+
throw Error();
|
|
2261
|
+
} catch (x$25) {
|
|
2262
|
+
control = x$25;
|
|
2263
|
+
}
|
|
2264
|
+
(Fake = fn()) && "function" === typeof Fake.catch && Fake.catch(function() {});
|
|
2265
|
+
}
|
|
2266
|
+
} catch (sample) {
|
|
2267
|
+
if (sample && control && "string" === typeof sample.stack) return [sample.stack, control.stack];
|
|
2268
|
+
}
|
|
2269
|
+
return [null, null];
|
|
2270
|
+
} };
|
|
2271
|
+
RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
2272
|
+
var namePropDescriptor = Object.getOwnPropertyDescriptor(RunInRootFrame.DetermineComponentFrameRoot, "name");
|
|
2273
|
+
namePropDescriptor && namePropDescriptor.configurable && Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" });
|
|
2274
|
+
var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), sampleStack = _RunInRootFrame$Deter[0], controlStack = _RunInRootFrame$Deter[1];
|
|
2275
|
+
if (sampleStack && controlStack) {
|
|
2276
|
+
var sampleLines = sampleStack.split("\n"), controlLines = controlStack.split("\n");
|
|
2277
|
+
for (namePropDescriptor = RunInRootFrame = 0; RunInRootFrame < sampleLines.length && !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot");) RunInRootFrame++;
|
|
2278
|
+
for (; namePropDescriptor < controlLines.length && !controlLines[namePropDescriptor].includes("DetermineComponentFrameRoot");) namePropDescriptor++;
|
|
2279
|
+
if (RunInRootFrame === sampleLines.length || namePropDescriptor === controlLines.length) for (RunInRootFrame = sampleLines.length - 1, namePropDescriptor = controlLines.length - 1; 1 <= RunInRootFrame && 0 <= namePropDescriptor && sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor];) namePropDescriptor--;
|
|
2280
|
+
for (; 1 <= RunInRootFrame && 0 <= namePropDescriptor; RunInRootFrame--, namePropDescriptor--) if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {
|
|
2281
|
+
if (1 !== RunInRootFrame || 1 !== namePropDescriptor) do
|
|
2282
|
+
if (RunInRootFrame--, namePropDescriptor--, 0 > namePropDescriptor || sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {
|
|
2283
|
+
var frame = "\n" + sampleLines[RunInRootFrame].replace(" at new ", " at ");
|
|
2284
|
+
fn.displayName && frame.includes("<anonymous>") && (frame = frame.replace("<anonymous>", fn.displayName));
|
|
2285
|
+
return frame;
|
|
2286
|
+
}
|
|
2287
|
+
while (1 <= RunInRootFrame && 0 <= namePropDescriptor);
|
|
2288
|
+
break;
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
} finally {
|
|
2292
|
+
reentry = !1, Error.prepareStackTrace = previousPrepareStackTrace;
|
|
2293
|
+
}
|
|
2294
|
+
return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(previousPrepareStackTrace) : "";
|
|
2295
|
+
}
|
|
2296
|
+
function describeComponentStackByType(type) {
|
|
2297
|
+
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
2298
|
+
if ("function" === typeof type) return type.prototype && type.prototype.isReactComponent ? describeNativeComponentFrame(type, !0) : describeNativeComponentFrame(type, !1);
|
|
2299
|
+
if ("object" === typeof type && null !== type) {
|
|
2300
|
+
switch (type.$$typeof) {
|
|
2301
|
+
case REACT_FORWARD_REF_TYPE: return describeNativeComponentFrame(type.render, !1);
|
|
2302
|
+
case REACT_MEMO_TYPE: return describeNativeComponentFrame(type.type, !1);
|
|
2303
|
+
case REACT_LAZY_TYPE:
|
|
2304
|
+
var lazyComponent = type, payload = lazyComponent._payload;
|
|
2305
|
+
lazyComponent = lazyComponent._init;
|
|
2306
|
+
try {
|
|
2307
|
+
type = lazyComponent(payload);
|
|
2308
|
+
} catch (x) {
|
|
2309
|
+
return describeBuiltInComponentFrame("Lazy");
|
|
2310
|
+
}
|
|
2311
|
+
return describeComponentStackByType(type);
|
|
2312
|
+
}
|
|
2313
|
+
if ("string" === typeof type.name) {
|
|
2314
|
+
a: {
|
|
2315
|
+
payload = type.name;
|
|
2316
|
+
lazyComponent = type.env;
|
|
2317
|
+
var location = type.debugLocation;
|
|
2318
|
+
if (null != location && (type = Error.prepareStackTrace, Error.prepareStackTrace = void 0, location = location.stack, Error.prepareStackTrace = type, location.startsWith("Error: react-stack-top-frame\n") && (location = location.slice(29)), type = location.indexOf("\n"), -1 !== type && (location = location.slice(type + 1)), type = location.indexOf("react_stack_bottom_frame"), -1 !== type && (type = location.lastIndexOf("\n", type)), type = -1 !== type ? location = location.slice(0, type) : "", location = type.lastIndexOf("\n"), type = -1 === location ? type : type.slice(location + 1), -1 !== type.indexOf(payload))) {
|
|
2319
|
+
payload = "\n" + type;
|
|
2320
|
+
break a;
|
|
2321
|
+
}
|
|
2322
|
+
payload = describeBuiltInComponentFrame(payload + (lazyComponent ? " [" + lazyComponent + "]" : ""));
|
|
2323
|
+
}
|
|
2324
|
+
return payload;
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
switch (type) {
|
|
2328
|
+
case REACT_SUSPENSE_LIST_TYPE: return describeBuiltInComponentFrame("SuspenseList");
|
|
2329
|
+
case REACT_SUSPENSE_TYPE: return describeBuiltInComponentFrame("Suspense");
|
|
2330
|
+
}
|
|
2331
|
+
return "";
|
|
2332
|
+
}
|
|
2333
|
+
function isEligibleForOutlining(request, boundary) {
|
|
2334
|
+
return (500 < boundary.byteSize || hasSuspenseyContent(boundary.contentState)) && null === boundary.contentPreamble;
|
|
2335
|
+
}
|
|
2336
|
+
function defaultErrorHandler(error) {
|
|
2337
|
+
if ("object" === typeof error && null !== error && "string" === typeof error.environmentName) {
|
|
2338
|
+
var JSCompiler_inline_result = error.environmentName;
|
|
2339
|
+
error = [error].slice(0);
|
|
2340
|
+
"string" === typeof error[0] ? error.splice(0, 1, "%c%s%c " + error[0], "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", " " + JSCompiler_inline_result + " ", "") : error.splice(0, 0, "%c%s%c", "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", " " + JSCompiler_inline_result + " ", "");
|
|
2341
|
+
error.unshift(console);
|
|
2342
|
+
JSCompiler_inline_result = bind.apply(console.error, error);
|
|
2343
|
+
JSCompiler_inline_result();
|
|
2344
|
+
} else console.error(error);
|
|
2345
|
+
return null;
|
|
2346
|
+
}
|
|
2347
|
+
function RequestInstance(resumableState, renderState, rootFormatContext, progressiveChunkSize, onError, onAllReady, onShellReady, onShellError, onFatalError, onPostpone, formState) {
|
|
2348
|
+
var abortSet = /* @__PURE__ */ new Set();
|
|
2349
|
+
this.destination = null;
|
|
2350
|
+
this.flushScheduled = !1;
|
|
2351
|
+
this.resumableState = resumableState;
|
|
2352
|
+
this.renderState = renderState;
|
|
2353
|
+
this.rootFormatContext = rootFormatContext;
|
|
2354
|
+
this.progressiveChunkSize = void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
|
|
2355
|
+
this.status = 10;
|
|
2356
|
+
this.fatalError = null;
|
|
2357
|
+
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
|
2358
|
+
this.completedPreambleSegments = this.completedRootSegment = null;
|
|
2359
|
+
this.byteSize = 0;
|
|
2360
|
+
this.abortableTasks = abortSet;
|
|
2361
|
+
this.pingedTasks = [];
|
|
2362
|
+
this.clientRenderedBoundaries = [];
|
|
2363
|
+
this.completedBoundaries = [];
|
|
2364
|
+
this.partialBoundaries = [];
|
|
2365
|
+
this.trackedPostpones = null;
|
|
2366
|
+
this.onError = void 0 === onError ? defaultErrorHandler : onError;
|
|
2367
|
+
this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
|
|
2368
|
+
this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
|
|
2369
|
+
this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
|
|
2370
|
+
this.onShellError = void 0 === onShellError ? noop : onShellError;
|
|
2371
|
+
this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
|
|
2372
|
+
this.formState = void 0 === formState ? null : formState;
|
|
2373
|
+
}
|
|
2374
|
+
function createRequest(children, resumableState, renderState, rootFormatContext, progressiveChunkSize, onError, onAllReady, onShellReady, onShellError, onFatalError, onPostpone, formState) {
|
|
2375
|
+
resumableState = new RequestInstance(resumableState, renderState, rootFormatContext, progressiveChunkSize, onError, onAllReady, onShellReady, onShellError, onFatalError, onPostpone, formState);
|
|
2376
|
+
renderState = createPendingSegment(resumableState, 0, null, rootFormatContext, !1, !1);
|
|
2377
|
+
renderState.parentFlushed = !0;
|
|
2378
|
+
children = createRenderTask(resumableState, null, children, -1, null, renderState, null, null, resumableState.abortableTasks, null, rootFormatContext, null, emptyTreeContext, null, null);
|
|
2379
|
+
pushComponentStack(children);
|
|
2380
|
+
resumableState.pingedTasks.push(children);
|
|
2381
|
+
return resumableState;
|
|
2382
|
+
}
|
|
2383
|
+
function createPrerenderRequest(children, resumableState, renderState, rootFormatContext, progressiveChunkSize, onError, onAllReady, onShellReady, onShellError, onFatalError, onPostpone) {
|
|
2384
|
+
children = createRequest(children, resumableState, renderState, rootFormatContext, progressiveChunkSize, onError, onAllReady, onShellReady, onShellError, onFatalError, onPostpone, void 0);
|
|
2385
|
+
children.trackedPostpones = {
|
|
2386
|
+
workingMap: /* @__PURE__ */ new Map(),
|
|
2387
|
+
rootNodes: [],
|
|
2388
|
+
rootSlots: null
|
|
2389
|
+
};
|
|
2390
|
+
return children;
|
|
2391
|
+
}
|
|
2392
|
+
function resumeRequest(children, postponedState, renderState, onError, onAllReady, onShellReady, onShellError, onFatalError, onPostpone) {
|
|
2393
|
+
renderState = new RequestInstance(postponedState.resumableState, renderState, postponedState.rootFormatContext, postponedState.progressiveChunkSize, onError, onAllReady, onShellReady, onShellError, onFatalError, onPostpone, null);
|
|
2394
|
+
renderState.nextSegmentId = postponedState.nextSegmentId;
|
|
2395
|
+
if ("number" === typeof postponedState.replaySlots) return onError = createPendingSegment(renderState, 0, null, postponedState.rootFormatContext, !1, !1), onError.parentFlushed = !0, children = createRenderTask(renderState, null, children, -1, null, onError, null, null, renderState.abortableTasks, null, postponedState.rootFormatContext, null, emptyTreeContext, null, null), pushComponentStack(children), renderState.pingedTasks.push(children), renderState;
|
|
2396
|
+
children = createReplayTask(renderState, null, {
|
|
2397
|
+
nodes: postponedState.replayNodes,
|
|
2398
|
+
slots: postponedState.replaySlots,
|
|
2399
|
+
pendingTasks: 0
|
|
2400
|
+
}, children, -1, null, null, renderState.abortableTasks, null, postponedState.rootFormatContext, null, emptyTreeContext, null, null);
|
|
2401
|
+
pushComponentStack(children);
|
|
2402
|
+
renderState.pingedTasks.push(children);
|
|
2403
|
+
return renderState;
|
|
2404
|
+
}
|
|
2405
|
+
function resumeAndPrerenderRequest(children, postponedState, renderState, onError, onAllReady, onShellReady, onShellError, onFatalError, onPostpone) {
|
|
2406
|
+
children = resumeRequest(children, postponedState, renderState, onError, onAllReady, onShellReady, onShellError, onFatalError, onPostpone);
|
|
2407
|
+
children.trackedPostpones = {
|
|
2408
|
+
workingMap: /* @__PURE__ */ new Map(),
|
|
2409
|
+
rootNodes: [],
|
|
2410
|
+
rootSlots: null
|
|
2411
|
+
};
|
|
2412
|
+
return children;
|
|
2413
|
+
}
|
|
2414
|
+
var currentRequest = null;
|
|
2415
|
+
function pingTask(request, task) {
|
|
2416
|
+
request.pingedTasks.push(task);
|
|
2417
|
+
1 === request.pingedTasks.length && (request.flushScheduled = null !== request.destination, null !== request.trackedPostpones || 10 === request.status ? scheduleMicrotask(function() {
|
|
2418
|
+
return performWork(request);
|
|
2419
|
+
}) : scheduleWork(function() {
|
|
2420
|
+
return performWork(request);
|
|
2421
|
+
}));
|
|
2422
|
+
}
|
|
2423
|
+
function createSuspenseBoundary(request, row, fallbackAbortableTasks, contentPreamble, fallbackPreamble) {
|
|
2424
|
+
fallbackAbortableTasks = {
|
|
2425
|
+
status: 0,
|
|
2426
|
+
rootSegmentID: -1,
|
|
2427
|
+
parentFlushed: !1,
|
|
2428
|
+
pendingTasks: 0,
|
|
2429
|
+
row,
|
|
2430
|
+
completedSegments: [],
|
|
2431
|
+
byteSize: 0,
|
|
2432
|
+
fallbackAbortableTasks,
|
|
2433
|
+
errorDigest: null,
|
|
2434
|
+
contentState: createHoistableState(),
|
|
2435
|
+
fallbackState: createHoistableState(),
|
|
2436
|
+
contentPreamble,
|
|
2437
|
+
fallbackPreamble,
|
|
2438
|
+
trackedContentKeyPath: null,
|
|
2439
|
+
trackedFallbackNode: null
|
|
2440
|
+
};
|
|
2441
|
+
null !== row && (row.pendingTasks++, contentPreamble = row.boundaries, null !== contentPreamble && (request.allPendingTasks++, fallbackAbortableTasks.pendingTasks++, contentPreamble.push(fallbackAbortableTasks)), request = row.inheritedHoistables, null !== request && hoistHoistables(fallbackAbortableTasks.contentState, request));
|
|
2442
|
+
return fallbackAbortableTasks;
|
|
2443
|
+
}
|
|
2444
|
+
function createRenderTask(request, thenableState$1, node, childIndex, blockedBoundary, blockedSegment, blockedPreamble, hoistableState, abortSet, keyPath, formatContext, context, treeContext, row, componentStack) {
|
|
2445
|
+
request.allPendingTasks++;
|
|
2446
|
+
null === blockedBoundary ? request.pendingRootTasks++ : blockedBoundary.pendingTasks++;
|
|
2447
|
+
null !== row && row.pendingTasks++;
|
|
2448
|
+
var task = {
|
|
2449
|
+
replay: null,
|
|
2450
|
+
node,
|
|
2451
|
+
childIndex,
|
|
2452
|
+
ping: function() {
|
|
2453
|
+
return pingTask(request, task);
|
|
2454
|
+
},
|
|
2455
|
+
blockedBoundary,
|
|
2456
|
+
blockedSegment,
|
|
2457
|
+
blockedPreamble,
|
|
2458
|
+
hoistableState,
|
|
2459
|
+
abortSet,
|
|
2460
|
+
keyPath,
|
|
2461
|
+
formatContext,
|
|
2462
|
+
context,
|
|
2463
|
+
treeContext,
|
|
2464
|
+
row,
|
|
2465
|
+
componentStack,
|
|
2466
|
+
thenableState: thenableState$1
|
|
2467
|
+
};
|
|
2468
|
+
abortSet.add(task);
|
|
2469
|
+
return task;
|
|
2470
|
+
}
|
|
2471
|
+
function createReplayTask(request, thenableState$1, replay, node, childIndex, blockedBoundary, hoistableState, abortSet, keyPath, formatContext, context, treeContext, row, componentStack) {
|
|
2472
|
+
request.allPendingTasks++;
|
|
2473
|
+
null === blockedBoundary ? request.pendingRootTasks++ : blockedBoundary.pendingTasks++;
|
|
2474
|
+
null !== row && row.pendingTasks++;
|
|
2475
|
+
replay.pendingTasks++;
|
|
2476
|
+
var task = {
|
|
2477
|
+
replay,
|
|
2478
|
+
node,
|
|
2479
|
+
childIndex,
|
|
2480
|
+
ping: function() {
|
|
2481
|
+
return pingTask(request, task);
|
|
2482
|
+
},
|
|
2483
|
+
blockedBoundary,
|
|
2484
|
+
blockedSegment: null,
|
|
2485
|
+
blockedPreamble: null,
|
|
2486
|
+
hoistableState,
|
|
2487
|
+
abortSet,
|
|
2488
|
+
keyPath,
|
|
2489
|
+
formatContext,
|
|
2490
|
+
context,
|
|
2491
|
+
treeContext,
|
|
2492
|
+
row,
|
|
2493
|
+
componentStack,
|
|
2494
|
+
thenableState: thenableState$1
|
|
2495
|
+
};
|
|
2496
|
+
abortSet.add(task);
|
|
2497
|
+
return task;
|
|
2498
|
+
}
|
|
2499
|
+
function createPendingSegment(request, index, boundary, parentFormatContext, lastPushedText, textEmbedded) {
|
|
2500
|
+
return {
|
|
2501
|
+
status: 0,
|
|
2502
|
+
parentFlushed: !1,
|
|
2503
|
+
id: -1,
|
|
2504
|
+
index,
|
|
2505
|
+
chunks: [],
|
|
2506
|
+
children: [],
|
|
2507
|
+
preambleChildren: [],
|
|
2508
|
+
parentFormatContext,
|
|
2509
|
+
boundary,
|
|
2510
|
+
lastPushedText,
|
|
2511
|
+
textEmbedded
|
|
2512
|
+
};
|
|
2513
|
+
}
|
|
2514
|
+
function pushComponentStack(task) {
|
|
2515
|
+
var node = task.node;
|
|
2516
|
+
if ("object" === typeof node && null !== node) switch (node.$$typeof) {
|
|
2517
|
+
case REACT_ELEMENT_TYPE: task.componentStack = {
|
|
2518
|
+
parent: task.componentStack,
|
|
2519
|
+
type: node.type
|
|
2520
|
+
};
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
function replaceSuspenseComponentStackWithSuspenseFallbackStack(componentStack) {
|
|
2524
|
+
return null === componentStack ? null : {
|
|
2525
|
+
parent: componentStack.parent,
|
|
2526
|
+
type: "Suspense Fallback"
|
|
2527
|
+
};
|
|
2528
|
+
}
|
|
2529
|
+
function getThrownInfo(node$jscomp$0) {
|
|
2530
|
+
var errorInfo = {};
|
|
2531
|
+
node$jscomp$0 && Object.defineProperty(errorInfo, "componentStack", {
|
|
2532
|
+
configurable: !0,
|
|
2533
|
+
enumerable: !0,
|
|
2534
|
+
get: function() {
|
|
2535
|
+
try {
|
|
2536
|
+
var info = "", node = node$jscomp$0;
|
|
2537
|
+
do
|
|
2538
|
+
info += describeComponentStackByType(node.type), node = node.parent;
|
|
2539
|
+
while (node);
|
|
2540
|
+
var JSCompiler_inline_result = info;
|
|
2541
|
+
} catch (x) {
|
|
2542
|
+
JSCompiler_inline_result = "\nError generating stack: " + x.message + "\n" + x.stack;
|
|
2543
|
+
}
|
|
2544
|
+
Object.defineProperty(errorInfo, "componentStack", { value: JSCompiler_inline_result });
|
|
2545
|
+
return JSCompiler_inline_result;
|
|
2546
|
+
}
|
|
2547
|
+
});
|
|
2548
|
+
return errorInfo;
|
|
2549
|
+
}
|
|
2550
|
+
function logRecoverableError(request, error, errorInfo) {
|
|
2551
|
+
request = request.onError;
|
|
2552
|
+
error = request(error, errorInfo);
|
|
2553
|
+
if (null == error || "string" === typeof error) return error;
|
|
2554
|
+
}
|
|
2555
|
+
function fatalError(request, error) {
|
|
2556
|
+
var onShellError = request.onShellError, onFatalError = request.onFatalError;
|
|
2557
|
+
onShellError(error);
|
|
2558
|
+
onFatalError(error);
|
|
2559
|
+
null !== request.destination ? (request.status = 14, closeWithError(request.destination, error)) : (request.status = 13, request.fatalError = error);
|
|
2560
|
+
}
|
|
2561
|
+
function finishSuspenseListRow(request, row) {
|
|
2562
|
+
unblockSuspenseListRow(request, row.next, row.hoistables);
|
|
2563
|
+
}
|
|
2564
|
+
function unblockSuspenseListRow(request, unblockedRow, inheritedHoistables) {
|
|
2565
|
+
for (; null !== unblockedRow;) {
|
|
2566
|
+
null !== inheritedHoistables && (hoistHoistables(unblockedRow.hoistables, inheritedHoistables), unblockedRow.inheritedHoistables = inheritedHoistables);
|
|
2567
|
+
var unblockedBoundaries = unblockedRow.boundaries;
|
|
2568
|
+
if (null !== unblockedBoundaries) {
|
|
2569
|
+
unblockedRow.boundaries = null;
|
|
2570
|
+
for (var i = 0; i < unblockedBoundaries.length; i++) {
|
|
2571
|
+
var unblockedBoundary = unblockedBoundaries[i];
|
|
2572
|
+
null !== inheritedHoistables && hoistHoistables(unblockedBoundary.contentState, inheritedHoistables);
|
|
2573
|
+
finishedTask(request, unblockedBoundary, null, null);
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
unblockedRow.pendingTasks--;
|
|
2577
|
+
if (0 < unblockedRow.pendingTasks) break;
|
|
2578
|
+
inheritedHoistables = unblockedRow.hoistables;
|
|
2579
|
+
unblockedRow = unblockedRow.next;
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
function tryToResolveTogetherRow(request, togetherRow) {
|
|
2583
|
+
var boundaries = togetherRow.boundaries;
|
|
2584
|
+
if (null !== boundaries && togetherRow.pendingTasks === boundaries.length) {
|
|
2585
|
+
for (var allCompleteAndInlinable = !0, i = 0; i < boundaries.length; i++) {
|
|
2586
|
+
var rowBoundary = boundaries[i];
|
|
2587
|
+
if (1 !== rowBoundary.pendingTasks || rowBoundary.parentFlushed || isEligibleForOutlining(request, rowBoundary)) {
|
|
2588
|
+
allCompleteAndInlinable = !1;
|
|
2589
|
+
break;
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
allCompleteAndInlinable && unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
function createSuspenseListRow(previousRow) {
|
|
2596
|
+
var newRow = {
|
|
2597
|
+
pendingTasks: 1,
|
|
2598
|
+
boundaries: null,
|
|
2599
|
+
hoistables: createHoistableState(),
|
|
2600
|
+
inheritedHoistables: null,
|
|
2601
|
+
together: !1,
|
|
2602
|
+
next: null
|
|
2603
|
+
};
|
|
2604
|
+
null !== previousRow && 0 < previousRow.pendingTasks && (newRow.pendingTasks++, newRow.boundaries = [], previousRow.next = newRow);
|
|
2605
|
+
return newRow;
|
|
2606
|
+
}
|
|
2607
|
+
function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
2608
|
+
var prevKeyPath = task.keyPath, prevTreeContext = task.treeContext, prevRow = task.row;
|
|
2609
|
+
task.keyPath = keyPath;
|
|
2610
|
+
keyPath = rows.length;
|
|
2611
|
+
var previousSuspenseListRow = null;
|
|
2612
|
+
if (null !== task.replay) {
|
|
2613
|
+
var resumeSlots = task.replay.slots;
|
|
2614
|
+
if (null !== resumeSlots && "object" === typeof resumeSlots) for (var n = 0; n < keyPath; n++) {
|
|
2615
|
+
var i = "backwards" !== revealOrder && "unstable_legacy-backwards" !== revealOrder ? n : keyPath - 1 - n, node = rows[i];
|
|
2616
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(previousSuspenseListRow);
|
|
2617
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
|
2618
|
+
var resumeSegmentID = resumeSlots[i];
|
|
2619
|
+
"number" === typeof resumeSegmentID ? (resumeNode(request, task, resumeSegmentID, node, i), delete resumeSlots[i]) : renderNode(request, task, node, i);
|
|
2620
|
+
0 === --previousSuspenseListRow.pendingTasks && finishSuspenseListRow(request, previousSuspenseListRow);
|
|
2621
|
+
}
|
|
2622
|
+
else for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++) n = "backwards" !== revealOrder && "unstable_legacy-backwards" !== revealOrder ? resumeSlots : keyPath - 1 - resumeSlots, i = rows[n], task.row = previousSuspenseListRow = createSuspenseListRow(previousSuspenseListRow), task.treeContext = pushTreeContext(prevTreeContext, keyPath, n), renderNode(request, task, i, n), 0 === --previousSuspenseListRow.pendingTasks && finishSuspenseListRow(request, previousSuspenseListRow);
|
|
2623
|
+
} else if ("backwards" !== revealOrder && "unstable_legacy-backwards" !== revealOrder) for (revealOrder = 0; revealOrder < keyPath; revealOrder++) resumeSlots = rows[revealOrder], task.row = previousSuspenseListRow = createSuspenseListRow(previousSuspenseListRow), task.treeContext = pushTreeContext(prevTreeContext, keyPath, revealOrder), renderNode(request, task, resumeSlots, revealOrder), 0 === --previousSuspenseListRow.pendingTasks && finishSuspenseListRow(request, previousSuspenseListRow);
|
|
2624
|
+
else {
|
|
2625
|
+
revealOrder = task.blockedSegment;
|
|
2626
|
+
resumeSlots = revealOrder.children.length;
|
|
2627
|
+
n = revealOrder.chunks.length;
|
|
2628
|
+
for (i = keyPath - 1; 0 <= i; i--) {
|
|
2629
|
+
node = rows[i];
|
|
2630
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(previousSuspenseListRow);
|
|
2631
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
|
2632
|
+
resumeSegmentID = createPendingSegment(request, n, null, task.formatContext, 0 === i ? revealOrder.lastPushedText : !0, !0);
|
|
2633
|
+
revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
|
|
2634
|
+
task.blockedSegment = resumeSegmentID;
|
|
2635
|
+
try {
|
|
2636
|
+
renderNode(request, task, node, i), resumeSegmentID.lastPushedText && resumeSegmentID.textEmbedded && resumeSegmentID.chunks.push(textSeparator), resumeSegmentID.status = 1, finishedSegment(request, task.blockedBoundary, resumeSegmentID), 0 === --previousSuspenseListRow.pendingTasks && finishSuspenseListRow(request, previousSuspenseListRow);
|
|
2637
|
+
} catch (thrownValue) {
|
|
2638
|
+
throw resumeSegmentID.status = 12 === request.status ? 3 : 4, thrownValue;
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
task.blockedSegment = revealOrder;
|
|
2642
|
+
revealOrder.lastPushedText = !1;
|
|
2643
|
+
}
|
|
2644
|
+
null !== prevRow && null !== previousSuspenseListRow && 0 < previousSuspenseListRow.pendingTasks && (prevRow.pendingTasks++, previousSuspenseListRow.next = prevRow);
|
|
2645
|
+
task.treeContext = prevTreeContext;
|
|
2646
|
+
task.row = prevRow;
|
|
2647
|
+
task.keyPath = prevKeyPath;
|
|
2648
|
+
}
|
|
2649
|
+
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
|
|
2650
|
+
var prevThenableState = task.thenableState;
|
|
2651
|
+
task.thenableState = null;
|
|
2652
|
+
currentlyRenderingComponent = {};
|
|
2653
|
+
currentlyRenderingTask = task;
|
|
2654
|
+
currentlyRenderingRequest = request;
|
|
2655
|
+
currentlyRenderingKeyPath = keyPath;
|
|
2656
|
+
actionStateCounter = localIdCounter = 0;
|
|
2657
|
+
actionStateMatchingIndex = -1;
|
|
2658
|
+
thenableIndexCounter = 0;
|
|
2659
|
+
thenableState = prevThenableState;
|
|
2660
|
+
for (request = Component(props, secondArg); didScheduleRenderPhaseUpdate;) didScheduleRenderPhaseUpdate = !1, actionStateCounter = localIdCounter = 0, actionStateMatchingIndex = -1, thenableIndexCounter = 0, numberOfReRenders += 1, workInProgressHook = null, request = Component(props, secondArg);
|
|
2661
|
+
resetHooksState();
|
|
2662
|
+
return request;
|
|
2663
|
+
}
|
|
2664
|
+
function finishFunctionComponent(request, task, keyPath, children, hasId, actionStateCount, actionStateMatchingIndex$1) {
|
|
2665
|
+
var didEmitActionStateMarkers = !1;
|
|
2666
|
+
if (0 !== actionStateCount && null !== request.formState) {
|
|
2667
|
+
var segment = task.blockedSegment;
|
|
2668
|
+
if (null !== segment) {
|
|
2669
|
+
didEmitActionStateMarkers = !0;
|
|
2670
|
+
segment = segment.chunks;
|
|
2671
|
+
for (var i = 0; i < actionStateCount; i++) i === actionStateMatchingIndex$1 ? segment.push(formStateMarkerIsMatching) : segment.push(formStateMarkerIsNotMatching);
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
actionStateCount = task.keyPath;
|
|
2675
|
+
task.keyPath = keyPath;
|
|
2676
|
+
hasId ? (keyPath = task.treeContext, task.treeContext = pushTreeContext(keyPath, 1, 0), renderNode(request, task, children, -1), task.treeContext = keyPath) : didEmitActionStateMarkers ? renderNode(request, task, children, -1) : renderNodeDestructive(request, task, children, -1);
|
|
2677
|
+
task.keyPath = actionStateCount;
|
|
2678
|
+
}
|
|
2679
|
+
function renderElement(request, task, keyPath, type, props, ref) {
|
|
2680
|
+
if ("function" === typeof type) if (type.prototype && type.prototype.isReactComponent) {
|
|
2681
|
+
var newProps = props;
|
|
2682
|
+
if ("ref" in props) {
|
|
2683
|
+
newProps = {};
|
|
2684
|
+
for (var propName in props) "ref" !== propName && (newProps[propName] = props[propName]);
|
|
2685
|
+
}
|
|
2686
|
+
var defaultProps = type.defaultProps;
|
|
2687
|
+
if (defaultProps) {
|
|
2688
|
+
newProps === props && (newProps = assign({}, newProps, props));
|
|
2689
|
+
for (var propName$44 in defaultProps) void 0 === newProps[propName$44] && (newProps[propName$44] = defaultProps[propName$44]);
|
|
2690
|
+
}
|
|
2691
|
+
props = newProps;
|
|
2692
|
+
newProps = emptyContextObject;
|
|
2693
|
+
defaultProps = type.contextType;
|
|
2694
|
+
"object" === typeof defaultProps && null !== defaultProps && (newProps = defaultProps._currentValue);
|
|
2695
|
+
newProps = new type(props, newProps);
|
|
2696
|
+
var initialState = void 0 !== newProps.state ? newProps.state : null;
|
|
2697
|
+
newProps.updater = classComponentUpdater;
|
|
2698
|
+
newProps.props = props;
|
|
2699
|
+
newProps.state = initialState;
|
|
2700
|
+
defaultProps = {
|
|
2701
|
+
queue: [],
|
|
2702
|
+
replace: !1
|
|
2703
|
+
};
|
|
2704
|
+
newProps._reactInternals = defaultProps;
|
|
2705
|
+
ref = type.contextType;
|
|
2706
|
+
newProps.context = "object" === typeof ref && null !== ref ? ref._currentValue : emptyContextObject;
|
|
2707
|
+
ref = type.getDerivedStateFromProps;
|
|
2708
|
+
"function" === typeof ref && (ref = ref(props, initialState), initialState = null === ref || void 0 === ref ? initialState : assign({}, initialState, ref), newProps.state = initialState);
|
|
2709
|
+
if ("function" !== typeof type.getDerivedStateFromProps && "function" !== typeof newProps.getSnapshotBeforeUpdate && ("function" === typeof newProps.UNSAFE_componentWillMount || "function" === typeof newProps.componentWillMount)) if (type = newProps.state, "function" === typeof newProps.componentWillMount && newProps.componentWillMount(), "function" === typeof newProps.UNSAFE_componentWillMount && newProps.UNSAFE_componentWillMount(), type !== newProps.state && classComponentUpdater.enqueueReplaceState(newProps, newProps.state, null), null !== defaultProps.queue && 0 < defaultProps.queue.length) if (type = defaultProps.queue, ref = defaultProps.replace, defaultProps.queue = null, defaultProps.replace = !1, ref && 1 === type.length) newProps.state = type[0];
|
|
2710
|
+
else {
|
|
2711
|
+
defaultProps = ref ? type[0] : newProps.state;
|
|
2712
|
+
initialState = !0;
|
|
2713
|
+
for (ref = ref ? 1 : 0; ref < type.length; ref++) propName$44 = type[ref], propName$44 = "function" === typeof propName$44 ? propName$44.call(newProps, defaultProps, props, void 0) : propName$44, null != propName$44 && (initialState ? (initialState = !1, defaultProps = assign({}, defaultProps, propName$44)) : assign(defaultProps, propName$44));
|
|
2714
|
+
newProps.state = defaultProps;
|
|
2715
|
+
}
|
|
2716
|
+
else defaultProps.queue = null;
|
|
2717
|
+
type = newProps.render();
|
|
2718
|
+
if (12 === request.status) throw null;
|
|
2719
|
+
props = task.keyPath;
|
|
2720
|
+
task.keyPath = keyPath;
|
|
2721
|
+
renderNodeDestructive(request, task, type, -1);
|
|
2722
|
+
task.keyPath = props;
|
|
2723
|
+
} else {
|
|
2724
|
+
type = renderWithHooks(request, task, keyPath, type, props, void 0);
|
|
2725
|
+
if (12 === request.status) throw null;
|
|
2726
|
+
finishFunctionComponent(request, task, keyPath, type, 0 !== localIdCounter, actionStateCounter, actionStateMatchingIndex);
|
|
2727
|
+
}
|
|
2728
|
+
else if ("string" === typeof type) if (newProps = task.blockedSegment, null === newProps) newProps = props.children, defaultProps = task.formatContext, initialState = task.keyPath, task.formatContext = getChildFormatContext(defaultProps, type, props), task.keyPath = keyPath, renderNode(request, task, newProps, -1), task.formatContext = defaultProps, task.keyPath = initialState;
|
|
2729
|
+
else {
|
|
2730
|
+
initialState = pushStartInstance(newProps.chunks, type, props, request.resumableState, request.renderState, task.blockedPreamble, task.hoistableState, task.formatContext, newProps.lastPushedText);
|
|
2731
|
+
newProps.lastPushedText = !1;
|
|
2732
|
+
defaultProps = task.formatContext;
|
|
2733
|
+
ref = task.keyPath;
|
|
2734
|
+
task.keyPath = keyPath;
|
|
2735
|
+
if (3 === (task.formatContext = getChildFormatContext(defaultProps, type, props)).insertionMode) {
|
|
2736
|
+
keyPath = createPendingSegment(request, 0, null, task.formatContext, !1, !1);
|
|
2737
|
+
newProps.preambleChildren.push(keyPath);
|
|
2738
|
+
task.blockedSegment = keyPath;
|
|
2739
|
+
try {
|
|
2740
|
+
keyPath.status = 6, renderNode(request, task, initialState, -1), keyPath.lastPushedText && keyPath.textEmbedded && keyPath.chunks.push(textSeparator), keyPath.status = 1, finishedSegment(request, task.blockedBoundary, keyPath);
|
|
2741
|
+
} finally {
|
|
2742
|
+
task.blockedSegment = newProps;
|
|
2743
|
+
}
|
|
2744
|
+
} else renderNode(request, task, initialState, -1);
|
|
2745
|
+
task.formatContext = defaultProps;
|
|
2746
|
+
task.keyPath = ref;
|
|
2747
|
+
a: {
|
|
2748
|
+
task = newProps.chunks;
|
|
2749
|
+
request = request.resumableState;
|
|
2750
|
+
switch (type) {
|
|
2751
|
+
case "title":
|
|
2752
|
+
case "style":
|
|
2753
|
+
case "script":
|
|
2754
|
+
case "area":
|
|
2755
|
+
case "base":
|
|
2756
|
+
case "br":
|
|
2757
|
+
case "col":
|
|
2758
|
+
case "embed":
|
|
2759
|
+
case "hr":
|
|
2760
|
+
case "img":
|
|
2761
|
+
case "input":
|
|
2762
|
+
case "keygen":
|
|
2763
|
+
case "link":
|
|
2764
|
+
case "meta":
|
|
2765
|
+
case "param":
|
|
2766
|
+
case "source":
|
|
2767
|
+
case "track":
|
|
2768
|
+
case "wbr": break a;
|
|
2769
|
+
case "body":
|
|
2770
|
+
if (1 >= defaultProps.insertionMode) {
|
|
2771
|
+
request.hasBody = !0;
|
|
2772
|
+
break a;
|
|
2773
|
+
}
|
|
2774
|
+
break;
|
|
2775
|
+
case "html":
|
|
2776
|
+
if (0 === defaultProps.insertionMode) {
|
|
2777
|
+
request.hasHtml = !0;
|
|
2778
|
+
break a;
|
|
2779
|
+
}
|
|
2780
|
+
break;
|
|
2781
|
+
case "head": if (1 >= defaultProps.insertionMode) break a;
|
|
2782
|
+
}
|
|
2783
|
+
task.push(endChunkForTag(type));
|
|
2784
|
+
}
|
|
2785
|
+
newProps.lastPushedText = !1;
|
|
2786
|
+
}
|
|
2787
|
+
else {
|
|
2788
|
+
switch (type) {
|
|
2789
|
+
case REACT_LEGACY_HIDDEN_TYPE:
|
|
2790
|
+
case REACT_STRICT_MODE_TYPE:
|
|
2791
|
+
case REACT_PROFILER_TYPE:
|
|
2792
|
+
case REACT_FRAGMENT_TYPE:
|
|
2793
|
+
type = task.keyPath;
|
|
2794
|
+
task.keyPath = keyPath;
|
|
2795
|
+
renderNodeDestructive(request, task, props.children, -1);
|
|
2796
|
+
task.keyPath = type;
|
|
2797
|
+
return;
|
|
2798
|
+
case REACT_ACTIVITY_TYPE:
|
|
2799
|
+
type = task.blockedSegment;
|
|
2800
|
+
null === type ? "hidden" !== props.mode && (type = task.keyPath, task.keyPath = keyPath, renderNode(request, task, props.children, -1), task.keyPath = type) : "hidden" !== props.mode && (type.chunks.push(startActivityBoundary), type.lastPushedText = !1, newProps = task.keyPath, task.keyPath = keyPath, renderNode(request, task, props.children, -1), task.keyPath = newProps, type.chunks.push(endActivityBoundary), type.lastPushedText = !1);
|
|
2801
|
+
return;
|
|
2802
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
2803
|
+
a: {
|
|
2804
|
+
type = props.children;
|
|
2805
|
+
props = props.revealOrder;
|
|
2806
|
+
if ("forwards" === props || "backwards" === props || "unstable_legacy-backwards" === props) {
|
|
2807
|
+
if (isArrayImpl(type)) {
|
|
2808
|
+
renderSuspenseListRows(request, task, keyPath, type, props);
|
|
2809
|
+
break a;
|
|
2810
|
+
}
|
|
2811
|
+
if (newProps = getIteratorFn(type)) {
|
|
2812
|
+
if (newProps = newProps.call(type)) {
|
|
2813
|
+
defaultProps = newProps.next();
|
|
2814
|
+
if (!defaultProps.done) {
|
|
2815
|
+
do
|
|
2816
|
+
defaultProps = newProps.next();
|
|
2817
|
+
while (!defaultProps.done);
|
|
2818
|
+
renderSuspenseListRows(request, task, keyPath, type, props);
|
|
2819
|
+
}
|
|
2820
|
+
break a;
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
"together" === props ? (props = task.keyPath, newProps = task.row, defaultProps = task.row = createSuspenseListRow(null), defaultProps.boundaries = [], defaultProps.together = !0, task.keyPath = keyPath, renderNodeDestructive(request, task, type, -1), 0 === --defaultProps.pendingTasks && finishSuspenseListRow(request, defaultProps), task.keyPath = props, task.row = newProps, null !== newProps && 0 < defaultProps.pendingTasks && (newProps.pendingTasks++, defaultProps.next = newProps)) : (props = task.keyPath, task.keyPath = keyPath, renderNodeDestructive(request, task, type, -1), task.keyPath = props);
|
|
2825
|
+
}
|
|
2826
|
+
return;
|
|
2827
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
2828
|
+
case REACT_SCOPE_TYPE: throw Error(formatProdErrorMessage(343));
|
|
2829
|
+
case REACT_SUSPENSE_TYPE:
|
|
2830
|
+
a: if (null !== task.replay) {
|
|
2831
|
+
type = task.keyPath;
|
|
2832
|
+
newProps = task.formatContext;
|
|
2833
|
+
defaultProps = task.row;
|
|
2834
|
+
task.keyPath = keyPath;
|
|
2835
|
+
task.formatContext = getSuspenseContentFormatContext(request.resumableState, newProps);
|
|
2836
|
+
task.row = null;
|
|
2837
|
+
keyPath = props.children;
|
|
2838
|
+
try {
|
|
2839
|
+
renderNode(request, task, keyPath, -1);
|
|
2840
|
+
} finally {
|
|
2841
|
+
task.keyPath = type, task.formatContext = newProps, task.row = defaultProps;
|
|
2842
|
+
}
|
|
2843
|
+
} else {
|
|
2844
|
+
type = task.keyPath;
|
|
2845
|
+
ref = task.formatContext;
|
|
2846
|
+
var prevRow = task.row;
|
|
2847
|
+
propName$44 = task.blockedBoundary;
|
|
2848
|
+
propName = task.blockedPreamble;
|
|
2849
|
+
var parentHoistableState = task.hoistableState, parentSegment = task.blockedSegment, fallback = props.fallback;
|
|
2850
|
+
props = props.children;
|
|
2851
|
+
var fallbackAbortSet = /* @__PURE__ */ new Set();
|
|
2852
|
+
var newBoundary = 2 > task.formatContext.insertionMode ? createSuspenseBoundary(request, task.row, fallbackAbortSet, createPreambleState(), createPreambleState()) : createSuspenseBoundary(request, task.row, fallbackAbortSet, null, null);
|
|
2853
|
+
null !== request.trackedPostpones && (newBoundary.trackedContentKeyPath = keyPath);
|
|
2854
|
+
var boundarySegment = createPendingSegment(request, parentSegment.chunks.length, newBoundary, task.formatContext, !1, !1);
|
|
2855
|
+
parentSegment.children.push(boundarySegment);
|
|
2856
|
+
parentSegment.lastPushedText = !1;
|
|
2857
|
+
var contentRootSegment = createPendingSegment(request, 0, null, task.formatContext, !1, !1);
|
|
2858
|
+
contentRootSegment.parentFlushed = !0;
|
|
2859
|
+
if (null !== request.trackedPostpones) {
|
|
2860
|
+
newProps = task.componentStack;
|
|
2861
|
+
defaultProps = [
|
|
2862
|
+
keyPath[0],
|
|
2863
|
+
"Suspense Fallback",
|
|
2864
|
+
keyPath[2]
|
|
2865
|
+
];
|
|
2866
|
+
initialState = [
|
|
2867
|
+
defaultProps[1],
|
|
2868
|
+
defaultProps[2],
|
|
2869
|
+
[],
|
|
2870
|
+
null
|
|
2871
|
+
];
|
|
2872
|
+
request.trackedPostpones.workingMap.set(defaultProps, initialState);
|
|
2873
|
+
newBoundary.trackedFallbackNode = initialState;
|
|
2874
|
+
task.blockedSegment = boundarySegment;
|
|
2875
|
+
task.blockedPreamble = newBoundary.fallbackPreamble;
|
|
2876
|
+
task.keyPath = defaultProps;
|
|
2877
|
+
task.formatContext = getSuspenseFallbackFormatContext(request.resumableState, ref);
|
|
2878
|
+
task.componentStack = replaceSuspenseComponentStackWithSuspenseFallbackStack(newProps);
|
|
2879
|
+
boundarySegment.status = 6;
|
|
2880
|
+
try {
|
|
2881
|
+
renderNode(request, task, fallback, -1), boundarySegment.lastPushedText && boundarySegment.textEmbedded && boundarySegment.chunks.push(textSeparator), boundarySegment.status = 1, finishedSegment(request, propName$44, boundarySegment);
|
|
2882
|
+
} catch (thrownValue) {
|
|
2883
|
+
throw boundarySegment.status = 12 === request.status ? 3 : 4, thrownValue;
|
|
2884
|
+
} finally {
|
|
2885
|
+
task.blockedSegment = parentSegment, task.blockedPreamble = propName, task.keyPath = type, task.formatContext = ref;
|
|
2886
|
+
}
|
|
2887
|
+
task = createRenderTask(request, null, props, -1, newBoundary, contentRootSegment, newBoundary.contentPreamble, newBoundary.contentState, task.abortSet, keyPath, getSuspenseContentFormatContext(request.resumableState, task.formatContext), task.context, task.treeContext, null, newProps);
|
|
2888
|
+
pushComponentStack(task);
|
|
2889
|
+
request.pingedTasks.push(task);
|
|
2890
|
+
} else {
|
|
2891
|
+
task.blockedBoundary = newBoundary;
|
|
2892
|
+
task.blockedPreamble = newBoundary.contentPreamble;
|
|
2893
|
+
task.hoistableState = newBoundary.contentState;
|
|
2894
|
+
task.blockedSegment = contentRootSegment;
|
|
2895
|
+
task.keyPath = keyPath;
|
|
2896
|
+
task.formatContext = getSuspenseContentFormatContext(request.resumableState, ref);
|
|
2897
|
+
task.row = null;
|
|
2898
|
+
contentRootSegment.status = 6;
|
|
2899
|
+
try {
|
|
2900
|
+
if (renderNode(request, task, props, -1), contentRootSegment.lastPushedText && contentRootSegment.textEmbedded && contentRootSegment.chunks.push(textSeparator), contentRootSegment.status = 1, finishedSegment(request, newBoundary, contentRootSegment), queueCompletedSegment(newBoundary, contentRootSegment), 0 === newBoundary.pendingTasks && 0 === newBoundary.status) {
|
|
2901
|
+
if (newBoundary.status = 1, !isEligibleForOutlining(request, newBoundary)) {
|
|
2902
|
+
null !== prevRow && 0 === --prevRow.pendingTasks && finishSuspenseListRow(request, prevRow);
|
|
2903
|
+
0 === request.pendingRootTasks && task.blockedPreamble && preparePreamble(request);
|
|
2904
|
+
break a;
|
|
2905
|
+
}
|
|
2906
|
+
} else null !== prevRow && prevRow.together && tryToResolveTogetherRow(request, prevRow);
|
|
2907
|
+
} catch (thrownValue$31) {
|
|
2908
|
+
newBoundary.status = 4, 12 === request.status ? (contentRootSegment.status = 3, newProps = request.fatalError) : (contentRootSegment.status = 4, newProps = thrownValue$31), defaultProps = getThrownInfo(task.componentStack), initialState = logRecoverableError(request, newProps, defaultProps), newBoundary.errorDigest = initialState, untrackBoundary(request, newBoundary);
|
|
2909
|
+
} finally {
|
|
2910
|
+
task.blockedBoundary = propName$44, task.blockedPreamble = propName, task.hoistableState = parentHoistableState, task.blockedSegment = parentSegment, task.keyPath = type, task.formatContext = ref, task.row = prevRow;
|
|
2911
|
+
}
|
|
2912
|
+
task = createRenderTask(request, null, fallback, -1, propName$44, boundarySegment, newBoundary.fallbackPreamble, newBoundary.fallbackState, fallbackAbortSet, [
|
|
2913
|
+
keyPath[0],
|
|
2914
|
+
"Suspense Fallback",
|
|
2915
|
+
keyPath[2]
|
|
2916
|
+
], getSuspenseFallbackFormatContext(request.resumableState, task.formatContext), task.context, task.treeContext, task.row, replaceSuspenseComponentStackWithSuspenseFallbackStack(task.componentStack));
|
|
2917
|
+
pushComponentStack(task);
|
|
2918
|
+
request.pingedTasks.push(task);
|
|
2919
|
+
}
|
|
2920
|
+
}
|
|
2921
|
+
return;
|
|
2922
|
+
}
|
|
2923
|
+
if ("object" === typeof type && null !== type) switch (type.$$typeof) {
|
|
2924
|
+
case REACT_FORWARD_REF_TYPE:
|
|
2925
|
+
if ("ref" in props) for (parentSegment in newProps = {}, props) "ref" !== parentSegment && (newProps[parentSegment] = props[parentSegment]);
|
|
2926
|
+
else newProps = props;
|
|
2927
|
+
type = renderWithHooks(request, task, keyPath, type.render, newProps, ref);
|
|
2928
|
+
finishFunctionComponent(request, task, keyPath, type, 0 !== localIdCounter, actionStateCounter, actionStateMatchingIndex);
|
|
2929
|
+
return;
|
|
2930
|
+
case REACT_MEMO_TYPE:
|
|
2931
|
+
renderElement(request, task, keyPath, type.type, props, ref);
|
|
2932
|
+
return;
|
|
2933
|
+
case REACT_CONTEXT_TYPE:
|
|
2934
|
+
defaultProps = props.children;
|
|
2935
|
+
newProps = task.keyPath;
|
|
2936
|
+
props = props.value;
|
|
2937
|
+
initialState = type._currentValue;
|
|
2938
|
+
type._currentValue = props;
|
|
2939
|
+
ref = currentActiveSnapshot;
|
|
2940
|
+
currentActiveSnapshot = type = {
|
|
2941
|
+
parent: ref,
|
|
2942
|
+
depth: null === ref ? 0 : ref.depth + 1,
|
|
2943
|
+
context: type,
|
|
2944
|
+
parentValue: initialState,
|
|
2945
|
+
value: props
|
|
2946
|
+
};
|
|
2947
|
+
task.context = type;
|
|
2948
|
+
task.keyPath = keyPath;
|
|
2949
|
+
renderNodeDestructive(request, task, defaultProps, -1);
|
|
2950
|
+
request = currentActiveSnapshot;
|
|
2951
|
+
if (null === request) throw Error(formatProdErrorMessage(403));
|
|
2952
|
+
request.context._currentValue = request.parentValue;
|
|
2953
|
+
request = currentActiveSnapshot = request.parent;
|
|
2954
|
+
task.context = request;
|
|
2955
|
+
task.keyPath = newProps;
|
|
2956
|
+
return;
|
|
2957
|
+
case REACT_CONSUMER_TYPE:
|
|
2958
|
+
props = props.children;
|
|
2959
|
+
type = props(type._context._currentValue);
|
|
2960
|
+
props = task.keyPath;
|
|
2961
|
+
task.keyPath = keyPath;
|
|
2962
|
+
renderNodeDestructive(request, task, type, -1);
|
|
2963
|
+
task.keyPath = props;
|
|
2964
|
+
return;
|
|
2965
|
+
case REACT_LAZY_TYPE:
|
|
2966
|
+
newProps = type._init;
|
|
2967
|
+
type = newProps(type._payload);
|
|
2968
|
+
if (12 === request.status) throw null;
|
|
2969
|
+
renderElement(request, task, keyPath, type, props, ref);
|
|
2970
|
+
return;
|
|
2971
|
+
}
|
|
2972
|
+
throw Error(formatProdErrorMessage(130, null == type ? type : typeof type, ""));
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
function resumeNode(request, task, segmentId, node, childIndex) {
|
|
2976
|
+
var prevReplay = task.replay, blockedBoundary = task.blockedBoundary, resumedSegment = createPendingSegment(request, 0, null, task.formatContext, !1, !1);
|
|
2977
|
+
resumedSegment.id = segmentId;
|
|
2978
|
+
resumedSegment.parentFlushed = !0;
|
|
2979
|
+
try {
|
|
2980
|
+
task.replay = null, task.blockedSegment = resumedSegment, renderNode(request, task, node, childIndex), resumedSegment.status = 1, finishedSegment(request, blockedBoundary, resumedSegment), null === blockedBoundary ? request.completedRootSegment = resumedSegment : (queueCompletedSegment(blockedBoundary, resumedSegment), blockedBoundary.parentFlushed && request.partialBoundaries.push(blockedBoundary));
|
|
2981
|
+
} finally {
|
|
2982
|
+
task.replay = prevReplay, task.blockedSegment = null;
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
function renderNodeDestructive(request, task, node, childIndex) {
|
|
2986
|
+
null !== task.replay && "number" === typeof task.replay.slots ? resumeNode(request, task, task.replay.slots, node, childIndex) : (task.node = node, task.childIndex = childIndex, node = task.componentStack, pushComponentStack(task), retryNode(request, task), task.componentStack = node);
|
|
2987
|
+
}
|
|
2988
|
+
function retryNode(request, task) {
|
|
2989
|
+
var node = task.node, childIndex = task.childIndex;
|
|
2990
|
+
if (null !== node) {
|
|
2991
|
+
if ("object" === typeof node) {
|
|
2992
|
+
switch (node.$$typeof) {
|
|
2993
|
+
case REACT_ELEMENT_TYPE:
|
|
2994
|
+
var type = node.type, key = node.key, props = node.props;
|
|
2995
|
+
node = props.ref;
|
|
2996
|
+
var ref = void 0 !== node ? node : null, name = getComponentNameFromType(type), keyOrIndex = null == key ? -1 === childIndex ? 0 : childIndex : key;
|
|
2997
|
+
key = [
|
|
2998
|
+
task.keyPath,
|
|
2999
|
+
name,
|
|
3000
|
+
keyOrIndex
|
|
3001
|
+
];
|
|
3002
|
+
if (null !== task.replay) a: {
|
|
3003
|
+
var replay = task.replay;
|
|
3004
|
+
childIndex = replay.nodes;
|
|
3005
|
+
for (node = 0; node < childIndex.length; node++) {
|
|
3006
|
+
var node$jscomp$0 = childIndex[node];
|
|
3007
|
+
if (keyOrIndex === node$jscomp$0[1]) {
|
|
3008
|
+
if (4 === node$jscomp$0.length) {
|
|
3009
|
+
if (null !== name && name !== node$jscomp$0[0]) throw Error(formatProdErrorMessage(490, node$jscomp$0[0], name));
|
|
3010
|
+
var childNodes = node$jscomp$0[2];
|
|
3011
|
+
name = node$jscomp$0[3];
|
|
3012
|
+
keyOrIndex = task.node;
|
|
3013
|
+
task.replay = {
|
|
3014
|
+
nodes: childNodes,
|
|
3015
|
+
slots: name,
|
|
3016
|
+
pendingTasks: 1
|
|
3017
|
+
};
|
|
3018
|
+
try {
|
|
3019
|
+
renderElement(request, task, key, type, props, ref);
|
|
3020
|
+
if (1 === task.replay.pendingTasks && 0 < task.replay.nodes.length) throw Error(formatProdErrorMessage(488));
|
|
3021
|
+
task.replay.pendingTasks--;
|
|
3022
|
+
} catch (x) {
|
|
3023
|
+
if ("object" === typeof x && null !== x && (x === SuspenseException || "function" === typeof x.then)) throw task.node === keyOrIndex ? task.replay = replay : childIndex.splice(node, 1), x;
|
|
3024
|
+
task.replay.pendingTasks--;
|
|
3025
|
+
props = getThrownInfo(task.componentStack);
|
|
3026
|
+
key = request;
|
|
3027
|
+
request = task.blockedBoundary;
|
|
3028
|
+
type = x;
|
|
3029
|
+
props = logRecoverableError(key, type, props);
|
|
3030
|
+
abortRemainingReplayNodes(key, request, childNodes, name, type, props);
|
|
3031
|
+
}
|
|
3032
|
+
task.replay = replay;
|
|
3033
|
+
} else {
|
|
3034
|
+
if (type !== REACT_SUSPENSE_TYPE) throw Error(formatProdErrorMessage(490, "Suspense", getComponentNameFromType(type) || "Unknown"));
|
|
3035
|
+
b: {
|
|
3036
|
+
replay = void 0;
|
|
3037
|
+
type = node$jscomp$0[5];
|
|
3038
|
+
ref = node$jscomp$0[2];
|
|
3039
|
+
name = node$jscomp$0[3];
|
|
3040
|
+
keyOrIndex = null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
|
|
3041
|
+
node$jscomp$0 = null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
|
|
3042
|
+
var prevKeyPath = task.keyPath, prevContext = task.formatContext, prevRow = task.row, previousReplaySet = task.replay, parentBoundary = task.blockedBoundary, parentHoistableState = task.hoistableState, content = props.children, fallback = props.fallback, fallbackAbortSet = /* @__PURE__ */ new Set();
|
|
3043
|
+
props = 2 > task.formatContext.insertionMode ? createSuspenseBoundary(request, task.row, fallbackAbortSet, createPreambleState(), createPreambleState()) : createSuspenseBoundary(request, task.row, fallbackAbortSet, null, null);
|
|
3044
|
+
props.parentFlushed = !0;
|
|
3045
|
+
props.rootSegmentID = type;
|
|
3046
|
+
task.blockedBoundary = props;
|
|
3047
|
+
task.hoistableState = props.contentState;
|
|
3048
|
+
task.keyPath = key;
|
|
3049
|
+
task.formatContext = getSuspenseContentFormatContext(request.resumableState, prevContext);
|
|
3050
|
+
task.row = null;
|
|
3051
|
+
task.replay = {
|
|
3052
|
+
nodes: ref,
|
|
3053
|
+
slots: name,
|
|
3054
|
+
pendingTasks: 1
|
|
3055
|
+
};
|
|
3056
|
+
try {
|
|
3057
|
+
renderNode(request, task, content, -1);
|
|
3058
|
+
if (1 === task.replay.pendingTasks && 0 < task.replay.nodes.length) throw Error(formatProdErrorMessage(488));
|
|
3059
|
+
task.replay.pendingTasks--;
|
|
3060
|
+
if (0 === props.pendingTasks && 0 === props.status) {
|
|
3061
|
+
props.status = 1;
|
|
3062
|
+
request.completedBoundaries.push(props);
|
|
3063
|
+
break b;
|
|
3064
|
+
}
|
|
3065
|
+
} catch (error) {
|
|
3066
|
+
props.status = 4, childNodes = getThrownInfo(task.componentStack), replay = logRecoverableError(request, error, childNodes), props.errorDigest = replay, task.replay.pendingTasks--, request.clientRenderedBoundaries.push(props);
|
|
3067
|
+
} finally {
|
|
3068
|
+
task.blockedBoundary = parentBoundary, task.hoistableState = parentHoistableState, task.replay = previousReplaySet, task.keyPath = prevKeyPath, task.formatContext = prevContext, task.row = prevRow;
|
|
3069
|
+
}
|
|
3070
|
+
childNodes = createReplayTask(request, null, {
|
|
3071
|
+
nodes: keyOrIndex,
|
|
3072
|
+
slots: node$jscomp$0,
|
|
3073
|
+
pendingTasks: 0
|
|
3074
|
+
}, fallback, -1, parentBoundary, props.fallbackState, fallbackAbortSet, [
|
|
3075
|
+
key[0],
|
|
3076
|
+
"Suspense Fallback",
|
|
3077
|
+
key[2]
|
|
3078
|
+
], getSuspenseFallbackFormatContext(request.resumableState, task.formatContext), task.context, task.treeContext, task.row, replaceSuspenseComponentStackWithSuspenseFallbackStack(task.componentStack));
|
|
3079
|
+
pushComponentStack(childNodes);
|
|
3080
|
+
request.pingedTasks.push(childNodes);
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
childIndex.splice(node, 1);
|
|
3084
|
+
break a;
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
else renderElement(request, task, key, type, props, ref);
|
|
3089
|
+
return;
|
|
3090
|
+
case REACT_PORTAL_TYPE: throw Error(formatProdErrorMessage(257));
|
|
3091
|
+
case REACT_LAZY_TYPE:
|
|
3092
|
+
childNodes = node._init;
|
|
3093
|
+
node = childNodes(node._payload);
|
|
3094
|
+
if (12 === request.status) throw null;
|
|
3095
|
+
renderNodeDestructive(request, task, node, childIndex);
|
|
3096
|
+
return;
|
|
3097
|
+
}
|
|
3098
|
+
if (isArrayImpl(node)) {
|
|
3099
|
+
renderChildrenArray(request, task, node, childIndex);
|
|
3100
|
+
return;
|
|
3101
|
+
}
|
|
3102
|
+
if (childNodes = getIteratorFn(node)) {
|
|
3103
|
+
if (childNodes = childNodes.call(node)) {
|
|
3104
|
+
node = childNodes.next();
|
|
3105
|
+
if (!node.done) {
|
|
3106
|
+
props = [];
|
|
3107
|
+
do
|
|
3108
|
+
props.push(node.value), node = childNodes.next();
|
|
3109
|
+
while (!node.done);
|
|
3110
|
+
renderChildrenArray(request, task, props, childIndex);
|
|
3111
|
+
}
|
|
3112
|
+
return;
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
if ("function" === typeof node.then) return task.thenableState = null, renderNodeDestructive(request, task, unwrapThenable(node), childIndex);
|
|
3116
|
+
if (node.$$typeof === REACT_CONTEXT_TYPE) return renderNodeDestructive(request, task, node._currentValue, childIndex);
|
|
3117
|
+
childIndex = Object.prototype.toString.call(node);
|
|
3118
|
+
throw Error(formatProdErrorMessage(31, "[object Object]" === childIndex ? "object with keys {" + Object.keys(node).join(", ") + "}" : childIndex));
|
|
3119
|
+
}
|
|
3120
|
+
if ("string" === typeof node) childIndex = task.blockedSegment, null !== childIndex && (childIndex.lastPushedText = pushTextInstance(childIndex.chunks, node, request.renderState, childIndex.lastPushedText));
|
|
3121
|
+
else if ("number" === typeof node || "bigint" === typeof node) childIndex = task.blockedSegment, null !== childIndex && (childIndex.lastPushedText = pushTextInstance(childIndex.chunks, "" + node, request.renderState, childIndex.lastPushedText));
|
|
3122
|
+
}
|
|
3123
|
+
}
|
|
3124
|
+
function renderChildrenArray(request, task, children, childIndex) {
|
|
3125
|
+
var prevKeyPath = task.keyPath;
|
|
3126
|
+
if (-1 !== childIndex && (task.keyPath = [
|
|
3127
|
+
task.keyPath,
|
|
3128
|
+
"Fragment",
|
|
3129
|
+
childIndex
|
|
3130
|
+
], null !== task.replay)) {
|
|
3131
|
+
for (var replay = task.replay, replayNodes = replay.nodes, j = 0; j < replayNodes.length; j++) {
|
|
3132
|
+
var node = replayNodes[j];
|
|
3133
|
+
if (node[1] === childIndex) {
|
|
3134
|
+
childIndex = node[2];
|
|
3135
|
+
node = node[3];
|
|
3136
|
+
task.replay = {
|
|
3137
|
+
nodes: childIndex,
|
|
3138
|
+
slots: node,
|
|
3139
|
+
pendingTasks: 1
|
|
3140
|
+
};
|
|
3141
|
+
try {
|
|
3142
|
+
renderChildrenArray(request, task, children, -1);
|
|
3143
|
+
if (1 === task.replay.pendingTasks && 0 < task.replay.nodes.length) throw Error(formatProdErrorMessage(488));
|
|
3144
|
+
task.replay.pendingTasks--;
|
|
3145
|
+
} catch (x) {
|
|
3146
|
+
if ("object" === typeof x && null !== x && (x === SuspenseException || "function" === typeof x.then)) throw x;
|
|
3147
|
+
task.replay.pendingTasks--;
|
|
3148
|
+
children = getThrownInfo(task.componentStack);
|
|
3149
|
+
var boundary = task.blockedBoundary, error = x;
|
|
3150
|
+
children = logRecoverableError(request, error, children);
|
|
3151
|
+
abortRemainingReplayNodes(request, boundary, childIndex, node, error, children);
|
|
3152
|
+
}
|
|
3153
|
+
task.replay = replay;
|
|
3154
|
+
replayNodes.splice(j, 1);
|
|
3155
|
+
break;
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
task.keyPath = prevKeyPath;
|
|
3159
|
+
return;
|
|
3160
|
+
}
|
|
3161
|
+
replay = task.treeContext;
|
|
3162
|
+
replayNodes = children.length;
|
|
3163
|
+
if (null !== task.replay && (j = task.replay.slots, null !== j && "object" === typeof j)) {
|
|
3164
|
+
for (childIndex = 0; childIndex < replayNodes; childIndex++) node = children[childIndex], task.treeContext = pushTreeContext(replay, replayNodes, childIndex), boundary = j[childIndex], "number" === typeof boundary ? (resumeNode(request, task, boundary, node, childIndex), delete j[childIndex]) : renderNode(request, task, node, childIndex);
|
|
3165
|
+
task.treeContext = replay;
|
|
3166
|
+
task.keyPath = prevKeyPath;
|
|
3167
|
+
return;
|
|
3168
|
+
}
|
|
3169
|
+
for (j = 0; j < replayNodes; j++) childIndex = children[j], task.treeContext = pushTreeContext(replay, replayNodes, j), renderNode(request, task, childIndex, j);
|
|
3170
|
+
task.treeContext = replay;
|
|
3171
|
+
task.keyPath = prevKeyPath;
|
|
3172
|
+
}
|
|
3173
|
+
function trackPostponedBoundary(request, trackedPostpones, boundary) {
|
|
3174
|
+
boundary.status = 5;
|
|
3175
|
+
boundary.rootSegmentID = request.nextSegmentId++;
|
|
3176
|
+
request = boundary.trackedContentKeyPath;
|
|
3177
|
+
if (null === request) throw Error(formatProdErrorMessage(486));
|
|
3178
|
+
var fallbackReplayNode = boundary.trackedFallbackNode, children = [], boundaryNode = trackedPostpones.workingMap.get(request);
|
|
3179
|
+
if (void 0 === boundaryNode) return boundary = [
|
|
3180
|
+
request[1],
|
|
3181
|
+
request[2],
|
|
3182
|
+
children,
|
|
3183
|
+
null,
|
|
3184
|
+
fallbackReplayNode,
|
|
3185
|
+
boundary.rootSegmentID
|
|
3186
|
+
], trackedPostpones.workingMap.set(request, boundary), addToReplayParent(boundary, request[0], trackedPostpones), boundary;
|
|
3187
|
+
boundaryNode[4] = fallbackReplayNode;
|
|
3188
|
+
boundaryNode[5] = boundary.rootSegmentID;
|
|
3189
|
+
return boundaryNode;
|
|
3190
|
+
}
|
|
3191
|
+
function trackPostpone(request, trackedPostpones, task, segment) {
|
|
3192
|
+
segment.status = 5;
|
|
3193
|
+
var keyPath = task.keyPath, boundary = task.blockedBoundary;
|
|
3194
|
+
if (null === boundary) segment.id = request.nextSegmentId++, trackedPostpones.rootSlots = segment.id, null !== request.completedRootSegment && (request.completedRootSegment.status = 5);
|
|
3195
|
+
else {
|
|
3196
|
+
if (null !== boundary && 0 === boundary.status) {
|
|
3197
|
+
var boundaryNode = trackPostponedBoundary(request, trackedPostpones, boundary);
|
|
3198
|
+
if (boundary.trackedContentKeyPath === keyPath && -1 === task.childIndex) {
|
|
3199
|
+
-1 === segment.id && (segment.id = segment.parentFlushed ? boundary.rootSegmentID : request.nextSegmentId++);
|
|
3200
|
+
boundaryNode[3] = segment.id;
|
|
3201
|
+
return;
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3204
|
+
-1 === segment.id && (segment.id = segment.parentFlushed && null !== boundary ? boundary.rootSegmentID : request.nextSegmentId++);
|
|
3205
|
+
if (-1 === task.childIndex) null === keyPath ? trackedPostpones.rootSlots = segment.id : (task = trackedPostpones.workingMap.get(keyPath), void 0 === task ? (task = [
|
|
3206
|
+
keyPath[1],
|
|
3207
|
+
keyPath[2],
|
|
3208
|
+
[],
|
|
3209
|
+
segment.id
|
|
3210
|
+
], addToReplayParent(task, keyPath[0], trackedPostpones)) : task[3] = segment.id);
|
|
3211
|
+
else {
|
|
3212
|
+
if (null === keyPath) {
|
|
3213
|
+
if (request = trackedPostpones.rootSlots, null === request) request = trackedPostpones.rootSlots = {};
|
|
3214
|
+
else if ("number" === typeof request) throw Error(formatProdErrorMessage(491));
|
|
3215
|
+
} else if (boundary = trackedPostpones.workingMap, boundaryNode = boundary.get(keyPath), void 0 === boundaryNode) request = {}, boundaryNode = [
|
|
3216
|
+
keyPath[1],
|
|
3217
|
+
keyPath[2],
|
|
3218
|
+
[],
|
|
3219
|
+
request
|
|
3220
|
+
], boundary.set(keyPath, boundaryNode), addToReplayParent(boundaryNode, keyPath[0], trackedPostpones);
|
|
3221
|
+
else if (request = boundaryNode[3], null === request) request = boundaryNode[3] = {};
|
|
3222
|
+
else if ("number" === typeof request) throw Error(formatProdErrorMessage(491));
|
|
3223
|
+
request[task.childIndex] = segment.id;
|
|
3224
|
+
}
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
function untrackBoundary(request, boundary) {
|
|
3228
|
+
request = request.trackedPostpones;
|
|
3229
|
+
null !== request && (boundary = boundary.trackedContentKeyPath, null !== boundary && (boundary = request.workingMap.get(boundary), void 0 !== boundary && (boundary.length = 4, boundary[2] = [], boundary[3] = null)));
|
|
3230
|
+
}
|
|
3231
|
+
function spawnNewSuspendedReplayTask(request, task, thenableState$1) {
|
|
3232
|
+
return createReplayTask(request, thenableState$1, task.replay, task.node, task.childIndex, task.blockedBoundary, task.hoistableState, task.abortSet, task.keyPath, task.formatContext, task.context, task.treeContext, task.row, task.componentStack);
|
|
3233
|
+
}
|
|
3234
|
+
function spawnNewSuspendedRenderTask(request, task, thenableState$1) {
|
|
3235
|
+
var segment = task.blockedSegment, newSegment = createPendingSegment(request, segment.chunks.length, null, task.formatContext, segment.lastPushedText, !0);
|
|
3236
|
+
segment.children.push(newSegment);
|
|
3237
|
+
segment.lastPushedText = !1;
|
|
3238
|
+
return createRenderTask(request, thenableState$1, task.node, task.childIndex, task.blockedBoundary, newSegment, task.blockedPreamble, task.hoistableState, task.abortSet, task.keyPath, task.formatContext, task.context, task.treeContext, task.row, task.componentStack);
|
|
3239
|
+
}
|
|
3240
|
+
function renderNode(request, task, node, childIndex) {
|
|
3241
|
+
var previousFormatContext = task.formatContext, previousContext = task.context, previousKeyPath = task.keyPath, previousTreeContext = task.treeContext, previousComponentStack = task.componentStack, segment = task.blockedSegment;
|
|
3242
|
+
if (null === segment) {
|
|
3243
|
+
segment = task.replay;
|
|
3244
|
+
try {
|
|
3245
|
+
return renderNodeDestructive(request, task, node, childIndex);
|
|
3246
|
+
} catch (thrownValue) {
|
|
3247
|
+
if (resetHooksState(), node = thrownValue === SuspenseException ? getSuspendedThenable() : thrownValue, 12 !== request.status && "object" === typeof node && null !== node) {
|
|
3248
|
+
if ("function" === typeof node.then) {
|
|
3249
|
+
childIndex = thrownValue === SuspenseException ? getThenableStateAfterSuspending() : null;
|
|
3250
|
+
request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
|
|
3251
|
+
node.then(request, request);
|
|
3252
|
+
task.formatContext = previousFormatContext;
|
|
3253
|
+
task.context = previousContext;
|
|
3254
|
+
task.keyPath = previousKeyPath;
|
|
3255
|
+
task.treeContext = previousTreeContext;
|
|
3256
|
+
task.componentStack = previousComponentStack;
|
|
3257
|
+
task.replay = segment;
|
|
3258
|
+
switchContext(previousContext);
|
|
3259
|
+
return;
|
|
3260
|
+
}
|
|
3261
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
|
3262
|
+
node = thrownValue === SuspenseException ? getThenableStateAfterSuspending() : null;
|
|
3263
|
+
node = spawnNewSuspendedReplayTask(request, task, node);
|
|
3264
|
+
request.pingedTasks.push(node);
|
|
3265
|
+
task.formatContext = previousFormatContext;
|
|
3266
|
+
task.context = previousContext;
|
|
3267
|
+
task.keyPath = previousKeyPath;
|
|
3268
|
+
task.treeContext = previousTreeContext;
|
|
3269
|
+
task.componentStack = previousComponentStack;
|
|
3270
|
+
task.replay = segment;
|
|
3271
|
+
switchContext(previousContext);
|
|
3272
|
+
return;
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
} else {
|
|
3277
|
+
var childrenLength = segment.children.length, chunkLength = segment.chunks.length;
|
|
3278
|
+
try {
|
|
3279
|
+
return renderNodeDestructive(request, task, node, childIndex);
|
|
3280
|
+
} catch (thrownValue$63) {
|
|
3281
|
+
if (resetHooksState(), segment.children.length = childrenLength, segment.chunks.length = chunkLength, node = thrownValue$63 === SuspenseException ? getSuspendedThenable() : thrownValue$63, 12 !== request.status && "object" === typeof node && null !== node) {
|
|
3282
|
+
if ("function" === typeof node.then) {
|
|
3283
|
+
segment = node;
|
|
3284
|
+
node = thrownValue$63 === SuspenseException ? getThenableStateAfterSuspending() : null;
|
|
3285
|
+
request = spawnNewSuspendedRenderTask(request, task, node).ping;
|
|
3286
|
+
segment.then(request, request);
|
|
3287
|
+
task.formatContext = previousFormatContext;
|
|
3288
|
+
task.context = previousContext;
|
|
3289
|
+
task.keyPath = previousKeyPath;
|
|
3290
|
+
task.treeContext = previousTreeContext;
|
|
3291
|
+
task.componentStack = previousComponentStack;
|
|
3292
|
+
switchContext(previousContext);
|
|
3293
|
+
return;
|
|
3294
|
+
}
|
|
3295
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
|
3296
|
+
segment = thrownValue$63 === SuspenseException ? getThenableStateAfterSuspending() : null;
|
|
3297
|
+
segment = spawnNewSuspendedRenderTask(request, task, segment);
|
|
3298
|
+
request.pingedTasks.push(segment);
|
|
3299
|
+
task.formatContext = previousFormatContext;
|
|
3300
|
+
task.context = previousContext;
|
|
3301
|
+
task.keyPath = previousKeyPath;
|
|
3302
|
+
task.treeContext = previousTreeContext;
|
|
3303
|
+
task.componentStack = previousComponentStack;
|
|
3304
|
+
switchContext(previousContext);
|
|
3305
|
+
return;
|
|
3306
|
+
}
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
task.formatContext = previousFormatContext;
|
|
3311
|
+
task.context = previousContext;
|
|
3312
|
+
task.keyPath = previousKeyPath;
|
|
3313
|
+
task.treeContext = previousTreeContext;
|
|
3314
|
+
switchContext(previousContext);
|
|
3315
|
+
throw node;
|
|
3316
|
+
}
|
|
3317
|
+
function abortTaskSoft(task) {
|
|
3318
|
+
var boundary = task.blockedBoundary, segment = task.blockedSegment;
|
|
3319
|
+
null !== segment && (segment.status = 3, finishedTask(this, boundary, task.row, segment));
|
|
3320
|
+
}
|
|
3321
|
+
function abortRemainingReplayNodes(request$jscomp$0, boundary, nodes, slots, error, errorDigest$jscomp$0) {
|
|
3322
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
3323
|
+
var node = nodes[i];
|
|
3324
|
+
if (4 === node.length) abortRemainingReplayNodes(request$jscomp$0, boundary, node[2], node[3], error, errorDigest$jscomp$0);
|
|
3325
|
+
else {
|
|
3326
|
+
node = node[5];
|
|
3327
|
+
var request = request$jscomp$0, errorDigest = errorDigest$jscomp$0, resumedBoundary = createSuspenseBoundary(request, null, /* @__PURE__ */ new Set(), null, null);
|
|
3328
|
+
resumedBoundary.parentFlushed = !0;
|
|
3329
|
+
resumedBoundary.rootSegmentID = node;
|
|
3330
|
+
resumedBoundary.status = 4;
|
|
3331
|
+
resumedBoundary.errorDigest = errorDigest;
|
|
3332
|
+
resumedBoundary.parentFlushed && request.clientRenderedBoundaries.push(resumedBoundary);
|
|
3333
|
+
}
|
|
3334
|
+
}
|
|
3335
|
+
nodes.length = 0;
|
|
3336
|
+
if (null !== slots) {
|
|
3337
|
+
if (null === boundary) throw Error(formatProdErrorMessage(487));
|
|
3338
|
+
4 !== boundary.status && (boundary.status = 4, boundary.errorDigest = errorDigest$jscomp$0, boundary.parentFlushed && request$jscomp$0.clientRenderedBoundaries.push(boundary));
|
|
3339
|
+
if ("object" === typeof slots) for (var index in slots) delete slots[index];
|
|
3340
|
+
}
|
|
3341
|
+
}
|
|
3342
|
+
function abortTask(task, request, error) {
|
|
3343
|
+
var boundary = task.blockedBoundary, segment = task.blockedSegment;
|
|
3344
|
+
if (null !== segment) {
|
|
3345
|
+
if (6 === segment.status) return;
|
|
3346
|
+
segment.status = 3;
|
|
3347
|
+
}
|
|
3348
|
+
var errorInfo = getThrownInfo(task.componentStack);
|
|
3349
|
+
if (null === boundary) {
|
|
3350
|
+
if (13 !== request.status && 14 !== request.status) {
|
|
3351
|
+
boundary = task.replay;
|
|
3352
|
+
if (null === boundary) {
|
|
3353
|
+
null !== request.trackedPostpones && null !== segment ? (boundary = request.trackedPostpones, logRecoverableError(request, error, errorInfo), trackPostpone(request, boundary, task, segment), finishedTask(request, null, task.row, segment)) : (logRecoverableError(request, error, errorInfo), fatalError(request, error));
|
|
3354
|
+
return;
|
|
3355
|
+
}
|
|
3356
|
+
boundary.pendingTasks--;
|
|
3357
|
+
0 === boundary.pendingTasks && 0 < boundary.nodes.length && (segment = logRecoverableError(request, error, errorInfo), abortRemainingReplayNodes(request, null, boundary.nodes, boundary.slots, error, segment));
|
|
3358
|
+
request.pendingRootTasks--;
|
|
3359
|
+
0 === request.pendingRootTasks && completeShell(request);
|
|
3360
|
+
}
|
|
3361
|
+
} else {
|
|
3362
|
+
var trackedPostpones$64 = request.trackedPostpones;
|
|
3363
|
+
if (4 !== boundary.status) {
|
|
3364
|
+
if (null !== trackedPostpones$64 && null !== segment) return logRecoverableError(request, error, errorInfo), trackPostpone(request, trackedPostpones$64, task, segment), boundary.fallbackAbortableTasks.forEach(function(fallbackTask) {
|
|
3365
|
+
return abortTask(fallbackTask, request, error);
|
|
3366
|
+
}), boundary.fallbackAbortableTasks.clear(), finishedTask(request, boundary, task.row, segment);
|
|
3367
|
+
boundary.status = 4;
|
|
3368
|
+
segment = logRecoverableError(request, error, errorInfo);
|
|
3369
|
+
boundary.status = 4;
|
|
3370
|
+
boundary.errorDigest = segment;
|
|
3371
|
+
untrackBoundary(request, boundary);
|
|
3372
|
+
boundary.parentFlushed && request.clientRenderedBoundaries.push(boundary);
|
|
3373
|
+
}
|
|
3374
|
+
boundary.pendingTasks--;
|
|
3375
|
+
segment = boundary.row;
|
|
3376
|
+
null !== segment && 0 === --segment.pendingTasks && finishSuspenseListRow(request, segment);
|
|
3377
|
+
boundary.fallbackAbortableTasks.forEach(function(fallbackTask) {
|
|
3378
|
+
return abortTask(fallbackTask, request, error);
|
|
3379
|
+
});
|
|
3380
|
+
boundary.fallbackAbortableTasks.clear();
|
|
3381
|
+
}
|
|
3382
|
+
task = task.row;
|
|
3383
|
+
null !== task && 0 === --task.pendingTasks && finishSuspenseListRow(request, task);
|
|
3384
|
+
request.allPendingTasks--;
|
|
3385
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
3386
|
+
}
|
|
3387
|
+
function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
3388
|
+
try {
|
|
3389
|
+
var renderState = request.renderState, onHeaders = renderState.onHeaders;
|
|
3390
|
+
if (onHeaders) {
|
|
3391
|
+
var headers = renderState.headers;
|
|
3392
|
+
if (headers) {
|
|
3393
|
+
renderState.headers = null;
|
|
3394
|
+
var linkHeader = headers.preconnects;
|
|
3395
|
+
headers.fontPreloads && (linkHeader && (linkHeader += ", "), linkHeader += headers.fontPreloads);
|
|
3396
|
+
headers.highImagePreloads && (linkHeader && (linkHeader += ", "), linkHeader += headers.highImagePreloads);
|
|
3397
|
+
if (!shellComplete) {
|
|
3398
|
+
var queueIter = renderState.styles.values(), queueStep = queueIter.next();
|
|
3399
|
+
b: for (; 0 < headers.remainingCapacity && !queueStep.done; queueStep = queueIter.next()) for (var sheetIter = queueStep.value.sheets.values(), sheetStep = sheetIter.next(); 0 < headers.remainingCapacity && !sheetStep.done; sheetStep = sheetIter.next()) {
|
|
3400
|
+
var sheet = sheetStep.value, props = sheet.props, key = props.href, props$jscomp$0 = sheet.props, header = getPreloadAsHeader(props$jscomp$0.href, "style", {
|
|
3401
|
+
crossOrigin: props$jscomp$0.crossOrigin,
|
|
3402
|
+
integrity: props$jscomp$0.integrity,
|
|
3403
|
+
nonce: props$jscomp$0.nonce,
|
|
3404
|
+
type: props$jscomp$0.type,
|
|
3405
|
+
fetchPriority: props$jscomp$0.fetchPriority,
|
|
3406
|
+
referrerPolicy: props$jscomp$0.referrerPolicy,
|
|
3407
|
+
media: props$jscomp$0.media
|
|
3408
|
+
});
|
|
3409
|
+
if (0 <= (headers.remainingCapacity -= header.length + 2)) renderState.resets.style[key] = PRELOAD_NO_CREDS, linkHeader && (linkHeader += ", "), linkHeader += header, renderState.resets.style[key] = "string" === typeof props.crossOrigin || "string" === typeof props.integrity ? [props.crossOrigin, props.integrity] : PRELOAD_NO_CREDS;
|
|
3410
|
+
else break b;
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
linkHeader ? onHeaders({ Link: linkHeader }) : onHeaders({});
|
|
3414
|
+
}
|
|
3415
|
+
}
|
|
3416
|
+
} catch (error) {
|
|
3417
|
+
logRecoverableError(request, error, {});
|
|
3418
|
+
}
|
|
3419
|
+
}
|
|
3420
|
+
function completeShell(request) {
|
|
3421
|
+
null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
|
|
3422
|
+
null === request.trackedPostpones && preparePreamble(request);
|
|
3423
|
+
request.onShellError = noop;
|
|
3424
|
+
request = request.onShellReady;
|
|
3425
|
+
request();
|
|
3426
|
+
}
|
|
3427
|
+
function completeAll(request) {
|
|
3428
|
+
safelyEmitEarlyPreloads(request, null === request.trackedPostpones ? !0 : null === request.completedRootSegment || 5 !== request.completedRootSegment.status);
|
|
3429
|
+
preparePreamble(request);
|
|
3430
|
+
request = request.onAllReady;
|
|
3431
|
+
request();
|
|
3432
|
+
}
|
|
3433
|
+
function queueCompletedSegment(boundary, segment) {
|
|
3434
|
+
if (0 === segment.chunks.length && 1 === segment.children.length && null === segment.children[0].boundary && -1 === segment.children[0].id) {
|
|
3435
|
+
var childSegment = segment.children[0];
|
|
3436
|
+
childSegment.id = segment.id;
|
|
3437
|
+
childSegment.parentFlushed = !0;
|
|
3438
|
+
1 !== childSegment.status && 3 !== childSegment.status && 4 !== childSegment.status || queueCompletedSegment(boundary, childSegment);
|
|
3439
|
+
} else boundary.completedSegments.push(segment);
|
|
3440
|
+
}
|
|
3441
|
+
function finishedSegment(request, boundary, segment) {
|
|
3442
|
+
if (null !== byteLengthOfChunk) {
|
|
3443
|
+
segment = segment.chunks;
|
|
3444
|
+
for (var segmentByteSize = 0, i = 0; i < segment.length; i++) segmentByteSize += segment[i].byteLength;
|
|
3445
|
+
null === boundary ? request.byteSize += segmentByteSize : boundary.byteSize += segmentByteSize;
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
function finishedTask(request, boundary, row, segment) {
|
|
3449
|
+
null !== row && (0 === --row.pendingTasks ? finishSuspenseListRow(request, row) : row.together && tryToResolveTogetherRow(request, row));
|
|
3450
|
+
request.allPendingTasks--;
|
|
3451
|
+
if (null === boundary) {
|
|
3452
|
+
if (null !== segment && segment.parentFlushed) {
|
|
3453
|
+
if (null !== request.completedRootSegment) throw Error(formatProdErrorMessage(389));
|
|
3454
|
+
request.completedRootSegment = segment;
|
|
3455
|
+
}
|
|
3456
|
+
request.pendingRootTasks--;
|
|
3457
|
+
0 === request.pendingRootTasks && completeShell(request);
|
|
3458
|
+
} else if (boundary.pendingTasks--, 4 !== boundary.status) if (0 === boundary.pendingTasks) {
|
|
3459
|
+
if (0 === boundary.status && (boundary.status = 1), null !== segment && segment.parentFlushed && (1 === segment.status || 3 === segment.status) && queueCompletedSegment(boundary, segment), boundary.parentFlushed && request.completedBoundaries.push(boundary), 1 === boundary.status) row = boundary.row, null !== row && hoistHoistables(row.hoistables, boundary.contentState), isEligibleForOutlining(request, boundary) || (boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request), boundary.fallbackAbortableTasks.clear(), null !== row && 0 === --row.pendingTasks && finishSuspenseListRow(request, row)), 0 === request.pendingRootTasks && null === request.trackedPostpones && null !== boundary.contentPreamble && preparePreamble(request);
|
|
3460
|
+
else if (5 === boundary.status && (boundary = boundary.row, null !== boundary)) {
|
|
3461
|
+
if (null !== request.trackedPostpones) {
|
|
3462
|
+
row = request.trackedPostpones;
|
|
3463
|
+
var postponedRow = boundary.next;
|
|
3464
|
+
if (null !== postponedRow && (segment = postponedRow.boundaries, null !== segment)) for (postponedRow.boundaries = null, postponedRow = 0; postponedRow < segment.length; postponedRow++) {
|
|
3465
|
+
var postponedBoundary = segment[postponedRow];
|
|
3466
|
+
trackPostponedBoundary(request, row, postponedBoundary);
|
|
3467
|
+
finishedTask(request, postponedBoundary, null, null);
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
0 === --boundary.pendingTasks && finishSuspenseListRow(request, boundary);
|
|
3471
|
+
}
|
|
3472
|
+
} else null === segment || !segment.parentFlushed || 1 !== segment.status && 3 !== segment.status || (queueCompletedSegment(boundary, segment), 1 === boundary.completedSegments.length && boundary.parentFlushed && request.partialBoundaries.push(boundary)), boundary = boundary.row, null !== boundary && boundary.together && tryToResolveTogetherRow(request, boundary);
|
|
3473
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
3474
|
+
}
|
|
3475
|
+
function performWork(request$jscomp$2) {
|
|
3476
|
+
if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
|
|
3477
|
+
var prevContext = currentActiveSnapshot, prevDispatcher = ReactSharedInternals.H;
|
|
3478
|
+
ReactSharedInternals.H = HooksDispatcher;
|
|
3479
|
+
var prevAsyncDispatcher = ReactSharedInternals.A;
|
|
3480
|
+
ReactSharedInternals.A = DefaultAsyncDispatcher;
|
|
3481
|
+
var prevRequest = currentRequest;
|
|
3482
|
+
currentRequest = request$jscomp$2;
|
|
3483
|
+
var prevResumableState = currentResumableState;
|
|
3484
|
+
currentResumableState = request$jscomp$2.resumableState;
|
|
3485
|
+
try {
|
|
3486
|
+
var pingedTasks = request$jscomp$2.pingedTasks, i;
|
|
3487
|
+
for (i = 0; i < pingedTasks.length; i++) {
|
|
3488
|
+
var task = pingedTasks[i], request = request$jscomp$2, segment = task.blockedSegment;
|
|
3489
|
+
if (null === segment) {
|
|
3490
|
+
var request$jscomp$0 = request;
|
|
3491
|
+
if (0 !== task.replay.pendingTasks) {
|
|
3492
|
+
switchContext(task.context);
|
|
3493
|
+
try {
|
|
3494
|
+
"number" === typeof task.replay.slots ? resumeNode(request$jscomp$0, task, task.replay.slots, task.node, task.childIndex) : retryNode(request$jscomp$0, task);
|
|
3495
|
+
if (1 === task.replay.pendingTasks && 0 < task.replay.nodes.length) throw Error(formatProdErrorMessage(488));
|
|
3496
|
+
task.replay.pendingTasks--;
|
|
3497
|
+
task.abortSet.delete(task);
|
|
3498
|
+
finishedTask(request$jscomp$0, task.blockedBoundary, task.row, null);
|
|
3499
|
+
} catch (thrownValue) {
|
|
3500
|
+
resetHooksState();
|
|
3501
|
+
var x = thrownValue === SuspenseException ? getSuspendedThenable() : thrownValue;
|
|
3502
|
+
if ("object" === typeof x && null !== x && "function" === typeof x.then) {
|
|
3503
|
+
var ping = task.ping;
|
|
3504
|
+
x.then(ping, ping);
|
|
3505
|
+
task.thenableState = thrownValue === SuspenseException ? getThenableStateAfterSuspending() : null;
|
|
3506
|
+
} else {
|
|
3507
|
+
task.replay.pendingTasks--;
|
|
3508
|
+
task.abortSet.delete(task);
|
|
3509
|
+
var errorInfo = getThrownInfo(task.componentStack);
|
|
3510
|
+
request = void 0;
|
|
3511
|
+
var request$jscomp$1 = request$jscomp$0, boundary = task.blockedBoundary, error$jscomp$0 = 12 === request$jscomp$0.status ? request$jscomp$0.fatalError : x, replayNodes = task.replay.nodes, resumeSlots = task.replay.slots;
|
|
3512
|
+
request = logRecoverableError(request$jscomp$1, error$jscomp$0, errorInfo);
|
|
3513
|
+
abortRemainingReplayNodes(request$jscomp$1, boundary, replayNodes, resumeSlots, error$jscomp$0, request);
|
|
3514
|
+
request$jscomp$0.pendingRootTasks--;
|
|
3515
|
+
0 === request$jscomp$0.pendingRootTasks && completeShell(request$jscomp$0);
|
|
3516
|
+
request$jscomp$0.allPendingTasks--;
|
|
3517
|
+
0 === request$jscomp$0.allPendingTasks && completeAll(request$jscomp$0);
|
|
3518
|
+
}
|
|
3519
|
+
}
|
|
3520
|
+
}
|
|
3521
|
+
} else if (request$jscomp$0 = void 0, request$jscomp$1 = segment, 0 === request$jscomp$1.status) {
|
|
3522
|
+
request$jscomp$1.status = 6;
|
|
3523
|
+
switchContext(task.context);
|
|
3524
|
+
var childrenLength = request$jscomp$1.children.length, chunkLength = request$jscomp$1.chunks.length;
|
|
3525
|
+
try {
|
|
3526
|
+
retryNode(request, task), request$jscomp$1.lastPushedText && request$jscomp$1.textEmbedded && request$jscomp$1.chunks.push(textSeparator), task.abortSet.delete(task), request$jscomp$1.status = 1, finishedSegment(request, task.blockedBoundary, request$jscomp$1), finishedTask(request, task.blockedBoundary, task.row, request$jscomp$1);
|
|
3527
|
+
} catch (thrownValue) {
|
|
3528
|
+
resetHooksState();
|
|
3529
|
+
request$jscomp$1.children.length = childrenLength;
|
|
3530
|
+
request$jscomp$1.chunks.length = chunkLength;
|
|
3531
|
+
var x$jscomp$0 = thrownValue === SuspenseException ? getSuspendedThenable() : 12 === request.status ? request.fatalError : thrownValue;
|
|
3532
|
+
if (12 === request.status && null !== request.trackedPostpones) {
|
|
3533
|
+
var trackedPostpones = request.trackedPostpones, thrownInfo = getThrownInfo(task.componentStack);
|
|
3534
|
+
task.abortSet.delete(task);
|
|
3535
|
+
logRecoverableError(request, x$jscomp$0, thrownInfo);
|
|
3536
|
+
trackPostpone(request, trackedPostpones, task, request$jscomp$1);
|
|
3537
|
+
finishedTask(request, task.blockedBoundary, task.row, request$jscomp$1);
|
|
3538
|
+
} else if ("object" === typeof x$jscomp$0 && null !== x$jscomp$0 && "function" === typeof x$jscomp$0.then) {
|
|
3539
|
+
request$jscomp$1.status = 0;
|
|
3540
|
+
task.thenableState = thrownValue === SuspenseException ? getThenableStateAfterSuspending() : null;
|
|
3541
|
+
var ping$jscomp$0 = task.ping;
|
|
3542
|
+
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
3543
|
+
} else {
|
|
3544
|
+
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
|
3545
|
+
task.abortSet.delete(task);
|
|
3546
|
+
request$jscomp$1.status = 4;
|
|
3547
|
+
var boundary$jscomp$0 = task.blockedBoundary, row = task.row;
|
|
3548
|
+
null !== row && 0 === --row.pendingTasks && finishSuspenseListRow(request, row);
|
|
3549
|
+
request.allPendingTasks--;
|
|
3550
|
+
request$jscomp$0 = logRecoverableError(request, x$jscomp$0, errorInfo$jscomp$0);
|
|
3551
|
+
if (null === boundary$jscomp$0) fatalError(request, x$jscomp$0);
|
|
3552
|
+
else if (boundary$jscomp$0.pendingTasks--, 4 !== boundary$jscomp$0.status) {
|
|
3553
|
+
boundary$jscomp$0.status = 4;
|
|
3554
|
+
boundary$jscomp$0.errorDigest = request$jscomp$0;
|
|
3555
|
+
untrackBoundary(request, boundary$jscomp$0);
|
|
3556
|
+
var boundaryRow = boundary$jscomp$0.row;
|
|
3557
|
+
null !== boundaryRow && 0 === --boundaryRow.pendingTasks && finishSuspenseListRow(request, boundaryRow);
|
|
3558
|
+
boundary$jscomp$0.parentFlushed && request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
|
3559
|
+
0 === request.pendingRootTasks && null === request.trackedPostpones && null !== boundary$jscomp$0.contentPreamble && preparePreamble(request);
|
|
3560
|
+
}
|
|
3561
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
pingedTasks.splice(0, i);
|
|
3567
|
+
null !== request$jscomp$2.destination && flushCompletedQueues(request$jscomp$2, request$jscomp$2.destination);
|
|
3568
|
+
} catch (error) {
|
|
3569
|
+
logRecoverableError(request$jscomp$2, error, {}), fatalError(request$jscomp$2, error);
|
|
3570
|
+
} finally {
|
|
3571
|
+
currentResumableState = prevResumableState, ReactSharedInternals.H = prevDispatcher, ReactSharedInternals.A = prevAsyncDispatcher, prevDispatcher === HooksDispatcher && switchContext(prevContext), currentRequest = prevRequest;
|
|
3572
|
+
}
|
|
3573
|
+
}
|
|
3574
|
+
}
|
|
3575
|
+
function preparePreambleFromSubtree(request, segment, collectedPreambleSegments) {
|
|
3576
|
+
segment.preambleChildren.length && collectedPreambleSegments.push(segment.preambleChildren);
|
|
3577
|
+
for (var pendingPreambles = !1, i = 0; i < segment.children.length; i++) pendingPreambles = preparePreambleFromSegment(request, segment.children[i], collectedPreambleSegments) || pendingPreambles;
|
|
3578
|
+
return pendingPreambles;
|
|
3579
|
+
}
|
|
3580
|
+
function preparePreambleFromSegment(request, segment, collectedPreambleSegments) {
|
|
3581
|
+
var boundary = segment.boundary;
|
|
3582
|
+
if (null === boundary) return preparePreambleFromSubtree(request, segment, collectedPreambleSegments);
|
|
3583
|
+
var preamble = boundary.contentPreamble, fallbackPreamble = boundary.fallbackPreamble;
|
|
3584
|
+
if (null === preamble || null === fallbackPreamble) return !1;
|
|
3585
|
+
switch (boundary.status) {
|
|
3586
|
+
case 1:
|
|
3587
|
+
hoistPreambleState(request.renderState, preamble);
|
|
3588
|
+
request.byteSize += boundary.byteSize;
|
|
3589
|
+
segment = boundary.completedSegments[0];
|
|
3590
|
+
if (!segment) throw Error(formatProdErrorMessage(391));
|
|
3591
|
+
return preparePreambleFromSubtree(request, segment, collectedPreambleSegments);
|
|
3592
|
+
case 5: if (null !== request.trackedPostpones) return !0;
|
|
3593
|
+
case 4: if (1 === segment.status) return hoistPreambleState(request.renderState, fallbackPreamble), preparePreambleFromSubtree(request, segment, collectedPreambleSegments);
|
|
3594
|
+
default: return !0;
|
|
3595
|
+
}
|
|
3596
|
+
}
|
|
3597
|
+
function preparePreamble(request) {
|
|
3598
|
+
if (request.completedRootSegment && null === request.completedPreambleSegments) {
|
|
3599
|
+
var collectedPreambleSegments = [], originalRequestByteSize = request.byteSize, hasPendingPreambles = preparePreambleFromSegment(request, request.completedRootSegment, collectedPreambleSegments), preamble = request.renderState.preamble;
|
|
3600
|
+
!1 === hasPendingPreambles || preamble.headChunks && preamble.bodyChunks ? request.completedPreambleSegments = collectedPreambleSegments : request.byteSize = originalRequestByteSize;
|
|
3601
|
+
}
|
|
3602
|
+
}
|
|
3603
|
+
function flushSubtree(request, destination, segment, hoistableState) {
|
|
3604
|
+
segment.parentFlushed = !0;
|
|
3605
|
+
switch (segment.status) {
|
|
3606
|
+
case 0: segment.id = request.nextSegmentId++;
|
|
3607
|
+
case 5: return hoistableState = segment.id, segment.lastPushedText = !1, segment.textEmbedded = !1, request = request.renderState, writeChunk(destination, placeholder1), writeChunk(destination, request.placeholderPrefix), request = stringToChunk(hoistableState.toString(16)), writeChunk(destination, request), writeChunkAndReturn(destination, placeholder2);
|
|
3608
|
+
case 1:
|
|
3609
|
+
segment.status = 2;
|
|
3610
|
+
var r = !0, chunks = segment.chunks, chunkIdx = 0;
|
|
3611
|
+
segment = segment.children;
|
|
3612
|
+
for (var childIdx = 0; childIdx < segment.length; childIdx++) {
|
|
3613
|
+
for (r = segment[childIdx]; chunkIdx < r.index; chunkIdx++) writeChunk(destination, chunks[chunkIdx]);
|
|
3614
|
+
r = flushSegment(request, destination, r, hoistableState);
|
|
3615
|
+
}
|
|
3616
|
+
for (; chunkIdx < chunks.length - 1; chunkIdx++) writeChunk(destination, chunks[chunkIdx]);
|
|
3617
|
+
chunkIdx < chunks.length && (r = writeChunkAndReturn(destination, chunks[chunkIdx]));
|
|
3618
|
+
return r;
|
|
3619
|
+
case 3: return !0;
|
|
3620
|
+
default: throw Error(formatProdErrorMessage(390));
|
|
3621
|
+
}
|
|
3622
|
+
}
|
|
3623
|
+
var flushedByteSize = 0;
|
|
3624
|
+
function flushSegment(request, destination, segment, hoistableState) {
|
|
3625
|
+
var boundary = segment.boundary;
|
|
3626
|
+
if (null === boundary) return flushSubtree(request, destination, segment, hoistableState);
|
|
3627
|
+
boundary.parentFlushed = !0;
|
|
3628
|
+
if (4 === boundary.status) {
|
|
3629
|
+
var row = boundary.row;
|
|
3630
|
+
null !== row && 0 === --row.pendingTasks && finishSuspenseListRow(request, row);
|
|
3631
|
+
boundary = boundary.errorDigest;
|
|
3632
|
+
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
|
|
3633
|
+
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
|
3634
|
+
boundary && (writeChunk(destination, clientRenderedSuspenseBoundaryError1A), writeChunk(destination, stringToChunk(escapeTextForBrowser(boundary))), writeChunk(destination, clientRenderedSuspenseBoundaryErrorAttrInterstitial));
|
|
3635
|
+
writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2);
|
|
3636
|
+
flushSubtree(request, destination, segment, hoistableState);
|
|
3637
|
+
} else if (1 !== boundary.status) 0 === boundary.status && (boundary.rootSegmentID = request.nextSegmentId++), 0 < boundary.completedSegments.length && request.partialBoundaries.push(boundary), writeStartPendingSuspenseBoundary(destination, request.renderState, boundary.rootSegmentID), hoistableState && hoistHoistables(hoistableState, boundary.fallbackState), flushSubtree(request, destination, segment, hoistableState);
|
|
3638
|
+
else if (!flushingPartialBoundaries && isEligibleForOutlining(request, boundary) && (flushedByteSize + boundary.byteSize > request.progressiveChunkSize || hasSuspenseyContent(boundary.contentState))) boundary.rootSegmentID = request.nextSegmentId++, request.completedBoundaries.push(boundary), writeStartPendingSuspenseBoundary(destination, request.renderState, boundary.rootSegmentID), flushSubtree(request, destination, segment, hoistableState);
|
|
3639
|
+
else {
|
|
3640
|
+
flushedByteSize += boundary.byteSize;
|
|
3641
|
+
hoistableState && hoistHoistables(hoistableState, boundary.contentState);
|
|
3642
|
+
segment = boundary.row;
|
|
3643
|
+
null !== segment && isEligibleForOutlining(request, boundary) && 0 === --segment.pendingTasks && finishSuspenseListRow(request, segment);
|
|
3644
|
+
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
|
3645
|
+
segment = boundary.completedSegments;
|
|
3646
|
+
if (1 !== segment.length) throw Error(formatProdErrorMessage(391));
|
|
3647
|
+
flushSegment(request, destination, segment[0], hoistableState);
|
|
3648
|
+
}
|
|
3649
|
+
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
|
3650
|
+
}
|
|
3651
|
+
function flushSegmentContainer(request, destination, segment, hoistableState) {
|
|
3652
|
+
writeStartSegment(destination, request.renderState, segment.parentFormatContext, segment.id);
|
|
3653
|
+
flushSegment(request, destination, segment, hoistableState);
|
|
3654
|
+
return writeEndSegment(destination, segment.parentFormatContext);
|
|
3655
|
+
}
|
|
3656
|
+
function flushCompletedBoundary(request, destination, boundary) {
|
|
3657
|
+
flushedByteSize = boundary.byteSize;
|
|
3658
|
+
for (var completedSegments = boundary.completedSegments, i = 0; i < completedSegments.length; i++) flushPartiallyCompletedSegment(request, destination, boundary, completedSegments[i]);
|
|
3659
|
+
completedSegments.length = 0;
|
|
3660
|
+
completedSegments = boundary.row;
|
|
3661
|
+
null !== completedSegments && isEligibleForOutlining(request, boundary) && 0 === --completedSegments.pendingTasks && finishSuspenseListRow(request, completedSegments);
|
|
3662
|
+
writeHoistablesForBoundary(destination, boundary.contentState, request.renderState);
|
|
3663
|
+
completedSegments = request.resumableState;
|
|
3664
|
+
request = request.renderState;
|
|
3665
|
+
i = boundary.rootSegmentID;
|
|
3666
|
+
boundary = boundary.contentState;
|
|
3667
|
+
var requiresStyleInsertion = request.stylesToHoist;
|
|
3668
|
+
request.stylesToHoist = !1;
|
|
3669
|
+
writeChunk(destination, request.startInlineScript);
|
|
3670
|
+
writeChunk(destination, endOfStartTag);
|
|
3671
|
+
requiresStyleInsertion ? (0 === (completedSegments.instructions & 4) && (completedSegments.instructions |= 4, writeChunk(destination, clientRenderScriptFunctionOnly)), 0 === (completedSegments.instructions & 2) && (completedSegments.instructions |= 2, writeChunk(destination, completeBoundaryScriptFunctionOnly)), 0 === (completedSegments.instructions & 8) ? (completedSegments.instructions |= 8, writeChunk(destination, completeBoundaryWithStylesScript1FullPartial)) : writeChunk(destination, completeBoundaryWithStylesScript1Partial)) : (0 === (completedSegments.instructions & 2) && (completedSegments.instructions |= 2, writeChunk(destination, completeBoundaryScriptFunctionOnly)), writeChunk(destination, completeBoundaryScript1Partial));
|
|
3672
|
+
completedSegments = stringToChunk(i.toString(16));
|
|
3673
|
+
writeChunk(destination, request.boundaryPrefix);
|
|
3674
|
+
writeChunk(destination, completedSegments);
|
|
3675
|
+
writeChunk(destination, completeBoundaryScript2);
|
|
3676
|
+
writeChunk(destination, request.segmentPrefix);
|
|
3677
|
+
writeChunk(destination, completedSegments);
|
|
3678
|
+
requiresStyleInsertion ? (writeChunk(destination, completeBoundaryScript3a), writeStyleResourceDependenciesInJS(destination, boundary)) : writeChunk(destination, completeBoundaryScript3b);
|
|
3679
|
+
boundary = writeChunkAndReturn(destination, completeBoundaryScriptEnd);
|
|
3680
|
+
return writeBootstrap(destination, request) && boundary;
|
|
3681
|
+
}
|
|
3682
|
+
function flushPartiallyCompletedSegment(request, destination, boundary, segment) {
|
|
3683
|
+
if (2 === segment.status) return !0;
|
|
3684
|
+
var hoistableState = boundary.contentState, segmentID = segment.id;
|
|
3685
|
+
if (-1 === segmentID) {
|
|
3686
|
+
if (-1 === (segment.id = boundary.rootSegmentID)) throw Error(formatProdErrorMessage(392));
|
|
3687
|
+
return flushSegmentContainer(request, destination, segment, hoistableState);
|
|
3688
|
+
}
|
|
3689
|
+
if (segmentID === boundary.rootSegmentID) return flushSegmentContainer(request, destination, segment, hoistableState);
|
|
3690
|
+
flushSegmentContainer(request, destination, segment, hoistableState);
|
|
3691
|
+
boundary = request.resumableState;
|
|
3692
|
+
request = request.renderState;
|
|
3693
|
+
writeChunk(destination, request.startInlineScript);
|
|
3694
|
+
writeChunk(destination, endOfStartTag);
|
|
3695
|
+
0 === (boundary.instructions & 1) ? (boundary.instructions |= 1, writeChunk(destination, completeSegmentScript1Full)) : writeChunk(destination, completeSegmentScript1Partial);
|
|
3696
|
+
writeChunk(destination, request.segmentPrefix);
|
|
3697
|
+
segmentID = stringToChunk(segmentID.toString(16));
|
|
3698
|
+
writeChunk(destination, segmentID);
|
|
3699
|
+
writeChunk(destination, completeSegmentScript2);
|
|
3700
|
+
writeChunk(destination, request.placeholderPrefix);
|
|
3701
|
+
writeChunk(destination, segmentID);
|
|
3702
|
+
destination = writeChunkAndReturn(destination, completeSegmentScriptEnd);
|
|
3703
|
+
return destination;
|
|
3704
|
+
}
|
|
3705
|
+
var flushingPartialBoundaries = !1;
|
|
3706
|
+
function flushCompletedQueues(request, destination) {
|
|
3707
|
+
currentView = new Uint8Array(2048);
|
|
3708
|
+
writtenBytes = 0;
|
|
3709
|
+
try {
|
|
3710
|
+
if (!(0 < request.pendingRootTasks)) {
|
|
3711
|
+
var i, completedRootSegment = request.completedRootSegment;
|
|
3712
|
+
if (null !== completedRootSegment) {
|
|
3713
|
+
if (5 === completedRootSegment.status) return;
|
|
3714
|
+
var completedPreambleSegments = request.completedPreambleSegments;
|
|
3715
|
+
if (null === completedPreambleSegments) return;
|
|
3716
|
+
flushedByteSize = request.byteSize;
|
|
3717
|
+
var resumableState = request.resumableState, renderState = request.renderState, preamble = renderState.preamble, htmlChunks = preamble.htmlChunks, headChunks = preamble.headChunks, i$jscomp$0;
|
|
3718
|
+
if (htmlChunks) {
|
|
3719
|
+
for (i$jscomp$0 = 0; i$jscomp$0 < htmlChunks.length; i$jscomp$0++) writeChunk(destination, htmlChunks[i$jscomp$0]);
|
|
3720
|
+
if (headChunks) for (i$jscomp$0 = 0; i$jscomp$0 < headChunks.length; i$jscomp$0++) writeChunk(destination, headChunks[i$jscomp$0]);
|
|
3721
|
+
else writeChunk(destination, startChunkForTag("head")), writeChunk(destination, endOfStartTag);
|
|
3722
|
+
} else if (headChunks) for (i$jscomp$0 = 0; i$jscomp$0 < headChunks.length; i$jscomp$0++) writeChunk(destination, headChunks[i$jscomp$0]);
|
|
3723
|
+
var charsetChunks = renderState.charsetChunks;
|
|
3724
|
+
for (i$jscomp$0 = 0; i$jscomp$0 < charsetChunks.length; i$jscomp$0++) writeChunk(destination, charsetChunks[i$jscomp$0]);
|
|
3725
|
+
charsetChunks.length = 0;
|
|
3726
|
+
renderState.preconnects.forEach(flushResource, destination);
|
|
3727
|
+
renderState.preconnects.clear();
|
|
3728
|
+
var viewportChunks = renderState.viewportChunks;
|
|
3729
|
+
for (i$jscomp$0 = 0; i$jscomp$0 < viewportChunks.length; i$jscomp$0++) writeChunk(destination, viewportChunks[i$jscomp$0]);
|
|
3730
|
+
viewportChunks.length = 0;
|
|
3731
|
+
renderState.fontPreloads.forEach(flushResource, destination);
|
|
3732
|
+
renderState.fontPreloads.clear();
|
|
3733
|
+
renderState.highImagePreloads.forEach(flushResource, destination);
|
|
3734
|
+
renderState.highImagePreloads.clear();
|
|
3735
|
+
currentlyFlushingRenderState = renderState;
|
|
3736
|
+
renderState.styles.forEach(flushStylesInPreamble, destination);
|
|
3737
|
+
currentlyFlushingRenderState = null;
|
|
3738
|
+
var importMapChunks = renderState.importMapChunks;
|
|
3739
|
+
for (i$jscomp$0 = 0; i$jscomp$0 < importMapChunks.length; i$jscomp$0++) writeChunk(destination, importMapChunks[i$jscomp$0]);
|
|
3740
|
+
importMapChunks.length = 0;
|
|
3741
|
+
renderState.bootstrapScripts.forEach(flushResource, destination);
|
|
3742
|
+
renderState.scripts.forEach(flushResource, destination);
|
|
3743
|
+
renderState.scripts.clear();
|
|
3744
|
+
renderState.bulkPreloads.forEach(flushResource, destination);
|
|
3745
|
+
renderState.bulkPreloads.clear();
|
|
3746
|
+
htmlChunks || headChunks || (resumableState.instructions |= 32);
|
|
3747
|
+
var hoistableChunks = renderState.hoistableChunks;
|
|
3748
|
+
for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++) writeChunk(destination, hoistableChunks[i$jscomp$0]);
|
|
3749
|
+
for (resumableState = hoistableChunks.length = 0; resumableState < completedPreambleSegments.length; resumableState++) {
|
|
3750
|
+
var segments = completedPreambleSegments[resumableState];
|
|
3751
|
+
for (renderState = 0; renderState < segments.length; renderState++) flushSegment(request, destination, segments[renderState], null);
|
|
3752
|
+
}
|
|
3753
|
+
var preamble$jscomp$0 = request.renderState.preamble, headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
|
3754
|
+
(preamble$jscomp$0.htmlChunks || headChunks$jscomp$0) && writeChunk(destination, endChunkForTag("head"));
|
|
3755
|
+
var bodyChunks = preamble$jscomp$0.bodyChunks;
|
|
3756
|
+
if (bodyChunks) for (completedPreambleSegments = 0; completedPreambleSegments < bodyChunks.length; completedPreambleSegments++) writeChunk(destination, bodyChunks[completedPreambleSegments]);
|
|
3757
|
+
flushSegment(request, destination, completedRootSegment, null);
|
|
3758
|
+
request.completedRootSegment = null;
|
|
3759
|
+
var renderState$jscomp$0 = request.renderState;
|
|
3760
|
+
if (0 !== request.allPendingTasks || 0 !== request.clientRenderedBoundaries.length || 0 !== request.completedBoundaries.length || null !== request.trackedPostpones && (0 !== request.trackedPostpones.rootNodes.length || null !== request.trackedPostpones.rootSlots)) {
|
|
3761
|
+
var resumableState$jscomp$0 = request.resumableState;
|
|
3762
|
+
if (0 === (resumableState$jscomp$0.instructions & 64)) {
|
|
3763
|
+
resumableState$jscomp$0.instructions |= 64;
|
|
3764
|
+
writeChunk(destination, renderState$jscomp$0.startInlineScript);
|
|
3765
|
+
if (0 === (resumableState$jscomp$0.instructions & 32)) {
|
|
3766
|
+
resumableState$jscomp$0.instructions |= 32;
|
|
3767
|
+
var shellId = "_" + resumableState$jscomp$0.idPrefix + "R_";
|
|
3768
|
+
writeChunk(destination, completedShellIdAttributeStart);
|
|
3769
|
+
writeChunk(destination, stringToChunk(escapeTextForBrowser(shellId)));
|
|
3770
|
+
writeChunk(destination, attributeEnd);
|
|
3771
|
+
}
|
|
3772
|
+
writeChunk(destination, endOfStartTag);
|
|
3773
|
+
writeChunk(destination, shellTimeRuntimeScript);
|
|
3774
|
+
writeChunkAndReturn(destination, endInlineScript);
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
writeBootstrap(destination, renderState$jscomp$0);
|
|
3778
|
+
}
|
|
3779
|
+
var renderState$jscomp$1 = request.renderState;
|
|
3780
|
+
completedRootSegment = 0;
|
|
3781
|
+
var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
|
|
3782
|
+
for (completedRootSegment = 0; completedRootSegment < viewportChunks$jscomp$0.length; completedRootSegment++) writeChunk(destination, viewportChunks$jscomp$0[completedRootSegment]);
|
|
3783
|
+
viewportChunks$jscomp$0.length = 0;
|
|
3784
|
+
renderState$jscomp$1.preconnects.forEach(flushResource, destination);
|
|
3785
|
+
renderState$jscomp$1.preconnects.clear();
|
|
3786
|
+
renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
|
|
3787
|
+
renderState$jscomp$1.fontPreloads.clear();
|
|
3788
|
+
renderState$jscomp$1.highImagePreloads.forEach(flushResource, destination);
|
|
3789
|
+
renderState$jscomp$1.highImagePreloads.clear();
|
|
3790
|
+
renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
|
|
3791
|
+
renderState$jscomp$1.scripts.forEach(flushResource, destination);
|
|
3792
|
+
renderState$jscomp$1.scripts.clear();
|
|
3793
|
+
renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
|
|
3794
|
+
renderState$jscomp$1.bulkPreloads.clear();
|
|
3795
|
+
var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
|
|
3796
|
+
for (completedRootSegment = 0; completedRootSegment < hoistableChunks$jscomp$0.length; completedRootSegment++) writeChunk(destination, hoistableChunks$jscomp$0[completedRootSegment]);
|
|
3797
|
+
hoistableChunks$jscomp$0.length = 0;
|
|
3798
|
+
var clientRenderedBoundaries = request.clientRenderedBoundaries;
|
|
3799
|
+
for (i = 0; i < clientRenderedBoundaries.length; i++) {
|
|
3800
|
+
var boundary = clientRenderedBoundaries[i];
|
|
3801
|
+
renderState$jscomp$1 = destination;
|
|
3802
|
+
var resumableState$jscomp$1 = request.resumableState, renderState$jscomp$2 = request.renderState, id = boundary.rootSegmentID, errorDigest = boundary.errorDigest;
|
|
3803
|
+
writeChunk(renderState$jscomp$1, renderState$jscomp$2.startInlineScript);
|
|
3804
|
+
writeChunk(renderState$jscomp$1, endOfStartTag);
|
|
3805
|
+
0 === (resumableState$jscomp$1.instructions & 4) ? (resumableState$jscomp$1.instructions |= 4, writeChunk(renderState$jscomp$1, clientRenderScript1Full)) : writeChunk(renderState$jscomp$1, clientRenderScript1Partial);
|
|
3806
|
+
writeChunk(renderState$jscomp$1, renderState$jscomp$2.boundaryPrefix);
|
|
3807
|
+
writeChunk(renderState$jscomp$1, stringToChunk(id.toString(16)));
|
|
3808
|
+
writeChunk(renderState$jscomp$1, clientRenderScript1A);
|
|
3809
|
+
errorDigest && (writeChunk(renderState$jscomp$1, clientRenderErrorScriptArgInterstitial), writeChunk(renderState$jscomp$1, stringToChunk(escapeJSStringsForInstructionScripts(errorDigest || ""))));
|
|
3810
|
+
var JSCompiler_inline_result = writeChunkAndReturn(renderState$jscomp$1, clientRenderScriptEnd);
|
|
3811
|
+
if (!JSCompiler_inline_result) {
|
|
3812
|
+
request.destination = null;
|
|
3813
|
+
i++;
|
|
3814
|
+
clientRenderedBoundaries.splice(0, i);
|
|
3815
|
+
return;
|
|
3816
|
+
}
|
|
3817
|
+
}
|
|
3818
|
+
clientRenderedBoundaries.splice(0, i);
|
|
3819
|
+
var completedBoundaries = request.completedBoundaries;
|
|
3820
|
+
for (i = 0; i < completedBoundaries.length; i++) if (!flushCompletedBoundary(request, destination, completedBoundaries[i])) {
|
|
3821
|
+
request.destination = null;
|
|
3822
|
+
i++;
|
|
3823
|
+
completedBoundaries.splice(0, i);
|
|
3824
|
+
return;
|
|
3825
|
+
}
|
|
3826
|
+
completedBoundaries.splice(0, i);
|
|
3827
|
+
completeWriting(destination);
|
|
3828
|
+
currentView = new Uint8Array(2048);
|
|
3829
|
+
writtenBytes = 0;
|
|
3830
|
+
flushingPartialBoundaries = !0;
|
|
3831
|
+
var partialBoundaries = request.partialBoundaries;
|
|
3832
|
+
for (i = 0; i < partialBoundaries.length; i++) {
|
|
3833
|
+
var boundary$70 = partialBoundaries[i];
|
|
3834
|
+
a: {
|
|
3835
|
+
clientRenderedBoundaries = request;
|
|
3836
|
+
boundary = destination;
|
|
3837
|
+
flushedByteSize = boundary$70.byteSize;
|
|
3838
|
+
var completedSegments = boundary$70.completedSegments;
|
|
3839
|
+
for (JSCompiler_inline_result = 0; JSCompiler_inline_result < completedSegments.length; JSCompiler_inline_result++) if (!flushPartiallyCompletedSegment(clientRenderedBoundaries, boundary, boundary$70, completedSegments[JSCompiler_inline_result])) {
|
|
3840
|
+
JSCompiler_inline_result++;
|
|
3841
|
+
completedSegments.splice(0, JSCompiler_inline_result);
|
|
3842
|
+
var JSCompiler_inline_result$jscomp$0 = !1;
|
|
3843
|
+
break a;
|
|
3844
|
+
}
|
|
3845
|
+
completedSegments.splice(0, JSCompiler_inline_result);
|
|
3846
|
+
var row = boundary$70.row;
|
|
3847
|
+
null !== row && row.together && 1 === boundary$70.pendingTasks && (1 === row.pendingTasks ? unblockSuspenseListRow(clientRenderedBoundaries, row, row.hoistables) : row.pendingTasks--);
|
|
3848
|
+
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(boundary, boundary$70.contentState, clientRenderedBoundaries.renderState);
|
|
3849
|
+
}
|
|
3850
|
+
if (!JSCompiler_inline_result$jscomp$0) {
|
|
3851
|
+
request.destination = null;
|
|
3852
|
+
i++;
|
|
3853
|
+
partialBoundaries.splice(0, i);
|
|
3854
|
+
return;
|
|
3855
|
+
}
|
|
3856
|
+
}
|
|
3857
|
+
partialBoundaries.splice(0, i);
|
|
3858
|
+
flushingPartialBoundaries = !1;
|
|
3859
|
+
var largeBoundaries = request.completedBoundaries;
|
|
3860
|
+
for (i = 0; i < largeBoundaries.length; i++) if (!flushCompletedBoundary(request, destination, largeBoundaries[i])) {
|
|
3861
|
+
request.destination = null;
|
|
3862
|
+
i++;
|
|
3863
|
+
largeBoundaries.splice(0, i);
|
|
3864
|
+
return;
|
|
3865
|
+
}
|
|
3866
|
+
largeBoundaries.splice(0, i);
|
|
3867
|
+
}
|
|
3868
|
+
} finally {
|
|
3869
|
+
flushingPartialBoundaries = !1, 0 === request.allPendingTasks && 0 === request.clientRenderedBoundaries.length && 0 === request.completedBoundaries.length ? (request.flushScheduled = !1, i = request.resumableState, i.hasBody && writeChunk(destination, endChunkForTag("body")), i.hasHtml && writeChunk(destination, endChunkForTag("html")), completeWriting(destination), request.status = 14, destination.close(), request.destination = null) : completeWriting(destination);
|
|
3870
|
+
}
|
|
3871
|
+
}
|
|
3872
|
+
function startWork(request) {
|
|
3873
|
+
request.flushScheduled = null !== request.destination;
|
|
3874
|
+
scheduleMicrotask(function() {
|
|
3875
|
+
return performWork(request);
|
|
3876
|
+
});
|
|
3877
|
+
scheduleWork(function() {
|
|
3878
|
+
10 === request.status && (request.status = 11);
|
|
3879
|
+
null === request.trackedPostpones && safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
|
|
3880
|
+
});
|
|
3881
|
+
}
|
|
3882
|
+
function enqueueFlush(request) {
|
|
3883
|
+
!1 === request.flushScheduled && 0 === request.pingedTasks.length && null !== request.destination && (request.flushScheduled = !0, scheduleWork(function() {
|
|
3884
|
+
var destination = request.destination;
|
|
3885
|
+
destination ? flushCompletedQueues(request, destination) : request.flushScheduled = !1;
|
|
3886
|
+
}));
|
|
3887
|
+
}
|
|
3888
|
+
function startFlowing(request, destination) {
|
|
3889
|
+
if (13 === request.status) request.status = 14, closeWithError(destination, request.fatalError);
|
|
3890
|
+
else if (14 !== request.status && null === request.destination) {
|
|
3891
|
+
request.destination = destination;
|
|
3892
|
+
try {
|
|
3893
|
+
flushCompletedQueues(request, destination);
|
|
3894
|
+
} catch (error) {
|
|
3895
|
+
logRecoverableError(request, error, {}), fatalError(request, error);
|
|
3896
|
+
}
|
|
3897
|
+
}
|
|
3898
|
+
}
|
|
3899
|
+
function abort(request, reason) {
|
|
3900
|
+
if (11 === request.status || 10 === request.status) request.status = 12;
|
|
3901
|
+
try {
|
|
3902
|
+
var abortableTasks = request.abortableTasks;
|
|
3903
|
+
if (0 < abortableTasks.size) {
|
|
3904
|
+
var error = void 0 === reason ? Error(formatProdErrorMessage(432)) : "object" === typeof reason && null !== reason && "function" === typeof reason.then ? Error(formatProdErrorMessage(530)) : reason;
|
|
3905
|
+
request.fatalError = error;
|
|
3906
|
+
abortableTasks.forEach(function(task) {
|
|
3907
|
+
return abortTask(task, request, error);
|
|
3908
|
+
});
|
|
3909
|
+
abortableTasks.clear();
|
|
3910
|
+
}
|
|
3911
|
+
null !== request.destination && flushCompletedQueues(request, request.destination);
|
|
3912
|
+
} catch (error$72) {
|
|
3913
|
+
logRecoverableError(request, error$72, {}), fatalError(request, error$72);
|
|
3914
|
+
}
|
|
3915
|
+
}
|
|
3916
|
+
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
3917
|
+
if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
|
|
3918
|
+
else {
|
|
3919
|
+
var workingMap = trackedPostpones.workingMap, parentNode = workingMap.get(parentKeyPath);
|
|
3920
|
+
void 0 === parentNode && (parentNode = [
|
|
3921
|
+
parentKeyPath[1],
|
|
3922
|
+
parentKeyPath[2],
|
|
3923
|
+
[],
|
|
3924
|
+
null
|
|
3925
|
+
], workingMap.set(parentKeyPath, parentNode), addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
|
|
3926
|
+
parentNode[2].push(node);
|
|
3927
|
+
}
|
|
3928
|
+
}
|
|
3929
|
+
function getPostponedState(request) {
|
|
3930
|
+
var trackedPostpones = request.trackedPostpones;
|
|
3931
|
+
if (null === trackedPostpones || 0 === trackedPostpones.rootNodes.length && null === trackedPostpones.rootSlots) return request.trackedPostpones = null;
|
|
3932
|
+
if (null === request.completedRootSegment || 5 !== request.completedRootSegment.status && null !== request.completedPreambleSegments) {
|
|
3933
|
+
var nextSegmentId = request.nextSegmentId;
|
|
3934
|
+
var replaySlots = trackedPostpones.rootSlots;
|
|
3935
|
+
var resumableState = request.resumableState;
|
|
3936
|
+
resumableState.bootstrapScriptContent = void 0;
|
|
3937
|
+
resumableState.bootstrapScripts = void 0;
|
|
3938
|
+
resumableState.bootstrapModules = void 0;
|
|
3939
|
+
} else {
|
|
3940
|
+
nextSegmentId = 0;
|
|
3941
|
+
replaySlots = -1;
|
|
3942
|
+
resumableState = request.resumableState;
|
|
3943
|
+
var renderState = request.renderState;
|
|
3944
|
+
resumableState.nextFormID = 0;
|
|
3945
|
+
resumableState.hasBody = !1;
|
|
3946
|
+
resumableState.hasHtml = !1;
|
|
3947
|
+
resumableState.unknownResources = { font: renderState.resets.font };
|
|
3948
|
+
resumableState.dnsResources = renderState.resets.dns;
|
|
3949
|
+
resumableState.connectResources = renderState.resets.connect;
|
|
3950
|
+
resumableState.imageResources = renderState.resets.image;
|
|
3951
|
+
resumableState.styleResources = renderState.resets.style;
|
|
3952
|
+
resumableState.scriptResources = {};
|
|
3953
|
+
resumableState.moduleUnknownResources = {};
|
|
3954
|
+
resumableState.moduleScriptResources = {};
|
|
3955
|
+
resumableState.instructions = 0;
|
|
3956
|
+
}
|
|
3957
|
+
return {
|
|
3958
|
+
nextSegmentId,
|
|
3959
|
+
rootFormatContext: request.rootFormatContext,
|
|
3960
|
+
progressiveChunkSize: request.progressiveChunkSize,
|
|
3961
|
+
resumableState: request.resumableState,
|
|
3962
|
+
replayNodes: trackedPostpones.rootNodes,
|
|
3963
|
+
replaySlots
|
|
3964
|
+
};
|
|
3965
|
+
}
|
|
3966
|
+
function ensureCorrectIsomorphicReactVersion() {
|
|
3967
|
+
var isomorphicReactPackageVersion = React.version;
|
|
3968
|
+
if ("19.2.4" !== isomorphicReactPackageVersion) throw Error(formatProdErrorMessage(527, isomorphicReactPackageVersion, "19.2.4"));
|
|
3969
|
+
}
|
|
3970
|
+
ensureCorrectIsomorphicReactVersion();
|
|
3971
|
+
ensureCorrectIsomorphicReactVersion();
|
|
3972
|
+
exports.prerender = function(children, options) {
|
|
3973
|
+
return new Promise(function(resolve, reject) {
|
|
3974
|
+
var onHeaders = options ? options.onHeaders : void 0, onHeadersImpl;
|
|
3975
|
+
onHeaders && (onHeadersImpl = function(headersDescriptor) {
|
|
3976
|
+
onHeaders(new Headers(headersDescriptor));
|
|
3977
|
+
});
|
|
3978
|
+
var resources = createResumableState(options ? options.identifierPrefix : void 0, options ? options.unstable_externalRuntimeSrc : void 0, options ? options.bootstrapScriptContent : void 0, options ? options.bootstrapScripts : void 0, options ? options.bootstrapModules : void 0), request = createPrerenderRequest(children, resources, createRenderState(resources, void 0, options ? options.unstable_externalRuntimeSrc : void 0, options ? options.importMap : void 0, onHeadersImpl, options ? options.maxHeadersLength : void 0), createRootFormatContext(options ? options.namespaceURI : void 0), options ? options.progressiveChunkSize : void 0, options ? options.onError : void 0, function() {
|
|
3979
|
+
var stream = new ReadableStream({
|
|
3980
|
+
type: "bytes",
|
|
3981
|
+
pull: function(controller) {
|
|
3982
|
+
startFlowing(request, controller);
|
|
3983
|
+
},
|
|
3984
|
+
cancel: function(reason) {
|
|
3985
|
+
request.destination = null;
|
|
3986
|
+
abort(request, reason);
|
|
3987
|
+
}
|
|
3988
|
+
}, { highWaterMark: 0 });
|
|
3989
|
+
stream = {
|
|
3990
|
+
postponed: getPostponedState(request),
|
|
3991
|
+
prelude: stream
|
|
3992
|
+
};
|
|
3993
|
+
resolve(stream);
|
|
3994
|
+
}, void 0, void 0, reject, options ? options.onPostpone : void 0);
|
|
3995
|
+
if (options && options.signal) {
|
|
3996
|
+
var signal = options.signal;
|
|
3997
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
3998
|
+
else {
|
|
3999
|
+
var listener = function() {
|
|
4000
|
+
abort(request, signal.reason);
|
|
4001
|
+
signal.removeEventListener("abort", listener);
|
|
4002
|
+
};
|
|
4003
|
+
signal.addEventListener("abort", listener);
|
|
4004
|
+
}
|
|
4005
|
+
}
|
|
4006
|
+
startWork(request);
|
|
4007
|
+
});
|
|
4008
|
+
};
|
|
4009
|
+
exports.renderToReadableStream = function(children, options) {
|
|
4010
|
+
return new Promise(function(resolve, reject) {
|
|
4011
|
+
var onFatalError, onAllReady, allReady = new Promise(function(res, rej) {
|
|
4012
|
+
onAllReady = res;
|
|
4013
|
+
onFatalError = rej;
|
|
4014
|
+
}), onHeaders = options ? options.onHeaders : void 0, onHeadersImpl;
|
|
4015
|
+
onHeaders && (onHeadersImpl = function(headersDescriptor) {
|
|
4016
|
+
onHeaders(new Headers(headersDescriptor));
|
|
4017
|
+
});
|
|
4018
|
+
var resumableState = createResumableState(options ? options.identifierPrefix : void 0, options ? options.unstable_externalRuntimeSrc : void 0, options ? options.bootstrapScriptContent : void 0, options ? options.bootstrapScripts : void 0, options ? options.bootstrapModules : void 0), request = createRequest(children, resumableState, createRenderState(resumableState, options ? options.nonce : void 0, options ? options.unstable_externalRuntimeSrc : void 0, options ? options.importMap : void 0, onHeadersImpl, options ? options.maxHeadersLength : void 0), createRootFormatContext(options ? options.namespaceURI : void 0), options ? options.progressiveChunkSize : void 0, options ? options.onError : void 0, onAllReady, function() {
|
|
4019
|
+
var stream = new ReadableStream({
|
|
4020
|
+
type: "bytes",
|
|
4021
|
+
pull: function(controller) {
|
|
4022
|
+
startFlowing(request, controller);
|
|
4023
|
+
},
|
|
4024
|
+
cancel: function(reason) {
|
|
4025
|
+
request.destination = null;
|
|
4026
|
+
abort(request, reason);
|
|
4027
|
+
}
|
|
4028
|
+
}, { highWaterMark: 0 });
|
|
4029
|
+
stream.allReady = allReady;
|
|
4030
|
+
resolve(stream);
|
|
4031
|
+
}, function(error) {
|
|
4032
|
+
allReady.catch(function() {});
|
|
4033
|
+
reject(error);
|
|
4034
|
+
}, onFatalError, options ? options.onPostpone : void 0, options ? options.formState : void 0);
|
|
4035
|
+
if (options && options.signal) {
|
|
4036
|
+
var signal = options.signal;
|
|
4037
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
4038
|
+
else {
|
|
4039
|
+
var listener = function() {
|
|
4040
|
+
abort(request, signal.reason);
|
|
4041
|
+
signal.removeEventListener("abort", listener);
|
|
4042
|
+
};
|
|
4043
|
+
signal.addEventListener("abort", listener);
|
|
4044
|
+
}
|
|
4045
|
+
}
|
|
4046
|
+
startWork(request);
|
|
4047
|
+
});
|
|
4048
|
+
};
|
|
4049
|
+
exports.resume = function(children, postponedState, options) {
|
|
4050
|
+
return new Promise(function(resolve, reject) {
|
|
4051
|
+
var onFatalError, onAllReady, allReady = new Promise(function(res, rej) {
|
|
4052
|
+
onAllReady = res;
|
|
4053
|
+
onFatalError = rej;
|
|
4054
|
+
}), request = resumeRequest(children, postponedState, createRenderState(postponedState.resumableState, options ? options.nonce : void 0, void 0, void 0, void 0, void 0), options ? options.onError : void 0, onAllReady, function() {
|
|
4055
|
+
var stream = new ReadableStream({
|
|
4056
|
+
type: "bytes",
|
|
4057
|
+
pull: function(controller) {
|
|
4058
|
+
startFlowing(request, controller);
|
|
4059
|
+
},
|
|
4060
|
+
cancel: function(reason) {
|
|
4061
|
+
request.destination = null;
|
|
4062
|
+
abort(request, reason);
|
|
4063
|
+
}
|
|
4064
|
+
}, { highWaterMark: 0 });
|
|
4065
|
+
stream.allReady = allReady;
|
|
4066
|
+
resolve(stream);
|
|
4067
|
+
}, function(error) {
|
|
4068
|
+
allReady.catch(function() {});
|
|
4069
|
+
reject(error);
|
|
4070
|
+
}, onFatalError, options ? options.onPostpone : void 0);
|
|
4071
|
+
if (options && options.signal) {
|
|
4072
|
+
var signal = options.signal;
|
|
4073
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
4074
|
+
else {
|
|
4075
|
+
var listener = function() {
|
|
4076
|
+
abort(request, signal.reason);
|
|
4077
|
+
signal.removeEventListener("abort", listener);
|
|
4078
|
+
};
|
|
4079
|
+
signal.addEventListener("abort", listener);
|
|
4080
|
+
}
|
|
4081
|
+
}
|
|
4082
|
+
startWork(request);
|
|
4083
|
+
});
|
|
4084
|
+
};
|
|
4085
|
+
exports.resumeAndPrerender = function(children, postponedState, options) {
|
|
4086
|
+
return new Promise(function(resolve, reject) {
|
|
4087
|
+
var request = resumeAndPrerenderRequest(children, postponedState, createRenderState(postponedState.resumableState, void 0, void 0, void 0, void 0, void 0), options ? options.onError : void 0, function() {
|
|
4088
|
+
var stream = new ReadableStream({
|
|
4089
|
+
type: "bytes",
|
|
4090
|
+
pull: function(controller) {
|
|
4091
|
+
startFlowing(request, controller);
|
|
4092
|
+
},
|
|
4093
|
+
cancel: function(reason) {
|
|
4094
|
+
request.destination = null;
|
|
4095
|
+
abort(request, reason);
|
|
4096
|
+
}
|
|
4097
|
+
}, { highWaterMark: 0 });
|
|
4098
|
+
stream = {
|
|
4099
|
+
postponed: getPostponedState(request),
|
|
4100
|
+
prelude: stream
|
|
4101
|
+
};
|
|
4102
|
+
resolve(stream);
|
|
4103
|
+
}, void 0, void 0, reject, options ? options.onPostpone : void 0);
|
|
4104
|
+
if (options && options.signal) {
|
|
4105
|
+
var signal = options.signal;
|
|
4106
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
4107
|
+
else {
|
|
4108
|
+
var listener = function() {
|
|
4109
|
+
abort(request, signal.reason);
|
|
4110
|
+
signal.removeEventListener("abort", listener);
|
|
4111
|
+
};
|
|
4112
|
+
signal.addEventListener("abort", listener);
|
|
4113
|
+
}
|
|
4114
|
+
}
|
|
4115
|
+
startWork(request);
|
|
4116
|
+
});
|
|
4117
|
+
};
|
|
4118
|
+
exports.version = "19.2.4";
|
|
4119
|
+
}));
|
|
4120
|
+
export default require_react_dom_server_browser_production();
|
|
4121
|
+
export { require_react_dom_server_browser_production };
|