react-server-dom-webpack 18.3.0-next-cf3932be5-20221027 → 18.3.0-next-2ac77aab9-20221029
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/cjs/react-server-dom-webpack-server.browser.development.js +44 -9
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +44 -43
- package/cjs/react-server-dom-webpack-server.node.development.js +44 -9
- package/cjs/react-server-dom-webpack-server.node.production.min.js +45 -44
- package/package.json +3 -3
- package/umd/react-server-dom-webpack-server.browser.development.js +44 -9
- package/umd/react-server-dom-webpack-server.browser.production.min.js +38 -38
@@ -847,6 +847,9 @@ function readContext(context) {
|
|
847
847
|
// changes to one module should be reflected in the others.
|
848
848
|
// TODO: Rename this module and the corresponding Fiber one to "Thenable"
|
849
849
|
// instead of "Wakeable". Or some other more appropriate name.
|
850
|
+
// An error that is thrown (e.g. by `use`) to trigger Suspense. If we
|
851
|
+
// detect this is caught by userspace, we'll log a warning in development.
|
852
|
+
var SuspenseException = new Error("Suspense Exception: This is not a real error! It's an implementation " + 'detail of `use` to interrupt the current render. You must either ' + 'rethrow it immediately, or move the `use` call outside of the ' + '`try/catch` block. Capturing without rethrowing will lead to ' + 'unexpected behavior.\n\n' + 'To handle async errors, wrap your component in an error boundary, or ' + "call the promise's `.catch` method and pass the result to `use`");
|
850
853
|
function createThenableState() {
|
851
854
|
// The ThenableState is created the first time a component suspends. If it
|
852
855
|
// suspends again, we'll reuse the same state.
|
@@ -909,17 +912,35 @@ function trackUsedThenable(thenableState, thenable, index) {
|
|
909
912
|
}
|
910
913
|
});
|
911
914
|
} // Suspend.
|
912
|
-
//
|
913
|
-
//
|
914
|
-
//
|
915
|
-
// actual thenable. If it doesn't
|
916
|
-
// a warning, because that means
|
917
|
-
// caught it.
|
915
|
+
//
|
916
|
+
// Throwing here is an implementation detail that allows us to unwind the
|
917
|
+
// call stack. But we shouldn't allow it to leak into userspace. Throw an
|
918
|
+
// opaque placeholder value instead of the actual thenable. If it doesn't
|
919
|
+
// get captured by the work loop, log a warning, because that means
|
920
|
+
// something in userspace must have caught it.
|
918
921
|
|
919
922
|
|
920
|
-
|
923
|
+
suspendedThenable = thenable;
|
924
|
+
throw SuspenseException;
|
921
925
|
}
|
922
926
|
}
|
927
|
+
} // This is used to track the actual thenable that suspended so it can be
|
928
|
+
// passed to the rest of the Suspense implementation — which, for historical
|
929
|
+
// reasons, expects to receive a thenable.
|
930
|
+
|
931
|
+
var suspendedThenable = null;
|
932
|
+
function getSuspendedThenable() {
|
933
|
+
// This is called right after `use` suspends by throwing an exception. `use`
|
934
|
+
// throws an opaque value instead of the thenable itself so that it can't be
|
935
|
+
// caught in userspace. Then the work loop accesses the actual thenable using
|
936
|
+
// this function.
|
937
|
+
if (suspendedThenable === null) {
|
938
|
+
throw new Error('Expected a suspended thenable. This is a bug in React. Please file ' + 'an issue.');
|
939
|
+
}
|
940
|
+
|
941
|
+
var thenable = suspendedThenable;
|
942
|
+
suspendedThenable = null;
|
943
|
+
return thenable;
|
923
944
|
}
|
924
945
|
|
925
946
|
var currentRequest = null;
|
@@ -1793,7 +1814,14 @@ function resolveModelToJSON(request, parent, key, value) {
|
|
1793
1814
|
break;
|
1794
1815
|
}
|
1795
1816
|
}
|
1796
|
-
} catch (
|
1817
|
+
} catch (thrownValue) {
|
1818
|
+
var x = thrownValue === SuspenseException ? // This is a special type of exception used for Suspense. For historical
|
1819
|
+
// reasons, the rest of the Suspense implementation expects the thrown
|
1820
|
+
// value to be a thenable, because before `use` existed that was the
|
1821
|
+
// (unstable) API for suspending. This implementation detail can change
|
1822
|
+
// later, once we deprecate the old API in favor of `use`.
|
1823
|
+
getSuspendedThenable() : thrownValue; // $FlowFixMe[method-unbinding]
|
1824
|
+
|
1797
1825
|
if (typeof x === 'object' && x !== null && typeof x.then === 'function') {
|
1798
1826
|
// Something suspended, we'll need to create a new task and resolve it later.
|
1799
1827
|
request.pendingChunks++;
|
@@ -2039,7 +2067,14 @@ function retryTask(request, task) {
|
|
2039
2067
|
request.completedJSONChunks.push(processedChunk);
|
2040
2068
|
request.abortableTasks.delete(task);
|
2041
2069
|
task.status = COMPLETED;
|
2042
|
-
} catch (
|
2070
|
+
} catch (thrownValue) {
|
2071
|
+
var x = thrownValue === SuspenseException ? // This is a special type of exception used for Suspense. For historical
|
2072
|
+
// reasons, the rest of the Suspense implementation expects the thrown
|
2073
|
+
// value to be a thenable, because before `use` existed that was the
|
2074
|
+
// (unstable) API for suspending. This implementation detail can change
|
2075
|
+
// later, once we deprecate the old API in favor of `use`.
|
2076
|
+
getSuspendedThenable() : thrownValue; // $FlowFixMe[method-unbinding]
|
2077
|
+
|
2043
2078
|
if (typeof x === 'object' && x !== null && typeof x.then === 'function') {
|
2044
2079
|
// Something suspended again, let's pick it back up later.
|
2045
2080
|
var ping = task.ping;
|
@@ -7,50 +7,51 @@
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';var
|
11
|
-
function r(a){return q.encode(a)}function
|
12
|
-
function
|
13
|
-
[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new
|
14
|
-
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new
|
15
|
-
["cols","rows","size","span"].forEach(function(a){new
|
16
|
-
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(
|
17
|
-
|
18
|
-
new
|
19
|
-
var
|
20
|
-
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},
|
10
|
+
'use strict';var ea=require("react");var e="function"===typeof AsyncLocalStorage,fa=e?new AsyncLocalStorage:null,m=null,n=0;function p(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(m.buffer,0,n)),m=new Uint8Array(512),n=0),a.enqueue(b);else{var d=m.length-n;d<b.length&&(0===d?a.enqueue(m):(m.set(b.subarray(0,d),n),a.enqueue(m),b=b.subarray(d)),m=new Uint8Array(512),n=0);m.set(b,n);n+=b.length}return!0}var q=new TextEncoder;
|
11
|
+
function r(a){return q.encode(a)}function ha(a,b){"function"===typeof a.error?a.error(b):a.close()}var t=JSON.stringify,u=Symbol.for("react.module.reference"),v=Symbol.for("react.element"),ia=Symbol.for("react.fragment"),ja=Symbol.for("react.provider"),ka=Symbol.for("react.server_context"),la=Symbol.for("react.forward_ref"),ma=Symbol.for("react.suspense"),na=Symbol.for("react.suspense_list"),oa=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel");
|
12
|
+
function x(a,b,d,c,f,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=f;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new x(a,0,!1,a,null,!1,!1)});
|
13
|
+
[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new x(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new x(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new x(a,2,!1,a,null,!1,!1)});
|
14
|
+
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new x(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new x(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new x(a,4,!1,a,null,!1,!1)});
|
15
|
+
["cols","rows","size","span"].forEach(function(a){new x(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new x(a,5,!1,a.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function A(a){return a[1].toUpperCase()}
|
16
|
+
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(z,
|
17
|
+
A);new x(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(z,A);new x(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(z,A);new x(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new x(a,1,!1,a.toLowerCase(),null,!1,!1)});
|
18
|
+
new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){new x(a,1,!1,a.toLowerCase(),null,!0,!0)});
|
19
|
+
var B={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,
|
20
|
+
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ra=["Webkit","ms","Moz","O"];Object.keys(B).forEach(function(a){ra.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);B[b]=B[a]})});var sa=Array.isArray;r("<script>");r("\x3c/script>");r('<script src="');r('<script type="module" src="');r('" integrity="');r('" async="">\x3c/script>');r("\x3c!-- --\x3e");r(' style="');r(":");r(";");r(" ");r('="');r('"');
|
21
21
|
r('=""');r(">");r("/>");r(' selected=""');r("\n");r("<!DOCTYPE html>");r("</");r(">");r('<template id="');r('"></template>');r("\x3c!--$--\x3e");r('\x3c!--$?--\x3e<template id="');r('"></template>');r("\x3c!--$!--\x3e");r("\x3c!--/$--\x3e");r("<template");r('"');r(' data-dgst="');r(' data-msg="');r(' data-stck="');r("></template>");r('<div hidden id="');r('">');r("</div>");r('<svg aria-hidden="true" style="display:none" id="');r('">');r("</svg>");r('<math aria-hidden="true" style="display:none" id="');
|
22
22
|
r('">');r("</math>");r('<table hidden id="');r('">');r("</table>");r('<table hidden><tbody id="');r('">');r("</tbody></table>");r('<table hidden><tr id="');r('">');r("</tr></table>");r('<table hidden><colgroup id="');r('">');r("</colgroup></table>");r('$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("');r('$RS("');r('","');r('")\x3c/script>');r('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RC("');
|
23
23
|
r('$RC("');r('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("');
|
24
24
|
r('$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("');
|
25
|
-
r('$RR("');r('","');r('",');r('"');r(")\x3c/script>");r('$RX=function(b,c,d,e){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),b._reactRetry&&b._reactRetry())};;$RX("');r('$RX("');r('"');r(")\x3c/script>");r(",");r('<style data-precedence="');r('"></style>');r("[");r(",[");r(",");r("]");var
|
26
|
-
function
|
27
|
-
function
|
28
|
-
function
|
29
|
-
function
|
30
|
-
|
31
|
-
function
|
32
|
-
function
|
33
|
-
|
34
|
-
function
|
35
|
-
|
36
|
-
function
|
37
|
-
function
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
function
|
43
|
-
|
44
|
-
|
45
|
-
c)return
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
function
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
function
|
55
|
-
|
56
|
-
a)
|
25
|
+
r('$RR("');r('","');r('",');r('"');r(")\x3c/script>");r('$RX=function(b,c,d,e){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),b._reactRetry&&b._reactRetry())};;$RX("');r('$RX("');r('"');r(")\x3c/script>");r(",");r('<style data-precedence="');r('"></style>');r("[");r(",[");r(",");r("]");var C=null;
|
26
|
+
function D(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");D(a,d);b.context._currentValue=b.value}}}function ta(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&ta(a)}
|
27
|
+
function ua(a){var b=a.parent;null!==b&&ua(b);a.context._currentValue=a.value}function va(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?D(a,b):va(a,b)}
|
28
|
+
function wa(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?D(a,d):wa(a,d);b.context._currentValue=b.value}function G(a){var b=C;b!==a&&(null===b?ua(a):null===a?ta(b):b.depth===a.depth?D(b,a):b.depth>a.depth?va(b,a):wa(b,a),C=a)}function xa(a,b){var d=a._currentValue;a._currentValue=b;var c=C;return C=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var H=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");
|
29
|
+
function ya(){}function za(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(ya,ya),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:throw"string"!==typeof b.status&&(a=b,a.status="pending",a.then(function(a){if("pending"===b.status){var c=b;c.status="fulfilled";c.value=a}},function(a){if("pending"===b.status){var c=b;c.status="rejected";c.reason=a}})),I=b,H;}}var I=null;
|
30
|
+
function Aa(){if(null===I)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=I;I=null;return a}var J=null,K=0,L=null;function Ba(){var a=L;L=null;return a}function Ca(a){return a._currentValue}
|
31
|
+
var Ha={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:M,useTransition:M,readContext:Ca,useContext:Ca,useReducer:M,useRef:M,useState:M,useInsertionEffect:M,useLayoutEffect:M,useImperativeHandle:M,useEffect:M,useId:Da,useMutableSource:M,useSyncExternalStore:M,useCacheRefresh:function(){return Fa},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=qa;return b},use:Ga};
|
32
|
+
function M(){throw Error("This Hook is not supported in Server Components.");}function Fa(){throw Error("Refreshing the cache is not supported in Server Components.");}function Da(){if(null===J)throw Error("useId can only be used while React is rendering");var a=J.identifierCount++;return":"+J.identifierPrefix+"S"+a.toString(32)+":"}
|
33
|
+
function Ga(a){if(null!==a&&"object"===typeof a){if("function"===typeof a.then){var b=K;K+=1;null===L&&(L=[]);return za(L,a,b)}if(a.$$typeof===ka)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function N(){return(new AbortController).signal}function Ia(){if(O)return O;if(e){var a=fa.getStore();if(a)return a}return new Map}
|
34
|
+
var Ja={getCacheSignal:function(){var a=Ia(),b=a.get(N);void 0===b&&(b=N(),a.set(N,b));return b},getCacheForType:function(a){var b=Ia(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},O=null,P=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Q=P.ContextRegistry,R=P.ReactCurrentDispatcher,S=P.ReactCurrentCache;function Ka(a){console.error(a)}
|
35
|
+
function La(a,b,d,c,f){if(null!==S.current&&S.current!==Ja)throw Error("Currently React only supports one RSC renderer at a time.");S.current=Ja;var g=new Set,h=[],k={status:0,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,abortableTasks:g,pingedTasks:h,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,writtenProviders:new Map,identifierPrefix:f||"",identifierCount:1,onError:void 0===
|
36
|
+
d?Ka:d,toJSON:function(a,b){return Ma(k,this,a,b)}};k.pendingChunks++;b=Na(c);a=Oa(k,a,b,g);h.push(a);return k}var Pa={};function Qa(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
37
|
+
function Ra(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:w,_payload:a,_init:Qa}}
|
38
|
+
function T(a,b,d,c,f){if(null!==d&&void 0!==d)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof a){if(a.$$typeof===u)return[v,a,b,c];K=0;L=f;c=a(c);return"object"===typeof c&&null!==c&&"function"===typeof c.then?Ra(c):c}if("string"===typeof a)return[v,a,b,c];if("symbol"===typeof a)return a===ia?c.children:[v,a,b,c];if(null!=a&&"object"===typeof a){if(a.$$typeof===u)return[v,a,b,c];switch(a.$$typeof){case w:var g=a._init;a=g(a._payload);
|
39
|
+
return T(a,b,d,c,f);case la:return b=a.render,K=0,L=f,b(c,void 0);case oa:return T(a.type,b,d,c,f);case ja:return xa(a._context,c.value),[v,a,b,{value:c.value,children:c.children,__pop:Pa}]}}throw Error("Unsupported Server Component type: "+U(a));}function Oa(a,b,d,c){var f={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){var b=a.pingedTasks;b.push(f);1===b.length&&V(a)},thenableState:null};c.add(f);return f}
|
40
|
+
function Sa(a,b,d,c){var f=c.filepath+"#"+c.name+(c.async?"#async":""),g=a.writtenModules,h=g.get(f);if(void 0!==h)return b[0]===v&&"1"===d?"@"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.filepath][c.name];var l=c.async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var y=a.nextChunkId++,aa=t(l),ba="M"+y.toString(16)+":"+aa+"\n";var ca=q.encode(ba);a.completedModuleChunks.push(ca);g.set(f,y);return b[0]===v&&"1"===d?"@"+y.toString(16):"$"+y.toString(16)}catch(da){return a.pendingChunks++,
|
41
|
+
b=a.nextChunkId++,d=W(a,da),X(a,b,d),"$"+b.toString(16)}}function Ta(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,d){return d})}function U(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(sa(a))return"[...]";a=Ta(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
42
|
+
function Y(a){if("string"===typeof a)return a;switch(a){case ma:return"Suspense";case na:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case la:return Y(a.render);case oa:return Y(a.type);case w:var b=a._payload;a=a._init;try{return Y(a(b))}catch(d){}}return""}
|
43
|
+
function Z(a,b){var d=Ta(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(sa(a)){var f="[";for(var g=0;g<a.length;g++){0<g&&(f+=", ");var h=a[g];h="object"===typeof h&&null!==h?Z(h):U(h);""+g===b?(d=f.length,c=h.length,f+=h):f=10>h.length&&40>f.length+h.length?f+h:f+"..."}f+="]"}else if(a.$$typeof===v)f="<"+Y(a.type)+"/>";else{f="{";g=Object.keys(a);for(h=0;h<g.length;h++){0<h&&(f+=", ");var k=g[h],l=JSON.stringify(k);f+=('"'+k+'"'===l?k:l)+": ";l=a[k];l="object"===typeof l&&null!==l?Z(l):
|
44
|
+
U(l);k===b?(d=f.length,c=l.length,f+=l):f=10>l.length&&40>f.length+l.length?f+l:f+"..."}f+="}"}return void 0===b?f:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+f+"\n "+a):"\n "+f}
|
45
|
+
function Ma(a,b,d,c){switch(c){case v:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===v||c.$$typeof===w);)try{switch(c.$$typeof){case v:var f=c;c=T(f.type,f.key,f.ref,f.props,null);break;case w:var g=c._init;c=g(c._payload)}}catch(h){d=h===H?Aa():h;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Oa(a,c,C,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ba(),"@"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=W(a,d);X(a,c,d);return"@"+
|
46
|
+
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===u)return Sa(a,b,d,c);if(c.$$typeof===ja)return f=c._context._globalName,b=a.writtenProviders,c=b.get(d),void 0===c&&(a.pendingChunks++,c=a.nextChunkId++,b.set(f,c),d="P"+c.toString(16)+":"+f+"\n",d=q.encode(d),a.completedJSONChunks.push(d)),"$"+c.toString(16);if(c===Pa){a=C;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=c===pa?a.context._defaultValue:
|
47
|
+
c;C=a.parent;return}return c}if("string"===typeof c)return a="$"===c[0]||"@"===c[0]?"$"+c:c,a;if("boolean"===typeof c||"number"===typeof c||"undefined"===typeof c)return c;if("function"===typeof c){if(c.$$typeof===u)return Sa(a,b,d,c);if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+Z(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error("Functions cannot be passed directly to Client Components because they're not serializable."+
|
48
|
+
Z(b,d));}if("symbol"===typeof c){f=a.writtenSymbols;g=f.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+Z(b,d));a.pendingChunks++;d=a.nextChunkId++;b=t(g);b="S"+d.toString(16)+":"+b+"\n";b=q.encode(b);a.completedModuleChunks.push(b);f.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)throw Error("BigInt ("+
|
49
|
+
c+") is not yet supported in Client Component props."+Z(b,d));throw Error("Type "+typeof c+" is not supported in Client Component props."+Z(b,d));}function W(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}
|
50
|
+
function Ua(a,b){null!==a.destination?(a.status=2,ha(a.destination,b)):(a.status=1,a.fatalError=b)}function X(a,b,d){d={digest:d};b="E"+b.toString(16)+":"+t(d)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}
|
51
|
+
function V(a){var b=R.current,d=O;R.current=Ha;O=a.cache;J=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var f=0;f<c.length;f++){var g=c[f];var h=a;if(0===g.status){G(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===v){var l=k,y=g.thenableState;g.model=k;k=T(l.type,l.key,l.ref,l.props,y);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===v;)l=k,g.model=k,k=T(l.type,l.key,l.ref,l.props,null)}var aa=g.id,ba=t(k,h.toJSON),ca="J"+aa.toString(16)+":"+ba+"\n";
|
52
|
+
var da=q.encode(ca);h.completedJSONChunks.push(da);h.abortableTasks.delete(g);g.status=1}catch(E){var F=E===H?Aa():E;if("object"===typeof F&&null!==F&&"function"===typeof F.then){var Ea=g.ping;F.then(Ea,Ea);g.thenableState=Ba()}else{h.abortableTasks.delete(g);g.status=4;var Xa=W(h,F);X(h,g.id,Xa)}}}}null!==a.destination&&Va(a,a.destination)}catch(E){W(a,E),Ua(a,E)}finally{R.current=b,O=d,J=null}}
|
53
|
+
function Va(a,b){m=new Uint8Array(512);n=0;try{for(var d=a.completedModuleChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!p(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!p(b,f[c])){a.destination=null;c++;break}f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!p(b,g[c])){a.destination=null;c++;break}g.splice(0,c)}finally{m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===
|
54
|
+
a.pendingChunks&&b.close()}function Wa(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=W(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var f=a.nextChunkId++;X(a,f,c);d.forEach(function(b){b.status=3;var c="$"+f.toString(16);b=b.id;c=t(c);c="J"+b.toString(16)+":"+c+"\n";c=q.encode(c);a.completedErrorChunks.push(c)});d.clear()}null!==a.destination&&Va(a,a.destination)}catch(g){W(a,g),Ua(a,g)}}
|
55
|
+
function Na(a){if(a){var b=C;G(null);for(var d=0;d<a.length;d++){var c=a[d],f=c[0];c=c[1];Q[f]||(Q[f]=ea.createServerContext(f,pa));xa(Q[f],c)}a=C;G(b);return a}return null}
|
56
|
+
exports.renderToReadableStream=function(a,b,d){var c=La(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var f=d.signal;if(f.aborted)Wa(c,f.reason);else{var g=function(){Wa(c,f.reason);f.removeEventListener("abort",g)};f.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){e?fa.run(c.cache,V,c):V(c)},pull:function(a){if(1===c.status)c.status=2,ha(a,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=a;try{Va(c,
|
57
|
+
a)}catch(k){W(c,k),Ua(c,k)}}},cancel:function(){}},{highWaterMark:0})};
|
@@ -911,6 +911,9 @@ function readContext(context) {
|
|
911
911
|
// changes to one module should be reflected in the others.
|
912
912
|
// TODO: Rename this module and the corresponding Fiber one to "Thenable"
|
913
913
|
// instead of "Wakeable". Or some other more appropriate name.
|
914
|
+
// An error that is thrown (e.g. by `use`) to trigger Suspense. If we
|
915
|
+
// detect this is caught by userspace, we'll log a warning in development.
|
916
|
+
var SuspenseException = new Error("Suspense Exception: This is not a real error! It's an implementation " + 'detail of `use` to interrupt the current render. You must either ' + 'rethrow it immediately, or move the `use` call outside of the ' + '`try/catch` block. Capturing without rethrowing will lead to ' + 'unexpected behavior.\n\n' + 'To handle async errors, wrap your component in an error boundary, or ' + "call the promise's `.catch` method and pass the result to `use`");
|
914
917
|
function createThenableState() {
|
915
918
|
// The ThenableState is created the first time a component suspends. If it
|
916
919
|
// suspends again, we'll reuse the same state.
|
@@ -973,17 +976,35 @@ function trackUsedThenable(thenableState, thenable, index) {
|
|
973
976
|
}
|
974
977
|
});
|
975
978
|
} // Suspend.
|
976
|
-
//
|
977
|
-
//
|
978
|
-
//
|
979
|
-
// actual thenable. If it doesn't
|
980
|
-
// a warning, because that means
|
981
|
-
// caught it.
|
979
|
+
//
|
980
|
+
// Throwing here is an implementation detail that allows us to unwind the
|
981
|
+
// call stack. But we shouldn't allow it to leak into userspace. Throw an
|
982
|
+
// opaque placeholder value instead of the actual thenable. If it doesn't
|
983
|
+
// get captured by the work loop, log a warning, because that means
|
984
|
+
// something in userspace must have caught it.
|
982
985
|
|
983
986
|
|
984
|
-
|
987
|
+
suspendedThenable = thenable;
|
988
|
+
throw SuspenseException;
|
985
989
|
}
|
986
990
|
}
|
991
|
+
} // This is used to track the actual thenable that suspended so it can be
|
992
|
+
// passed to the rest of the Suspense implementation — which, for historical
|
993
|
+
// reasons, expects to receive a thenable.
|
994
|
+
|
995
|
+
var suspendedThenable = null;
|
996
|
+
function getSuspendedThenable() {
|
997
|
+
// This is called right after `use` suspends by throwing an exception. `use`
|
998
|
+
// throws an opaque value instead of the thenable itself so that it can't be
|
999
|
+
// caught in userspace. Then the work loop accesses the actual thenable using
|
1000
|
+
// this function.
|
1001
|
+
if (suspendedThenable === null) {
|
1002
|
+
throw new Error('Expected a suspended thenable. This is a bug in React. Please file ' + 'an issue.');
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
var thenable = suspendedThenable;
|
1006
|
+
suspendedThenable = null;
|
1007
|
+
return thenable;
|
987
1008
|
}
|
988
1009
|
|
989
1010
|
var currentRequest = null;
|
@@ -1857,7 +1878,14 @@ function resolveModelToJSON(request, parent, key, value) {
|
|
1857
1878
|
break;
|
1858
1879
|
}
|
1859
1880
|
}
|
1860
|
-
} catch (
|
1881
|
+
} catch (thrownValue) {
|
1882
|
+
var x = thrownValue === SuspenseException ? // This is a special type of exception used for Suspense. For historical
|
1883
|
+
// reasons, the rest of the Suspense implementation expects the thrown
|
1884
|
+
// value to be a thenable, because before `use` existed that was the
|
1885
|
+
// (unstable) API for suspending. This implementation detail can change
|
1886
|
+
// later, once we deprecate the old API in favor of `use`.
|
1887
|
+
getSuspendedThenable() : thrownValue; // $FlowFixMe[method-unbinding]
|
1888
|
+
|
1861
1889
|
if (typeof x === 'object' && x !== null && typeof x.then === 'function') {
|
1862
1890
|
// Something suspended, we'll need to create a new task and resolve it later.
|
1863
1891
|
request.pendingChunks++;
|
@@ -2103,7 +2131,14 @@ function retryTask(request, task) {
|
|
2103
2131
|
request.completedJSONChunks.push(processedChunk);
|
2104
2132
|
request.abortableTasks.delete(task);
|
2105
2133
|
task.status = COMPLETED;
|
2106
|
-
} catch (
|
2134
|
+
} catch (thrownValue) {
|
2135
|
+
var x = thrownValue === SuspenseException ? // This is a special type of exception used for Suspense. For historical
|
2136
|
+
// reasons, the rest of the Suspense implementation expects the thrown
|
2137
|
+
// value to be a thenable, because before `use` existed that was the
|
2138
|
+
// (unstable) API for suspending. This implementation detail can change
|
2139
|
+
// later, once we deprecate the old API in favor of `use`.
|
2140
|
+
getSuspendedThenable() : thrownValue; // $FlowFixMe[method-unbinding]
|
2141
|
+
|
2107
2142
|
if (typeof x === 'object' && x !== null && typeof x.then === 'function') {
|
2108
2143
|
// Something suspended again, let's pick it back up later.
|
2109
2144
|
var ping = task.ping;
|
@@ -7,52 +7,53 @@
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';var
|
10
|
+
'use strict';var da=require("util"),ea=require("async_hooks"),fa=require("react");var ha=new ea.AsyncLocalStorage,e=null,m=0,n=!0;function p(a,b){a=a.write(b);n=n&&a}
|
11
11
|
function q(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(p(a,e.subarray(0,m)),e=new Uint8Array(2048),m=0),p(a,r.encode(b));else{var d=e;0<m&&(d=e.subarray(m));d=r.encodeInto(b,d);var c=d.read;m+=d.written;c<b.length&&(p(a,e),e=new Uint8Array(2048),m=r.encodeInto(b.slice(c),e).written);2048===m&&(p(a,e),e=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(p(a,e.subarray(0,m)),e=new Uint8Array(2048),m=0),p(a,b)):(d=e.length-m,d<b.byteLength&&(0===d?p(a,
|
12
|
-
e):(e.set(b.subarray(0,d),m),m+=d,p(a,e),b=b.subarray(d)),e=new Uint8Array(2048),m=0),e.set(b,m),m+=b.byteLength,2048===m&&(p(a,e),e=new Uint8Array(2048),m=0)));return n}var r=new
|
13
|
-
var u=JSON.stringify,
|
14
|
-
function
|
15
|
-
[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new
|
16
|
-
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new
|
17
|
-
["cols","rows","size","span"].forEach(function(a){new
|
18
|
-
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(
|
19
|
-
|
20
|
-
new
|
21
|
-
var
|
22
|
-
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},
|
12
|
+
e):(e.set(b.subarray(0,d),m),m+=d,p(a,e),b=b.subarray(d)),e=new Uint8Array(2048),m=0),e.set(b,m),m+=b.byteLength,2048===m&&(p(a,e),e=new Uint8Array(2048),m=0)));return n}var r=new da.TextEncoder;function t(a){return r.encode(a)}
|
13
|
+
var u=JSON.stringify,v=Symbol.for("react.module.reference"),w=Symbol.for("react.element"),ia=Symbol.for("react.fragment"),ja=Symbol.for("react.provider"),ka=Symbol.for("react.server_context"),la=Symbol.for("react.forward_ref"),ma=Symbol.for("react.suspense"),na=Symbol.for("react.suspense_list"),oa=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel");
|
14
|
+
function z(a,b,d,c,f,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=f;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new z(a,0,!1,a,null,!1,!1)});
|
15
|
+
[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new z(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new z(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new z(a,2,!1,a,null,!1,!1)});
|
16
|
+
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new z(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new z(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new z(a,4,!1,a,null,!1,!1)});
|
17
|
+
["cols","rows","size","span"].forEach(function(a){new z(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new z(a,5,!1,a.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function B(a){return a[1].toUpperCase()}
|
18
|
+
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(A,
|
19
|
+
B);new z(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(A,B);new z(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(A,B);new z(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new z(a,1,!1,a.toLowerCase(),null,!1,!1)});
|
20
|
+
new z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){new z(a,1,!1,a.toLowerCase(),null,!0,!0)});
|
21
|
+
var C={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,
|
22
|
+
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ra=["Webkit","ms","Moz","O"];Object.keys(C).forEach(function(a){ra.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);C[b]=C[a]})});var sa=Array.isArray;t("<script>");t("\x3c/script>");t('<script src="');t('<script type="module" src="');t('" integrity="');t('" async="">\x3c/script>');t("\x3c!-- --\x3e");t(' style="');t(":");t(";");t(" ");t('="');t('"');
|
23
23
|
t('=""');t(">");t("/>");t(' selected=""');t("\n");t("<!DOCTYPE html>");t("</");t(">");t('<template id="');t('"></template>');t("\x3c!--$--\x3e");t('\x3c!--$?--\x3e<template id="');t('"></template>');t("\x3c!--$!--\x3e");t("\x3c!--/$--\x3e");t("<template");t('"');t(' data-dgst="');t(' data-msg="');t(' data-stck="');t("></template>");t('<div hidden id="');t('">');t("</div>");t('<svg aria-hidden="true" style="display:none" id="');t('">');t("</svg>");t('<math aria-hidden="true" style="display:none" id="');
|
24
24
|
t('">');t("</math>");t('<table hidden id="');t('">');t("</table>");t('<table hidden><tbody id="');t('">');t("</tbody></table>");t('<table hidden><tr id="');t('">');t("</tr></table>");t('<table hidden><colgroup id="');t('">');t("</colgroup></table>");t('$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("');t('$RS("');t('","');t('")\x3c/script>');t('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RC("');
|
25
25
|
t('$RC("');t('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("');
|
26
26
|
t('$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("');
|
27
|
-
t('$RR("');t('","');t('",');t('"');t(")\x3c/script>");t('$RX=function(b,c,d,e){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),b._reactRetry&&b._reactRetry())};;$RX("');t('$RX("');t('"');t(")\x3c/script>");t(",");t('<style data-precedence="');t('"></style>');t("[");t(",[");t(",");t("]");var
|
28
|
-
function
|
29
|
-
function
|
30
|
-
function
|
31
|
-
function
|
32
|
-
|
33
|
-
function
|
34
|
-
function
|
35
|
-
|
36
|
-
function
|
37
|
-
|
38
|
-
function
|
39
|
-
function
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
function
|
45
|
-
|
46
|
-
|
47
|
-
c)return
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
function
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
function
|
58
|
-
|
27
|
+
t('$RR("');t('","');t('",');t('"');t(")\x3c/script>");t('$RX=function(b,c,d,e){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),b._reactRetry&&b._reactRetry())};;$RX("');t('$RX("');t('"');t(")\x3c/script>");t(",");t('<style data-precedence="');t('"></style>');t("[");t(",[");t(",");t("]");var D=null;
|
28
|
+
function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function ta(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&ta(a)}
|
29
|
+
function ua(a){var b=a.parent;null!==b&&ua(b);a.context._currentValue=a.value}function va(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?E(a,b):va(a,b)}
|
30
|
+
function wa(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?E(a,d):wa(a,d);b.context._currentValue=b.value}function H(a){var b=D;b!==a&&(null===b?ua(a):null===a?ta(b):b.depth===a.depth?E(b,a):b.depth>a.depth?va(b,a):wa(b,a),D=a)}function xa(a,b){var d=a._currentValue;a._currentValue=b;var c=D;return D=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var I=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");
|
31
|
+
function ya(){}function za(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(ya,ya),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:throw"string"!==typeof b.status&&(a=b,a.status="pending",a.then(function(a){if("pending"===b.status){var c=b;c.status="fulfilled";c.value=a}},function(a){if("pending"===b.status){var c=b;c.status="rejected";c.reason=a}})),J=b,I;}}var J=null;
|
32
|
+
function Aa(){if(null===J)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=J;J=null;return a}var K=null,L=0,M=null;function Ba(){var a=M;M=null;return a}function Ca(a){return a._currentValue}
|
33
|
+
var Ha={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:N,useTransition:N,readContext:Ca,useContext:Ca,useReducer:N,useRef:N,useState:N,useInsertionEffect:N,useLayoutEffect:N,useImperativeHandle:N,useEffect:N,useId:Ea,useMutableSource:N,useSyncExternalStore:N,useCacheRefresh:function(){return Fa},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=qa;return b},use:Ga};
|
34
|
+
function N(){throw Error("This Hook is not supported in Server Components.");}function Fa(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ea(){if(null===K)throw Error("useId can only be used while React is rendering");var a=K.identifierCount++;return":"+K.identifierPrefix+"S"+a.toString(32)+":"}
|
35
|
+
function Ga(a){if(null!==a&&"object"===typeof a){if("function"===typeof a.then){var b=L;L+=1;null===M&&(M=[]);return za(M,a,b)}if(a.$$typeof===ka)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function O(){return(new AbortController).signal}function Ia(){if(P)return P;var a=ha.getStore();return a?a:new Map}
|
36
|
+
var Ja={getCacheSignal:function(){var a=Ia(),b=a.get(O);void 0===b&&(b=O(),a.set(O,b));return b},getCacheForType:function(a){var b=Ia(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},P=null,Q=fa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Q.ContextRegistry,S=Q.ReactCurrentDispatcher,T=Q.ReactCurrentCache;function Ka(a){console.error(a)}
|
37
|
+
function La(a,b,d,c,f){if(null!==T.current&&T.current!==Ja)throw Error("Currently React only supports one RSC renderer at a time.");T.current=Ja;var g=new Set,h=[],k={status:0,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,abortableTasks:g,pingedTasks:h,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,writtenProviders:new Map,identifierPrefix:f||"",identifierCount:1,onError:void 0===
|
38
|
+
d?Ka:d,toJSON:function(a,b){return Ma(k,this,a,b)}};k.pendingChunks++;b=Na(c);a=Oa(k,a,b,g);h.push(a);return k}var Pa={};function Qa(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
39
|
+
function Ra(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:x,_payload:a,_init:Qa}}
|
40
|
+
function U(a,b,d,c,f){if(null!==d&&void 0!==d)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof a){if(a.$$typeof===v)return[w,a,b,c];L=0;M=f;c=a(c);return"object"===typeof c&&null!==c&&"function"===typeof c.then?Ra(c):c}if("string"===typeof a)return[w,a,b,c];if("symbol"===typeof a)return a===ia?c.children:[w,a,b,c];if(null!=a&&"object"===typeof a){if(a.$$typeof===v)return[w,a,b,c];switch(a.$$typeof){case x:var g=a._init;a=g(a._payload);
|
41
|
+
return U(a,b,d,c,f);case la:return b=a.render,L=0,M=f,b(c,void 0);case oa:return U(a.type,b,d,c,f);case ja:return xa(a._context,c.value),[w,a,b,{value:c.value,children:c.children,__pop:Pa}]}}throw Error("Unsupported Server Component type: "+V(a));}function Sa(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&setImmediate(function(){return Ta(a)})}function Oa(a,b,d,c){var f={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return Sa(a,f)},thenableState:null};c.add(f);return f}
|
42
|
+
function Ua(a,b,d,c){var f=c.filepath+"#"+c.name+(c.async?"#async":""),g=a.writtenModules,h=g.get(f);if(void 0!==h)return b[0]===w&&"1"===d?"@"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.filepath][c.name];var l=c.async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var y=a.nextChunkId++,aa=u(l);var ba="M"+y.toString(16)+":"+aa+"\n";a.completedModuleChunks.push(ba);g.set(f,y);return b[0]===w&&"1"===d?"@"+y.toString(16):"$"+y.toString(16)}catch(ca){return a.pendingChunks++,
|
43
|
+
b=a.nextChunkId++,d=W(a,ca),X(a,b,d),"$"+b.toString(16)}}function Va(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,d){return d})}function V(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(sa(a))return"[...]";a=Va(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
44
|
+
function Y(a){if("string"===typeof a)return a;switch(a){case ma:return"Suspense";case na:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case la:return Y(a.render);case oa:return Y(a.type);case x:var b=a._payload;a=a._init;try{return Y(a(b))}catch(d){}}return""}
|
45
|
+
function Z(a,b){var d=Va(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(sa(a)){var f="[";for(var g=0;g<a.length;g++){0<g&&(f+=", ");var h=a[g];h="object"===typeof h&&null!==h?Z(h):V(h);""+g===b?(d=f.length,c=h.length,f+=h):f=10>h.length&&40>f.length+h.length?f+h:f+"..."}f+="]"}else if(a.$$typeof===w)f="<"+Y(a.type)+"/>";else{f="{";g=Object.keys(a);for(h=0;h<g.length;h++){0<h&&(f+=", ");var k=g[h],l=JSON.stringify(k);f+=('"'+k+'"'===l?k:l)+": ";l=a[k];l="object"===typeof l&&null!==l?Z(l):
|
46
|
+
V(l);k===b?(d=f.length,c=l.length,f+=l):f=10>l.length&&40>f.length+l.length?f+l:f+"..."}f+="}"}return void 0===b?f:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+f+"\n "+a):"\n "+f}
|
47
|
+
function Ma(a,b,d,c){switch(c){case w:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===w||c.$$typeof===x);)try{switch(c.$$typeof){case w:var f=c;c=U(f.type,f.key,f.ref,f.props,null);break;case x:var g=c._init;c=g(c._payload)}}catch(h){d=h===I?Aa():h;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Oa(a,c,D,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ba(),"@"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=W(a,d);X(a,c,d);return"@"+
|
48
|
+
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===v)return Ua(a,b,d,c);if(c.$$typeof===ja)return c=c._context._globalName,f=a.writtenProviders,d=f.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,f.set(c,d),c="P"+d.toString(16)+":"+c+"\n",a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===Pa){a=D;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=c===pa?a.context._defaultValue:
|
49
|
+
c;D=a.parent;return}return c}if("string"===typeof c)return a="$"===c[0]||"@"===c[0]?"$"+c:c,a;if("boolean"===typeof c||"number"===typeof c||"undefined"===typeof c)return c;if("function"===typeof c){if(c.$$typeof===v)return Ua(a,b,d,c);if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+Z(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error("Functions cannot be passed directly to Client Components because they're not serializable."+
|
50
|
+
Z(b,d));}if("symbol"===typeof c){f=a.writtenSymbols;g=f.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+Z(b,d));a.pendingChunks++;d=a.nextChunkId++;b=u(g);b="S"+d.toString(16)+":"+b+"\n";a.completedModuleChunks.push(b);f.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)throw Error("BigInt ("+
|
51
|
+
c+") is not yet supported in Client Component props."+Z(b,d));throw Error("Type "+typeof c+" is not supported in Client Component props."+Z(b,d));}function W(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}
|
52
|
+
function Wa(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}function X(a,b,d){d={digest:d};b="E"+b.toString(16)+":"+u(d)+"\n";a.completedErrorChunks.push(b)}
|
53
|
+
function Ta(a){var b=S.current,d=P;S.current=Ha;P=a.cache;K=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var f=0;f<c.length;f++){var g=c[f];var h=a;if(0===g.status){H(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===w){var l=k,y=g.thenableState;g.model=k;k=U(l.type,l.key,l.ref,l.props,y);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===w;)l=k,g.model=k,k=U(l.type,l.key,l.ref,l.props,null)}var aa=g.id,ba=u(k,h.toJSON);var ca="J"+aa.toString(16)+":"+
|
54
|
+
ba+"\n";h.completedJSONChunks.push(ca);h.abortableTasks.delete(g);g.status=1}catch(F){var G=F===I?Aa():F;if("object"===typeof G&&null!==G&&"function"===typeof G.then){var Da=g.ping;G.then(Da,Da);g.thenableState=Ba()}else{h.abortableTasks.delete(g);g.status=4;var Za=W(h,G);X(h,g.id,Za)}}}}null!==a.destination&&Xa(a,a.destination)}catch(F){W(a,F),Wa(a,F)}finally{S.current=b,P=d,K=null}}
|
55
|
+
function Xa(a,b){e=new Uint8Array(2048);m=0;n=!0;try{for(var d=a.completedModuleChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!q(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!q(b,f[c])){a.destination=null;c++;break}f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!q(b,g[c])){a.destination=null;c++;break}g.splice(0,c)}finally{e&&0<m&&b.write(e.subarray(0,m)),e=null,m=0,n=!0}"function"===
|
56
|
+
typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function Ya(a){setImmediate(function(){return ha.run(a.cache,Ta,a)})}function $a(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{Xa(a,b)}catch(d){W(a,d),Wa(a,d)}}}
|
57
|
+
function ab(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=W(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var f=a.nextChunkId++;X(a,f,c);d.forEach(function(b){b.status=3;var c="$"+f.toString(16);b=b.id;c=u(c);c="J"+b.toString(16)+":"+c+"\n";a.completedErrorChunks.push(c)});d.clear()}null!==a.destination&&Xa(a,a.destination)}catch(g){W(a,g),Wa(a,g)}}
|
58
|
+
function Na(a){if(a){var b=D;H(null);for(var d=0;d<a.length;d++){var c=a[d],f=c[0];c=c[1];R[f]||(R[f]=fa.createServerContext(f,pa));xa(R[f],c)}a=D;H(b);return a}return null}function bb(a,b){return function(){return $a(b,a)}}
|
59
|
+
exports.renderToPipeableStream=function(a,b,d){var c=La(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0),f=!1;Ya(c);return{pipe:function(a){if(f)throw Error("React currently only supports piping to one writable stream.");f=!0;$a(c,a);a.on("drain",bb(a,c));return a},abort:function(a){ab(c,a)}}};
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-server-dom-webpack",
|
3
3
|
"description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
|
4
|
-
"version": "18.3.0-next-
|
4
|
+
"version": "18.3.0-next-2ac77aab9-20221029",
|
5
5
|
"keywords": [
|
6
6
|
"react"
|
7
7
|
],
|
@@ -49,8 +49,8 @@
|
|
49
49
|
"node": ">=0.10.0"
|
50
50
|
},
|
51
51
|
"peerDependencies": {
|
52
|
-
"react": "18.3.0-next-
|
53
|
-
"react-dom": "18.3.0-next-
|
52
|
+
"react": "18.3.0-next-2ac77aab9-20221029",
|
53
|
+
"react-dom": "18.3.0-next-2ac77aab9-20221029",
|
54
54
|
"webpack": "^5.59.0"
|
55
55
|
},
|
56
56
|
"dependencies": {
|
@@ -843,6 +843,9 @@
|
|
843
843
|
// changes to one module should be reflected in the others.
|
844
844
|
// TODO: Rename this module and the corresponding Fiber one to "Thenable"
|
845
845
|
// instead of "Wakeable". Or some other more appropriate name.
|
846
|
+
// An error that is thrown (e.g. by `use`) to trigger Suspense. If we
|
847
|
+
// detect this is caught by userspace, we'll log a warning in development.
|
848
|
+
var SuspenseException = new Error("Suspense Exception: This is not a real error! It's an implementation " + 'detail of `use` to interrupt the current render. You must either ' + 'rethrow it immediately, or move the `use` call outside of the ' + '`try/catch` block. Capturing without rethrowing will lead to ' + 'unexpected behavior.\n\n' + 'To handle async errors, wrap your component in an error boundary, or ' + "call the promise's `.catch` method and pass the result to `use`");
|
846
849
|
function createThenableState() {
|
847
850
|
// The ThenableState is created the first time a component suspends. If it
|
848
851
|
// suspends again, we'll reuse the same state.
|
@@ -905,17 +908,35 @@
|
|
905
908
|
}
|
906
909
|
});
|
907
910
|
} // Suspend.
|
908
|
-
//
|
909
|
-
//
|
910
|
-
//
|
911
|
-
// actual thenable. If it doesn't
|
912
|
-
// a warning, because that means
|
913
|
-
// caught it.
|
911
|
+
//
|
912
|
+
// Throwing here is an implementation detail that allows us to unwind the
|
913
|
+
// call stack. But we shouldn't allow it to leak into userspace. Throw an
|
914
|
+
// opaque placeholder value instead of the actual thenable. If it doesn't
|
915
|
+
// get captured by the work loop, log a warning, because that means
|
916
|
+
// something in userspace must have caught it.
|
914
917
|
|
915
918
|
|
916
|
-
|
919
|
+
suspendedThenable = thenable;
|
920
|
+
throw SuspenseException;
|
917
921
|
}
|
918
922
|
}
|
923
|
+
} // This is used to track the actual thenable that suspended so it can be
|
924
|
+
// passed to the rest of the Suspense implementation — which, for historical
|
925
|
+
// reasons, expects to receive a thenable.
|
926
|
+
|
927
|
+
var suspendedThenable = null;
|
928
|
+
function getSuspendedThenable() {
|
929
|
+
// This is called right after `use` suspends by throwing an exception. `use`
|
930
|
+
// throws an opaque value instead of the thenable itself so that it can't be
|
931
|
+
// caught in userspace. Then the work loop accesses the actual thenable using
|
932
|
+
// this function.
|
933
|
+
if (suspendedThenable === null) {
|
934
|
+
throw new Error('Expected a suspended thenable. This is a bug in React. Please file ' + 'an issue.');
|
935
|
+
}
|
936
|
+
|
937
|
+
var thenable = suspendedThenable;
|
938
|
+
suspendedThenable = null;
|
939
|
+
return thenable;
|
919
940
|
}
|
920
941
|
|
921
942
|
var currentRequest = null;
|
@@ -1789,7 +1810,14 @@
|
|
1789
1810
|
break;
|
1790
1811
|
}
|
1791
1812
|
}
|
1792
|
-
} catch (
|
1813
|
+
} catch (thrownValue) {
|
1814
|
+
var x = thrownValue === SuspenseException ? // This is a special type of exception used for Suspense. For historical
|
1815
|
+
// reasons, the rest of the Suspense implementation expects the thrown
|
1816
|
+
// value to be a thenable, because before `use` existed that was the
|
1817
|
+
// (unstable) API for suspending. This implementation detail can change
|
1818
|
+
// later, once we deprecate the old API in favor of `use`.
|
1819
|
+
getSuspendedThenable() : thrownValue; // $FlowFixMe[method-unbinding]
|
1820
|
+
|
1793
1821
|
if (typeof x === 'object' && x !== null && typeof x.then === 'function') {
|
1794
1822
|
// Something suspended, we'll need to create a new task and resolve it later.
|
1795
1823
|
request.pendingChunks++;
|
@@ -2035,7 +2063,14 @@
|
|
2035
2063
|
request.completedJSONChunks.push(processedChunk);
|
2036
2064
|
request.abortableTasks.delete(task);
|
2037
2065
|
task.status = COMPLETED;
|
2038
|
-
} catch (
|
2066
|
+
} catch (thrownValue) {
|
2067
|
+
var x = thrownValue === SuspenseException ? // This is a special type of exception used for Suspense. For historical
|
2068
|
+
// reasons, the rest of the Suspense implementation expects the thrown
|
2069
|
+
// value to be a thenable, because before `use` existed that was the
|
2070
|
+
// (unstable) API for suspending. This implementation detail can change
|
2071
|
+
// later, once we deprecate the old API in favor of `use`.
|
2072
|
+
getSuspendedThenable() : thrownValue; // $FlowFixMe[method-unbinding]
|
2073
|
+
|
2039
2074
|
if (typeof x === 'object' && x !== null && typeof x.then === 'function') {
|
2040
2075
|
// Something suspended again, let's pick it back up later.
|
2041
2076
|
var ping = task.ping;
|
@@ -7,43 +7,43 @@
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
(function(){'use strict';(function(
|
11
|
-
e),n),a.enqueue(p),
|
12
|
-
a){if(null!==e)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===e)throw Error("The stacks must reach the root at the same time. This is a bug in React.");H(a,e);
|
13
|
-
a.depth===
|
14
|
-
value:
|
15
|
-
}function
|
16
|
-
pendingChunks:0,abortableTasks:k,pingedTasks:g,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,writtenProviders:new Map,identifierPrefix:
|
17
|
-
default:"string"!==typeof a.status&&(a.status="pending",a.then(function(
|
18
|
-
typeof d.then?
|
19
|
-
|
20
|
-
m.toString(16)+":"+n+"\n";var q=x.encode(p);a.completedModuleChunks.push(q);f.set(
|
21
|
-
a?"{...}":a;case "function":return"function";default:return String(a)}}function
|
22
|
-
g="object"===typeof g&&null!==g?
|
23
|
-
"\n "+
|
24
|
-
d,
|
25
|
-
d===
|
26
|
-
|
27
|
-
d+") is not yet supported in Client Component props."+
|
28
|
-
2,
|
29
|
-
typeof h&&null!==h&&h.$$typeof===
|
30
|
-
|
31
|
-
p=null,n=0)}0===a.pendingChunks&&
|
32
|
-
0;
|
33
|
-
|
10
|
+
(function(){'use strict';(function(r,z){"object"===typeof exports&&"undefined"!==typeof module?z(exports,require("react-dom")):"function"===typeof define&&define.amd?define(["exports","react","react-dom"],z):(r=r||self,z(r.ReactServerDOMServer={},r.React,r.ReactDOM))})(this,function(r,z,G){function N(a,c){if(0!==c.length)if(512<c.length)0<n&&(a.enqueue(new Uint8Array(p.buffer,0,n)),p=new Uint8Array(512),n=0),a.enqueue(c);else{var e=p.length-n;e<c.length&&(0===e?a.enqueue(p):(p.set(c.subarray(0,
|
11
|
+
e),n),a.enqueue(p),c=c.subarray(e)),p=new Uint8Array(512),n=0);p.set(c,n);n+=c.length}return!0}function b(a){return x.encode(a)}function ca(a,c){"function"===typeof a.error?a.error(c):a.close()}function m(a,c,e,d,b,f,g){this.acceptsBooleans=2===c||3===c||4===c;this.attributeName=d;this.attributeNamespace=b;this.mustUseProperty=e;this.propertyName=a;this.type=c;this.sanitizeURL=f;this.removeEmptyString=g}function H(a,c){if(a!==c){a.context._currentValue=a.parentValue;a=a.parent;var e=c.parent;if(null===
|
12
|
+
a){if(null!==e)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===e)throw Error("The stacks must reach the root at the same time. This is a bug in React.");H(a,e);c.context._currentValue=c.value}}}function da(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&da(a)}function ea(a){var c=a.parent;null!==c&&ea(c);a.context._currentValue=a.value}function fa(a,c){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");
|
13
|
+
a.depth===c.depth?H(a,c):fa(a,c)}function ha(a,c){var e=c.parent;if(null===e)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===e.depth?H(a,e):ha(a,e);c.context._currentValue=c.value}function O(a){var c=u;c!==a&&(null===c?ea(a):null===a?da(c):c.depth===a.depth?H(c,a):c.depth>a.depth?fa(c,a):ha(c,a),u=a)}function ia(a,c){var e=a._currentValue;a._currentValue=c;var d=u;return u=a={parent:d,depth:null===d?0:d.depth+1,context:a,parentValue:e,
|
14
|
+
value:c}}function ja(){}function Aa(a,c,e){e=a[e];void 0===e?a.push(c):e!==c&&(c.then(ja,ja),c=e);switch(c.status){case "fulfilled":return c.value;case "rejected":throw c.reason;default:throw"string"!==typeof c.status&&(a=c,a.status="pending",a.then(function(a){if("pending"===c.status){var d=c;d.status="fulfilled";d.value=a}},function(a){if("pending"===c.status){var d=c;d.status="rejected";d.reason=a}})),I=c,P;}}function ka(){if(null===I)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");
|
15
|
+
var a=I;I=null;return a}function la(){var a=v;v=null;return a}function ma(a){return a._currentValue}function q(){throw Error("This Hook is not supported in Server Components.");}function Ba(){throw Error("Refreshing the cache is not supported in Server Components.");}function Q(){return(new AbortController).signal}function na(){if(A)return A;if(R){var a=oa.getStore();if(a)return a}return new Map}function Ca(a){console.error(a)}function Da(a,c,e,d,b){if(null!==S.current&&S.current!==pa)throw Error("Currently React only supports one RSC renderer at a time.");
|
16
|
+
S.current=pa;var k=new Set,g=[],h={status:0,fatalError:null,destination:null,bundlerConfig:c,cache:new Map,nextChunkId:0,pendingChunks:0,abortableTasks:k,pingedTasks:g,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,writtenProviders:new Map,identifierPrefix:b||"",identifierCount:1,onError:void 0===e?Ca:e,toJSON:function(a,c){return Ea(h,this,a,c)}};h.pendingChunks++;c=Fa(d);a=qa(h,a,c,k);g.push(a);return h}function Ga(a){if("fulfilled"===
|
17
|
+
a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function Ha(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(c){"pending"===a.status&&(a.status="fulfilled",a.value=c)},function(c){"pending"===a.status&&(a.status="rejected",a.reason=c)}))}return{$$typeof:B,_payload:a,_init:Ga}}function C(a,c,e,d,b){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");
|
18
|
+
if("function"===typeof a){if(a.$$typeof===J)return[t,a,c,d];K=0;v=b;d=a(d);return"object"===typeof d&&null!==d&&"function"===typeof d.then?Ha(d):d}if("string"===typeof a)return[t,a,c,d];if("symbol"===typeof a)return a===Ia?d.children:[t,a,c,d];if(null!=a&&"object"===typeof a){if(a.$$typeof===J)return[t,a,c,d];switch(a.$$typeof){case B:var k=a._init;a=k(a._payload);return C(a,c,e,d,b);case ra:return c=a.render,K=0,v=b,c(d,void 0);case sa:return C(a.type,c,e,d,b);case ta:return ia(a._context,d.value),
|
19
|
+
[t,a,c,{value:d.value,children:d.children,__pop:ua}]}}throw Error("Unsupported Server Component type: "+T(a));}function qa(a,c,e,d){var b={id:a.nextChunkId++,status:0,model:c,context:e,ping:function(){var c=a.pingedTasks;c.push(b);1===c.length&&U(a)},thenableState:null};d.add(b);return b}function va(a,c,e,d){var b=d.filepath+"#"+d.name+(d.async?"#async":""),f=a.writtenModules,g=f.get(b);if(void 0!==g)return c[0]===t&&"1"===e?"@"+g.toString(16):"$"+g.toString(16);try{var h=a.bundlerConfig[d.filepath][d.name];
|
20
|
+
var l=d.async?{id:h.id,chunks:h.chunks,name:h.name,async:!0}:h;a.pendingChunks++;var m=a.nextChunkId++,n=D(l),p="M"+m.toString(16)+":"+n+"\n";var q=x.encode(p);a.completedModuleChunks.push(q);f.set(b,m);return c[0]===t&&"1"===e?"@"+m.toString(16):"$"+m.toString(16)}catch(Ja){return a.pendingChunks++,c=a.nextChunkId++,e=y(a,Ja),L(a,c,e),"$"+c.toString(16)}}function wa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,e){return e})}function T(a){switch(typeof a){case "string":return JSON.stringify(10>=
|
21
|
+
a.length?a:a.substr(0,10)+"...");case "object":if(xa(a))return"[...]";a=wa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}function M(a){if("string"===typeof a)return a;switch(a){case Ka:return"Suspense";case La:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ra:return M(a.render);case sa:return M(a.type);case B:var c=a._payload;a=a._init;try{return M(a(c))}catch(e){}}return""}function w(a,c){var e=wa(a);if("Object"!==e&&"Array"!==e)return e;
|
22
|
+
e=-1;var d=0;if(xa(a)){var b="[";for(var f=0;f<a.length;f++){0<f&&(b+=", ");var g=a[f];g="object"===typeof g&&null!==g?w(g):T(g);""+f===c?(e=b.length,d=g.length,b+=g):b=10>g.length&&40>b.length+g.length?b+g:b+"..."}b+="]"}else if(a.$$typeof===t)b="<"+M(a.type)+"/>";else{b="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(b+=", ");var h=f[g],l=JSON.stringify(h);b+=('"'+h+'"'===l?h:l)+": ";l=a[h];l="object"===typeof l&&null!==l?w(l):T(l);h===c?(e=b.length,d=l.length,b+=l):b=10>l.length&&40>b.length+
|
23
|
+
l.length?b+l:b+"..."}b+="}"}return void 0===c?b:-1<e&&0<d?(a=" ".repeat(e)+"^".repeat(d),"\n "+b+"\n "+a):"\n "+b}function Ea(a,c,b,d){switch(d){case t:return"$"}for(;"object"===typeof d&&null!==d&&(d.$$typeof===t||d.$$typeof===B);)try{switch(d.$$typeof){case t:var e=d;d=C(e.type,e.key,e.ref,e.props,null);break;case B:var f=d._init;d=f(d._payload)}}catch(g){b=g===P?ka():g;if("object"===typeof b&&null!==b&&"function"===typeof b.then)return a.pendingChunks++,a=qa(a,d,u,a.abortableTasks),d=a.ping,
|
24
|
+
b.then(d,d),a.thenableState=la(),"@"+a.id.toString(16);a.pendingChunks++;d=a.nextChunkId++;b=y(a,b);L(a,d,b);return"@"+d.toString(16)}if(null===d)return null;if("object"===typeof d){if(d.$$typeof===J)return va(a,c,b,d);if(d.$$typeof===ta)return e=d._context._globalName,c=a.writtenProviders,d=c.get(b),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,c.set(e,d),b="P"+d.toString(16)+":"+e+"\n",b=x.encode(b),a.completedJSONChunks.push(b)),"$"+d.toString(16);if(d===ua){a=u;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
|
25
|
+
d=a.parentValue;a.context._currentValue=d===ya?a.context._defaultValue:d;u=a.parent;return}return d}if("string"===typeof d)return a="$"===d[0]||"@"===d[0]?"$"+d:d,a;if("boolean"===typeof d||"number"===typeof d||"undefined"===typeof d)return d;if("function"===typeof d){if(d.$$typeof===J)return va(a,c,b,d);if(/^on[A-Z]/.test(b))throw Error("Event handlers cannot be passed to Client Component props."+w(c,b)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error("Functions cannot be passed directly to Client Components because they're not serializable."+
|
26
|
+
w(c,b));}if("symbol"===typeof d){e=a.writtenSymbols;f=e.get(d);if(void 0!==f)return"$"+f.toString(16);f=d.description;if(Symbol.for(f)!==d)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(d.description+") cannot be found among global symbols.")+w(c,b));a.pendingChunks++;b=a.nextChunkId++;c=D(f);c="S"+b.toString(16)+":"+c+"\n";c=x.encode(c);a.completedModuleChunks.push(c);e.set(d,b);return"$"+b.toString(16)}if("bigint"===typeof d)throw Error("BigInt ("+
|
27
|
+
d+") is not yet supported in Client Component props."+w(c,b));throw Error("Type "+typeof d+" is not supported in Client Component props."+w(c,b));}function y(a,c){a=a.onError;c=a(c);if(null!=c&&"string"!==typeof c)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof c+'" instead');return c||""}function V(a,c){null!==a.destination?(a.status=
|
28
|
+
2,ca(a.destination,c)):(a.status=1,a.fatalError=c)}function L(a,c,b){b={digest:b};c="E"+c.toString(16)+":"+D(b)+"\n";c=x.encode(c);a.completedErrorChunks.push(c)}function U(a){var c=W.current,b=A;W.current=Ma;A=a.cache;E=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var k=0;k<d.length;k++){var f=d[k];var g=a;if(0===f.status){O(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===t){var l=h,m=f.thenableState;f.model=h;h=C(l.type,l.key,l.ref,l.props,m);for(f.thenableState=null;"object"===
|
29
|
+
typeof h&&null!==h&&h.$$typeof===t;)l=h,f.model=h,h=C(l.type,l.key,l.ref,l.props,null)}var n=f.id,p=D(h,g.toJSON),q="J"+n.toString(16)+":"+p+"\n";var u=x.encode(q);g.completedJSONChunks.push(u);g.abortableTasks.delete(f);f.status=1}catch(F){var r=F===P?ka():F;if("object"===typeof r&&null!==r&&"function"===typeof r.then){var v=f.ping;r.then(v,v);f.thenableState=la()}else{g.abortableTasks.delete(f);f.status=4;var w=y(g,r);L(g,f.id,w)}}}}null!==a.destination&&X(a,a.destination)}catch(F){y(a,F),V(a,F)}finally{W.current=
|
30
|
+
c,A=b,E=null}}function X(a,c){p=new Uint8Array(512);n=0;try{for(var b=a.completedModuleChunks,d=0;d<b.length;d++)if(a.pendingChunks--,!N(c,b[d])){a.destination=null;d++;break}b.splice(0,d);var k=a.completedJSONChunks;for(d=0;d<k.length;d++)if(a.pendingChunks--,!N(c,k[d])){a.destination=null;d++;break}k.splice(0,d);var f=a.completedErrorChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,!N(c,f[d])){a.destination=null;d++;break}f.splice(0,d)}finally{p&&0<n&&(c.enqueue(new Uint8Array(p.buffer,0,n)),
|
31
|
+
p=null,n=0)}0===a.pendingChunks&&c.close()}function za(a,c){try{var b=a.abortableTasks;if(0<b.size){var d=y(a,void 0===c?Error("The render was aborted by the server without a reason."):c);a.pendingChunks++;var k=a.nextChunkId++;L(a,k,d);b.forEach(function(c){c.status=3;var b="$"+k.toString(16);c=c.id;b=D(b);b="J"+c.toString(16)+":"+b+"\n";b=x.encode(b);a.completedErrorChunks.push(b)});b.clear()}null!==a.destination&&X(a,a.destination)}catch(f){y(a,f),V(a,f)}}function Fa(a){if(a){var c=u;O(null);for(var b=
|
32
|
+
0;b<a.length;b++){var d=a[b],k=d[0];d=d[1];Y[k]||(Y[k]=z.createServerContext(k,ya));ia(Y[k],d)}a=u;O(c);return a}return null}var R="function"===typeof AsyncLocalStorage,oa=R?new AsyncLocalStorage:null,p=null,n=0,x=new TextEncoder,D=JSON.stringify,J=Symbol.for("react.module.reference"),t=Symbol.for("react.element"),Ia=Symbol.for("react.fragment"),ta=Symbol.for("react.provider"),Na=Symbol.for("react.server_context"),ra=Symbol.for("react.forward_ref"),Ka=Symbol.for("react.suspense"),La=Symbol.for("react.suspense_list"),
|
33
|
+
sa=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),ya=Symbol.for("react.default_value"),Oa=Symbol.for("react.memo_cache_sentinel");"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new m(a,0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new m(a[0],1,!1,a[1],null,!1,!1)});["contentEditable",
|
34
34
|
"draggable","spellCheck","value"].forEach(function(a){new m(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new m(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new m(a,3,!1,a.toLowerCase(),
|
35
|
-
null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new m(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new m(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){new m(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new m(a,5,!1,a.toLowerCase(),null,!1,!1)});var
|
36
|
-
a.replace(
|
37
|
-
!0,!1);["src","href","action","formAction"].forEach(function(a){new m(a,1,!1,a.toLowerCase(),null,!0,!0)});var
|
38
|
-
fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
useTransition:q,readContext:
|
46
|
-
a&&"object"===typeof a){if("function"===typeof a.then){var b=
|
47
|
-
|
48
|
-
a;try{
|
35
|
+
null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new m(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new m(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){new m(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new m(a,5,!1,a.toLowerCase(),null,!1,!1)});var Z=/[\-:]([a-z])/g,aa=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var c=
|
36
|
+
a.replace(Z,aa);new m(c,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var c=a.replace(Z,aa);new m(c,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var c=a.replace(Z,aa);new m(c,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new m(a,1,!1,a.toLowerCase(),null,!1,!1)});new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",
|
37
|
+
!0,!1);["src","href","action","formAction"].forEach(function(a){new m(a,1,!1,a.toLowerCase(),null,!0,!0)});var ba={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,
|
38
|
+
fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pa=["Webkit","ms","Moz","O"];Object.keys(ba).forEach(function(a){Pa.forEach(function(c){c=c+a.charAt(0).toUpperCase()+a.substring(1);ba[c]=ba[a]})});var xa=Array.isArray;b("<script>");b("\x3c/script>");b('<script src="');b('<script type="module" src="');
|
39
|
+
b('" integrity="');b('" async="">\x3c/script>');b("\x3c!-- --\x3e");b(' style="');b(":");b(";");b(" ");b('="');b('"');b('=""');b(">");b("/>");b(' selected=""');b("\n");b("<!DOCTYPE html>");b("</");b(">");b('<template id="');b('"></template>');b("\x3c!--$--\x3e");b('\x3c!--$?--\x3e<template id="');b('"></template>');b("\x3c!--$!--\x3e");b("\x3c!--/$--\x3e");b("<template");b('"');b(' data-dgst="');b(' data-msg="');b(' data-stck="');b("></template>");b('<div hidden id="');b('">');b("</div>");b('<svg aria-hidden="true" style="display:none" id="');
|
40
|
+
b('">');b("</svg>");b('<math aria-hidden="true" style="display:none" id="');b('">');b("</math>");b('<table hidden id="');b('">');b("</table>");b('<table hidden><tbody id="');b('">');b("</tbody></table>");b('<table hidden><tr id="');b('">');b("</tr></table>");b('<table hidden><colgroup id="');b('">');b("</colgroup></table>");b('$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("');
|
41
|
+
b('$RS("');b('","');b('")\x3c/script>');b('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RC("');
|
42
|
+
b('$RC("');b('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("');
|
43
|
+
b('$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("');
|
44
|
+
b('$RR("');b('","');b('",');b('"');b(")\x3c/script>");b('$RX=function(b,c,d,e){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),b._reactRetry&&b._reactRetry())};;$RX("');b('$RX("');b('"');b(")\x3c/script>");b(",");b('<style data-precedence="');b('"></style>');b("[");b(",[");b(",");b("]");var u=null,P=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"),
|
45
|
+
I=null,E=null,K=0,v=null,Ma={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:q,useTransition:q,readContext:ma,useContext:ma,useReducer:q,useRef:q,useState:q,useInsertionEffect:q,useLayoutEffect:q,useImperativeHandle:q,useEffect:q,useId:function(){if(null===E)throw Error("useId can only be used while React is rendering");var a=E.identifierCount++;return":"+E.identifierPrefix+"S"+a.toString(32)+":"},useMutableSource:q,useSyncExternalStore:q,
|
46
|
+
useCacheRefresh:function(){return Ba},useMemoCache:function(a){for(var c=Array(a),b=0;b<a;b++)c[b]=Oa;return c},use:function(a){if(null!==a&&"object"===typeof a){if("function"===typeof a.then){var b=K;K+=1;null===v&&(v=[]);return Aa(v,a,b)}if(a.$$typeof===Na)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}},pa={getCacheSignal:function(){var a=na(),b=a.get(Q);void 0===b&&(b=Q(),a.set(Q,b));return b},getCacheForType:function(a){var b=na(),e=b.get(a);void 0===
|
47
|
+
e&&(e=a(),b.set(a,e));return e}},A=null;G=z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;var Y=G.ContextRegistry,W=G.ReactCurrentDispatcher,S=G.ReactCurrentCache,ua={};r.renderToReadableStream=function(a,b,e){var c=Da(a,b,e?e.onError:void 0,e?e.context:void 0,e?e.identifierPrefix:void 0);if(e&&e.signal){var k=e.signal;if(k.aborted)za(c,k.reason);else{var f=function(){za(c,k.reason);k.removeEventListener("abort",f)};k.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(a){R?
|
48
|
+
oa.run(c.cache,U,c):U(c)},pull:function(a){if(1===c.status)c.status=2,ca(a,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=a;try{X(c,a)}catch(h){y(c,h),V(c,h)}}},cancel:function(a){}},{highWaterMark:0})}});
|
49
49
|
})();
|