react-server-dom-webpack 18.3.0-canary-ce6842d8f-20230610 → 18.3.0-canary-4ddc019ac-20230614

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. package/cjs/react-server-dom-webpack-client.browser.development.js +183 -29
  2. package/cjs/react-server-dom-webpack-client.browser.production.min.js +26 -26
  3. package/cjs/react-server-dom-webpack-client.edge.development.js +183 -29
  4. package/cjs/react-server-dom-webpack-client.edge.production.min.js +25 -25
  5. package/cjs/react-server-dom-webpack-client.node.development.js +183 -29
  6. package/cjs/react-server-dom-webpack-client.node.production.min.js +25 -24
  7. package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +183 -29
  8. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +24 -23
  9. package/cjs/react-server-dom-webpack-server.browser.development.js +32 -8
  10. package/cjs/react-server-dom-webpack-server.browser.production.min.js +46 -46
  11. package/cjs/react-server-dom-webpack-server.edge.development.js +32 -8
  12. package/cjs/react-server-dom-webpack-server.edge.production.min.js +49 -49
  13. package/cjs/react-server-dom-webpack-server.node.development.js +32 -8
  14. package/cjs/react-server-dom-webpack-server.node.production.min.js +37 -37
  15. package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +32 -8
  16. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +56 -56
  17. package/package.json +3 -3
  18. package/umd/react-server-dom-webpack-client.browser.development.js +183 -29
  19. package/umd/react-server-dom-webpack-client.browser.production.min.js +21 -20
  20. package/umd/react-server-dom-webpack-server.browser.development.js +32 -8
  21. package/umd/react-server-dom-webpack-server.browser.production.min.js +43 -42
@@ -7,24 +7,25 @@
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
- (function(){'use strict';(function(q,w){"object"===typeof exports&&"undefined"!==typeof module?w(exports,require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["exports","react-dom","react"],w):(q="undefined"!==typeof globalThis?globalThis:q||self,w(q.ReactServerDOMClient={},q.ReactDOM,q.React))})(this,function(q,w,J){function S(a,b){if(a){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');
11
- c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}function T(){}function U(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var f=b[d],g=y.get(f);if(void 0===g){g=__webpack_chunk_load__(f);c.push(g);var n=y.set.bind(y,f,null);g.then(n,T);y.set(f,g)}else null!==g&&c.push(g)}if(a.async){if(b=F.get(a.id))return"fulfilled"===b.status?null:b;var l=Promise.all(c).then(function(){return __webpack_require__(a.id)});l.then(function(h){l.status="fulfilled";l.value=h},function(h){l.status=
12
- "rejected";l.reason=h});F.set(a.id,l);return l}return 0<c.length?Promise.all(c):null}function V(a){if(null===a||"object"!==typeof a)return null;a=K&&a[K]||a["@@iterator"];return"function"===typeof a?a:null}function W(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}function L(a,b,c,d){function f(h,e){if(null===e)return null;if("object"===typeof e){if("function"===typeof e.then){null===l&&(l=new FormData);n++;var k=g++;e.then(function(t){t=
13
- JSON.stringify(t,f);var z=l;z.append(b+k,t);n--;0===n&&c(z)},function(t){d(t)});return"$@"+k.toString(16)}if(e instanceof FormData){null===l&&(l=new FormData);var m=l;h=g++;var p=b+h+"_";e.forEach(function(t,z){m.append(p+z,t)});return"$K"+h.toString(16)}return!X(e)&&V(e)?Array.from(e):e}if("string"===typeof e){if("Z"===e[e.length-1]&&this[h]instanceof Date)return"$D"+e;e="$"===e[0]?"$"+e:e;return e}if("boolean"===typeof e)return e;if("number"===typeof e)return W(e);if("undefined"===typeof e)return"$undefined";
14
- if("function"===typeof e){e=A.get(e);if(void 0!==e)return e=JSON.stringify(e,f),null===l&&(l=new FormData),h=g++,l.set(b+h,e),"$F"+h.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){h=e.description;if(Symbol.for(h)!==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."));
15
- return"$S"+h}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 g=1,n=0,l=null;a=JSON.stringify(a,f);null===l?c(a):(l.set(b+"0",a),0===n&&c(l))}function Y(a){var b,c,d=new Promise(function(f,g){b=f;c=g});L(a,"",function(f){if("string"===typeof f){var g=new FormData;g.append("0",f);f=g}d.status="fulfilled";d.value=f;b(f)},function(f){d.status="rejected";d.reason=f;c(f)});return d}function M(a){var b=A.get(this);
16
- 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=N.get(b);c||(c=Y(b),N.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,g){d.append("$ACTION_"+a+":"+g,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 u(a,b,c,d){this.status=a;
17
- this.value=b;this.reason=c;this._response=d}function Z(a){switch(a.status){case "resolved_model":x(a);break;case "resolved_module":B(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function C(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function O(a,b,c){switch(a.status){case "fulfilled":C(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&C(c,a.reason)}}function D(a,b){if("pending"===a.status||
18
- "blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&C(c,b)}}function P(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&&(B(a),O(a,c,d))}}function x(a){var b=E,c=r;E=a;r=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==r&&0<r.deps?(r.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(f){a.status="rejected",a.reason=f}finally{E=b,r=c}}function B(a){try{var b=
19
- a.value;if(b.async){var c=F.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var f="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=f}catch(g){a.status="rejected",a.reason=g}}function G(a,b){a._chunks.forEach(function(c){"pending"===c.status&&D(c,b)})}function v(a,b){var c=a._chunks,d=c.get(b);d||(d=new u("pending",null,null,a),c.set(b,d));return d}function aa(a,b,c){if(r){var d=r;d.deps++}else d=r={deps:1,
20
- value:null};return function(f){b[c]=f;d.deps--;0===d.deps&&"blocked"===a.status&&(f=a.value,a.status="fulfilled",a.value=d.value,null!==f&&C(f,d.value))}}function ba(a){return function(b){return D(a,b)}}function ca(a,b){var c=a._callServer;a=function(){var d=Array.prototype.slice.call(arguments),f=b.bound;return f?"fulfilled"===f.status?c(b.id,f.value.concat(d)):Promise.resolve(f).then(function(g){return c(b.id,g.concat(d))}):c(b.id,d)};a.$$FORM_ACTION=M;A.set(a,b);return a}function da(a,b,c,d){if("$"===
21
- d[0]){if("$"===d)return H;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=v(a,b),{$$typeof:ea,_payload:a,_init:Z};case "@":return b=parseInt(d.slice(2),16),v(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),I[a]||(I[a]=J.createServerContext(a,fa)),I[a].Provider;case "F":b=parseInt(d.slice(2),16);b=v(a,b);switch(b.status){case "resolved_model":x(b)}switch(b.status){case "fulfilled":return ca(a,b.value);default:throw b.reason;}case "I":return Infinity;
22
- 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=v(a,d);switch(a.status){case "resolved_model":x(a);break;case "resolved_module":B(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=E,a.then(aa(d,b,c),ba(d)),null;default:throw a.reason;}}}return d}function ha(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');
23
- }function Q(a,b){var c=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:ha,_chunks:c,_partialRow:"",_stringDecoder:new TextDecoder,_fromJSON:null};a._fromJSON=ia(a);return a}function ja(a,b,c){var d=a._chunks,f=d.get(b);c=JSON.parse(c,a._fromJSON);var g=S(a._bundlerConfig,c);if(c=U(g)){if(f){var n=f;n.status="blocked"}else n=new u("blocked",null,null,a),d.set(b,n);c.then(function(){return P(n,g)},function(l){return D(n,l)})}else f?P(f,g):d.set(b,new u("resolved_module",g,null,a))}function ia(a){return function(b,
24
- c){return"string"===typeof c?da(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===H?{$$typeof:H,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function R(a,b){function c(g){var n=g.value;if(g.done)G(a,Error("Connection closed."));else{g=n;n=a._stringDecoder;for(var l=g.indexOf(10);-1<l;){var h=a._partialRow;var e=g.subarray(0,l);e=n.decode(e);var k=h+e;h=a;if(""!==k){var m=k.indexOf(":",0);e=parseInt(k.slice(0,m),16);switch(k[m+1]){case "I":ja(h,e,k.slice(m+2));break;case "H":e=k[m+
25
- 2];k=k.slice(m+3);h=JSON.parse(k,h._fromJSON);k=void 0;var p=ka.current;if(p)switch("string"===typeof h?m=h:(m=h[0],k=h[1]),e){case "D":p.prefetchDNS(m,k);break;case "C":p.preconnect(m,k);break;case "L":p.preload(m,k);break;case "I":p.preinit(m,k)}break;case "E":m=JSON.parse(k.slice(m+2)).digest;k=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.");
26
- k.stack="Error: "+k.message;k.digest=m;m=h._chunks;(p=m.get(e))?D(p,k):m.set(e,new u("rejected",null,k,h));break;default:k=k.slice(m+1),m=h._chunks,(p=m.get(e))?(h=p,e=k,"pending"===h.status&&(k=h.value,m=h.reason,h.status="resolved_model",h.value=e,null!==k&&(x(h),O(h,k,m)))):m.set(e,new u("resolved_model",k,null,h))}}a._partialRow="";g=g.subarray(l+1);l=g.indexOf(10)}a._partialRow+=n.decode(g,la);return f.read().then(c).catch(d)}}function d(g){G(a,g)}var f=b.getReader();f.read().then(c).catch(d)}
27
- var la={stream:!0},y=new Map,F=new Map,ka=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,H=Symbol.for("react.element"),ea=Symbol.for("react.lazy"),fa=Symbol.for("react.default_value"),K=Symbol.iterator,X=Array.isArray,A=new WeakMap,N=new WeakMap,I=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;u.prototype=Object.create(Promise.prototype);u.prototype.then=function(a,b){switch(this.status){case "resolved_model":x(this);break;case "resolved_module":B(this)}switch(this.status){case "fulfilled":a(this.value);
28
- 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)}};var E=null,r=null;q.createFromFetch=function(a,b){var c=Q(null,b&&b.callServer?b.callServer:void 0);a.then(function(d){R(c,d.body)},function(d){G(c,d)});return v(c,0)};q.createFromReadableStream=function(a,b){b=Q(null,b&&b.callServer?b.callServer:void 0);R(b,a);return v(b,0)};q.createServerReference=function(a,b){var c=
29
- function(){var d=Array.prototype.slice.call(arguments);return b(a,d)};c.$$FORM_ACTION=M;A.set(c,{id:a,bound:null});return c};q.encodeReply=function(a){return new Promise(function(b,c){L(a,"",b,c)})}});
10
+ (function(){'use strict';(function(r,w){"object"===typeof exports&&"undefined"!==typeof module?w(exports,require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["exports","react-dom","react"],w):(r="undefined"!==typeof globalThis?globalThis:r||self,w(r.ReactServerDOMClient={},r.ReactDOM,r.React))})(this,function(r,w,K){function U(a,b){if(a){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');
11
+ c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}function V(){}function W(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var g=b[d],k=y.get(g);if(void 0===k){k=__webpack_chunk_load__(g);c.push(k);var n=y.set.bind(y,g,null);k.then(n,V);y.set(g,k)}else null!==k&&c.push(k)}if(a.async){if(b=E.get(a.id))return"fulfilled"===b.status?null:b;var e=Promise.all(c).then(function(){return __webpack_require__(a.id)});e.then(function(m){e.status="fulfilled";e.value=m},function(m){e.status=
12
+ "rejected";e.reason=m});E.set(a.id,e);return e}return 0<c.length?Promise.all(c):null}function X(a){if(null===a||"object"!==typeof a)return null;a=L&&a[L]||a["@@iterator"];return"function"===typeof a?a:null}function Y(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}function M(a,b,c,d){function g(m,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===e&&(e=new FormData);n++;var h=k++;f.then(function(p){p=
13
+ JSON.stringify(p,g);var q=e;q.append(b+h,p);n--;0===n&&c(q)},function(p){d(p)});return"$@"+h.toString(16)}if(f instanceof FormData){null===e&&(e=new FormData);var l=e;m=k++;var F=b+m+"_";f.forEach(function(p,q){l.append(F+q,p)});return"$K"+m.toString(16)}return!Z(f)&&X(f)?Array.from(f):f}if("string"===typeof f){if("Z"===f[f.length-1]&&this[m]instanceof Date)return"$D"+f;f="$"===f[0]?"$"+f:f;return f}if("boolean"===typeof f)return f;if("number"===typeof f)return Y(f);if("undefined"===typeof f)return"$undefined";
14
+ if("function"===typeof f){f=z.get(f);if(void 0!==f)return f=JSON.stringify(f,g),null===e&&(e=new FormData),m=k++,e.set(b+m,f),"$F"+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 f){m=f.description;if(Symbol.for(m)!==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."));
15
+ return"$S"+m}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 k=1,n=0,e=null;a=JSON.stringify(a,g);null===e?c(a):(e.set(b+"0",a),0===n&&c(e))}function aa(a){var b,c,d=new Promise(function(g,k){b=g;c=k});M(a,"",function(g){if("string"===typeof g){var k=new FormData;k.append("0",g);g=k}d.status="fulfilled";d.value=g;b(g)},function(g){d.status="rejected";d.reason=g;c(g)});return d}function N(a){var b=z.get(this);
16
+ 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=O.get(b);c||(c=aa(b),O.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,k){d.append("$ACTION_"+a+":"+k,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 u(a,b,c,d){this.status=
17
+ a;this.value=b;this.reason=c;this._response=d}function ba(a){switch(a.status){case "resolved_model":x(a);break;case "resolved_module":A(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function B(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function P(a,b,c){switch(a.status){case "fulfilled":B(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&B(c,a.reason)}}function C(a,b){if("pending"===a.status||
18
+ "blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&B(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&&(A(a),P(a,c,d))}}function x(a){var b=D,c=t;D=a;t=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==t&&0<t.deps?(t.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(g){a.status="rejected",a.reason=g}finally{D=b,t=c}}function A(a){try{var b=
19
+ a.value;if(b.async){var c=E.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var g="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=g}catch(k){a.status="rejected",a.reason=k}}function G(a,b){a._chunks.forEach(function(c){"pending"===c.status&&C(c,b)})}function v(a,b){var c=a._chunks,d=c.get(b);d||(d=new u("pending",null,null,a),c.set(b,d));return d}function ca(a,b,c){if(t){var d=t;d.deps++}else d=t={deps:1,
20
+ value:null};return function(g){b[c]=g;d.deps--;0===d.deps&&"blocked"===a.status&&(g=a.value,a.status="fulfilled",a.value=d.value,null!==g&&B(g,d.value))}}function da(a){return function(b){return C(a,b)}}function ea(a,b){var c=a._callServer;a=function(){var d=Array.prototype.slice.call(arguments),g=b.bound;return g?"fulfilled"===g.status?c(b.id,g.value.concat(d)):Promise.resolve(g).then(function(k){return c(b.id,k.concat(d))}):c(b.id,d)};a.$$FORM_ACTION=N;z.set(a,b);return a}function fa(a,b,c,d){if("$"===
21
+ d[0]){if("$"===d)return H;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=v(a,b),{$$typeof:ha,_payload:a,_init:ba};case "@":return b=parseInt(d.slice(2),16),v(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),I[a]||(I[a]=K.createServerContext(a,ia)),I[a].Provider;case "F":b=parseInt(d.slice(2),16);b=v(a,b);switch(b.status){case "resolved_model":x(b)}switch(b.status){case "fulfilled":return ea(a,b.value);default:throw b.reason;}case "I":return Infinity;
22
+ 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=v(a,d);switch(a.status){case "resolved_model":x(a);break;case "resolved_module":A(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=D,a.then(ca(d,b,c),da(d)),null;default:throw a.reason;}}}return d}function ja(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');
23
+ }function R(a,b){var c=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:ja,_chunks:c,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=ka(a);return a}function la(a,b,c){var d=a._chunks,g=d.get(b);c=JSON.parse(c,a._fromJSON);var k=U(a._bundlerConfig,c);if(c=W(k)){if(g){var n=g;n.status="blocked"}else n=new u("blocked",null,null,a),d.set(b,n);c.then(function(){return Q(n,k)},function(e){return C(n,e)})}else g?Q(g,k):d.set(b,new u("resolved_module",
24
+ k,null,a))}function ka(a){return function(b,c){return"string"===typeof c?fa(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===H?{$$typeof:H,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function S(a,b){function c(k){var n=k.value;if(k.done)G(a,Error("Connection closed."));else{var e=0,m=a._rowState,f=a._rowID,h=a._rowTag,l=a._rowLength;k=a._buffer;for(var F=n.length;e<F;){var p=-1;switch(m){case 0:p=n[e++];58===p?m=1:f=f<<4|(96<p?p-87:p-48);continue;case 1:m=n[e];84===m?(h=m,m=2,e++):
25
+ 64<m&&91>m?(h=m,m=3,e++):(h=0,m=3);continue;case 2:p=n[e++];44===p?m=4:l=l<<4|(96<p?p-87:p-48);continue;case 3:p=n.indexOf(10,e);break;case 4:p=e+l,p>n.length&&(p=-1)}var q=n.byteOffset+e;if(-1<p){e=new Uint8Array(n.buffer,q,p-e);l=a;q=h;h="";for(var T=l._stringDecoder,J=0;J<k.length;J++)h+=T.decode(k[J],ma);h="string"===typeof e?h+e:h+T.decode(e);switch(q){case 73:la(l,f,h);break;case 72:f=h[0];h=h.slice(1);l=JSON.parse(h,l._fromJSON);h=void 0;if(q=na.current)switch("string"===typeof l?e=l:(e=l[0],
26
+ h=l[1]),f){case "D":q.prefetchDNS(e,h);break;case "C":q.preconnect(e,h);break;case "L":q.preload(e,h);break;case "I":q.preinit(e,h)}break;case 69:h=JSON.parse(h);e=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=e;e=l._chunks;(q=e.get(f))?
27
+ C(q,h):e.set(f,new u("rejected",null,h,l));break;case 84:l._chunks.set(f,new u("fulfilled",h,null,l));break;default:e=l._chunks,(q=e.get(f))?(l=q,f=h,"pending"===l.status&&(h=l.value,e=l.reason,l.status="resolved_model",l.value=f,null!==h&&(x(l),P(l,h,e)))):e.set(f,new u("resolved_model",h,null,l))}e=p;3===m&&e++;l=f=h=m=0;k.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-e);k.push(n);l-=n.byteLength;break}}a._rowState=m;a._rowID=f;a._rowTag=h;a._rowLength=l;return g.read().then(c).catch(d)}}
28
+ function d(k){G(a,k)}var g=b.getReader();g.read().then(c).catch(d)}var ma={stream:!0},y=new Map,E=new Map,na=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,H=Symbol.for("react.element"),ha=Symbol.for("react.lazy"),ia=Symbol.for("react.default_value"),L=Symbol.iterator,Z=Array.isArray,z=new WeakMap,O=new WeakMap,I=K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;u.prototype=Object.create(Promise.prototype);u.prototype.then=function(a,b){switch(this.status){case "resolved_model":x(this);
29
+ break;case "resolved_module":A(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};var D=null,t=null;r.createFromFetch=function(a,b){var c=R(null,b&&b.callServer?b.callServer:void 0);a.then(function(d){S(c,d.body)},function(d){G(c,d)});return v(c,0)};r.createFromReadableStream=function(a,b){b=R(null,b&&b.callServer?
30
+ b.callServer:void 0);S(b,a);return v(b,0)};r.createServerReference=function(a,b){var c=function(){var d=Array.prototype.slice.call(arguments);return b(a,d)};c.$$FORM_ACTION=N;z.set(c,{id:a,bound:null});return c};r.encodeReply=function(a){return new Promise(function(b,c){M(a,"",b,c)})}});
30
31
  })();
@@ -132,6 +132,9 @@
132
132
  return textEncoder.encode(content);
133
133
  }
134
134
  var precomputedChunkSet = new Set() ;
135
+ function byteLengthOfChunk(chunk) {
136
+ return chunk.byteLength;
137
+ }
135
138
  function closeWithError(destination, error) {
136
139
  // $FlowFixMe[method-unbinding]
137
140
  if (typeof destination.error === 'function') {
@@ -1178,7 +1181,7 @@
1178
1181
  pingedTasks: pingedTasks,
1179
1182
  completedImportChunks: [],
1180
1183
  completedHintChunks: [],
1181
- completedJSONChunks: [],
1184
+ completedRegularChunks: [],
1182
1185
  completedErrorChunks: [],
1183
1186
  writtenSymbols: new Map(),
1184
1187
  writtenClientReferences: new Map(),
@@ -1625,11 +1628,20 @@
1625
1628
  var metadataId = request.nextChunkId++; // We assume that this object doesn't suspend.
1626
1629
 
1627
1630
  var processedChunk = processModelChunk(request, metadataId, serverReferenceMetadata);
1628
- request.completedJSONChunks.push(processedChunk);
1631
+ request.completedRegularChunks.push(processedChunk);
1629
1632
  writtenServerReferences.set(serverReference, metadataId);
1630
1633
  return serializeServerReferenceID(metadataId);
1631
1634
  }
1632
1635
 
1636
+ function serializeLargeTextString(request, text) {
1637
+ request.pendingChunks += 2;
1638
+ var textId = request.nextChunkId++;
1639
+ var textChunk = stringToChunk(text);
1640
+ var headerChunk = processTextHeader(request, textId, text, byteLengthOfChunk(textChunk));
1641
+ request.completedRegularChunks.push(headerChunk, textChunk);
1642
+ return serializeByValueID(textId);
1643
+ }
1644
+
1633
1645
  function escapeStringValue(value) {
1634
1646
  if (value[0] === '$') {
1635
1647
  // We need to escape $ prefixed strings since we use those to encode
@@ -1821,6 +1833,13 @@
1821
1833
  }
1822
1834
  }
1823
1835
 
1836
+ if (value.length >= 1024) {
1837
+ // For large strings, we encode them outside the JSON payload so that we
1838
+ // don't have to double encode and double parse the strings. This can also
1839
+ // be more compact in case the string has a lot of escaped characters.
1840
+ return serializeLargeTextString(request, value);
1841
+ }
1842
+
1824
1843
  return escapeStringValue(value);
1825
1844
  }
1826
1845
 
@@ -1959,7 +1978,7 @@
1959
1978
  function emitProviderChunk(request, id, contextName) {
1960
1979
  var contextReference = serializeProviderReference(contextName);
1961
1980
  var processedChunk = processReferenceChunk(request, id, contextReference);
1962
- request.completedJSONChunks.push(processedChunk);
1981
+ request.completedRegularChunks.push(processedChunk);
1963
1982
  }
1964
1983
 
1965
1984
  function retryTask(request, task) {
@@ -1999,7 +2018,7 @@
1999
2018
  }
2000
2019
 
2001
2020
  var processedChunk = processModelChunk(request, task.id, value);
2002
- request.completedJSONChunks.push(processedChunk);
2021
+ request.completedRegularChunks.push(processedChunk);
2003
2022
  request.abortableTasks.delete(task);
2004
2023
  task.status = COMPLETED;
2005
2024
  } catch (thrownValue) {
@@ -2110,12 +2129,12 @@
2110
2129
 
2111
2130
  hintChunks.splice(0, i); // Next comes model data.
2112
2131
 
2113
- var jsonChunks = request.completedJSONChunks;
2132
+ var regularChunks = request.completedRegularChunks;
2114
2133
  i = 0;
2115
2134
 
2116
- for (; i < jsonChunks.length; i++) {
2135
+ for (; i < regularChunks.length; i++) {
2117
2136
  request.pendingChunks--;
2118
- var _chunk2 = jsonChunks[i];
2137
+ var _chunk2 = regularChunks[i];
2119
2138
 
2120
2139
  var _keepWriting2 = writeChunkAndReturn(destination, _chunk2);
2121
2140
 
@@ -2126,7 +2145,7 @@
2126
2145
  }
2127
2146
  }
2128
2147
 
2129
- jsonChunks.splice(0, i); // Finally, errors are sent. The idea is that it's ok to delay
2148
+ regularChunks.splice(0, i); // Finally, errors are sent. The idea is that it's ok to delay
2130
2149
  // any error messages and prioritize display of other parts of
2131
2150
  // the page.
2132
2151
 
@@ -2312,6 +2331,11 @@
2312
2331
  return stringToChunk(row);
2313
2332
  }
2314
2333
 
2334
+ function processTextHeader(request, id, text, binaryLength) {
2335
+ var row = id.toString(16) + ':T' + binaryLength.toString(16) + ',';
2336
+ return stringToChunk(row);
2337
+ }
2338
+
2315
2339
  // eslint-disable-next-line no-unused-vars
2316
2340
  function resolveServerReference(bundlerConfig, id) {
2317
2341
  var name = '';
@@ -7,46 +7,47 @@
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
- (function(){'use strict';(function(u,G){"object"===typeof exports&&"undefined"!==typeof module?G(exports,require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["exports","react-dom","react"],G):(u="undefined"!==typeof globalThis?globalThis:u||self,G(u.ReactServerDOMServer={},u.ReactDOM,u.React))})(this,function(u,G,pa){function P(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(p.buffer,0,n)),p=new Uint8Array(512),n=0),a.enqueue(b);else{var d=p.length-n;d<b.length&&
11
- (0===d?a.enqueue(p):(p.set(b.subarray(0,d),n),a.enqueue(p),b=b.subarray(d)),p=new Uint8Array(512),n=0);p.set(b,n);n+=b.length}return!0}function qa(a,b){"function"===typeof a.error?a.error(b):a.close()}function Q(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");
12
- Q(a,d);b.context._currentValue=b.value}}}function ra(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&ra(a)}function sa(a){var b=a.parent;null!==b&&sa(b);a.context._currentValue=a.value}function ta(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?Q(a,b):ta(a,b)}function ua(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");
13
- a.depth===d.depth?Q(a,d):ua(a,d);b.context._currentValue=b.value}function Y(a){var b=r;b!==a&&(null===b?sa(a):null===a?ra(b):b.depth===a.depth?Q(b,a):b.depth>a.depth?ta(b,a):ua(b,a),r=a)}function va(a,b){var d=a._currentValue;a._currentValue=b;var c=r;return r=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}function wa(){}function Wa(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(wa,wa),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;
14
- default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}R=b;throw Z;}}function xa(){if(null===R)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=R;R=null;return a}function ya(){var a=x;x=null;return a}function za(a){return a._currentValue}
15
- function q(){throw Error("This Hook is not supported in Server Components.");}function Xa(){throw Error("Refreshing the cache is not supported in Server Components.");}function aa(){return(new AbortController).signal}function Aa(){var a=l?l:null;return a?a.cache:new Map}function Ba(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}function ba(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(ca(a))return"[...]";
16
- a=Ba(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}function S(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 Ca:return S(a.render);case Da:return S(a.type);case H:var b=a._payload;a=a._init;try{return S(a(b))}catch(d){}}return""}function C(a,b){var d=Ba(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(ca(a)){var e="[";for(var f=0;f<a.length;f++){0<
17
- f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?C(g):ba(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===m)e="<"+S(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?C(k):ba(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=
18
- " ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}function $a(a){console.error(a)}function ab(a,b,d,c,e){if(null!==da.current&&da.current!==Ea)throw Error("Currently React only supports one RSC renderer at a time.");bb.current=cb;da.current=Ea;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedJSONChunks:[],
19
- completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?$a:d,toJSON:function(t,y){return db(k,this,t,y)}};k.pendingChunks++;b=eb(c);a=ea(k,a,b,f);g.push(a);return k}function fb(a,b){a.pendingChunks++;var d=ea(a,null,r,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,fa(a,d),d.id;case "rejected":var c=v(a,b.reason);D(a,d.id,c);return d.id;
20
- default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;fa(a,d)},function(e){d.status=4;e=v(a,e);D(a,d.id,e);null!==a.destination&&I(a,a.destination)});return d.id}function gb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function hb(a){switch(a.status){case "fulfilled":case "rejected":break;
21
- 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:H,_payload:a,_init:gb}}function J(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===T)return[m,b,d,e];U=0;x=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===
22
- typeof e.then?"fulfilled"===e.status?e.value:hb(e):e}if("string"===typeof b)return[m,b,d,e];if("symbol"===typeof b)return b===ib?e.children:[m,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===T)return[m,b,d,e];switch(b.$$typeof){case H:var g=b._init;b=g(b._payload);return J(a,b,d,c,e,f);case Ca:return a=b.render,U=0,x=f,a(e,void 0);case Da:return J(a,b.type,d,c,e,f);case Fa:return va(b._context,e.value),[m,b,d,{value:e.value,children:e.children,__pop:Ga}]}}throw Error("Unsupported Server Component type: "+
23
- ba(b));}function fa(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,Ha(a))}function ea(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return fa(a,e)},thenableState:null};c.add(e);return e}function Ia(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===m&&"1"===d?"$L"+g.toString(16):"$"+g.toString(16);try{var h=a.bundlerConfig,k=c.$$id;g="";var t=h[k];if(t)g=t.name;
24
- else{var y=k.lastIndexOf("#");-1!==y&&(g=k.slice(y+1),t=h[k.slice(0,y)]);if(!t)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var z={id:t.id,chunks:t.chunks,name:g,async:!!c.$$async};a.pendingChunks++;var A=a.nextChunkId++,ha=K(z),B=A.toString(16)+":I"+ha+"\n";var jb=L.encode(B);a.completedImportChunks.push(jb);f.set(e,A);return b[0]===m&&"1"===d?"$L"+A.toString(16):"$"+A.toString(16)}catch(kb){return a.pendingChunks++,
25
- b=a.nextChunkId++,d=v(a,kb),D(a,b,d),"$"+b.toString(16)}}function db(a,b,d,c){switch(c){case m:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===m||c.$$typeof===H);)try{switch(c.$$typeof){case m:var e=c;c=J(a,e.type,e.key,e.ref,e.props,null);break;case H:var f=c._init;c=f(c._payload)}}catch(g){d=g===Z?xa():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=ea(a,c,r,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=ya(),"$L"+a.id.toString(16);a.pendingChunks++;
26
- c=a.nextChunkId++;d=v(a,d);D(a,c,d);return"$L"+c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===T)return Ia(a,b,d,c);if("function"===typeof c.then)return"$@"+fb(a,c).toString(16);if(c.$$typeof===Fa)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=ia(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===Ga){a=r;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
27
- c=a.parentValue;a.context._currentValue=c===Ja?a.context._defaultValue:c;r=a.parent;return}return!ca(c)&&(null===c||"object"!==typeof c?a=null:(a=Ka&&c[Ka]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":
28
- "$NaN";if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===T)return Ia(a,b,d,c);if(c.$$typeof===lb)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=La(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+C(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");
29
- throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+C(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return"$"+f.toString(16);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+C(b,d));a.pendingChunks++;d=a.nextChunkId++;b=
30
- ia(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+C(b,d));}function v(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');
31
- return b||""}function ja(a,b){null!==a.destination?(a.status=2,qa(a.destination,b)):(a.status=1,a.fatalError=b)}function D(a,b,d){d={digest:d};b=b.toString(16)+":E"+K(d)+"\n";b=L.encode(b);a.completedErrorChunks.push(b)}function E(a,b,d){var c=a.nextChunkId++;d=K(d);b="H"+b;c=c.toString(16)+":"+b;c=L.encode(c+d+"\n");a.completedHintChunks.push(c)}function Ha(a){var b=ka.current;ka.current=mb;var d=l;M=l=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===
32
- f.status){Y(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===m){var k=h,t=f.thenableState;f.model=h;h=J(g,k.type,k.key,k.ref,k.props,t);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===m;)k=h,f.model=h,h=J(g,k.type,k.key,k.ref,k.props,null)}var y=La(g,f.id,h);g.completedJSONChunks.push(y);g.abortableTasks.delete(f);f.status=1}catch(B){var z=B===Z?xa():B;if("object"===typeof z&&null!==z&&"function"===typeof z.then){var A=f.ping;z.then(A,A);f.thenableState=
33
- ya()}else{g.abortableTasks.delete(f);f.status=4;var ha=v(g,z);D(g,f.id,ha)}}}}null!==a.destination&&I(a,a.destination)}catch(B){v(a,B),ja(a,B)}finally{ka.current=b,M=null,l=d}}function I(a,b){p=new Uint8Array(512);n=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,P(b,d[c]);d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)P(b,e[c]);e.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)a.pendingChunks--,P(b,f[c]);f.splice(0,c);var g=a.completedErrorChunks;
34
- for(c=0;c<g.length;c++)a.pendingChunks--,P(b,g[c]);g.splice(0,c)}finally{a.flushScheduled=!1,p&&0<n&&(b.enqueue(new Uint8Array(p.buffer,0,n)),p=null,n=0)}0===a.pendingChunks&&b.close()}function V(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;I(a,b)}}function Ma(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=v(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;
35
- D(a,e,c);d.forEach(function(f){f.status=3;var g="$"+e.toString(16);f=ia(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&I(a,a.destination)}catch(f){v(a,f),ja(a,f)}}function eb(a){if(a){var b=r;Y(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];la[e]||(la[e]=pa.createServerContext(e,Ja));va(la[e],c)}a=r;Y(b);return a}return null}function La(a,b,d){a=K(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return L.encode(b)}function ia(a,b,d){a=K(d);b=b.toString(16)+":"+a+"\n";
36
- return L.encode(b)}function Na(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0,e)]);if(!c)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return{id:c.id,chunks:c.chunks,name:d,async:!1}}function nb(){}function Oa(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=W.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=W.set.bind(W,
37
- e,null);f.then(g,nb);W.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=ma.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)});h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=k});ma.set(a.id,h);return h}return 0<d.length?Promise.all(d):null}function F(a){if(a.async){var b=ma.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?
38
- b:""===a.name?b.__esModule?b.default:b:b[a.name]}function X(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}function Pa(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}function Qa(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Pa(d,b)}}function ob(a,b,d,c,e,f){var g=Na(a._bundlerConfig,b);a=Oa(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=F(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return F(g)});
39
- else return F(g);d.then(Ra(c,e,f),Sa(c));return null}function na(a){var b=N,d=w;N=a;w=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==w&&0<w.deps?(w.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{N=b,w=d}}function pb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Qa(d,b)})}function O(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new X("resolved_model",c,
40
- null,a):new X("pending",null,null,a),d.set(b,c));return c}function Ra(a,b,d){if(w){var c=w;c.deps++}else c=w={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&Pa(e,c.value))}}function Sa(a){return function(b){return Qa(a,b)}}function qb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),O(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),
41
- 16);c=O(a,c);"resolved_model"===c.status&&na(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return ob(a,c.id,c.bound,N,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&f.append(h.slice(e.length),g)});return f;case "I":return Infinity;case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=
42
- O(a,c);switch(a.status){case "resolved_model":na(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=N,a.then(Ra(c,b,d),Sa(c)),null;default:throw a.reason;}}return c}function Ta(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?qb(e,this,f,g):g}};return e}function Ua(a){pb(a,Error("Connection closed."))}function Va(a,b,
43
- d){var c=Na(a,b);a=Oa(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=F(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return F(c)}):Promise.resolve(F(c))}var p=null,n=0,L=new TextEncoder,T=Symbol.for("react.client.reference"),lb=Symbol.for("react.server.reference"),cb={prefetchDNS:function(a,b){if("string"===typeof a){var d=l?l:null;if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?E(d,"D",[a,b]):E(d,"D",a),V(d))}}},preconnect:function(a,b){if("string"===
44
- typeof a){var d=l?l:null;if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null===e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?E(d,"C",[a,b]):E(d,"C",a),V(d))}}},preload:function(a,b){if("string"===typeof a){var d=l?l:null;if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),E(d,"L",[a,b]),V(d))}}},preinit:function(a,b){if("string"===typeof a){var d=l?l:null;if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),E(d,"I",[a,b]),V(d))}}}},
45
- bb=G.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,m=Symbol.for("react.element"),ib=Symbol.for("react.fragment"),Fa=Symbol.for("react.provider"),rb=Symbol.for("react.server_context"),Ca=Symbol.for("react.forward_ref"),Ya=Symbol.for("react.suspense"),Za=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Ja=Symbol.for("react.default_value"),sb=Symbol.for("react.memo_cache_sentinel"),Ka=Symbol.iterator,r=null,Z=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`"),
46
- R=null,M=null,U=0,x=null,mb={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:q,useTransition:q,readContext:za,useContext:za,useReducer:q,useRef:q,useState:q,useInsertionEffect:q,useLayoutEffect:q,useImperativeHandle:q,useEffect:q,useId:function(){if(null===M)throw Error("useId can only be used while React is rendering");var a=M.identifierCount++;return":"+M.identifierPrefix+"S"+a.toString(32)+":"},useMutableSource:q,useSyncExternalStore:q,
47
- useCacheRefresh:function(){return Xa},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=sb;return b},use:function(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=U;U+=1;null===x&&(x=[]);return Wa(x,a,b)}if(a.$$typeof===rb)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}},Ea={getCacheSignal:function(){var a=Aa(),b=a.get(aa);void 0===b&&(b=aa(),a.set(aa,b));return b},getCacheForType:function(a){var b=
48
- Aa(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},ca=Array.isArray,oa=pa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,la=oa.ContextRegistry,K=JSON.stringify,ka=oa.ReactCurrentDispatcher,da=oa.ReactCurrentCache,l=null,Ga={},W=new Map,ma=new Map;X.prototype=Object.create(Promise.prototype);X.prototype.then=function(a,b){switch(this.status){case "resolved_model":na(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=
49
- []),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};var N=null,w=null;u.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){if(f.startsWith("$ACTION_"))if(f.startsWith("$ACTION_REF_")){e="$ACTION_"+f.slice(12)+":";e=Ta(b,e,a);Ua(e);e=O(e,0);e.then(function(){});if("fulfilled"!==e.status)throw e.reason;e=e.value;c=Va(b,e.id,e.bound)}else f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Va(b,e,null));else d.append(f,
50
- e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};u.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Ta(b,"",a);Ua(a);return O(a,0)};u.renderToReadableStream=function(a,b,d){var c=ab(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)Ma(c,e.reason);else{var f=function(){Ma(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",
51
- start:function(g){c.flushScheduled=null!==c.destination;Ha(c)},pull:function(g){if(1===c.status)c.status=2,qa(g,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=g;try{I(c,g)}catch(h){v(c,h),ja(c,h)}}},cancel:function(g){}},{highWaterMark:0})}});
10
+ (function(){'use strict';(function(u,I){"object"===typeof exports&&"undefined"!==typeof module?I(exports,require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["exports","react-dom","react"],I):(u="undefined"!==typeof globalThis?globalThis:u||self,I(u.ReactServerDOMServer={},u.ReactDOM,u.React))})(this,function(u,I,qa){function Q(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(p.buffer,0,n)),p=new Uint8Array(512),n=0),a.enqueue(b);else{var d=p.length-n;d<b.length&&
11
+ (0===d?a.enqueue(p):(p.set(b.subarray(0,d),n),a.enqueue(p),b=b.subarray(d)),p=new Uint8Array(512),n=0);p.set(b,n);n+=b.length}return!0}function ra(a,b){"function"===typeof a.error?a.error(b):a.close()}function R(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");
12
+ R(a,d);b.context._currentValue=b.value}}}function sa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&sa(a)}function ta(a){var b=a.parent;null!==b&&ta(b);a.context._currentValue=a.value}function ua(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?R(a,b):ua(a,b)}function va(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");
13
+ a.depth===d.depth?R(a,d):va(a,d);b.context._currentValue=b.value}function Z(a){var b=r;b!==a&&(null===b?ta(a):null===a?sa(b):b.depth===a.depth?R(b,a):b.depth>a.depth?ua(b,a):va(b,a),r=a)}function wa(a,b){var d=a._currentValue;a._currentValue=b;var c=r;return r=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}function xa(){}function Xa(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(xa,xa),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;
14
+ default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}S=b;throw aa;}}function ya(){if(null===S)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=S;S=null;return a}function za(){var a=y;y=null;return a}
15
+ function Aa(a){return a._currentValue}function q(){throw Error("This Hook is not supported in Server Components.");}function Ya(){throw Error("Refreshing the cache is not supported in Server Components.");}function ba(){return(new AbortController).signal}function Ba(){var a=l?l:null;return a?a.cache:new Map}function Ca(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}function ca(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:
16
+ a.slice(0,10)+"...");case "object":if(da(a))return"[...]";a=Ca(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}function T(a){if("string"===typeof a)return a;switch(a){case Za:return"Suspense";case $a:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Da:return T(a.render);case Ea:return T(a.type);case J:var b=a._payload;a=a._init;try{return T(a(b))}catch(d){}}return""}function E(a,b){var d=Ca(a);if("Object"!==d&&"Array"!==d)return d;d=-1;
17
+ var c=0;if(da(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?E(g):ca(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===m)e="<"+T(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?E(k):ca(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?
18
+ e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}function ab(a){console.error(a)}function bb(a,b,d,c,e){if(null!==ea.current&&ea.current!==Fa)throw Error("Currently React only supports one RSC renderer at a time.");cb.current=db;ea.current=Fa;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],
19
+ completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?ab:d,toJSON:function(t,z){return eb(k,this,t,z)}};k.pendingChunks++;b=fb(c);a=fa(k,a,b,f);g.push(a);return k}function gb(a,b){a.pendingChunks++;var d=fa(a,null,r,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,ha(a,d),d.id;case "rejected":var c=
20
+ v(a,b.reason);F(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;ha(a,d)},function(e){d.status=4;e=v(a,e);F(a,d.id,e);null!==a.destination&&K(a,a.destination)});return d.id}function hb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function ib(a){switch(a.status){case "fulfilled":case "rejected":break;
21
+ 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:J,_payload:a,_init:hb}}function L(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===U)return[m,b,d,e];V=0;y=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===
22
+ typeof e.then?"fulfilled"===e.status?e.value:ib(e):e}if("string"===typeof b)return[m,b,d,e];if("symbol"===typeof b)return b===jb?e.children:[m,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===U)return[m,b,d,e];switch(b.$$typeof){case J:var g=b._init;b=g(b._payload);return L(a,b,d,c,e,f);case Da:return a=b.render,V=0,y=f,a(e,void 0);case Ea:return L(a,b.type,d,c,e,f);case Ga:return wa(b._context,e.value),[m,b,d,{value:e.value,children:e.children,__pop:Ha}]}}throw Error("Unsupported Server Component type: "+
23
+ ca(b));}function ha(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,Ia(a))}function fa(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return ha(a,e)},thenableState:null};c.add(e);return e}function x(a){return"$"+a.toString(16)}function Ja(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===m&&"1"===d?"$L"+g.toString(16):x(g);try{var h=a.bundlerConfig,k=c.$$id;g="";
24
+ var t=h[k];if(t)g=t.name;else{var z=k.lastIndexOf("#");-1!==z&&(g=k.slice(z+1),t=h[k.slice(0,z)]);if(!t)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var A={id:t.id,chunks:t.chunks,name:g,async:!!c.$$async};a.pendingChunks++;var B=a.nextChunkId++,ia=M(A),C=B.toString(16)+":I"+ia+"\n";var kb=D.encode(C);a.completedImportChunks.push(kb);f.set(e,B);return b[0]===m&&"1"===d?"$L"+B.toString(16):x(B)}catch(lb){return a.pendingChunks++,
25
+ b=a.nextChunkId++,d=v(a,lb),F(a,b,d),x(b)}}function eb(a,b,d,c){switch(c){case m:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===m||c.$$typeof===J);)try{switch(c.$$typeof){case m:var e=c;c=L(a,e.type,e.key,e.ref,e.props,null);break;case J:var f=c._init;c=f(c._payload)}}catch(g){d=g===aa?ya():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=fa(a,c,r,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=za(),"$L"+a.id.toString(16);a.pendingChunks++;
26
+ c=a.nextChunkId++;d=v(a,d);F(a,c,d);return"$L"+c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===U)return Ja(a,b,d,c);if("function"===typeof c.then)return"$@"+gb(a,c).toString(16);if(c.$$typeof===Ga)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=ja(a,d,"$P"+c),a.completedRegularChunks.push(c)),x(d);if(c===Ha){a=r;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
27
+ c=a.parentValue;a.context._currentValue=c===Ka?a.context._defaultValue:c;r=a.parent;return}return!da(c)&&(null===c||"object"!==typeof c?a=null:(a=La&&c[La]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;if(1024<=c.length)return a.pendingChunks+=2,d=a.nextChunkId++,c=D.encode(c),b=c.byteLength,b=d.toString(16)+":T"+b.toString(16)+",",b=D.encode(b),a.completedRegularChunks.push(b,c),x(d);a="$"===c[0]?
28
+ "$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===U)return Ja(a,b,d,c);if(c.$$typeof===mb)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=Ma(a,
29
+ b,e),a.completedRegularChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+E(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+E(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return x(f);f=c.description;
30
+ if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+E(b,d));a.pendingChunks++;d=a.nextChunkId++;b=ja(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return x(d)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+E(b,d));}function v(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==
31
+ typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function ka(a,b){null!==a.destination?(a.status=2,ra(a.destination,b)):(a.status=1,a.fatalError=b)}function F(a,b,d){d={digest:d};b=b.toString(16)+":E"+M(d)+"\n";b=D.encode(b);a.completedErrorChunks.push(b)}function G(a,b,d){var c=a.nextChunkId++;d=M(d);
32
+ b="H"+b;c=c.toString(16)+":"+b;c=D.encode(c+d+"\n");a.completedHintChunks.push(c)}function Ia(a){var b=la.current;la.current=nb;var d=l;N=l=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===f.status){Z(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===m){var k=h,t=f.thenableState;f.model=h;h=L(g,k.type,k.key,k.ref,k.props,t);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===m;)k=h,f.model=h,h=L(g,k.type,k.key,
33
+ k.ref,k.props,null)}var z=Ma(g,f.id,h);g.completedRegularChunks.push(z);g.abortableTasks.delete(f);f.status=1}catch(C){var A=C===aa?ya():C;if("object"===typeof A&&null!==A&&"function"===typeof A.then){var B=f.ping;A.then(B,B);f.thenableState=za()}else{g.abortableTasks.delete(f);f.status=4;var ia=v(g,A);F(g,f.id,ia)}}}}null!==a.destination&&K(a,a.destination)}catch(C){v(a,C),ka(a,C)}finally{la.current=b,N=null,l=d}}function K(a,b){p=new Uint8Array(512);n=0;try{for(var d=a.completedImportChunks,c=0;c<
34
+ d.length;c++)a.pendingChunks--,Q(b,d[c]);d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)Q(b,e[c]);e.splice(0,c);var f=a.completedRegularChunks;for(c=0;c<f.length;c++)a.pendingChunks--,Q(b,f[c]);f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,Q(b,g[c]);g.splice(0,c)}finally{a.flushScheduled=!1,p&&0<n&&(b.enqueue(new Uint8Array(p.buffer,0,n)),p=null,n=0)}0===a.pendingChunks&&b.close()}function W(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&
35
+ null!==a.destination){var b=a.destination;a.flushScheduled=!0;K(a,b)}}function Na(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=v(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;F(a,e,c);d.forEach(function(f){f.status=3;var g=x(e);f=ja(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&K(a,a.destination)}catch(f){v(a,f),ka(a,f)}}function fb(a){if(a){var b=r;Z(null);for(var d=0;d<a.length;d++){var c=
36
+ a[d],e=c[0];c=c[1];ma[e]||(ma[e]=qa.createServerContext(e,Ka));wa(ma[e],c)}a=r;Z(b);return a}return null}function Ma(a,b,d){a=M(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return D.encode(b)}function ja(a,b,d){a=M(d);b=b.toString(16)+":"+a+"\n";return D.encode(b)}function Oa(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0,e)]);if(!c)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');
37
+ }return{id:c.id,chunks:c.chunks,name:d,async:!1}}function ob(){}function Pa(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=X.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=X.set.bind(X,e,null);f.then(g,ob);X.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=na.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)});h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=
38
+ k});na.set(a.id,h);return h}return 0<d.length?Promise.all(d):null}function H(a){if(a.async){var b=na.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function Y(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}function Qa(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}function Ra(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";
39
+ a.reason=b;null!==d&&Qa(d,b)}}function pb(a,b,d,c,e,f){var g=Oa(a._bundlerConfig,b);a=Pa(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=H(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return H(g)});else return H(g);d.then(Sa(c,e,f),Ta(c));return null}function oa(a){var b=O,d=w;O=a;w=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==w&&0<w.deps?(w.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=
40
+ c)}catch(e){a.status="rejected",a.reason=e}finally{O=b,w=d}}function qb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Ra(d,b)})}function P(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new Y("resolved_model",c,null,a):new Y("pending",null,null,a),d.set(b,c));return c}function Sa(a,b,d){if(w){var c=w;c.deps++}else c=w={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==
41
+ e&&Qa(e,c.value))}}function Ta(a){return function(b){return Ra(a,b)}}function rb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),P(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=P(a,c);"resolved_model"===c.status&&oa(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return pb(a,c.id,c.bound,O,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&
42
+ f.append(h.slice(e.length),g)});return f;case "I":return Infinity;case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=P(a,c);switch(a.status){case "resolved_model":oa(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=O,a.then(Sa(c,b,d),Ta(c)),null;default:throw a.reason;}}return c}function Ua(a,b){var d=2<arguments.length&&
43
+ void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?rb(e,this,f,g):g}};return e}function Va(a){qb(a,Error("Connection closed."))}function Wa(a,b,d){var c=Oa(a,b);a=Pa(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=H(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return H(c)}):Promise.resolve(H(c))}var p=null,n=0,D=new TextEncoder,U=Symbol.for("react.client.reference"),
44
+ mb=Symbol.for("react.server.reference"),db={prefetchDNS:function(a,b){if("string"===typeof a){var d=l?l:null;if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?G(d,"D",[a,b]):G(d,"D",a),W(d))}}},preconnect:function(a,b){if("string"===typeof a){var d=l?l:null;if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null===e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?G(d,"C",[a,b]):G(d,"C",a),W(d))}}},preload:function(a,b){if("string"===
45
+ typeof a){var d=l?l:null;if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),G(d,"L",[a,b]),W(d))}}},preinit:function(a,b){if("string"===typeof a){var d=l?l:null;if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),G(d,"I",[a,b]),W(d))}}}},cb=I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,m=Symbol.for("react.element"),jb=Symbol.for("react.fragment"),Ga=Symbol.for("react.provider"),sb=Symbol.for("react.server_context"),Da=Symbol.for("react.forward_ref"),Za=Symbol.for("react.suspense"),$a=Symbol.for("react.suspense_list"),
46
+ Ea=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),Ka=Symbol.for("react.default_value"),tb=Symbol.for("react.memo_cache_sentinel"),La=Symbol.iterator,r=null,aa=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`"),
47
+ S=null,N=null,V=0,y=null,nb={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:q,useTransition:q,readContext:Aa,useContext:Aa,useReducer:q,useRef:q,useState:q,useInsertionEffect:q,useLayoutEffect:q,useImperativeHandle:q,useEffect:q,useId:function(){if(null===N)throw Error("useId can only be used while React is rendering");var a=N.identifierCount++;return":"+N.identifierPrefix+"S"+a.toString(32)+":"},useMutableSource:q,useSyncExternalStore:q,
48
+ useCacheRefresh:function(){return Ya},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=tb;return b},use:function(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=V;V+=1;null===y&&(y=[]);return Xa(y,a,b)}if(a.$$typeof===sb)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}},Fa={getCacheSignal:function(){var a=Ba(),b=a.get(ba);void 0===b&&(b=ba(),a.set(ba,b));return b},getCacheForType:function(a){var b=
49
+ Ba(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},da=Array.isArray,pa=qa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ma=pa.ContextRegistry,M=JSON.stringify,la=pa.ReactCurrentDispatcher,ea=pa.ReactCurrentCache,l=null,Ha={},X=new Map,na=new Map;Y.prototype=Object.create(Promise.prototype);Y.prototype.then=function(a,b){switch(this.status){case "resolved_model":oa(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=
50
+ []),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};var O=null,w=null;u.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){if(f.startsWith("$ACTION_"))if(f.startsWith("$ACTION_REF_")){e="$ACTION_"+f.slice(12)+":";e=Ua(b,e,a);Va(e);e=P(e,0);e.then(function(){});if("fulfilled"!==e.status)throw e.reason;e=e.value;c=Wa(b,e.id,e.bound)}else f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Wa(b,e,null));else d.append(f,
51
+ e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};u.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Ua(b,"",a);Va(a);return P(a,0)};u.renderToReadableStream=function(a,b,d){var c=bb(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)Na(c,e.reason);else{var f=function(){Na(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",
52
+ start:function(g){c.flushScheduled=null!==c.destination;Ia(c)},pull:function(g){if(1===c.status)c.status=2,ra(g,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=g;try{K(c,g)}catch(h){v(c,h),ka(c,h)}}},cancel:function(g){}},{highWaterMark:0})}});
52
53
  })();