UNPKG

next

Version:

The React Framework

74 lines (73 loc) • 25.8 kB
/** * @license React * react-server-dom-webpack-server.browser.production.min.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict';var aa=require("react-dom"),ba=require("react"),l=null,m=0;function n(a,b){if(0!==b.byteLength)if(512<b.byteLength)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.byteLength&&(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.byteLength}return!0}var p=new TextEncoder;function ca(a,b){"function"===typeof a.error?a.error(b):a.close()} var q=Symbol.for("react.client.reference"),r=Symbol.for("react.server.reference");function t(a,b,d){return Object.defineProperties(a,{$$typeof:{value:q},$$id:{value:b},$$async:{value:d}})}var da=Function.prototype.bind,ea=Array.prototype.slice;function fa(){var a=da.apply(this,arguments);if(this.$$typeof===r){var b=ea.call(arguments,1);a.$$typeof=r;a.$$id=this.$$id;a.$$bound=this.$$bound?this.$$bound.concat(b):b}return a} var ha=Promise.prototype,ia={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "displayName":return;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case "Provider":throw Error("Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider."); }throw Error("Cannot access "+(String(a.name)+"."+String(b))+" on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.");},set:function(){throw Error("Cannot assign to a client module from a server module.");}},ja={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive]; case "__esModule":var d=a.$$id;a.default=t(function(){throw Error("Attempted to call the default export of "+d+" from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var c=t({},a.$$id,!0),e=new Proxy(c,ja);a.status="fulfilled";a.value=e;return a.then=t(function(f){return Promise.resolve(f(e))}, a.$$id+"#then",!1)}c=a[b];c||(c=t(function(){throw Error("Attempted to call "+String(b)+"() from the server but "+String(b)+" is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");},a.$$id+"#"+b,a.$$async),Object.defineProperty(c,"name",{value:b}),c=a[b]=new Proxy(c,ia));return c},getPrototypeOf:function(){return ha},set:function(){throw Error("Cannot assign to a client module from a server module."); }},pa={prefetchDNS:ka,preconnect:la,preload:na,preinit:oa};function ka(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?w(d,"D",[a,b]):w(d,"D",a),x(d))}}}function la(a,b){if("string"===typeof a){var d=v?v: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?w(d,"C",[a,b]):w(d,"C",a),x(d))}}} function na(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),w(d,"L",[a,b]),x(d))}}}function oa(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),w(d,"I",[a,b]),x(d))}}} var qa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,y=Symbol.for("react.element"),ra=Symbol.for("react.fragment"),sa=Symbol.for("react.provider"),ta=Symbol.for("react.server_context"),ua=Symbol.for("react.forward_ref"),va=Symbol.for("react.suspense"),wa=Symbol.for("react.suspense_list"),xa=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),ya=Symbol.for("react.default_value"),za=Symbol.for("react.memo_cache_sentinel"),Aa=Symbol.iterator,E=null; function F(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.");F(a,d);b.context._currentValue=b.value}}}function Ba(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Ba(a)} function Ca(a){var b=a.parent;null!==b&&Ca(b);a.context._currentValue=a.value}function Da(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?F(a,b):Da(a,b)} function Ea(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?F(a,d):Ea(a,d);b.context._currentValue=b.value}function Fa(a){var b=E;b!==a&&(null===b?Ca(a):null===a?Ba(b):b.depth===a.depth?F(b,a):b.depth>a.depth?Da(b,a):Ea(b,a),E=a)}function Ga(a,b){var d=a._currentValue;a._currentValue=b;var c=E;return E=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Ha=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`"); function Ia(){}function Ja(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ia,Ia),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 Ha;}}var G=null; function Ka(){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 La(){var a=J;J=null;return a}function Ma(a){return a._currentValue} var Qa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:K,useTransition:K,readContext:Ma,useContext:Ma,useReducer:K,useRef:K,useState:K,useInsertionEffect:K,useLayoutEffect:K,useImperativeHandle:K,useEffect:K,useId:Na,useSyncExternalStore:K,useCacheRefresh:function(){return Oa},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=za;return b},use:Pa}; function K(){throw Error("This Hook is not supported in Server Components.");}function Oa(){throw Error("Refreshing the cache is not supported in Server Components.");}function Na(){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)+":"} function Pa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=I;I+=1;null===J&&(J=[]);return Ja(J,a,b)}if(a.$$typeof===ta)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Ra(){return(new AbortController).signal}function Sa(){var a=v?v:null;return a?a.cache:new Map} var Ta={getCacheSignal:function(){var a=Sa(),b=a.get(Ra);void 0===b&&(b=Ra(),a.set(Ra,b));return b},getCacheForType:function(a){var b=Sa(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Ua=Array.isArray;function Va(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})} function Wa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ua(a))return"[...]";a=Va(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}} function L(a){if("string"===typeof a)return a;switch(a){case va:return"Suspense";case wa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ua:return L(a.render);case xa:return L(a.type);case z:var b=a._payload;a=a._init;try{return L(a(b))}catch(d){}}return""} function M(a,b){var d=Va(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Ua(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):Wa(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===y)e="<"+L(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var k=f[g],h=JSON.stringify(k);e+=('"'+k+'"'===h?k:h)+": ";h=a[k];h="object"===typeof h&&null!==h?M(h): Wa(h);k===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Xa=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ya=Xa.ContextRegistry,N=JSON.stringify,Za=Xa.ReactCurrentDispatcher,$a=Xa.ReactCurrentCache;function ab(a){console.error(a)} function bb(a,b,d,c,e){if(null!==$a.current&&$a.current!==Ta)throw Error("Currently React only supports one RSC renderer at a time.");qa.current=pa;$a.current=Ta;var f=new Set,g=[],k=new Set,h={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map, writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?ab:d,toJSON:function(u,A){return cb(h,this,u,A)}};h.pendingChunks++;b=db(c);a=eb(h,a,b,f);g.push(a);return h}var v=null,fb={}; function gb(a,b){a.pendingChunks++;var d=eb(a,null,E,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,hb(a,d),d.id;case "rejected":var c=O(a,b.reason);P(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;hb(a,d)},function(e){d.status=4;e=O(a,e);P(a,d.id,e);null!==a.destination&& Q(a,a.destination)});return d.id}function ib(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function jb(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:z,_payload:a,_init:ib}} function R(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[y,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:jb(e):e}if("string"===typeof b)return[y,b,d,e];if("symbol"===typeof b)return b===ra?e.children:[y,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===q)return[y,b,d,e];switch(b.$$typeof){case z:var g= b._init;b=g(b._payload);return R(a,b,d,c,e,f);case ua:return a=b.render,I=0,J=f,a(e,void 0);case xa:return R(a,b.type,d,c,e,f);case sa:return Ga(b._context,e.value),[y,b,d,{value:e.value,children:e.children,__pop:fb}]}}throw Error("Unsupported Server Component type: "+Wa(b));}function hb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,kb(a))} function eb(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return hb(a,e)},thenableState:null};c.add(e);return e}function S(a){return"$"+a.toString(16)} function lb(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]===y&&"1"===d?"$L"+g.toString(16):S(g);try{var k=a.bundlerConfig,h=c.$$id;g="";var u=k[h];if(u)g=u.name;else{var A=h.lastIndexOf("#");-1!==A&&(g=h.slice(A+1),u=k[h.slice(0,A)]);if(!u)throw Error('Could not find the module "'+h+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var B={id:u.id,chunks:u.chunks,name:g,async:!!c.$$async}; a.pendingChunks++;var C=a.nextChunkId++,ma=N(B),D=C.toString(16)+":I"+ma+"\n";var Db=p.encode(D);a.completedImportChunks.push(Db);f.set(e,C);return b[0]===y&&"1"===d?"$L"+C.toString(16):S(C)}catch(Eb){return a.pendingChunks++,b=a.nextChunkId++,d=O(a,Eb),P(a,b,d),S(b)}}function mb(a,b){a.pendingChunks++;var d=a.nextChunkId++;b=nb(a,d,b);a.completedRegularChunks.push(b);return d} function T(a,b,d){a.pendingChunks+=2;var c=a.nextChunkId++,e=new Uint8Array(d.buffer,d.byteOffset,d.byteLength);d=512<d.byteLength?e.slice():e;e=d.byteLength;b=c.toString(16)+":"+b+e.toString(16)+",";b=p.encode(b);a.completedRegularChunks.push(b,d);return S(c)} function cb(a,b,d,c){switch(c){case y:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===y||c.$$typeof===z);)try{switch(c.$$typeof){case y:var e=c;c=R(a,e.type,e.key,e.ref,e.props,null);break;case z:var f=c._init;c=f(c._payload)}}catch(g){d=g===Ha?Ka():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=eb(a,c,E,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=La(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=O(a,d);P(a,c,d);return"$L"+ c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===q)return lb(a,b,d,c);if("function"===typeof c.then)return"$@"+gb(a,c).toString(16);if(c.$$typeof===sa)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=ob(a,d,"$P"+c),a.completedRegularChunks.push(c)),S(d);if(c===fb){a=E;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===ya?a.context._defaultValue:c;E=a.parent;return}return c instanceof Map?"$Q"+mb(a,Array.from(c)).toString(16):c instanceof Set?"$W"+mb(a,Array.from(c)).toString(16):c instanceof ArrayBuffer?T(a,"A",new Uint8Array(c)):c instanceof Int8Array?T(a,"C",c):c instanceof Uint8Array?T(a,"c",c):c instanceof Uint8ClampedArray?T(a,"U",c):c instanceof Int16Array?T(a,"S",c):c instanceof Uint16Array?T(a,"s",c):c instanceof Int32Array?T(a,"L",c):c instanceof Uint32Array?T(a,"l",c):c instanceof Float32Array?T(a, "F",c):c instanceof Float64Array?T(a,"D",c):c instanceof BigInt64Array?T(a,"N",c):c instanceof BigUint64Array?T(a,"m",c):c instanceof DataView?T(a,"V",c):!Ua(c)&&(null===c||"object"!==typeof c?a=null:(a=Aa&&c[Aa]||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),S(d);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"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===q)return lb(a,b,d,c);if(c.$$typeof===r)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,b={id:c.$$id,bound:b?Promise.resolve(b): null},a=mb(a,b),d.set(c,a),a="$F"+a.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 S(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("+(c.description+") cannot be found among global symbols.")+M(b,d));a.pendingChunks++;d=a.nextChunkId++;b=ob(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return S(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));} function O(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 pb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)} function P(a,b,d){d={digest:d};b=b.toString(16)+":E"+N(d)+"\n";b=p.encode(b);a.completedErrorChunks.push(b)}function w(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)} function kb(a){var b=Za.current;Za.current=Qa;var d=v;H=v=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){Fa(f.context);try{var k=f.model;if("object"===typeof k&&null!==k&&k.$$typeof===y){var h=k,u=f.thenableState;f.model=k;k=R(g,h.type,h.key,h.ref,h.props,u);for(f.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===y;)h=k,f.model=k,k=R(g,h.type,h.key,h.ref,h.props,null)}var A=nb(g,f.id,k);g.completedRegularChunks.push(A);g.abortableTasks.delete(f); f.status=1}catch(D){var B=D===Ha?Ka():D;if("object"===typeof B&&null!==B&&"function"===typeof B.then){var C=f.ping;B.then(C,C);f.thenableState=La()}else{g.abortableTasks.delete(f);f.status=4;var ma=O(g,B);P(g,f.id,ma)}}}}null!==a.destination&&Q(a,a.destination)}catch(D){O(a,D),pb(a,D)}finally{Za.current=b,H=null,v=d}} function Q(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&& b.close()}function x(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;Q(a,b)}} function qb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=O(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;P(a,e,c);d.forEach(function(f){f.status=3;var g=S(e);f=ob(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&Q(a,a.destination)}catch(f){O(a,f),pb(a,f)}} function db(a){if(a){var b=E;Fa(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Ya[e]||(Ya[e]=ba.createServerContext(e,ya));Ga(Ya[e],c)}a=E;Fa(b);return a}return null}function nb(a,b,d){a=N(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return p.encode(b)}function ob(a,b,d){a=N(d);b=b.toString(16)+":"+a+"\n";return p.encode(b)} function rb(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; function sb(a){var b=globalThis.__next_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(d){b.status="fulfilled";b.value=d},function(d){b.status="rejected";b.reason=d});return b}function tb(){} function ub(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=globalThis.__next_chunk_load__(e);d.push(f);var g=U.set.bind(U,e,null);f.then(g,tb);U.set(e,f)}else null!==f&&d.push(f)}return a.async?0===d.length?sb(a.id):Promise.all(d).then(function(){return sb(a.id)}):0<d.length?Promise.all(d):null} function V(a){var b=globalThis.__next_require__(a.id);if(a.async&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;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); W.prototype.then=function(a,b){switch(this.status){case "resolved_model":vb(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 wb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)} function xb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&wb(d,b)}}function yb(a,b,d,c,e,f){var g=rb(a._bundlerConfig,b);a=ub(g);if(d)d=Promise.all([d,a]).then(function(k){k=k[0];var h=V(g);return h.bind.apply(h,[null].concat(k))});else if(a)d=Promise.resolve(a).then(function(){return V(g)});else return V(g);d.then(zb(c,e,f),Ab(c));return null}var X=null,Y=null; function vb(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 Bb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&xb(d,b)})} 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 zb(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&&wb(e,c.value))}}function Ab(a){return function(b){return xb(a,b)}} function Cb(a,b){a=Z(a,b);"resolved_model"===a.status&&vb(a);if("fulfilled"!==a.status)throw a.reason;return a.value} function Fb(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":return c=parseInt(c.slice(2),16),c=Cb(a,c),yb(a,c.id,c.bound,X,b,d);case "Q":return b=parseInt(c.slice(2),16),a=Cb(a,b),new Map(a);case "W":return b=parseInt(c.slice(2),16),a=Cb(a,b),new Set(a);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,k){k.startsWith(e)&&f.append(k.slice(e.length), g)});return f;case "I":return Infinity;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":vb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(zb(c,b,d),Ab(c)),null;default:throw a.reason;}}return c} function Gb(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?Fb(e,this,f,g):g}};return e}function Hb(a){Bb(a,Error("Connection closed."))}function Ib(a,b,d){var c=rb(a,b);a=ub(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))} exports.createClientModuleProxy=function(a){a=t({},a,!1);return new Proxy(a,ja)}; 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=Gb(b,e,a);Hb(e);e=Z(e,0);e.then(function(){});if("fulfilled"!==e.status)throw e.reason;e=e.value;c=Ib(b,e.id,e.bound)}else f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Ib(b,e,null));else d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})}; exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Gb(b,"",a);Hb(a);return Z(a,0)};exports.registerClientReference=function(a,b,d){return t(a,b+"#"+d,!1)};exports.registerServerReference=function(a,b,d){return Object.defineProperties(a,{$$typeof:{value:r},$$id:{value:null===d?b:b+"#"+d},$$bound:{value:null},bind:{value:fa}})}; exports.renderToReadableStream=function(a,b,d){var c=bb(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)qb(c,e.reason);else{var f=function(){qb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){c.flushScheduled=null!==c.destination;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{Q(c,g)}catch(k){O(c,k),pb(c,k)}}},cancel:function(){}},{highWaterMark:0})};