react-server-dom-webpack 18.3.0-canary-21a161fa3-20230609 → 18.3.0-canary-88df88f94-20230613

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.
Files changed (21) hide show
  1. package/cjs/react-server-dom-webpack-client.browser.development.js +178 -36
  2. package/cjs/react-server-dom-webpack-client.browser.production.min.js +24 -24
  3. package/cjs/react-server-dom-webpack-client.edge.development.js +178 -36
  4. package/cjs/react-server-dom-webpack-client.edge.production.min.js +23 -23
  5. package/cjs/react-server-dom-webpack-client.node.development.js +177 -53
  6. package/cjs/react-server-dom-webpack-client.node.production.min.js +25 -25
  7. package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +177 -53
  8. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +24 -24
  9. package/cjs/react-server-dom-webpack-server.browser.development.js +32 -8
  10. package/cjs/react-server-dom-webpack-server.browser.production.min.js +46 -46
  11. package/cjs/react-server-dom-webpack-server.edge.development.js +32 -8
  12. package/cjs/react-server-dom-webpack-server.edge.production.min.js +49 -49
  13. package/cjs/react-server-dom-webpack-server.node.development.js +32 -8
  14. package/cjs/react-server-dom-webpack-server.node.production.min.js +37 -37
  15. package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +32 -8
  16. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +56 -56
  17. package/package.json +3 -3
  18. package/umd/react-server-dom-webpack-client.browser.development.js +178 -36
  19. package/umd/react-server-dom-webpack-client.browser.production.min.js +21 -20
  20. package/umd/react-server-dom-webpack-server.browser.development.js +32 -8
  21. package/umd/react-server-dom-webpack-server.browser.production.min.js +43 -42
@@ -8,57 +8,57 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
  'use strict';var aa=require("react-dom"),ba=require("react"),l=null,m=0;function n(a,b){if(0!==b.length)if(512<b.length)0<m&&(a.enqueue(new Uint8Array(l.buffer,0,m)),l=new Uint8Array(512),m=0),a.enqueue(b);else{var d=l.length-m;d<b.length&&(0===d?a.enqueue(l):(l.set(b.subarray(0,d),m),a.enqueue(l),b=b.subarray(d)),l=new Uint8Array(512),m=0);l.set(b,m);m+=b.length}return!0}var p=new TextEncoder;function ca(a,b){"function"===typeof a.error?a.error(b):a.close()}
11
- var q=Symbol.for("react.client.reference"),da=Symbol.for("react.server.reference"),ka={prefetchDNS:ea,preconnect:fa,preload:ha,preinit:ja};function ea(a,b){if("string"===typeof a){var d=r?r:null;if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?u(d,"D",[a,b]):u(d,"D",a),v(d))}}}
11
+ var q=Symbol.for("react.client.reference"),da=Symbol.for("react.server.reference"),ka={prefetchDNS:ea,preconnect:fa,preload:ha,preinit:ia};function ea(a,b){if("string"===typeof a){var d=r?r:null;if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?u(d,"D",[a,b]):u(d,"D",a),v(d))}}}
12
12
  function fa(a,b){if("string"===typeof a){var d=r?r:null;if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null===e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?u(d,"C",[a,b]):u(d,"C",a),v(d))}}}function ha(a,b){if("string"===typeof a){var d=r?r:null;if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),u(d,"L",[a,b]),v(d))}}}
13
- function ja(a,b){if("string"===typeof a){var d=r?r:null;if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),u(d,"I",[a,b]),v(d))}}}
14
- var la=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,w=Symbol.for("react.element"),ma=Symbol.for("react.fragment"),na=Symbol.for("react.provider"),oa=Symbol.for("react.server_context"),pa=Symbol.for("react.forward_ref"),qa=Symbol.for("react.suspense"),ra=Symbol.for("react.suspense_list"),sa=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),ta=Symbol.for("react.default_value"),ua=Symbol.for("react.memo_cache_sentinel"),va=Symbol.iterator,C=null;
13
+ function ia(a,b){if("string"===typeof a){var d=r?r:null;if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),u(d,"I",[a,b]),v(d))}}}
14
+ var la=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,w=Symbol.for("react.element"),ma=Symbol.for("react.fragment"),na=Symbol.for("react.provider"),oa=Symbol.for("react.server_context"),pa=Symbol.for("react.forward_ref"),qa=Symbol.for("react.suspense"),ra=Symbol.for("react.suspense_list"),sa=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),ta=Symbol.for("react.default_value"),ua=Symbol.for("react.memo_cache_sentinel"),va=Symbol.iterator,y=null;
15
15
  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 wa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&wa(a)}
16
16
  function xa(a){var b=a.parent;null!==b&&xa(b);a.context._currentValue=a.value}function ya(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):ya(a,b)}
17
- function za(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):za(a,d);b.context._currentValue=b.value}function E(a){var b=C;b!==a&&(null===b?xa(a):null===a?wa(b):b.depth===a.depth?D(b,a):b.depth>a.depth?ya(b,a):za(b,a),C=a)}function Aa(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 F=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`");
17
+ function za(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):za(a,d);b.context._currentValue=b.value}function E(a){var b=y;b!==a&&(null===b?xa(a):null===a?wa(b):b.depth===a.depth?D(b,a):b.depth>a.depth?ya(b,a):za(b,a),y=a)}function Aa(a,b){var d=a._currentValue;a._currentValue=b;var c=y;return y=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var F=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`");
18
18
  function Ba(){}function Ca(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ba,Ba),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}G=b;throw F;}}var G=null;
19
19
  function Da(){if(null===G)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=G;G=null;return a}var H=null,I=0,J=null;function Ea(){var a=J;J=null;return a}function Fa(a){return a._currentValue}
20
20
  var Ja={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:K,useTransition:K,readContext:Fa,useContext:Fa,useReducer:K,useRef:K,useState:K,useInsertionEffect:K,useLayoutEffect:K,useImperativeHandle:K,useEffect:K,useId:Ga,useMutableSource:K,useSyncExternalStore:K,useCacheRefresh:function(){return Ha},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=ua;return b},use:Ia};
21
21
  function K(){throw Error("This Hook is not supported in Server Components.");}function Ha(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ga(){if(null===H)throw Error("useId can only be used while React is rendering");var a=H.identifierCount++;return":"+H.identifierPrefix+"S"+a.toString(32)+":"}
22
22
  function Ia(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=I;I+=1;null===J&&(J=[]);return Ca(J,a,b)}if(a.$$typeof===oa)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function L(){return(new AbortController).signal}function Ka(){var a=r?r:null;return a?a.cache:new Map}
23
- var La={getCacheSignal:function(){var a=Ka(),b=a.get(L);void 0===b&&(b=L(),a.set(L,b));return b},getCacheForType:function(a){var b=Ka(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},M=Array.isArray;function Ma(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
24
- function Na(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(M(a))return"[...]";a=Ma(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
25
- function N(a){if("string"===typeof a)return a;switch(a){case qa:return"Suspense";case ra:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case pa:return N(a.render);case sa:return N(a.type);case B:var b=a._payload;a=a._init;try{return N(a(b))}catch(d){}}return""}
26
- function O(a,b){var d=Ma(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(M(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?O(g):Na(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===w)e="<"+N(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?O(k):
27
- Na(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Oa=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pa=Oa.ContextRegistry,P=JSON.stringify,Qa=Oa.ReactCurrentDispatcher,Ra=Oa.ReactCurrentCache;function Sa(a){console.error(a)}
28
- function Ta(a,b,d,c,e){if(null!==Ra.current&&Ra.current!==La)throw Error("Currently React only supports one RSC renderer at a time.");la.current=ka;Ra.current=La;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
29
- writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?Sa:d,toJSON:function(t,x){return Ua(k,this,t,x)}};k.pendingChunks++;b=Va(c);a=Wa(k,a,b,f);g.push(a);return k}var r=null,Xa={};
30
- function Ya(a,b){a.pendingChunks++;var d=Wa(a,null,C,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,Za(a,d),d.id;case "rejected":var c=Q(a,b.reason);R(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;Za(a,d)},function(e){d.status=4;e=Q(a,e);R(a,d.id,e);null!==a.destination&&
31
- S(a,a.destination)});return d.id}function $a(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function ab(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:B,_payload:a,_init:$a}}
32
- function T(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===q)return[w,b,d,e];I=0;J=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:ab(e):e}if("string"===typeof b)return[w,b,d,e];if("symbol"===typeof b)return b===ma?e.children:[w,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===q)return[w,b,d,e];switch(b.$$typeof){case B:var g=
33
- b._init;b=g(b._payload);return T(a,b,d,c,e,f);case pa:return a=b.render,I=0,J=f,a(e,void 0);case sa:return T(a,b.type,d,c,e,f);case na:return Aa(b._context,e.value),[w,b,d,{value:e.value,children:e.children,__pop:Xa}]}}throw Error("Unsupported Server Component type: "+Na(b));}function Za(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,bb(a))}
34
- function Wa(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return Za(a,e)},thenableState:null};c.add(e);return e}
35
- function cb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===w&&"1"===d?"$L"+g.toString(16):"$"+g.toString(16);try{var h=a.bundlerConfig,k=c.$$id;g="";var t=h[k];if(t)g=t.name;else{var x=k.lastIndexOf("#");-1!==x&&(g=k.slice(x+1),t=h[k.slice(0,x)]);if(!t)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var y={id:t.id,chunks:t.chunks,name:g,
36
- async:!!c.$$async};a.pendingChunks++;var z=a.nextChunkId++,ia=P(y),A=z.toString(16)+":I"+ia+"\n";var sb=p.encode(A);a.completedImportChunks.push(sb);f.set(e,z);return b[0]===w&&"1"===d?"$L"+z.toString(16):"$"+z.toString(16)}catch(tb){return a.pendingChunks++,b=a.nextChunkId++,d=Q(a,tb),R(a,b,d),"$"+b.toString(16)}}
37
- function Ua(a,b,d,c){switch(c){case w:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===w||c.$$typeof===B);)try{switch(c.$$typeof){case w:var e=c;c=T(a,e.type,e.key,e.ref,e.props,null);break;case B:var f=c._init;c=f(c._payload)}}catch(g){d=g===F?Da():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Wa(a,c,C,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ea(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=Q(a,d);R(a,c,d);return"$L"+
38
- c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===q)return cb(a,b,d,c);if("function"===typeof c.then)return"$@"+Ya(a,c).toString(16);if(c.$$typeof===na)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=db(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===Xa){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;
39
- a.context._currentValue=c===ta?a.context._defaultValue:c;C=a.parent;return}return!M(c)&&(null===c||"object"!==typeof c?a=null:(a=va&&c[va]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===
40
- typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===q)return cb(a,b,d,c);if(c.$$typeof===da)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=eb(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+O(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");
41
- throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+O(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return"$"+f.toString(16);f=c.description;if(Symbol.for(f)!==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.")+O(b,d));a.pendingChunks++;d=a.nextChunkId++;b=
42
- db(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+O(b,d));}
43
- function Q(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||""}function fb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
44
- function R(a,b,d){d={digest:d};b=b.toString(16)+":E"+P(d)+"\n";b=p.encode(b);a.completedErrorChunks.push(b)}function u(a,b,d){var c=a.nextChunkId++;d=P(d);b="H"+b;c=c.toString(16)+":"+b;c=p.encode(c+d+"\n");a.completedHintChunks.push(c)}
45
- function bb(a){var b=Qa.current;Qa.current=Ja;var d=r;H=r=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===f.status){E(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===w){var k=h,t=f.thenableState;f.model=h;h=T(g,k.type,k.key,k.ref,k.props,t);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===w;)k=h,f.model=h,h=T(g,k.type,k.key,k.ref,k.props,null)}var x=eb(g,f.id,h);g.completedJSONChunks.push(x);g.abortableTasks.delete(f);
46
- f.status=1}catch(A){var y=A===F?Da():A;if("object"===typeof y&&null!==y&&"function"===typeof y.then){var z=f.ping;y.then(z,z);f.thenableState=Ea()}else{g.abortableTasks.delete(f);f.status=4;var ia=Q(g,y);R(g,f.id,ia)}}}}null!==a.destination&&S(a,a.destination)}catch(A){Q(a,A),fb(a,A)}finally{Qa.current=b,H=null,r=d}}
47
- function S(a,b){l=new Uint8Array(512);m=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,n(b,d[c]);d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)n(b,e[c]);e.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)a.pendingChunks--,n(b,f[c]);f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,n(b,g[c]);g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&(b.enqueue(new Uint8Array(l.buffer,0,m)),l=null,m=0)}0===a.pendingChunks&&
48
- b.close()}function v(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;S(a,b)}}
49
- function gb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=Q(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;R(a,e,c);d.forEach(function(f){f.status=3;var g="$"+e.toString(16);f=db(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&S(a,a.destination)}catch(f){Q(a,f),fb(a,f)}}
50
- function Va(a){if(a){var b=C;E(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Pa[e]||(Pa[e]=ba.createServerContext(e,ta));Aa(Pa[e],c)}a=C;E(b);return a}return null}function eb(a,b,d){a=P(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return p.encode(b)}function db(a,b,d){a=P(d);b=b.toString(16)+":"+a+"\n";return p.encode(b)}
51
- function hb(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0,e)]);if(!c)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return{id:c.id,chunks:c.chunks,name:d,async:!1}}var U=new Map,ib=new Map;function jb(){}
52
- function kb(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=U.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=U.set.bind(U,e,null);f.then(g,jb);U.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=ib.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)});h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=k});ib.set(a.id,h);return h}return 0<d.length?Promise.all(d):
53
- null}function V(a){if(a.async){var b=ib.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype);
54
- W.prototype.then=function(a,b){switch(this.status){case "resolved_model":lb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function mb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
55
- function nb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&mb(d,b)}}function ob(a,b,d,c,e,f){var g=hb(a._bundlerConfig,b);a=kb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return V(g)});else return V(g);d.then(pb(c,e,f),qb(c));return null}var X=null,Y=null;
56
- function lb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function rb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&nb(d,b)})}
57
- function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new W("resolved_model",c,null,a):new W("pending",null,null,a),d.set(b,c));return c}function pb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&mb(e,c.value))}}function qb(a){return function(b){return nb(a,b)}}
58
- function ub(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=Z(a,c);"resolved_model"===c.status&&lb(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return ob(a,c.id,c.bound,X,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&f.append(h.slice(e.length),g)});return f;case "I":return Infinity;
59
- case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":lb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(pb(c,b,d),qb(c)),null;default:throw a.reason;}}return c}
60
- function vb(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?ub(e,this,f,g):g}};return e}function wb(a){rb(a,Error("Connection closed."))}function xb(a,b,d){var c=hb(a,b);a=kb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=V(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(c)}):Promise.resolve(V(c))}
61
- exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){if(f.startsWith("$ACTION_"))if(f.startsWith("$ACTION_REF_")){e="$ACTION_"+f.slice(12)+":";e=vb(b,e,a);wb(e);e=Z(e,0);e.then(function(){});if("fulfilled"!==e.status)throw e.reason;e=e.value;c=xb(b,e.id,e.bound)}else f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=xb(b,e,null));else d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};
62
- exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=vb(b,"",a);wb(a);return Z(a,0)};
63
- exports.renderToReadableStream=function(a,b,d){var c=Ta(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)gb(c,e.reason);else{var f=function(){gb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){c.flushScheduled=null!==c.destination;bb(c)},pull:function(g){if(1===c.status)c.status=2,ca(g,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=
64
- g;try{S(c,g)}catch(h){Q(c,h),fb(c,h)}}},cancel:function(){}},{highWaterMark:0})};
23
+ var La={getCacheSignal:function(){var a=Ka(),b=a.get(L);void 0===b&&(b=L(),a.set(L,b));return b},getCacheForType:function(a){var b=Ka(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Ma=Array.isArray;function Na(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
24
+ function Oa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ma(a))return"[...]";a=Na(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
25
+ function M(a){if("string"===typeof a)return a;switch(a){case qa:return"Suspense";case ra:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case pa:return M(a.render);case sa:return M(a.type);case x:var b=a._payload;a=a._init;try{return M(a(b))}catch(d){}}return""}
26
+ function N(a,b){var d=Na(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Ma(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?N(g):Oa(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===w)e="<"+M(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?N(k):
27
+ Oa(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Pa=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qa=Pa.ContextRegistry,O=JSON.stringify,Ra=Pa.ReactCurrentDispatcher,Sa=Pa.ReactCurrentCache;function Ta(a){console.error(a)}
28
+ function Ua(a,b,d,c,e){if(null!==Sa.current&&Sa.current!==La)throw Error("Currently React only supports one RSC renderer at a time.");la.current=ka;Sa.current=La;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
29
+ writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?Ta:d,toJSON:function(t,z){return Va(k,this,t,z)}};k.pendingChunks++;b=Wa(c);a=Xa(k,a,b,f);g.push(a);return k}var r=null,Ya={};
30
+ function Za(a,b){a.pendingChunks++;var d=Xa(a,null,y,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,$a(a,d),d.id;case "rejected":var c=P(a,b.reason);Q(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;$a(a,d)},function(e){d.status=4;e=P(a,e);Q(a,d.id,e);null!==a.destination&&
31
+ R(a,a.destination)});return d.id}function ab(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function bb(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:ab}}
32
+ function S(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===q)return[w,b,d,e];I=0;J=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:bb(e):e}if("string"===typeof b)return[w,b,d,e];if("symbol"===typeof b)return b===ma?e.children:[w,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===q)return[w,b,d,e];switch(b.$$typeof){case x:var g=
33
+ b._init;b=g(b._payload);return S(a,b,d,c,e,f);case pa:return a=b.render,I=0,J=f,a(e,void 0);case sa:return S(a,b.type,d,c,e,f);case na:return Aa(b._context,e.value),[w,b,d,{value:e.value,children:e.children,__pop:Ya}]}}throw Error("Unsupported Server Component type: "+Oa(b));}function $a(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,cb(a))}
34
+ function Xa(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return $a(a,e)},thenableState:null};c.add(e);return e}function T(a){return"$"+a.toString(16)}
35
+ function db(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===w&&"1"===d?"$L"+g.toString(16):T(g);try{var h=a.bundlerConfig,k=c.$$id;g="";var t=h[k];if(t)g=t.name;else{var z=k.lastIndexOf("#");-1!==z&&(g=k.slice(z+1),t=h[k.slice(0,z)]);if(!t)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var A={id:t.id,chunks:t.chunks,name:g,async:!!c.$$async};
36
+ a.pendingChunks++;var B=a.nextChunkId++,ja=O(A),C=B.toString(16)+":I"+ja+"\n";var tb=p.encode(C);a.completedImportChunks.push(tb);f.set(e,B);return b[0]===w&&"1"===d?"$L"+B.toString(16):T(B)}catch(ub){return a.pendingChunks++,b=a.nextChunkId++,d=P(a,ub),Q(a,b,d),T(b)}}
37
+ function Va(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 e=c;c=S(a,e.type,e.key,e.ref,e.props,null);break;case x:var f=c._init;c=f(c._payload)}}catch(g){d=g===F?Da():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Xa(a,c,y,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ea(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=P(a,d);Q(a,c,d);return"$L"+
38
+ c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===q)return db(a,b,d,c);if("function"===typeof c.then)return"$@"+Za(a,c).toString(16);if(c.$$typeof===na)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=eb(a,d,"$P"+c),a.completedRegularChunks.push(c)),T(d);if(c===Ya){a=y;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=
39
+ c===ta?a.context._defaultValue:c;y=a.parent;return}return!Ma(c)&&(null===c||"object"!==typeof c?a=null:(a=va&&c[va]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;if(1024<=c.length)return a.pendingChunks+=2,d=a.nextChunkId++,c=p.encode(c),b=c.byteLength,b=d.toString(16)+":T"+b.toString(16)+",",b=p.encode(b),a.completedRegularChunks.push(b,c),T(d);a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;
40
+ if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===q)return db(a,b,d,c);if(c.$$typeof===da)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=fb(a,b,e),a.completedRegularChunks.push(e),d.set(c,b),a=
41
+ "$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+N(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 unless you explicitly expose it by marking it with "use server".'+N(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return T(f);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+
42
+ (c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=eb(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return T(d)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+N(b,d));}
43
+ function P(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||""}function gb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
44
+ function Q(a,b,d){d={digest:d};b=b.toString(16)+":E"+O(d)+"\n";b=p.encode(b);a.completedErrorChunks.push(b)}function u(a,b,d){var c=a.nextChunkId++;d=O(d);b="H"+b;c=c.toString(16)+":"+b;c=p.encode(c+d+"\n");a.completedHintChunks.push(c)}
45
+ function cb(a){var b=Ra.current;Ra.current=Ja;var d=r;H=r=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===f.status){E(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===w){var k=h,t=f.thenableState;f.model=h;h=S(g,k.type,k.key,k.ref,k.props,t);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===w;)k=h,f.model=h,h=S(g,k.type,k.key,k.ref,k.props,null)}var z=fb(g,f.id,h);g.completedRegularChunks.push(z);g.abortableTasks.delete(f);
46
+ f.status=1}catch(C){var A=C===F?Da():C;if("object"===typeof A&&null!==A&&"function"===typeof A.then){var B=f.ping;A.then(B,B);f.thenableState=Ea()}else{g.abortableTasks.delete(f);f.status=4;var ja=P(g,A);Q(g,f.id,ja)}}}}null!==a.destination&&R(a,a.destination)}catch(C){P(a,C),gb(a,C)}finally{Ra.current=b,H=null,r=d}}
47
+ function R(a,b){l=new Uint8Array(512);m=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,n(b,d[c]);d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)n(b,e[c]);e.splice(0,c);var f=a.completedRegularChunks;for(c=0;c<f.length;c++)a.pendingChunks--,n(b,f[c]);f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,n(b,g[c]);g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&(b.enqueue(new Uint8Array(l.buffer,0,m)),l=null,m=0)}0===a.pendingChunks&&
48
+ b.close()}function v(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;R(a,b)}}
49
+ function hb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=P(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;Q(a,e,c);d.forEach(function(f){f.status=3;var g=T(e);f=eb(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(f){P(a,f),gb(a,f)}}
50
+ function Wa(a){if(a){var b=y;E(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Qa[e]||(Qa[e]=ba.createServerContext(e,ta));Aa(Qa[e],c)}a=y;E(b);return a}return null}function fb(a,b,d){a=O(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return p.encode(b)}function eb(a,b,d){a=O(d);b=b.toString(16)+":"+a+"\n";return p.encode(b)}
51
+ function ib(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0,e)]);if(!c)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return{id:c.id,chunks:c.chunks,name:d,async:!1}}var U=new Map,jb=new Map;function kb(){}
52
+ function lb(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=U.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=U.set.bind(U,e,null);f.then(g,kb);U.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=jb.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)});h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=k});jb.set(a.id,h);return h}return 0<d.length?Promise.all(d):
53
+ null}function V(a){if(a.async){var b=jb.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype);
54
+ W.prototype.then=function(a,b){switch(this.status){case "resolved_model":mb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function nb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
55
+ function ob(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&nb(d,b)}}function pb(a,b,d,c,e,f){var g=ib(a._bundlerConfig,b);a=lb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return V(g)});else return V(g);d.then(qb(c,e,f),rb(c));return null}var X=null,Y=null;
56
+ function mb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function sb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&ob(d,b)})}
57
+ function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new W("resolved_model",c,null,a):new W("pending",null,null,a),d.set(b,c));return c}function qb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&nb(e,c.value))}}function rb(a){return function(b){return ob(a,b)}}
58
+ function vb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=Z(a,c);"resolved_model"===c.status&&mb(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return pb(a,c.id,c.bound,X,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&f.append(h.slice(e.length),g)});return f;case "I":return Infinity;
59
+ case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":mb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(qb(c,b,d),rb(c)),null;default:throw a.reason;}}return c}
60
+ function wb(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?vb(e,this,f,g):g}};return e}function xb(a){sb(a,Error("Connection closed."))}function yb(a,b,d){var c=ib(a,b);a=lb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=V(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(c)}):Promise.resolve(V(c))}
61
+ exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){if(f.startsWith("$ACTION_"))if(f.startsWith("$ACTION_REF_")){e="$ACTION_"+f.slice(12)+":";e=wb(b,e,a);xb(e);e=Z(e,0);e.then(function(){});if("fulfilled"!==e.status)throw e.reason;e=e.value;c=yb(b,e.id,e.bound)}else f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=yb(b,e,null));else d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};
62
+ exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=wb(b,"",a);xb(a);return Z(a,0)};
63
+ exports.renderToReadableStream=function(a,b,d){var c=Ua(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)hb(c,e.reason);else{var f=function(){hb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){c.flushScheduled=null!==c.destination;cb(c)},pull:function(g){if(1===c.status)c.status=2,ca(g,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=
64
+ g;try{R(c,g)}catch(h){P(c,h),gb(c,h)}}},cancel:function(){}},{highWaterMark:0})};
@@ -136,6 +136,9 @@ function stringToChunk(content) {
136
136
  return textEncoder.encode(content);
137
137
  }
138
138
  var precomputedChunkSet = new Set() ;
139
+ function byteLengthOfChunk(chunk) {
140
+ return chunk.byteLength;
141
+ }
139
142
  function closeWithError(destination, error) {
140
143
  // $FlowFixMe[method-unbinding]
141
144
  if (typeof destination.error === 'function') {
@@ -1185,7 +1188,7 @@ function createRequest(model, bundlerConfig, onError, context, identifierPrefix)
1185
1188
  pingedTasks: pingedTasks,
1186
1189
  completedImportChunks: [],
1187
1190
  completedHintChunks: [],
1188
- completedJSONChunks: [],
1191
+ completedRegularChunks: [],
1189
1192
  completedErrorChunks: [],
1190
1193
  writtenSymbols: new Map(),
1191
1194
  writtenClientReferences: new Map(),
@@ -1637,11 +1640,20 @@ function serializeServerReference(request, parent, key, serverReference) {
1637
1640
  var metadataId = request.nextChunkId++; // We assume that this object doesn't suspend.
1638
1641
 
1639
1642
  var processedChunk = processModelChunk(request, metadataId, serverReferenceMetadata);
1640
- request.completedJSONChunks.push(processedChunk);
1643
+ request.completedRegularChunks.push(processedChunk);
1641
1644
  writtenServerReferences.set(serverReference, metadataId);
1642
1645
  return serializeServerReferenceID(metadataId);
1643
1646
  }
1644
1647
 
1648
+ function serializeLargeTextString(request, text) {
1649
+ request.pendingChunks += 2;
1650
+ var textId = request.nextChunkId++;
1651
+ var textChunk = stringToChunk(text);
1652
+ var headerChunk = processTextHeader(request, textId, text, byteLengthOfChunk(textChunk));
1653
+ request.completedRegularChunks.push(headerChunk, textChunk);
1654
+ return serializeByValueID(textId);
1655
+ }
1656
+
1645
1657
  function escapeStringValue(value) {
1646
1658
  if (value[0] === '$') {
1647
1659
  // We need to escape $ prefixed strings since we use those to encode
@@ -1833,6 +1845,13 @@ function resolveModelToJSON(request, parent, key, value) {
1833
1845
  }
1834
1846
  }
1835
1847
 
1848
+ if (value.length >= 1024) {
1849
+ // For large strings, we encode them outside the JSON payload so that we
1850
+ // don't have to double encode and double parse the strings. This can also
1851
+ // be more compact in case the string has a lot of escaped characters.
1852
+ return serializeLargeTextString(request, value);
1853
+ }
1854
+
1836
1855
  return escapeStringValue(value);
1837
1856
  }
1838
1857
 
@@ -1971,7 +1990,7 @@ function emitSymbolChunk(request, id, name) {
1971
1990
  function emitProviderChunk(request, id, contextName) {
1972
1991
  var contextReference = serializeProviderReference(contextName);
1973
1992
  var processedChunk = processReferenceChunk(request, id, contextReference);
1974
- request.completedJSONChunks.push(processedChunk);
1993
+ request.completedRegularChunks.push(processedChunk);
1975
1994
  }
1976
1995
 
1977
1996
  function retryTask(request, task) {
@@ -2011,7 +2030,7 @@ function retryTask(request, task) {
2011
2030
  }
2012
2031
 
2013
2032
  var processedChunk = processModelChunk(request, task.id, value);
2014
- request.completedJSONChunks.push(processedChunk);
2033
+ request.completedRegularChunks.push(processedChunk);
2015
2034
  request.abortableTasks.delete(task);
2016
2035
  task.status = COMPLETED;
2017
2036
  } catch (thrownValue) {
@@ -2122,12 +2141,12 @@ function flushCompletedChunks(request, destination) {
2122
2141
 
2123
2142
  hintChunks.splice(0, i); // Next comes model data.
2124
2143
 
2125
- var jsonChunks = request.completedJSONChunks;
2144
+ var regularChunks = request.completedRegularChunks;
2126
2145
  i = 0;
2127
2146
 
2128
- for (; i < jsonChunks.length; i++) {
2147
+ for (; i < regularChunks.length; i++) {
2129
2148
  request.pendingChunks--;
2130
- var _chunk2 = jsonChunks[i];
2149
+ var _chunk2 = regularChunks[i];
2131
2150
 
2132
2151
  var _keepWriting2 = writeChunkAndReturn(destination, _chunk2);
2133
2152
 
@@ -2138,7 +2157,7 @@ function flushCompletedChunks(request, destination) {
2138
2157
  }
2139
2158
  }
2140
2159
 
2141
- jsonChunks.splice(0, i); // Finally, errors are sent. The idea is that it's ok to delay
2160
+ regularChunks.splice(0, i); // Finally, errors are sent. The idea is that it's ok to delay
2142
2161
  // any error messages and prioritize display of other parts of
2143
2162
  // the page.
2144
2163
 
@@ -2328,6 +2347,11 @@ function processHintChunk(request, id, code, model) {
2328
2347
  return stringToChunk(row);
2329
2348
  }
2330
2349
 
2350
+ function processTextHeader(request, id, text, binaryLength) {
2351
+ var row = id.toString(16) + ':T' + binaryLength.toString(16) + ',';
2352
+ return stringToChunk(row);
2353
+ }
2354
+
2331
2355
  // eslint-disable-next-line no-unused-vars
2332
2356
  function resolveServerReference(bundlerConfig, id) {
2333
2357
  var name = '';
@@ -11,54 +11,54 @@
11
11
  var q=Symbol.for("react.client.reference"),da=Symbol.for("react.server.reference"),ja={prefetchDNS:ea,preconnect:fa,preload:ha,preinit:ia};function ea(a,b){if("string"===typeof a){var d=t();if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?u(d,"D",[a,b]):u(d,"D",a),v(d))}}}
12
12
  function fa(a,b){if("string"===typeof a){var d=t();if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null===e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?u(d,"C",[a,b]):u(d,"C",a),v(d))}}}function ha(a,b){if("string"===typeof a){var d=t();if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),u(d,"L",[a,b]),v(d))}}}
13
13
  function ia(a,b){if("string"===typeof a){var d=t();if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),u(d,"I",[a,b]),v(d))}}}
14
- var ka=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,A="function"===typeof AsyncLocalStorage,ma=A?new AsyncLocalStorage:null,B=Symbol.for("react.element"),na=Symbol.for("react.fragment"),oa=Symbol.for("react.provider"),pa=Symbol.for("react.server_context"),qa=Symbol.for("react.forward_ref"),ra=Symbol.for("react.suspense"),sa=Symbol.for("react.suspense_list"),ta=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),ua=Symbol.for("react.default_value"),va=Symbol.for("react.memo_cache_sentinel"),
14
+ var ka=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,w="function"===typeof AsyncLocalStorage,la=w?new AsyncLocalStorage:null,x=Symbol.for("react.element"),na=Symbol.for("react.fragment"),oa=Symbol.for("react.provider"),pa=Symbol.for("react.server_context"),qa=Symbol.for("react.forward_ref"),ra=Symbol.for("react.suspense"),sa=Symbol.for("react.suspense_list"),ta=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),ua=Symbol.for("react.default_value"),va=Symbol.for("react.memo_cache_sentinel"),
15
15
  wa=Symbol.iterator,D=null;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 xa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&xa(a)}
16
16
  function ya(a){var b=a.parent;null!==b&&ya(b);a.context._currentValue=a.value}function za(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):za(a,b)}
17
- function Aa(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):Aa(a,d);b.context._currentValue=b.value}function F(a){var b=D;b!==a&&(null===b?ya(a):null===a?xa(b):b.depth===a.depth?E(b,a):b.depth>a.depth?za(b,a):Aa(b,a),D=a)}function Ba(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 G=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`");
18
- function Ca(){}function Da(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ca,Ca),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}H=b;throw G;}}var H=null;
19
- function Ea(){if(null===H)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=H;H=null;return a}var I=null,J=0,K=null;function Fa(){var a=K;K=null;return a}function Ga(a){return a._currentValue}
20
- var Ka={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:L,useTransition:L,readContext:Ga,useContext:Ga,useReducer:L,useRef:L,useState:L,useInsertionEffect:L,useLayoutEffect:L,useImperativeHandle:L,useEffect:L,useId:Ha,useMutableSource:L,useSyncExternalStore:L,useCacheRefresh:function(){return Ia},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=va;return b},use:Ja};
21
- function L(){throw Error("This Hook is not supported in Server Components.");}function Ia(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ha(){if(null===I)throw Error("useId can only be used while React is rendering");var a=I.identifierCount++;return":"+I.identifierPrefix+"S"+a.toString(32)+":"}
22
- function Ja(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=J;J+=1;null===K&&(K=[]);return Da(K,a,b)}if(a.$$typeof===pa)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function La(){return(new AbortController).signal}function Ma(){var a=t();return a?a.cache:new Map}
23
- var Na={getCacheSignal:function(){var a=Ma(),b=a.get(La);void 0===b&&(b=La(),a.set(La,b));return b},getCacheForType:function(a){var b=Ma(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Oa=Array.isArray;function Pa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
24
- function Qa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Oa(a))return"[...]";a=Pa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
25
- function M(a){if("string"===typeof a)return a;switch(a){case ra:return"Suspense";case sa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case qa:return M(a.render);case ta:return M(a.type);case C:var b=a._payload;a=a._init;try{return M(a(b))}catch(d){}}return""}
26
- function N(a,b){var d=Pa(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Oa(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?N(g):Qa(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===B)e="<"+M(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?N(k):
27
- Qa(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Ra=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sa=Ra.ContextRegistry,O=JSON.stringify,Ta=Ra.ReactCurrentDispatcher,Ua=Ra.ReactCurrentCache;function Va(a){console.error(a)}
28
- function Wa(a,b,d,c,e){if(null!==Ua.current&&Ua.current!==Na)throw Error("Currently React only supports one RSC renderer at a time.");ka.current=ja;Ua.current=Na;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
29
- writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?Va:d,toJSON:function(r,w){return Xa(k,this,r,w)}};k.pendingChunks++;b=Ya(c);a=Za(k,a,b,f);g.push(a);return k}var P=null;function t(){if(P)return P;if(A){var a=ma.getStore();if(a)return a}return null}var $a={};
30
- function ab(a,b){a.pendingChunks++;var d=Za(a,null,D,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,bb(a,d),d.id;case "rejected":var c=Q(a,b.reason);R(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;bb(a,d)},function(e){d.status=4;e=Q(a,e);R(a,d.id,e);null!==a.destination&&
31
- S(a,a.destination)});return d.id}function cb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function db(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:C,_payload:a,_init:cb}}
32
- function T(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===q)return[B,b,d,e];J=0;K=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:db(e):e}if("string"===typeof b)return[B,b,d,e];if("symbol"===typeof b)return b===na?e.children:[B,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===q)return[B,b,d,e];switch(b.$$typeof){case C:var g=
33
- b._init;b=g(b._payload);return T(a,b,d,c,e,f);case qa:return a=b.render,J=0,K=f,a(e,void 0);case ta:return T(a,b.type,d,c,e,f);case oa:return Ba(b._context,e.value),[B,b,d,{value:e.value,children:e.children,__pop:$a}]}}throw Error("Unsupported Server Component type: "+Qa(b));}function bb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setTimeout(function(){return eb(a)},0))}
34
- function Za(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return bb(a,e)},thenableState:null};c.add(e);return e}
35
- function fb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===B&&"1"===d?"$L"+g.toString(16):"$"+g.toString(16);try{var h=a.bundlerConfig,k=c.$$id;g="";var r=h[k];if(r)g=r.name;else{var w=k.lastIndexOf("#");-1!==w&&(g=k.slice(w+1),r=h[k.slice(0,w)]);if(!r)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var x={id:r.id,chunks:r.chunks,name:g,
36
- async:!!c.$$async};a.pendingChunks++;var y=a.nextChunkId++,la=O(x),z=y.toString(16)+":I"+la+"\n";var vb=p.encode(z);a.completedImportChunks.push(vb);f.set(e,y);return b[0]===B&&"1"===d?"$L"+y.toString(16):"$"+y.toString(16)}catch(wb){return a.pendingChunks++,b=a.nextChunkId++,d=Q(a,wb),R(a,b,d),"$"+b.toString(16)}}
37
- function Xa(a,b,d,c){switch(c){case B:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===B||c.$$typeof===C);)try{switch(c.$$typeof){case B:var e=c;c=T(a,e.type,e.key,e.ref,e.props,null);break;case C:var f=c._init;c=f(c._payload)}}catch(g){d=g===G?Ea():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Za(a,c,D,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Fa(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=Q(a,d);R(a,c,d);return"$L"+
38
- c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===q)return fb(a,b,d,c);if("function"===typeof c.then)return"$@"+ab(a,c).toString(16);if(c.$$typeof===oa)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=gb(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===$a){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;
39
- a.context._currentValue=c===ua?a.context._defaultValue:c;D=a.parent;return}return!Oa(c)&&(null===c||"object"!==typeof c?a=null:(a=wa&&c[wa]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===
40
- typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===q)return fb(a,b,d,c);if(c.$$typeof===da)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=hb(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+N(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");
41
- throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+N(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return"$"+f.toString(16);f=c.description;if(Symbol.for(f)!==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.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=
42
- gb(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+N(b,d));}
43
- function Q(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||""}function ib(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
44
- function R(a,b,d){d={digest:d};b=b.toString(16)+":E"+O(d)+"\n";b=p.encode(b);a.completedErrorChunks.push(b)}function u(a,b,d){var c=a.nextChunkId++;d=O(d);b="H"+b;c=c.toString(16)+":"+b;c=p.encode(c+d+"\n");a.completedHintChunks.push(c)}
45
- function eb(a){var b=Ta.current;Ta.current=Ka;var d=P;I=P=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===f.status){F(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===B){var k=h,r=f.thenableState;f.model=h;h=T(g,k.type,k.key,k.ref,k.props,r);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===B;)k=h,f.model=h,h=T(g,k.type,k.key,k.ref,k.props,null)}var w=hb(g,f.id,h);g.completedJSONChunks.push(w);g.abortableTasks.delete(f);
46
- f.status=1}catch(z){var x=z===G?Ea():z;if("object"===typeof x&&null!==x&&"function"===typeof x.then){var y=f.ping;x.then(y,y);f.thenableState=Fa()}else{g.abortableTasks.delete(f);f.status=4;var la=Q(g,x);R(g,f.id,la)}}}}null!==a.destination&&S(a,a.destination)}catch(z){Q(a,z),ib(a,z)}finally{Ta.current=b,I=null,P=d}}
47
- function S(a,b){l=new Uint8Array(512);m=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,n(b,d[c]);d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)n(b,e[c]);e.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)a.pendingChunks--,n(b,f[c]);f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,n(b,g[c]);g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&(b.enqueue(new Uint8Array(l.buffer,0,m)),l=null,m=0)}0===a.pendingChunks&&
48
- b.close()}function jb(a){a.flushScheduled=null!==a.destination;A?setTimeout(function(){return ma.run(a,eb,a)},0):setTimeout(function(){return eb(a)},0)}function v(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setTimeout(function(){return S(a,b)},0)}}
49
- function kb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=Q(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;R(a,e,c);d.forEach(function(f){f.status=3;var g="$"+e.toString(16);f=gb(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&S(a,a.destination)}catch(f){Q(a,f),ib(a,f)}}
50
- function Ya(a){if(a){var b=D;F(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Sa[e]||(Sa[e]=aa.createServerContext(e,ua));Ba(Sa[e],c)}a=D;F(b);return a}return null}function hb(a,b,d){a=O(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return p.encode(b)}function gb(a,b,d){a=O(d);b=b.toString(16)+":"+a+"\n";return p.encode(b)}
51
- function lb(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0,e)]);if(!c)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return{id:c.id,chunks:c.chunks,name:d,async:!1}}var U=new Map,mb=new Map;function nb(){}
52
- function ob(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=U.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=U.set.bind(U,e,null);f.then(g,nb);U.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=mb.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)});h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=k});mb.set(a.id,h);return h}return 0<d.length?Promise.all(d):
53
- null}function V(a){if(a.async){var b=mb.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype);
54
- W.prototype.then=function(a,b){switch(this.status){case "resolved_model":pb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function qb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
55
- function rb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&qb(d,b)}}function sb(a,b,d,c,e,f){var g=lb(a._bundlerConfig,b);a=ob(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return V(g)});else return V(g);d.then(tb(c,e,f),ub(c));return null}var X=null,Y=null;
56
- function pb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function xb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&rb(d,b)})}
57
- function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new W("resolved_model",c,null,a):new W("pending",null,null,a),d.set(b,c));return c}function tb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&qb(e,c.value))}}function ub(a){return function(b){return rb(a,b)}}
58
- function yb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=Z(a,c);"resolved_model"===c.status&&pb(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return sb(a,c.id,c.bound,X,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&f.append(h.slice(e.length),g)});return f;case "I":return Infinity;
59
- case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":pb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(tb(c,b,d),ub(c)),null;default:throw a.reason;}}return c}
60
- function zb(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?yb(e,this,f,g):g}};return e}function Ab(a){xb(a,Error("Connection closed."))}function Bb(a,b,d){var c=lb(a,b);a=ob(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=V(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(c)}):Promise.resolve(V(c))}
61
- exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){if(f.startsWith("$ACTION_"))if(f.startsWith("$ACTION_REF_")){e="$ACTION_"+f.slice(12)+":";e=zb(b,e,a);Ab(e);e=Z(e,0);e.then(function(){});if("fulfilled"!==e.status)throw e.reason;e=e.value;c=Bb(b,e.id,e.bound)}else f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Bb(b,e,null));else d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};
62
- exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=zb(b,"",a);Ab(a);return Z(a,0)};
63
- exports.renderToReadableStream=function(a,b,d){var c=Wa(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)kb(c,e.reason);else{var f=function(){kb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){jb(c)},pull:function(g){if(1===c.status)c.status=2,ca(g,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=g;try{S(c,g)}catch(h){Q(c,h),
64
- ib(c,h)}}},cancel:function(){}},{highWaterMark:0})};
17
+ function Aa(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):Aa(a,d);b.context._currentValue=b.value}function F(a){var b=D;b!==a&&(null===b?ya(a):null===a?xa(b):b.depth===a.depth?E(b,a):b.depth>a.depth?za(b,a):Aa(b,a),D=a)}function Ba(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 Ca=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`");
18
+ function Da(){}function Ea(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Da,Da),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}G=b;throw Ca;}}var G=null;
19
+ function Fa(){if(null===G)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=G;G=null;return a}var H=null,I=0,J=null;function Ga(){var a=J;J=null;return a}function Ha(a){return a._currentValue}
20
+ var La={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:K,useTransition:K,readContext:Ha,useContext:Ha,useReducer:K,useRef:K,useState:K,useInsertionEffect:K,useLayoutEffect:K,useImperativeHandle:K,useEffect:K,useId:Ia,useMutableSource:K,useSyncExternalStore:K,useCacheRefresh:function(){return Ja},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=va;return b},use:Ka};
21
+ function K(){throw Error("This Hook is not supported in Server Components.");}function Ja(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ia(){if(null===H)throw Error("useId can only be used while React is rendering");var a=H.identifierCount++;return":"+H.identifierPrefix+"S"+a.toString(32)+":"}
22
+ function Ka(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=I;I+=1;null===J&&(J=[]);return Ea(J,a,b)}if(a.$$typeof===pa)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Ma(){return(new AbortController).signal}function Na(){var a=t();return a?a.cache:new Map}
23
+ var Oa={getCacheSignal:function(){var a=Na(),b=a.get(Ma);void 0===b&&(b=Ma(),a.set(Ma,b));return b},getCacheForType:function(a){var b=Na(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Pa=Array.isArray;function Qa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
24
+ function Ra(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Pa(a))return"[...]";a=Qa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
25
+ function L(a){if("string"===typeof a)return a;switch(a){case ra:return"Suspense";case sa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case qa:return L(a.render);case ta:return L(a.type);case C:var b=a._payload;a=a._init;try{return L(a(b))}catch(d){}}return""}
26
+ function M(a,b){var d=Qa(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Pa(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?M(g):Ra(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===x)e="<"+L(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?M(k):
27
+ Ra(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Sa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ta=Sa.ContextRegistry,N=JSON.stringify,Ua=Sa.ReactCurrentDispatcher,Va=Sa.ReactCurrentCache;function Wa(a){console.error(a)}
28
+ function Xa(a,b,d,c,e){if(null!==Va.current&&Va.current!==Oa)throw Error("Currently React only supports one RSC renderer at a time.");ka.current=ja;Va.current=Oa;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
29
+ writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?Wa:d,toJSON:function(r,y){return Ya(k,this,r,y)}};k.pendingChunks++;b=Za(c);a=$a(k,a,b,f);g.push(a);return k}var O=null;function t(){if(O)return O;if(w){var a=la.getStore();if(a)return a}return null}var ab={};
30
+ function bb(a,b){a.pendingChunks++;var d=$a(a,null,D,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,cb(a,d),d.id;case "rejected":var c=P(a,b.reason);Q(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;cb(a,d)},function(e){d.status=4;e=P(a,e);Q(a,d.id,e);null!==a.destination&&
31
+ R(a,a.destination)});return d.id}function db(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function eb(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:C,_payload:a,_init:db}}
32
+ function S(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===q)return[x,b,d,e];I=0;J=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:eb(e):e}if("string"===typeof b)return[x,b,d,e];if("symbol"===typeof b)return b===na?e.children:[x,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===q)return[x,b,d,e];switch(b.$$typeof){case C:var g=
33
+ b._init;b=g(b._payload);return S(a,b,d,c,e,f);case qa:return a=b.render,I=0,J=f,a(e,void 0);case ta:return S(a,b.type,d,c,e,f);case oa:return Ba(b._context,e.value),[x,b,d,{value:e.value,children:e.children,__pop:ab}]}}throw Error("Unsupported Server Component type: "+Ra(b));}function cb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setTimeout(function(){return fb(a)},0))}
34
+ function $a(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return cb(a,e)},thenableState:null};c.add(e);return e}function T(a){return"$"+a.toString(16)}
35
+ function gb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===x&&"1"===d?"$L"+g.toString(16):T(g);try{var h=a.bundlerConfig,k=c.$$id;g="";var r=h[k];if(r)g=r.name;else{var y=k.lastIndexOf("#");-1!==y&&(g=k.slice(y+1),r=h[k.slice(0,y)]);if(!r)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var z={id:r.id,chunks:r.chunks,name:g,async:!!c.$$async};
36
+ a.pendingChunks++;var A=a.nextChunkId++,ma=N(z),B=A.toString(16)+":I"+ma+"\n";var wb=p.encode(B);a.completedImportChunks.push(wb);f.set(e,A);return b[0]===x&&"1"===d?"$L"+A.toString(16):T(A)}catch(xb){return a.pendingChunks++,b=a.nextChunkId++,d=P(a,xb),Q(a,b,d),T(b)}}
37
+ function Ya(a,b,d,c){switch(c){case x:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===x||c.$$typeof===C);)try{switch(c.$$typeof){case x:var e=c;c=S(a,e.type,e.key,e.ref,e.props,null);break;case C:var f=c._init;c=f(c._payload)}}catch(g){d=g===Ca?Fa():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=$a(a,c,D,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ga(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=P(a,d);Q(a,c,d);return"$L"+
38
+ c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===q)return gb(a,b,d,c);if("function"===typeof c.then)return"$@"+bb(a,c).toString(16);if(c.$$typeof===oa)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=hb(a,d,"$P"+c),a.completedRegularChunks.push(c)),T(d);if(c===ab){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=
39
+ c===ua?a.context._defaultValue:c;D=a.parent;return}return!Pa(c)&&(null===c||"object"!==typeof c?a=null:(a=wa&&c[wa]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;if(1024<=c.length)return a.pendingChunks+=2,d=a.nextChunkId++,c=p.encode(c),b=c.byteLength,b=d.toString(16)+":T"+b.toString(16)+",",b=p.encode(b),a.completedRegularChunks.push(b,c),T(d);a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;
40
+ if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===q)return gb(a,b,d,c);if(c.$$typeof===da)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=ib(a,b,e),a.completedRegularChunks.push(e),d.set(c,b),a=
41
+ "$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+M(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 unless you explicitly expose it by marking it with "use server".'+M(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return T(f);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+
42
+ (c.description+") cannot be found among global symbols.")+M(b,d));a.pendingChunks++;d=a.nextChunkId++;b=hb(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return T(d)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+M(b,d));}
43
+ function P(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||""}function jb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
44
+ function Q(a,b,d){d={digest:d};b=b.toString(16)+":E"+N(d)+"\n";b=p.encode(b);a.completedErrorChunks.push(b)}function u(a,b,d){var c=a.nextChunkId++;d=N(d);b="H"+b;c=c.toString(16)+":"+b;c=p.encode(c+d+"\n");a.completedHintChunks.push(c)}
45
+ function fb(a){var b=Ua.current;Ua.current=La;var d=O;H=O=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===f.status){F(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===x){var k=h,r=f.thenableState;f.model=h;h=S(g,k.type,k.key,k.ref,k.props,r);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===x;)k=h,f.model=h,h=S(g,k.type,k.key,k.ref,k.props,null)}var y=ib(g,f.id,h);g.completedRegularChunks.push(y);g.abortableTasks.delete(f);
46
+ f.status=1}catch(B){var z=B===Ca?Fa():B;if("object"===typeof z&&null!==z&&"function"===typeof z.then){var A=f.ping;z.then(A,A);f.thenableState=Ga()}else{g.abortableTasks.delete(f);f.status=4;var ma=P(g,z);Q(g,f.id,ma)}}}}null!==a.destination&&R(a,a.destination)}catch(B){P(a,B),jb(a,B)}finally{Ua.current=b,H=null,O=d}}
47
+ function R(a,b){l=new Uint8Array(512);m=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,n(b,d[c]);d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)n(b,e[c]);e.splice(0,c);var f=a.completedRegularChunks;for(c=0;c<f.length;c++)a.pendingChunks--,n(b,f[c]);f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,n(b,g[c]);g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&(b.enqueue(new Uint8Array(l.buffer,0,m)),l=null,m=0)}0===a.pendingChunks&&
48
+ b.close()}function kb(a){a.flushScheduled=null!==a.destination;w?setTimeout(function(){return la.run(a,fb,a)},0):setTimeout(function(){return fb(a)},0)}function v(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setTimeout(function(){return R(a,b)},0)}}
49
+ function lb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=P(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;Q(a,e,c);d.forEach(function(f){f.status=3;var g=T(e);f=hb(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(f){P(a,f),jb(a,f)}}
50
+ function Za(a){if(a){var b=D;F(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Ta[e]||(Ta[e]=aa.createServerContext(e,ua));Ba(Ta[e],c)}a=D;F(b);return a}return null}function ib(a,b,d){a=N(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return p.encode(b)}function hb(a,b,d){a=N(d);b=b.toString(16)+":"+a+"\n";return p.encode(b)}
51
+ function mb(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0,e)]);if(!c)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return{id:c.id,chunks:c.chunks,name:d,async:!1}}var U=new Map,nb=new Map;function ob(){}
52
+ function pb(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=U.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=U.set.bind(U,e,null);f.then(g,ob);U.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=nb.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)});h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=k});nb.set(a.id,h);return h}return 0<d.length?Promise.all(d):
53
+ null}function V(a){if(a.async){var b=nb.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype);
54
+ W.prototype.then=function(a,b){switch(this.status){case "resolved_model":qb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function rb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
55
+ function sb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&rb(d,b)}}function tb(a,b,d,c,e,f){var g=mb(a._bundlerConfig,b);a=pb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return V(g)});else return V(g);d.then(ub(c,e,f),vb(c));return null}var X=null,Y=null;
56
+ function qb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function yb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&sb(d,b)})}
57
+ function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new W("resolved_model",c,null,a):new W("pending",null,null,a),d.set(b,c));return c}function ub(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&rb(e,c.value))}}function vb(a){return function(b){return sb(a,b)}}
58
+ function zb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=Z(a,c);"resolved_model"===c.status&&qb(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return tb(a,c.id,c.bound,X,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&f.append(h.slice(e.length),g)});return f;case "I":return Infinity;
59
+ case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":qb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(ub(c,b,d),vb(c)),null;default:throw a.reason;}}return c}
60
+ function Ab(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?zb(e,this,f,g):g}};return e}function Bb(a){yb(a,Error("Connection closed."))}function Cb(a,b,d){var c=mb(a,b);a=pb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=V(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(c)}):Promise.resolve(V(c))}
61
+ exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){if(f.startsWith("$ACTION_"))if(f.startsWith("$ACTION_REF_")){e="$ACTION_"+f.slice(12)+":";e=Ab(b,e,a);Bb(e);e=Z(e,0);e.then(function(){});if("fulfilled"!==e.status)throw e.reason;e=e.value;c=Cb(b,e.id,e.bound)}else f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Cb(b,e,null));else d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};
62
+ exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Ab(b,"",a);Bb(a);return Z(a,0)};
63
+ exports.renderToReadableStream=function(a,b,d){var c=Xa(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)lb(c,e.reason);else{var f=function(){lb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){kb(c)},pull:function(g){if(1===c.status)c.status=2,ca(g,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=g;try{R(c,g)}catch(h){P(c,h),
64
+ jb(c,h)}}},cancel:function(){}},{highWaterMark:0})};