react-server-dom-webpack 19.0.0-canary-48ec17b86-20240402 → 19.0.0-canary-fd0da3eef-20240404

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 (37) hide show
  1. package/cjs/react-server-dom-webpack-client.browser.development.js +13 -5
  2. package/cjs/react-server-dom-webpack-client.browser.production.js +1 -3
  3. package/cjs/react-server-dom-webpack-client.browser.production.min.js +1 -2
  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 +13 -5
  6. package/cjs/react-server-dom-webpack-client.edge.production.js +1 -3
  7. package/cjs/react-server-dom-webpack-client.edge.production.min.js +1 -1
  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 +13 -5
  10. package/cjs/react-server-dom-webpack-client.node.production.js +1 -3
  11. package/cjs/react-server-dom-webpack-client.node.production.min.js +1 -1
  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 +13 -5
  14. package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +1 -3
  15. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +1 -1
  16. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js.map +1 -1
  17. package/cjs/react-server-dom-webpack-server.browser.development.js +74 -25
  18. package/cjs/react-server-dom-webpack-server.browser.production.js +73 -26
  19. package/cjs/react-server-dom-webpack-server.browser.production.min.js +46 -45
  20. package/cjs/react-server-dom-webpack-server.browser.production.min.js.map +1 -1
  21. package/cjs/react-server-dom-webpack-server.edge.development.js +74 -25
  22. package/cjs/react-server-dom-webpack-server.edge.production.js +73 -26
  23. package/cjs/react-server-dom-webpack-server.edge.production.min.js +32 -31
  24. package/cjs/react-server-dom-webpack-server.edge.production.min.js.map +1 -1
  25. package/cjs/react-server-dom-webpack-server.node.development.js +74 -25
  26. package/cjs/react-server-dom-webpack-server.node.production.js +73 -26
  27. package/cjs/react-server-dom-webpack-server.node.production.min.js +33 -31
  28. package/cjs/react-server-dom-webpack-server.node.production.min.js.map +1 -1
  29. package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +74 -25
  30. package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +73 -26
  31. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +33 -31
  32. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js.map +1 -1
  33. package/package.json +3 -3
  34. package/umd/react-server-dom-webpack-client.browser.development.js +13 -5
  35. package/umd/react-server-dom-webpack-client.browser.production.min.js +4 -4
  36. package/umd/react-server-dom-webpack-server.browser.development.js +74 -25
  37. package/umd/react-server-dom-webpack-server.browser.production.min.js +50 -50
@@ -1101,10 +1101,6 @@ function use(usable) {
1101
1101
  }
1102
1102
  }
1103
1103
 
1104
- function createSignal() {
1105
- return new AbortController().signal;
1106
- }
1107
-
1108
1104
  function resolveCache() {
1109
1105
  var request = resolveRequest();
1110
1106
 
@@ -1116,17 +1112,6 @@ function resolveCache() {
1116
1112
  }
1117
1113
 
1118
1114
  var DefaultCacheDispatcher = {
1119
- getCacheSignal: function () {
1120
- var cache = resolveCache();
1121
- var entry = cache.get(createSignal);
1122
-
1123
- if (entry === undefined) {
1124
- entry = createSignal();
1125
- cache.set(createSignal, entry);
1126
- }
1127
-
1128
- return entry;
1129
- },
1130
1115
  getCacheForType: function (resourceType) {
1131
1116
  var cache = resolveCache();
1132
1117
  var entry = cache.get(resourceType);
@@ -1808,15 +1793,68 @@ function renderFragment(request, task, children) {
1808
1793
  }
1809
1794
  }
1810
1795
 
1811
- {
1812
- return children;
1813
- }
1796
+ if (task.keyPath !== null) {
1797
+ // We have a Server Component that specifies a key but we're now splitting
1798
+ // the tree using a fragment.
1799
+ var fragment = [REACT_ELEMENT_TYPE, REACT_FRAGMENT_TYPE, task.keyPath, {
1800
+ children: children
1801
+ }];
1802
+
1803
+ if (!task.implicitSlot) {
1804
+ // If this was keyed inside a set. I.e. the outer Server Component was keyed
1805
+ // then we need to handle reorders of the whole set. To do this we need to wrap
1806
+ // this array in a keyed Fragment.
1807
+ return fragment;
1808
+ } // If the outer Server Component was implicit but then an inner one had a key
1809
+ // we don't actually need to be able to move the whole set around. It'll always be
1810
+ // in an implicit slot. The key only exists to be able to reset the state of the
1811
+ // children. We could achieve the same effect by passing on the keyPath to the next
1812
+ // set of components inside the fragment. This would also allow a keyless fragment
1813
+ // reconcile against a single child.
1814
+ // Unfortunately because of JSON.stringify, we can't call the recursive loop for
1815
+ // each child within this context because we can't return a set with already resolved
1816
+ // values. E.g. a string would get double encoded. Returning would pop the context.
1817
+ // So instead, we wrap it with an unkeyed fragment and inner keyed fragment.
1818
+
1819
+
1820
+ return [fragment];
1821
+ } // Since we're yielding here, that implicitly resets the keyPath context on the
1822
+ // way up. Which is what we want since we've consumed it. If this changes to
1823
+ // be recursive serialization, we need to reset the keyPath and implicitSlot,
1824
+ // before recursing here.
1825
+
1826
+
1827
+ return children;
1814
1828
  }
1815
1829
 
1816
1830
  function renderClientElement(task, type, key, props) {
1817
- {
1818
- return [REACT_ELEMENT_TYPE, type, key, props];
1819
- } // We prepend the terminal client element that actually gets serialized with
1831
+ // the keys of any Server Components which are not serialized.
1832
+
1833
+
1834
+ var keyPath = task.keyPath;
1835
+
1836
+ if (key === null) {
1837
+ key = keyPath;
1838
+ } else if (keyPath !== null) {
1839
+ key = keyPath + ',' + key;
1840
+ }
1841
+
1842
+ var element = [REACT_ELEMENT_TYPE, type, key, props];
1843
+
1844
+ if (task.implicitSlot && key !== null) {
1845
+ // The root Server Component had no key so it was in an implicit slot.
1846
+ // If we had a key lower, it would end up in that slot with an explicit key.
1847
+ // We wrap the element in a fragment to give it an implicit key slot with
1848
+ // an inner explicit key.
1849
+ return [element];
1850
+ } // Since we're yielding here, that implicitly resets the keyPath context on the
1851
+ // way up. Which is what we want since we've consumed it. If this changes to
1852
+ // be recursive serialization, we need to reset the keyPath and implicitSlot,
1853
+ // before recursing here. We also need to reset it once we render into an array
1854
+ // or anything else too which we also get implicitly.
1855
+
1856
+
1857
+ return element;
1820
1858
  } // The chunk ID we're currently rendering that we can assign debug data to.
1821
1859
 
1822
1860
 
@@ -1935,7 +1973,7 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
1935
1973
  if (typeof model === 'object' && model !== null) {
1936
1974
  // If we're about to write this into a new task we can assign it an ID early so that
1937
1975
  // any other references can refer to the value we're about to write.
1938
- {
1976
+ if ((keyPath !== null || implicitSlot)) ; else {
1939
1977
  request.writtenObjects.set(model, id);
1940
1978
  }
1941
1979
  }
@@ -2266,7 +2304,7 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
2266
2304
  var _existingId = _writtenObjects.get(value);
2267
2305
 
2268
2306
  if (_existingId !== undefined) {
2269
- if (modelRoot === value) {
2307
+ if ((task.keyPath !== null || task.implicitSlot)) ; else if (modelRoot === value) {
2270
2308
  // This is the ID we're currently emitting so we need to write it
2271
2309
  // once but if we discover it again, we refer to it by id.
2272
2310
  modelRoot = null;
@@ -2318,7 +2356,11 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
2318
2356
  var ref;
2319
2357
 
2320
2358
  {
2321
- ref = element.ref;
2359
+ // TODO: This is a temporary, intermediate step. Once the feature
2360
+ // flag is removed, we should get the ref off the props object right
2361
+ // before using it.
2362
+ var refProp = props.ref;
2363
+ ref = refProp !== undefined ? refProp : null;
2322
2364
  } // Attempt to render the Server Component.
2323
2365
 
2324
2366
 
@@ -2367,7 +2409,14 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
2367
2409
 
2368
2410
  if (typeof value.then === 'function') {
2369
2411
  if (existingId !== undefined) {
2370
- if (modelRoot === value) {
2412
+ if ((task.keyPath !== null || task.implicitSlot)) {
2413
+ // If we're in some kind of context we can't reuse the result of this render or
2414
+ // previous renders of this element. We only reuse Promises if they're not wrapped
2415
+ // by another Server Component.
2416
+ var _promiseId = serializeThenable(request, task, value);
2417
+
2418
+ return serializePromiseID(_promiseId);
2419
+ } else if (modelRoot === value) {
2371
2420
  // This is the ID we're currently emitting so we need to write it
2372
2421
  // once but if we discover it again, we refer to it by id.
2373
2422
  modelRoot = null;
@@ -1059,10 +1059,6 @@ function use(usable) {
1059
1059
  }
1060
1060
  }
1061
1061
 
1062
- function createSignal() {
1063
- return new AbortController().signal;
1064
- }
1065
-
1066
1062
  function resolveCache() {
1067
1063
  const request = resolveRequest();
1068
1064
 
@@ -1074,18 +1070,6 @@ function resolveCache() {
1074
1070
  }
1075
1071
 
1076
1072
  const DefaultCacheDispatcher = {
1077
- getCacheSignal() {
1078
- const cache = resolveCache();
1079
- let entry = cache.get(createSignal);
1080
-
1081
- if (entry === undefined) {
1082
- entry = createSignal();
1083
- cache.set(createSignal, entry);
1084
- }
1085
-
1086
- return entry;
1087
- },
1088
-
1089
1073
  getCacheForType(resourceType) {
1090
1074
  const cache = resolveCache();
1091
1075
  let entry = cache.get(resourceType);
@@ -1584,15 +1568,68 @@ function renderFunctionComponent(request, task, key, Component, props) {
1584
1568
 
1585
1569
  function renderFragment(request, task, children) {
1586
1570
 
1587
- {
1588
- return children;
1589
- }
1571
+ if (task.keyPath !== null) {
1572
+ // We have a Server Component that specifies a key but we're now splitting
1573
+ // the tree using a fragment.
1574
+ const fragment = [REACT_ELEMENT_TYPE, REACT_FRAGMENT_TYPE, task.keyPath, {
1575
+ children
1576
+ }];
1577
+
1578
+ if (!task.implicitSlot) {
1579
+ // If this was keyed inside a set. I.e. the outer Server Component was keyed
1580
+ // then we need to handle reorders of the whole set. To do this we need to wrap
1581
+ // this array in a keyed Fragment.
1582
+ return fragment;
1583
+ } // If the outer Server Component was implicit but then an inner one had a key
1584
+ // we don't actually need to be able to move the whole set around. It'll always be
1585
+ // in an implicit slot. The key only exists to be able to reset the state of the
1586
+ // children. We could achieve the same effect by passing on the keyPath to the next
1587
+ // set of components inside the fragment. This would also allow a keyless fragment
1588
+ // reconcile against a single child.
1589
+ // Unfortunately because of JSON.stringify, we can't call the recursive loop for
1590
+ // each child within this context because we can't return a set with already resolved
1591
+ // values. E.g. a string would get double encoded. Returning would pop the context.
1592
+ // So instead, we wrap it with an unkeyed fragment and inner keyed fragment.
1593
+
1594
+
1595
+ return [fragment];
1596
+ } // Since we're yielding here, that implicitly resets the keyPath context on the
1597
+ // way up. Which is what we want since we've consumed it. If this changes to
1598
+ // be recursive serialization, we need to reset the keyPath and implicitSlot,
1599
+ // before recursing here.
1600
+
1601
+
1602
+ return children;
1590
1603
  }
1591
1604
 
1592
1605
  function renderClientElement(task, type, key, props) {
1593
- {
1594
- return [REACT_ELEMENT_TYPE, type, key, props];
1595
- } // We prepend the terminal client element that actually gets serialized with
1606
+ // the keys of any Server Components which are not serialized.
1607
+
1608
+
1609
+ const keyPath = task.keyPath;
1610
+
1611
+ if (key === null) {
1612
+ key = keyPath;
1613
+ } else if (keyPath !== null) {
1614
+ key = keyPath + ',' + key;
1615
+ }
1616
+
1617
+ const element = [REACT_ELEMENT_TYPE, type, key, props];
1618
+
1619
+ if (task.implicitSlot && key !== null) {
1620
+ // The root Server Component had no key so it was in an implicit slot.
1621
+ // If we had a key lower, it would end up in that slot with an explicit key.
1622
+ // We wrap the element in a fragment to give it an implicit key slot with
1623
+ // an inner explicit key.
1624
+ return [element];
1625
+ } // Since we're yielding here, that implicitly resets the keyPath context on the
1626
+ // way up. Which is what we want since we've consumed it. If this changes to
1627
+ // be recursive serialization, we need to reset the keyPath and implicitSlot,
1628
+ // before recursing here. We also need to reset it once we render into an array
1629
+ // or anything else too which we also get implicitly.
1630
+
1631
+
1632
+ return element;
1596
1633
  } // The chunk ID we're currently rendering that we can assign debug data to.
1597
1634
 
1598
1635
 
@@ -1684,7 +1721,7 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
1684
1721
  if (typeof model === 'object' && model !== null) {
1685
1722
  // If we're about to write this into a new task we can assign it an ID early so that
1686
1723
  // any other references can refer to the value we're about to write.
1687
- {
1724
+ if ((keyPath !== null || implicitSlot)) ; else {
1688
1725
  request.writtenObjects.set(model, id);
1689
1726
  }
1690
1727
  }
@@ -1993,7 +2030,7 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
1993
2030
  const existingId = writtenObjects.get(value);
1994
2031
 
1995
2032
  if (existingId !== undefined) {
1996
- if (modelRoot === value) {
2033
+ if ((task.keyPath !== null || task.implicitSlot)) ; else if (modelRoot === value) {
1997
2034
  // This is the ID we're currently emitting so we need to write it
1998
2035
  // once but if we discover it again, we refer to it by id.
1999
2036
  modelRoot = null;
@@ -2028,7 +2065,11 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
2028
2065
  let ref;
2029
2066
 
2030
2067
  {
2031
- ref = element.ref;
2068
+ // TODO: This is a temporary, intermediate step. Once the feature
2069
+ // flag is removed, we should get the ref off the props object right
2070
+ // before using it.
2071
+ const refProp = props.ref;
2072
+ ref = refProp !== undefined ? refProp : null;
2032
2073
  } // Attempt to render the Server Component.
2033
2074
 
2034
2075
 
@@ -2059,7 +2100,13 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
2059
2100
 
2060
2101
  if (typeof value.then === 'function') {
2061
2102
  if (existingId !== undefined) {
2062
- if (modelRoot === value) {
2103
+ if ((task.keyPath !== null || task.implicitSlot)) {
2104
+ // If we're in some kind of context we can't reuse the result of this render or
2105
+ // previous renders of this element. We only reuse Promises if they're not wrapped
2106
+ // by another Server Component.
2107
+ const promiseId = serializeThenable(request, task, value);
2108
+ return serializePromiseID(promiseId);
2109
+ } else if (modelRoot === value) {
2063
2110
  // This is the ID we're currently emitting so we need to write it
2064
2111
  // once but if we discover it again, we refer to it by id.
2065
2112
  modelRoot = null;
@@ -7,9 +7,9 @@
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 ba=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 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}
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
- (0===c?r(a,l):(l.set(b.subarray(0,c),m),m+=c,r(a,l),b=b.subarray(c)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)));return q}var fa=new ba.TextEncoder,v=Symbol.for("react.client.reference"),w=Symbol.for("react.server.reference");function x(a,b,c){return Object.defineProperties(a,{$$typeof:{value:v},$$id:{value:b},$$async:{value:c}})}var ha=Function.prototype.bind,ia=Array.prototype.slice;
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}
14
14
  var ka=Promise.prototype,la={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "displayName":return;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "Provider":throw Error("Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider.");
15
15
  }throw Error("Cannot access "+(String(a.name)+"."+String(b))+" on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.");},set:function(){throw Error("Cannot assign to a client module from a server module.");}};
@@ -29,37 +29,39 @@ function Ja(){}function Ka(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Ja,
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};
31
31
  function I(){throw Error("This Hook is not supported in Server Components.");}function Qa(){throw Error("Refreshing the cache is not supported in Server Components.");}function Oa(){throw Error("Cannot read a Client Context from a Server Component.");}function Pa(){if(null===G)throw Error("useId can only be used while React is rendering");var a=G.identifierCount++;return":"+G.identifierPrefix+"S"+a.toString(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));}function Ta(){return(new AbortController).signal}
33
- function Ua(){var a=z();return a?a.cache:new Map}var Va={getCacheSignal:function(){var a=Ua(),b=a.get(Ta);void 0===b&&(b=Ta(),a.set(Ta,b));return b},getCacheForType:function(a){var b=Ua(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Wa=Array.isArray,Xa=Object.getPrototypeOf;function Ya(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
34
- function Za(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Wa(a))return"[...]";if(null!==a&&a.$$typeof===$a)return"client";a=Ya(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===$a?"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 $a=Symbol.for("react.client.reference");
36
- function K(a,b){var c=Ya(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Wa(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):Za(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===$a)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):Za(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 ab=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bb=ea.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
38
- if(!bb)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 cb=Object.prototype,L=JSON.stringify,db=bb.ReactCurrentCache,eb=ab.ReactCurrentDispatcher;function fb(a){console.error(a)}function gb(){}
39
- function hb(a,b,c,d,e){if(null!==db.current&&db.current!==Va)throw Error("Currently React only supports one RSC renderer at a time.");db.current=Va;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?fb:c,onPostpone:void 0===e?gb: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 ib(a,b,c){var d=M(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,jb(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;jb(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");kb(a)}function lb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
43
- function mb(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:lb}}
44
- function nb(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=mb(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}
45
- 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?[C,c,d,f]:nb(a,b,d,c,f);if("string"===typeof c)return[C,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):[C,c,d,f];if(null!=c&&"object"===typeof c){if(c.$$typeof===v)return[C,c,d,f];switch(c.$$typeof){case E:var g=
46
- c._init;c=g(c._payload);return ob(a,b,c,d,e,f);case Ca:return nb(a,b,d,c.render,f);case Fa:return ob(a,b,c.type,d,e,f)}}throw Error("Unsupported Server Component type: "+Za(c));}function jb(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return pb(a)}))}
47
- function M(a,b,c,d,e){a.pendingChunks++;var f=a.nextChunkId++;"object"===typeof b&&null!==b&&a.writtenObjects.set(b,f);var g={id:f,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return jb(a,g)},toJSON:function(k,h){var p=g.keyPath,t=g.implicitSlot;try{var n=R(a,g,this,k,h)}catch(aa){if(k=aa===Ia?La():aa,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,a.abortableTasks);
48
- 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"}
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
+ 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
+ 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");
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"}
49
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,
50
- g];a.pendingChunks++;var D=a.nextChunkId++,aa=L(n),Ob=D.toString(16)+":I"+aa+"\n";a.completedImportChunks.push(Ob);f.set(e,D);return b[0]===C&&"1"===c?"$L"+D.toString(16):T(D)}catch(Pb){return a.pendingChunks++,b=a.nextChunkId++,c=O(a,Pb),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;
51
- 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(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);return ob(a,b,e.type,e.key,e.ref,e.props);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);if("function"===typeof e.then){if(void 0!==d)if(V===e)V=null;
52
- else return"$@"+d.toString(16);a=ib(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(Wa(e))return e;if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+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,
53
- void 0===d.get(c)&&d.set(c,-1));return"$W"+U(a,e).toString(16)}null===e||"object"!==typeof e?a=null:(a=Ha&&e[Ha]||e["@@iterator"],a="function"===typeof a?a:null);if(a)return a=Array.from(e),a;a=Xa(e);if(a!==cb&&(null===a||null!==Xa(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=
54
- 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"===typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===v)return rb(a,c,d,e);if(e.$$typeof===w)return b=
55
- 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.");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.'+
56
- 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.")+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+
57
- " is not supported in Client Component props."+K(c,d));}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||""}
58
- function tb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}function P(a,b,c){c={digest:c};b=b.toString(16)+":E"+L(c)+"\n";a.completedErrorChunks.push(b)}var S={};
51
+ g];a.pendingChunks++;var D=a.nextChunkId++,ba=L(n),Ob=D.toString(16)+":I"+ba+"\n";a.completedImportChunks.push(Ob);f.set(e,D);return b[0]===C&&"1"===c?"$L"+D.toString(16):T(D)}catch(Pb){return a.pendingChunks++,b=a.nextChunkId++,c=O(a,Pb),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.");
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.");
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={};
59
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{}}
60
- function pb(a){var b=eb.current;eb.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{eb.current=b,G=null,N=c}}
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}}
61
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=
62
- 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 kb(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)})}}
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)})}}
63
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)}}}
64
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)}}
65
67
  function xb(a,b){var c="",d=a[b];if(d)c=d.name;else{var e=b.lastIndexOf("#");-1!==e&&(c=b.slice(e+1),d=a[b.slice(0,e)]);if(!d)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return[d.id,d.chunks,c]}var yb=new Map;
@@ -80,6 +82,6 @@ exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,na)}
80
82
  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=Sb(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=Mb(b,"",a);b=Z(a,0);Qb(a);return b};
81
83
  exports.decodeReplyFromBusboy=function(a,b){var c=Mb(b,""),d=0,e=[];a.on("field",function(f,g){0<d?e.push(f,g):Nb(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=
82
84
  new Blob(t,{type:p});c._formData.append(f,n,h);d--;if(0===d){for(n=0;n<e.length;n+=2)Nb(c,e[n],e[n+1]);e.length=0}})});a.on("finish",function(){Qb(c)});a.on("error",function(f){Jb(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}})};
83
- exports.renderToPipeableStream=function(a,b,c){var d=hb(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",Tb(f,d));f.on("error",Ub(d,"The destination stream errored while writing data."));f.on("close",Ub(d,"The destination stream closed early."));return f},abort:function(f){wb(d,f)}}};
85
+ 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",Tb(f,d));f.on("error",Ub(d,"The destination stream errored while writing data."));f.on("close",Ub(d,"The destination stream closed early."));return f},abort:function(f){wb(d,f)}}};
84
86
 
85
87
  //# sourceMappingURL=react-server-dom-webpack-server.node.production.min.js.map