@expo/cli 54.1.0-canary-20251015-a6a1272 → 54.1.0-canary-20251023-4c86f95

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 (121) hide show
  1. package/build/bin/cli +1 -1
  2. package/build/src/export/embed/exportEmbedAsync.js +43 -3
  3. package/build/src/export/embed/exportEmbedAsync.js.map +1 -1
  4. package/build/src/export/embed/resolveOptions.js.map +1 -1
  5. package/build/src/export/index.js +2 -1
  6. package/build/src/export/index.js.map +1 -1
  7. package/build/src/export/resolveOptions.js +1 -1
  8. package/build/src/export/resolveOptions.js.map +1 -1
  9. package/build/src/start/server/metro/MetroBundlerDevServer.js +29 -9
  10. package/build/src/start/server/metro/MetroBundlerDevServer.js.map +1 -1
  11. package/build/src/start/server/metro/MetroTerminalReporter.js +2 -4
  12. package/build/src/start/server/metro/MetroTerminalReporter.js.map +1 -1
  13. package/build/src/start/server/metro/createServerRouteMiddleware.js.map +1 -1
  14. package/build/src/start/server/metro/externals.js +0 -11
  15. package/build/src/start/server/metro/externals.js.map +1 -1
  16. package/build/src/start/server/metro/fetchRouterManifest.js +1 -1
  17. package/build/src/start/server/metro/fetchRouterManifest.js.map +1 -1
  18. package/build/src/start/server/metro/getCssModulesFromBundler.js.map +1 -1
  19. package/build/src/start/server/metro/instantiateMetro.js +14 -10
  20. package/build/src/start/server/metro/instantiateMetro.js.map +1 -1
  21. package/build/src/start/server/metro/log-box/LogBoxLog.js +11 -7
  22. package/build/src/start/server/metro/log-box/LogBoxLog.js.map +1 -1
  23. package/build/src/start/server/metro/log-box/LogBoxSymbolication.js.map +1 -1
  24. package/build/src/start/server/metro/metroErrorInterface.js +14 -43
  25. package/build/src/start/server/metro/metroErrorInterface.js.map +1 -1
  26. package/build/src/start/server/metro/withMetroMultiPlatform.js +55 -43
  27. package/build/src/start/server/metro/withMetroMultiPlatform.js.map +1 -1
  28. package/build/src/start/server/middleware/metroOptions.js.map +1 -1
  29. package/build/src/start/server/serverLogLikeMetro.js +1 -1
  30. package/build/src/start/server/serverLogLikeMetro.js.map +1 -1
  31. package/build/src/utils/env.js +6 -0
  32. package/build/src/utils/env.js.map +1 -1
  33. package/build/src/utils/telemetry/clients/FetchClient.js +1 -1
  34. package/build/src/utils/telemetry/utils/context.js +1 -1
  35. package/package.json +20 -18
  36. package/static/canary/react-is/cjs/react-is.development.js +0 -133
  37. package/static/canary/react-is/cjs/react-is.production.js +0 -130
  38. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js +0 -16820
  39. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js +0 -10552
  40. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js +0 -11255
  41. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +0 -17064
  42. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +0 -10742
  43. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +0 -11450
  44. package/static/canary/scheduler/cjs/scheduler-unstable_mock.development.js +0 -414
  45. package/static/canary/scheduler/cjs/scheduler-unstable_mock.production.js +0 -406
  46. package/static/canary/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -150
  47. package/static/canary/scheduler/cjs/scheduler-unstable_post_task.production.js +0 -140
  48. package/static/canary/scheduler/cjs/scheduler.development.js +0 -364
  49. package/static/canary/scheduler/cjs/scheduler.native.development.js +0 -350
  50. package/static/canary/scheduler/cjs/scheduler.native.production.js +0 -330
  51. package/static/canary/scheduler/cjs/scheduler.production.js +0 -340
  52. package/static/canary-full/node_modules/react/LICENSE +0 -21
  53. package/static/canary-full/node_modules/react/README.md +0 -37
  54. package/static/canary-full/node_modules/react/cjs/react-compiler-runtime.development.js +0 -24
  55. package/static/canary-full/node_modules/react/cjs/react-compiler-runtime.production.js +0 -16
  56. package/static/canary-full/node_modules/react/cjs/react-compiler-runtime.profiling.js +0 -16
  57. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -349
  58. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.production.js +0 -14
  59. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.profiling.js +0 -14
  60. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.react-server.development.js +0 -385
  61. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.react-server.production.js +0 -40
  62. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.development.js +0 -358
  63. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.production.js +0 -34
  64. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.profiling.js +0 -34
  65. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.react-server.development.js +0 -385
  66. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.react-server.production.js +0 -40
  67. package/static/canary-full/node_modules/react/cjs/react.development.js +0 -1250
  68. package/static/canary-full/node_modules/react/cjs/react.production.js +0 -544
  69. package/static/canary-full/node_modules/react/cjs/react.react-server.development.js +0 -815
  70. package/static/canary-full/node_modules/react/cjs/react.react-server.production.js +0 -429
  71. package/static/canary-full/node_modules/react/compiler-runtime.js +0 -14
  72. package/static/canary-full/node_modules/react/index.js +0 -7
  73. package/static/canary-full/node_modules/react/jsx-dev-runtime.js +0 -7
  74. package/static/canary-full/node_modules/react/jsx-dev-runtime.react-server.js +0 -7
  75. package/static/canary-full/node_modules/react/jsx-runtime.js +0 -7
  76. package/static/canary-full/node_modules/react/jsx-runtime.react-server.js +0 -7
  77. package/static/canary-full/node_modules/react/package.json +0 -51
  78. package/static/canary-full/node_modules/react/react.react-server.js +0 -7
  79. package/static/canary-full/node_modules/react-dom/LICENSE +0 -21
  80. package/static/canary-full/node_modules/react-dom/README.md +0 -60
  81. package/static/canary-full/node_modules/react-dom/cjs/react-dom-client.development.js +0 -25089
  82. package/static/canary-full/node_modules/react-dom/cjs/react-dom-client.production.js +0 -15426
  83. package/static/canary-full/node_modules/react-dom/cjs/react-dom-profiling.development.js +0 -25476
  84. package/static/canary-full/node_modules/react-dom/cjs/react-dom-profiling.profiling.js +0 -16296
  85. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -9035
  86. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +0 -5892
  87. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js +0 -9035
  88. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +0 -5972
  89. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -9424
  90. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.browser.production.js +0 -6384
  91. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.bun.development.js +0 -8739
  92. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.bun.production.js +0 -5967
  93. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.edge.development.js +0 -9443
  94. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.edge.production.js +0 -6477
  95. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -9317
  96. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.node.production.js +0 -6372
  97. package/static/canary-full/node_modules/react-dom/cjs/react-dom-test-utils.development.js +0 -24
  98. package/static/canary-full/node_modules/react-dom/cjs/react-dom-test-utils.production.js +0 -21
  99. package/static/canary-full/node_modules/react-dom/cjs/react-dom.development.js +0 -424
  100. package/static/canary-full/node_modules/react-dom/cjs/react-dom.production.js +0 -210
  101. package/static/canary-full/node_modules/react-dom/cjs/react-dom.react-server.development.js +0 -340
  102. package/static/canary-full/node_modules/react-dom/cjs/react-dom.react-server.production.js +0 -152
  103. package/static/canary-full/node_modules/react-dom/client.js +0 -38
  104. package/static/canary-full/node_modules/react-dom/client.react-server.js +0 -5
  105. package/static/canary-full/node_modules/react-dom/index.js +0 -38
  106. package/static/canary-full/node_modules/react-dom/package.json +0 -117
  107. package/static/canary-full/node_modules/react-dom/profiling.js +0 -38
  108. package/static/canary-full/node_modules/react-dom/profiling.react-server.js +0 -5
  109. package/static/canary-full/node_modules/react-dom/react-dom.react-server.js +0 -7
  110. package/static/canary-full/node_modules/react-dom/server.browser.js +0 -18
  111. package/static/canary-full/node_modules/react-dom/server.bun.js +0 -19
  112. package/static/canary-full/node_modules/react-dom/server.edge.js +0 -19
  113. package/static/canary-full/node_modules/react-dom/server.js +0 -3
  114. package/static/canary-full/node_modules/react-dom/server.node.js +0 -18
  115. package/static/canary-full/node_modules/react-dom/server.react-server.js +0 -5
  116. package/static/canary-full/node_modules/react-dom/static.browser.js +0 -12
  117. package/static/canary-full/node_modules/react-dom/static.edge.js +0 -12
  118. package/static/canary-full/node_modules/react-dom/static.js +0 -3
  119. package/static/canary-full/node_modules/react-dom/static.node.js +0 -12
  120. package/static/canary-full/node_modules/react-dom/static.react-server.js +0 -5
  121. package/static/canary-full/node_modules/react-dom/test-utils.js +0 -7
@@ -1,815 +0,0 @@
1
- /**
2
- * @license React
3
- * react.react-server.development.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
-
11
- "use strict";
12
- "production" !== process.env.NODE_ENV &&
13
- (function () {
14
- function getIteratorFn(maybeIterable) {
15
- if (null === maybeIterable || "object" !== typeof maybeIterable)
16
- return null;
17
- maybeIterable =
18
- (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
19
- maybeIterable["@@iterator"];
20
- return "function" === typeof maybeIterable ? maybeIterable : null;
21
- }
22
- function testStringCoercion(value) {
23
- return "" + value;
24
- }
25
- function checkKeyStringCoercion(value) {
26
- try {
27
- testStringCoercion(value);
28
- var JSCompiler_inline_result = !1;
29
- } catch (e) {
30
- JSCompiler_inline_result = !0;
31
- }
32
- if (JSCompiler_inline_result) {
33
- JSCompiler_inline_result = console;
34
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
35
- var JSCompiler_inline_result$jscomp$0 =
36
- ("function" === typeof Symbol &&
37
- Symbol.toStringTag &&
38
- value[Symbol.toStringTag]) ||
39
- value.constructor.name ||
40
- "Object";
41
- JSCompiler_temp_const.call(
42
- JSCompiler_inline_result,
43
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
44
- JSCompiler_inline_result$jscomp$0
45
- );
46
- return testStringCoercion(value);
47
- }
48
- }
49
- function getComponentNameFromType(type) {
50
- if (null == type) return null;
51
- if ("function" === typeof type)
52
- return type.$$typeof === REACT_CLIENT_REFERENCE
53
- ? null
54
- : type.displayName || type.name || null;
55
- if ("string" === typeof type) return type;
56
- switch (type) {
57
- case REACT_FRAGMENT_TYPE:
58
- return "Fragment";
59
- case REACT_PROFILER_TYPE:
60
- return "Profiler";
61
- case REACT_STRICT_MODE_TYPE:
62
- return "StrictMode";
63
- case REACT_SUSPENSE_TYPE:
64
- return "Suspense";
65
- case REACT_SUSPENSE_LIST_TYPE:
66
- return "SuspenseList";
67
- case REACT_ACTIVITY_TYPE:
68
- return "Activity";
69
- }
70
- if ("object" === typeof type)
71
- switch (
72
- ("number" === typeof type.tag &&
73
- console.error(
74
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
75
- ),
76
- type.$$typeof)
77
- ) {
78
- case REACT_PORTAL_TYPE:
79
- return "Portal";
80
- case REACT_CONTEXT_TYPE:
81
- return (type.displayName || "Context") + ".Provider";
82
- case REACT_CONSUMER_TYPE:
83
- return (type._context.displayName || "Context") + ".Consumer";
84
- case REACT_FORWARD_REF_TYPE:
85
- var innerType = type.render;
86
- type = type.displayName;
87
- type ||
88
- ((type = innerType.displayName || innerType.name || ""),
89
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
90
- return type;
91
- case REACT_MEMO_TYPE:
92
- return (
93
- (innerType = type.displayName || null),
94
- null !== innerType
95
- ? innerType
96
- : getComponentNameFromType(type.type) || "Memo"
97
- );
98
- case REACT_LAZY_TYPE:
99
- innerType = type._payload;
100
- type = type._init;
101
- try {
102
- return getComponentNameFromType(type(innerType));
103
- } catch (x) {}
104
- }
105
- return null;
106
- }
107
- function getTaskName(type) {
108
- if (type === REACT_FRAGMENT_TYPE) return "<>";
109
- if (
110
- "object" === typeof type &&
111
- null !== type &&
112
- type.$$typeof === REACT_LAZY_TYPE
113
- )
114
- return "<...>";
115
- try {
116
- var name = getComponentNameFromType(type);
117
- return name ? "<" + name + ">" : "<...>";
118
- } catch (x) {
119
- return "<...>";
120
- }
121
- }
122
- function getOwner() {
123
- var dispatcher = ReactSharedInternals.A;
124
- return null === dispatcher ? null : dispatcher.getOwner();
125
- }
126
- function UnknownOwner() {
127
- return Error("react-stack-top-frame");
128
- }
129
- function hasValidKey(config) {
130
- if (hasOwnProperty.call(config, "key")) {
131
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
132
- if (getter && getter.isReactWarning) return !1;
133
- }
134
- return void 0 !== config.key;
135
- }
136
- function defineKeyPropWarningGetter(props, displayName) {
137
- function warnAboutAccessingKey() {
138
- specialPropKeyWarningShown ||
139
- ((specialPropKeyWarningShown = !0),
140
- console.error(
141
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
142
- displayName
143
- ));
144
- }
145
- warnAboutAccessingKey.isReactWarning = !0;
146
- Object.defineProperty(props, "key", {
147
- get: warnAboutAccessingKey,
148
- configurable: !0
149
- });
150
- }
151
- function elementRefGetterWithDeprecationWarning() {
152
- var componentName = getComponentNameFromType(this.type);
153
- didWarnAboutElementRef[componentName] ||
154
- ((didWarnAboutElementRef[componentName] = !0),
155
- console.error(
156
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
157
- ));
158
- componentName = this.props.ref;
159
- return void 0 !== componentName ? componentName : null;
160
- }
161
- function ReactElement(
162
- type,
163
- key,
164
- self,
165
- source,
166
- owner,
167
- props,
168
- debugStack,
169
- debugTask
170
- ) {
171
- self = props.ref;
172
- type = {
173
- $$typeof: REACT_ELEMENT_TYPE,
174
- type: type,
175
- key: key,
176
- props: props,
177
- _owner: owner
178
- };
179
- null !== (void 0 !== self ? self : null)
180
- ? Object.defineProperty(type, "ref", {
181
- enumerable: !1,
182
- get: elementRefGetterWithDeprecationWarning
183
- })
184
- : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
185
- type._store = {};
186
- Object.defineProperty(type._store, "validated", {
187
- configurable: !1,
188
- enumerable: !1,
189
- writable: !0,
190
- value: 0
191
- });
192
- Object.defineProperty(type, "_debugInfo", {
193
- configurable: !1,
194
- enumerable: !1,
195
- writable: !0,
196
- value: null
197
- });
198
- Object.defineProperty(type, "_debugStack", {
199
- configurable: !1,
200
- enumerable: !1,
201
- writable: !0,
202
- value: debugStack
203
- });
204
- Object.defineProperty(type, "_debugTask", {
205
- configurable: !1,
206
- enumerable: !1,
207
- writable: !0,
208
- value: debugTask
209
- });
210
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
211
- return type;
212
- }
213
- function cloneAndReplaceKey(oldElement, newKey) {
214
- newKey = ReactElement(
215
- oldElement.type,
216
- newKey,
217
- void 0,
218
- void 0,
219
- oldElement._owner,
220
- oldElement.props,
221
- oldElement._debugStack,
222
- oldElement._debugTask
223
- );
224
- oldElement._store &&
225
- (newKey._store.validated = oldElement._store.validated);
226
- return newKey;
227
- }
228
- function isValidElement(object) {
229
- return (
230
- "object" === typeof object &&
231
- null !== object &&
232
- object.$$typeof === REACT_ELEMENT_TYPE
233
- );
234
- }
235
- function escape(key) {
236
- var escaperLookup = { "=": "=0", ":": "=2" };
237
- return (
238
- "$" +
239
- key.replace(/[=:]/g, function (match) {
240
- return escaperLookup[match];
241
- })
242
- );
243
- }
244
- function getElementKey(element, index) {
245
- return "object" === typeof element &&
246
- null !== element &&
247
- null != element.key
248
- ? (checkKeyStringCoercion(element.key), escape("" + element.key))
249
- : index.toString(36);
250
- }
251
- function noop() {}
252
- function resolveThenable(thenable) {
253
- switch (thenable.status) {
254
- case "fulfilled":
255
- return thenable.value;
256
- case "rejected":
257
- throw thenable.reason;
258
- default:
259
- switch (
260
- ("string" === typeof thenable.status
261
- ? thenable.then(noop, noop)
262
- : ((thenable.status = "pending"),
263
- thenable.then(
264
- function (fulfilledValue) {
265
- "pending" === thenable.status &&
266
- ((thenable.status = "fulfilled"),
267
- (thenable.value = fulfilledValue));
268
- },
269
- function (error) {
270
- "pending" === thenable.status &&
271
- ((thenable.status = "rejected"),
272
- (thenable.reason = error));
273
- }
274
- )),
275
- thenable.status)
276
- ) {
277
- case "fulfilled":
278
- return thenable.value;
279
- case "rejected":
280
- throw thenable.reason;
281
- }
282
- }
283
- throw thenable;
284
- }
285
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
286
- var type = typeof children;
287
- if ("undefined" === type || "boolean" === type) children = null;
288
- var invokeCallback = !1;
289
- if (null === children) invokeCallback = !0;
290
- else
291
- switch (type) {
292
- case "bigint":
293
- case "string":
294
- case "number":
295
- invokeCallback = !0;
296
- break;
297
- case "object":
298
- switch (children.$$typeof) {
299
- case REACT_ELEMENT_TYPE:
300
- case REACT_PORTAL_TYPE:
301
- invokeCallback = !0;
302
- break;
303
- case REACT_LAZY_TYPE:
304
- return (
305
- (invokeCallback = children._init),
306
- mapIntoArray(
307
- invokeCallback(children._payload),
308
- array,
309
- escapedPrefix,
310
- nameSoFar,
311
- callback
312
- )
313
- );
314
- }
315
- }
316
- if (invokeCallback) {
317
- invokeCallback = children;
318
- callback = callback(invokeCallback);
319
- var childKey =
320
- "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
321
- isArrayImpl(callback)
322
- ? ((escapedPrefix = ""),
323
- null != childKey &&
324
- (escapedPrefix =
325
- childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
326
- mapIntoArray(callback, array, escapedPrefix, "", function (c) {
327
- return c;
328
- }))
329
- : null != callback &&
330
- (isValidElement(callback) &&
331
- (null != callback.key &&
332
- ((invokeCallback && invokeCallback.key === callback.key) ||
333
- checkKeyStringCoercion(callback.key)),
334
- (escapedPrefix = cloneAndReplaceKey(
335
- callback,
336
- escapedPrefix +
337
- (null == callback.key ||
338
- (invokeCallback && invokeCallback.key === callback.key)
339
- ? ""
340
- : ("" + callback.key).replace(
341
- userProvidedKeyEscapeRegex,
342
- "$&/"
343
- ) + "/") +
344
- childKey
345
- )),
346
- "" !== nameSoFar &&
347
- null != invokeCallback &&
348
- isValidElement(invokeCallback) &&
349
- null == invokeCallback.key &&
350
- invokeCallback._store &&
351
- !invokeCallback._store.validated &&
352
- (escapedPrefix._store.validated = 2),
353
- (callback = escapedPrefix)),
354
- array.push(callback));
355
- return 1;
356
- }
357
- invokeCallback = 0;
358
- childKey = "" === nameSoFar ? "." : nameSoFar + ":";
359
- if (isArrayImpl(children))
360
- for (var i = 0; i < children.length; i++)
361
- (nameSoFar = children[i]),
362
- (type = childKey + getElementKey(nameSoFar, i)),
363
- (invokeCallback += mapIntoArray(
364
- nameSoFar,
365
- array,
366
- escapedPrefix,
367
- type,
368
- callback
369
- ));
370
- else if (((i = getIteratorFn(children)), "function" === typeof i))
371
- for (
372
- i === children.entries &&
373
- (didWarnAboutMaps ||
374
- console.warn(
375
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
376
- ),
377
- (didWarnAboutMaps = !0)),
378
- children = i.call(children),
379
- i = 0;
380
- !(nameSoFar = children.next()).done;
381
-
382
- )
383
- (nameSoFar = nameSoFar.value),
384
- (type = childKey + getElementKey(nameSoFar, i++)),
385
- (invokeCallback += mapIntoArray(
386
- nameSoFar,
387
- array,
388
- escapedPrefix,
389
- type,
390
- callback
391
- ));
392
- else if ("object" === type) {
393
- if ("function" === typeof children.then)
394
- return mapIntoArray(
395
- resolveThenable(children),
396
- array,
397
- escapedPrefix,
398
- nameSoFar,
399
- callback
400
- );
401
- array = String(children);
402
- throw Error(
403
- "Objects are not valid as a React child (found: " +
404
- ("[object Object]" === array
405
- ? "object with keys {" + Object.keys(children).join(", ") + "}"
406
- : array) +
407
- "). If you meant to render a collection of children, use an array instead."
408
- );
409
- }
410
- return invokeCallback;
411
- }
412
- function mapChildren(children, func, context) {
413
- if (null == children) return children;
414
- var result = [],
415
- count = 0;
416
- mapIntoArray(children, result, "", "", function (child) {
417
- return func.call(context, child, count++);
418
- });
419
- return result;
420
- }
421
- function resolveDispatcher() {
422
- var dispatcher = ReactSharedInternals.H;
423
- null === dispatcher &&
424
- console.error(
425
- "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
426
- );
427
- return dispatcher;
428
- }
429
- function lazyInitializer(payload) {
430
- if (-1 === payload._status) {
431
- var ctor = payload._result;
432
- ctor = ctor();
433
- ctor.then(
434
- function (moduleObject) {
435
- if (0 === payload._status || -1 === payload._status)
436
- (payload._status = 1), (payload._result = moduleObject);
437
- },
438
- function (error) {
439
- if (0 === payload._status || -1 === payload._status)
440
- (payload._status = 2), (payload._result = error);
441
- }
442
- );
443
- -1 === payload._status &&
444
- ((payload._status = 0), (payload._result = ctor));
445
- }
446
- if (1 === payload._status)
447
- return (
448
- (ctor = payload._result),
449
- void 0 === ctor &&
450
- console.error(
451
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
452
- ctor
453
- ),
454
- "default" in ctor ||
455
- console.error(
456
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
457
- ctor
458
- ),
459
- ctor.default
460
- );
461
- throw payload._result;
462
- }
463
- function createCacheRoot() {
464
- return new WeakMap();
465
- }
466
- function createCacheNode() {
467
- return { s: 0, v: void 0, o: null, p: null };
468
- }
469
- var ReactSharedInternals = {
470
- H: null,
471
- A: null,
472
- getCurrentStack: null,
473
- recentlyCreatedOwnerStacks: 0
474
- },
475
- isArrayImpl = Array.isArray,
476
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
477
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
478
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
479
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
480
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
481
- Symbol.for("react.provider");
482
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
483
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
484
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
485
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
486
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
487
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
488
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
489
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
490
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
491
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
492
- hasOwnProperty = Object.prototype.hasOwnProperty,
493
- assign = Object.assign,
494
- createTask = console.createTask
495
- ? console.createTask
496
- : function () {
497
- return null;
498
- },
499
- createFakeCallStack = {
500
- "react-stack-bottom-frame": function (callStackForError) {
501
- return callStackForError();
502
- }
503
- },
504
- specialPropKeyWarningShown,
505
- didWarnAboutOldJSXRuntime;
506
- var didWarnAboutElementRef = {};
507
- var unknownOwnerDebugStack = createFakeCallStack[
508
- "react-stack-bottom-frame"
509
- ].bind(createFakeCallStack, UnknownOwner)();
510
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
511
- var didWarnAboutMaps = !1,
512
- userProvidedKeyEscapeRegex = /\/+/g;
513
- exports.Children = {
514
- map: mapChildren,
515
- forEach: function (children, forEachFunc, forEachContext) {
516
- mapChildren(
517
- children,
518
- function () {
519
- forEachFunc.apply(this, arguments);
520
- },
521
- forEachContext
522
- );
523
- },
524
- count: function (children) {
525
- var n = 0;
526
- mapChildren(children, function () {
527
- n++;
528
- });
529
- return n;
530
- },
531
- toArray: function (children) {
532
- return (
533
- mapChildren(children, function (child) {
534
- return child;
535
- }) || []
536
- );
537
- },
538
- only: function (children) {
539
- if (!isValidElement(children))
540
- throw Error(
541
- "React.Children.only expected to receive a single React element child."
542
- );
543
- return children;
544
- }
545
- };
546
- exports.Fragment = REACT_FRAGMENT_TYPE;
547
- exports.Profiler = REACT_PROFILER_TYPE;
548
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
549
- exports.Suspense = REACT_SUSPENSE_TYPE;
550
- exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
551
- ReactSharedInternals;
552
- exports.cache = function (fn) {
553
- return function () {
554
- var dispatcher = ReactSharedInternals.A;
555
- if (!dispatcher) return fn.apply(null, arguments);
556
- var fnMap = dispatcher.getCacheForType(createCacheRoot);
557
- dispatcher = fnMap.get(fn);
558
- void 0 === dispatcher &&
559
- ((dispatcher = createCacheNode()), fnMap.set(fn, dispatcher));
560
- fnMap = 0;
561
- for (var l = arguments.length; fnMap < l; fnMap++) {
562
- var arg = arguments[fnMap];
563
- if (
564
- "function" === typeof arg ||
565
- ("object" === typeof arg && null !== arg)
566
- ) {
567
- var objectCache = dispatcher.o;
568
- null === objectCache &&
569
- (dispatcher.o = objectCache = new WeakMap());
570
- dispatcher = objectCache.get(arg);
571
- void 0 === dispatcher &&
572
- ((dispatcher = createCacheNode()),
573
- objectCache.set(arg, dispatcher));
574
- } else
575
- (objectCache = dispatcher.p),
576
- null === objectCache && (dispatcher.p = objectCache = new Map()),
577
- (dispatcher = objectCache.get(arg)),
578
- void 0 === dispatcher &&
579
- ((dispatcher = createCacheNode()),
580
- objectCache.set(arg, dispatcher));
581
- }
582
- if (1 === dispatcher.s) return dispatcher.v;
583
- if (2 === dispatcher.s) throw dispatcher.v;
584
- try {
585
- var result = fn.apply(null, arguments);
586
- fnMap = dispatcher;
587
- fnMap.s = 1;
588
- return (fnMap.v = result);
589
- } catch (error) {
590
- throw (
591
- ((result = dispatcher), (result.s = 2), (result.v = error), error)
592
- );
593
- }
594
- };
595
- };
596
- exports.captureOwnerStack = function () {
597
- var getCurrentStack = ReactSharedInternals.getCurrentStack;
598
- return null === getCurrentStack ? null : getCurrentStack();
599
- };
600
- exports.cloneElement = function (element, config, children) {
601
- if (null === element || void 0 === element)
602
- throw Error(
603
- "The argument must be a React element, but you passed " +
604
- element +
605
- "."
606
- );
607
- var props = assign({}, element.props),
608
- key = element.key,
609
- owner = element._owner;
610
- if (null != config) {
611
- var JSCompiler_inline_result;
612
- a: {
613
- if (
614
- hasOwnProperty.call(config, "ref") &&
615
- (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
616
- config,
617
- "ref"
618
- ).get) &&
619
- JSCompiler_inline_result.isReactWarning
620
- ) {
621
- JSCompiler_inline_result = !1;
622
- break a;
623
- }
624
- JSCompiler_inline_result = void 0 !== config.ref;
625
- }
626
- JSCompiler_inline_result && (owner = getOwner());
627
- hasValidKey(config) &&
628
- (checkKeyStringCoercion(config.key), (key = "" + config.key));
629
- for (propName in config)
630
- !hasOwnProperty.call(config, propName) ||
631
- "key" === propName ||
632
- "__self" === propName ||
633
- "__source" === propName ||
634
- ("ref" === propName && void 0 === config.ref) ||
635
- (props[propName] = config[propName]);
636
- }
637
- var propName = arguments.length - 2;
638
- if (1 === propName) props.children = children;
639
- else if (1 < propName) {
640
- JSCompiler_inline_result = Array(propName);
641
- for (var i = 0; i < propName; i++)
642
- JSCompiler_inline_result[i] = arguments[i + 2];
643
- props.children = JSCompiler_inline_result;
644
- }
645
- props = ReactElement(
646
- element.type,
647
- key,
648
- void 0,
649
- void 0,
650
- owner,
651
- props,
652
- element._debugStack,
653
- element._debugTask
654
- );
655
- for (key = 2; key < arguments.length; key++)
656
- (owner = arguments[key]),
657
- isValidElement(owner) && owner._store && (owner._store.validated = 1);
658
- return props;
659
- };
660
- exports.createElement = function (type, config, children) {
661
- for (var i = 2; i < arguments.length; i++) {
662
- var node = arguments[i];
663
- isValidElement(node) && node._store && (node._store.validated = 1);
664
- }
665
- i = {};
666
- node = null;
667
- if (null != config)
668
- for (propName in (didWarnAboutOldJSXRuntime ||
669
- !("__self" in config) ||
670
- "key" in config ||
671
- ((didWarnAboutOldJSXRuntime = !0),
672
- console.warn(
673
- "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
674
- )),
675
- hasValidKey(config) &&
676
- (checkKeyStringCoercion(config.key), (node = "" + config.key)),
677
- config))
678
- hasOwnProperty.call(config, propName) &&
679
- "key" !== propName &&
680
- "__self" !== propName &&
681
- "__source" !== propName &&
682
- (i[propName] = config[propName]);
683
- var childrenLength = arguments.length - 2;
684
- if (1 === childrenLength) i.children = children;
685
- else if (1 < childrenLength) {
686
- for (
687
- var childArray = Array(childrenLength), _i = 0;
688
- _i < childrenLength;
689
- _i++
690
- )
691
- childArray[_i] = arguments[_i + 2];
692
- Object.freeze && Object.freeze(childArray);
693
- i.children = childArray;
694
- }
695
- if (type && type.defaultProps)
696
- for (propName in ((childrenLength = type.defaultProps), childrenLength))
697
- void 0 === i[propName] && (i[propName] = childrenLength[propName]);
698
- node &&
699
- defineKeyPropWarningGetter(
700
- i,
701
- "function" === typeof type
702
- ? type.displayName || type.name || "Unknown"
703
- : type
704
- );
705
- var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
706
- return ReactElement(
707
- type,
708
- node,
709
- void 0,
710
- void 0,
711
- getOwner(),
712
- i,
713
- propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
714
- propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
715
- );
716
- };
717
- exports.createRef = function () {
718
- var refObject = { current: null };
719
- Object.seal(refObject);
720
- return refObject;
721
- };
722
- exports.forwardRef = function (render) {
723
- null != render && render.$$typeof === REACT_MEMO_TYPE
724
- ? console.error(
725
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
726
- )
727
- : "function" !== typeof render
728
- ? console.error(
729
- "forwardRef requires a render function but was given %s.",
730
- null === render ? "null" : typeof render
731
- )
732
- : 0 !== render.length &&
733
- 2 !== render.length &&
734
- console.error(
735
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
736
- 1 === render.length
737
- ? "Did you forget to use the ref parameter?"
738
- : "Any additional parameter will be undefined."
739
- );
740
- null != render &&
741
- null != render.defaultProps &&
742
- console.error(
743
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
744
- );
745
- var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
746
- ownName;
747
- Object.defineProperty(elementType, "displayName", {
748
- enumerable: !1,
749
- configurable: !0,
750
- get: function () {
751
- return ownName;
752
- },
753
- set: function (name) {
754
- ownName = name;
755
- render.name ||
756
- render.displayName ||
757
- (Object.defineProperty(render, "name", { value: name }),
758
- (render.displayName = name));
759
- }
760
- });
761
- return elementType;
762
- };
763
- exports.isValidElement = isValidElement;
764
- exports.lazy = function (ctor) {
765
- return {
766
- $$typeof: REACT_LAZY_TYPE,
767
- _payload: { _status: -1, _result: ctor },
768
- _init: lazyInitializer
769
- };
770
- };
771
- exports.memo = function (type, compare) {
772
- null == type &&
773
- console.error(
774
- "memo: The first argument must be a component. Instead received: %s",
775
- null === type ? "null" : typeof type
776
- );
777
- compare = {
778
- $$typeof: REACT_MEMO_TYPE,
779
- type: type,
780
- compare: void 0 === compare ? null : compare
781
- };
782
- var ownName;
783
- Object.defineProperty(compare, "displayName", {
784
- enumerable: !1,
785
- configurable: !0,
786
- get: function () {
787
- return ownName;
788
- },
789
- set: function (name) {
790
- ownName = name;
791
- type.name ||
792
- type.displayName ||
793
- (Object.defineProperty(type, "name", { value: name }),
794
- (type.displayName = name));
795
- }
796
- });
797
- return compare;
798
- };
799
- exports.use = function (usable) {
800
- return resolveDispatcher().use(usable);
801
- };
802
- exports.useCallback = function (callback, deps) {
803
- return resolveDispatcher().useCallback(callback, deps);
804
- };
805
- exports.useDebugValue = function (value, formatterFn) {
806
- return resolveDispatcher().useDebugValue(value, formatterFn);
807
- };
808
- exports.useId = function () {
809
- return resolveDispatcher().useId();
810
- };
811
- exports.useMemo = function (create, deps) {
812
- return resolveDispatcher().useMemo(create, deps);
813
- };
814
- exports.version = "19.2.0-canary-5252281c-20250408";
815
- })();