next 13.5.7 → 13.5.9

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 (149) hide show
  1. package/dist/bin/next +1 -1
  2. package/dist/build/index.js +1 -1
  3. package/dist/build/swc/index.js +1 -1
  4. package/dist/build/webpack-config.js +2 -2
  5. package/dist/client/app-bootstrap.js +1 -1
  6. package/dist/client/index.js +1 -1
  7. package/dist/compiled/next-server/app-page-experimental.runtime.dev.js +2 -2
  8. package/dist/compiled/next-server/app-page-experimental.runtime.dev.js.map +1 -1
  9. package/dist/compiled/next-server/app-page-experimental.runtime.prod.js +14 -14
  10. package/dist/compiled/next-server/app-page-experimental.runtime.prod.js.map +1 -1
  11. package/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +10 -10
  12. package/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js.map +1 -1
  13. package/dist/compiled/next-server/app-page-turbo.runtime.prod.js +11 -11
  14. package/dist/compiled/next-server/app-page-turbo.runtime.prod.js.map +1 -1
  15. package/dist/compiled/next-server/app-page.runtime.dev.js +1 -1
  16. package/dist/compiled/next-server/app-page.runtime.dev.js.map +1 -1
  17. package/dist/compiled/next-server/app-page.runtime.prod.js +8 -8
  18. package/dist/compiled/next-server/app-page.runtime.prod.js.map +1 -1
  19. package/dist/compiled/next-server/app-route-experimental.runtime.dev.js +1 -1
  20. package/dist/compiled/next-server/app-route-experimental.runtime.dev.js.map +1 -1
  21. package/dist/compiled/next-server/app-route-experimental.runtime.prod.js +1 -1
  22. package/dist/compiled/next-server/app-route-experimental.runtime.prod.js.map +1 -1
  23. package/dist/compiled/next-server/app-route-turbo-experimental.runtime.prod.js +1 -1
  24. package/dist/compiled/next-server/app-route-turbo-experimental.runtime.prod.js.map +1 -1
  25. package/dist/compiled/next-server/app-route-turbo.runtime.prod.js +1 -1
  26. package/dist/compiled/next-server/app-route-turbo.runtime.prod.js.map +1 -1
  27. package/dist/compiled/next-server/app-route.runtime.dev.js +1 -1
  28. package/dist/compiled/next-server/app-route.runtime.dev.js.map +1 -1
  29. package/dist/compiled/next-server/app-route.runtime.prod.js +1 -1
  30. package/dist/compiled/next-server/app-route.runtime.prod.js.map +1 -1
  31. package/dist/compiled/next-server/server.runtime.prod.js +3 -3
  32. package/dist/compiled/next-server/server.runtime.prod.js.map +1 -1
  33. package/dist/compiled/react/cjs/react.development.js +1 -1
  34. package/dist/compiled/react/cjs/react.production.min.js +1 -1
  35. package/dist/compiled/react/cjs/react.shared-subset.development.js +1 -1
  36. package/dist/compiled/react/cjs/react.shared-subset.production.min.js +1 -1
  37. package/dist/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js +1 -1
  38. package/dist/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +1 -1
  39. package/dist/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js +1 -1
  40. package/dist/compiled/react-dom/cjs/react-dom-server-legacy.node.production.min.js +1 -1
  41. package/dist/compiled/react-dom/cjs/react-dom-server-rendering-stub.development.js +1 -1
  42. package/dist/compiled/react-dom/cjs/react-dom-server-rendering-stub.production.min.js +1 -1
  43. package/dist/compiled/react-dom/cjs/react-dom-server.browser.development.js +1 -1
  44. package/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js +1 -1
  45. package/dist/compiled/react-dom/cjs/react-dom-server.edge.development.js +1 -1
  46. package/dist/compiled/react-dom/cjs/react-dom-server.edge.production.min.js +1 -1
  47. package/dist/compiled/react-dom/cjs/react-dom-server.node.development.js +1 -1
  48. package/dist/compiled/react-dom/cjs/react-dom-server.node.production.min.js +1 -1
  49. package/dist/compiled/react-dom/cjs/react-dom.development.js +1 -1
  50. package/dist/compiled/react-dom/cjs/react-dom.production.min.js +3 -3
  51. package/dist/compiled/react-dom/cjs/react-dom.profiling.min.js +3 -3
  52. package/dist/compiled/react-dom/package.json +2 -2
  53. package/dist/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +1 -1
  54. package/dist/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js +1 -1
  55. package/dist/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js +1 -1
  56. package/dist/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.min.js +1 -1
  57. package/dist/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.development.js +1 -1
  58. package/dist/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.production.min.js +1 -1
  59. package/dist/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js +1 -1
  60. package/dist/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.min.js +1 -1
  61. package/dist/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js +1 -1
  62. package/dist/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.min.js +1 -1
  63. package/dist/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js +1 -1
  64. package/dist/compiled/react-dom-experimental/cjs/react-dom-server.node.production.min.js +1 -1
  65. package/dist/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js +1 -1
  66. package/dist/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.min.js +3 -3
  67. package/dist/compiled/react-dom-experimental/cjs/react-dom.development.js +1 -1
  68. package/dist/compiled/react-dom-experimental/cjs/react-dom.production.min.js +3 -3
  69. package/dist/compiled/react-dom-experimental/cjs/react-dom.profiling.min.js +3 -3
  70. package/dist/compiled/react-dom-experimental/package.json +2 -2
  71. package/dist/compiled/react-experimental/cjs/react.development.js +1 -1
  72. package/dist/compiled/react-experimental/cjs/react.production.min.js +1 -1
  73. package/dist/compiled/react-experimental/cjs/react.shared-subset.development.js +1 -1
  74. package/dist/compiled/react-experimental/cjs/react.shared-subset.production.min.js +1 -1
  75. package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +15 -1
  76. package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js +4 -4
  77. package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +15 -1
  78. package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js +10 -10
  79. package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +15 -1
  80. package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js +39 -39
  81. package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +15 -1
  82. package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +36 -36
  83. package/dist/compiled/react-server-dom-turbopack/package.json +2 -2
  84. package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.development.js +15 -1
  85. package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.min.js +10 -10
  86. package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.development.js +15 -1
  87. package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.min.js +41 -41
  88. package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.development.js +15 -1
  89. package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.min.js +47 -47
  90. package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +15 -1
  91. package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +44 -44
  92. package/dist/compiled/react-server-dom-turbopack-experimental/package.json +2 -2
  93. package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +15 -1
  94. package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +4 -4
  95. package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js +15 -1
  96. package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js +10 -10
  97. package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +15 -1
  98. package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js +39 -39
  99. package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js +15 -1
  100. package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +36 -36
  101. package/dist/compiled/react-server-dom-webpack/package.json +2 -2
  102. package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.development.js +15 -1
  103. package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.production.min.js +10 -10
  104. package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.development.js +15 -1
  105. package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.production.min.js +41 -41
  106. package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.development.js +15 -1
  107. package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.production.min.js +47 -47
  108. package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.development.js +15 -1
  109. package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +44 -44
  110. package/dist/compiled/react-server-dom-webpack-experimental/package.json +2 -2
  111. package/dist/esm/build/index.js +1 -1
  112. package/dist/esm/build/swc/index.js +1 -1
  113. package/dist/esm/build/webpack-config.js +2 -2
  114. package/dist/esm/client/app-bootstrap.js +1 -1
  115. package/dist/esm/client/index.js +1 -1
  116. package/dist/esm/server/base-server.js +11 -4
  117. package/dist/esm/server/base-server.js.map +1 -1
  118. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  119. package/dist/esm/server/future/helpers/i18n-provider.js +22 -0
  120. package/dist/esm/server/future/helpers/i18n-provider.js.map +1 -1
  121. package/dist/esm/server/lib/router-server.js +12 -0
  122. package/dist/esm/server/lib/router-server.js.map +1 -1
  123. package/dist/esm/server/lib/router-utils/resolve-routes.js +5 -0
  124. package/dist/esm/server/lib/router-utils/resolve-routes.js.map +1 -1
  125. package/dist/esm/server/lib/server-ipc/utils.js +25 -0
  126. package/dist/esm/server/lib/server-ipc/utils.js.map +1 -1
  127. package/dist/esm/server/lib/start-server.js +1 -1
  128. package/dist/esm/server/web/sandbox/context.js +1 -0
  129. package/dist/esm/server/web/sandbox/context.js.map +1 -1
  130. package/dist/server/base-server.js +11 -4
  131. package/dist/server/base-server.js.map +1 -1
  132. package/dist/server/dev/hot-reloader-webpack.js +1 -1
  133. package/dist/server/future/helpers/i18n-provider.d.ts +14 -0
  134. package/dist/server/future/helpers/i18n-provider.js +22 -0
  135. package/dist/server/future/helpers/i18n-provider.js.map +1 -1
  136. package/dist/server/lib/router-server.js +12 -0
  137. package/dist/server/lib/router-server.js.map +1 -1
  138. package/dist/server/lib/router-utils/resolve-routes.js +5 -0
  139. package/dist/server/lib/router-utils/resolve-routes.js.map +1 -1
  140. package/dist/server/lib/server-ipc/utils.d.ts +1 -0
  141. package/dist/server/lib/server-ipc/utils.js +30 -1
  142. package/dist/server/lib/server-ipc/utils.js.map +1 -1
  143. package/dist/server/lib/start-server.js +1 -1
  144. package/dist/server/web/sandbox/context.js +1 -0
  145. package/dist/server/web/sandbox/context.js.map +1 -1
  146. package/dist/telemetry/anonymous-meta.js +1 -1
  147. package/dist/telemetry/events/session-stopped.js +2 -2
  148. package/dist/telemetry/events/version.js +2 -2
  149. package/package.json +16 -16
@@ -3057,6 +3057,11 @@ function createResolvedModelChunk(response, value) {
3057
3057
  return new Chunk(RESOLVED_MODEL, value, null, response);
3058
3058
  }
3059
3059
 
3060
+ function createErroredChunk(response, reason) {
3061
+ // $FlowFixMe[invalid-constructor] Flow doesn't support functions as constructors
3062
+ return new Chunk(ERRORED, null, reason, response);
3063
+ }
3064
+
3060
3065
  function bindArgs$1(fn, args) {
3061
3066
  return fn.bind.apply(fn, [null].concat(args));
3062
3067
  }
@@ -3128,6 +3133,9 @@ function initializeModelChunk(chunk) {
3128
3133
 
3129
3134
 
3130
3135
  function reportGlobalError(response, error) {
3136
+ response._closed = true;
3137
+ response._closedReason = error;
3138
+
3131
3139
  response._chunks.forEach(function (chunk) {
3132
3140
  // If this chunk was already resolved or errored, it won't
3133
3141
  // trigger an error but if it wasn't then we need to
@@ -3151,6 +3159,10 @@ function getChunk(response, id) {
3151
3159
  if (backingEntry != null) {
3152
3160
  // We assume that this is a string entry for now.
3153
3161
  chunk = createResolvedModelChunk(response, backingEntry);
3162
+ } else if (response._closed) {
3163
+ // We have already errored the response and we're not going to get
3164
+ // anything more streaming in so this will immediately error.
3165
+ chunk = createErroredChunk(response, response._closedReason);
3154
3166
  } else {
3155
3167
  // We're still waiting on this entry to stream in.
3156
3168
  chunk = createPendingChunk(response);
@@ -3382,7 +3394,9 @@ function createResponse(bundlerConfig, formFieldPrefix) {
3382
3394
  }
3383
3395
 
3384
3396
  return value;
3385
- }
3397
+ },
3398
+ _closed: false,
3399
+ _closedReason: null
3386
3400
  };
3387
3401
  return response;
3388
3402
  }
@@ -56,19 +56,19 @@ C===Ja?Ma():C;if("object"===typeof q&&null!==q)if("function"===typeof q.then){va
56
56
  function R(a,b){l=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.completedRegularChunks;for(c=0;c<f.length;c++)a.pendingChunks--,p(b,f[c]);f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,p(b,g[c]);g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<n&&(b.enqueue(new Uint8Array(l.buffer,0,n)),l=null,n=0)}0===a.pendingChunks&&
57
57
  b.close()}function vb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=void 0===b?Error("The render was aborted by the server without a reason."):b,e=P(a,c);a.pendingChunks++;var f=a.nextChunkId++;Q(a,f,e,c);d.forEach(function(g){g.status=3;var h=T(f);g=qb(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(g){P(a,g),ub(a,g)}}
58
58
  function gb(a){if(a){var b=D;Ha(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];if(!$a[e]){var f={$$typeof:va,_currentValue:B,_currentValue2:B,_defaultValue:B,_threadCount:0,Provider:null,Consumer:null,_globalName:e};f.Provider={$$typeof:ua,_context:f};$a[e]=f}Ia($a[e],c)}a=D;Ha(b);return a}return null}
59
- function wb(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[c.id,c.chunks,d]}var V=new Map;
60
- function xb(a){var b=__turbopack_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(d){b.status="fulfilled";b.value=d},function(d){b.status="rejected";b.reason=d});return b}function yb(){}
61
- function zb(a){for(var b=a[1],d=[],c=0;c<b.length;c++){var e=b[c],f=V.get(e);if(void 0===f){f=__turbopack_load__(e);d.push(f);var g=V.set.bind(V,e,null);f.then(g,yb);V.set(e,f)}else null!==f&&d.push(f)}return 4===a.length?0===d.length?xb(a[0]):Promise.all(d).then(function(){return xb(a[0])}):0<d.length?Promise.all(d):null}
62
- function W(a){var b=__turbopack_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function Ab(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}Ab.prototype=Object.create(Promise.prototype);
63
- Ab.prototype.then=function(a,b){switch(this.status){case "resolved_model":Bb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function Cb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
64
- function Db(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Cb(d,b)}}function Eb(a,b,d,c,e,f){var g=wb(a._bundlerConfig,b);a=zb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=W(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return W(g)});else return W(g);d.then(Fb(c,e,f),Gb(c));return null}var X=null,Y=null;
65
- function Bb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function Hb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Db(d,b)})}
66
- function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new Ab("resolved_model",c,null,a):new Ab("pending",null,null,a),d.set(b,c));return c}function Fb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&Cb(e,c.value))}}function Gb(a){return function(b){return Db(a,b)}}
59
+ function wb(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[c.id,c.chunks,d]}var xb=new Map;
60
+ function yb(a){var b=__turbopack_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(d){b.status="fulfilled";b.value=d},function(d){b.status="rejected";b.reason=d});return b}function zb(){}
61
+ function Ab(a){for(var b=a[1],d=[],c=0;c<b.length;c++){var e=b[c],f=xb.get(e);if(void 0===f){f=__turbopack_load__(e);d.push(f);var g=xb.set.bind(xb,e,null);f.then(g,zb);xb.set(e,f)}else null!==f&&d.push(f)}return 4===a.length?0===d.length?yb(a[0]):Promise.all(d).then(function(){return yb(a[0])}):0<d.length?Promise.all(d):null}
62
+ function V(a){var b=__turbopack_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype);
63
+ W.prototype.then=function(a,b){switch(this.status){case "resolved_model":Bb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function Cb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
64
+ function Db(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Cb(d,b)}}function Eb(a,b,d,c,e,f){var g=wb(a._bundlerConfig,b);a=Ab(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return V(g)});else return V(g);d.then(Fb(c,e,f),Gb(c));return null}var X=null,Y=null;
65
+ function Bb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function Hb(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(d){"pending"===d.status&&Db(d,b)})}
66
+ function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new W("resolved_model",c,null,a):a._closed?new W("rejected",null,a._closedReason,a):new W("pending",null,null,a),d.set(b,c));return c}function Fb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&Cb(e,c.value))}}function Gb(a){return function(b){return Db(a,b)}}
67
67
  function Ib(a,b){a=Z(a,b);"resolved_model"===a.status&&Bb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
68
68
  function Mb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":return c=parseInt(c.slice(2),16),c=Ib(a,c),Eb(a,c.id,c.bound,X,b,d);case "Q":return b=parseInt(c.slice(2),16),a=Ib(a,b),new Map(a);case "W":return b=parseInt(c.slice(2),16),a=Ib(a,b),new Set(a);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),
69
69
  g)});return f;case "I":return Infinity;case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":Bb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(Fb(c,b,d),Gb(c)),null;default:throw a.reason;}}return c}
70
- function Nb(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?Mb(e,this,f,g):g}};return e}function Ob(a){Hb(a,Error("Connection closed."))}function Pb(a,b,d){var c=wb(a,b);a=zb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=W(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return W(c)}):Promise.resolve(W(c))}
71
- function Qb(a,b,d){a=Nb(b,d,a);Ob(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,ja)};
70
+ function Nb(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?Mb(e,this,f,g):g},_closed:!1,_closedReason:null};return e}function Ob(a){Hb(a,Error("Connection closed."))}
71
+ function Pb(a,b,d){var c=wb(a,b);a=Ab(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=V(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(c)}):Promise.resolve(V(c))}function Qb(a,b,d){a=Nb(b,d,a);Ob(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,ja)};
72
72
  exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Qb(a,b,e),c=Pb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Pb(b,e,null)):d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Nb(b,"",a);Ob(a);return Z(a,0)};
73
73
  exports.registerClientReference=function(a,b,d){return v(a,b+"#"+d,!1)};exports.registerServerReference=function(a,b,d){return Object.defineProperties(a,{$$typeof:{value:u},$$id:{value:null===d?b:b+"#"+d},$$bound:{value:null},bind:{value:fa}})};
74
74
  exports.renderToReadableStream=function(a,b,d){var c=eb(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0,d?d.onPostpone:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)vb(c,e.reason);else{var f=function(){vb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){c.flushScheduled=null!==c.destination;pb(c)},pull:function(g){if(1===c.status)c.status=2,ca(g,c.fatalError);else if(2!==c.status&&null===
@@ -3069,6 +3069,11 @@ function createResolvedModelChunk(response, value) {
3069
3069
  return new Chunk(RESOLVED_MODEL, value, null, response);
3070
3070
  }
3071
3071
 
3072
+ function createErroredChunk(response, reason) {
3073
+ // $FlowFixMe[invalid-constructor] Flow doesn't support functions as constructors
3074
+ return new Chunk(ERRORED, null, reason, response);
3075
+ }
3076
+
3072
3077
  function bindArgs$1(fn, args) {
3073
3078
  return fn.bind.apply(fn, [null].concat(args));
3074
3079
  }
@@ -3140,6 +3145,9 @@ function initializeModelChunk(chunk) {
3140
3145
 
3141
3146
 
3142
3147
  function reportGlobalError(response, error) {
3148
+ response._closed = true;
3149
+ response._closedReason = error;
3150
+
3143
3151
  response._chunks.forEach(function (chunk) {
3144
3152
  // If this chunk was already resolved or errored, it won't
3145
3153
  // trigger an error but if it wasn't then we need to
@@ -3163,6 +3171,10 @@ function getChunk(response, id) {
3163
3171
  if (backingEntry != null) {
3164
3172
  // We assume that this is a string entry for now.
3165
3173
  chunk = createResolvedModelChunk(response, backingEntry);
3174
+ } else if (response._closed) {
3175
+ // We have already errored the response and we're not going to get
3176
+ // anything more streaming in so this will immediately error.
3177
+ chunk = createErroredChunk(response, response._closedReason);
3166
3178
  } else {
3167
3179
  // We're still waiting on this entry to stream in.
3168
3180
  chunk = createPendingChunk(response);
@@ -3394,7 +3406,9 @@ function createResponse(bundlerConfig, formFieldPrefix) {
3394
3406
  }
3395
3407
 
3396
3408
  return value;
3397
- }
3409
+ },
3410
+ _closed: false,
3411
+ _closedReason: null
3398
3412
  };
3399
3413
  return response;
3400
3414
  }
@@ -28,49 +28,49 @@ function L(){throw Error("This Hook is not supported in Server Components.");}fu
28
28
  function Ta(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=J;J+=1;null===K&&(K=[]);return Na(K,a,b)}if(a.$$typeof===xa)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Va(){return(new AbortController).signal}function Wa(){var a=w();return a?a.cache:new Map}
29
29
  var Xa={getCacheSignal:function(){var a=Wa(),b=a.get(Va);void 0===b&&(b=Va(),a.set(Va,b));return b},getCacheForType:function(a){var b=Wa(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Ya=Array.isArray;function Za(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
30
30
  function $a(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ya(a))return"[...]";a=Za(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
31
- function M(a){if("string"===typeof a)return a;switch(a){case za:return"Suspense";case Aa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ya:return M(a.render);case Ba:return M(a.type);case A:var b=a._payload;a=a._init;try{return M(a(b))}catch(d){}}return""}
32
- function N(a,b){var d=Za(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Ya(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?N(g):$a(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===z)e="<"+M(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?N(k):
33
- $a(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var ab=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bb=ab.ContextRegistry,O=JSON.stringify,cb=ab.ReactCurrentDispatcher,db=ab.ReactCurrentCache;function eb(a){console.error(a)}function fb(){}
34
- function gb(a,b,d,c,e,f){if(null!==db.current&&db.current!==Xa)throw Error("Currently React only supports one RSC renderer at a time.");sa.current=ra;db.current=Xa;var g=new Set,h=[],k=new Set,l={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:g,pingedTasks:h,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
35
- writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?eb:d,onPostpone:void 0===f?fb:f,toJSON:function(p,F){return hb(l,this,p,F)}};l.pendingChunks++;b=ib(c);a=jb(l,a,b,g);h.push(a);return l}var P=null;function w(){if(P)return P;if(ta){var a=ua.getStore();if(a)return a}return null}var kb={};
36
- function lb(a,b){a.pendingChunks++;var d=jb(a,null,D,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,mb(a,d),d.id;case "rejected":var c=b.reason;"object"===typeof c&&null!==c&&c.$$typeof===Da?(nb(a,c.message),ob(a,d.id)):(c=Q(a,c),R(a,d.id,c));return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=
37
- e;mb(a,d)},function(e){d.status=4;a.abortableTasks.delete(d);e=Q(a,e);R(a,d.id,e);null!==a.destination&&S(a,a.destination)});return d.id}function x(a,b,d){d=O(d);var c=a.nextChunkId++;b="H"+b;b=c.toString(16)+":"+b;d=r.encode(b+d+"\n");a.completedHintChunks.push(d);pb(a)}function qb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
38
- function rb(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:A,_payload:a,_init:qb}}
39
- function T(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===t)return[z,b,d,e];J=0;K=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:rb(e):e}if("string"===typeof b)return[z,b,d,e];if("symbol"===typeof b)return b===va?e.children:[z,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===t)return[z,b,d,e];switch(b.$$typeof){case A:var g=
40
- b._init;b=g(b._payload);return T(a,b,d,c,e,f);case ya:return a=b.render,J=0,K=f,a(e,void 0);case Ba:return T(a,b.type,d,c,e,f);case wa:return Ka(b._context,e.value),[z,b,d,{value:e.value,children:e.children,__pop:kb}]}}throw Error("Unsupported Server Component type: "+$a(b));}function mb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setTimeout(function(){return sb(a)},0))}
41
- function jb(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return mb(a,e)},thenableState:null};c.add(e);return e}function U(a){return"$"+a.toString(16)}function tb(a,b,d){a=O(d);b=b.toString(16)+":"+a+"\n";return r.encode(b)}
42
- function ub(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]===z&&"1"===d?"$L"+g.toString(16):U(g);try{var h=a.bundlerConfig,k=c.$$id;g="";var l=h[k];if(l)g=l.name;else{var p=k.lastIndexOf("#");-1!==p&&(g=k.slice(p+1),l=h[k.slice(0,p)]);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 F=!0===c.$$async?[l.id,l.chunks,g,1]:[l.id,l.chunks,
43
- g];a.pendingChunks++;var H=a.nextChunkId++,C=O(F),Nb=H.toString(16)+":I"+C+"\n",Ob=r.encode(Nb);a.completedImportChunks.push(Ob);f.set(e,H);return b[0]===z&&"1"===d?"$L"+H.toString(16):U(H)}catch(Pb){return a.pendingChunks++,b=a.nextChunkId++,d=Q(a,Pb),R(a,b,d),U(b)}}function vb(a,b){a.pendingChunks++;var d=a.nextChunkId++;wb(a,d,b);return d}
44
- function V(a,b,d){a.pendingChunks+=2;var c=a.nextChunkId++,e=new Uint8Array(d.buffer,d.byteOffset,d.byteLength);d=512<d.byteLength?e.slice():e;e=d.byteLength;b=c.toString(16)+":"+b+e.toString(16)+",";b=r.encode(b);a.completedRegularChunks.push(b,d);return U(c)}
45
- function hb(a,b,d,c){switch(c){case z:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===z||c.$$typeof===A);)try{switch(c.$$typeof){case z:var e=c;c=T(a,e.type,e.key,e.ref,e.props,null);break;case A:var f=c._init;c=f(c._payload)}}catch(g){d=g===La?Oa():g;if("object"===typeof d&&null!==d){if("function"===typeof d.then)return a.pendingChunks++,a=jb(a,c,D,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Pa(),"$L"+a.id.toString(16);if(d.$$typeof===Da)return c=d,a.pendingChunks++,d=a.nextChunkId++,
46
- nb(a,c.message),ob(a,d),"$L"+d.toString(16)}a.pendingChunks++;c=a.nextChunkId++;d=Q(a,d);R(a,c,d);return"$L"+c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===t)return ub(a,b,d,c);if("function"===typeof c.then)return"$@"+lb(a,c).toString(16);if(c.$$typeof===wa)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=tb(a,d,"$P"+c),a.completedRegularChunks.push(c)),U(d);if(c===kb){a=D;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
47
- c=a.parentValue;a.context._currentValue=c===B?a.context._defaultValue:c;D=a.parent;return}return c instanceof Map?"$Q"+vb(a,Array.from(c)).toString(16):c instanceof Set?"$W"+vb(a,Array.from(c)).toString(16):c instanceof ArrayBuffer?V(a,"A",new Uint8Array(c)):c instanceof Int8Array?V(a,"C",c):c instanceof Uint8Array?V(a,"c",c):c instanceof Uint8ClampedArray?V(a,"U",c):c instanceof Int16Array?V(a,"S",c):c instanceof Uint16Array?V(a,"s",c):c instanceof Int32Array?V(a,"L",c):c instanceof Uint32Array?
48
- V(a,"l",c):c instanceof Float32Array?V(a,"F",c):c instanceof Float64Array?V(a,"D",c):c instanceof BigInt64Array?V(a,"N",c):c instanceof BigUint64Array?V(a,"m",c):c instanceof DataView?V(a,"V",c):!Ya(c)&&(null===c||"object"!==typeof c?a=null:(a=Ea&&c[Ea]||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=r.encode(c),b=c.byteLength,b=d.toString(16)+
49
- ":T"+b.toString(16)+",",b=r.encode(b),a.completedRegularChunks.push(b,c),U(d);a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===t)return ub(a,b,d,c);if(c.$$typeof===u)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,
50
- b={id:c.$$id,bound:b?Promise.resolve(b):null},a=vb(a,b),d.set(c,a),a="$F"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+N(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+N(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return U(f);
51
- f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=tb(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return U(d)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+N(b,d));}
52
- function nb(a,b){a=a.onPostpone;a(b)}function Q(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function xb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
53
- function ob(a,b){b=b.toString(16)+":P\n";b=r.encode(b);a.completedErrorChunks.push(b)}function R(a,b,d){d={digest:d};b=b.toString(16)+":E"+O(d)+"\n";b=r.encode(b);a.completedErrorChunks.push(b)}function wb(a,b,d){d=O(d,a.toJSON);b=b.toString(16)+":"+d+"\n";b=r.encode(b);a.completedRegularChunks.push(b)}
54
- function sb(a){var b=cb.current;cb.current=Ua;var d=P;I=P=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];a:{var g=a;if(0===f.status){Ja(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===z){var k=h,l=f.thenableState;f.model=h;h=T(g,k.type,k.key,k.ref,k.props,l);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===z;)k=h,f.model=h,h=T(g,k.type,k.key,k.ref,k.props,null)}wb(g,f.id,h);g.abortableTasks.delete(f);f.status=1}catch(C){var p=
55
- C===La?Oa():C;if("object"===typeof p&&null!==p)if("function"===typeof p.then){var F=f.ping;p.then(F,F);f.thenableState=Pa();break a}else if(p.$$typeof===Da){g.abortableTasks.delete(f);f.status=4;nb(g,p.message);ob(g,f.id);break a}g.abortableTasks.delete(f);f.status=4;var H=Q(g,p);R(g,f.id,H)}}}}null!==a.destination&&S(a,a.destination)}catch(C){Q(a,C),xb(a,C)}finally{cb.current=b,I=null,P=d}}
56
- function S(a,b){m=new Uint8Array(512);n=0;try{for(var d=a.completedImportChunks,c=0;c<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,m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===a.pendingChunks&&
57
- b.close()}function yb(a){a.flushScheduled=null!==a.destination;ta?setTimeout(function(){return ua.run(a,sb,a)},0):setTimeout(function(){return sb(a)},0)}function pb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setTimeout(function(){return S(a,b)},0)}}
58
- function zb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=void 0===b?Error("The render was aborted by the server without a reason."):b,e=Q(a,c);a.pendingChunks++;var f=a.nextChunkId++;R(a,f,e,c);d.forEach(function(g){g.status=3;var h=U(f);g=tb(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&S(a,a.destination)}catch(g){Q(a,g),xb(a,g)}}
59
- function ib(a){if(a){var b=D;Ja(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];if(!bb[e]){var f={$$typeof:xa,_currentValue:B,_currentValue2:B,_defaultValue:B,_threadCount:0,Provider:null,Consumer:null,_globalName:e};f.Provider={$$typeof:wa,_context:f};bb[e]=f}Ka(bb[e],c)}a=D;Ja(b);return a}return null}
60
- function Ab(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[c.id,c.chunks,d]}var Bb=new Map;
61
- function Cb(a){var b=globalThis.__next_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(d){b.status="fulfilled";b.value=d},function(d){b.status="rejected";b.reason=d});return b}function Db(){}
62
- function Eb(a){for(var b=a[1],d=[],c=0;c<b.length;c++){var e=b[c],f=Bb.get(e);if(void 0===f){f=globalThis.__next_chunk_load__(e);d.push(f);var g=Bb.set.bind(Bb,e,null);f.then(g,Db);Bb.set(e,f)}else null!==f&&d.push(f)}return 4===a.length?0===d.length?Cb(a[0]):Promise.all(d).then(function(){return Cb(a[0])}):0<d.length?Promise.all(d):null}
63
- function W(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;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function Fb(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}Fb.prototype=Object.create(Promise.prototype);
64
- Fb.prototype.then=function(a,b){switch(this.status){case "resolved_model":Gb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function Hb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
65
- function Ib(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Hb(d,b)}}function Jb(a,b,d,c,e,f){var g=Ab(a._bundlerConfig,b);a=Eb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=W(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return W(g)});else return W(g);d.then(Kb(c,e,f),Lb(c));return null}var X=null,Y=null;
66
- function Gb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function Mb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Ib(d,b)})}
67
- function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new Fb("resolved_model",c,null,a):new Fb("pending",null,null,a),d.set(b,c));return c}function Kb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&Hb(e,c.value))}}function Lb(a){return function(b){return Ib(a,b)}}
31
+ function ab(a){if("string"===typeof a)return a;switch(a){case za:return"Suspense";case Aa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ya:return ab(a.render);case Ba:return ab(a.type);case A:var b=a._payload;a=a._init;try{return ab(a(b))}catch(d){}}return""}
32
+ function M(a,b){var d=Za(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Ya(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?M(g):$a(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===z)e="<"+ab(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?M(k):
33
+ $a(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var bb=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cb=bb.ContextRegistry,N=JSON.stringify,db=bb.ReactCurrentDispatcher,eb=bb.ReactCurrentCache;function fb(a){console.error(a)}function gb(){}
34
+ function hb(a,b,d,c,e,f){if(null!==eb.current&&eb.current!==Xa)throw Error("Currently React only supports one RSC renderer at a time.");sa.current=ra;eb.current=Xa;var g=new Set,h=[],k=new Set,l={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:g,pingedTasks:h,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
35
+ writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?fb:d,onPostpone:void 0===f?gb:f,toJSON:function(p,F){return ib(l,this,p,F)}};l.pendingChunks++;b=jb(c);a=kb(l,a,b,g);h.push(a);return l}var O=null;function w(){if(O)return O;if(ta){var a=ua.getStore();if(a)return a}return null}var lb={};
36
+ function mb(a,b){a.pendingChunks++;var d=kb(a,null,D,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,nb(a,d),d.id;case "rejected":var c=b.reason;"object"===typeof c&&null!==c&&c.$$typeof===Da?(ob(a,c.message),pb(a,d.id)):(c=P(a,c),Q(a,d.id,c));return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=
37
+ e;nb(a,d)},function(e){d.status=4;a.abortableTasks.delete(d);e=P(a,e);Q(a,d.id,e);null!==a.destination&&R(a,a.destination)});return d.id}function x(a,b,d){d=N(d);var c=a.nextChunkId++;b="H"+b;b=c.toString(16)+":"+b;d=r.encode(b+d+"\n");a.completedHintChunks.push(d);qb(a)}function rb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
38
+ function sb(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:A,_payload:a,_init:rb}}
39
+ function S(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===t)return[z,b,d,e];J=0;K=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:sb(e):e}if("string"===typeof b)return[z,b,d,e];if("symbol"===typeof b)return b===va?e.children:[z,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===t)return[z,b,d,e];switch(b.$$typeof){case A:var g=
40
+ b._init;b=g(b._payload);return S(a,b,d,c,e,f);case ya:return a=b.render,J=0,K=f,a(e,void 0);case Ba:return S(a,b.type,d,c,e,f);case wa:return Ka(b._context,e.value),[z,b,d,{value:e.value,children:e.children,__pop:lb}]}}throw Error("Unsupported Server Component type: "+$a(b));}function nb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setTimeout(function(){return tb(a)},0))}
41
+ function kb(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return nb(a,e)},thenableState:null};c.add(e);return e}function T(a){return"$"+a.toString(16)}function ub(a,b,d){a=N(d);b=b.toString(16)+":"+a+"\n";return r.encode(b)}
42
+ function vb(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]===z&&"1"===d?"$L"+g.toString(16):T(g);try{var h=a.bundlerConfig,k=c.$$id;g="";var l=h[k];if(l)g=l.name;else{var p=k.lastIndexOf("#");-1!==p&&(g=k.slice(p+1),l=h[k.slice(0,p)]);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 F=!0===c.$$async?[l.id,l.chunks,g,1]:[l.id,l.chunks,
43
+ g];a.pendingChunks++;var H=a.nextChunkId++,C=N(F),Nb=H.toString(16)+":I"+C+"\n",Ob=r.encode(Nb);a.completedImportChunks.push(Ob);f.set(e,H);return b[0]===z&&"1"===d?"$L"+H.toString(16):T(H)}catch(Pb){return a.pendingChunks++,b=a.nextChunkId++,d=P(a,Pb),Q(a,b,d),T(b)}}function wb(a,b){a.pendingChunks++;var d=a.nextChunkId++;xb(a,d,b);return d}
44
+ function U(a,b,d){a.pendingChunks+=2;var c=a.nextChunkId++,e=new Uint8Array(d.buffer,d.byteOffset,d.byteLength);d=512<d.byteLength?e.slice():e;e=d.byteLength;b=c.toString(16)+":"+b+e.toString(16)+",";b=r.encode(b);a.completedRegularChunks.push(b,d);return T(c)}
45
+ function ib(a,b,d,c){switch(c){case z:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===z||c.$$typeof===A);)try{switch(c.$$typeof){case z:var e=c;c=S(a,e.type,e.key,e.ref,e.props,null);break;case A:var f=c._init;c=f(c._payload)}}catch(g){d=g===La?Oa():g;if("object"===typeof d&&null!==d){if("function"===typeof d.then)return a.pendingChunks++,a=kb(a,c,D,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Pa(),"$L"+a.id.toString(16);if(d.$$typeof===Da)return c=d,a.pendingChunks++,d=a.nextChunkId++,
46
+ ob(a,c.message),pb(a,d),"$L"+d.toString(16)}a.pendingChunks++;c=a.nextChunkId++;d=P(a,d);Q(a,c,d);return"$L"+c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===t)return vb(a,b,d,c);if("function"===typeof c.then)return"$@"+mb(a,c).toString(16);if(c.$$typeof===wa)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=ub(a,d,"$P"+c),a.completedRegularChunks.push(c)),T(d);if(c===lb){a=D;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
47
+ c=a.parentValue;a.context._currentValue=c===B?a.context._defaultValue:c;D=a.parent;return}return c instanceof Map?"$Q"+wb(a,Array.from(c)).toString(16):c instanceof Set?"$W"+wb(a,Array.from(c)).toString(16):c instanceof ArrayBuffer?U(a,"A",new Uint8Array(c)):c instanceof Int8Array?U(a,"C",c):c instanceof Uint8Array?U(a,"c",c):c instanceof Uint8ClampedArray?U(a,"U",c):c instanceof Int16Array?U(a,"S",c):c instanceof Uint16Array?U(a,"s",c):c instanceof Int32Array?U(a,"L",c):c instanceof Uint32Array?
48
+ U(a,"l",c):c instanceof Float32Array?U(a,"F",c):c instanceof Float64Array?U(a,"D",c):c instanceof BigInt64Array?U(a,"N",c):c instanceof BigUint64Array?U(a,"m",c):c instanceof DataView?U(a,"V",c):!Ya(c)&&(null===c||"object"!==typeof c?a=null:(a=Ea&&c[Ea]||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=r.encode(c),b=c.byteLength,b=d.toString(16)+
49
+ ":T"+b.toString(16)+",",b=r.encode(b),a.completedRegularChunks.push(b,c),T(d);a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===t)return vb(a,b,d,c);if(c.$$typeof===u)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,
50
+ b={id:c.$$id,bound:b?Promise.resolve(b):null},a=wb(a,b),d.set(c,a),a="$F"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+M(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+M(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return T(f);
51
+ f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+M(b,d));a.pendingChunks++;d=a.nextChunkId++;b=ub(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return T(d)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+M(b,d));}
52
+ function ob(a,b){a=a.onPostpone;a(b)}function P(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function yb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
53
+ function pb(a,b){b=b.toString(16)+":P\n";b=r.encode(b);a.completedErrorChunks.push(b)}function Q(a,b,d){d={digest:d};b=b.toString(16)+":E"+N(d)+"\n";b=r.encode(b);a.completedErrorChunks.push(b)}function xb(a,b,d){d=N(d,a.toJSON);b=b.toString(16)+":"+d+"\n";b=r.encode(b);a.completedRegularChunks.push(b)}
54
+ function tb(a){var b=db.current;db.current=Ua;var d=O;I=O=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];a:{var g=a;if(0===f.status){Ja(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===z){var k=h,l=f.thenableState;f.model=h;h=S(g,k.type,k.key,k.ref,k.props,l);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===z;)k=h,f.model=h,h=S(g,k.type,k.key,k.ref,k.props,null)}xb(g,f.id,h);g.abortableTasks.delete(f);f.status=1}catch(C){var p=
55
+ C===La?Oa():C;if("object"===typeof p&&null!==p)if("function"===typeof p.then){var F=f.ping;p.then(F,F);f.thenableState=Pa();break a}else if(p.$$typeof===Da){g.abortableTasks.delete(f);f.status=4;ob(g,p.message);pb(g,f.id);break a}g.abortableTasks.delete(f);f.status=4;var H=P(g,p);Q(g,f.id,H)}}}}null!==a.destination&&R(a,a.destination)}catch(C){P(a,C),yb(a,C)}finally{db.current=b,I=null,O=d}}
56
+ function R(a,b){m=new Uint8Array(512);n=0;try{for(var d=a.completedImportChunks,c=0;c<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,m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===a.pendingChunks&&
57
+ b.close()}function zb(a){a.flushScheduled=null!==a.destination;ta?setTimeout(function(){return ua.run(a,tb,a)},0):setTimeout(function(){return tb(a)},0)}function qb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setTimeout(function(){return R(a,b)},0)}}
58
+ function Ab(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=void 0===b?Error("The render was aborted by the server without a reason."):b,e=P(a,c);a.pendingChunks++;var f=a.nextChunkId++;Q(a,f,e,c);d.forEach(function(g){g.status=3;var h=T(f);g=ub(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(g){P(a,g),yb(a,g)}}
59
+ function jb(a){if(a){var b=D;Ja(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];if(!cb[e]){var f={$$typeof:xa,_currentValue:B,_currentValue2:B,_defaultValue:B,_threadCount:0,Provider:null,Consumer:null,_globalName:e};f.Provider={$$typeof:wa,_context:f};cb[e]=f}Ka(cb[e],c)}a=D;Ja(b);return a}return null}
60
+ function Bb(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[c.id,c.chunks,d]}var Cb=new Map;
61
+ function Db(a){var b=globalThis.__next_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(d){b.status="fulfilled";b.value=d},function(d){b.status="rejected";b.reason=d});return b}function Eb(){}
62
+ function Fb(a){for(var b=a[1],d=[],c=0;c<b.length;c++){var e=b[c],f=Cb.get(e);if(void 0===f){f=globalThis.__next_chunk_load__(e);d.push(f);var g=Cb.set.bind(Cb,e,null);f.then(g,Eb);Cb.set(e,f)}else null!==f&&d.push(f)}return 4===a.length?0===d.length?Db(a[0]):Promise.all(d).then(function(){return Db(a[0])}):0<d.length?Promise.all(d):null}
63
+ 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;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype);
64
+ W.prototype.then=function(a,b){switch(this.status){case "resolved_model":Gb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function Hb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
65
+ function Ib(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Hb(d,b)}}function Jb(a,b,d,c,e,f){var g=Bb(a._bundlerConfig,b);a=Fb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return V(g)});else return V(g);d.then(Kb(c,e,f),Lb(c));return null}var X=null,Y=null;
66
+ function Gb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function Mb(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(d){"pending"===d.status&&Ib(d,b)})}
67
+ function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new W("resolved_model",c,null,a):a._closed?new W("rejected",null,a._closedReason,a):new W("pending",null,null,a),d.set(b,c));return c}function Kb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&Hb(e,c.value))}}function Lb(a){return function(b){return Ib(a,b)}}
68
68
  function Qb(a,b){a=Z(a,b);"resolved_model"===a.status&&Gb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
69
69
  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),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":return c=parseInt(c.slice(2),16),c=Qb(a,c),Jb(a,c.id,c.bound,X,b,d);case "Q":return b=parseInt(c.slice(2),16),a=Qb(a,b),new Map(a);case "W":return b=parseInt(c.slice(2),16),a=Qb(a,b),new Set(a);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),
70
70
  g)});return f;case "I":return Infinity;case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":Gb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(Kb(c,b,d),Lb(c)),null;default:throw a.reason;}}return c}
71
- function Sb(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?Rb(e,this,f,g):g}};return e}function Tb(a){Mb(a,Error("Connection closed."))}function Ub(a,b,d){var c=Ab(a,b);a=Eb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=W(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return W(c)}):Promise.resolve(W(c))}
72
- function Vb(a,b,d){a=Sb(b,d,a);Tb(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,ja)};
71
+ function Sb(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?Rb(e,this,f,g):g},_closed:!1,_closedReason:null};return e}function Tb(a){Mb(a,Error("Connection closed."))}
72
+ function Ub(a,b,d){var c=Bb(a,b);a=Fb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=V(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(c)}):Promise.resolve(V(c))}function Vb(a,b,d){a=Sb(b,d,a);Tb(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,ja)};
73
73
  exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Vb(a,b,e),c=Ub(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Ub(b,e,null)):d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Sb(b,"",a);Tb(a);return Z(a,0)};
74
74
  exports.registerClientReference=function(a,b,d){return v(a,b+"#"+d,!1)};exports.registerServerReference=function(a,b,d){return Object.defineProperties(a,{$$typeof:{value:u},$$id:{value:null===d?b:b+"#"+d},$$bound:{value:null},bind:{value:fa}})};
75
- exports.renderToReadableStream=function(a,b,d){var c=gb(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0,d?d.onPostpone:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)zb(c,e.reason);else{var f=function(){zb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){yb(c)},pull:function(g){if(1===c.status)c.status=2,ca(g,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=g;try{S(c,
76
- g)}catch(h){Q(c,h),xb(c,h)}}},cancel:function(){}},{highWaterMark:0})};
75
+ exports.renderToReadableStream=function(a,b,d){var c=hb(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0,d?d.onPostpone:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)Ab(c,e.reason);else{var f=function(){Ab(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){zb(c)},pull:function(g){if(1===c.status)c.status=2,ca(g,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=g;try{R(c,
76
+ g)}catch(h){P(c,h),yb(c,h)}}},cancel:function(){}},{highWaterMark:0})};
@@ -3148,6 +3148,11 @@ function createResolvedModelChunk(response, value) {
3148
3148
  return new Chunk(RESOLVED_MODEL, value, null, response);
3149
3149
  }
3150
3150
 
3151
+ function createErroredChunk(response, reason) {
3152
+ // $FlowFixMe[invalid-constructor] Flow doesn't support functions as constructors
3153
+ return new Chunk(ERRORED, null, reason, response);
3154
+ }
3155
+
3151
3156
  function resolveModelChunk(chunk, value) {
3152
3157
  if (chunk.status !== PENDING) {
3153
3158
  // We already resolved. We didn't expect to see this.
@@ -3241,6 +3246,9 @@ function initializeModelChunk(chunk) {
3241
3246
 
3242
3247
 
3243
3248
  function reportGlobalError(response, error) {
3249
+ response._closed = true;
3250
+ response._closedReason = error;
3251
+
3244
3252
  response._chunks.forEach(function (chunk) {
3245
3253
  // If this chunk was already resolved or errored, it won't
3246
3254
  // trigger an error but if it wasn't then we need to
@@ -3264,6 +3272,10 @@ function getChunk(response, id) {
3264
3272
  if (backingEntry != null) {
3265
3273
  // We assume that this is a string entry for now.
3266
3274
  chunk = createResolvedModelChunk(response, backingEntry);
3275
+ } else if (response._closed) {
3276
+ // We have already errored the response and we're not going to get
3277
+ // anything more streaming in so this will immediately error.
3278
+ chunk = createErroredChunk(response, response._closedReason);
3267
3279
  } else {
3268
3280
  // We're still waiting on this entry to stream in.
3269
3281
  chunk = createPendingChunk(response);
@@ -3495,7 +3507,9 @@ function createResponse(bundlerConfig, formFieldPrefix) {
3495
3507
  }
3496
3508
 
3497
3509
  return value;
3498
- }
3510
+ },
3511
+ _closed: false,
3512
+ _closedReason: null
3499
3513
  };
3500
3514
  return response;
3501
3515
  }
@@ -24,57 +24,57 @@ Fa=Symbol.iterator,F=null;function G(a,b){if(a!==b){a.context._currentValue=a.pa
24
24
  function Ha(a){var b=a.parent;null!==b&&Ha(b);a.context._currentValue=a.value}function Ia(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?G(a,b):Ia(a,b)}
25
25
  function Ja(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?G(a,d):Ja(a,d);b.context._currentValue=b.value}function Ka(a){var b=F;b!==a&&(null===b?Ha(a):null===a?Ga(b):b.depth===a.depth?G(b,a):b.depth>a.depth?Ia(b,a):Ja(b,a),F=a)}function La(a,b){var d=a._currentValue;a._currentValue=b;var c=F;return F=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Ma=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`");
26
26
  function Na(){}function Oa(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Na,Na),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}I=b;throw Ma;}}var I=null;
27
- function Pa(){if(null===I)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=I;I=null;return a}var J=null,K=0,L=null;function Qa(){var a=L;L=null;return a}function Ra(a){return a._currentValue}
28
- var Va={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:M,useTransition:M,readContext:Ra,useContext:Ra,useReducer:M,useRef:M,useState:M,useInsertionEffect:M,useLayoutEffect:M,useImperativeHandle:M,useEffect:M,useId:Sa,useSyncExternalStore:M,useCacheRefresh:function(){return Ta},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=Da;return b},use:Ua};
29
- function M(){throw Error("This Hook is not supported in Server Components.");}function Ta(){throw Error("Refreshing the cache is not supported in Server Components.");}function Sa(){if(null===J)throw Error("useId can only be used while React is rendering");var a=J.identifierCount++;return":"+J.identifierPrefix+"S"+a.toString(32)+":"}
30
- function Ua(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=K;K+=1;null===L&&(L=[]);return Oa(L,a,b)}if(a.$$typeof===ya)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Wa(){return(new AbortController).signal}function Xa(){var a=y();return a?a.cache:new Map}
31
- var Ya={getCacheSignal:function(){var a=Xa(),b=a.get(Wa);void 0===b&&(b=Wa(),a.set(Wa,b));return b},getCacheForType:function(a){var b=Xa(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Za=Array.isArray;function $a(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
32
- function ab(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Za(a))return"[...]";a=$a(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
33
- function bb(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 bb(a.render);case Ca:return bb(a.type);case C:var b=a._payload;a=a._init;try{return bb(a(b))}catch(d){}}return""}
34
- function N(a,b){var d=$a(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Za(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?N(g):ab(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===B)e="<"+bb(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?N(k):
35
- ab(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var cb=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,db=cb.ContextRegistry,O=JSON.stringify,eb=cb.ReactCurrentDispatcher,fb=cb.ReactCurrentCache;function gb(a){console.error(a)}function hb(){}
36
- function ib(a,b,d,c,e,f){if(null!==fb.current&&fb.current!==Ya)throw Error("Currently React only supports one RSC renderer at a time.");ua.current=ta;fb.current=Ya;var g=new Set,h=[],k=new Set,n={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:g,pingedTasks:h,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
37
- writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?gb:d,onPostpone:void 0===f?hb:f,toJSON:function(p,q){return jb(n,this,p,q)}};n.pendingChunks++;b=kb(c);a=lb(n,a,b,g);h.push(a);return n}var P=null;function y(){if(P)return P;var a=va.getStore();return a?a:null}var mb={};
38
- function nb(a,b){a.pendingChunks++;var d=lb(a,null,F,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,ob(a,d),d.id;case "rejected":var c=b.reason;"object"===typeof c&&null!==c&&c.$$typeof===Ea?(pb(a,c.message),qb(a,d.id)):(c=Q(a,c),R(a,d.id,c));return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=
39
- e;ob(a,d)},function(e){d.status=4;a.abortableTasks.delete(d);e=Q(a,e);R(a,d.id,e);null!==a.destination&&S(a,a.destination)});return d.id}function z(a,b,d){d=O(d);var c=a.nextChunkId++;b="H"+b;b=c.toString(16)+":"+b;a.completedHintChunks.push(b+d+"\n");rb(a)}function sb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
40
- function tb(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:sb}}
41
- function T(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===v)return[B,b,d,e];K=0;L=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:tb(e):e}if("string"===typeof b)return[B,b,d,e];if("symbol"===typeof b)return b===wa?e.children:[B,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===v)return[B,b,d,e];switch(b.$$typeof){case C:var g=
42
- b._init;b=g(b._payload);return T(a,b,d,c,e,f);case za:return a=b.render,K=0,L=f,a(e,void 0);case Ca:return T(a,b.type,d,c,e,f);case xa:return La(b._context,e.value),[B,b,d,{value:e.value,children:e.children,__pop:mb}]}}throw Error("Unsupported Server Component type: "+ab(b));}function ob(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return ub(a)}))}
43
- function lb(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return ob(a,e)},thenableState:null};c.add(e);return e}function U(a){return"$"+a.toString(16)}function vb(a,b,d){a=O(d);return b.toString(16)+":"+a+"\n"}
44
- function wb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===B&&"1"===d?"$L"+g.toString(16):U(g);try{var h=a.bundlerConfig,k=c.$$id;g="";var n=h[k];if(n)g=n.name;else{var p=k.lastIndexOf("#");-1!==p&&(g=k.slice(p+1),n=h[k.slice(0,p)]);if(!n)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 q=!0===c.$$async?[n.id,n.chunks,g,1]:[n.id,n.chunks,
45
- g];a.pendingChunks++;var H=a.nextChunkId++,D=O(q),Rb=H.toString(16)+":I"+D+"\n";a.completedImportChunks.push(Rb);f.set(e,H);return b[0]===B&&"1"===d?"$L"+H.toString(16):U(H)}catch(Sb){return a.pendingChunks++,b=a.nextChunkId++,d=Q(a,Sb),R(a,b,d),U(b)}}function xb(a,b){a.pendingChunks++;var d=a.nextChunkId++;yb(a,d,b);return d}
46
- function V(a,b,d){a.pendingChunks+=2;var c=a.nextChunkId++;d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength);var e=d.byteLength;b=c.toString(16)+":"+b+e.toString(16)+",";a.completedRegularChunks.push(b,d);return U(c)}
47
- function jb(a,b,d,c){switch(c){case B:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===B||c.$$typeof===C);)try{switch(c.$$typeof){case B:var e=c;c=T(a,e.type,e.key,e.ref,e.props,null);break;case C:var f=c._init;c=f(c._payload)}}catch(g){d=g===Ma?Pa():g;if("object"===typeof d&&null!==d){if("function"===typeof d.then)return a.pendingChunks++,a=lb(a,c,F,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Qa(),"$L"+a.id.toString(16);if(d.$$typeof===Ea)return c=d,a.pendingChunks++,d=a.nextChunkId++,
48
- pb(a,c.message),qb(a,d),"$L"+d.toString(16)}a.pendingChunks++;c=a.nextChunkId++;d=Q(a,d);R(a,c,d);return"$L"+c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===v)return wb(a,b,d,c);if("function"===typeof c.then)return"$@"+nb(a,c).toString(16);if(c.$$typeof===xa)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=vb(a,d,"$P"+c),a.completedRegularChunks.push(c)),U(d);if(c===mb){a=F;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
49
- c=a.parentValue;a.context._currentValue=c===E?a.context._defaultValue:c;F=a.parent;return}return c instanceof Map?"$Q"+xb(a,Array.from(c)).toString(16):c instanceof Set?"$W"+xb(a,Array.from(c)).toString(16):c instanceof ArrayBuffer?V(a,"A",new Uint8Array(c)):c instanceof Int8Array?V(a,"C",c):c instanceof Uint8Array?V(a,"c",c):c instanceof Uint8ClampedArray?V(a,"U",c):c instanceof Int16Array?V(a,"S",c):c instanceof Uint16Array?V(a,"s",c):c instanceof Int32Array?V(a,"L",c):c instanceof Uint32Array?
50
- V(a,"l",c):c instanceof Float32Array?V(a,"F",c):c instanceof Float64Array?V(a,"D",c):c instanceof BigInt64Array?V(a,"N",c):c instanceof BigUint64Array?V(a,"m",c):c instanceof DataView?V(a,"V",c):!Za(c)&&(null===c||"object"!==typeof c?a=null:(a=Fa&&c[Fa]||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++,b="string"===typeof c?Buffer.byteLength(c,
51
- "utf8"):c.byteLength,b=d.toString(16)+":T"+b.toString(16)+",",a.completedRegularChunks.push(b,c),U(d);a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===v)return wb(a,b,d,c);if(c.$$typeof===w)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):
52
- (b=c.$$bound,b={id:c.$$id,bound:b?Promise.resolve(b):null},a=xb(a,b),d.set(c,a),a="$F"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+N(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+N(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==
53
- f)return U(f);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=vb(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return U(d)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+N(b,d));}
54
- function pb(a,b){a=a.onPostpone;a(b)}function Q(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function zb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
55
- function qb(a,b){b=b.toString(16)+":P\n";a.completedErrorChunks.push(b)}function R(a,b,d){d={digest:d};b=b.toString(16)+":E"+O(d)+"\n";a.completedErrorChunks.push(b)}function yb(a,b,d){d=O(d,a.toJSON);b=b.toString(16)+":"+d+"\n";a.completedRegularChunks.push(b)}
56
- function ub(a){var b=eb.current;eb.current=Va;var d=P;J=P=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];a:{var g=a;if(0===f.status){Ka(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===B){var k=h,n=f.thenableState;f.model=h;h=T(g,k.type,k.key,k.ref,k.props,n);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===B;)k=h,f.model=h,h=T(g,k.type,k.key,k.ref,k.props,null)}yb(g,f.id,h);g.abortableTasks.delete(f);f.status=1}catch(D){var p=
57
- D===Ma?Pa():D;if("object"===typeof p&&null!==p)if("function"===typeof p.then){var q=f.ping;p.then(q,q);f.thenableState=Qa();break a}else if(p.$$typeof===Ea){g.abortableTasks.delete(f);f.status=4;pb(g,p.message);qb(g,f.id);break a}g.abortableTasks.delete(f);f.status=4;var H=Q(g,p);R(g,f.id,H)}}}}null!==a.destination&&S(a,a.destination)}catch(D){Q(a,D),zb(a,D)}finally{eb.current=b,J=null,P=d}}
58
- function S(a,b){l=new Uint8Array(2048);m=0;r=!0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!u(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)if(!u(b,e[c])){a.destination=null;c++;break}e.splice(0,c);var f=a.completedRegularChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!u(b,f[c])){a.destination=null;c++;break}f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!u(b,g[c])){a.destination=
59
- null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,r=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function Ab(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return va.run(a,ub,a)})}function rb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return S(a,b)})}}
60
- function Bb(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{S(a,b)}catch(d){Q(a,d),zb(a,d)}}}
61
- function Cb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=void 0===b?Error("The render was aborted by the server without a reason."):b,e=Q(a,c);a.pendingChunks++;var f=a.nextChunkId++;R(a,f,e,c);d.forEach(function(g){g.status=3;var h=U(f);g=vb(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&S(a,a.destination)}catch(g){Q(a,g),zb(a,g)}}
62
- function kb(a){if(a){var b=F;Ka(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];if(!db[e]){var f={$$typeof:ya,_currentValue:E,_currentValue2:E,_defaultValue:E,_threadCount:0,Provider:null,Consumer:null,_globalName:e};f.Provider={$$typeof:xa,_context:f};db[e]=f}La(db[e],c)}a=F;Ka(b);return a}return null}
63
- function Db(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[c.id,c.chunks,d]}var Eb=new Map;
64
- function Fb(a){var b=globalThis.__next_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(d){b.status="fulfilled";b.value=d},function(d){b.status="rejected";b.reason=d});return b}function Gb(){}
65
- function Hb(a){for(var b=a[1],d=[],c=0;c<b.length;c++){var e=b[c],f=Eb.get(e);if(void 0===f){f=globalThis.__next_chunk_load__(e);d.push(f);var g=Eb.set.bind(Eb,e,null);f.then(g,Gb);Eb.set(e,f)}else null!==f&&d.push(f)}return 4===a.length?0===d.length?Fb(a[0]):Promise.all(d).then(function(){return Fb(a[0])}):0<d.length?Promise.all(d):null}
66
- function W(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;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function Ib(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}Ib.prototype=Object.create(Promise.prototype);
67
- Ib.prototype.then=function(a,b){switch(this.status){case "resolved_model":Jb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function Kb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
68
- function Lb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Kb(d,b)}}function Mb(a,b,d,c,e,f){var g=Db(a._bundlerConfig,b);a=Hb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=W(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return W(g)});else return W(g);d.then(Nb(c,e,f),Ob(c));return null}var X=null,Y=null;
69
- function Jb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function Pb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Lb(d,b)})}
70
- function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new Ib("resolved_model",c,null,a):new Ib("pending",null,null,a),d.set(b,c));return c}function Nb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&Kb(e,c.value))}}function Ob(a){return function(b){return Lb(a,b)}}
27
+ function Pa(){if(null===I)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=I;I=null;return a}var J=null,Qa=0,K=null;function Ra(){var a=K;K=null;return a}function Sa(a){return a._currentValue}
28
+ var Wa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:L,useTransition:L,readContext:Sa,useContext:Sa,useReducer:L,useRef:L,useState:L,useInsertionEffect:L,useLayoutEffect:L,useImperativeHandle:L,useEffect:L,useId:Ta,useSyncExternalStore:L,useCacheRefresh:function(){return Ua},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=Da;return b},use:Va};
29
+ function L(){throw Error("This Hook is not supported in Server Components.");}function Ua(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ta(){if(null===J)throw Error("useId can only be used while React is rendering");var a=J.identifierCount++;return":"+J.identifierPrefix+"S"+a.toString(32)+":"}
30
+ function Va(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Qa;Qa+=1;null===K&&(K=[]);return Oa(K,a,b)}if(a.$$typeof===ya)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Xa(){return(new AbortController).signal}function Ya(){var a=y();return a?a.cache:new Map}
31
+ var Za={getCacheSignal:function(){var a=Ya(),b=a.get(Xa);void 0===b&&(b=Xa(),a.set(Xa,b));return b},getCacheForType:function(a){var b=Ya(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},$a=Array.isArray;function ab(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
32
+ function bb(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if($a(a))return"[...]";a=ab(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
33
+ function cb(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 cb(a.render);case Ca:return cb(a.type);case C:var b=a._payload;a=a._init;try{return cb(a(b))}catch(d){}}return""}
34
+ function M(a,b){var d=ab(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if($a(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?M(g):bb(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===B)e="<"+cb(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?M(k):
35
+ bb(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var db=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,eb=db.ContextRegistry,N=JSON.stringify,fb=db.ReactCurrentDispatcher,gb=db.ReactCurrentCache;function hb(a){console.error(a)}function ib(){}
36
+ function jb(a,b,d,c,e,f){if(null!==gb.current&&gb.current!==Za)throw Error("Currently React only supports one RSC renderer at a time.");ua.current=ta;gb.current=Za;var g=new Set,h=[],k=new Set,n={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:g,pingedTasks:h,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
37
+ writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?hb:d,onPostpone:void 0===f?ib:f,toJSON:function(p,q){return kb(n,this,p,q)}};n.pendingChunks++;b=lb(c);a=mb(n,a,b,g);h.push(a);return n}var O=null;function y(){if(O)return O;var a=va.getStore();return a?a:null}var nb={};
38
+ function ob(a,b){a.pendingChunks++;var d=mb(a,null,F,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,pb(a,d),d.id;case "rejected":var c=b.reason;"object"===typeof c&&null!==c&&c.$$typeof===Ea?(qb(a,c.message),rb(a,d.id)):(c=P(a,c),Q(a,d.id,c));return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=
39
+ e;pb(a,d)},function(e){d.status=4;a.abortableTasks.delete(d);e=P(a,e);Q(a,d.id,e);null!==a.destination&&R(a,a.destination)});return d.id}function z(a,b,d){d=N(d);var c=a.nextChunkId++;b="H"+b;b=c.toString(16)+":"+b;a.completedHintChunks.push(b+d+"\n");sb(a)}function tb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
40
+ function ub(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:tb}}
41
+ function S(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===v)return[B,b,d,e];Qa=0;K=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:ub(e):e}if("string"===typeof b)return[B,b,d,e];if("symbol"===typeof b)return b===wa?e.children:[B,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===v)return[B,b,d,e];switch(b.$$typeof){case C:var g=
42
+ b._init;b=g(b._payload);return S(a,b,d,c,e,f);case za:return a=b.render,Qa=0,K=f,a(e,void 0);case Ca:return S(a,b.type,d,c,e,f);case xa:return La(b._context,e.value),[B,b,d,{value:e.value,children:e.children,__pop:nb}]}}throw Error("Unsupported Server Component type: "+bb(b));}function pb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return vb(a)}))}
43
+ function mb(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return pb(a,e)},thenableState:null};c.add(e);return e}function T(a){return"$"+a.toString(16)}function wb(a,b,d){a=N(d);return b.toString(16)+":"+a+"\n"}
44
+ function xb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===B&&"1"===d?"$L"+g.toString(16):T(g);try{var h=a.bundlerConfig,k=c.$$id;g="";var n=h[k];if(n)g=n.name;else{var p=k.lastIndexOf("#");-1!==p&&(g=k.slice(p+1),n=h[k.slice(0,p)]);if(!n)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 q=!0===c.$$async?[n.id,n.chunks,g,1]:[n.id,n.chunks,
45
+ g];a.pendingChunks++;var H=a.nextChunkId++,D=N(q),Rb=H.toString(16)+":I"+D+"\n";a.completedImportChunks.push(Rb);f.set(e,H);return b[0]===B&&"1"===d?"$L"+H.toString(16):T(H)}catch(Sb){return a.pendingChunks++,b=a.nextChunkId++,d=P(a,Sb),Q(a,b,d),T(b)}}function yb(a,b){a.pendingChunks++;var d=a.nextChunkId++;zb(a,d,b);return d}
46
+ function U(a,b,d){a.pendingChunks+=2;var c=a.nextChunkId++;d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength);var e=d.byteLength;b=c.toString(16)+":"+b+e.toString(16)+",";a.completedRegularChunks.push(b,d);return T(c)}
47
+ function kb(a,b,d,c){switch(c){case B:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===B||c.$$typeof===C);)try{switch(c.$$typeof){case B:var e=c;c=S(a,e.type,e.key,e.ref,e.props,null);break;case C:var f=c._init;c=f(c._payload)}}catch(g){d=g===Ma?Pa():g;if("object"===typeof d&&null!==d){if("function"===typeof d.then)return a.pendingChunks++,a=mb(a,c,F,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ra(),"$L"+a.id.toString(16);if(d.$$typeof===Ea)return c=d,a.pendingChunks++,d=a.nextChunkId++,
48
+ qb(a,c.message),rb(a,d),"$L"+d.toString(16)}a.pendingChunks++;c=a.nextChunkId++;d=P(a,d);Q(a,c,d);return"$L"+c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===v)return xb(a,b,d,c);if("function"===typeof c.then)return"$@"+ob(a,c).toString(16);if(c.$$typeof===xa)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=wb(a,d,"$P"+c),a.completedRegularChunks.push(c)),T(d);if(c===nb){a=F;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
49
+ c=a.parentValue;a.context._currentValue=c===E?a.context._defaultValue:c;F=a.parent;return}return c instanceof Map?"$Q"+yb(a,Array.from(c)).toString(16):c instanceof Set?"$W"+yb(a,Array.from(c)).toString(16):c instanceof ArrayBuffer?U(a,"A",new Uint8Array(c)):c instanceof Int8Array?U(a,"C",c):c instanceof Uint8Array?U(a,"c",c):c instanceof Uint8ClampedArray?U(a,"U",c):c instanceof Int16Array?U(a,"S",c):c instanceof Uint16Array?U(a,"s",c):c instanceof Int32Array?U(a,"L",c):c instanceof Uint32Array?
50
+ U(a,"l",c):c instanceof Float32Array?U(a,"F",c):c instanceof Float64Array?U(a,"D",c):c instanceof BigInt64Array?U(a,"N",c):c instanceof BigUint64Array?U(a,"m",c):c instanceof DataView?U(a,"V",c):!$a(c)&&(null===c||"object"!==typeof c?a=null:(a=Fa&&c[Fa]||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++,b="string"===typeof c?Buffer.byteLength(c,
51
+ "utf8"):c.byteLength,b=d.toString(16)+":T"+b.toString(16)+",",a.completedRegularChunks.push(b,c),T(d);a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===v)return xb(a,b,d,c);if(c.$$typeof===w)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):
52
+ (b=c.$$bound,b={id:c.$$id,bound:b?Promise.resolve(b):null},a=yb(a,b),d.set(c,a),a="$F"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+M(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+M(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==
53
+ f)return T(f);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+M(b,d));a.pendingChunks++;d=a.nextChunkId++;b=wb(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return T(d)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+M(b,d));}
54
+ function qb(a,b){a=a.onPostpone;a(b)}function P(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function Ab(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
55
+ function rb(a,b){b=b.toString(16)+":P\n";a.completedErrorChunks.push(b)}function Q(a,b,d){d={digest:d};b=b.toString(16)+":E"+N(d)+"\n";a.completedErrorChunks.push(b)}function zb(a,b,d){d=N(d,a.toJSON);b=b.toString(16)+":"+d+"\n";a.completedRegularChunks.push(b)}
56
+ function vb(a){var b=fb.current;fb.current=Wa;var d=O;J=O=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];a:{var g=a;if(0===f.status){Ka(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===B){var k=h,n=f.thenableState;f.model=h;h=S(g,k.type,k.key,k.ref,k.props,n);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===B;)k=h,f.model=h,h=S(g,k.type,k.key,k.ref,k.props,null)}zb(g,f.id,h);g.abortableTasks.delete(f);f.status=1}catch(D){var p=
57
+ D===Ma?Pa():D;if("object"===typeof p&&null!==p)if("function"===typeof p.then){var q=f.ping;p.then(q,q);f.thenableState=Ra();break a}else if(p.$$typeof===Ea){g.abortableTasks.delete(f);f.status=4;qb(g,p.message);rb(g,f.id);break a}g.abortableTasks.delete(f);f.status=4;var H=P(g,p);Q(g,f.id,H)}}}}null!==a.destination&&R(a,a.destination)}catch(D){P(a,D),Ab(a,D)}finally{fb.current=b,J=null,O=d}}
58
+ function R(a,b){l=new Uint8Array(2048);m=0;r=!0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!u(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)if(!u(b,e[c])){a.destination=null;c++;break}e.splice(0,c);var f=a.completedRegularChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!u(b,f[c])){a.destination=null;c++;break}f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!u(b,g[c])){a.destination=
59
+ null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,r=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function Bb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return va.run(a,vb,a)})}function sb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return R(a,b)})}}
60
+ function Cb(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{R(a,b)}catch(d){P(a,d),Ab(a,d)}}}
61
+ function Db(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=void 0===b?Error("The render was aborted by the server without a reason."):b,e=P(a,c);a.pendingChunks++;var f=a.nextChunkId++;Q(a,f,e,c);d.forEach(function(g){g.status=3;var h=T(f);g=wb(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(g){P(a,g),Ab(a,g)}}
62
+ function lb(a){if(a){var b=F;Ka(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];if(!eb[e]){var f={$$typeof:ya,_currentValue:E,_currentValue2:E,_defaultValue:E,_threadCount:0,Provider:null,Consumer:null,_globalName:e};f.Provider={$$typeof:xa,_context:f};eb[e]=f}La(eb[e],c)}a=F;Ka(b);return a}return null}
63
+ function Eb(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[c.id,c.chunks,d]}var Fb=new Map;
64
+ function Gb(a){var b=globalThis.__next_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(d){b.status="fulfilled";b.value=d},function(d){b.status="rejected";b.reason=d});return b}function Hb(){}
65
+ function Ib(a){for(var b=a[1],d=[],c=0;c<b.length;c++){var e=b[c],f=Fb.get(e);if(void 0===f){f=globalThis.__next_chunk_load__(e);d.push(f);var g=Fb.set.bind(Fb,e,null);f.then(g,Hb);Fb.set(e,f)}else null!==f&&d.push(f)}return 4===a.length?0===d.length?Gb(a[0]):Promise.all(d).then(function(){return Gb(a[0])}):0<d.length?Promise.all(d):null}
66
+ 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;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype);
67
+ W.prototype.then=function(a,b){switch(this.status){case "resolved_model":Jb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function Kb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
68
+ function Lb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Kb(d,b)}}function Mb(a,b,d,c,e,f){var g=Eb(a._bundlerConfig,b);a=Ib(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return V(g)});else return V(g);d.then(Nb(c,e,f),Ob(c));return null}var X=null,Y=null;
69
+ function Jb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function Pb(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(d){"pending"===d.status&&Lb(d,b)})}
70
+ function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new W("resolved_model",c,null,a):a._closed?new W("rejected",null,a._closedReason,a):new W("pending",null,null,a),d.set(b,c));return c}function Nb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&Kb(e,c.value))}}function Ob(a){return function(b){return Lb(a,b)}}
71
71
  function Qb(a,b){a=Z(a,b);"resolved_model"===a.status&&Jb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
72
72
  function Tb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":return c=parseInt(c.slice(2),16),c=Qb(a,c),Mb(a,c.id,c.bound,X,b,d);case "Q":return b=parseInt(c.slice(2),16),a=Qb(a,b),new Map(a);case "W":return b=parseInt(c.slice(2),16),a=Qb(a,b),new Set(a);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),
73
73
  g)});return f;case "I":return Infinity;case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":Jb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(Nb(c,b,d),Ob(c)),null;default:throw a.reason;}}return c}
74
- function Ub(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?Tb(e,this,f,g):g}};return e}
74
+ function Ub(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?Tb(e,this,f,g):g},_closed:!1,_closedReason:null};return e}
75
75
  function Vb(a,b,d){a._formData.append(b,d);var c=a._prefix;if(b.startsWith(c)&&(a=a._chunks,b=+b.slice(c.length),(b=a.get(b))&&"pending"===b.status&&(c=b.value,a=b.reason,b.status="resolved_model",b.value=d,null!==c)))switch(Jb(b),b.status){case "fulfilled":Kb(c,b.value);break;case "pending":case "blocked":b.value=c;b.reason=a;break;case "rejected":a&&Kb(a,b.reason)}}function Wb(a){Pb(a,Error("Connection closed."))}
76
- function Xb(a,b,d){var c=Db(a,b);a=Hb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=W(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return W(c)}):Promise.resolve(W(c))}function Yb(a,b,d){a=Ub(b,d,a);Wb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Zb(a,b){return function(){return Bb(b,a)}}exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,la)};
76
+ function Xb(a,b,d){var c=Eb(a,b);a=Ib(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=V(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(c)}):Promise.resolve(V(c))}function Yb(a,b,d){a=Ub(b,d,a);Wb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Zb(a,b){return function(){return Cb(b,a)}}exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,la)};
77
77
  exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Yb(a,b,e),c=Xb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Xb(b,e,null)):d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Ub(b,"",a);Wb(a);return Z(a,0)};
78
78
  exports.decodeReplyFromBusboy=function(a,b){var d=Ub(b,""),c=0,e=[];a.on("field",function(f,g){0<c?e.push(f,g):Vb(d,f,g)});a.on("file",function(f,g,h){var k=h.filename,n=h.mimeType;if("base64"===h.encoding.toLowerCase())throw 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.");c++;var p=[];g.on("data",function(q){p.push(q)});g.on("end",function(){var q=
79
79
  new Blob(p,{type:n});d._formData.append(f,q,k);c--;if(0===c){for(q=0;q<e.length;q+=2)Vb(d,e[q],e[q+1]);e.length=0}})});a.on("finish",function(){Wb(d)});a.on("error",function(f){Pb(d,f)});return Z(d,0)};exports.registerClientReference=function(a,b,d){return x(a,b+"#"+d,!1)};exports.registerServerReference=function(a,b,d){return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:null===d?b:b+"#"+d},$$bound:{value:null},bind:{value:ia}})};
80
- exports.renderToPipeableStream=function(a,b,d){var c=ib(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0,d?d.onPostpone:void 0),e=!1;Ab(c);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;Bb(c,f);f.on("drain",Zb(f,c));return f},abort:function(f){Cb(c,f)}}};
80
+ exports.renderToPipeableStream=function(a,b,d){var c=jb(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0,d?d.onPostpone:void 0),e=!1;Bb(c);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;Cb(c,f);f.on("drain",Zb(f,c));return f},abort:function(f){Db(c,f)}}};
@@ -3077,6 +3077,11 @@ function createResolvedModelChunk(response, value) {
3077
3077
  return new Chunk(RESOLVED_MODEL, value, null, response);
3078
3078
  }
3079
3079
 
3080
+ function createErroredChunk(response, reason) {
3081
+ // $FlowFixMe[invalid-constructor] Flow doesn't support functions as constructors
3082
+ return new Chunk(ERRORED, null, reason, response);
3083
+ }
3084
+
3080
3085
  function resolveModelChunk(chunk, value) {
3081
3086
  if (chunk.status !== PENDING) {
3082
3087
  // We already resolved. We didn't expect to see this.
@@ -3170,6 +3175,9 @@ function initializeModelChunk(chunk) {
3170
3175
 
3171
3176
 
3172
3177
  function reportGlobalError(response, error) {
3178
+ response._closed = true;
3179
+ response._closedReason = error;
3180
+
3173
3181
  response._chunks.forEach(function (chunk) {
3174
3182
  // If this chunk was already resolved or errored, it won't
3175
3183
  // trigger an error but if it wasn't then we need to
@@ -3193,6 +3201,10 @@ function getChunk(response, id) {
3193
3201
  if (backingEntry != null) {
3194
3202
  // We assume that this is a string entry for now.
3195
3203
  chunk = createResolvedModelChunk(response, backingEntry);
3204
+ } else if (response._closed) {
3205
+ // We have already errored the response and we're not going to get
3206
+ // anything more streaming in so this will immediately error.
3207
+ chunk = createErroredChunk(response, response._closedReason);
3196
3208
  } else {
3197
3209
  // We're still waiting on this entry to stream in.
3198
3210
  chunk = createPendingChunk(response);
@@ -3424,7 +3436,9 @@ function createResponse(bundlerConfig, formFieldPrefix) {
3424
3436
  }
3425
3437
 
3426
3438
  return value;
3427
- }
3439
+ },
3440
+ _closed: false,
3441
+ _closedReason: null
3428
3442
  };
3429
3443
  return response;
3430
3444
  }