react-server-dom-webpack 18.3.0-next-0ba4698c7-20230201 → 18.3.0-next-855b77c9b-20230202

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.
@@ -564,6 +564,16 @@ function parseModelString(response, parentObject, key, value) {
564
564
  return createLazyChunkWrapper(chunk);
565
565
  }
566
566
 
567
+ case '@':
568
+ {
569
+ // Promise
570
+ var _id = parseInt(value.substring(2), 16);
571
+
572
+ var _chunk = getChunk(response, _id);
573
+
574
+ return _chunk;
575
+ }
576
+
567
577
  case 'S':
568
578
  {
569
579
  return Symbol.for(value.substring(2));
@@ -577,35 +587,35 @@ function parseModelString(response, parentObject, key, value) {
577
587
  default:
578
588
  {
579
589
  // We assume that anything else is a reference ID.
580
- var _id = parseInt(value.substring(1), 16);
590
+ var _id2 = parseInt(value.substring(1), 16);
581
591
 
582
- var _chunk = getChunk(response, _id);
592
+ var _chunk2 = getChunk(response, _id2);
583
593
 
584
- switch (_chunk.status) {
594
+ switch (_chunk2.status) {
585
595
  case RESOLVED_MODEL:
586
- initializeModelChunk(_chunk);
596
+ initializeModelChunk(_chunk2);
587
597
  break;
588
598
 
589
599
  case RESOLVED_MODULE:
590
- initializeModuleChunk(_chunk);
600
+ initializeModuleChunk(_chunk2);
591
601
  break;
592
602
  } // The status might have changed after initialization.
593
603
 
594
604
 
595
- switch (_chunk.status) {
605
+ switch (_chunk2.status) {
596
606
  case INITIALIZED:
597
- return _chunk.value;
607
+ return _chunk2.value;
598
608
 
599
609
  case PENDING:
600
610
  case BLOCKED:
601
611
  var parentChunk = initializingChunk;
602
612
 
603
- _chunk.then(createModelResolver(parentChunk, parentObject, key), createModelReject(parentChunk));
613
+ _chunk2.then(createModelResolver(parentChunk, parentObject, key), createModelReject(parentChunk));
604
614
 
605
615
  return null;
606
616
 
607
617
  default:
608
- throw _chunk.reason;
618
+ throw _chunk2.reason;
609
619
  }
610
620
  }
611
621
  }
@@ -16,8 +16,8 @@ function E(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.
16
16
  function y(a){var b=G,c=H;G=a;H=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==H&&0<H.deps?(H.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{G=b,H=c}}
17
17
  function z(a){try{var b=a.value;if(b.async){var c=p.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var e="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=e}catch(f){a.status="rejected",a.reason=f}}function I(a,b){a._chunks.forEach(function(a){"pending"===a.status&&E(a,b)})}function J(a,b){var c=a._chunks,d=c.get(b);d||(d=new x("pending",null,null,a),c.set(b,d));return d}
18
18
  function K(a,b,c){if(H){var d=H;d.deps++}else d=H={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&&C(e,d.value))}}function M(a){return function(b){return E(a,b)}}
19
- function N(a,b,c,d){if("$"===d[0]){if("$"===d)return t;switch(d[1]){case "$":return d.substring(1);case "L":return b=parseInt(d.substring(2),16),b=J(a,b),{$$typeof:u,_payload:b,_init:B};case "S":return Symbol.for(d.substring(2));case "P":return b=d.substring(2),w[b]||(w[b]=h.createServerContext(b,v)),w[b].Provider;default:d=parseInt(d.substring(1),16);a=J(a,d);switch(a.status){case "resolved_model":y(a);break;case "resolved_module":z(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=
20
- G,a.then(K(d,b,c),M(d)),null;default:throw a.reason;}}}return d}function O(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var f=m(a._bundlerConfig,c);if(c=r(f)){if(e){var k=e;k.status="blocked"}else k=new x("blocked",null,null,a),d.set(b,k);c.then(function(){return F(k,f)},function(a){return E(k,a)})}else e?F(e,f):d.set(b,new x("resolved_module",f,null,a))}function P(a){I(a,Error("Connection closed."))}
19
+ function N(a,b,c,d){if("$"===d[0]){if("$"===d)return t;switch(d[1]){case "$":return d.substring(1);case "L":return b=parseInt(d.substring(2),16),a=J(a,b),{$$typeof:u,_payload:a,_init:B};case "@":return b=parseInt(d.substring(2),16),J(a,b);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),w[a]||(w[a]=h.createServerContext(a,v)),w[a].Provider;default:d=parseInt(d.substring(1),16);a=J(a,d);switch(a.status){case "resolved_model":y(a);break;case "resolved_module":z(a)}switch(a.status){case "fulfilled":return a.value;
20
+ case "pending":case "blocked":return d=G,a.then(K(d,b,c),M(d)),null;default:throw a.reason;}}}return d}function O(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var f=m(a._bundlerConfig,c);if(c=r(f)){if(e){var k=e;k.status="blocked"}else k=new x("blocked",null,null,a),d.set(b,k);c.then(function(){return F(k,f)},function(a){return E(k,a)})}else e?F(e,f):d.set(b,new x("resolved_module",f,null,a))}function P(a){I(a,Error("Connection closed."))}
21
21
  function Q(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.substring(0,c),16);switch(b[c+1]){case "I":O(a,d,b.substring(c+2));break;case "E":c=JSON.parse(b.substring(c+2)).digest;b=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");b.stack="Error: "+b.message;b.digest=c;c=a._chunks;
22
22
  var e=c.get(d);e?E(e,b):c.set(d,new x("rejected",null,b,a));break;default:b=b.substring(c+1),e=a._chunks,(c=e.get(d))?"pending"===c.status&&(a=c.value,d=c.reason,c.status="resolved_model",c.value=b,null!==a&&(y(c),D(c,a,d))):e.set(d,new x("resolved_model",b,null,a))}}}function R(a){return function(b,c){return"string"===typeof c?N(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===t?{$$typeof:t,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}
23
23
  function S(a){var b=new TextDecoder,c=new Map;a={_bundlerConfig:a,_chunks:c,_partialRow:"",_stringDecoder:b};a._fromJSON=R(a);return a}function T(a,b){function c(b){var f=b.value;if(b.done)P(a);else{b=f;f=a._stringDecoder;for(var g=b.indexOf(10);-1<g;){var L=a._partialRow;var A=b.subarray(0,g);A=f.decode(A);Q(a,L+A);a._partialRow="";b=b.subarray(g+1);g=b.indexOf(10)}a._partialRow+=f.decode(b,l);return e.read().then(c).catch(d)}}function d(b){I(a,b)}var e=b.getReader();e.read().then(c).catch(d)}
@@ -41,9 +41,6 @@ module.exports = function register() {
41
41
 
42
42
  case 'defaultProps':
43
43
  return undefined;
44
-
45
- case 'getDefaultProps':
46
- return undefined;
47
44
  // Avoid this attempting to be serialized.
48
45
 
49
46
  case 'toJSON':
@@ -103,9 +100,6 @@ module.exports = function register() {
103
100
 
104
101
  case 'defaultProps':
105
102
  return undefined;
106
-
107
- case 'getDefaultProps':
108
- return undefined;
109
103
  // Avoid this attempting to be serialized.
110
104
 
111
105
  case 'toJSON':
@@ -149,11 +143,8 @@ module.exports = function register() {
149
143
  // If this module is expected to return a Promise (such as an AsyncModule) then
150
144
  // we should resolve that with a client reference that unwraps the Promise on
151
145
  // the client.
152
- var innerModuleId = target.filepath;
153
- var clientReference = Object.defineProperties(function () {
154
- throw new Error("Attempted to call the module exports of " + innerModuleId + " 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.");
155
- }, {
156
- // Represents the whole object instead of a particular import.
146
+ var clientReference = Object.defineProperties({}, {
147
+ // Represents the whole Module object instead of a particular import.
157
148
  name: {
158
149
  value: '*'
159
150
  },
@@ -238,10 +229,8 @@ module.exports = function register() {
238
229
 
239
230
  Module._extensions['.client.js'] = function (module, path) {
240
231
  var moduleId = url.pathToFileURL(path).href;
241
- var clientReference = Object.defineProperties(function () {
242
- throw new Error("Attempted to call the module exports of " + moduleId + " 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.");
243
- }, {
244
- // Represents the whole object instead of a particular import.
232
+ var clientReference = Object.defineProperties({}, {
233
+ // Represents the whole Module object instead of a particular import.
245
234
  name: {
246
235
  value: '*'
247
236
  },
@@ -1222,6 +1222,81 @@ var POP = {}; // Used for DEV messages to keep track of which parent rendered so
1222
1222
  var jsxPropsParents = new WeakMap();
1223
1223
  var jsxChildrenParents = new WeakMap();
1224
1224
 
1225
+ function serializeThenable(request, thenable) {
1226
+ request.pendingChunks++;
1227
+ var newTask = createTask(request, null, getActiveContext(), request.abortableTasks);
1228
+
1229
+ switch (thenable.status) {
1230
+ case 'fulfilled':
1231
+ {
1232
+ // We have the resolved value, we can go ahead and schedule it for serialization.
1233
+ newTask.model = thenable.value;
1234
+ pingTask(request, newTask);
1235
+ return newTask.id;
1236
+ }
1237
+
1238
+ case 'rejected':
1239
+ {
1240
+ var x = thenable.reason;
1241
+ var digest = logRecoverableError(request, x);
1242
+
1243
+ {
1244
+ var _getErrorMessageAndSt = getErrorMessageAndStackDev(x),
1245
+ message = _getErrorMessageAndSt.message,
1246
+ stack = _getErrorMessageAndSt.stack;
1247
+
1248
+ emitErrorChunkDev(request, newTask.id, digest, message, stack);
1249
+ }
1250
+
1251
+ return newTask.id;
1252
+ }
1253
+
1254
+ default:
1255
+ {
1256
+ if (typeof thenable.status === 'string') {
1257
+ // Only instrument the thenable if the status if not defined. If
1258
+ // it's defined, but an unknown value, assume it's been instrumented by
1259
+ // some custom userspace implementation. We treat it as "pending".
1260
+ break;
1261
+ }
1262
+
1263
+ var pendingThenable = thenable;
1264
+ pendingThenable.status = 'pending';
1265
+ pendingThenable.then(function (fulfilledValue) {
1266
+ if (thenable.status === 'pending') {
1267
+ var fulfilledThenable = thenable;
1268
+ fulfilledThenable.status = 'fulfilled';
1269
+ fulfilledThenable.value = fulfilledValue;
1270
+ }
1271
+ }, function (error) {
1272
+ if (thenable.status === 'pending') {
1273
+ var rejectedThenable = thenable;
1274
+ rejectedThenable.status = 'rejected';
1275
+ rejectedThenable.reason = error;
1276
+ }
1277
+ });
1278
+ break;
1279
+ }
1280
+ }
1281
+
1282
+ thenable.then(function (value) {
1283
+ newTask.model = value;
1284
+ pingTask(request, newTask);
1285
+ }, function (reason) {
1286
+ // TODO: Is it safe to directly emit these without being inside a retry?
1287
+ var digest = logRecoverableError(request, reason);
1288
+
1289
+ {
1290
+ var _getErrorMessageAndSt2 = getErrorMessageAndStackDev(reason),
1291
+ _message = _getErrorMessageAndSt2.message,
1292
+ _stack = _getErrorMessageAndSt2.stack;
1293
+
1294
+ emitErrorChunkDev(request, newTask.id, digest, _message, _stack);
1295
+ }
1296
+ });
1297
+ return newTask.id;
1298
+ }
1299
+
1225
1300
  function readThenable(thenable) {
1226
1301
  if (thenable.status === 'fulfilled') {
1227
1302
  return thenable.value;
@@ -1278,7 +1353,7 @@ function createLazyWrapperAroundWakeable(wakeable) {
1278
1353
  return lazyType;
1279
1354
  }
1280
1355
 
1281
- function attemptResolveElement(type, key, ref, props, prevThenableState) {
1356
+ function attemptResolveElement(request, type, key, ref, props, prevThenableState) {
1282
1357
  if (ref !== null && ref !== undefined) {
1283
1358
  // When the ref moves to the regular props object this will implicitly
1284
1359
  // throw for functions. We could probably relax it to a DEV warning for other
@@ -1305,6 +1380,16 @@ function attemptResolveElement(type, key, ref, props, prevThenableState) {
1305
1380
  var result = type(props);
1306
1381
 
1307
1382
  if (typeof result === 'object' && result !== null && typeof result.then === 'function') {
1383
+ // When the return value is in children position we can resolve it immediately,
1384
+ // to its value without a wrapper if it's synchronously available.
1385
+ var thenable = result;
1386
+
1387
+ if (thenable.status === 'fulfilled') {
1388
+ return thenable.value;
1389
+ } // TODO: Once we accept Promises as children on the client, we can just return
1390
+ // the thenable here.
1391
+
1392
+
1308
1393
  return createLazyWrapperAroundWakeable(result);
1309
1394
  }
1310
1395
 
@@ -1336,7 +1421,7 @@ function attemptResolveElement(type, key, ref, props, prevThenableState) {
1336
1421
  var payload = type._payload;
1337
1422
  var init = type._init;
1338
1423
  var wrappedType = init(payload);
1339
- return attemptResolveElement(wrappedType, key, ref, props, prevThenableState);
1424
+ return attemptResolveElement(request, wrappedType, key, ref, props, prevThenableState);
1340
1425
  }
1341
1426
 
1342
1427
  case REACT_FORWARD_REF_TYPE:
@@ -1348,7 +1433,7 @@ function attemptResolveElement(type, key, ref, props, prevThenableState) {
1348
1433
 
1349
1434
  case REACT_MEMO_TYPE:
1350
1435
  {
1351
- return attemptResolveElement(type.type, key, ref, props, prevThenableState);
1436
+ return attemptResolveElement(request, type.type, key, ref, props, prevThenableState);
1352
1437
  }
1353
1438
 
1354
1439
  case REACT_PROVIDER_TYPE:
@@ -1413,10 +1498,14 @@ function serializeByValueID(id) {
1413
1498
  return '$' + id.toString(16);
1414
1499
  }
1415
1500
 
1416
- function serializeByRefID(id) {
1501
+ function serializeLazyID(id) {
1417
1502
  return '$L' + id.toString(16);
1418
1503
  }
1419
1504
 
1505
+ function serializePromiseID(id) {
1506
+ return '$@' + id.toString(16);
1507
+ }
1508
+
1420
1509
  function serializeSymbolReference(name) {
1421
1510
  return '$S' + name;
1422
1511
  }
@@ -1437,7 +1526,7 @@ function serializeClientReference(request, parent, key, moduleReference) {
1437
1526
  // knows how to deal with lazy values. This lets us suspend
1438
1527
  // on this component rather than its parent until the code has
1439
1528
  // loaded.
1440
- return serializeByRefID(existingId);
1529
+ return serializeLazyID(existingId);
1441
1530
  }
1442
1531
 
1443
1532
  return serializeByValueID(existingId);
@@ -1456,7 +1545,7 @@ function serializeClientReference(request, parent, key, moduleReference) {
1456
1545
  // knows how to deal with lazy values. This lets us suspend
1457
1546
  // on this component rather than its parent until the code has
1458
1547
  // loaded.
1459
- return serializeByRefID(moduleId);
1548
+ return serializeLazyID(moduleId);
1460
1549
  }
1461
1550
 
1462
1551
  return serializeByValueID(moduleId);
@@ -1466,9 +1555,9 @@ function serializeClientReference(request, parent, key, moduleReference) {
1466
1555
  var digest = logRecoverableError(request, x);
1467
1556
 
1468
1557
  {
1469
- var _getErrorMessageAndSt = getErrorMessageAndStackDev(x),
1470
- message = _getErrorMessageAndSt.message,
1471
- stack = _getErrorMessageAndSt.stack;
1558
+ var _getErrorMessageAndSt3 = getErrorMessageAndStackDev(x),
1559
+ message = _getErrorMessageAndSt3.message,
1560
+ stack = _getErrorMessageAndSt3.stack;
1472
1561
 
1473
1562
  emitErrorChunkDev(request, errorId, digest, message, stack);
1474
1563
  }
@@ -1850,7 +1939,7 @@ function resolveModelToJSON(request, parent, key, value) {
1850
1939
  // TODO: Concatenate keys of parents onto children.
1851
1940
  var element = value; // Attempt to render the Server Component.
1852
1941
 
1853
- value = attemptResolveElement(element.type, element.key, element.ref, element.props, null);
1942
+ value = attemptResolveElement(request, element.type, element.key, element.ref, element.props, null);
1854
1943
  break;
1855
1944
  }
1856
1945
 
@@ -1877,7 +1966,7 @@ function resolveModelToJSON(request, parent, key, value) {
1877
1966
  var ping = newTask.ping;
1878
1967
  x.then(ping, ping);
1879
1968
  newTask.thenableState = getThenableStateAfterSuspending();
1880
- return serializeByRefID(newTask.id);
1969
+ return serializeLazyID(newTask.id);
1881
1970
  } else {
1882
1971
  // Something errored. We'll still send everything we have up until this point.
1883
1972
  // We'll replace this element with a lazy reference that throws on the client
@@ -1887,14 +1976,14 @@ function resolveModelToJSON(request, parent, key, value) {
1887
1976
  var digest = logRecoverableError(request, x);
1888
1977
 
1889
1978
  {
1890
- var _getErrorMessageAndSt2 = getErrorMessageAndStackDev(x),
1891
- message = _getErrorMessageAndSt2.message,
1892
- stack = _getErrorMessageAndSt2.stack;
1979
+ var _getErrorMessageAndSt4 = getErrorMessageAndStackDev(x),
1980
+ message = _getErrorMessageAndSt4.message,
1981
+ stack = _getErrorMessageAndSt4.stack;
1893
1982
 
1894
1983
  emitErrorChunkDev(request, errorId, digest, message, stack);
1895
1984
  }
1896
1985
 
1897
- return serializeByRefID(errorId);
1986
+ return serializeLazyID(errorId);
1898
1987
  }
1899
1988
  }
1900
1989
  }
@@ -1906,6 +1995,11 @@ function resolveModelToJSON(request, parent, key, value) {
1906
1995
  if (typeof value === 'object') {
1907
1996
  if (isClientReference(value)) {
1908
1997
  return serializeClientReference(request, parent, key, value);
1998
+ } else if (typeof value.then === 'function') {
1999
+ // We assume that any object with a .then property is a "Thenable" type,
2000
+ // or a Promise type. Either of which can be represented by a Promise.
2001
+ var promiseId = serializeThenable(request, value);
2002
+ return serializePromiseID(promiseId);
1909
2003
  } else if (value.$$typeof === REACT_PROVIDER_TYPE) {
1910
2004
  var providerKey = value._context._globalName;
1911
2005
  var writtenProviders = request.writtenProviders;
@@ -2097,7 +2191,7 @@ function retryTask(request, task) {
2097
2191
  // also suspends.
2098
2192
 
2099
2193
  task.model = value;
2100
- value = attemptResolveElement(element.type, element.key, element.ref, element.props, prevThenableState); // Successfully finished this component. We're going to keep rendering
2194
+ value = attemptResolveElement(request, element.type, element.key, element.ref, element.props, prevThenableState); // Successfully finished this component. We're going to keep rendering
2101
2195
  // using the same task, but we reset its thenable state before continuing.
2102
2196
 
2103
2197
  task.thenableState = null; // Keep rendering and reuse the same task. This inner loop is separate
@@ -2108,7 +2202,7 @@ function retryTask(request, task) {
2108
2202
  // TODO: Concatenate keys of parents onto children.
2109
2203
  var nextElement = value;
2110
2204
  task.model = value;
2111
- value = attemptResolveElement(nextElement.type, nextElement.key, nextElement.ref, nextElement.props, null);
2205
+ value = attemptResolveElement(request, nextElement.type, nextElement.key, nextElement.ref, nextElement.props, null);
2112
2206
  }
2113
2207
  }
2114
2208
 
@@ -2136,9 +2230,9 @@ function retryTask(request, task) {
2136
2230
  var digest = logRecoverableError(request, x);
2137
2231
 
2138
2232
  {
2139
- var _getErrorMessageAndSt3 = getErrorMessageAndStackDev(x),
2140
- message = _getErrorMessageAndSt3.message,
2141
- stack = _getErrorMessageAndSt3.stack;
2233
+ var _getErrorMessageAndSt5 = getErrorMessageAndStackDev(x),
2234
+ message = _getErrorMessageAndSt5.message,
2235
+ stack = _getErrorMessageAndSt5.stack;
2142
2236
 
2143
2237
  emitErrorChunkDev(request, task.id, digest, message, stack);
2144
2238
  }
@@ -2304,9 +2398,9 @@ function abort(request, reason) {
2304
2398
  var errorId = request.nextChunkId++;
2305
2399
 
2306
2400
  if (true) {
2307
- var _getErrorMessageAndSt4 = getErrorMessageAndStackDev(error),
2308
- message = _getErrorMessageAndSt4.message,
2309
- stack = _getErrorMessageAndSt4.stack;
2401
+ var _getErrorMessageAndSt6 = getErrorMessageAndStackDev(error),
2402
+ message = _getErrorMessageAndSt6.message,
2403
+ stack = _getErrorMessageAndSt6.stack;
2310
2404
 
2311
2405
  emitErrorChunkDev(request, errorId, digest, message, stack);
2312
2406
  } else {
@@ -7,10 +7,10 @@
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("react");var e="function"===typeof AsyncLocalStorage,fa=e?new AsyncLocalStorage:null,m=null,n=0;function p(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(m.buffer,0,n)),m=new Uint8Array(512),n=0),a.enqueue(b);else{var d=m.length-n;d<b.length&&(0===d?a.enqueue(m):(m.set(b.subarray(0,d),n),a.enqueue(m),b=b.subarray(d)),m=new Uint8Array(512),n=0);m.set(b,n);n+=b.length}return!0}var q=new TextEncoder;
11
- function r(a){return q.encode(a)}function ha(a,b){"function"===typeof a.error?a.error(b):a.close()}var t=JSON.stringify;function u(a,b,d){a=t(d);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
10
+ 'use strict';var aa=require("react");var e="function"===typeof AsyncLocalStorage,ba=e?new AsyncLocalStorage:null,m=null,n=0;function p(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(m.buffer,0,n)),m=new Uint8Array(512),n=0),a.enqueue(b);else{var c=m.length-n;c<b.length&&(0===c?a.enqueue(m):(m.set(b.subarray(0,c),n),a.enqueue(m),b=b.subarray(c)),m=new Uint8Array(512),n=0);m.set(b,n);n+=b.length}return!0}var q=new TextEncoder;
11
+ function r(a){return q.encode(a)}function ca(a,b){"function"===typeof a.error?a.error(b):a.close()}var t=JSON.stringify;function u(a,b,c){a=t(c);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
12
12
  var v=Symbol.for("react.client.reference"),w=Symbol.for("react.element"),ia=Symbol.for("react.fragment"),ja=Symbol.for("react.provider"),ka=Symbol.for("react.server_context"),la=Symbol.for("react.forward_ref"),ma=Symbol.for("react.suspense"),na=Symbol.for("react.suspense_list"),oa=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel");
13
- function z(a,b,d,c,f,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=f;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new z(a,0,!1,a,null,!1,!1)});
13
+ function z(a,b,c,d,f,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=f;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new z(a,0,!1,a,null,!1,!1)});
14
14
  [["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new z(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new z(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new z(a,2,!1,a,null,!1,!1)});
15
15
  "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new z(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new z(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new z(a,4,!1,a,null,!1,!1)});
16
16
  ["cols","rows","size","span"].forEach(function(a){new z(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new z(a,5,!1,a.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function B(a){return a[1].toUpperCase()}
@@ -25,35 +25,36 @@ r('" data-pid="');r('$RC=function(b,c,e){c=document.getElementById(c);c.parentNo
25
25
  r('$RC("');r('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};;$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("');
26
26
  r('$RM=new Map;\n$RR=function(p,q,v){function r(l){this.s=l}for(var t=$RC,u=$RM,m=new Map,n=document,g,e,f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;e=f[d++];)m.set(e.dataset.precedence,g=e);e=0;f=[];for(var c,h,b,a;c=v[e++];){var k=0;h=c[k++];if(b=u.get(h))"l"!==b.s&&f.push(b);else{a=n.createElement("link");a.href=h;a.rel="stylesheet";for(a.dataset.precedence=d=c[k++];b=c[k++];)a.setAttribute(b,c[k++]);b=a._p=new Promise(function(l,w){a.onload=l;a.onerror=w});b.then(r.bind(b,\n"l"),r.bind(b,"e"));u.set(h,b);f.push(b);c=m.get(d)||g;c===g&&(g=a);m.set(d,a);c?c.parentNode.insertBefore(a,c.nextSibling):(d=n.head,d.insertBefore(a,d.firstChild))}}Promise.all(f).then(t.bind(null,p,q,""),t.bind(null,p,q,"Resource failed to load"))};;$RR("');
27
27
  r('$RR("');r('","');r('",');r('"');r(")\x3c/script>");r('<template data-rci="" data-bid="');r('<template data-rri="" data-bid="');r('" data-sid="');r('" data-sty="');r('$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};;$RX("');r('$RX("');r('"');r(",");r(")\x3c/script>");r('<template data-rxi="" data-bid="');r('" data-dgst="');r('" data-msg="');r('" data-stck="');r('<style data-precedence="');
28
- r('"></style>');r("[");r(",[");r(",");r("]");var F=null;function G(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");G(a,d);b.context._currentValue=b.value}}}function ta(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&ta(a)}
28
+ r('"></style>');r("[");r(",[");r(",");r("]");var D=null;function G(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var c=b.parent;if(null===a){if(null!==c)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===c)throw Error("The stacks must reach the root at the same time. This is a bug in React.");G(a,c);b.context._currentValue=b.value}}}function ta(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&ta(a)}
29
29
  function ua(a){var b=a.parent;null!==b&&ua(b);a.context._currentValue=a.value}function va(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?G(a,b):va(a,b)}
30
- function wa(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?G(a,d):wa(a,d);b.context._currentValue=b.value}function H(a){var b=F;b!==a&&(null===b?ua(a):null===a?ta(b):b.depth===a.depth?G(b,a):b.depth>a.depth?va(b,a):wa(b,a),F=a)}function xa(a,b){var d=a._currentValue;a._currentValue=b;var c=F;return F=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var I=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`");
31
- function ya(){}function za(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(ya,ya),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(a){if("pending"===b.status){var c=b;c.status="fulfilled";c.value=a}},function(a){if("pending"===b.status){var c=b;c.status="rejected";c.reason=a}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}J=b;throw I;}}var J=null;
30
+ function wa(a,b){var c=b.parent;if(null===c)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===c.depth?G(a,c):wa(a,c);b.context._currentValue=b.value}function H(a){var b=D;b!==a&&(null===b?ua(a):null===a?ta(b):b.depth===a.depth?G(b,a):b.depth>a.depth?va(b,a):wa(b,a),D=a)}function xa(a,b){var c=a._currentValue;a._currentValue=b;var d=D;return D=a={parent:d,depth:null===d?0:d.depth+1,context:a,parentValue:c,value:b}}var I=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`");
31
+ function ya(){}function za(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(ya,ya),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(a){if("pending"===b.status){var c=b;c.status="fulfilled";c.value=a}},function(a){if("pending"===b.status){var c=b;c.status="rejected";c.reason=a}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}J=b;throw I;}}var J=null;
32
32
  function Aa(){if(null===J)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=J;J=null;return a}var K=null,L=0,M=null;function Ba(){var a=M;M=null;return a}function Ca(a){return a._currentValue}
33
- var Ha={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:N,useTransition:N,readContext:Ca,useContext:Ca,useReducer:N,useRef:N,useState:N,useInsertionEffect:N,useLayoutEffect:N,useImperativeHandle:N,useEffect:N,useId:Da,useMutableSource:N,useSyncExternalStore:N,useCacheRefresh:function(){return Ea},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=qa;return b},use:Ga};
33
+ var Ha={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:N,useTransition:N,readContext:Ca,useContext:Ca,useReducer:N,useRef:N,useState:N,useInsertionEffect:N,useLayoutEffect:N,useImperativeHandle:N,useEffect:N,useId:Da,useMutableSource:N,useSyncExternalStore:N,useCacheRefresh:function(){return Ea},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=qa;return b},use:Fa};
34
34
  function N(){throw Error("This Hook is not supported in Server Components.");}function Ea(){throw Error("Refreshing the cache is not supported in Server Components.");}function Da(){if(null===K)throw Error("useId can only be used while React is rendering");var a=K.identifierCount++;return":"+K.identifierPrefix+"S"+a.toString(32)+":"}
35
- function Ga(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=L;L+=1;null===M&&(M=[]);return za(M,a,b)}if(a.$$typeof===ka)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function O(){return(new AbortController).signal}function Ia(){if(P)return P;if(e){var a=fa.getStore();if(a)return a}return new Map}
36
- var Ja={getCacheSignal:function(){var a=Ia(),b=a.get(O);void 0===b&&(b=O(),a.set(O,b));return b},getCacheForType:function(a){var b=Ia(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},P=null,Q=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Q.ContextRegistry,S=Q.ReactCurrentDispatcher,T=Q.ReactCurrentCache;function Ka(a){console.error(a)}
37
- function La(a,b,d,c,f){if(null!==T.current&&T.current!==Ja)throw Error("Currently React only supports one RSC renderer at a time.");T.current=Ja;var g=new Set,h=[],k={status:0,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,abortableTasks:g,pingedTasks:h,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,writtenProviders:new Map,identifierPrefix:f||"",identifierCount:1,onError:void 0===
38
- d?Ka:d,toJSON:function(a,b){return Ma(k,this,a,b)}};k.pendingChunks++;b=Na(c);a=Oa(k,a,b,g);h.push(a);return k}var Pa={};function Qa(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
39
- function Ra(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:y,_payload:a,_init:Qa}}
40
- function U(a,b,d,c,f){if(null!==d&&void 0!==d)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof a){if(a.$$typeof===v)return[w,a,b,c];L=0;M=f;c=a(c);return"object"===typeof c&&null!==c&&"function"===typeof c.then?Ra(c):c}if("string"===typeof a)return[w,a,b,c];if("symbol"===typeof a)return a===ia?c.children:[w,a,b,c];if(null!=a&&"object"===typeof a){if(a.$$typeof===v)return[w,a,b,c];switch(a.$$typeof){case y:var g=a._init;a=g(a._payload);
41
- return U(a,b,d,c,f);case la:return b=a.render,L=0,M=f,b(c,void 0);case oa:return U(a.type,b,d,c,f);case ja:return xa(a._context,c.value),[w,a,b,{value:c.value,children:c.children,__pop:Pa}]}}throw Error("Unsupported Server Component type: "+V(a));}function Oa(a,b,d,c){var f={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){var b=a.pingedTasks;b.push(f);1===b.length&&Sa(a)},thenableState:null};c.add(f);return f}
42
- function Ta(a,b,d,c){var f=c.filepath+"#"+c.name+(c.async?"#async":""),g=a.writtenModules,h=g.get(f);if(void 0!==h)return b[0]===w&&"1"===d?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig.clientManifest[c.filepath][c.name];var l=c.async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var x=a.nextChunkId++,ba=t(l),ca=x.toString(16)+":I"+ba+"\n";var da=q.encode(ca);a.completedModuleChunks.push(da);g.set(f,x);return b[0]===w&&"1"===d?"$L"+x.toString(16):"$"+x.toString(16)}catch(ea){return a.pendingChunks++,
43
- b=a.nextChunkId++,d=W(a,ea),X(a,b,d),"$"+b.toString(16)}}function Ua(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,d){return d})}function V(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(sa(a))return"[...]";a=Ua(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
44
- function Y(a){if("string"===typeof a)return a;switch(a){case ma:return"Suspense";case na:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case la:return Y(a.render);case oa:return Y(a.type);case y:var b=a._payload;a=a._init;try{return Y(a(b))}catch(d){}}return""}
45
- function Z(a,b){var d=Ua(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(sa(a)){var f="[";for(var g=0;g<a.length;g++){0<g&&(f+=", ");var h=a[g];h="object"===typeof h&&null!==h?Z(h):V(h);""+g===b?(d=f.length,c=h.length,f+=h):f=10>h.length&&40>f.length+h.length?f+h:f+"..."}f+="]"}else if(a.$$typeof===w)f="<"+Y(a.type)+"/>";else{f="{";g=Object.keys(a);for(h=0;h<g.length;h++){0<h&&(f+=", ");var k=g[h],l=JSON.stringify(k);f+=('"'+k+'"'===l?k:l)+": ";l=a[k];l="object"===typeof l&&null!==l?Z(l):
46
- V(l);k===b?(d=f.length,c=l.length,f+=l):f=10>l.length&&40>f.length+l.length?f+l:f+"..."}f+="}"}return void 0===b?f:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+f+"\n "+a):"\n "+f}
47
- function Ma(a,b,d,c){switch(c){case w:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===w||c.$$typeof===y);)try{switch(c.$$typeof){case w:var f=c;c=U(f.type,f.key,f.ref,f.props,null);break;case y:var g=c._init;c=g(c._payload)}}catch(h){d=h===I?Aa():h;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Oa(a,c,F,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ba(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=W(a,d);X(a,c,d);return"$L"+
48
- c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===v)return Ta(a,b,d,c);if(c.$$typeof===ja)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=u(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===Pa){a=F;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=c===pa?a.context._defaultValue:c;F=a.parent;
49
- return}return c}if("string"===typeof c)return a="$"===c[0]?"$"+c:c,a;if("boolean"===typeof c||"number"===typeof c||"undefined"===typeof c)return c;if("function"===typeof c){if(c.$$typeof===v)return Ta(a,b,d,c);if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+Z(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error("Functions cannot be passed directly to Client Components because they're not serializable."+
50
- Z(b,d));}if("symbol"===typeof c){f=a.writtenSymbols;g=f.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+Z(b,d));a.pendingChunks++;d=a.nextChunkId++;b=u(a,d,"$S"+g);a.completedModuleChunks.push(b);f.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)throw Error("BigInt ("+c+") is not yet supported in Client Component props."+
51
- Z(b,d));throw Error("Type "+typeof c+" is not supported in Client Component props."+Z(b,d));}function W(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function Va(a,b){null!==a.destination?(a.status=2,ha(a.destination,b)):(a.status=1,a.fatalError=b)}
52
- function X(a,b,d){d={digest:d};b=b.toString(16)+":E"+t(d)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}
53
- function Sa(a){var b=S.current,d=P;S.current=Ha;P=a.cache;K=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var f=0;f<c.length;f++){var g=c[f];var h=a;if(0===g.status){H(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===w){var l=k,x=g.thenableState;g.model=k;k=U(l.type,l.key,l.ref,l.props,x);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===w;)l=k,g.model=k,k=U(l.type,l.key,l.ref,l.props,null)}var ba=g.id,ca=t(k,h.toJSON),da=ba.toString(16)+":"+ca+"\n";
54
- var ea=q.encode(da);h.completedJSONChunks.push(ea);h.abortableTasks.delete(g);g.status=1}catch(D){var E=D===I?Aa():D;if("object"===typeof E&&null!==E&&"function"===typeof E.then){var Fa=g.ping;E.then(Fa,Fa);g.thenableState=Ba()}else{h.abortableTasks.delete(g);g.status=4;var Ya=W(h,E);X(h,g.id,Ya)}}}}null!==a.destination&&Wa(a,a.destination)}catch(D){W(a,D),Va(a,D)}finally{S.current=b,P=d,K=null}}
55
- function Wa(a,b){m=new Uint8Array(512);n=0;try{for(var d=a.completedModuleChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!p(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!p(b,f[c])){a.destination=null;c++;break}f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!p(b,g[c])){a.destination=null;c++;break}g.splice(0,c)}finally{m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===
56
- a.pendingChunks&&b.close()}function Xa(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=W(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var f=a.nextChunkId++;X(a,f,c);d.forEach(function(b){b.status=3;var c="$"+f.toString(16);b=u(a,b.id,c);a.completedErrorChunks.push(b)});d.clear()}null!==a.destination&&Wa(a,a.destination)}catch(g){W(a,g),Va(a,g)}}
57
- function Na(a){if(a){var b=F;H(null);for(var d=0;d<a.length;d++){var c=a[d],f=c[0];c=c[1];R[f]||(R[f]=aa.createServerContext(f,pa));xa(R[f],c)}a=F;H(b);return a}return null}
58
- exports.renderToReadableStream=function(a,b,d){var c=La(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var f=d.signal;if(f.aborted)Xa(c,f.reason);else{var g=function(){Xa(c,f.reason);f.removeEventListener("abort",g)};f.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){e?fa.run(c.cache,Sa,c):Sa(c)},pull:function(a){if(1===c.status)c.status=2,ha(a,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=a;try{Wa(c,
59
- a)}catch(k){W(c,k),Va(c,k)}}},cancel:function(){}},{highWaterMark:0})};
35
+ function Fa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=L;L+=1;null===M&&(M=[]);return za(M,a,b)}if(a.$$typeof===ka)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function O(){return(new AbortController).signal}function Ia(){if(P)return P;if(e){var a=ba.getStore();if(a)return a}return new Map}
36
+ var Ja={getCacheSignal:function(){var a=Ia(),b=a.get(O);void 0===b&&(b=O(),a.set(O,b));return b},getCacheForType:function(a){var b=Ia(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},P=null,Q=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Q.ContextRegistry,S=Q.ReactCurrentDispatcher,T=Q.ReactCurrentCache;function Ka(a){console.error(a)}
37
+ function La(a,b,c,d,f){if(null!==T.current&&T.current!==Ja)throw Error("Currently React only supports one RSC renderer at a time.");T.current=Ja;var g=new Set,h=[],k={status:0,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,abortableTasks:g,pingedTasks:h,completedModuleChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenModules:new Map,writtenProviders:new Map,identifierPrefix:f||"",identifierCount:1,onError:void 0===
38
+ c?Ka:c,toJSON:function(a,b){return Ma(k,this,a,b)}};k.pendingChunks++;b=Na(d);a=U(k,a,b,g);h.push(a);return k}var Oa={};
39
+ function Pa(a,b){a.pendingChunks++;var c=U(a,null,D,a.abortableTasks);switch(b.status){case "fulfilled":return c.model=b.value,Qa(a,c),c.id;case "rejected":var d=V(a,b.reason);W(a,c.id,d);return c.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(a){"pending"===b.status&&(b.status="fulfilled",b.value=a)},function(a){"pending"===b.status&&(b.status="rejected",b.reason=a)}))}b.then(function(b){c.model=b;Qa(a,c)},function(b){b=V(a,b);W(a,c.id,b)});return c.id}
40
+ function Ra(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function Sa(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:y,_payload:a,_init:Ra}}
41
+ function X(a,b,c,d,f,g){if(null!==d&&void 0!==d)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===v)return[w,b,c,f];L=0;M=g;f=b(f);return"object"===typeof f&&null!==f&&"function"===typeof f.then?"fulfilled"===f.status?f.value:Sa(f):f}if("string"===typeof b)return[w,b,c,f];if("symbol"===typeof b)return b===ia?f.children:[w,b,c,f];if(null!=b&&"object"===typeof b){if(b.$$typeof===v)return[w,b,c,f];switch(b.$$typeof){case y:var h=
42
+ b._init;b=h(b._payload);return X(a,b,c,d,f,g);case la:return a=b.render,L=0,M=g,a(f,void 0);case oa:return X(a,b.type,c,d,f,g);case ja:return xa(b._context,f.value),[w,b,c,{value:f.value,children:f.children,__pop:Oa}]}}throw Error("Unsupported Server Component type: "+Ta(b));}function Qa(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&Ua(a)}function U(a,b,c,d){var f={id:a.nextChunkId++,status:0,model:b,context:c,ping:function(){return Qa(a,f)},thenableState:null};d.add(f);return f}
43
+ function Va(a,b,c,d){var f=d.filepath+"#"+d.name+(d.async?"#async":""),g=a.writtenModules,h=g.get(f);if(void 0!==h)return b[0]===w&&"1"===c?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig.clientManifest[d.filepath][d.name];var l=d.async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var x=a.nextChunkId++,da=t(l),ea=x.toString(16)+":I"+da+"\n";var fa=q.encode(ea);a.completedModuleChunks.push(fa);g.set(f,x);return b[0]===w&&"1"===c?"$L"+x.toString(16):"$"+x.toString(16)}catch(ha){return a.pendingChunks++,
44
+ b=a.nextChunkId++,c=V(a,ha),W(a,b,c),"$"+b.toString(16)}}function Wa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(a,c){return c})}function Ta(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(sa(a))return"[...]";a=Wa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
45
+ function Y(a){if("string"===typeof a)return a;switch(a){case ma:return"Suspense";case na:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case la:return Y(a.render);case oa:return Y(a.type);case y:var b=a._payload;a=a._init;try{return Y(a(b))}catch(c){}}return""}
46
+ function Z(a,b){var c=Wa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(sa(a)){var f="[";for(var g=0;g<a.length;g++){0<g&&(f+=", ");var h=a[g];h="object"===typeof h&&null!==h?Z(h):Ta(h);""+g===b?(c=f.length,d=h.length,f+=h):f=10>h.length&&40>f.length+h.length?f+h:f+"..."}f+="]"}else if(a.$$typeof===w)f="<"+Y(a.type)+"/>";else{f="{";g=Object.keys(a);for(h=0;h<g.length;h++){0<h&&(f+=", ");var k=g[h],l=JSON.stringify(k);f+=('"'+k+'"'===l?k:l)+": ";l=a[k];l="object"===typeof l&&null!==l?Z(l):
47
+ Ta(l);k===b?(c=f.length,d=l.length,f+=l):f=10>l.length&&40>f.length+l.length?f+l:f+"..."}f+="}"}return void 0===b?f:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+f+"\n "+a):"\n "+f}
48
+ function Ma(a,b,c,d){switch(d){case w:return"$"}for(;"object"===typeof d&&null!==d&&(d.$$typeof===w||d.$$typeof===y);)try{switch(d.$$typeof){case w:var f=d;d=X(a,f.type,f.key,f.ref,f.props,null);break;case y:var g=d._init;d=g(d._payload)}}catch(h){c=h===I?Aa():h;if("object"===typeof c&&null!==c&&"function"===typeof c.then)return a.pendingChunks++,a=U(a,d,D,a.abortableTasks),d=a.ping,c.then(d,d),a.thenableState=Ba(),"$L"+a.id.toString(16);a.pendingChunks++;d=a.nextChunkId++;c=V(a,c);W(a,d,c);return"$L"+
49
+ d.toString(16)}if(null===d)return null;if("object"===typeof d){if(d.$$typeof===v)return Va(a,b,c,d);if("function"===typeof d.then)return"$@"+Pa(a,d).toString(16);if(d.$$typeof===ja)return d=d._context._globalName,b=a.writtenProviders,c=b.get(c),void 0===c&&(a.pendingChunks++,c=a.nextChunkId++,b.set(d,c),d=u(a,c,"$P"+d),a.completedJSONChunks.push(d)),"$"+c.toString(16);if(d===Oa){a=D;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");d=a.parentValue;a.context._currentValue=
50
+ d===pa?a.context._defaultValue:d;D=a.parent;return}return d}if("string"===typeof d)return a="$"===d[0]?"$"+d:d,a;if("boolean"===typeof d||"number"===typeof d||"undefined"===typeof d)return d;if("function"===typeof d){if(d.$$typeof===v)return Va(a,b,c,d);if(/^on[A-Z]/.test(c))throw Error("Event handlers cannot be passed to Client Component props."+Z(b,c)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error("Functions cannot be passed directly to Client Components because they're not serializable."+
51
+ Z(b,c));}if("symbol"===typeof d){f=a.writtenSymbols;g=f.get(d);if(void 0!==g)return"$"+g.toString(16);g=d.description;if(Symbol.for(g)!==d)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(d.description+") cannot be found among global symbols.")+Z(b,c));a.pendingChunks++;c=a.nextChunkId++;b=u(a,c,"$S"+g);a.completedModuleChunks.push(b);f.set(d,c);return"$"+c.toString(16)}if("bigint"===typeof d)throw Error("BigInt ("+d+") is not yet supported in Client Component props."+
52
+ Z(b,c));throw Error("Type "+typeof d+" is not supported in Client Component props."+Z(b,c));}function V(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function Xa(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
53
+ function W(a,b,c){c={digest:c};b=b.toString(16)+":E"+t(c)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}
54
+ function Ua(a){var b=S.current,c=P;S.current=Ha;P=a.cache;K=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var f=0;f<d.length;f++){var g=d[f];var h=a;if(0===g.status){H(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===w){var l=k,x=g.thenableState;g.model=k;k=X(h,l.type,l.key,l.ref,l.props,x);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===w;)l=k,g.model=k,k=X(h,l.type,l.key,l.ref,l.props,null)}var da=g.id,ea=t(k,h.toJSON),fa=da.toString(16)+":"+ea+"\n";
55
+ var ha=q.encode(fa);h.completedJSONChunks.push(ha);h.abortableTasks.delete(g);g.status=1}catch(E){var F=E===I?Aa():E;if("object"===typeof F&&null!==F&&"function"===typeof F.then){var Ga=g.ping;F.then(Ga,Ga);g.thenableState=Ba()}else{h.abortableTasks.delete(g);g.status=4;var $a=V(h,F);W(h,g.id,$a)}}}}null!==a.destination&&Ya(a,a.destination)}catch(E){V(a,E),Xa(a,E)}finally{S.current=b,P=c,K=null}}
56
+ function Ya(a,b){m=new Uint8Array(512);n=0;try{for(var c=a.completedModuleChunks,d=0;d<c.length;d++)if(a.pendingChunks--,!p(b,c[d])){a.destination=null;d++;break}c.splice(0,d);var f=a.completedJSONChunks;for(d=0;d<f.length;d++)if(a.pendingChunks--,!p(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--,!p(b,g[d])){a.destination=null;d++;break}g.splice(0,d)}finally{m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===
57
+ a.pendingChunks&&b.close()}function Za(a,b){try{var c=a.abortableTasks;if(0<c.size){var d=V(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var f=a.nextChunkId++;W(a,f,d);c.forEach(function(b){b.status=3;var c="$"+f.toString(16);b=u(a,b.id,c);a.completedErrorChunks.push(b)});c.clear()}null!==a.destination&&Ya(a,a.destination)}catch(g){V(a,g),Xa(a,g)}}
58
+ function Na(a){if(a){var b=D;H(null);for(var c=0;c<a.length;c++){var d=a[c],f=d[0];d=d[1];R[f]||(R[f]=aa.createServerContext(f,pa));xa(R[f],d)}a=D;H(b);return a}return null}
59
+ exports.renderToReadableStream=function(a,b,c){var d=La(a,b,c?c.onError:void 0,c?c.context:void 0,c?c.identifierPrefix:void 0);if(c&&c.signal){var f=c.signal;if(f.aborted)Za(d,f.reason);else{var g=function(){Za(d,f.reason);f.removeEventListener("abort",g)};f.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){e?ba.run(d.cache,Ua,d):Ua(d)},pull:function(a){if(1===d.status)d.status=2,ca(a,d.fatalError);else if(2!==d.status&&null===d.destination){d.destination=a;try{Ya(d,
60
+ a)}catch(k){V(d,k),Xa(d,k)}}},cancel:function(){}},{highWaterMark:0})};