generated from erangel1/generic-template
initial commit. phase 1 complete
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Generated
Vendored
+2199
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+1628
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+38
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
React
|
||||
react-server-dom-webpack-client.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 r=require("react-dom"),t={stream:!0},u=Object.prototype.hasOwnProperty;function v(a,b){if(a){var c=a[b[0]];if(a=c[b[2]])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b[2]}return 4===b.length?[a.id,a.chunks,c,1]:[a.id,a.chunks,c]}return b}var w=new Map;
|
||||
function x(a){var b=__webpack_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(c){b.status="fulfilled";b.value=c},function(c){b.status="rejected";b.reason=c});return b}function y(){}
|
||||
function z(a){for(var b=a[1],c=[],e=0;e<b.length;){var l=b[e++],k=b[e++],n=w.get(l);void 0===n?(A.set(l,k),k=__webpack_chunk_load__(l),c.push(k),n=w.set.bind(w,l,null),k.then(n,y),w.set(l,k)):null!==n&&c.push(n)}return 4===a.length?0===c.length?x(a[0]):Promise.all(c).then(function(){return x(a[0])}):0<c.length?Promise.all(c):null}var A=new Map,B=__webpack_require__.u;__webpack_require__.u=function(a){var b=A.get(a);return void 0!==b?b:B(a)};
|
||||
var C=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,E=Symbol.for("react.element"),F=Symbol.for("react.lazy"),H=Symbol.iterator;function I(a){if(null===a||"object"!==typeof a)return null;a=H&&a[H]||a["@@iterator"];return"function"===typeof a?a:null}var aa=Array.isArray,J=Object.getPrototypeOf,ba=Object.prototype,K=new WeakMap;function ca(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}
|
||||
function da(a,b,c,e){function l(m,d){if(null===d)return null;if("object"===typeof d){if("function"===typeof d.then){null===g&&(g=new FormData);n++;var h=k++;d.then(function(p){p=JSON.stringify(p,l);var q=g;q.append(b+h,p);n--;0===n&&c(q)},function(p){e(p)});return"$@"+h.toString(16)}if(aa(d))return d;if(d instanceof FormData){null===g&&(g=new FormData);var f=g;m=k++;var D=b+m+"_";d.forEach(function(p,q){f.append(D+q,p)});return"$K"+m.toString(16)}if(d instanceof Map)return d=JSON.stringify(Array.from(d),
|
||||
l),null===g&&(g=new FormData),m=k++,g.append(b+m,d),"$Q"+m.toString(16);if(d instanceof Set)return d=JSON.stringify(Array.from(d),l),null===g&&(g=new FormData),m=k++,g.append(b+m,d),"$W"+m.toString(16);if(I(d))return Array.from(d);m=J(d);if(m!==ba&&(null===m||null!==J(m)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return d}if("string"===typeof d){if("Z"===d[d.length-1]&&this[m]instanceof Date)return"$D"+d;
|
||||
d="$"===d[0]?"$"+d:d;return d}if("boolean"===typeof d)return d;if("number"===typeof d)return ca(d);if("undefined"===typeof d)return"$undefined";if("function"===typeof d){d=K.get(d);if(void 0!==d)return d=JSON.stringify(d,l),null===g&&(g=new FormData),m=k++,g.set(b+m,d),"$h"+m.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof d){m=d.description;if(Symbol.for(m)!==d)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+
|
||||
(d.description+") cannot be found among global symbols."));return"$S"+m}if("bigint"===typeof d)return"$n"+d.toString(10);throw Error("Type "+typeof d+" is not supported as an argument to a Server Function.");}var k=1,n=0,g=null;a=JSON.stringify(a,l);null===g?c(a):(g.set(b+"0",a),0===n&&c(g))}function ea(a,b){K.set(a,b)}function L(a,b,c,e){this.status=a;this.value=b;this.reason=c;this._response=e}L.prototype=Object.create(Promise.prototype);
|
||||
L.prototype.then=function(a,b){switch(this.status){case "resolved_model":M(this);break;case "resolved_module":N(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":case "cyclic":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 fa(a){switch(a.status){case "resolved_model":M(a);break;case "resolved_module":N(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;default:throw a.reason;}}function O(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function Q(a,b,c){switch(a.status){case "fulfilled":O(b,a.value);break;case "pending":case "blocked":case "cyclic":a.value=b;a.reason=c;break;case "rejected":c&&O(c,a.reason)}}
|
||||
function R(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&O(c,b)}}function S(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,e=a.reason;a.status="resolved_module";a.value=b;null!==c&&(N(a),Q(a,c,e))}}var T=null,U=null;
|
||||
function M(a){var b=T,c=U;T=a;U=null;var e=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var l=JSON.parse(e,a._response._fromJSON);if(null!==U&&0<U.deps)U.value=l,a.status="blocked",a.value=null,a.reason=null;else{var k=a.value;a.status="fulfilled";a.value=l;null!==k&&O(k,l)}}catch(n){a.status="rejected",a.reason=n}finally{T=b,U=c}}
|
||||
function N(a){try{var b=a.value,c=__webpack_require__(b[0]);if(4===b.length&&"function"===typeof c.then)if("fulfilled"===c.status)c=c.value;else throw c.reason;var e="*"===b[2]?c:""===b[2]?c.__esModule?c.default:c:u.call(c,b[2])?c[b[2]]:void 0;a.status="fulfilled";a.value=e}catch(l){a.status="rejected",a.reason=l}}function V(a,b){a._chunks.forEach(function(c){"pending"===c.status&&R(c,b)})}function W(a,b){var c=a._chunks,e=c.get(b);e||(e=new L("pending",null,null,a),c.set(b,e));return e}
|
||||
function ha(a,b,c,e){if(U){var l=U;e||l.deps++}else l=U={deps:e?0:1,value:null};return function(k){b[c]=k;l.deps--;0===l.deps&&"blocked"===a.status&&(k=a.value,a.status="fulfilled",a.value=l.value,null!==k&&O(k,l.value))}}function ia(a){return function(b){return R(a,b)}}
|
||||
function ja(a,b){function c(){var l=Array.prototype.slice.call(arguments),k=b.bound;return k?"fulfilled"===k.status?e(b.id,k.value.concat(l)):Promise.resolve(k).then(function(n){return e(b.id,n.concat(l))}):e(b.id,l)}var e=a._callServer;K.set(c,b);return c}function X(a,b){a=W(a,b);switch(a.status){case "resolved_model":M(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason;}}
|
||||
function ka(a,b,c,e){if("$"===e[0]){if("$"===e)return E;switch(e[1]){case "$":return e.slice(1);case "L":return b=parseInt(e.slice(2),16),a=W(a,b),{$$typeof:F,_payload:a,_init:fa};case "@":if(2===e.length)return new Promise(function(){});b=parseInt(e.slice(2),16);return W(a,b);case "S":return Symbol.for(e.slice(2));case "h":return b=parseInt(e.slice(2),16),b=X(a,b),ja(a,b);case "Q":return b=parseInt(e.slice(2),16),a=X(a,b),new Map(a);case "W":return b=parseInt(e.slice(2),16),a=X(a,b),new Set(a);case "I":return Infinity;
|
||||
case "-":return"$-0"===e?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(e.slice(2)));case "n":return BigInt(e.slice(2));default:e=parseInt(e.slice(1),16);a=W(a,e);switch(a.status){case "resolved_model":M(a);break;case "resolved_module":N(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return e=T,a.then(ha(e,b,c,"cyclic"===a.status),ia(e)),null;default:throw a.reason;}}}return e}
|
||||
function la(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function Y(a,b,c,e,l){var k=new Map;a={_bundlerConfig:a,_moduleLoading:b,_callServer:void 0!==c?c:la,_encodeFormAction:e,_nonce:l,_chunks:k,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=ma(a);return a}
|
||||
function na(a,b,c){var e=a._chunks,l=e.get(b);c=JSON.parse(c,a._fromJSON);var k=v(a._bundlerConfig,c);if(c=z(k)){if(l){var n=l;n.status="blocked"}else n=new L("blocked",null,null,a),e.set(b,n);c.then(function(){return S(n,k)},function(g){return R(n,g)})}else l?S(l,k):e.set(b,new L("resolved_module",k,null,a))}
|
||||
function ma(a){return function(b,c){return"string"===typeof c?ka(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===E?{$$typeof:E,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}
|
||||
function Z(a,b){function c(k){var n=k.value;if(k.done)V(a,Error("Connection closed."));else{var g=0,m=a._rowState,d=a._rowID,h=a._rowTag,f=a._rowLength;k=a._buffer;for(var D=n.length;g<D;){var p=-1;switch(m){case 0:p=n[g++];58===p?m=1:d=d<<4|(96<p?p-87:p-48);continue;case 1:m=n[g];84===m?(h=m,m=2,g++):64<m&&91>m?(h=m,m=3,g++):(h=0,m=3);continue;case 2:p=n[g++];44===p?m=4:f=f<<4|(96<p?p-87:p-48);continue;case 3:p=n.indexOf(10,g);break;case 4:p=g+f,p>n.length&&(p=-1)}var q=n.byteOffset+g;if(-1<p){g=
|
||||
new Uint8Array(n.buffer,q,p-g);f=a;q=h;var P=f._stringDecoder;h="";for(var G=0;G<k.length;G++)h+=P.decode(k[G],t);h+=P.decode(g);switch(q){case 73:na(f,d,h);break;case 72:d=h[0];h=h.slice(1);f=JSON.parse(h,f._fromJSON);if(h=C.current)switch(d){case "D":h.prefetchDNS(f);break;case "C":"string"===typeof f?h.preconnect(f):h.preconnect(f[0],f[1]);break;case "L":d=f[0];g=f[1];3===f.length?h.preload(d,g,f[2]):h.preload(d,g);break;case "m":"string"===typeof f?h.preloadModule(f):h.preloadModule(f[0],f[1]);
|
||||
break;case "S":"string"===typeof f?h.preinitStyle(f):h.preinitStyle(f[0],0===f[1]?void 0:f[1],3===f.length?f[2]:void 0);break;case "X":"string"===typeof f?h.preinitScript(f):h.preinitScript(f[0],f[1]);break;case "M":"string"===typeof f?h.preinitModuleScript(f):h.preinitModuleScript(f[0],f[1])}break;case 69:h=JSON.parse(h);g=h.digest;h=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");
|
||||
h.stack="Error: "+h.message;h.digest=g;g=f._chunks;(q=g.get(d))?R(q,h):g.set(d,new L("rejected",null,h,f));break;case 84:f._chunks.set(d,new L("fulfilled",h,null,f));break;case 68:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.");default:g=f._chunks,(q=g.get(d))?(f=q,d=h,"pending"===f.status&&(h=f.value,g=f.reason,f.status="resolved_model",
|
||||
f.value=d,null!==h&&(M(f),Q(f,h,g)))):g.set(d,new L("resolved_model",h,null,f))}g=p;3===m&&g++;f=d=h=m=0;k.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-g);k.push(n);f-=n.byteLength;break}}a._rowState=m;a._rowID=d;a._rowTag=h;a._rowLength=f;return l.read().then(c).catch(e)}}function e(k){V(a,k)}var l=b.getReader();l.read().then(c).catch(e)}
|
||||
exports.createFromFetch=function(a,b){var c=Y(null,null,b&&b.callServer?b.callServer:void 0,void 0,void 0);a.then(function(e){Z(c,e.body)},function(e){V(c,e)});return W(c,0)};exports.createFromReadableStream=function(a,b){b=Y(null,null,b&&b.callServer?b.callServer:void 0,void 0,void 0);Z(b,a);return W(b,0)};exports.createServerReference=function(a,b){function c(){var e=Array.prototype.slice.call(arguments);return b(a,e)}ea(c,{id:a,bound:null});return c};
|
||||
exports.encodeReply=function(a){return new Promise(function(b,c){da(a,"",b,c)})};
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-client.browser.production.min.js.map
|
||||
Generated
Vendored
+2458
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+1874
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+43
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
React
|
||||
react-server-dom-webpack-client.edge.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 r=require("react-dom"),t={stream:!0},u=Object.prototype.hasOwnProperty;function v(a,b){if(a){var c=a[b[0]];if(a=c[b[2]])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b[2]}return 4===b.length?[a.id,a.chunks,c,1]:[a.id,a.chunks,c]}return b}var w=new Map;
|
||||
function x(a){var b=globalThis.__next_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(c){b.status="fulfilled";b.value=c},function(c){b.status="rejected";b.reason=c});return b}function aa(){}
|
||||
function ba(a){for(var b=a[1],c=[],d=0;d<b.length;){var f=b[d++];b[d++];var h=w.get(f);if(void 0===h){h=__webpack_chunk_load__(f);c.push(h);var n=w.set.bind(w,f,null);h.then(n,aa);w.set(f,h)}else null!==h&&c.push(h)}return 4===a.length?0===c.length?x(a[0]):Promise.all(c).then(function(){return x(a[0])}):0<c.length?Promise.all(c):null}
|
||||
function ca(a,b,c){if(null!==a)for(var d=1;d<b.length;d+=2){var f=c,h=y.current;if(h){var n=h.preinitScript,k=a.prefix+b[d];var m=a.crossOrigin;m="string"===typeof m?"use-credentials"===m?m:"":void 0;n.call(h,k,{crossOrigin:m,nonce:f})}}}var y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,z=Symbol.for("react.element"),da=Symbol.for("react.lazy"),A=Symbol.iterator;
|
||||
function ea(a){if(null===a||"object"!==typeof a)return null;a=A&&a[A]||a["@@iterator"];return"function"===typeof a?a:null}var fa=Array.isArray,B=Object.getPrototypeOf,ha=Object.prototype,C=new WeakMap;function ia(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}
|
||||
function E(a,b,c,d){function f(m,e){if(null===e)return null;if("object"===typeof e){if("function"===typeof e.then){null===k&&(k=new FormData);n++;var l=h++;e.then(function(p){p=JSON.stringify(p,f);var q=k;q.append(b+l,p);n--;0===n&&c(q)},function(p){d(p)});return"$@"+l.toString(16)}if(fa(e))return e;if(e instanceof FormData){null===k&&(k=new FormData);var g=k;m=h++;var D=b+m+"_";e.forEach(function(p,q){g.append(D+q,p)});return"$K"+m.toString(16)}if(e instanceof Map)return e=JSON.stringify(Array.from(e),
|
||||
f),null===k&&(k=new FormData),m=h++,k.append(b+m,e),"$Q"+m.toString(16);if(e instanceof Set)return e=JSON.stringify(Array.from(e),f),null===k&&(k=new FormData),m=h++,k.append(b+m,e),"$W"+m.toString(16);if(ea(e))return Array.from(e);m=B(e);if(m!==ha&&(null===m||null!==B(m)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return e}if("string"===typeof e){if("Z"===e[e.length-1]&&this[m]instanceof Date)return"$D"+e;
|
||||
e="$"===e[0]?"$"+e:e;return e}if("boolean"===typeof e)return e;if("number"===typeof e)return ia(e);if("undefined"===typeof e)return"$undefined";if("function"===typeof e){e=C.get(e);if(void 0!==e)return e=JSON.stringify(e,f),null===k&&(k=new FormData),m=h++,k.set(b+m,e),"$h"+m.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof e){m=e.description;if(Symbol.for(m)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+
|
||||
(e.description+") cannot be found among global symbols."));return"$S"+m}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+" is not supported as an argument to a Server Function.");}var h=1,n=0,k=null;a=JSON.stringify(a,f);null===k?c(a):(k.set(b+"0",a),0===n&&c(k))}var F=new WeakMap;
|
||||
function ja(a){var b,c,d=new Promise(function(f,h){b=f;c=h});E(a,"",function(f){if("string"===typeof f){var h=new FormData;h.append("0",f);f=h}d.status="fulfilled";d.value=f;b(f)},function(f){d.status="rejected";d.reason=f;c(f)});return d}
|
||||
function ka(a){var b=C.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=F.get(b);c||(c=ja(b),F.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(f,h){d.append("$ACTION_"+a+":"+h,f)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}}
|
||||
function G(a,b){var c=C.get(this);if(!c)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");if(c.id!==a)return!1;var d=c.bound;if(null===d)return 0===b;switch(d.status){case "fulfilled":return d.value.length===b;case "pending":throw d;case "rejected":throw d.reason;default:throw"string"!==typeof d.status&&(d.status="pending",d.then(function(f){d.status="fulfilled";d.value=f},function(f){d.status="rejected";d.reason=f})),d;}}
|
||||
function I(a,b,c){Object.defineProperties(a,{$$FORM_ACTION:{value:void 0===c?ka:function(){var d=C.get(this);if(!d)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var f=d.bound;null===f&&(f=Promise.resolve([]));return c(d.id,f)}},$$IS_SIGNATURE_EQUAL:{value:G},bind:{value:J}});C.set(a,b)}var la=Function.prototype.bind,ma=Array.prototype.slice;
|
||||
function J(){var a=la.apply(this,arguments),b=C.get(this);if(b){var c=ma.call(arguments,1),d=null;d=null!==b.bound?Promise.resolve(b.bound).then(function(f){return f.concat(c)}):Promise.resolve(c);Object.defineProperties(a,{$$FORM_ACTION:{value:this.$$FORM_ACTION},$$IS_SIGNATURE_EQUAL:{value:G},bind:{value:J}});C.set(a,{id:b.id,bound:d})}return a}function na(a,b,c){function d(){var f=Array.prototype.slice.call(arguments);return b(a,f)}I(d,{id:a,bound:null},c);return d}
|
||||
function K(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}K.prototype=Object.create(Promise.prototype);K.prototype.then=function(a,b){switch(this.status){case "resolved_model":L(this);break;case "resolved_module":M(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":case "cyclic":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 oa(a){switch(a.status){case "resolved_model":L(a);break;case "resolved_module":M(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;default:throw a.reason;}}function N(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function O(a,b,c){switch(a.status){case "fulfilled":N(b,a.value);break;case "pending":case "blocked":case "cyclic":a.value=b;a.reason=c;break;case "rejected":c&&N(c,a.reason)}}
|
||||
function P(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&N(c,b)}}function Q(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(M(a),O(a,c,d))}}var R=null,S=null;
|
||||
function L(a){var b=R,c=S;R=a;S=null;var d=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var f=JSON.parse(d,a._response._fromJSON);if(null!==S&&0<S.deps)S.value=f,a.status="blocked",a.value=null,a.reason=null;else{var h=a.value;a.status="fulfilled";a.value=f;null!==h&&N(h,f)}}catch(n){a.status="rejected",a.reason=n}finally{R=b,S=c}}
|
||||
function M(a){try{var b=a.value,c=globalThis.__next_require__(b[0]);if(4===b.length&&"function"===typeof c.then)if("fulfilled"===c.status)c=c.value;else throw c.reason;var d="*"===b[2]?c:""===b[2]?c.__esModule?c.default:c:u.call(c,b[2])?c[b[2]]:void 0;a.status="fulfilled";a.value=d}catch(f){a.status="rejected",a.reason=f}}function T(a,b){a._chunks.forEach(function(c){"pending"===c.status&&P(c,b)})}function U(a,b){var c=a._chunks,d=c.get(b);d||(d=new K("pending",null,null,a),c.set(b,d));return d}
|
||||
function pa(a,b,c,d){if(S){var f=S;d||f.deps++}else f=S={deps:d?0:1,value:null};return function(h){b[c]=h;f.deps--;0===f.deps&&"blocked"===a.status&&(h=a.value,a.status="fulfilled",a.value=f.value,null!==h&&N(h,f.value))}}function qa(a){return function(b){return P(a,b)}}
|
||||
function ra(a,b){function c(){var f=Array.prototype.slice.call(arguments),h=b.bound;return h?"fulfilled"===h.status?d(b.id,h.value.concat(f)):Promise.resolve(h).then(function(n){return d(b.id,n.concat(f))}):d(b.id,f)}var d=a._callServer;I(c,b,a._encodeFormAction);return c}function W(a,b){a=U(a,b);switch(a.status){case "resolved_model":L(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason;}}
|
||||
function sa(a,b,c,d){if("$"===d[0]){if("$"===d)return z;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=U(a,b),{$$typeof:da,_payload:a,_init:oa};case "@":if(2===d.length)return new Promise(function(){});b=parseInt(d.slice(2),16);return U(a,b);case "S":return Symbol.for(d.slice(2));case "h":return b=parseInt(d.slice(2),16),b=W(a,b),ra(a,b);case "Q":return b=parseInt(d.slice(2),16),a=W(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=W(a,b),new Set(a);
|
||||
case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=U(a,d);switch(a.status){case "resolved_model":L(a);break;case "resolved_module":M(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return d=R,a.then(pa(d,b,c,"cyclic"===a.status),qa(d)),null;default:throw a.reason;}}}return d}
|
||||
function ta(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function ua(a,b,c){var d=a._chunks,f=d.get(b);c=JSON.parse(c,a._fromJSON);var h=v(a._bundlerConfig,c);ca(a._moduleLoading,c[1],a._nonce);if(c=ba(h)){if(f){var n=f;n.status="blocked"}else n=new K("blocked",null,null,a),d.set(b,n);c.then(function(){return Q(n,h)},function(k){return P(n,k)})}else f?Q(f,h):d.set(b,new K("resolved_module",h,null,a))}
|
||||
function va(a){return function(b,c){return"string"===typeof c?sa(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===z?{$$typeof:z,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function X(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
|
||||
function Y(a){var b=a.ssrManifest.moduleMap,c=a.ssrManifest.moduleLoading,d=a.encodeFormAction;a="string"===typeof a.nonce?a.nonce:void 0;var f=new Map;b={_bundlerConfig:b,_moduleLoading:c,_callServer:void 0!==X?X:ta,_encodeFormAction:d,_nonce:a,_chunks:f,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};b._fromJSON=va(b);return b}
|
||||
function Z(a,b){function c(h){var n=h.value;if(h.done)T(a,Error("Connection closed."));else{var k=0,m=a._rowState,e=a._rowID,l=a._rowTag,g=a._rowLength;h=a._buffer;for(var D=n.length;k<D;){var p=-1;switch(m){case 0:p=n[k++];58===p?m=1:e=e<<4|(96<p?p-87:p-48);continue;case 1:m=n[k];84===m?(l=m,m=2,k++):64<m&&91>m?(l=m,m=3,k++):(l=0,m=3);continue;case 2:p=n[k++];44===p?m=4:g=g<<4|(96<p?p-87:p-48);continue;case 3:p=n.indexOf(10,k);break;case 4:p=k+g,p>n.length&&(p=-1)}var q=n.byteOffset+k;if(-1<p){k=
|
||||
new Uint8Array(n.buffer,q,p-k);g=a;q=l;var V=g._stringDecoder;l="";for(var H=0;H<h.length;H++)l+=V.decode(h[H],t);l+=V.decode(k);switch(q){case 73:ua(g,e,l);break;case 72:e=l[0];l=l.slice(1);g=JSON.parse(l,g._fromJSON);if(l=y.current)switch(e){case "D":l.prefetchDNS(g);break;case "C":"string"===typeof g?l.preconnect(g):l.preconnect(g[0],g[1]);break;case "L":e=g[0];k=g[1];3===g.length?l.preload(e,k,g[2]):l.preload(e,k);break;case "m":"string"===typeof g?l.preloadModule(g):l.preloadModule(g[0],g[1]);
|
||||
break;case "S":"string"===typeof g?l.preinitStyle(g):l.preinitStyle(g[0],0===g[1]?void 0:g[1],3===g.length?g[2]:void 0);break;case "X":"string"===typeof g?l.preinitScript(g):l.preinitScript(g[0],g[1]);break;case "M":"string"===typeof g?l.preinitModuleScript(g):l.preinitModuleScript(g[0],g[1])}break;case 69:l=JSON.parse(l);k=l.digest;l=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");
|
||||
l.stack="Error: "+l.message;l.digest=k;k=g._chunks;(q=k.get(e))?P(q,l):k.set(e,new K("rejected",null,l,g));break;case 84:g._chunks.set(e,new K("fulfilled",l,null,g));break;case 68:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.");default:k=g._chunks,(q=k.get(e))?(g=q,e=l,"pending"===g.status&&(l=g.value,k=g.reason,g.status="resolved_model",
|
||||
g.value=e,null!==l&&(L(g),O(g,l,k)))):k.set(e,new K("resolved_model",l,null,g))}k=p;3===m&&k++;g=e=l=m=0;h.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-k);h.push(n);g-=n.byteLength;break}}a._rowState=m;a._rowID=e;a._rowTag=l;a._rowLength=g;return f.read().then(c).catch(d)}}function d(h){T(a,h)}var f=b.getReader();f.read().then(c).catch(d)}exports.createFromFetch=function(a,b){var c=Y(b);a.then(function(d){Z(c,d.body)},function(d){T(c,d)});return U(c,0)};
|
||||
exports.createFromReadableStream=function(a,b){b=Y(b);Z(b,a);return U(b,0)};exports.createServerReference=function(a){return na(a,X)};exports.encodeReply=function(a){return new Promise(function(b,c){E(a,"",b,c)})};
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-client.edge.production.min.js.map
|
||||
Generated
Vendored
+2419
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+1833
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+42
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
React
|
||||
react-server-dom-webpack-client.node.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 p=require("util"),r=require("react-dom"),t={stream:!0},v=Object.prototype.hasOwnProperty;function w(a,b){if(a){var c=a[b[0]];if(a=c[b[2]])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b[2]}return 4===b.length?[a.id,a.chunks,c,1]:[a.id,a.chunks,c]}return b}var x=new Map;
|
||||
function y(a){var b=globalThis.__next_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(c){b.status="fulfilled";b.value=c},function(c){b.status="rejected";b.reason=c});return b}function z(){}
|
||||
function A(a){for(var b=a[1],c=[],d=0;d<b.length;){var g=b[d++];b[d++];var h=x.get(g);if(void 0===h){h=__webpack_chunk_load__(g);c.push(h);var l=x.set.bind(x,g,null);h.then(l,z);x.set(g,h)}else null!==h&&c.push(h)}return 4===a.length?0===c.length?y(a[0]):Promise.all(c).then(function(){return y(a[0])}):0<c.length?Promise.all(c):null}
|
||||
function B(a,b,c){if(null!==a)for(var d=1;d<b.length;d+=2){var g=c,h=C.current;if(h){var l=h.preinitScript,k=a.prefix+b[d];var e=a.crossOrigin;e="string"===typeof e?"use-credentials"===e?e:"":void 0;l.call(h,k,{crossOrigin:e,nonce:g})}}}var C=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,E=Symbol.for("react.element"),F=Symbol.for("react.lazy"),G=Symbol.iterator;
|
||||
function aa(a){if(null===a||"object"!==typeof a)return null;a=G&&a[G]||a["@@iterator"];return"function"===typeof a?a:null}var ba=Array.isArray,H=Object.getPrototypeOf,ca=Object.prototype,I=new WeakMap;function da(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}
|
||||
function ea(a,b,c,d){function g(e,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===k&&(k=new FormData);l++;var u=h++;f.then(function(n){n=JSON.stringify(n,g);var q=k;q.append(b+u,n);l--;0===l&&c(q)},function(n){d(n)});return"$@"+u.toString(16)}if(ba(f))return f;if(f instanceof FormData){null===k&&(k=new FormData);var D=k;e=h++;var m=b+e+"_";f.forEach(function(n,q){D.append(m+q,n)});return"$K"+e.toString(16)}if(f instanceof Map)return f=JSON.stringify(Array.from(f),
|
||||
g),null===k&&(k=new FormData),e=h++,k.append(b+e,f),"$Q"+e.toString(16);if(f instanceof Set)return f=JSON.stringify(Array.from(f),g),null===k&&(k=new FormData),e=h++,k.append(b+e,f),"$W"+e.toString(16);if(aa(f))return Array.from(f);e=H(f);if(e!==ca&&(null===e||null!==H(e)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return f}if("string"===typeof f){if("Z"===f[f.length-1]&&this[e]instanceof Date)return"$D"+f;
|
||||
f="$"===f[0]?"$"+f:f;return f}if("boolean"===typeof f)return f;if("number"===typeof f)return da(f);if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=I.get(f);if(void 0!==f)return f=JSON.stringify(f,g),null===k&&(k=new FormData),e=h++,k.set(b+e,f),"$h"+e.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof f){e=f.description;if(Symbol.for(e)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+
|
||||
(f.description+") cannot be found among global symbols."));return"$S"+e}if("bigint"===typeof f)return"$n"+f.toString(10);throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var h=1,l=0,k=null;a=JSON.stringify(a,g);null===k?c(a):(k.set(b+"0",a),0===l&&c(k))}var J=new WeakMap;
|
||||
function fa(a){var b,c,d=new Promise(function(g,h){b=g;c=h});ea(a,"",function(g){if("string"===typeof g){var h=new FormData;h.append("0",g);g=h}d.status="fulfilled";d.value=g;b(g)},function(g){d.status="rejected";d.reason=g;c(g)});return d}
|
||||
function ha(a){var b=I.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var c=null;if(null!==b.bound){c=J.get(b);c||(c=fa(b),J.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(g,h){d.append("$ACTION_"+a+":"+h,g)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}}
|
||||
function K(a,b){var c=I.get(this);if(!c)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");if(c.id!==a)return!1;var d=c.bound;if(null===d)return 0===b;switch(d.status){case "fulfilled":return d.value.length===b;case "pending":throw d;case "rejected":throw d.reason;default:throw"string"!==typeof d.status&&(d.status="pending",d.then(function(g){d.status="fulfilled";d.value=g},function(g){d.status="rejected";d.reason=g})),d;}}
|
||||
function L(a,b,c){Object.defineProperties(a,{$$FORM_ACTION:{value:void 0===c?ha:function(){var d=I.get(this);if(!d)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var g=d.bound;null===g&&(g=Promise.resolve([]));return c(d.id,g)}},$$IS_SIGNATURE_EQUAL:{value:K},bind:{value:M}});I.set(a,b)}var ia=Function.prototype.bind,ja=Array.prototype.slice;
|
||||
function M(){var a=ia.apply(this,arguments),b=I.get(this);if(b){var c=ja.call(arguments,1),d=null;d=null!==b.bound?Promise.resolve(b.bound).then(function(g){return g.concat(c)}):Promise.resolve(c);Object.defineProperties(a,{$$FORM_ACTION:{value:this.$$FORM_ACTION},$$IS_SIGNATURE_EQUAL:{value:K},bind:{value:M}});I.set(a,{id:b.id,bound:d})}return a}function ka(a,b,c){function d(){var g=Array.prototype.slice.call(arguments);return b(a,g)}L(d,{id:a,bound:null},c);return d}
|
||||
function N(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}N.prototype=Object.create(Promise.prototype);N.prototype.then=function(a,b){switch(this.status){case "resolved_model":O(this);break;case "resolved_module":P(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":case "cyclic":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 la(a){switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;default:throw a.reason;}}function Q(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function R(a,b,c){switch(a.status){case "fulfilled":Q(b,a.value);break;case "pending":case "blocked":case "cyclic":a.value=b;a.reason=c;break;case "rejected":c&&Q(c,a.reason)}}
|
||||
function S(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&Q(c,b)}}function T(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(P(a),R(a,c,d))}}var U=null,V=null;
|
||||
function O(a){var b=U,c=V;U=a;V=null;var d=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var g=JSON.parse(d,a._response._fromJSON);if(null!==V&&0<V.deps)V.value=g,a.status="blocked",a.value=null,a.reason=null;else{var h=a.value;a.status="fulfilled";a.value=g;null!==h&&Q(h,g)}}catch(l){a.status="rejected",a.reason=l}finally{U=b,V=c}}
|
||||
function P(a){try{var b=a.value,c=globalThis.__next_require__(b[0]);if(4===b.length&&"function"===typeof c.then)if("fulfilled"===c.status)c=c.value;else throw c.reason;var d="*"===b[2]?c:""===b[2]?c.__esModule?c.default:c:v.call(c,b[2])?c[b[2]]:void 0;a.status="fulfilled";a.value=d}catch(g){a.status="rejected",a.reason=g}}function W(a,b){a._chunks.forEach(function(c){"pending"===c.status&&S(c,b)})}function X(a,b){var c=a._chunks,d=c.get(b);d||(d=new N("pending",null,null,a),c.set(b,d));return d}
|
||||
function ma(a,b,c,d){if(V){var g=V;d||g.deps++}else g=V={deps:d?0:1,value:null};return function(h){b[c]=h;g.deps--;0===g.deps&&"blocked"===a.status&&(h=a.value,a.status="fulfilled",a.value=g.value,null!==h&&Q(h,g.value))}}function na(a){return function(b){return S(a,b)}}
|
||||
function oa(a,b){function c(){var g=Array.prototype.slice.call(arguments),h=b.bound;return h?"fulfilled"===h.status?d(b.id,h.value.concat(g)):Promise.resolve(h).then(function(l){return d(b.id,l.concat(g))}):d(b.id,g)}var d=a._callServer;L(c,b,a._encodeFormAction);return c}function Y(a,b){a=X(a,b);switch(a.status){case "resolved_model":O(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason;}}
|
||||
function pa(a,b,c,d){if("$"===d[0]){if("$"===d)return E;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=X(a,b),{$$typeof:F,_payload:a,_init:la};case "@":if(2===d.length)return new Promise(function(){});b=parseInt(d.slice(2),16);return X(a,b);case "S":return Symbol.for(d.slice(2));case "h":return b=parseInt(d.slice(2),16),b=Y(a,b),oa(a,b);case "Q":return b=parseInt(d.slice(2),16),a=Y(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Y(a,b),new Set(a);case "I":return Infinity;
|
||||
case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=X(a,d);switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return d=U,a.then(ma(d,b,c,"cyclic"===a.status),na(d)),null;default:throw a.reason;}}}return d}
|
||||
function qa(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function ra(a,b,c,d,g){var h=new Map;a={_bundlerConfig:a,_moduleLoading:b,_callServer:void 0!==c?c:qa,_encodeFormAction:d,_nonce:g,_chunks:h,_stringDecoder:new p.TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=sa(a);return a}
|
||||
function ta(a,b,c){var d=a._chunks,g=d.get(b);c=JSON.parse(c,a._fromJSON);var h=w(a._bundlerConfig,c);B(a._moduleLoading,c[1],a._nonce);if(c=A(h)){if(g){var l=g;l.status="blocked"}else l=new N("blocked",null,null,a),d.set(b,l);c.then(function(){return T(l,h)},function(k){return S(l,k)})}else g?T(g,h):d.set(b,new N("resolved_module",h,null,a))}
|
||||
function sa(a){return function(b,c){return"string"===typeof c?pa(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===E?{$$typeof:E,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function Z(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
|
||||
exports.createFromNodeStream=function(a,b,c){var d=ra(b.moduleMap,b.moduleLoading,Z,c?c.encodeFormAction:void 0,c&&"string"===typeof c.nonce?c.nonce:void 0);a.on("data",function(g){for(var h=0,l=d._rowState,k=d._rowID,e=d._rowTag,f=d._rowLength,u=d._buffer,D=g.length;h<D;){var m=-1;switch(l){case 0:m=g[h++];58===m?l=1:k=k<<4|(96<m?m-87:m-48);continue;case 1:l=g[h];84===l?(e=l,l=2,h++):64<l&&91>l?(e=l,l=3,h++):(e=0,l=3);continue;case 2:m=g[h++];44===m?l=4:f=f<<4|(96<m?m-87:m-48);continue;case 3:m=
|
||||
g.indexOf(10,h);break;case 4:m=h+f,m>g.length&&(m=-1)}var n=g.byteOffset+h;if(-1<m){f=new Uint8Array(g.buffer,n,m-h);h=e;n=d._stringDecoder;e="";for(var q=0;q<u.length;q++)e+=n.decode(u[q],t);e+=n.decode(f);switch(h){case 73:ta(d,k,e);break;case 72:k=e[0];e=e.slice(1);e=JSON.parse(e,d._fromJSON);if(f=C.current)switch(k){case "D":f.prefetchDNS(e);break;case "C":"string"===typeof e?f.preconnect(e):f.preconnect(e[0],e[1]);break;case "L":k=e[0];h=e[1];3===e.length?f.preload(k,h,e[2]):f.preload(k,h);break;
|
||||
case "m":"string"===typeof e?f.preloadModule(e):f.preloadModule(e[0],e[1]);break;case "S":"string"===typeof e?f.preinitStyle(e):f.preinitStyle(e[0],0===e[1]?void 0:e[1],3===e.length?e[2]:void 0);break;case "X":"string"===typeof e?f.preinitScript(e):f.preinitScript(e[0],e[1]);break;case "M":"string"===typeof e?f.preinitModuleScript(e):f.preinitModuleScript(e[0],e[1])}break;case 69:e=JSON.parse(e);f=e.digest;e=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");
|
||||
e.stack="Error: "+e.message;e.digest=f;f=d._chunks;(h=f.get(k))?S(h,e):f.set(k,new N("rejected",null,e,d));break;case 84:d._chunks.set(k,new N("fulfilled",e,null,d));break;case 68:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.");default:f=d._chunks,(h=f.get(k))?(k=h,"pending"===k.status&&(f=k.value,h=k.reason,k.status="resolved_model",
|
||||
k.value=e,null!==f&&(O(k),R(k,f,h)))):f.set(k,new N("resolved_model",e,null,d))}h=m;3===l&&h++;f=k=e=l=0;u.length=0}else{g=new Uint8Array(g.buffer,n,g.byteLength-h);u.push(g);f-=g.byteLength;break}}d._rowState=l;d._rowID=k;d._rowTag=e;d._rowLength=f});a.on("error",function(g){W(d,g)});a.on("end",function(){W(d,Error("Connection closed."))});return X(d,0)};exports.createServerReference=function(a){return ka(a,Z)};
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-client.node.production.min.js.map
|
||||
Generated
Vendored
+2372
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+1786
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
React
|
||||
react-server-dom-webpack-client.node.unbundled.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 p=require("util"),r=require("react-dom"),t={stream:!0},v=Object.prototype.hasOwnProperty;function w(a,c){var d=a[c[0]];if(a=d[c[2]])d=a.name;else{a=d["*"];if(!a)throw Error('Could not find the module "'+c[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');d=c[2]}return{specifier:a.specifier,name:d,async:4===c.length}}var x=new Map;
|
||||
function y(a){var c=x.get(a.specifier);if(c)return"fulfilled"===c.status?null:c;var d=import(a.specifier);a.async&&(d=d.then(function(b){return b.default}));d.then(function(b){var g=d;g.status="fulfilled";g.value=b},function(b){var g=d;g.status="rejected";g.reason=b});x.set(a.specifier,d);return d}
|
||||
function z(a,c,d){if(null!==a)for(var b=1;b<c.length;b+=2){var g=d,h=A.current;if(h){var l=h.preinitScript,k=a.prefix+c[b];var e=a.crossOrigin;e="string"===typeof e?"use-credentials"===e?e:"":void 0;l.call(h,k,{crossOrigin:e,nonce:g})}}}var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,B=Symbol.for("react.element"),C=Symbol.for("react.lazy"),E=Symbol.iterator;
|
||||
function F(a){if(null===a||"object"!==typeof a)return null;a=E&&a[E]||a["@@iterator"];return"function"===typeof a?a:null}var G=Array.isArray,H=Object.getPrototypeOf,aa=Object.prototype,I=new WeakMap;function ba(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}
|
||||
function ca(a,c,d,b){function g(e,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===k&&(k=new FormData);l++;var u=h++;f.then(function(n){n=JSON.stringify(n,g);var q=k;q.append(c+u,n);l--;0===l&&d(q)},function(n){b(n)});return"$@"+u.toString(16)}if(G(f))return f;if(f instanceof FormData){null===k&&(k=new FormData);var D=k;e=h++;var m=c+e+"_";f.forEach(function(n,q){D.append(m+q,n)});return"$K"+e.toString(16)}if(f instanceof Map)return f=JSON.stringify(Array.from(f),
|
||||
g),null===k&&(k=new FormData),e=h++,k.append(c+e,f),"$Q"+e.toString(16);if(f instanceof Set)return f=JSON.stringify(Array.from(f),g),null===k&&(k=new FormData),e=h++,k.append(c+e,f),"$W"+e.toString(16);if(F(f))return Array.from(f);e=H(f);if(e!==aa&&(null===e||null!==H(e)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return f}if("string"===typeof f){if("Z"===f[f.length-1]&&this[e]instanceof Date)return"$D"+f;
|
||||
f="$"===f[0]?"$"+f:f;return f}if("boolean"===typeof f)return f;if("number"===typeof f)return ba(f);if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=I.get(f);if(void 0!==f)return f=JSON.stringify(f,g),null===k&&(k=new FormData),e=h++,k.set(c+e,f),"$h"+e.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof f){e=f.description;if(Symbol.for(e)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+
|
||||
(f.description+") cannot be found among global symbols."));return"$S"+e}if("bigint"===typeof f)return"$n"+f.toString(10);throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var h=1,l=0,k=null;a=JSON.stringify(a,g);null===k?d(a):(k.set(c+"0",a),0===l&&d(k))}var J=new WeakMap;
|
||||
function da(a){var c,d,b=new Promise(function(g,h){c=g;d=h});ca(a,"",function(g){if("string"===typeof g){var h=new FormData;h.append("0",g);g=h}b.status="fulfilled";b.value=g;c(g)},function(g){b.status="rejected";b.reason=g;d(g)});return b}
|
||||
function ea(a){var c=I.get(this);if(!c)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var d=null;if(null!==c.bound){d=J.get(c);d||(d=da(c),J.set(c,d));if("rejected"===d.status)throw d.reason;if("fulfilled"!==d.status)throw d;c=d.value;var b=new FormData;c.forEach(function(g,h){b.append("$ACTION_"+a+":"+h,g)});d=b;c="$ACTION_REF_"+a}else c="$ACTION_ID_"+c.id;return{name:c,method:"POST",encType:"multipart/form-data",data:d}}
|
||||
function K(a,c){var d=I.get(this);if(!d)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");if(d.id!==a)return!1;var b=d.bound;if(null===b)return 0===c;switch(b.status){case "fulfilled":return b.value.length===c;case "pending":throw b;case "rejected":throw b.reason;default:throw"string"!==typeof b.status&&(b.status="pending",b.then(function(g){b.status="fulfilled";b.value=g},function(g){b.status="rejected";b.reason=g})),b;}}
|
||||
function L(a,c,d){Object.defineProperties(a,{$$FORM_ACTION:{value:void 0===d?ea:function(){var b=I.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var g=b.bound;null===g&&(g=Promise.resolve([]));return d(b.id,g)}},$$IS_SIGNATURE_EQUAL:{value:K},bind:{value:M}});I.set(a,c)}var fa=Function.prototype.bind,ha=Array.prototype.slice;
|
||||
function M(){var a=fa.apply(this,arguments),c=I.get(this);if(c){var d=ha.call(arguments,1),b=null;b=null!==c.bound?Promise.resolve(c.bound).then(function(g){return g.concat(d)}):Promise.resolve(d);Object.defineProperties(a,{$$FORM_ACTION:{value:this.$$FORM_ACTION},$$IS_SIGNATURE_EQUAL:{value:K},bind:{value:M}});I.set(a,{id:c.id,bound:b})}return a}function ia(a,c,d){function b(){var g=Array.prototype.slice.call(arguments);return c(a,g)}L(b,{id:a,bound:null},d);return b}
|
||||
function N(a,c,d,b){this.status=a;this.value=c;this.reason=d;this._response=b}N.prototype=Object.create(Promise.prototype);N.prototype.then=function(a,c){switch(this.status){case "resolved_model":O(this);break;case "resolved_module":P(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":case "cyclic":a&&(null===this.value&&(this.value=[]),this.value.push(a));c&&(null===this.reason&&(this.reason=[]),this.reason.push(c));break;default:c(this.reason)}};
|
||||
function ja(a){switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;default:throw a.reason;}}function Q(a,c){for(var d=0;d<a.length;d++)(0,a[d])(c)}function R(a,c,d){switch(a.status){case "fulfilled":Q(c,a.value);break;case "pending":case "blocked":case "cyclic":a.value=c;a.reason=d;break;case "rejected":d&&Q(d,a.reason)}}
|
||||
function S(a,c){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=c;null!==d&&Q(d,c)}}function T(a,c){if("pending"===a.status||"blocked"===a.status){var d=a.value,b=a.reason;a.status="resolved_module";a.value=c;null!==d&&(P(a),R(a,d,b))}}var U=null,V=null;
|
||||
function O(a){var c=U,d=V;U=a;V=null;var b=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var g=JSON.parse(b,a._response._fromJSON);if(null!==V&&0<V.deps)V.value=g,a.status="blocked",a.value=null,a.reason=null;else{var h=a.value;a.status="fulfilled";a.value=g;null!==h&&Q(h,g)}}catch(l){a.status="rejected",a.reason=l}finally{U=c,V=d}}
|
||||
function P(a){try{var c=a.value,d=x.get(c.specifier);if("fulfilled"===d.status)var b=d.value;else throw d.reason;if("*"===c.name)var g=b;else""===c.name?g=b.default:(v.call(b,c.name),g=b[c.name]);a.status="fulfilled";a.value=g}catch(h){a.status="rejected",a.reason=h}}function W(a,c){a._chunks.forEach(function(d){"pending"===d.status&&S(d,c)})}function X(a,c){var d=a._chunks,b=d.get(c);b||(b=new N("pending",null,null,a),d.set(c,b));return b}
|
||||
function ka(a,c,d,b){if(V){var g=V;b||g.deps++}else g=V={deps:b?0:1,value:null};return function(h){c[d]=h;g.deps--;0===g.deps&&"blocked"===a.status&&(h=a.value,a.status="fulfilled",a.value=g.value,null!==h&&Q(h,g.value))}}function la(a){return function(c){return S(a,c)}}
|
||||
function ma(a,c){function d(){var g=Array.prototype.slice.call(arguments),h=c.bound;return h?"fulfilled"===h.status?b(c.id,h.value.concat(g)):Promise.resolve(h).then(function(l){return b(c.id,l.concat(g))}):b(c.id,g)}var b=a._callServer;L(d,c,a._encodeFormAction);return d}function Y(a,c){a=X(a,c);switch(a.status){case "resolved_model":O(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason;}}
|
||||
function na(a,c,d,b){if("$"===b[0]){if("$"===b)return B;switch(b[1]){case "$":return b.slice(1);case "L":return c=parseInt(b.slice(2),16),a=X(a,c),{$$typeof:C,_payload:a,_init:ja};case "@":if(2===b.length)return new Promise(function(){});c=parseInt(b.slice(2),16);return X(a,c);case "S":return Symbol.for(b.slice(2));case "h":return c=parseInt(b.slice(2),16),c=Y(a,c),ma(a,c);case "Q":return c=parseInt(b.slice(2),16),a=Y(a,c),new Map(a);case "W":return c=parseInt(b.slice(2),16),a=Y(a,c),new Set(a);case "I":return Infinity;
|
||||
case "-":return"$-0"===b?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(b.slice(2)));case "n":return BigInt(b.slice(2));default:b=parseInt(b.slice(1),16);a=X(a,b);switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return b=U,a.then(ka(b,c,d,"cyclic"===a.status),la(b)),null;default:throw a.reason;}}}return b}
|
||||
function oa(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function pa(a,c,d,b,g){var h=new Map;a={_bundlerConfig:a,_moduleLoading:c,_callServer:void 0!==d?d:oa,_encodeFormAction:b,_nonce:g,_chunks:h,_stringDecoder:new p.TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=qa(a);return a}
|
||||
function ra(a,c,d){var b=a._chunks,g=b.get(c);d=JSON.parse(d,a._fromJSON);var h=w(a._bundlerConfig,d);z(a._moduleLoading,d[1],a._nonce);if(d=y(h)){if(g){var l=g;l.status="blocked"}else l=new N("blocked",null,null,a),b.set(c,l);d.then(function(){return T(l,h)},function(k){return S(l,k)})}else g?T(g,h):b.set(c,new N("resolved_module",h,null,a))}
|
||||
function qa(a){return function(c,d){return"string"===typeof d?na(a,this,c,d):"object"===typeof d&&null!==d?(c=d[0]===B?{$$typeof:B,type:d[1],key:d[2],ref:null,props:d[3],_owner:null}:d,c):d}}function Z(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
|
||||
exports.createFromNodeStream=function(a,c,d){var b=pa(c.moduleMap,c.moduleLoading,Z,d?d.encodeFormAction:void 0,d&&"string"===typeof d.nonce?d.nonce:void 0);a.on("data",function(g){for(var h=0,l=b._rowState,k=b._rowID,e=b._rowTag,f=b._rowLength,u=b._buffer,D=g.length;h<D;){var m=-1;switch(l){case 0:m=g[h++];58===m?l=1:k=k<<4|(96<m?m-87:m-48);continue;case 1:l=g[h];84===l?(e=l,l=2,h++):64<l&&91>l?(e=l,l=3,h++):(e=0,l=3);continue;case 2:m=g[h++];44===m?l=4:f=f<<4|(96<m?m-87:m-48);continue;case 3:m=
|
||||
g.indexOf(10,h);break;case 4:m=h+f,m>g.length&&(m=-1)}var n=g.byteOffset+h;if(-1<m){f=new Uint8Array(g.buffer,n,m-h);h=e;n=b._stringDecoder;e="";for(var q=0;q<u.length;q++)e+=n.decode(u[q],t);e+=n.decode(f);switch(h){case 73:ra(b,k,e);break;case 72:k=e[0];e=e.slice(1);e=JSON.parse(e,b._fromJSON);if(f=A.current)switch(k){case "D":f.prefetchDNS(e);break;case "C":"string"===typeof e?f.preconnect(e):f.preconnect(e[0],e[1]);break;case "L":k=e[0];h=e[1];3===e.length?f.preload(k,h,e[2]):f.preload(k,h);break;
|
||||
case "m":"string"===typeof e?f.preloadModule(e):f.preloadModule(e[0],e[1]);break;case "S":"string"===typeof e?f.preinitStyle(e):f.preinitStyle(e[0],0===e[1]?void 0:e[1],3===e.length?e[2]:void 0);break;case "X":"string"===typeof e?f.preinitScript(e):f.preinitScript(e[0],e[1]);break;case "M":"string"===typeof e?f.preinitModuleScript(e):f.preinitModuleScript(e[0],e[1])}break;case 69:e=JSON.parse(e);f=e.digest;e=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");
|
||||
e.stack="Error: "+e.message;e.digest=f;f=b._chunks;(h=f.get(k))?S(h,e):f.set(k,new N("rejected",null,e,b));break;case 84:b._chunks.set(k,new N("fulfilled",e,null,b));break;case 68:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.");default:f=b._chunks,(h=f.get(k))?(k=h,"pending"===k.status&&(f=k.value,h=k.reason,k.status="resolved_model",
|
||||
k.value=e,null!==f&&(O(k),R(k,f,h)))):f.set(k,new N("resolved_model",e,null,b))}h=m;3===l&&h++;f=k=e=l=0;u.length=0}else{g=new Uint8Array(g.buffer,n,g.byteLength-h);u.push(g);f-=g.byteLength;break}}b._rowState=l;b._rowID=k;b._rowTag=e;b._rowLength=f});a.on("error",function(g){W(b,g)});a.on("end",function(){W(b,Error("Connection closed."))});return X(b,0)};exports.createServerReference=function(a){return ia(a,Z)};
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-client.node.unbundled.production.min.js.map
|
||||
Generated
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
React
|
||||
react-server-dom-webpack-node-register.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';const h=require("acorn-loose"),l=require("url"),q=require("module");
|
||||
module.exports=function(){const m=require("react-server-dom-webpack/server"),n=m.registerServerReference,r=m.createClientModuleProxy,f=q.prototype._compile;q.prototype._compile=function(k,p){if(-1===k.indexOf("use client")&&-1===k.indexOf("use server"))return f.apply(this,arguments);try{var a=h.parse(k,{ecmaVersion:"2024",sourceType:"source"}).body}catch(g){return console.error("Error parsing %s %s",l,g.message),f.apply(this,arguments)}var b=!1,d=!1;for(var c=0;c<a.length;c++){var e=a[c];if("ExpressionStatement"!==
|
||||
e.type||!e.directive)break;"use client"===e.directive&&(b=!0);"use server"===e.directive&&(d=!0)}if(!b&&!d)return f.apply(this,arguments);if(b&&d)throw Error('Cannot have both "use client" and "use server" directives in the same file.');b&&(a=l.pathToFileURL(p).href,this.exports=r(a));if(d)if(f.apply(this,arguments),d=l.pathToFileURL(p).href,a=this.exports,"function"===typeof a)n(a,d,null);else for(b=Object.keys(a),c=0;c<b.length;c++){e=b[c];const g=a[b[c]];"function"===typeof g&&n(g,d,e)}}};
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-node-register.js.map
|
||||
Generated
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
React
|
||||
react-server-dom-webpack-plugin.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 w=require("path"),x=require("url"),y=require("neo-async"),z=require("acorn-loose"),B=require("webpack/lib/dependencies/ModuleDependency"),C=require("webpack/lib/dependencies/NullDependency"),D=require("webpack/lib/Template"),E=require("webpack");
|
||||
function F(a,g){if(a){if("string"===typeof a)return G(a,g);var c=Object.prototype.toString.call(a).slice(8,-1);"Object"===c&&a.constructor&&(c=a.constructor.name);if("Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return G(a,g)}}function G(a,g){if(null==g||g>a.length)g=a.length;for(var c=0,n=Array(g);c<g;c++)n[c]=a[c];return n}
|
||||
function H(a,g){var c;if("undefined"===typeof Symbol||null==a[Symbol.iterator]){if(Array.isArray(a)||(c=F(a))||g&&a&&"number"===typeof a.length){c&&(a=c);var n=0;g=function(){};return{s:g,n:function(){return n>=a.length?{done:!0}:{done:!1,value:a[n++]}},e:function(b){throw b;},f:g}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var d=!0,e=!1,p;return{s:function(){c=a[Symbol.iterator]()},
|
||||
n:function(){var b=c.next();d=b.done;return b},e:function(b){e=!0;p=b},f:function(){try{d||null==c.return||c.return()}finally{if(e)throw p;}}}}const I=Array.isArray;class J extends B{constructor(a){super(a)}get type(){return"client-reference"}}const K=require.resolve("../client.browser.js");
|
||||
class L{constructor(a){this.ssrManifestFilename=this.clientManifestFilename=this.chunkName=this.clientReferences=void 0;if(!a||"boolean"!==typeof a.isServer)throw Error("React Server Plugin: You must specify the isServer option as a boolean.");if(a.isServer)throw Error("TODO: Implement the server compiler.");a.clientReferences?"string"!==typeof a.clientReferences&&I(a.clientReferences)?this.clientReferences=a.clientReferences:this.clientReferences=[a.clientReferences]:this.clientReferences=[{directory:".",
|
||||
recursive:!0,include:/\.(js|ts|jsx|tsx)$/}];"string"===typeof a.chunkName?(this.chunkName=a.chunkName,/\[(index|request)\]/.test(this.chunkName)||(this.chunkName+="[index]")):this.chunkName="client[index]";this.clientManifestFilename=a.clientManifestFilename||"react-client-manifest.json";this.ssrManifestFilename=a.ssrManifestFilename||"react-ssr-manifest.json"}apply(a){const g=this;let c,n=!1;a.hooks.beforeCompile.tapAsync("React Server Plugin",(d,e)=>{d=d.contextModuleFactory;const p=a.resolverFactory.get("context",
|
||||
{}),b=a.resolverFactory.get("normal");g.resolveAllClientFiles(a.context,p,b,a.inputFileSystem,d,function(f,h){f?e(f):(c=h,e())})});a.hooks.thisCompilation.tap("React Server Plugin",(d,e)=>{e=e.normalModuleFactory;d.dependencyFactories.set(J,e);d.dependencyTemplates.set(J,new C.Template);d=p=>{p.hooks.program.tap("React Server Plugin",()=>{const b=p.state.module;if(b.resource===K&&(n=!0,c))for(let h=0;h<c.length;h++){const t=c[h];var f=g.chunkName.replace(/\[index\]/g,""+h).replace(/\[request\]/g,
|
||||
D.toPath(t.userRequest));f=new E.AsyncDependenciesBlock({name:f},null,t.request);f.addDependency(t);b.addBlock(f)}})};e.hooks.parser.for("javascript/auto").tap("HarmonyModulesPlugin",d);e.hooks.parser.for("javascript/esm").tap("HarmonyModulesPlugin",d);e.hooks.parser.for("javascript/dynamic").tap("HarmonyModulesPlugin",d)});a.hooks.make.tap("React Server Plugin",d=>{d.hooks.processAssets.tap({name:"React Server Plugin",stage:E.Compilation.PROCESS_ASSETS_STAGE_REPORT},function(){if(!1===n)d.warnings.push(new E.WebpackError("Client runtime at react-server-dom-webpack/client was not found. React Server Components module map file "+
|
||||
g.clientManifestFilename+" was not created."));else{var e=d.outputOptions.crossOriginLoading;e="string"===typeof e?"use-credentials"===e?e:"anonymous":null;var p=new Set((c||[]).map(m=>m.request)),b={},f={};e={moduleLoading:{prefix:d.outputOptions.publicPath||"",crossOrigin:e},moduleMap:f};var h=new Set;d.entrypoints.forEach(m=>{(m=m.getRuntimeChunk())&&m.files.forEach(v=>{h.add(v)})});d.chunkGroups.forEach(function(m){function v(k,l){if(p.has(l.resource)&&(l=x.pathToFileURL(l.resource).href,void 0!==
|
||||
l)){const q={};b[l]={id:k,chunks:u,name:"*"};q["*"]={specifier:l,name:"*"};f[k]=q}}const u=[];m.chunks.forEach(function(k){var l=H(k.files),q;try{for(l.s();!(q=l.n()).done;){const r=q.value;if(!r.endsWith(".js"))break;if(r.endsWith(".hot-update.js"))break;u.push(k.id,r);break}}catch(r){l.e(r)}finally{l.f()}});m.chunks.forEach(function(k){k=d.chunkGraph.getChunkModulesIterable(k);Array.from(k).forEach(function(l){const q=d.chunkGraph.getModuleId(l);v(q,l);l.modules&&l.modules.forEach(r=>{v(q,r)})})})});
|
||||
var t=JSON.stringify(b,null,2);d.emitAsset(g.clientManifestFilename,new E.sources.RawSource(t,!1));e=JSON.stringify(e,null,2);d.emitAsset(g.ssrManifestFilename,new E.sources.RawSource(e,!1))}})})}resolveAllClientFiles(a,g,c,n,d,e){function p(b){if(-1===b.indexOf("use client"))return!1;let f;try{f=z.parse(b,{ecmaVersion:"2024",sourceType:"module"}).body}catch(h){return!1}for(b=0;b<f.length;b++){const h=f[b];if("ExpressionStatement"!==h.type||!h.directive)break;if("use client"===h.directive)return!0}return!1}
|
||||
y.map(this.clientReferences,(b,f)=>{"string"===typeof b?f(null,[new J(b)]):g.resolve({},a,b.directory,{},(h,t)=>{if(h)return f(h);d.resolveDependencies(n,{resource:t,resourceQuery:"",recursive:void 0===b.recursive?!0:b.recursive,regExp:b.include,include:void 0,exclude:b.exclude},(m,v)=>{if(m)return f(m);m=v.map(u=>{var k=w.join(t,u.userRequest);k=new J(k);k.userRequest=u.userRequest;return k});y.filter(m,(u,k)=>{c.resolve({},a,u.request,{},(l,q)=>{if(l||"string"!==typeof q)return k(null,!1);n.readFile(q,
|
||||
"utf-8",(r,A)=>{if(r||"string"!==typeof A)return k(null,!1);r=p(A);k(null,r)})})},f)})})},(b,f)=>{if(b)return e(b);b=[];for(let h=0;h<f.length;h++)b.push.apply(b,f[h]);e(null,b)})}}module.exports=L;
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-plugin.js.map
|
||||
Generated
Vendored
+3662
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+3229
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+77
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
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"),ba=require("react-dom"),l=null,n=0;function p(a,b){if(0!==b.byteLength)if(2048<b.byteLength)0<n&&(a.enqueue(new Uint8Array(l.buffer,0,n)),l=new Uint8Array(2048),n=0),a.enqueue(b);else{var c=l.length-n;c<b.byteLength&&(0===c?a.enqueue(l):(l.set(b.subarray(0,c),n),a.enqueue(l),b=b.subarray(c)),l=new Uint8Array(2048),n=0);l.set(b,n);n+=b.byteLength}return!0}var q=new TextEncoder;function ca(a,b){"function"===typeof a.error?a.error(b):a.close()}
|
||||
var r=Symbol.for("react.client.reference"),t=Symbol.for("react.server.reference");function u(a,b,c){return Object.defineProperties(a,{$$typeof:{value:r},$$id:{value:b},$$async:{value:c}})}var da=Function.prototype.bind,ea=Array.prototype.slice;function fa(){var a=da.apply(this,arguments);if(this.$$typeof===t){var b=ea.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:t},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:fa}})}return a}
|
||||
var ha={value:function(){return"function () { [omitted code] }"},configurable:!0,writable:!0},ia=Promise.prototype,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 "displayName":return;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];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.");}};
|
||||
function ka(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 Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "__esModule":var c=a.$$id;a.default=u(function(){throw Error("Attempted to call the default export of "+c+" 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 d=u({},a.$$id,!0),e=new Proxy(d,la);a.status="fulfilled";a.value=e;return a.then=u(function(g){return Promise.resolve(g(e))},a.$$id+"#then",!1)}if("symbol"===typeof b)throw Error("Cannot read Symbol exports. Only named exports are supported on a client module imported on the server.");d=a[b];d||(d=u(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(d,"name",{value:b}),d=a[b]=new Proxy(d,ja));return d}
|
||||
var la={get:function(a,b){return ka(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:ka(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return ia},set:function(){throw Error("Cannot assign to a client module from a server module.");}},ta={prefetchDNS:ma,preconnect:na,preload:oa,preloadModule:pa,preinitStyle:qa,preinitScript:ra,preinitModuleScript:sa};
|
||||
function ma(a){if("string"===typeof a&&a){var b=w?w:null;if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),x(b,"D",a))}}}function na(a,b){if("string"===typeof a){var c=w?w:null;if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?x(c,"C",[a,b]):x(c,"C",a))}}}
|
||||
function oa(a,b,c){if("string"===typeof a){var d=w?w:null;if(d){var e=d.hints,g="L";if("image"===b&&c){var f=c.imageSrcSet,h=c.imageSizes,k="";"string"===typeof f&&""!==f?(k+="["+f+"]","string"===typeof h&&(k+="["+h+"]")):k+="[][]"+a;g+="[image]"+k}else g+="["+b+"]"+a;e.has(g)||(e.add(g),(c=z(c))?x(d,"L",[a,b,c]):x(d,"L",[a,b]))}}}function pa(a,b){if("string"===typeof a){var c=w?w:null;if(c){var d=c.hints,e="m|"+a;if(!d.has(e))return d.add(e),(b=z(b))?x(c,"m",[a,b]):x(c,"m",a)}}}
|
||||
function qa(a,b,c){if("string"===typeof a){var d=w?w:null;if(d){var e=d.hints,g="S|"+a;if(!e.has(g))return e.add(g),(c=z(c))?x(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?x(d,"S",[a,b]):x(d,"S",a)}}}function ra(a,b){if("string"===typeof a){var c=w?w:null;if(c){var d=c.hints,e="X|"+a;if(!d.has(e))return d.add(e),(b=z(b))?x(c,"X",[a,b]):x(c,"X",a)}}}
|
||||
function sa(a,b){if("string"===typeof a){var c=w?w:null;if(c){var d=c.hints,e="M|"+a;if(!d.has(e))return d.add(e),(b=z(b))?x(c,"M",[a,b]):x(c,"M",a)}}}function z(a){if(null==a)return null;var b=!1,c={},d;for(d in a)null!=a[d]&&(b=!0,c[d]=a[d]);return b?c:null}
|
||||
var ua=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,A=Symbol.for("react.element"),va=Symbol.for("react.fragment"),wa=Symbol.for("react.context"),xa=Symbol.for("react.forward_ref"),ya=Symbol.for("react.suspense"),za=Symbol.for("react.suspense_list"),Aa=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Ba=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Ca=Symbol.iterator,Da=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 Ea(){}function Fa(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Ea,Ea),b=c);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(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}D=b;throw Da;}}var D=null;
|
||||
function Ga(){if(null===D)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=D;D=null;return a}var E=null,Ha=0,F=null;function Ia(){var a=F||[];F=null;return a}
|
||||
var Na={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:G,useTransition:G,readContext:Ja,useContext:Ja,useReducer:G,useRef:G,useState:G,useInsertionEffect:G,useLayoutEffect:G,useImperativeHandle:G,useEffect:G,useId:Ka,useSyncExternalStore:G,useCacheRefresh:function(){return La},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Ba;return b},use:Ma};
|
||||
function G(){throw Error("This Hook is not supported in Server Components.");}function La(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ja(){throw Error("Cannot read a Client Context from a Server Component.");}function Ka(){if(null===E)throw Error("useId can only be used while React is rendering");var a=E.identifierCount++;return":"+E.identifierPrefix+"S"+a.toString(32)+":"}
|
||||
function Ma(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ha;Ha+=1;null===F&&(F=[]);return Fa(F,a,b)}a.$$typeof===wa&&Ja()}if(a.$$typeof===r){if(null!=a.value&&a.value.$$typeof===wa)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}function Oa(){return(new AbortController).signal}
|
||||
function Pa(){var a=w?w:null;return a?a.cache:new Map}var Qa={getCacheSignal:function(){var a=Pa(),b=a.get(Oa);void 0===b&&(b=Oa(),a.set(Oa,b));return b},getCacheForType:function(a){var b=Pa(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Ra=Array.isArray,Sa=Object.getPrototypeOf;function Ta(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
|
||||
function Ua(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ra(a))return"[...]";if(null!==a&&a.$$typeof===Va)return"client";a=Ta(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Va?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
|
||||
function H(a){if("string"===typeof a)return a;switch(a){case ya:return"Suspense";case za:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case xa:return H(a.render);case Aa:return H(a.type);case C:var b=a._payload;a=a._init;try{return H(a(b))}catch(c){}}return""}var Va=Symbol.for("react.client.reference");
|
||||
function I(a,b){var c=Ta(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Ra(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var f=a[g];f="object"===typeof f&&null!==f?I(f):Ua(f);""+g===b?(c=e.length,d=f.length,e+=f):e=10>f.length&&40>e.length+f.length?e+f:e+"..."}e+="]"}else if(a.$$typeof===A)e="<"+H(a.type)+"/>";else{if(a.$$typeof===Va)return"client";e="{";g=Object.keys(a);for(f=0;f<g.length;f++){0<f&&(e+=", ");var h=g[f],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k=
|
||||
"object"===typeof k&&null!==k?I(k):Ua(k);h===b?(c=e.length,d=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var Wa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xa=aa.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||
if(!Xa)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');var Ya=Object.prototype,J=JSON.stringify,Za=Xa.ReactCurrentCache,$a=Wa.ReactCurrentDispatcher;function ab(a){console.error(a)}function bb(){}
|
||||
function cb(a,b,c,d,e){if(null!==Za.current&&Za.current!==Qa)throw Error("Currently React only supports one RSC renderer at a time.");ua.current=ta;Za.current=Qa;var g=new Set,f=[],h=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:g,pingedTasks:f,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
|
||||
writtenServerReferences:new Map,writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?ab:c,onPostpone:void 0===e?bb:e};a=K(b,a,null,!1,g);f.push(a);return b}var w=null;
|
||||
function db(a,b,c){var d=K(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,eb(a,d),d.id;case "rejected":return b=L(a,c.reason),M(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;eb(a,d)},function(e){d.status=4;e=L(a,e);M(a,d.id,e);a.abortableTasks.delete(d);
|
||||
null!==a.destination&&N(a,a.destination)});return d.id}function x(a,b,c){c=J(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;c=q.encode(b+c+"\n");a.completedHintChunks.push(c);!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination&&(c=a.destination,a.flushScheduled=!0,N(a,c))}function fb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
||||
function gb(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:fb}}
|
||||
function hb(a,b,c,d,e){var g=b.thenableState;b.thenableState=null;Ha=0;F=g;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=gb(d)}e=b.keyPath;g=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=O(a,b,P,"",d);b.keyPath=e;b.implicitSlot=g;return a}
|
||||
function ib(a,b,c,d,e,g){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===r?[A,c,d,g]:hb(a,b,d,c,g);if("string"===typeof c)return[A,c,d,g];if("symbol"===typeof c)return c===va&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=O(a,b,P,"",g.children),b.implicitSlot=d,a):[A,c,d,g];if(null!=c&&"object"===typeof c){if(c.$$typeof===r)return[A,c,d,g];switch(c.$$typeof){case C:var f=
|
||||
c._init;c=f(c._payload);return ib(a,b,c,d,e,g);case xa:return hb(a,b,d,c.render,g);case Aa:return ib(a,b,c.type,d,e,g)}}throw Error("Unsupported Server Component type: "+Ua(c));}function eb(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,jb(a))}
|
||||
function K(a,b,c,d,e){a.pendingChunks++;var g=a.nextChunkId++;"object"===typeof b&&null!==b&&a.writtenObjects.set(b,g);var f={id:g,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return eb(a,f)},toJSON:function(h,k){var m=f.keyPath,y=f.implicitSlot;try{var v=O(a,f,this,h,k)}catch(Y){if(h=Y===Da?Ga():Y,k=f.model,k="object"===typeof k&&null!==k&&(k.$$typeof===A||k.$$typeof===C),"object"===typeof h&&null!==h&&"function"===typeof h.then){v=K(a,f.model,f.keyPath,f.implicitSlot,a.abortableTasks);
|
||||
var B=v.ping;h.then(B,B);v.thenableState=Ia();f.keyPath=m;f.implicitSlot=y;v=k?"$L"+v.id.toString(16):Q(v.id)}else if(f.keyPath=m,f.implicitSlot=y,k)a.pendingChunks++,m=a.nextChunkId++,y=L(a,h),M(a,m,y),v="$L"+m.toString(16);else throw h;}return v},thenableState:null};e.add(f);return f}function Q(a){return"$"+a.toString(16)}function kb(a,b,c){a=J(c);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
|
||||
function lb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,g=a.writtenClientReferences,f=g.get(e);if(void 0!==f)return b[0]===A&&"1"===c?"$L"+f.toString(16):Q(f);try{var h=a.bundlerConfig,k=d.$$id;f="";var m=h[k];if(m)f=m.name;else{var y=k.lastIndexOf("#");-1!==y&&(f=k.slice(y+1),m=h[k.slice(0,y)]);if(!m)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 v=!0===d.$$async?[m.id,m.chunks,f,1]:[m.id,m.chunks,
|
||||
f];a.pendingChunks++;var B=a.nextChunkId++,Y=J(v),Db=B.toString(16)+":I"+Y+"\n",Eb=q.encode(Db);a.completedImportChunks.push(Eb);g.set(e,B);return b[0]===A&&"1"===c?"$L"+B.toString(16):Q(B)}catch(Fb){return a.pendingChunks++,b=a.nextChunkId++,c=L(a,Fb),M(a,b,c),Q(b)}}function R(a,b){b=K(a,b,null,!1,a.abortableTasks);mb(a,b);return b.id}var S=!1;
|
||||
function O(a,b,c,d,e){b.model=e;if(e===A)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case A:c=a.writtenObjects;d=c.get(e);if(void 0!==d)if(S===e)S=null;else return-1===d?(a=R(a,e),Q(a)):Q(d);else c.set(e,-1);return ib(a,b,e.type,e.key,e.ref,e.props);case C:return b.thenableState=null,c=e._init,e=c(e._payload),O(a,b,P,"",e)}if(e.$$typeof===r)return lb(a,c,d,e);c=a.writtenObjects;d=c.get(e);if("function"===typeof e.then){if(void 0!==d)if(S===e)S=null;else return"$@"+
|
||||
d.toString(16);a=db(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(S===e)S=null;else return-1===d?(a=R(a,e),Q(a)):Q(d);else c.set(e,-1);if(Ra(e))return e;if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+R(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));
|
||||
return"$W"+R(a,e).toString(16)}null===e||"object"!==typeof e?a=null:(a=Ca&&e[Ca]||e["@@iterator"],a="function"===typeof a?a:null);if(a)return a=Array.from(e),a;a=Sa(e);if(a!==Ya&&(null===a||null!==Sa(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=2,b=
|
||||
a.nextChunkId++,e=q.encode(e),c=e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",c=q.encode(c),a.completedRegularChunks.push(c,e),Q(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===r)return lb(a,c,d,e);if(e.$$typeof===t)return b=a.writtenServerReferences,
|
||||
c=b.get(e),void 0!==c?a="$h"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=R(a,c),b.set(e,a),a="$h"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+I(c,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". Or maybe you meant to call this function rather than return it.'+
|
||||
I(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var g=b.get(e);if(void 0!==g)return Q(g);g=e.description;if(Symbol.for(g)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+I(c,d));a.pendingChunks++;c=a.nextChunkId++;d=kb(a,c,"$S"+g);a.completedImportChunks.push(d);b.set(e,c);return Q(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+
|
||||
" is not supported in Client Component props."+I(c,d));}function L(a,b){var c=w;w=null;try{var d=a.onError;var e=d(b)}finally{w=c}if(null!=e&&"string"!==typeof e)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 e+'" instead');return e||""}
|
||||
function nb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}function M(a,b,c){c={digest:c};b=b.toString(16)+":E"+J(c)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}var P={};
|
||||
function mb(a,b){if(0===b.status)try{S=b.model;var c=O(a,b,P,"",b.model);S=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?J(c,b.toJSON):J(c),e=b.id.toString(16)+":"+d+"\n",g=q.encode(e);a.completedRegularChunks.push(g);a.abortableTasks.delete(b);b.status=1}catch(m){var f=m===Da?Ga():m;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var h=b.ping;f.then(h,h);b.thenableState=Ia()}else{a.abortableTasks.delete(b);b.status=4;var k=L(a,f);M(a,b.id,k)}}finally{}}
|
||||
function jb(a){var b=$a.current;$a.current=Na;var c=w;E=w=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)mb(a,d[e]);null!==a.destination&&N(a,a.destination)}catch(g){L(a,g),nb(a,g)}finally{$a.current=b,E=null,w=c}}
|
||||
function N(a,b){l=new Uint8Array(2048);n=0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)a.pendingChunks--,p(b,c[d]);c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)p(b,e[d]);e.splice(0,d);var g=a.completedRegularChunks;for(d=0;d<g.length;d++)a.pendingChunks--,p(b,g[d]);g.splice(0,d);var f=a.completedErrorChunks;for(d=0;d<f.length;d++)a.pendingChunks--,p(b,f[d]);f.splice(0,d)}finally{a.flushScheduled=!1,l&&0<n&&(b.enqueue(new Uint8Array(l.buffer,0,n)),l=null,n=0)}0===a.pendingChunks&&
|
||||
b.close()}function ob(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,g=L(a,e);M(a,d,g,e);c.forEach(function(f){f.status=3;var h=Q(d);f=kb(a,f.id,h);a.completedErrorChunks.push(f)});c.clear()}null!==a.destination&&N(a,a.destination)}catch(f){L(a,f),nb(a,f)}}var pb=Object.prototype.hasOwnProperty;
|
||||
function qb(a,b){var c="",d=a[b];if(d)c=d.name;else{var e=b.lastIndexOf("#");-1!==e&&(c=b.slice(e+1),d=a[b.slice(0,e)]);if(!d)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[d.id,d.chunks,c]}var T=new Map;
|
||||
function rb(a){var b=__webpack_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(c){b.status="fulfilled";b.value=c},function(c){b.status="rejected";b.reason=c});return b}function sb(){}
|
||||
function tb(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++],g=b[d++],f=T.get(e);void 0===f?(ub.set(e,g),g=__webpack_chunk_load__(e),c.push(g),f=T.set.bind(T,e,null),g.then(f,sb),T.set(e,g)):null!==f&&c.push(f)}return 4===a.length?0===c.length?rb(a[0]):Promise.all(c).then(function(){return rb(a[0])}):0<c.length?Promise.all(c):null}
|
||||
function U(a){var b=__webpack_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;if("*"===a[2])return b;if(""===a[2])return b.__esModule?b.default:b;if(pb.call(b,a[2]))return b[a[2]]}var ub=new Map,vb=__webpack_require__.u;__webpack_require__.u=function(a){var b=ub.get(a);return void 0!==b?b:vb(a)};function V(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}V.prototype=Object.create(Promise.prototype);
|
||||
V.prototype.then=function(a,b){switch(this.status){case "resolved_model":wb(this)}switch(this.status){case "fulfilled":if("function"===typeof a){for(var c=this.value,d=0;c instanceof V;){d++;if(c===this||1E3<d){"function"===typeof b&&b(Error("Cannot have cyclic thenables."));return}if("fulfilled"===c.status)c=c.value;else break}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 xb(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function yb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&xb(c,b)}}function zb(a,b,c,d,e,g){var f=qb(a._bundlerConfig,b);a=tb(f);if(c)c=Promise.all([c,a]).then(function(h){h=h[0];var k=U(f);return k.bind.apply(k,[null].concat(h))});else if(a)c=Promise.resolve(a).then(function(){return U(f)});else return U(f);c.then(Ab(d,e,g),Bb(d));return null}
|
||||
var W=null,X=null;function wb(a){var b=W,c=X;W=a;X=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==X&&0<X.deps?(X.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{W=b,X=c}}function Cb(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(c){"pending"===c.status&&yb(c,b)})}
|
||||
function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new V("resolved_model",d,null,a):a._closed?new V("rejected",null,a._closedReason,a):new V("pending",null,null,a),c.set(b,d));return d}function Ab(a,b,c){if(X){var d=X;d.deps++}else d=X={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&xb(e,d.value))}}function Bb(a){return function(b){return yb(a,b)}}
|
||||
function Gb(a,b){a=Z(a,b);"resolved_model"===a.status&&wb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
||||
function Hb(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),Z(a,b);case "S":return Symbol.for(d.slice(2));case "h":return d=parseInt(d.slice(2),16),d=Gb(a,d),zb(a,d.id,d.bound,W,b,c);case "Q":return b=parseInt(d.slice(2),16),a=Gb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Gb(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",g=new FormData;a._formData.forEach(function(f,h){h.startsWith(e)&&g.append(h.slice(e.length),
|
||||
f)});return g;case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":wb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=W,a.then(Ab(d,b,c),Bb(d)),null;default:throw a.reason;}}return d}
|
||||
function Ib(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(g,f){return"string"===typeof f?Hb(e,this,g,f):f},_closed:!1,_closedReason:null};return e}function Jb(a){Cb(a,Error("Connection closed."))}
|
||||
function Kb(a,b,c){var d=qb(a,b);a=tb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var g=U(d);return g.bind.apply(g,[null].concat(e))}):a?Promise.resolve(a).then(function(){return U(d)}):Promise.resolve(U(d))}function Lb(a,b,c){a=Ib(b,c,a);Jb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}exports.createClientModuleProxy=function(a){a=u({},a,!1);return new Proxy(a,la)};
|
||||
exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,g){g.startsWith("$ACTION_")?g.startsWith("$ACTION_REF_")?(e="$ACTION_"+g.slice(12)+":",e=Lb(a,b,e),d=Kb(b,e.id,e.bound)):g.startsWith("$ACTION_ID_")&&(e=g.slice(11),d=Kb(b,e,null)):c.append(g,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})};
|
||||
exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(f,h){h.startsWith("$ACTION_REF_")&&(f="$ACTION_"+h.slice(12)+":",e=Lb(b,c,f))});if(null===e)return Promise.resolve(null);var g=e.id;return Promise.resolve(e.bound).then(function(f){return null===f?null:[a,d,g,f.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Ib(b,"",a);b=Z(a,0);Jb(a);return b};
|
||||
exports.registerClientReference=function(a,b,c){return u(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:t},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:fa,configurable:!0},toString:ha})};
|
||||
exports.renderToReadableStream=function(a,b,c){var d=cb(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0);if(c&&c.signal){var e=c.signal;if(e.aborted)ob(d,e.reason);else{var g=function(){ob(d,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){d.flushScheduled=null!==d.destination;jb(d)},pull:function(f){if(1===d.status)d.status=2,ca(f,d.fatalError);else if(2!==d.status&&null===d.destination){d.destination=
|
||||
f;try{N(d,f)}catch(h){L(d,h),nb(d,h)}}},cancel:function(f){d.destination=null;ob(d,f)}},{highWaterMark:0})};
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-server.browser.production.min.js.map
|
||||
Generated
Vendored
+3666
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+3233
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+78
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
React
|
||||
react-server-dom-webpack-server.edge.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 ba=require("react"),ca=require("react-dom"),m=null,n=0;function p(a,b){if(0!==b.byteLength)if(2048<b.byteLength)0<n&&(a.enqueue(new Uint8Array(m.buffer,0,n)),m=new Uint8Array(2048),n=0),a.enqueue(b);else{var c=m.length-n;c<b.byteLength&&(0===c?a.enqueue(m):(m.set(b.subarray(0,c),n),a.enqueue(m),b=b.subarray(c)),m=new Uint8Array(2048),n=0);m.set(b,n);n+=b.byteLength}return!0}var q=new TextEncoder;function da(a,b){"function"===typeof a.error?a.error(b):a.close()}
|
||||
var r=Symbol.for("react.client.reference"),t=Symbol.for("react.server.reference");function v(a,b,c){return Object.defineProperties(a,{$$typeof:{value:r},$$id:{value:b},$$async:{value:c}})}var ea=Function.prototype.bind,fa=Array.prototype.slice;function ha(){var a=ea.apply(this,arguments);if(this.$$typeof===t){var b=fa.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:t},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:ha}})}return a}
|
||||
var ia={value:function(){return"function () { [omitted code] }"},configurable:!0,writable:!0},ja=Promise.prototype,ka={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 Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];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.");}};
|
||||
function la(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 Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "__esModule":var c=a.$$id;a.default=v(function(){throw Error("Attempted to call the default export of "+c+" 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 d=v({},a.$$id,!0),e=new Proxy(d,ma);a.status="fulfilled";a.value=e;return a.then=v(function(g){return Promise.resolve(g(e))},a.$$id+"#then",!1)}if("symbol"===typeof b)throw Error("Cannot read Symbol exports. Only named exports are supported on a client module imported on the server.");d=a[b];d||(d=v(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(d,"name",{value:b}),d=a[b]=new Proxy(d,ka));return d}
|
||||
var ma={get:function(a,b){return la(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:la(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return ja},set:function(){throw Error("Cannot assign to a client module from a server module.");}},ua={prefetchDNS:na,preconnect:oa,preload:pa,preloadModule:qa,preinitStyle:ra,preinitScript:sa,preinitModuleScript:ta};
|
||||
function na(a){if("string"===typeof a&&a){var b=w();if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),x(b,"D",a))}}}function oa(a,b){if("string"===typeof a){var c=w();if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?x(c,"C",[a,b]):x(c,"C",a))}}}
|
||||
function pa(a,b,c){if("string"===typeof a){var d=w();if(d){var e=d.hints,g="L";if("image"===b&&c){var f=c.imageSrcSet,h=c.imageSizes,k="";"string"===typeof f&&""!==f?(k+="["+f+"]","string"===typeof h&&(k+="["+h+"]")):k+="[][]"+a;g+="[image]"+k}else g+="["+b+"]"+a;e.has(g)||(e.add(g),(c=y(c))?x(d,"L",[a,b,c]):x(d,"L",[a,b]))}}}function qa(a,b){if("string"===typeof a){var c=w();if(c){var d=c.hints,e="m|"+a;if(!d.has(e))return d.add(e),(b=y(b))?x(c,"m",[a,b]):x(c,"m",a)}}}
|
||||
function ra(a,b,c){if("string"===typeof a){var d=w();if(d){var e=d.hints,g="S|"+a;if(!e.has(g))return e.add(g),(c=y(c))?x(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?x(d,"S",[a,b]):x(d,"S",a)}}}function sa(a,b){if("string"===typeof a){var c=w();if(c){var d=c.hints,e="X|"+a;if(!d.has(e))return d.add(e),(b=y(b))?x(c,"X",[a,b]):x(c,"X",a)}}}function ta(a,b){if("string"===typeof a){var c=w();if(c){var d=c.hints,e="M|"+a;if(!d.has(e))return d.add(e),(b=y(b))?x(c,"M",[a,b]):x(c,"M",a)}}}
|
||||
function y(a){if(null==a)return null;var b=!1,c={},d;for(d in a)null!=a[d]&&(b=!0,c[d]=a[d]);return b?c:null}var va=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,A="function"===typeof AsyncLocalStorage,wa=A?new AsyncLocalStorage:null;"object"===typeof async_hooks?async_hooks.createHook:function(){return{enable:function(){},disable:function(){}}};"object"===typeof async_hooks?async_hooks.executionAsyncId:null;
|
||||
var B=Symbol.for("react.element"),xa=Symbol.for("react.fragment"),ya=Symbol.for("react.context"),za=Symbol.for("react.forward_ref"),Aa=Symbol.for("react.suspense"),Ba=Symbol.for("react.suspense_list"),Ca=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Da=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Ea=Symbol.iterator,Fa=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 Ga(){}function Ha(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Ga,Ga),b=c);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(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}E=b;throw Fa;}}var E=null;
|
||||
function Ia(){if(null===E)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=E;E=null;return a}var F=null,Ja=0,G=null;function Ka(){var a=G||[];G=null;return a}
|
||||
var Pa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:H,useTransition:H,readContext:La,useContext:La,useReducer:H,useRef:H,useState:H,useInsertionEffect:H,useLayoutEffect:H,useImperativeHandle:H,useEffect:H,useId:Ma,useSyncExternalStore:H,useCacheRefresh:function(){return Na},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Da;return b},use:Oa};
|
||||
function H(){throw Error("This Hook is not supported in Server Components.");}function Na(){throw Error("Refreshing the cache is not supported in Server Components.");}function La(){throw Error("Cannot read a Client Context from a Server Component.");}function Ma(){if(null===F)throw Error("useId can only be used while React is rendering");var a=F.identifierCount++;return":"+F.identifierPrefix+"S"+a.toString(32)+":"}
|
||||
function Oa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ja;Ja+=1;null===G&&(G=[]);return Ha(G,a,b)}a.$$typeof===ya&&La()}if(a.$$typeof===r){if(null!=a.value&&a.value.$$typeof===ya)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}function Qa(){return(new AbortController).signal}
|
||||
function Ra(){var a=w();return a?a.cache:new Map}var Sa={getCacheSignal:function(){var a=Ra(),b=a.get(Qa);void 0===b&&(b=Qa(),a.set(Qa,b));return b},getCacheForType:function(a){var b=Ra(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Ta=Array.isArray,Ua=Object.getPrototypeOf;function Va(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
|
||||
function Wa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ta(a))return"[...]";if(null!==a&&a.$$typeof===Xa)return"client";a=Va(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Xa?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
|
||||
function I(a){if("string"===typeof a)return a;switch(a){case Aa:return"Suspense";case Ba:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case za:return I(a.render);case Ca:return I(a.type);case D:var b=a._payload;a=a._init;try{return I(a(b))}catch(c){}}return""}var Xa=Symbol.for("react.client.reference");
|
||||
function J(a,b){var c=Va(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Ta(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var f=a[g];f="object"===typeof f&&null!==f?J(f):Wa(f);""+g===b?(c=e.length,d=f.length,e+=f):e=10>f.length&&40>e.length+f.length?e+f:e+"..."}e+="]"}else if(a.$$typeof===B)e="<"+I(a.type)+"/>";else{if(a.$$typeof===Xa)return"client";e="{";g=Object.keys(a);for(f=0;f<g.length;f++){0<f&&(e+=", ");var h=g[f],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k=
|
||||
"object"===typeof k&&null!==k?J(k):Wa(k);h===b?(c=e.length,d=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var Ya=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Za=ba.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||
if(!Za)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');var $a=Object.prototype,K=JSON.stringify,ab=Za.ReactCurrentCache,bb=Ya.ReactCurrentDispatcher;function cb(a){console.error(a)}function db(){}
|
||||
function eb(a,b,c,d,e){if(null!==ab.current&&ab.current!==Sa)throw Error("Currently React only supports one RSC renderer at a time.");va.current=ua;ab.current=Sa;var g=new Set,f=[],h=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:g,pingedTasks:f,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
|
||||
writtenServerReferences:new Map,writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?cb:c,onPostpone:void 0===e?db:e};a=L(b,a,null,!1,g);f.push(a);return b}var M=null;function w(){if(M)return M;if(A){var a=wa.getStore();if(a)return a}return null}
|
||||
function fb(a,b,c){var d=L(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,gb(a,d),d.id;case "rejected":return b=N(a,c.reason),O(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;gb(a,d)},function(e){d.status=4;e=N(a,e);O(a,d.id,e);a.abortableTasks.delete(d);
|
||||
null!==a.destination&&P(a,a.destination)});return d.id}function x(a,b,c){c=K(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;c=q.encode(b+c+"\n");a.completedHintChunks.push(c);hb(a)}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:D,_payload:a,_init:ib}}
|
||||
function kb(a,b,c,d,e){var g=b.thenableState;b.thenableState=null;Ja=0;G=g;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=jb(d)}e=b.keyPath;g=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=Q(a,b,R,"",d);b.keyPath=e;b.implicitSlot=g;return a}
|
||||
function lb(a,b,c,d,e,g){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===r?[B,c,d,g]:kb(a,b,d,c,g);if("string"===typeof c)return[B,c,d,g];if("symbol"===typeof c)return c===xa&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=Q(a,b,R,"",g.children),b.implicitSlot=d,a):[B,c,d,g];if(null!=c&&"object"===typeof c){if(c.$$typeof===r)return[B,c,d,g];switch(c.$$typeof){case D:var f=
|
||||
c._init;c=f(c._payload);return lb(a,b,c,d,e,g);case za:return kb(a,b,d,c.render,g);case Ca:return lb(a,b,c.type,d,e,g)}}throw Error("Unsupported Server Component type: "+Wa(c));}function gb(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setTimeout(function(){return mb(a)},0))}
|
||||
function L(a,b,c,d,e){a.pendingChunks++;var g=a.nextChunkId++;"object"===typeof b&&null!==b&&a.writtenObjects.set(b,g);var f={id:g,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return gb(a,f)},toJSON:function(h,k){var l=f.keyPath,z=f.implicitSlot;try{var u=Q(a,f,this,h,k)}catch(aa){if(h=aa===Fa?Ia():aa,k=f.model,k="object"===typeof k&&null!==k&&(k.$$typeof===B||k.$$typeof===D),"object"===typeof h&&null!==h&&"function"===typeof h.then){u=L(a,f.model,f.keyPath,f.implicitSlot,a.abortableTasks);
|
||||
var C=u.ping;h.then(C,C);u.thenableState=Ka();f.keyPath=l;f.implicitSlot=z;u=k?"$L"+u.id.toString(16):S(u.id)}else if(f.keyPath=l,f.implicitSlot=z,k)a.pendingChunks++,l=a.nextChunkId++,z=N(a,h),O(a,l,z),u="$L"+l.toString(16);else throw h;}return u},thenableState:null};e.add(f);return f}function S(a){return"$"+a.toString(16)}function nb(a,b,c){a=K(c);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
|
||||
function ob(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,g=a.writtenClientReferences,f=g.get(e);if(void 0!==f)return b[0]===B&&"1"===c?"$L"+f.toString(16):S(f);try{var h=a.bundlerConfig,k=d.$$id;f="";var l=h[k];if(l)f=l.name;else{var z=k.lastIndexOf("#");-1!==z&&(f=k.slice(z+1),l=h[k.slice(0,z)]);if(!l)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 u=!0===d.$$async?[l.id,l.chunks,f,1]:[l.id,l.chunks,
|
||||
f];a.pendingChunks++;var C=a.nextChunkId++,aa=K(u),Gb=C.toString(16)+":I"+aa+"\n",Hb=q.encode(Gb);a.completedImportChunks.push(Hb);g.set(e,C);return b[0]===B&&"1"===c?"$L"+C.toString(16):S(C)}catch(Ib){return a.pendingChunks++,b=a.nextChunkId++,c=N(a,Ib),O(a,b,c),S(b)}}function T(a,b){b=L(a,b,null,!1,a.abortableTasks);pb(a,b);return b.id}var U=!1;
|
||||
function Q(a,b,c,d,e){b.model=e;if(e===B)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case B:c=a.writtenObjects;d=c.get(e);if(void 0!==d)if(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d);else c.set(e,-1);return lb(a,b,e.type,e.key,e.ref,e.props);case D:return b.thenableState=null,c=e._init,e=c(e._payload),Q(a,b,R,"",e)}if(e.$$typeof===r)return ob(a,c,d,e);c=a.writtenObjects;d=c.get(e);if("function"===typeof e.then){if(void 0!==d)if(U===e)U=null;else return"$@"+
|
||||
d.toString(16);a=fb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d);else c.set(e,-1);if(Ta(e))return e;if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+T(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));
|
||||
return"$W"+T(a,e).toString(16)}null===e||"object"!==typeof e?a=null:(a=Ea&&e[Ea]||e["@@iterator"],a="function"===typeof a?a:null);if(a)return a=Array.from(e),a;a=Ua(e);if(a!==$a&&(null===a||null!==Ua(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=2,b=
|
||||
a.nextChunkId++,e=q.encode(e),c=e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",c=q.encode(c),a.completedRegularChunks.push(c,e),S(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===r)return ob(a,c,d,e);if(e.$$typeof===t)return b=a.writtenServerReferences,
|
||||
c=b.get(e),void 0!==c?a="$h"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=T(a,c),b.set(e,a),a="$h"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+J(c,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". Or maybe you meant to call this function rather than return it.'+
|
||||
J(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var g=b.get(e);if(void 0!==g)return S(g);g=e.description;if(Symbol.for(g)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+J(c,d));a.pendingChunks++;c=a.nextChunkId++;d=nb(a,c,"$S"+g);a.completedImportChunks.push(d);b.set(e,c);return S(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+
|
||||
" is not supported in Client Component props."+J(c,d));}function N(a,b){var c=M;M=null;try{var d=a.onError;var e=A?wa.run(void 0,d,b):d(b)}finally{M=c}if(null!=e&&"string"!==typeof e)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 e+'" instead');return e||""}
|
||||
function qb(a,b){null!==a.destination?(a.status=2,da(a.destination,b)):(a.status=1,a.fatalError=b)}function O(a,b,c){c={digest:c};b=b.toString(16)+":E"+K(c)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}var R={};
|
||||
function pb(a,b){if(0===b.status)try{U=b.model;var c=Q(a,b,R,"",b.model);U=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?K(c,b.toJSON):K(c),e=b.id.toString(16)+":"+d+"\n",g=q.encode(e);a.completedRegularChunks.push(g);a.abortableTasks.delete(b);b.status=1}catch(l){var f=l===Fa?Ia():l;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var h=b.ping;f.then(h,h);b.thenableState=Ka()}else{a.abortableTasks.delete(b);b.status=4;var k=N(a,f);O(a,b.id,k)}}finally{}}
|
||||
function mb(a){var b=bb.current;bb.current=Pa;var c=M;F=M=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)pb(a,d[e]);null!==a.destination&&P(a,a.destination)}catch(g){N(a,g),qb(a,g)}finally{bb.current=b,F=null,M=c}}
|
||||
function P(a,b){m=new Uint8Array(2048);n=0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)a.pendingChunks--,p(b,c[d]);c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)p(b,e[d]);e.splice(0,d);var g=a.completedRegularChunks;for(d=0;d<g.length;d++)a.pendingChunks--,p(b,g[d]);g.splice(0,d);var f=a.completedErrorChunks;for(d=0;d<f.length;d++)a.pendingChunks--,p(b,f[d]);f.splice(0,d)}finally{a.flushScheduled=!1,m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===a.pendingChunks&&
|
||||
b.close()}function rb(a){a.flushScheduled=null!==a.destination;A?setTimeout(function(){return wa.run(a,mb,a)},0):setTimeout(function(){return mb(a)},0)}function hb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setTimeout(function(){return P(a,b)},0)}}
|
||||
function sb(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,g=N(a,e);O(a,d,g,e);c.forEach(function(f){f.status=3;var h=S(d);f=nb(a,f.id,h);a.completedErrorChunks.push(f)});c.clear()}null!==a.destination&&P(a,a.destination)}catch(f){N(a,f),qb(a,f)}}var tb=Object.prototype.hasOwnProperty;
|
||||
function ub(a,b){var c="",d=a[b];if(d)c=d.name;else{var e=b.lastIndexOf("#");-1!==e&&(c=b.slice(e+1),d=a[b.slice(0,e)]);if(!d)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[d.id,d.chunks,c]}var vb=new Map;
|
||||
function wb(a){var b=globalThis.__next_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(c){b.status="fulfilled";b.value=c},function(c){b.status="rejected";b.reason=c});return b}function xb(){}
|
||||
function yb(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++];b[d++];var g=vb.get(e);if(void 0===g){g=__webpack_chunk_load__(e);c.push(g);var f=vb.set.bind(vb,e,null);g.then(f,xb);vb.set(e,g)}else null!==g&&c.push(g)}return 4===a.length?0===c.length?wb(a[0]):Promise.all(c).then(function(){return wb(a[0])}):0<c.length?Promise.all(c):null}
|
||||
function V(a){var b=globalThis.__next_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;if("*"===a[2])return b;if(""===a[2])return b.__esModule?b.default:b;if(tb.call(b,a[2]))return b[a[2]]}function W(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}W.prototype=Object.create(Promise.prototype);
|
||||
W.prototype.then=function(a,b){switch(this.status){case "resolved_model":zb(this)}switch(this.status){case "fulfilled":if("function"===typeof a){for(var c=this.value,d=0;c instanceof W;){d++;if(c===this||1E3<d){"function"===typeof b&&b(Error("Cannot have cyclic thenables."));return}if("fulfilled"===c.status)c=c.value;else break}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 Ab(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function Bb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&Ab(c,b)}}function Cb(a,b,c,d,e,g){var f=ub(a._bundlerConfig,b);a=yb(f);if(c)c=Promise.all([c,a]).then(function(h){h=h[0];var k=V(f);return k.bind.apply(k,[null].concat(h))});else if(a)c=Promise.resolve(a).then(function(){return V(f)});else return V(f);c.then(Db(d,e,g),Eb(d));return null}
|
||||
var X=null,Y=null;function zb(a){var b=X,c=Y;X=a;Y=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=c}}function Fb(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(c){"pending"===c.status&&Bb(c,b)})}
|
||||
function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new W("resolved_model",d,null,a):a._closed?new W("rejected",null,a._closedReason,a):new W("pending",null,null,a),c.set(b,d));return d}function Db(a,b,c){if(Y){var d=Y;d.deps++}else d=Y={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&Ab(e,d.value))}}function Eb(a){return function(b){return Bb(a,b)}}
|
||||
function Jb(a,b){a=Z(a,b);"resolved_model"===a.status&&zb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
||||
function Kb(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),Z(a,b);case "S":return Symbol.for(d.slice(2));case "h":return d=parseInt(d.slice(2),16),d=Jb(a,d),Cb(a,d.id,d.bound,X,b,c);case "Q":return b=parseInt(d.slice(2),16),a=Jb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Jb(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",g=new FormData;a._formData.forEach(function(f,h){h.startsWith(e)&&g.append(h.slice(e.length),
|
||||
f)});return g;case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":zb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=X,a.then(Db(d,b,c),Eb(d)),null;default:throw a.reason;}}return d}
|
||||
function Lb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(g,f){return"string"===typeof f?Kb(e,this,g,f):f},_closed:!1,_closedReason:null};return e}function Mb(a){Fb(a,Error("Connection closed."))}
|
||||
function Nb(a,b,c){var d=ub(a,b);a=yb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var g=V(d);return g.bind.apply(g,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(d)}):Promise.resolve(V(d))}function Ob(a,b,c){a=Lb(b,c,a);Mb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}exports.createClientModuleProxy=function(a){a=v({},a,!1);return new Proxy(a,ma)};
|
||||
exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,g){g.startsWith("$ACTION_")?g.startsWith("$ACTION_REF_")?(e="$ACTION_"+g.slice(12)+":",e=Ob(a,b,e),d=Nb(b,e.id,e.bound)):g.startsWith("$ACTION_ID_")&&(e=g.slice(11),d=Nb(b,e,null)):c.append(g,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})};
|
||||
exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(f,h){h.startsWith("$ACTION_REF_")&&(f="$ACTION_"+h.slice(12)+":",e=Ob(b,c,f))});if(null===e)return Promise.resolve(null);var g=e.id;return Promise.resolve(e.bound).then(function(f){return null===f?null:[a,d,g,f.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Lb(b,"",a);b=Z(a,0);Mb(a);return b};
|
||||
exports.registerClientReference=function(a,b,c){return v(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:t},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ha,configurable:!0},toString:ia})};
|
||||
exports.renderToReadableStream=function(a,b,c){var d=eb(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0);if(c&&c.signal){var e=c.signal;if(e.aborted)sb(d,e.reason);else{var g=function(){sb(d,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){rb(d)},pull:function(f){if(1===d.status)d.status=2,da(f,d.fatalError);else if(2!==d.status&&null===d.destination){d.destination=f;try{P(d,f)}catch(h){N(d,
|
||||
h),qb(d,h)}}},cancel:function(f){d.destination=null;sb(d,f)}},{highWaterMark:0})};
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-server.edge.production.min.js.map
|
||||
Generated
Vendored
+3862
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+3445
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+83
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
React
|
||||
react-server-dom-webpack-server.node.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 ba=require("util");require("crypto");var ca=require("async_hooks"),da=require("react"),ea=require("react-dom"),l=null,m=0,q=!0;function r(a,b){a=a.write(b);q=q&&a}
|
||||
function u(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,fa.encode(b));else{var c=l;0<m&&(c=l.subarray(m));c=fa.encodeInto(b,c);var d=c.read;m+=c.written;d<b.length&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=fa.encodeInto(b.slice(d),l).written);2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,b)):(c=l.length-m,c<b.byteLength&&
|
||||
(0===c?r(a,l):(l.set(b.subarray(0,c),m),m+=c,r(a,l),b=b.subarray(c)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)));return q}var fa=new ba.TextEncoder,v=Symbol.for("react.client.reference"),w=Symbol.for("react.server.reference");function x(a,b,c){return Object.defineProperties(a,{$$typeof:{value:v},$$id:{value:b},$$async:{value:c}})}var ha=Function.prototype.bind,ia=Array.prototype.slice;
|
||||
function ja(){var a=ha.apply(this,arguments);if(this.$$typeof===w){var b=ia.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:ja}})}return a}
|
||||
var ka={value:function(){return"function () { [omitted code] }"},configurable:!0,writable:!0},la=Promise.prototype,ma={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 Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];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.");}};
|
||||
function na(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 Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "__esModule":var c=a.$$id;a.default=x(function(){throw Error("Attempted to call the default export of "+c+" 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 d=x({},a.$$id,!0),e=new Proxy(d,oa);a.status="fulfilled";a.value=e;return a.then=x(function(f){return Promise.resolve(f(e))},a.$$id+"#then",!1)}if("symbol"===typeof b)throw Error("Cannot read Symbol exports. Only named exports are supported on a client module imported on the server.");d=a[b];d||(d=x(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(d,"name",{value:b}),d=a[b]=new Proxy(d,ma));return d}
|
||||
var oa={get:function(a,b){return na(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:na(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return la},set:function(){throw Error("Cannot assign to a client module from a server module.");}},wa={prefetchDNS:pa,preconnect:qa,preload:ra,preloadModule:sa,preinitStyle:ta,preinitScript:ua,preinitModuleScript:va};
|
||||
function pa(a){if("string"===typeof a&&a){var b=z();if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),A(b,"D",a))}}}function qa(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?A(c,"C",[a,b]):A(c,"C",a))}}}
|
||||
function ra(a,b,c){if("string"===typeof a){var d=z();if(d){var e=d.hints,f="L";if("image"===b&&c){var g=c.imageSrcSet,h=c.imageSizes,k="";"string"===typeof g&&""!==g?(k+="["+g+"]","string"===typeof h&&(k+="["+h+"]")):k+="[][]"+a;f+="[image]"+k}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(c=B(c))?A(d,"L",[a,b,c]):A(d,"L",[a,b]))}}}function sa(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="m|"+a;if(!d.has(e))return d.add(e),(b=B(b))?A(c,"m",[a,b]):A(c,"m",a)}}}
|
||||
function ta(a,b,c){if("string"===typeof a){var d=z();if(d){var e=d.hints,f="S|"+a;if(!e.has(f))return e.add(f),(c=B(c))?A(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?A(d,"S",[a,b]):A(d,"S",a)}}}function ua(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="X|"+a;if(!d.has(e))return d.add(e),(b=B(b))?A(c,"X",[a,b]):A(c,"X",a)}}}function va(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="M|"+a;if(!d.has(e))return d.add(e),(b=B(b))?A(c,"M",[a,b]):A(c,"M",a)}}}
|
||||
function B(a){if(null==a)return null;var b=!1,c={},d;for(d in a)null!=a[d]&&(b=!0,c[d]=a[d]);return b?c:null}var xa=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,ya=new ca.AsyncLocalStorage,C=Symbol.for("react.element"),za=Symbol.for("react.fragment"),Aa=Symbol.for("react.context"),Ba=Symbol.for("react.forward_ref"),Ca=Symbol.for("react.suspense"),Da=Symbol.for("react.suspense_list"),Ea=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Fa=Symbol.for("react.memo_cache_sentinel");
|
||||
Symbol.for("react.postpone");var Ga=Symbol.iterator,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,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Ia,Ia),b=c);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(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}E=b;throw Ha;}}var E=null;
|
||||
function Ka(){if(null===E)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=E;E=null;return a}var F=null,La=0,G=null;function Ma(){var a=G||[];G=null;return a}
|
||||
var Ra={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:H,useTransition:H,readContext:Na,useContext:Na,useReducer:H,useRef:H,useState:H,useInsertionEffect:H,useLayoutEffect:H,useImperativeHandle:H,useEffect:H,useId:Oa,useSyncExternalStore:H,useCacheRefresh:function(){return Pa},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Fa;return b},use:Qa};
|
||||
function H(){throw Error("This Hook is not supported in Server Components.");}function Pa(){throw Error("Refreshing the cache is not supported in Server Components.");}function Na(){throw Error("Cannot read a Client Context from a Server Component.");}function Oa(){if(null===F)throw Error("useId can only be used while React is rendering");var a=F.identifierCount++;return":"+F.identifierPrefix+"S"+a.toString(32)+":"}
|
||||
function Qa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=La;La+=1;null===G&&(G=[]);return Ja(G,a,b)}a.$$typeof===Aa&&Na()}if(a.$$typeof===v){if(null!=a.value&&a.value.$$typeof===Aa)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}function Sa(){return(new AbortController).signal}
|
||||
function Ta(){var a=z();return a?a.cache:new Map}var Ua={getCacheSignal:function(){var a=Ta(),b=a.get(Sa);void 0===b&&(b=Sa(),a.set(Sa,b));return b},getCacheForType:function(a){var b=Ta(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Va=Array.isArray,Wa=Object.getPrototypeOf;function Xa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
|
||||
function Ya(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Va(a))return"[...]";if(null!==a&&a.$$typeof===Za)return"client";a=Xa(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Za?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
|
||||
function I(a){if("string"===typeof a)return a;switch(a){case Ca:return"Suspense";case Da:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ba:return I(a.render);case Ea:return I(a.type);case D:var b=a._payload;a=a._init;try{return I(a(b))}catch(c){}}return""}var Za=Symbol.for("react.client.reference");
|
||||
function J(a,b){var c=Xa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Va(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?J(g):Ya(g);""+f===b?(c=e.length,d=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===C)e="<"+I(a.type)+"/>";else{if(a.$$typeof===Za)return"client";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?J(k):Ya(k);h===b?(c=e.length,d=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var $a=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ab=da.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||
if(!ab)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');var bb=Object.prototype,K=JSON.stringify,cb=ab.ReactCurrentCache,db=$a.ReactCurrentDispatcher;function eb(a){console.error(a)}function fb(){}
|
||||
function gb(a,b,c,d,e){if(null!==cb.current&&cb.current!==Ua)throw Error("Currently React only supports one RSC renderer at a time.");xa.current=wa;cb.current=Ua;var f=new Set,g=[],h=new Set;b={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,
|
||||
writtenServerReferences:new Map,writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?eb:c,onPostpone:void 0===e?fb:e};a=L(b,a,null,!1,f);g.push(a);return b}var M=null;function z(){if(M)return M;var a=ya.getStore();return a?a:null}
|
||||
function hb(a,b,c){var d=L(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,ib(a,d),d.id;case "rejected":return b=N(a,c.reason),O(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;ib(a,d)},function(e){d.status=4;e=N(a,e);O(a,d.id,e);a.abortableTasks.delete(d);
|
||||
null!==a.destination&&P(a,a.destination)});return d.id}function A(a,b,c){c=K(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;a.completedHintChunks.push(b+c+"\n");jb(a)}function kb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
||||
function lb(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:D,_payload:a,_init:kb}}
|
||||
function mb(a,b,c,d,e){var f=b.thenableState;b.thenableState=null;La=0;G=f;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=lb(d)}e=b.keyPath;f=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=Q(a,b,R,"",d);b.keyPath=e;b.implicitSlot=f;return a}
|
||||
function nb(a,b,c,d,e,f){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===v?[C,c,d,f]:mb(a,b,d,c,f);if("string"===typeof c)return[C,c,d,f];if("symbol"===typeof c)return c===za&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=Q(a,b,R,"",f.children),b.implicitSlot=d,a):[C,c,d,f];if(null!=c&&"object"===typeof c){if(c.$$typeof===v)return[C,c,d,f];switch(c.$$typeof){case D:var g=
|
||||
c._init;c=g(c._payload);return nb(a,b,c,d,e,f);case Ba:return mb(a,b,d,c.render,f);case Ea:return nb(a,b,c.type,d,e,f)}}throw Error("Unsupported Server Component type: "+Ya(c));}function ib(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return ob(a)}))}
|
||||
function L(a,b,c,d,e){a.pendingChunks++;var f=a.nextChunkId++;"object"===typeof b&&null!==b&&a.writtenObjects.set(b,f);var g={id:f,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return ib(a,g)},toJSON:function(h,k){var p=g.keyPath,t=g.implicitSlot;try{var n=Q(a,g,this,h,k)}catch(aa){if(h=aa===Ha?Ka():aa,k=g.model,k="object"===typeof k&&null!==k&&(k.$$typeof===C||k.$$typeof===D),"object"===typeof h&&null!==h&&"function"===typeof h.then){n=L(a,g.model,g.keyPath,g.implicitSlot,a.abortableTasks);
|
||||
var y=n.ping;h.then(y,y);n.thenableState=Ma();g.keyPath=p;g.implicitSlot=t;n=k?"$L"+n.id.toString(16):S(n.id)}else if(g.keyPath=p,g.implicitSlot=t,k)a.pendingChunks++,p=a.nextChunkId++,t=N(a,h),O(a,p,t),n="$L"+p.toString(16);else throw h;}return n},thenableState:null};e.add(g);return g}function S(a){return"$"+a.toString(16)}function pb(a,b,c){a=K(c);return b.toString(16)+":"+a+"\n"}
|
||||
function qb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===C&&"1"===c?"$L"+g.toString(16):S(g);try{var h=a.bundlerConfig,k=d.$$id;g="";var p=h[k];if(p)g=p.name;else{var t=k.lastIndexOf("#");-1!==t&&(g=k.slice(t+1),p=h[k.slice(0,t)]);if(!p)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 n=!0===d.$$async?[p.id,p.chunks,g,1]:[p.id,p.chunks,
|
||||
g];a.pendingChunks++;var y=a.nextChunkId++,aa=K(n),Mb=y.toString(16)+":I"+aa+"\n";a.completedImportChunks.push(Mb);f.set(e,y);return b[0]===C&&"1"===c?"$L"+y.toString(16):S(y)}catch(Nb){return a.pendingChunks++,b=a.nextChunkId++,c=N(a,Nb),O(a,b,c),S(b)}}function T(a,b){b=L(a,b,null,!1,a.abortableTasks);rb(a,b);return b.id}var U=!1;
|
||||
function Q(a,b,c,d,e){b.model=e;if(e===C)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case C:c=a.writtenObjects;d=c.get(e);if(void 0!==d)if(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d);else c.set(e,-1);return nb(a,b,e.type,e.key,e.ref,e.props);case D:return b.thenableState=null,c=e._init,e=c(e._payload),Q(a,b,R,"",e)}if(e.$$typeof===v)return qb(a,c,d,e);c=a.writtenObjects;d=c.get(e);if("function"===typeof e.then){if(void 0!==d)if(U===e)U=null;else return"$@"+
|
||||
d.toString(16);a=hb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d);else c.set(e,-1);if(Va(e))return e;if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+T(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));
|
||||
return"$W"+T(a,e).toString(16)}null===e||"object"!==typeof e?a=null:(a=Ga&&e[Ga]||e["@@iterator"],a="function"===typeof a?a:null);if(a)return a=Array.from(e),a;a=Wa(e);if(a!==bb&&(null===a||null!==Wa(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=2,b=
|
||||
a.nextChunkId++,c="string"===typeof e?Buffer.byteLength(e,"utf8"):e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",a.completedRegularChunks.push(c,e),S(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===v)return qb(a,c,d,e);if(e.$$typeof===w)return b=a.writtenServerReferences,
|
||||
c=b.get(e),void 0!==c?a="$h"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=T(a,c),b.set(e,a),a="$h"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+J(c,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". Or maybe you meant to call this function rather than return it.'+
|
||||
J(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var f=b.get(e);if(void 0!==f)return S(f);f=e.description;if(Symbol.for(f)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+J(c,d));a.pendingChunks++;c=a.nextChunkId++;d=pb(a,c,"$S"+f);a.completedImportChunks.push(d);b.set(e,c);return S(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+
|
||||
" is not supported in Client Component props."+J(c,d));}function N(a,b){var c=M;M=null;try{var d=ya.run(void 0,a.onError,b)}finally{M=c}if(null!=d&&"string"!==typeof d)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 d+'" instead');return d||""}
|
||||
function sb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}function O(a,b,c){c={digest:c};b=b.toString(16)+":E"+K(c)+"\n";a.completedErrorChunks.push(b)}var R={};
|
||||
function rb(a,b){if(0===b.status)try{U=b.model;var c=Q(a,b,R,"",b.model);U=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?K(c,b.toJSON):K(c),e=b.id.toString(16)+":"+d+"\n";a.completedRegularChunks.push(e);a.abortableTasks.delete(b);b.status=1}catch(k){var f=k===Ha?Ka():k;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var g=b.ping;f.then(g,g);b.thenableState=Ma()}else{a.abortableTasks.delete(b);b.status=4;var h=N(a,f);O(a,b.id,h)}}finally{}}
|
||||
function ob(a){var b=db.current;db.current=Ra;var c=M;F=M=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)rb(a,d[e]);null!==a.destination&&P(a,a.destination)}catch(f){N(a,f),sb(a,f)}finally{db.current=b,F=null,M=c}}
|
||||
function P(a,b){l=new Uint8Array(2048);m=0;q=!0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)if(a.pendingChunks--,!u(b,c[d])){a.destination=null;d++;break}c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)if(!u(b,e[d])){a.destination=null;d++;break}e.splice(0,d);var f=a.completedRegularChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,!u(b,f[d])){a.destination=null;d++;break}f.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)if(a.pendingChunks--,!u(b,g[d])){a.destination=
|
||||
null;d++;break}g.splice(0,d)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function tb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return ya.run(a,ob,a)})}function jb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return P(a,b)})}}
|
||||
function ub(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{P(a,b)}catch(c){N(a,c),sb(a,c)}}}
|
||||
function vb(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,f=N(a,e);O(a,d,f,e);c.forEach(function(g){g.status=3;var h=S(d);g=pb(a,g.id,h);a.completedErrorChunks.push(g)});c.clear()}null!==a.destination&&P(a,a.destination)}catch(g){N(a,g),sb(a,g)}}var wb=Object.prototype.hasOwnProperty;
|
||||
function xb(a,b){var c="",d=a[b];if(d)c=d.name;else{var e=b.lastIndexOf("#");-1!==e&&(c=b.slice(e+1),d=a[b.slice(0,e)]);if(!d)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[d.id,d.chunks,c]}var yb=new Map;
|
||||
function zb(a){var b=globalThis.__next_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(c){b.status="fulfilled";b.value=c},function(c){b.status="rejected";b.reason=c});return b}function Ab(){}
|
||||
function Bb(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++];b[d++];var f=yb.get(e);if(void 0===f){f=__webpack_chunk_load__(e);c.push(f);var g=yb.set.bind(yb,e,null);f.then(g,Ab);yb.set(e,f)}else null!==f&&c.push(f)}return 4===a.length?0===c.length?zb(a[0]):Promise.all(c).then(function(){return zb(a[0])}):0<c.length?Promise.all(c):null}
|
||||
function V(a){var b=globalThis.__next_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;if("*"===a[2])return b;if(""===a[2])return b.__esModule?b.default:b;if(wb.call(b,a[2]))return b[a[2]]}function W(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}W.prototype=Object.create(Promise.prototype);
|
||||
W.prototype.then=function(a,b){switch(this.status){case "resolved_model":Cb(this)}switch(this.status){case "fulfilled":if("function"===typeof a){for(var c=this.value,d=0;c instanceof W;){d++;if(c===this||1E3<d){"function"===typeof b&&b(Error("Cannot have cyclic thenables."));return}if("fulfilled"===c.status)c=c.value;else break}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 Db(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function Eb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&Db(c,b)}}function Fb(a,b,c,d,e,f){var g=xb(a._bundlerConfig,b);a=Bb(g);if(c)c=Promise.all([c,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)c=Promise.resolve(a).then(function(){return V(g)});else return V(g);c.then(Gb(d,e,f),Hb(d));return null}
|
||||
var X=null,Y=null;function Cb(a){var b=X,c=Y;X=a;Y=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=c}}function Ib(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(c){"pending"===c.status&&Eb(c,b)})}
|
||||
function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new W("resolved_model",d,null,a):a._closed?new W("rejected",null,a._closedReason,a):new W("pending",null,null,a),c.set(b,d));return d}function Gb(a,b,c){if(Y){var d=Y;d.deps++}else d=Y={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&Db(e,d.value))}}function Hb(a){return function(b){return Eb(a,b)}}
|
||||
function Jb(a,b){a=Z(a,b);"resolved_model"===a.status&&Cb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
||||
function Kb(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),Z(a,b);case "S":return Symbol.for(d.slice(2));case "h":return d=parseInt(d.slice(2),16),d=Jb(a,d),Fb(a,d.id,d.bound,X,b,c);case "Q":return b=parseInt(d.slice(2),16),a=Jb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Jb(a,b),new Set(a);case "K":b=d.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;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":Cb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=X,a.then(Gb(d,b,c),Hb(d)),null;default:throw a.reason;}}return d}
|
||||
function Lb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(f,g){return"string"===typeof g?Kb(e,this,f,g):g},_closed:!1,_closedReason:null};return e}
|
||||
function Ob(a,b,c){a._formData.append(b,c);var d=a._prefix;if(b.startsWith(d)&&(a=a._chunks,b=+b.slice(d.length),(b=a.get(b))&&"pending"===b.status&&(d=b.value,a=b.reason,b.status="resolved_model",b.value=c,null!==d)))switch(Cb(b),b.status){case "fulfilled":Db(d,b.value);break;case "pending":case "blocked":b.value=d;b.reason=a;break;case "rejected":a&&Db(a,b.reason)}}function Pb(a){Ib(a,Error("Connection closed."))}
|
||||
function Qb(a,b,c){var d=xb(a,b);a=Bb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var f=V(d);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(d)}):Promise.resolve(V(d))}function Rb(a,b,c){a=Lb(b,c,a);Pb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Sb(a,b){return function(){return ub(b,a)}}function Tb(a,b){return function(){a.destination=null;vb(a,Error(b))}}
|
||||
exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,oa)};exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Rb(a,b,e),d=Qb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),d=Qb(b,e,null)):c.append(f,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})};
|
||||
exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(g,h){h.startsWith("$ACTION_REF_")&&(g="$ACTION_"+h.slice(12)+":",e=Rb(b,c,g))});if(null===e)return Promise.resolve(null);var f=e.id;return Promise.resolve(e.bound).then(function(g){return null===g?null:[a,d,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Lb(b,"",a);b=Z(a,0);Pb(a);return b};
|
||||
exports.decodeReplyFromBusboy=function(a,b){var c=Lb(b,""),d=0,e=[];a.on("field",function(f,g){if(0<d)e.push(f,g);else try{Ob(c,f,g)}catch(h){a.destroy(h)}});a.on("file",function(f,g,h){var k=h.filename,p=h.mimeType;if("base64"===h.encoding.toLowerCase())a.destroy(Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."));else{d++;var t=[];g.on("data",function(n){t.push(n)});
|
||||
g.on("end",function(){try{var n=new Blob(t,{type:p});c._formData.append(f,n,k);d--;if(0===d){for(n=0;n<e.length;n+=2)Ob(c,e[n],e[n+1]);e.length=0}}catch(y){a.destroy(y)}})}});a.on("finish",function(){Pb(c)});a.on("error",function(f){Ib(c,f)});return Z(c,0)};exports.registerClientReference=function(a,b,c){return x(a,b+"#"+c,!1)};
|
||||
exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ja,configurable:!0},toString:ka})};
|
||||
exports.renderToPipeableStream=function(a,b,c){var d=gb(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0),e=!1;tb(d);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;ub(d,f);f.on("drain",Sb(f,d));f.on("error",Tb(d,"The destination stream errored while writing data."));f.on("close",Tb(d,"The destination stream closed early."));return f},abort:function(f){vb(d,f)}}};
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-server.node.production.min.js.map
|
||||
Generated
Vendored
+3789
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+3372
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+81
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
React
|
||||
react-server-dom-webpack-server.node.unbundled.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 ba=require("util");require("crypto");var ca=require("async_hooks"),da=require("react"),ea=require("react-dom"),l=null,m=0,q=!0;function r(a,b){a=a.write(b);q=q&&a}
|
||||
function u(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,fa.encode(b));else{var c=l;0<m&&(c=l.subarray(m));c=fa.encodeInto(b,c);var d=c.read;m+=c.written;d<b.length&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=fa.encodeInto(b.slice(d),l).written);2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,b)):(c=l.length-m,c<b.byteLength&&
|
||||
(0===c?r(a,l):(l.set(b.subarray(0,c),m),m+=c,r(a,l),b=b.subarray(c)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)));return q}var fa=new ba.TextEncoder,v=Symbol.for("react.client.reference"),w=Symbol.for("react.server.reference");function x(a,b,c){return Object.defineProperties(a,{$$typeof:{value:v},$$id:{value:b},$$async:{value:c}})}var ha=Function.prototype.bind,ia=Array.prototype.slice;
|
||||
function ja(){var a=ha.apply(this,arguments);if(this.$$typeof===w){var b=ia.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:ja}})}return a}
|
||||
var ka={value:function(){return"function () { [omitted code] }"},configurable:!0,writable:!0},la=Promise.prototype,ma={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 Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];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.");}};
|
||||
function na(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 Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "__esModule":var c=a.$$id;a.default=x(function(){throw Error("Attempted to call the default export of "+c+" 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 d=x({},a.$$id,!0),e=new Proxy(d,oa);a.status="fulfilled";a.value=e;return a.then=x(function(f){return Promise.resolve(f(e))},a.$$id+"#then",!1)}if("symbol"===typeof b)throw Error("Cannot read Symbol exports. Only named exports are supported on a client module imported on the server.");d=a[b];d||(d=x(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(d,"name",{value:b}),d=a[b]=new Proxy(d,ma));return d}
|
||||
var oa={get:function(a,b){return na(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:na(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return la},set:function(){throw Error("Cannot assign to a client module from a server module.");}},wa={prefetchDNS:pa,preconnect:qa,preload:ra,preloadModule:sa,preinitStyle:ta,preinitScript:ua,preinitModuleScript:va};
|
||||
function pa(a){if("string"===typeof a&&a){var b=z();if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),A(b,"D",a))}}}function qa(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?A(c,"C",[a,b]):A(c,"C",a))}}}
|
||||
function ra(a,b,c){if("string"===typeof a){var d=z();if(d){var e=d.hints,f="L";if("image"===b&&c){var g=c.imageSrcSet,h=c.imageSizes,k="";"string"===typeof g&&""!==g?(k+="["+g+"]","string"===typeof h&&(k+="["+h+"]")):k+="[][]"+a;f+="[image]"+k}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(c=B(c))?A(d,"L",[a,b,c]):A(d,"L",[a,b]))}}}function sa(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="m|"+a;if(!d.has(e))return d.add(e),(b=B(b))?A(c,"m",[a,b]):A(c,"m",a)}}}
|
||||
function ta(a,b,c){if("string"===typeof a){var d=z();if(d){var e=d.hints,f="S|"+a;if(!e.has(f))return e.add(f),(c=B(c))?A(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?A(d,"S",[a,b]):A(d,"S",a)}}}function ua(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="X|"+a;if(!d.has(e))return d.add(e),(b=B(b))?A(c,"X",[a,b]):A(c,"X",a)}}}function va(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="M|"+a;if(!d.has(e))return d.add(e),(b=B(b))?A(c,"M",[a,b]):A(c,"M",a)}}}
|
||||
function B(a){if(null==a)return null;var b=!1,c={},d;for(d in a)null!=a[d]&&(b=!0,c[d]=a[d]);return b?c:null}var xa=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,ya=new ca.AsyncLocalStorage,C=Symbol.for("react.element"),za=Symbol.for("react.fragment"),Aa=Symbol.for("react.context"),Ba=Symbol.for("react.forward_ref"),Ca=Symbol.for("react.suspense"),Da=Symbol.for("react.suspense_list"),Ea=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Fa=Symbol.for("react.memo_cache_sentinel");
|
||||
Symbol.for("react.postpone");var Ga=Symbol.iterator,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,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Ia,Ia),b=c);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(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}E=b;throw Ha;}}var E=null;
|
||||
function Ka(){if(null===E)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=E;E=null;return a}var F=null,La=0,G=null;function Ma(){var a=G||[];G=null;return a}
|
||||
var Ra={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:H,useTransition:H,readContext:Na,useContext:Na,useReducer:H,useRef:H,useState:H,useInsertionEffect:H,useLayoutEffect:H,useImperativeHandle:H,useEffect:H,useId:Oa,useSyncExternalStore:H,useCacheRefresh:function(){return Pa},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Fa;return b},use:Qa};
|
||||
function H(){throw Error("This Hook is not supported in Server Components.");}function Pa(){throw Error("Refreshing the cache is not supported in Server Components.");}function Na(){throw Error("Cannot read a Client Context from a Server Component.");}function Oa(){if(null===F)throw Error("useId can only be used while React is rendering");var a=F.identifierCount++;return":"+F.identifierPrefix+"S"+a.toString(32)+":"}
|
||||
function Qa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=La;La+=1;null===G&&(G=[]);return Ja(G,a,b)}a.$$typeof===Aa&&Na()}if(a.$$typeof===v){if(null!=a.value&&a.value.$$typeof===Aa)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}function Sa(){return(new AbortController).signal}
|
||||
function Ta(){var a=z();return a?a.cache:new Map}var Ua={getCacheSignal:function(){var a=Ta(),b=a.get(Sa);void 0===b&&(b=Sa(),a.set(Sa,b));return b},getCacheForType:function(a){var b=Ta(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Va=Array.isArray,Wa=Object.getPrototypeOf;function Xa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
|
||||
function Ya(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Va(a))return"[...]";if(null!==a&&a.$$typeof===Za)return"client";a=Xa(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Za?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
|
||||
function I(a){if("string"===typeof a)return a;switch(a){case Ca:return"Suspense";case Da:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ba:return I(a.render);case Ea:return I(a.type);case D:var b=a._payload;a=a._init;try{return I(a(b))}catch(c){}}return""}var Za=Symbol.for("react.client.reference");
|
||||
function J(a,b){var c=Xa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Va(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?J(g):Ya(g);""+f===b?(c=e.length,d=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===C)e="<"+I(a.type)+"/>";else{if(a.$$typeof===Za)return"client";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?J(k):Ya(k);h===b?(c=e.length,d=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var $a=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ab=da.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||
if(!ab)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');var bb=Object.prototype,K=JSON.stringify,cb=ab.ReactCurrentCache,db=$a.ReactCurrentDispatcher;function eb(a){console.error(a)}function fb(){}
|
||||
function gb(a,b,c,d,e){if(null!==cb.current&&cb.current!==Ua)throw Error("Currently React only supports one RSC renderer at a time.");xa.current=wa;cb.current=Ua;var f=new Set,g=[],h=new Set;b={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,
|
||||
writtenServerReferences:new Map,writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?eb:c,onPostpone:void 0===e?fb:e};a=L(b,a,null,!1,f);g.push(a);return b}var M=null;function z(){if(M)return M;var a=ya.getStore();return a?a:null}
|
||||
function hb(a,b,c){var d=L(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,ib(a,d),d.id;case "rejected":return b=N(a,c.reason),O(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;ib(a,d)},function(e){d.status=4;e=N(a,e);O(a,d.id,e);a.abortableTasks.delete(d);
|
||||
null!==a.destination&&P(a,a.destination)});return d.id}function A(a,b,c){c=K(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;a.completedHintChunks.push(b+c+"\n");jb(a)}function kb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
||||
function lb(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:D,_payload:a,_init:kb}}
|
||||
function mb(a,b,c,d,e){var f=b.thenableState;b.thenableState=null;La=0;G=f;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=lb(d)}e=b.keyPath;f=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=Q(a,b,R,"",d);b.keyPath=e;b.implicitSlot=f;return a}
|
||||
function nb(a,b,c,d,e,f){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===v?[C,c,d,f]:mb(a,b,d,c,f);if("string"===typeof c)return[C,c,d,f];if("symbol"===typeof c)return c===za&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=Q(a,b,R,"",f.children),b.implicitSlot=d,a):[C,c,d,f];if(null!=c&&"object"===typeof c){if(c.$$typeof===v)return[C,c,d,f];switch(c.$$typeof){case D:var g=
|
||||
c._init;c=g(c._payload);return nb(a,b,c,d,e,f);case Ba:return mb(a,b,d,c.render,f);case Ea:return nb(a,b,c.type,d,e,f)}}throw Error("Unsupported Server Component type: "+Ya(c));}function ib(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return ob(a)}))}
|
||||
function L(a,b,c,d,e){a.pendingChunks++;var f=a.nextChunkId++;"object"===typeof b&&null!==b&&a.writtenObjects.set(b,f);var g={id:f,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return ib(a,g)},toJSON:function(h,k){var p=g.keyPath,t=g.implicitSlot;try{var n=Q(a,g,this,h,k)}catch(aa){if(h=aa===Ha?Ka():aa,k=g.model,k="object"===typeof k&&null!==k&&(k.$$typeof===C||k.$$typeof===D),"object"===typeof h&&null!==h&&"function"===typeof h.then){n=L(a,g.model,g.keyPath,g.implicitSlot,a.abortableTasks);
|
||||
var y=n.ping;h.then(y,y);n.thenableState=Ma();g.keyPath=p;g.implicitSlot=t;n=k?"$L"+n.id.toString(16):S(n.id)}else if(g.keyPath=p,g.implicitSlot=t,k)a.pendingChunks++,p=a.nextChunkId++,t=N(a,h),O(a,p,t),n="$L"+p.toString(16);else throw h;}return n},thenableState:null};e.add(g);return g}function S(a){return"$"+a.toString(16)}function pb(a,b,c){a=K(c);return b.toString(16)+":"+a+"\n"}
|
||||
function qb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===C&&"1"===c?"$L"+g.toString(16):S(g);try{var h=a.bundlerConfig,k=d.$$id;g="";var p=h[k];if(p)g=p.name;else{var t=k.lastIndexOf("#");-1!==t&&(g=k.slice(t+1),p=h[k.slice(0,t)]);if(!p)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 n=!0===d.$$async?[p.id,p.chunks,g,1]:[p.id,p.chunks,
|
||||
g];a.pendingChunks++;var y=a.nextChunkId++,aa=K(n),Lb=y.toString(16)+":I"+aa+"\n";a.completedImportChunks.push(Lb);f.set(e,y);return b[0]===C&&"1"===c?"$L"+y.toString(16):S(y)}catch(Mb){return a.pendingChunks++,b=a.nextChunkId++,c=N(a,Mb),O(a,b,c),S(b)}}function T(a,b){b=L(a,b,null,!1,a.abortableTasks);rb(a,b);return b.id}var U=!1;
|
||||
function Q(a,b,c,d,e){b.model=e;if(e===C)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case C:c=a.writtenObjects;d=c.get(e);if(void 0!==d)if(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d);else c.set(e,-1);return nb(a,b,e.type,e.key,e.ref,e.props);case D:return b.thenableState=null,c=e._init,e=c(e._payload),Q(a,b,R,"",e)}if(e.$$typeof===v)return qb(a,c,d,e);c=a.writtenObjects;d=c.get(e);if("function"===typeof e.then){if(void 0!==d)if(U===e)U=null;else return"$@"+
|
||||
d.toString(16);a=hb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d);else c.set(e,-1);if(Va(e))return e;if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+T(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));
|
||||
return"$W"+T(a,e).toString(16)}null===e||"object"!==typeof e?a=null:(a=Ga&&e[Ga]||e["@@iterator"],a="function"===typeof a?a:null);if(a)return a=Array.from(e),a;a=Wa(e);if(a!==bb&&(null===a||null!==Wa(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=2,b=
|
||||
a.nextChunkId++,c="string"===typeof e?Buffer.byteLength(e,"utf8"):e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",a.completedRegularChunks.push(c,e),S(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===v)return qb(a,c,d,e);if(e.$$typeof===w)return b=a.writtenServerReferences,
|
||||
c=b.get(e),void 0!==c?a="$h"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=T(a,c),b.set(e,a),a="$h"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+J(c,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". Or maybe you meant to call this function rather than return it.'+
|
||||
J(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var f=b.get(e);if(void 0!==f)return S(f);f=e.description;if(Symbol.for(f)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+J(c,d));a.pendingChunks++;c=a.nextChunkId++;d=pb(a,c,"$S"+f);a.completedImportChunks.push(d);b.set(e,c);return S(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+
|
||||
" is not supported in Client Component props."+J(c,d));}function N(a,b){var c=M;M=null;try{var d=ya.run(void 0,a.onError,b)}finally{M=c}if(null!=d&&"string"!==typeof d)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 d+'" instead');return d||""}
|
||||
function sb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}function O(a,b,c){c={digest:c};b=b.toString(16)+":E"+K(c)+"\n";a.completedErrorChunks.push(b)}var R={};
|
||||
function rb(a,b){if(0===b.status)try{U=b.model;var c=Q(a,b,R,"",b.model);U=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?K(c,b.toJSON):K(c),e=b.id.toString(16)+":"+d+"\n";a.completedRegularChunks.push(e);a.abortableTasks.delete(b);b.status=1}catch(k){var f=k===Ha?Ka():k;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var g=b.ping;f.then(g,g);b.thenableState=Ma()}else{a.abortableTasks.delete(b);b.status=4;var h=N(a,f);O(a,b.id,h)}}finally{}}
|
||||
function ob(a){var b=db.current;db.current=Ra;var c=M;F=M=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)rb(a,d[e]);null!==a.destination&&P(a,a.destination)}catch(f){N(a,f),sb(a,f)}finally{db.current=b,F=null,M=c}}
|
||||
function P(a,b){l=new Uint8Array(2048);m=0;q=!0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)if(a.pendingChunks--,!u(b,c[d])){a.destination=null;d++;break}c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)if(!u(b,e[d])){a.destination=null;d++;break}e.splice(0,d);var f=a.completedRegularChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,!u(b,f[d])){a.destination=null;d++;break}f.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)if(a.pendingChunks--,!u(b,g[d])){a.destination=
|
||||
null;d++;break}g.splice(0,d)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function tb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return ya.run(a,ob,a)})}function jb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return P(a,b)})}}
|
||||
function ub(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{P(a,b)}catch(c){N(a,c),sb(a,c)}}}
|
||||
function vb(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,f=N(a,e);O(a,d,f,e);c.forEach(function(g){g.status=3;var h=S(d);g=pb(a,g.id,h);a.completedErrorChunks.push(g)});c.clear()}null!==a.destination&&P(a,a.destination)}catch(g){N(a,g),sb(a,g)}}var wb=Object.prototype.hasOwnProperty;
|
||||
function xb(a,b){var c=b.lastIndexOf("#");a=b.slice(0,c);b=b.slice(c+1);return{specifier:a,name:b}}var yb=new Map;function zb(a){var b=yb.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var c=import(a.specifier);a.async&&(c=c.then(function(d){return d.default}));c.then(function(d){var e=c;e.status="fulfilled";e.value=d},function(d){var e=c;e.status="rejected";e.reason=d});yb.set(a.specifier,c);return c}
|
||||
function V(a){var b=yb.get(a.specifier);if("fulfilled"===b.status)b=b.value;else throw b.reason;if("*"===a.name)return b;if(""===a.name)return b.default;wb.call(b,a.name);return b[a.name]}function W(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}W.prototype=Object.create(Promise.prototype);
|
||||
W.prototype.then=function(a,b){switch(this.status){case "resolved_model":Ab(this)}switch(this.status){case "fulfilled":if("function"===typeof a){for(var c=this.value,d=0;c instanceof W;){d++;if(c===this||1E3<d){"function"===typeof b&&b(Error("Cannot have cyclic thenables."));return}if("fulfilled"===c.status)c=c.value;else break}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 Bb(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function Cb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&Bb(c,b)}}function Db(a,b,c,d,e,f){var g=xb(a._bundlerConfig,b);a=zb(g);if(c)c=Promise.all([c,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)c=Promise.resolve(a).then(function(){return V(g)});else return V(g);c.then(Eb(d,e,f),Fb(d));return null}
|
||||
var X=null,Y=null;function Ab(a){var b=X,c=Y;X=a;Y=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=c}}function Gb(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(c){"pending"===c.status&&Cb(c,b)})}
|
||||
function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new W("resolved_model",d,null,a):a._closed?new W("rejected",null,a._closedReason,a):new W("pending",null,null,a),c.set(b,d));return d}function Eb(a,b,c){if(Y){var d=Y;d.deps++}else d=Y={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&Bb(e,d.value))}}function Fb(a){return function(b){return Cb(a,b)}}
|
||||
function Hb(a,b){a=Z(a,b);"resolved_model"===a.status&&Ab(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
||||
function Ib(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),Z(a,b);case "S":return Symbol.for(d.slice(2));case "h":return d=parseInt(d.slice(2),16),d=Hb(a,d),Db(a,d.id,d.bound,X,b,c);case "Q":return b=parseInt(d.slice(2),16),a=Hb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Hb(a,b),new Set(a);case "K":b=d.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;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":Ab(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=X,a.then(Eb(d,b,c),Fb(d)),null;default:throw a.reason;}}return d}
|
||||
function Jb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(f,g){return"string"===typeof g?Ib(e,this,f,g):g},_closed:!1,_closedReason:null};return e}
|
||||
function Kb(a,b,c){a._formData.append(b,c);var d=a._prefix;if(b.startsWith(d)&&(a=a._chunks,b=+b.slice(d.length),(b=a.get(b))&&"pending"===b.status&&(d=b.value,a=b.reason,b.status="resolved_model",b.value=c,null!==d)))switch(Ab(b),b.status){case "fulfilled":Bb(d,b.value);break;case "pending":case "blocked":b.value=d;b.reason=a;break;case "rejected":a&&Bb(a,b.reason)}}function Nb(a){Gb(a,Error("Connection closed."))}
|
||||
function Ob(a,b,c){var d=xb(a,b);a=zb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var f=V(d);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(d)}):Promise.resolve(V(d))}function Pb(a,b,c){a=Jb(b,c,a);Nb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Qb(a,b){return function(){return ub(b,a)}}function Rb(a,b){return function(){a.destination=null;vb(a,Error(b))}}
|
||||
exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,oa)};exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Pb(a,b,e),d=Ob(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),d=Ob(b,e,null)):c.append(f,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})};
|
||||
exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(g,h){h.startsWith("$ACTION_REF_")&&(g="$ACTION_"+h.slice(12)+":",e=Pb(b,c,g))});if(null===e)return Promise.resolve(null);var f=e.id;return Promise.resolve(e.bound).then(function(g){return null===g?null:[a,d,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Jb(b,"",a);b=Z(a,0);Nb(a);return b};
|
||||
exports.decodeReplyFromBusboy=function(a,b){var c=Jb(b,""),d=0,e=[];a.on("field",function(f,g){if(0<d)e.push(f,g);else try{Kb(c,f,g)}catch(h){a.destroy(h)}});a.on("file",function(f,g,h){var k=h.filename,p=h.mimeType;if("base64"===h.encoding.toLowerCase())a.destroy(Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."));else{d++;var t=[];g.on("data",function(n){t.push(n)});
|
||||
g.on("end",function(){try{var n=new Blob(t,{type:p});c._formData.append(f,n,k);d--;if(0===d){for(n=0;n<e.length;n+=2)Kb(c,e[n],e[n+1]);e.length=0}}catch(y){a.destroy(y)}})}});a.on("finish",function(){Nb(c)});a.on("error",function(f){Gb(c,f)});return Z(c,0)};exports.registerClientReference=function(a,b,c){return x(a,b+"#"+c,!1)};
|
||||
exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ja,configurable:!0},toString:ka})};
|
||||
exports.renderToPipeableStream=function(a,b,c){var d=gb(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0),e=!1;tb(d);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;ub(d,f);f.on("drain",Qb(f,d));f.on("error",Rb(d,"The destination stream errored while writing data."));f.on("close",Rb(d,"The destination stream closed early."));return f},abort:function(f){vb(d,f)}}};
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-server.node.unbundled.production.min.js.map
|
||||
Generated
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-client.browser.production.min.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-client.browser.development.js');
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-client.edge.production.min.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-client.edge.development.js');
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./client.browser');
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-client.node.production.min.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-client.node.development.js');
|
||||
}
|
||||
Generated
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-client.node.unbundled.production.min.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-client.node.unbundled.development.js');
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
throw new Error('Use react-server-dom-webpack/client instead.');
|
||||
Generated
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./cjs/react-server-dom-webpack-node-register.js');
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"name": "react-server-dom-webpack-builtin",
|
||||
"main": "index.js",
|
||||
"exports": {
|
||||
".": "./index.js",
|
||||
"./plugin": "./plugin.js",
|
||||
"./client": {
|
||||
"workerd": "./client.edge.js",
|
||||
"deno": "./client.edge.js",
|
||||
"worker": "./client.edge.js",
|
||||
"node": {
|
||||
"webpack": "./client.node.js",
|
||||
"default": "./client.node.unbundled.js"
|
||||
},
|
||||
"edge-light": "./client.edge.js",
|
||||
"browser": "./client.browser.js",
|
||||
"default": "./client.browser.js"
|
||||
},
|
||||
"./client.browser": "./client.browser.js",
|
||||
"./client.edge": "./client.edge.js",
|
||||
"./client.node": "./client.node.js",
|
||||
"./client.node.unbundled": "./client.node.unbundled.js",
|
||||
"./server": {
|
||||
"react-server": {
|
||||
"workerd": "./server.edge.js",
|
||||
"deno": "./server.browser.js",
|
||||
"node": {
|
||||
"webpack": "./server.node.js",
|
||||
"default": "./server.node.unbundled.js"
|
||||
},
|
||||
"edge-light": "./server.edge.js",
|
||||
"browser": "./server.browser.js"
|
||||
},
|
||||
"default": "./server.js"
|
||||
},
|
||||
"./server.browser": "./server.browser.js",
|
||||
"./server.edge": "./server.edge.js",
|
||||
"./server.node": "./server.node.js",
|
||||
"./server.node.unbundled": "./server.node.unbundled.js",
|
||||
"./node-loader": "./esm/react-server-dom-webpack-node-loader.production.min.js",
|
||||
"./node-register": "./node-register.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"acorn-loose": "^8.3.0",
|
||||
"neo-async": "^2.6.1",
|
||||
"loose-envify": "^1.1.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "18.3.0-canary-c750c232fe-20251211",
|
||||
"react-dom": "18.3.0-canary-c750c232fe-20251211",
|
||||
"webpack": "^5.59.0"
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./cjs/react-server-dom-webpack-plugin.js');
|
||||
Generated
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-server.browser.production.min.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-server.browser.development.js');
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-server.edge.production.min.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-server.edge.development.js');
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
throw new Error(
|
||||
'The React Server Writer cannot be used outside a react-server environment. ' +
|
||||
'You must configure Node.js using the `--conditions react-server` flag.'
|
||||
);
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-server.node.production.min.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-server.node.development.js');
|
||||
}
|
||||
Generated
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-server.node.unbundled.production.min.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-server-dom-webpack-server.node.unbundled.development.js');
|
||||
}
|
||||
Reference in New Issue
Block a user