react-server-dom-webpack 19.0.0-canary-e3ebcd54b-20240405 → 19.0.0-canary-adb717393-20240411

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 (38) hide show
  1. package/cjs/react-server-dom-webpack-client.browser.development.js +136 -97
  2. package/cjs/react-server-dom-webpack-client.browser.production.js +106 -65
  3. package/cjs/react-server-dom-webpack-client.browser.production.min.js +24 -23
  4. package/cjs/react-server-dom-webpack-client.browser.production.min.js.map +1 -1
  5. package/cjs/react-server-dom-webpack-client.edge.development.js +144 -105
  6. package/cjs/react-server-dom-webpack-client.edge.production.js +114 -73
  7. package/cjs/react-server-dom-webpack-client.edge.production.min.js +24 -23
  8. package/cjs/react-server-dom-webpack-client.edge.production.min.js.map +1 -1
  9. package/cjs/react-server-dom-webpack-client.node.development.js +144 -105
  10. package/cjs/react-server-dom-webpack-client.node.production.js +114 -73
  11. package/cjs/react-server-dom-webpack-client.node.production.min.js +26 -25
  12. package/cjs/react-server-dom-webpack-client.node.production.min.js.map +1 -1
  13. package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +144 -105
  14. package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +114 -73
  15. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +33 -32
  16. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js.map +1 -1
  17. package/cjs/react-server-dom-webpack-node-register.js.map +1 -1
  18. package/cjs/react-server-dom-webpack-server.browser.development.js +349 -56
  19. package/cjs/react-server-dom-webpack-server.browser.production.js +93 -36
  20. package/cjs/react-server-dom-webpack-server.browser.production.min.js +68 -68
  21. package/cjs/react-server-dom-webpack-server.browser.production.min.js.map +1 -1
  22. package/cjs/react-server-dom-webpack-server.edge.development.js +349 -56
  23. package/cjs/react-server-dom-webpack-server.edge.production.js +93 -36
  24. package/cjs/react-server-dom-webpack-server.edge.production.min.js +58 -58
  25. package/cjs/react-server-dom-webpack-server.edge.production.min.js.map +1 -1
  26. package/cjs/react-server-dom-webpack-server.node.development.js +349 -56
  27. package/cjs/react-server-dom-webpack-server.node.production.js +93 -36
  28. package/cjs/react-server-dom-webpack-server.node.production.min.js +56 -56
  29. package/cjs/react-server-dom-webpack-server.node.production.min.js.map +1 -1
  30. package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +349 -56
  31. package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +93 -36
  32. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +53 -53
  33. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js.map +1 -1
  34. package/package.json +3 -3
  35. package/umd/react-server-dom-webpack-client.browser.development.js +136 -97
  36. package/umd/react-server-dom-webpack-client.browser.production.min.js +25 -25
  37. package/umd/react-server-dom-webpack-server.browser.development.js +349 -56
  38. package/umd/react-server-dom-webpack-server.browser.production.min.js +54 -54
@@ -472,18 +472,45 @@ function getServerReferenceBoundArguments(config, serverReference) {
472
472
  return serverReference.$$bound;
473
473
  }
474
474
 
475
- const ReactDOMSharedInternals = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
476
-
477
- const ReactDOMCurrentDispatcher = ReactDOMSharedInternals.ReactDOMCurrentDispatcher;
478
- const previousDispatcher = ReactDOMCurrentDispatcher.current;
479
- ReactDOMCurrentDispatcher.current = {
480
- prefetchDNS,
481
- preconnect,
482
- preload,
483
- preloadModule: preloadModule$1,
484
- preinitStyle,
485
- preinitScript,
486
- preinitModuleScript
475
+ const ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
476
+
477
+ const previousDispatcher = ReactDOMSharedInternals.d;
478
+ /* ReactDOMCurrentDispatcher */
479
+
480
+ ReactDOMSharedInternals.d
481
+ /* ReactDOMCurrentDispatcher */
482
+ = {
483
+ f
484
+ /* flushSyncWork */
485
+ : previousDispatcher.f
486
+ /* flushSyncWork */
487
+ ,
488
+ r
489
+ /* requestFormReset */
490
+ : previousDispatcher.r
491
+ /* requestFormReset */
492
+ ,
493
+ D
494
+ /* prefetchDNS */
495
+ : prefetchDNS,
496
+ C
497
+ /* preconnect */
498
+ : preconnect,
499
+ L
500
+ /* preload */
501
+ : preload,
502
+ m
503
+ /* preloadModule */
504
+ : preloadModule$1,
505
+ X
506
+ /* preinitScript */
507
+ : preinitScript,
508
+ S
509
+ /* preinitStyle */
510
+ : preinitStyle,
511
+ M
512
+ /* preinitModuleScript */
513
+ : preinitModuleScript
487
514
  };
488
515
 
489
516
  function prefetchDNS(href) {
@@ -502,7 +529,9 @@ function prefetchDNS(href) {
502
529
  hints.add(key);
503
530
  emitHint(request, 'D', href);
504
531
  } else {
505
- previousDispatcher.prefetchDNS(href);
532
+ previousDispatcher.D(
533
+ /* prefetchDNS */
534
+ href);
506
535
  }
507
536
  }
508
537
  }
@@ -528,7 +557,9 @@ function preconnect(href, crossOrigin) {
528
557
  emitHint(request, 'C', href);
529
558
  }
530
559
  } else {
531
- previousDispatcher.preconnect(href, crossOrigin);
560
+ previousDispatcher.C(
561
+ /* preconnect */
562
+ href, crossOrigin);
532
563
  }
533
564
  }
534
565
  }
@@ -561,7 +592,9 @@ function preload(href, as, options) {
561
592
  emitHint(request, 'L', [href, as]);
562
593
  }
563
594
  } else {
564
- previousDispatcher.preload(href, as, options);
595
+ previousDispatcher.L(
596
+ /* preload */
597
+ href, as, options);
565
598
  }
566
599
  }
567
600
  }
@@ -588,7 +621,9 @@ function preloadModule$1(href, options) {
588
621
  return emitHint(request, 'm', href);
589
622
  }
590
623
  } else {
591
- previousDispatcher.preloadModule(href, options);
624
+ previousDispatcher.m(
625
+ /* preloadModule */
626
+ href, options);
592
627
  }
593
628
  }
594
629
  }
@@ -617,7 +652,9 @@ function preinitStyle(href, precedence, options) {
617
652
  return emitHint(request, 'S', href);
618
653
  }
619
654
  } else {
620
- previousDispatcher.preinitStyle(href, precedence, options);
655
+ previousDispatcher.S(
656
+ /* preinitStyle */
657
+ href, precedence, options);
621
658
  }
622
659
  }
623
660
  }
@@ -644,7 +681,9 @@ function preinitScript(src, options) {
644
681
  return emitHint(request, 'X', src);
645
682
  }
646
683
  } else {
647
- previousDispatcher.preinitScript(src, options);
684
+ previousDispatcher.X(
685
+ /* preinitScript */
686
+ src, options);
648
687
  }
649
688
  }
650
689
  }
@@ -671,7 +710,9 @@ function preinitModuleScript(src, options) {
671
710
  return emitHint(request, 'M', src);
672
711
  }
673
712
  } else {
674
- previousDispatcher.preinitModuleScript(src, options);
713
+ previousDispatcher.M(
714
+ /* preinitModuleScript */
715
+ src, options);
675
716
  }
676
717
  }
677
718
  } // Flight normally encodes undefined as a special character however for directive option
@@ -950,7 +991,7 @@ function prepareToUseHooksForRequest(request) {
950
991
  function resetHooksForRequest() {
951
992
  currentRequest$1 = null;
952
993
  }
953
- function prepareToUseHooksForComponent(prevThenableState) {
994
+ function prepareToUseHooksForComponent(prevThenableState, componentDebugInfo) {
954
995
  thenableIndexCounter = 0;
955
996
  thenableState = prevThenableState;
956
997
  }
@@ -959,6 +1000,7 @@ function getThenableStateAfterSuspending() {
959
1000
  // which is not really supported anymore, it will be empty. We use the empty set as a
960
1001
  // marker to know if this was a replay of the same component or first attempt.
961
1002
  const state = thenableState || createThenableState();
1003
+
962
1004
  thenableState = null;
963
1005
  return state;
964
1006
  }
@@ -1290,15 +1332,15 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
1290
1332
  return '\n ' + str;
1291
1333
  }
1292
1334
 
1293
- const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1294
-
1295
- const ReactSharedServerInternals = // $FlowFixMe: It's defined in the one we resolve to.
1296
- React.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1335
+ const ReactSharedInternalsServer = // $FlowFixMe: It's defined in the one we resolve to.
1336
+ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
1297
1337
 
1298
- if (!ReactSharedServerInternals) {
1338
+ if (!ReactSharedInternalsServer) {
1299
1339
  throw new Error('The "react" package in this environment is not configured correctly. ' + 'The "react-server" condition must be enabled in any environment that ' + 'runs React Server Components.');
1300
1340
  }
1301
1341
 
1342
+ const ReactSharedInternals = ReactSharedInternalsServer;
1343
+
1302
1344
  const ObjectPrototype = Object.prototype;
1303
1345
  const stringify = JSON.stringify; // Serializable values
1304
1346
  // Thenable<ReactClientValue>
@@ -1311,8 +1353,6 @@ const ERRORED$1 = 4; // object reference status
1311
1353
 
1312
1354
  const SEEN_BUT_NOT_YET_OUTLINED = -1;
1313
1355
  const NEVER_OUTLINED = -2;
1314
- const ReactCurrentCache = ReactSharedServerInternals.ReactCurrentCache;
1315
- const ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
1316
1356
 
1317
1357
  function defaultErrorHandler(error) {
1318
1358
  console['error'](error); // Don't transform to our wrapper
@@ -1325,11 +1365,11 @@ const OPEN = 0;
1325
1365
  const CLOSING = 1;
1326
1366
  const CLOSED = 2;
1327
1367
  function createRequest(model, bundlerConfig, onError, identifierPrefix, onPostpone, environmentName) {
1328
- if (ReactCurrentCache.current !== null && ReactCurrentCache.current !== DefaultCacheDispatcher) {
1368
+ if (ReactSharedInternals.C !== null && ReactSharedInternals.C !== DefaultCacheDispatcher) {
1329
1369
  throw new Error('Currently React only supports one RSC renderer at a time.');
1330
1370
  }
1331
1371
 
1332
- ReactCurrentCache.current = DefaultCacheDispatcher;
1372
+ ReactSharedInternals.C = DefaultCacheDispatcher;
1333
1373
  const abortSet = new Set();
1334
1374
  const pingedTasks = [];
1335
1375
  const cleanupQueue = [];
@@ -1518,7 +1558,7 @@ function createLazyWrapperAroundWakeable(wakeable) {
1518
1558
  return lazyType;
1519
1559
  }
1520
1560
 
1521
- function renderFunctionComponent(request, task, key, Component, props) {
1561
+ function renderFunctionComponent(request, task, key, Component, props, owner) {
1522
1562
  // Reset the task's thenable state before continuing, so that if a later
1523
1563
  // component suspends we can reuse the same task object. If the same
1524
1564
  // component suspends again, the thenable state will be restored.
@@ -1528,7 +1568,11 @@ function renderFunctionComponent(request, task, key, Component, props) {
1528
1568
  prepareToUseHooksForComponent(prevThenableState); // The secondArg is always undefined in Server Components since refs error early.
1529
1569
 
1530
1570
  const secondArg = undefined;
1531
- let result = Component(props, secondArg);
1571
+ let result;
1572
+
1573
+ {
1574
+ result = Component(props, secondArg);
1575
+ }
1532
1576
 
1533
1577
  if (typeof result === 'object' && result !== null && typeof result.then === 'function') {
1534
1578
  // When the return value is in children position we can resolve it immediately,
@@ -1602,7 +1646,8 @@ function renderFragment(request, task, children) {
1602
1646
  return children;
1603
1647
  }
1604
1648
 
1605
- function renderClientElement(task, type, key, props) {
1649
+ function renderClientElement(task, type, key, props, owner) // DEV-only
1650
+ {
1606
1651
  // the keys of any Server Components which are not serialized.
1607
1652
 
1608
1653
 
@@ -1635,7 +1680,8 @@ function renderClientElement(task, type, key, props) {
1635
1680
 
1636
1681
  let debugID = null;
1637
1682
 
1638
- function renderElement(request, task, type, key, ref, props) {
1683
+ function renderElement(request, task, type, key, ref, props, owner) // DEV only
1684
+ {
1639
1685
  if (ref !== null && ref !== undefined) {
1640
1686
  // When the ref moves to the regular props object this will implicitly
1641
1687
  // throw for functions. We could probably relax it to a DEV warning for other
@@ -1916,6 +1962,12 @@ function serializeMap(request, map) {
1916
1962
  return '$Q' + id.toString(16);
1917
1963
  }
1918
1964
 
1965
+ function serializeFormData(request, formData) {
1966
+ const entries = Array.from(formData.entries());
1967
+ const id = outlineModel(request, entries);
1968
+ return '$K' + id.toString(16);
1969
+ }
1970
+
1919
1971
  function serializeSet(request, set) {
1920
1972
  const entries = Array.from(set);
1921
1973
 
@@ -2152,6 +2204,11 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
2152
2204
 
2153
2205
  if (value instanceof Set) {
2154
2206
  return serializeSet(request, value);
2207
+ } // TODO: FormData is not available in old Node. Remove the typeof later.
2208
+
2209
+
2210
+ if (typeof FormData === 'function' && value instanceof FormData) {
2211
+ return serializeFormData(request, value);
2155
2212
  }
2156
2213
 
2157
2214
  const iteratorFn = getIteratorFn(value);
@@ -2435,8 +2492,8 @@ function retryTask(request, task) {
2435
2492
  }
2436
2493
 
2437
2494
  function performWork(request) {
2438
- const prevDispatcher = ReactCurrentDispatcher.current;
2439
- ReactCurrentDispatcher.current = HooksDispatcher;
2495
+ const prevDispatcher = ReactSharedInternals.H;
2496
+ ReactSharedInternals.H = HooksDispatcher;
2440
2497
  const prevRequest = currentRequest;
2441
2498
  currentRequest = request;
2442
2499
  prepareToUseHooksForRequest(request);
@@ -2457,7 +2514,7 @@ function performWork(request) {
2457
2514
  logRecoverableError(request, error);
2458
2515
  fatalError(request, error);
2459
2516
  } finally {
2460
- ReactCurrentDispatcher.current = prevDispatcher;
2517
+ ReactSharedInternals.H = prevDispatcher;
2461
2518
  resetHooksForRequest();
2462
2519
  currentRequest = prevRequest;
2463
2520
  }
@@ -7,7 +7,7 @@
7
7
  This source code is licensed under the MIT license found in the
8
8
  LICENSE file in the root directory of this source tree.
9
9
  */
10
- 'use strict';var aa=require("util");require("crypto");var ca=require("async_hooks"),da=require("react-dom"),ea=require("react"),l=null,m=0,q=!0;function r(a,b){a=a.write(b);q=q&&a}
10
+ 'use strict';var aa=require("util");require("crypto");var ba=require("async_hooks"),da=require("react-dom"),ea=require("react"),l=null,m=0,q=!0;function r(a,b){a=a.write(b);q=q&&a}
11
11
  function u(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,fa.encode(b));else{var c=l;0<m&&(c=l.subarray(m));c=fa.encodeInto(b,c);var d=c.read;m+=c.written;d<b.length&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=fa.encodeInto(b.slice(d),l).written);2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,b)):(c=l.length-m,c<b.byteLength&&
12
12
  (0===c?r(a,l):(l.set(b.subarray(0,c),m),m+=c,r(a,l),b=b.subarray(c)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)));return q}var fa=new aa.TextEncoder,v=Symbol.for("react.client.reference"),w=Symbol.for("react.server.reference");function x(a,b,c){return Object.defineProperties(a,{$$typeof:{value:v},$$id:{value:b},$$async:{value:c}})}var ha=Function.prototype.bind,ia=Array.prototype.slice;
13
13
  function ja(){var a=ha.apply(this,arguments);if(this.$$typeof===w){var b=ia.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:ja}})}return a}
@@ -16,15 +16,15 @@ var ka=Promise.prototype,la={get:function(a,b){switch(b){case "$$typeof":return
16
16
  function ma(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "__esModule":var c=a.$$id;a.default=x(function(){throw Error("Attempted to call the default export of "+c+" from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");
17
17
  },a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var d=x({},a.$$id,!0),e=new Proxy(d,na);a.status="fulfilled";a.value=e;return a.then=x(function(f){return Promise.resolve(f(e))},a.$$id+"#then",!1)}if("symbol"===typeof b)throw Error("Cannot read Symbol exports. Only named exports are supported on a client module imported on the server.");d=a[b];d||(d=x(function(){throw Error("Attempted to call "+String(b)+"() from the server but "+String(b)+" is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");
18
18
  },a.$$id+"#"+b,a.$$async),Object.defineProperty(d,"name",{value:b}),d=a[b]=new Proxy(d,la));return d}
19
- var na={get:function(a,b){return ma(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:ma(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return ka},set:function(){throw Error("Cannot assign to a client module from a server module.");}},oa=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDOMCurrentDispatcher,y=oa.current;
20
- oa.current={prefetchDNS:pa,preconnect:qa,preload:ra,preloadModule:sa,preinitStyle:ta,preinitScript:ua,preinitModuleScript:va};function pa(a){if("string"===typeof a&&a){var b=z();if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),A(b,"D",a))}else y.prefetchDNS(a)}}function qa(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?A(c,"C",[a,b]):A(c,"C",a))}else y.preconnect(a,b)}}
21
- function ra(a,b,c){if("string"===typeof a){var d=z();if(d){var e=d.hints,f="L";if("image"===b&&c){var g=c.imageSrcSet,k=c.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(c=B(c))?A(d,"L",[a,b,c]):A(d,"L",[a,b]))}else y.preload(a,b,c)}}
22
- function sa(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="m|"+a;if(d.has(e))return;d.add(e);return(b=B(b))?A(c,"m",[a,b]):A(c,"m",a)}y.preloadModule(a,b)}}function ta(a,b,c){if("string"===typeof a){var d=z();if(d){var e=d.hints,f="S|"+a;if(e.has(f))return;e.add(f);return(c=B(c))?A(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?A(d,"S",[a,b]):A(d,"S",a)}y.preinitStyle(a,b,c)}}
23
- function ua(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="X|"+a;if(d.has(e))return;d.add(e);return(b=B(b))?A(c,"X",[a,b]):A(c,"X",a)}y.preinitScript(a,b)}}function va(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="M|"+a;if(d.has(e))return;d.add(e);return(b=B(b))?A(c,"M",[a,b]):A(c,"M",a)}y.preinitModuleScript(a,b)}}function B(a){if(null==a)return null;var b=!1,c={},d;for(d in a)null!=a[d]&&(b=!0,c[d]=a[d]);return b?c:null}
24
- var wa=new ca.AsyncLocalStorage,xa=Symbol.for("react.temporary.reference"),ya={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return;case "displayName":return;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "Provider":throw Error("Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider.");
19
+ var na={get:function(a,b){return ma(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:ma(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return ka},set:function(){throw Error("Cannot assign to a client module from a server module.");}},oa=da.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,y=oa.d;oa.d={f:y.f,r:y.r,D:pa,C:qa,L:ra,m:sa,X:ta,S:ua,M:va};
20
+ function pa(a){if("string"===typeof a&&a){var b=z();if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),A(b,"D",a))}else y.D(a)}}function qa(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?A(c,"C",[a,b]):A(c,"C",a))}else y.C(a,b)}}
21
+ function ra(a,b,c){if("string"===typeof a){var d=z();if(d){var e=d.hints,f="L";if("image"===b&&c){var g=c.imageSrcSet,k=c.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(c=B(c))?A(d,"L",[a,b,c]):A(d,"L",[a,b]))}else y.L(a,b,c)}}
22
+ function sa(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="m|"+a;if(d.has(e))return;d.add(e);return(b=B(b))?A(c,"m",[a,b]):A(c,"m",a)}y.m(a,b)}}function ua(a,b,c){if("string"===typeof a){var d=z();if(d){var e=d.hints,f="S|"+a;if(e.has(f))return;e.add(f);return(c=B(c))?A(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?A(d,"S",[a,b]):A(d,"S",a)}y.S(a,b,c)}}
23
+ function ta(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="X|"+a;if(d.has(e))return;d.add(e);return(b=B(b))?A(c,"X",[a,b]):A(c,"X",a)}y.X(a,b)}}function va(a,b){if("string"===typeof a){var c=z();if(c){var d=c.hints,e="M|"+a;if(d.has(e))return;d.add(e);return(b=B(b))?A(c,"M",[a,b]):A(c,"M",a)}y.M(a,b)}}function B(a){if(null==a)return null;var b=!1,c={},d;for(d in a)null!=a[d]&&(b=!0,c[d]=a[d]);return b?c:null}
24
+ var wa=new ba.AsyncLocalStorage,xa=Symbol.for("react.temporary.reference"),ya={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return;case "displayName":return;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "Provider":throw Error("Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider.");
25
25
  }throw Error("Cannot access "+String(b)+" on the server. You cannot dot into a temporary client reference from a server component. You can only pass the value through to the client.");},set:function(){throw Error("Cannot assign to a temporary client reference from a server module.");}};
26
26
  function za(a){a=Object.defineProperties(function(){throw Error("Attempted to call a temporary Client Reference from the server but it is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");},{$$typeof:{value:xa},$$id:{value:a}});return new Proxy(a,ya)}
27
- var C=Symbol.for("react.element"),Aa=Symbol.for("react.fragment"),Ba=Symbol.for("react.context"),Ca=Symbol.for("react.forward_ref"),Da=Symbol.for("react.suspense"),Ea=Symbol.for("react.suspense_list"),Fa=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),Ga=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Ha=Symbol.iterator,Ia=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`");
27
+ var C=Symbol.for("react.element"),Aa=Symbol.for("react.fragment"),Ba=Symbol.for("react.context"),Ca=Symbol.for("react.forward_ref"),Da=Symbol.for("react.suspense"),Ea=Symbol.for("react.suspense_list"),Fa=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Ga=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Ha=Symbol.iterator,Ia=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`");
28
28
  function Ja(){}function Ka(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Ja,Ja),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}F=b;throw Ia;}}var F=null;
29
29
  function La(){if(null===F)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=F;F=null;return a}var G=null,Ma=0,H=null;function Na(){var a=H||[];H=null;return a}
30
30
  var Sa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:I,useTransition:I,readContext:Oa,useContext:Oa,useReducer:I,useRef:I,useState:I,useInsertionEffect:I,useLayoutEffect:I,useImperativeHandle:I,useEffect:I,useId:Pa,useSyncExternalStore:I,useCacheRefresh:function(){return Qa},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Ga;return b},use:Ra};
@@ -32,53 +32,53 @@ function I(){throw Error("This Hook is not supported in Server Components.");}fu
32
32
  function Ra(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ma;Ma+=1;null===H&&(H=[]);return Ka(H,a,b)}a.$$typeof===Ba&&Oa()}if(a.$$typeof===v){if(null!=a.value&&a.value.$$typeof===Ba)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}
33
33
  var Ta={getCacheForType:function(a){var b=(b=z())?b.cache:new Map;var c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Ua=Array.isArray,Va=Object.getPrototypeOf;function Wa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
34
34
  function Xa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ua(a))return"[...]";if(null!==a&&a.$$typeof===Ya)return"client";a=Wa(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Ya?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
35
- function J(a){if("string"===typeof a)return a;switch(a){case Da:return"Suspense";case Ea:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ca:return J(a.render);case Fa:return J(a.type);case E:var b=a._payload;a=a._init;try{return J(a(b))}catch(c){}}return""}var Ya=Symbol.for("react.client.reference");
35
+ function J(a){if("string"===typeof a)return a;switch(a){case Da:return"Suspense";case Ea:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ca:return J(a.render);case Fa:return J(a.type);case D:var b=a._payload;a=a._init;try{return J(a(b))}catch(c){}}return""}var Ya=Symbol.for("react.client.reference");
36
36
  function K(a,b){var c=Wa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Ua(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?K(g):Xa(g);""+f===b?(c=e.length,d=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===C)e="<"+J(a.type)+"/>";else{if(a.$$typeof===Ya)return"client";e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var k=f[g],h=JSON.stringify(k);e+=('"'+k+'"'===h?k:h)+": ";h=a[k];h=
37
- "object"===typeof h&&null!==h?K(h):Xa(h);k===b?(c=e.length,d=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var Za=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$a=ea.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
38
- if(!$a)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');var ab=Object.prototype,L=JSON.stringify,bb=$a.ReactCurrentCache,cb=Za.ReactCurrentDispatcher;function db(a){console.error(a)}function eb(){}
39
- function fb(a,b,c,d,e){if(null!==bb.current&&bb.current!==Ta)throw Error("Currently React only supports one RSC renderer at a time.");bb.current=Ta;var f=new Set,g=[],k=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,
40
- writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?db:c,onPostpone:void 0===e?eb:e};a=M(b,a,null,!1,f);g.push(a);return b}var N=null;function z(){if(N)return N;var a=wa.getStore();return a?a:null}
41
- function gb(a,b,c){var d=M(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,hb(a,d),d.id;case "rejected":return b=O(a,c.reason),P(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;hb(a,d)},function(e){d.status=4;e=O(a,e);P(a,d.id,e);a.abortableTasks.delete(d);
42
- null!==a.destination&&Q(a,a.destination)});return d.id}function A(a,b,c){c=L(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;a.completedHintChunks.push(b+c+"\n");ib(a)}function jb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
43
- function kb(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:E,_payload:a,_init:jb}}
44
- function lb(a,b,c,d,e){var f=b.thenableState;b.thenableState=null;Ma=0;H=f;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=kb(d)}e=b.keyPath;f=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=R(a,b,S,"",d);b.keyPath=e;b.implicitSlot=f;return a}function mb(a,b,c){return null!==b.keyPath?(a=[C,Aa,b.keyPath,{children:c}],b.implicitSlot?[a]:a):c}
45
- function nb(a,b,c,d){var e=a.keyPath;null===c?c=e:null!==e&&(c=e+","+c);b=[C,b,c,d];return a.implicitSlot&&null!==c?[b]:b}
46
- function ob(a,b,c,d,e,f){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===v||c.$$typeof===xa?nb(b,c,d,f):lb(a,b,d,c,f);if("string"===typeof c)return nb(b,c,d,f);if("symbol"===typeof c)return c===Aa&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=R(a,b,S,"",f.children),b.implicitSlot=d,a):nb(b,c,d,f);if(null!=c&&"object"===typeof c){if(c.$$typeof===v)return nb(b,c,d,f);
47
- switch(c.$$typeof){case E:var g=c._init;c=g(c._payload);return ob(a,b,c,d,e,f);case Ca:return lb(a,b,d,c.render,f);case Fa:return ob(a,b,c.type,d,e,f)}}throw Error("Unsupported Server Component type: "+Xa(c));}function hb(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return pb(a)}))}
48
- function M(a,b,c,d,e){a.pendingChunks++;var f=a.nextChunkId++;"object"!==typeof b||null===b||null!==c||d||a.writtenObjects.set(b,f);var g={id:f,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return hb(a,g)},toJSON:function(k,h){var p=g.keyPath,t=g.implicitSlot;try{var n=R(a,g,this,k,h)}catch(ba){if(k=ba===Ia?La():ba,h=g.model,h="object"===typeof h&&null!==h&&(h.$$typeof===C||h.$$typeof===E),"object"===typeof k&&null!==k&&"function"===typeof k.then){n=M(a,g.model,g.keyPath,g.implicitSlot,
49
- a.abortableTasks);var D=n.ping;k.then(D,D);n.thenableState=Na();g.keyPath=p;g.implicitSlot=t;n=h?"$L"+n.id.toString(16):T(n.id)}else if(g.keyPath=p,g.implicitSlot=t,h)a.pendingChunks++,p=a.nextChunkId++,t=O(a,k),P(a,p,t),n="$L"+p.toString(16);else throw k;}return n},thenableState:null};e.add(g);return g}function T(a){return"$"+a.toString(16)}function qb(a,b,c){a=L(c);return b.toString(16)+":"+a+"\n"}
50
- function rb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===C&&"1"===c?"$L"+g.toString(16):T(g);try{var k=a.bundlerConfig,h=d.$$id;g="";var p=k[h];if(p)g=p.name;else{var t=h.lastIndexOf("#");-1!==t&&(g=h.slice(t+1),p=k[h.slice(0,t)]);if(!p)throw Error('Could not find the module "'+h+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var n=!0===d.$$async?[p.id,p.chunks,g,1]:[p.id,p.chunks,
51
- g];a.pendingChunks++;var D=a.nextChunkId++,ba=L(n),Nb=D.toString(16)+":I"+ba+"\n";a.completedImportChunks.push(Nb);f.set(e,D);return b[0]===C&&"1"===c?"$L"+D.toString(16):T(D)}catch(Ob){return a.pendingChunks++,b=a.nextChunkId++,c=O(a,Ob),P(a,b,c),T(b)}}function U(a,b){b=M(a,b,null,!1,a.abortableTasks);sb(a,b);return b.id}var V=!1;
52
- function R(a,b,c,d,e){b.model=e;if(e===C)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case C:c=a.writtenObjects;d=c.get(e);if(void 0!==d){if(null===b.keyPath&&!b.implicitSlot)if(V===e)V=null;else return-1===d?(a=U(a,e),T(a)):T(d)}else c.set(e,-1),c.set(e.props,-2);c=e.props;d=c.ref;return ob(a,b,e.type,e.key,void 0!==d?d:null,c);case E:return b.thenableState=null,c=e._init,e=c(e._payload),R(a,b,S,"",e)}if(e.$$typeof===v)return rb(a,c,d,e);c=a.writtenObjects;d=c.get(e);
53
- if("function"===typeof e.then){if(void 0!==d){if(null!==b.keyPath||b.implicitSlot)return"$@"+gb(a,b,e).toString(16);if(V===e)V=null;else return"$@"+d.toString(16)}a=gb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(V===e)V=null;else{if(-1===d)return a=U(a,e),T(a);if(-2!==d)return T(d)}else c.set(e,-1);if(Ua(e))return mb(a,b,e);if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+
54
- U(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$W"+U(a,e).toString(16)}null===e||"object"!==typeof e?c=null:(c=Ha&&e[Ha]||e["@@iterator"],c="function"===typeof c?c:null);if(c)return mb(a,b,Array.from(e));a=Va(e);if(a!==ab&&(null===a||null!==Va(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");
37
+ "object"===typeof h&&null!==h?K(h):Xa(h);k===b?(c=e.length,d=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var L=ea.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;if(!L)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');
38
+ var Za=Object.prototype,M=JSON.stringify;function $a(a){console.error(a)}function ab(){}
39
+ function bb(a,b,c,d,e){if(null!==L.C&&L.C!==Ta)throw Error("Currently React only supports one RSC renderer at a time.");L.C=Ta;var f=new Set,g=[],k=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,
40
+ writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?$a:c,onPostpone:void 0===e?ab:e};a=N(b,a,null,!1,f);g.push(a);return b}var O=null;function z(){if(O)return O;var a=wa.getStore();return a?a:null}
41
+ function cb(a,b,c){var d=N(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,db(a,d),d.id;case "rejected":return b=P(a,c.reason),Q(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;db(a,d)},function(e){d.status=4;e=P(a,e);Q(a,d.id,e);a.abortableTasks.delete(d);
42
+ null!==a.destination&&R(a,a.destination)});return d.id}function A(a,b,c){c=M(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;a.completedHintChunks.push(b+c+"\n");eb(a)}function fb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
43
+ function gb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:D,_payload:a,_init:fb}}
44
+ function hb(a,b,c,d,e){var f=b.thenableState;b.thenableState=null;Ma=0;H=f;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=gb(d)}e=b.keyPath;f=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=S(a,b,ib,"",d);b.keyPath=e;b.implicitSlot=f;return a}function jb(a,b,c){return null!==b.keyPath?(a=[C,Aa,b.keyPath,{children:c}],b.implicitSlot?[a]:a):c}
45
+ function kb(a,b,c,d){var e=a.keyPath;null===c?c=e:null!==e&&(c=e+","+c);b=[C,b,c,d];return a.implicitSlot&&null!==c?[b]:b}
46
+ function lb(a,b,c,d,e,f){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===v||c.$$typeof===xa?kb(b,c,d,f):hb(a,b,d,c,f);if("string"===typeof c)return kb(b,c,d,f);if("symbol"===typeof c)return c===Aa&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=S(a,b,ib,"",f.children),b.implicitSlot=d,a):kb(b,c,d,f);if(null!=c&&"object"===typeof c){if(c.$$typeof===v)return kb(b,c,d,f);
47
+ switch(c.$$typeof){case D:var g=c._init;c=g(c._payload);return lb(a,b,c,d,e,f);case Ca:return hb(a,b,d,c.render,f);case Fa:return lb(a,b,c.type,d,e,f)}}throw Error("Unsupported Server Component type: "+Xa(c));}function db(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return mb(a)}))}
48
+ function N(a,b,c,d,e){a.pendingChunks++;var f=a.nextChunkId++;"object"!==typeof b||null===b||null!==c||d||a.writtenObjects.set(b,f);var g={id:f,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return db(a,g)},toJSON:function(k,h){var p=g.keyPath,t=g.implicitSlot;try{var n=S(a,g,this,k,h)}catch(ca){if(k=ca===Ia?La():ca,h=g.model,h="object"===typeof h&&null!==h&&(h.$$typeof===C||h.$$typeof===D),"object"===typeof k&&null!==k&&"function"===typeof k.then){n=N(a,g.model,g.keyPath,g.implicitSlot,
49
+ a.abortableTasks);var E=n.ping;k.then(E,E);n.thenableState=Na();g.keyPath=p;g.implicitSlot=t;n=h?"$L"+n.id.toString(16):T(n.id)}else if(g.keyPath=p,g.implicitSlot=t,h)a.pendingChunks++,p=a.nextChunkId++,t=P(a,k),Q(a,p,t),n="$L"+p.toString(16);else throw k;}return n},thenableState:null};e.add(g);return g}function T(a){return"$"+a.toString(16)}function nb(a,b,c){a=M(c);return b.toString(16)+":"+a+"\n"}
50
+ function ob(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===C&&"1"===c?"$L"+g.toString(16):T(g);try{var k=a.bundlerConfig,h=d.$$id;g="";var p=k[h];if(p)g=p.name;else{var t=h.lastIndexOf("#");-1!==t&&(g=h.slice(t+1),p=k[h.slice(0,t)]);if(!p)throw Error('Could not find the module "'+h+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var n=!0===d.$$async?[p.id,p.chunks,g,1]:[p.id,p.chunks,
51
+ g];a.pendingChunks++;var E=a.nextChunkId++,ca=M(n),Kb=E.toString(16)+":I"+ca+"\n";a.completedImportChunks.push(Kb);f.set(e,E);return b[0]===C&&"1"===c?"$L"+E.toString(16):T(E)}catch(Lb){return a.pendingChunks++,b=a.nextChunkId++,c=P(a,Lb),Q(a,b,c),T(b)}}function U(a,b){b=N(a,b,null,!1,a.abortableTasks);pb(a,b);return b.id}var V=!1;
52
+ function S(a,b,c,d,e){b.model=e;if(e===C)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case C:c=a.writtenObjects;d=c.get(e);if(void 0!==d){if(null===b.keyPath&&!b.implicitSlot)if(V===e)V=null;else return-1===d?(a=U(a,e),T(a)):T(d)}else c.set(e,-1),c.set(e.props,-2);c=e.props;d=c.ref;return lb(a,b,e.type,e.key,void 0!==d?d:null,c);case D:return b.thenableState=null,c=e._init,e=c(e._payload),S(a,b,ib,"",e)}if(e.$$typeof===v)return ob(a,c,d,e);c=a.writtenObjects;d=c.get(e);
53
+ if("function"===typeof e.then){if(void 0!==d){if(null!==b.keyPath||b.implicitSlot)return"$@"+cb(a,b,e).toString(16);if(V===e)V=null;else return"$@"+d.toString(16)}a=cb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(V===e)V=null;else{if(-1===d)return a=U(a,e),T(a);if(-2!==d)return T(d)}else c.set(e,-1);if(Ua(e))return jb(a,b,e);if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+
54
+ U(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$W"+U(a,e).toString(16)}if("function"===typeof FormData&&e instanceof FormData)return e=Array.from(e.entries()),"$K"+U(a,e).toString(16);null===e||"object"!==typeof e?c=null:(c=Ha&&e[Ha]||e["@@iterator"],c="function"===typeof c?c:null);if(c)return jb(a,b,Array.from(e));a=Va(e);if(a!==Za&&(null===a||null!==Va(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");
55
55
  return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=2,b=a.nextChunkId++,c="string"===typeof e?Buffer.byteLength(e,"utf8"):e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",a.completedRegularChunks.push(c,e),T(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===
56
- typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===v)return rb(a,c,d,e);if(e.$$typeof===w)return b=a.writtenServerReferences,c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=U(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(e.$$typeof===xa)return"$T"+e.$$id;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+K(c,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");
56
+ typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===v)return ob(a,c,d,e);if(e.$$typeof===w)return b=a.writtenServerReferences,c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=U(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(e.$$typeof===xa)return"$T"+e.$$id;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+K(c,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");
57
57
  throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it.'+K(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var f=b.get(e);if(void 0!==f)return T(f);f=e.description;if(Symbol.for(f)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+
58
- K(c,d));a.pendingChunks++;c=a.nextChunkId++;d=qb(a,c,"$S"+f);a.completedImportChunks.push(d);b.set(e,c);return T(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+" is not supported in Client Component props."+K(c,d));}
59
- function O(a,b){var c=N;N=null;try{var d=wa.run(void 0,a.onError,b)}finally{N=c}if(null!=d&&"string"!==typeof d)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d||""}function tb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
60
- function P(a,b,c){c={digest:c};b=b.toString(16)+":E"+L(c)+"\n";a.completedErrorChunks.push(b)}var S={};
61
- function sb(a,b){if(0===b.status)try{V=b.model;var c=R(a,b,S,"",b.model);V=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?L(c,b.toJSON):L(c),e=b.id.toString(16)+":"+d+"\n";a.completedRegularChunks.push(e);a.abortableTasks.delete(b);b.status=1}catch(h){var f=h===Ia?La():h;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var g=b.ping;f.then(g,g);b.thenableState=Na()}else{a.abortableTasks.delete(b);b.status=4;var k=O(a,f);P(a,b.id,k)}}finally{}}
62
- function pb(a){var b=cb.current;cb.current=Sa;var c=N;G=N=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)sb(a,d[e]);null!==a.destination&&Q(a,a.destination)}catch(f){O(a,f),tb(a,f)}finally{cb.current=b,G=null,N=c}}
63
- function Q(a,b){l=new Uint8Array(2048);m=0;q=!0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)if(a.pendingChunks--,!u(b,c[d])){a.destination=null;d++;break}c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)if(!u(b,e[d])){a.destination=null;d++;break}e.splice(0,d);var f=a.completedRegularChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,!u(b,f[d])){a.destination=null;d++;break}f.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)if(a.pendingChunks--,!u(b,g[d])){a.destination=
64
- null;d++;break}g.splice(0,d)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function ub(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return wa.run(a,pb,a)})}function ib(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return Q(a,b)})}}
65
- function vb(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{Q(a,b)}catch(c){O(a,c),tb(a,c)}}}
66
- function wb(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,f=O(a,e);P(a,d,f,e);c.forEach(function(g){g.status=3;var k=T(d);g=qb(a,g.id,k);a.completedErrorChunks.push(g)});c.clear()}null!==a.destination&&Q(a,a.destination)}catch(g){O(a,g),tb(a,g)}}function xb(a,b){var c=b.lastIndexOf("#");a=b.slice(0,c);b=b.slice(c+1);return{specifier:a,name:b}}var yb=new Map;
67
- function zb(a){var b=yb.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var c=import(a.specifier);a.async&&(c=c.then(function(d){return d.default}));c.then(function(d){var e=c;e.status="fulfilled";e.value=d},function(d){var e=c;e.status="rejected";e.reason=d});yb.set(a.specifier,c);return c}function W(a){var b=yb.get(a.specifier);if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a.name?b:""===a.name?b.default:b[a.name]}
68
- function Ab(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}Ab.prototype=Object.create(Promise.prototype);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)}};
69
- function Cb(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function Db(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&Cb(c,b)}}function Eb(a,b,c,d,e,f){var g=xb(a._bundlerConfig,b);a=zb(g);if(c)c=Promise.all([c,a]).then(function(k){k=k[0];var h=W(g);return h.bind.apply(h,[null].concat(k))});else if(a)c=Promise.resolve(a).then(function(){return W(g)});else return W(g);c.then(Fb(d,e,f),Gb(d));return null}var X=null,Y=null;
70
- function Bb(a){var b=X,c=Y;X=a;Y=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=c}}function Hb(a,b){a._chunks.forEach(function(c){"pending"===c.status&&Db(c,b)})}
71
- function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new Ab("resolved_model",d,null,a):new Ab("pending",null,null,a),c.set(b,d));return d}function Fb(a,b,c){if(Y){var d=Y;d.deps++}else d=Y={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&Cb(e,d.value))}}function Gb(a){return function(b){return Db(a,b)}}
72
- function Ib(a,b){a=Z(a,b);"resolved_model"===a.status&&Bb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
73
- function Jb(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),Z(a,b);case "F":return d=parseInt(d.slice(2),16),d=Ib(a,d),Eb(a,d.id,d.bound,X,b,c);case "T":return za(d.slice(2));case "Q":return b=parseInt(d.slice(2),16),a=Ib(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Ib(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,k){k.startsWith(e)&&f.append(k.slice(e.length),g)});return f;
74
- case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":Bb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=X,a.then(Fb(d,b,c),Gb(d)),null;default:throw a.reason;}}return d}
75
- function Kb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(f,g){return"string"===typeof g?Jb(e,this,f,g):g}};return e}
76
- function Lb(a,b,c){a._formData.append(b,c);var d=a._prefix;if(b.startsWith(d)&&(a=a._chunks,b=+b.slice(d.length),(b=a.get(b))&&"pending"===b.status&&(d=b.value,a=b.reason,b.status="resolved_model",b.value=c,null!==d)))switch(Bb(b),b.status){case "fulfilled":Cb(d,b.value);break;case "pending":case "blocked":b.value=d;b.reason=a;break;case "rejected":a&&Cb(a,b.reason)}}function Mb(a){Hb(a,Error("Connection closed."))}
77
- function Pb(a,b,c){var d=xb(a,b);a=zb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var f=W(d);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return W(d)}):Promise.resolve(W(d))}function Qb(a,b,c){a=Kb(b,c,a);Mb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Rb(a,b){return function(){return vb(b,a)}}function Sb(a,b){return function(){a.destination=null;wb(a,Error(b))}}
78
- exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,na)};exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Qb(a,b,e),d=Pb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),d=Pb(b,e,null)):c.append(f,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})};
79
- exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(g,k){k.startsWith("$ACTION_REF_")&&(g="$ACTION_"+k.slice(12)+":",e=Qb(b,c,g))});if(null===e)return Promise.resolve(null);var f=e.id;return Promise.resolve(e.bound).then(function(g){return null===g?null:[a,d,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Kb(b,"",a);b=Z(a,0);Mb(a);return b};
80
- exports.decodeReplyFromBusboy=function(a,b){var c=Kb(b,""),d=0,e=[];a.on("field",function(f,g){0<d?e.push(f,g):Lb(c,f,g)});a.on("file",function(f,g,k){var h=k.filename,p=k.mimeType;if("base64"===k.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.");d++;var t=[];g.on("data",function(n){t.push(n)});g.on("end",function(){var n=
81
- new Blob(t,{type:p});c._formData.append(f,n,h);d--;if(0===d){for(n=0;n<e.length;n+=2)Lb(c,e[n],e[n+1]);e.length=0}})});a.on("finish",function(){Mb(c)});a.on("error",function(f){Hb(c,f)});return Z(c,0)};exports.registerClientReference=function(a,b,c){return x(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ja,configurable:!0}})};
82
- exports.renderToPipeableStream=function(a,b,c){var d=fb(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0),e=!1;ub(d);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;vb(d,f);f.on("drain",Rb(f,d));f.on("error",Sb(d,"The destination stream errored while writing data."));f.on("close",Sb(d,"The destination stream closed early."));return f},abort:function(f){wb(d,f)}}};
58
+ K(c,d));a.pendingChunks++;c=a.nextChunkId++;d=nb(a,c,"$S"+f);a.completedImportChunks.push(d);b.set(e,c);return T(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+" is not supported in Client Component props."+K(c,d));}
59
+ function P(a,b){var c=O;O=null;try{var d=wa.run(void 0,a.onError,b)}finally{O=c}if(null!=d&&"string"!==typeof d)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d||""}function qb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
60
+ function Q(a,b,c){c={digest:c};b=b.toString(16)+":E"+M(c)+"\n";a.completedErrorChunks.push(b)}var ib={};
61
+ function pb(a,b){if(0===b.status)try{V=b.model;var c=S(a,b,ib,"",b.model);V=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?M(c,b.toJSON):M(c),e=b.id.toString(16)+":"+d+"\n";a.completedRegularChunks.push(e);a.abortableTasks.delete(b);b.status=1}catch(h){var f=h===Ia?La():h;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var g=b.ping;f.then(g,g);b.thenableState=Na()}else{a.abortableTasks.delete(b);b.status=4;var k=P(a,f);Q(a,b.id,k)}}finally{}}
62
+ function mb(a){var b=L.H;L.H=Sa;var c=O;G=O=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)pb(a,d[e]);null!==a.destination&&R(a,a.destination)}catch(f){P(a,f),qb(a,f)}finally{L.H=b,G=null,O=c}}
63
+ function R(a,b){l=new Uint8Array(2048);m=0;q=!0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)if(a.pendingChunks--,!u(b,c[d])){a.destination=null;d++;break}c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)if(!u(b,e[d])){a.destination=null;d++;break}e.splice(0,d);var f=a.completedRegularChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,!u(b,f[d])){a.destination=null;d++;break}f.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)if(a.pendingChunks--,!u(b,g[d])){a.destination=
64
+ null;d++;break}g.splice(0,d)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function rb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return wa.run(a,mb,a)})}function eb(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)})}}
65
+ function sb(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(c){P(a,c),qb(a,c)}}}
66
+ function tb(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,f=P(a,e);Q(a,d,f,e);c.forEach(function(g){g.status=3;var k=T(d);g=nb(a,g.id,k);a.completedErrorChunks.push(g)});c.clear()}null!==a.destination&&R(a,a.destination)}catch(g){P(a,g),qb(a,g)}}function ub(a,b){var c=b.lastIndexOf("#");a=b.slice(0,c);b=b.slice(c+1);return{specifier:a,name:b}}var vb=new Map;
67
+ function wb(a){var b=vb.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var c=import(a.specifier);a.async&&(c=c.then(function(d){return d.default}));c.then(function(d){var e=c;e.status="fulfilled";e.value=d},function(d){var e=c;e.status="rejected";e.reason=d});vb.set(a.specifier,c);return c}function W(a){var b=vb.get(a.specifier);if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a.name?b:""===a.name?b.default:b[a.name]}
68
+ function xb(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}xb.prototype=Object.create(Promise.prototype);xb.prototype.then=function(a,b){switch(this.status){case "resolved_model":yb(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)}};
69
+ function zb(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function Ab(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&zb(c,b)}}function Bb(a,b,c,d,e,f){var g=ub(a._bundlerConfig,b);a=wb(g);if(c)c=Promise.all([c,a]).then(function(k){k=k[0];var h=W(g);return h.bind.apply(h,[null].concat(k))});else if(a)c=Promise.resolve(a).then(function(){return W(g)});else return W(g);c.then(Cb(d,e,f),Db(d));return null}var X=null,Y=null;
70
+ function yb(a){var b=X,c=Y;X=a;Y=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=c}}function Eb(a,b){a._chunks.forEach(function(c){"pending"===c.status&&Ab(c,b)})}
71
+ function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new xb("resolved_model",d,null,a):new xb("pending",null,null,a),c.set(b,d));return d}function Cb(a,b,c){if(Y){var d=Y;d.deps++}else d=Y={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&zb(e,d.value))}}function Db(a){return function(b){return Ab(a,b)}}
72
+ function Fb(a,b){a=Z(a,b);"resolved_model"===a.status&&yb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
73
+ function Gb(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),Z(a,b);case "F":return d=parseInt(d.slice(2),16),d=Fb(a,d),Bb(a,d.id,d.bound,X,b,c);case "T":return za(d.slice(2));case "Q":return b=parseInt(d.slice(2),16),a=Fb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Fb(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,k){k.startsWith(e)&&f.append(k.slice(e.length),g)});return f;
74
+ case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":yb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=X,a.then(Cb(d,b,c),Db(d)),null;default:throw a.reason;}}return d}
75
+ function Hb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(f,g){return"string"===typeof g?Gb(e,this,f,g):g}};return e}
76
+ function Ib(a,b,c){a._formData.append(b,c);var d=a._prefix;if(b.startsWith(d)&&(a=a._chunks,b=+b.slice(d.length),(b=a.get(b))&&"pending"===b.status&&(d=b.value,a=b.reason,b.status="resolved_model",b.value=c,null!==d)))switch(yb(b),b.status){case "fulfilled":zb(d,b.value);break;case "pending":case "blocked":b.value=d;b.reason=a;break;case "rejected":a&&zb(a,b.reason)}}function Jb(a){Eb(a,Error("Connection closed."))}
77
+ function Mb(a,b,c){var d=ub(a,b);a=wb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var f=W(d);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return W(d)}):Promise.resolve(W(d))}function Nb(a,b,c){a=Hb(b,c,a);Jb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Ob(a,b){return function(){return sb(b,a)}}function Pb(a,b){return function(){a.destination=null;tb(a,Error(b))}}
78
+ exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,na)};exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Nb(a,b,e),d=Mb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),d=Mb(b,e,null)):c.append(f,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})};
79
+ exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(g,k){k.startsWith("$ACTION_REF_")&&(g="$ACTION_"+k.slice(12)+":",e=Nb(b,c,g))});if(null===e)return Promise.resolve(null);var f=e.id;return Promise.resolve(e.bound).then(function(g){return null===g?null:[a,d,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Hb(b,"",a);b=Z(a,0);Jb(a);return b};
80
+ exports.decodeReplyFromBusboy=function(a,b){var c=Hb(b,""),d=0,e=[];a.on("field",function(f,g){0<d?e.push(f,g):Ib(c,f,g)});a.on("file",function(f,g,k){var h=k.filename,p=k.mimeType;if("base64"===k.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.");d++;var t=[];g.on("data",function(n){t.push(n)});g.on("end",function(){var n=
81
+ new Blob(t,{type:p});c._formData.append(f,n,h);d--;if(0===d){for(n=0;n<e.length;n+=2)Ib(c,e[n],e[n+1]);e.length=0}})});a.on("finish",function(){Jb(c)});a.on("error",function(f){Eb(c,f)});return Z(c,0)};exports.registerClientReference=function(a,b,c){return x(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ja,configurable:!0}})};
82
+ exports.renderToPipeableStream=function(a,b,c){var d=bb(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0),e=!1;rb(d);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;sb(d,f);f.on("drain",Ob(f,d));f.on("error",Pb(d,"The destination stream errored while writing data."));f.on("close",Pb(d,"The destination stream closed early."));return f},abort:function(f){tb(d,f)}}};
83
83
 
84
84
  //# sourceMappingURL=react-server-dom-webpack-server.node.unbundled.production.min.js.map