@gaddario98/react-native-core 1.0.1 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,12 +1,4198 @@
1
1
  export * from '@gaddario98/react-auth';
2
- export * from '@gaddario98/expo';
2
+ import { setReactNativeStorage } from '@gaddario98/react-native-state';
3
+ export * from '@gaddario98/react-native-state';
4
+ import { setEndpoints } from '@gaddario98/react-queries';
5
+ export * from '@gaddario98/react-queries';
6
+ import { setReactNativePageConfig } from '@gaddario98/react-native-pages';
7
+ export * from '@gaddario98/react-native-pages';
8
+ import { initializeI18n } from '@gaddario98/react-localization';
9
+ export * from '@gaddario98/react-localization';
10
+ import { setAppLinks } from '@gaddario98/react-native-utiles';
11
+ export * from '@gaddario98/react-native-utiles';
12
+ import { KeyboardAvoidingView, Platform } from 'react-native';
13
+ import { setDefaultFormFieldContainer } from '@gaddario98/react-form';
3
14
  export * from '@gaddario98/react-form';
15
+ export * from '@gaddario98/expo';
4
16
  export * from '@gaddario98/react-native-layouts';
5
- export * from '@gaddario98/react-localization';
6
- export * from '@gaddario98/react-native-pages';
7
17
  export * from '@gaddario98/react-native-providers';
8
- export * from '@gaddario98/react-queries';
9
- export * from '@gaddario98/react-native-state';
10
18
  export * from '@gaddario98/react-native-tabs';
11
- export * from '@gaddario98/react-native-utiles';
19
+
20
+ var jsxRuntime = {exports: {}};
21
+
22
+ var reactJsxRuntime_production_min = {};
23
+
24
+ var react = {exports: {}};
25
+
26
+ var react_production_min = {};
27
+
28
+ /**
29
+ * @license React
30
+ * react.production.min.js
31
+ *
32
+ * Copyright (c) Facebook, Inc. and its affiliates.
33
+ *
34
+ * This source code is licensed under the MIT license found in the
35
+ * LICENSE file in the root directory of this source tree.
36
+ */
37
+
38
+ var hasRequiredReact_production_min;
39
+
40
+ function requireReact_production_min () {
41
+ if (hasRequiredReact_production_min) return react_production_min;
42
+ hasRequiredReact_production_min = 1;
43
+ var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return "function"===typeof a?a:null}
44
+ var B={isMounted:function(){return false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}E.prototype.isReactComponent={};
45
+ E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState");};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}var H=G.prototype=new F;
46
+ H.constructor=G;C(H,E.prototype);H.isPureReactComponent=true;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:true,ref:true,__self:true,__source:true};
47
+ function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f;}if(a&&a.defaultProps)for(d in g=a.defaultProps,g) void 0===c[d]&&(c[d]=g[d]);return {$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}
48
+ function N(a,b){return {$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return "object"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g;function Q(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
49
+ function R(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=false;if(null===a)h=true;else switch(k){case "string":case "number":h=true;break;case "object":switch(a.$$typeof){case l:case n:h=true;}}if(h)return h=a,c=c(h),a=""===d?"."+Q(h,0):d,I(c)?(e="",null!=a&&(e=a.replace(P,"$&/")+"/"),R(c,b,e,"",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I(a))for(var g=0;g<a.length;g++){k=
50
+ a[g];var f=d+Q(k,g);h+=R(k,b,e,f,c);}else if(f=A(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}
51
+ function S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,"","",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b;},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b;});-1===a._status&&(a._status=0,a._result=b);}if(1===a._status)return a._result.default;throw a._result;}
52
+ var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};function X(){throw Error("act(...) is not supported in production builds of React.");}
53
+ react_production_min.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments);},e);},count:function(a){var b=0;S(a,function(){b++;});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};react_production_min.Component=E;react_production_min.Fragment=p;react_production_min.Profiler=r;react_production_min.PureComponent=G;react_production_min.StrictMode=q;react_production_min.Suspense=w;
54
+ react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;react_production_min.act=X;
55
+ react_production_min.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){ void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
56
+ for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g;}return {$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};react_production_min.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};react_production_min.createElement=M;react_production_min.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};
57
+ react_production_min.forwardRef=function(a){return {$$typeof:v,render:a}};react_production_min.isValidElement=O;react_production_min.lazy=function(a){return {$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};react_production_min.memo=function(a,b){return {$$typeof:x,type:a,compare:void 0===b?null:b}};react_production_min.startTransition=function(a){var b=V.transition;V.transition={};try{a();}finally{V.transition=b;}};react_production_min.unstable_act=X;react_production_min.useCallback=function(a,b){return U.current.useCallback(a,b)};react_production_min.useContext=function(a){return U.current.useContext(a)};
58
+ react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(a){return U.current.useDeferredValue(a)};react_production_min.useEffect=function(a,b){return U.current.useEffect(a,b)};react_production_min.useId=function(){return U.current.useId()};react_production_min.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};react_production_min.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};react_production_min.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};
59
+ react_production_min.useMemo=function(a,b){return U.current.useMemo(a,b)};react_production_min.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};react_production_min.useRef=function(a){return U.current.useRef(a)};react_production_min.useState=function(a){return U.current.useState(a)};react_production_min.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};react_production_min.useTransition=function(){return U.current.useTransition()};react_production_min.version="18.3.1";
60
+ return react_production_min;
61
+ }
62
+
63
+ var react_development = {exports: {}};
64
+
65
+ /**
66
+ * @license React
67
+ * react.development.js
68
+ *
69
+ * Copyright (c) Facebook, Inc. and its affiliates.
70
+ *
71
+ * This source code is licensed under the MIT license found in the
72
+ * LICENSE file in the root directory of this source tree.
73
+ */
74
+ react_development.exports;
75
+
76
+ var hasRequiredReact_development;
77
+
78
+ function requireReact_development () {
79
+ if (hasRequiredReact_development) return react_development.exports;
80
+ hasRequiredReact_development = 1;
81
+ (function (module, exports) {
82
+
83
+ if (process.env.NODE_ENV !== "production") {
84
+ (function() {
85
+
86
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
87
+ if (
88
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
89
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
90
+ 'function'
91
+ ) {
92
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
93
+ }
94
+ var ReactVersion = '18.3.1';
95
+
96
+ // ATTENTION
97
+ // When adding new symbols to this file,
98
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
99
+ // The Symbol used to tag the ReactElement-like types.
100
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
101
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
102
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
103
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
104
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
105
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
106
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
107
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
108
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
109
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
110
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
111
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
112
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
113
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
114
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
115
+ function getIteratorFn(maybeIterable) {
116
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
117
+ return null;
118
+ }
119
+
120
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
121
+
122
+ if (typeof maybeIterator === 'function') {
123
+ return maybeIterator;
124
+ }
125
+
126
+ return null;
127
+ }
128
+
129
+ /**
130
+ * Keeps track of the current dispatcher.
131
+ */
132
+ var ReactCurrentDispatcher = {
133
+ /**
134
+ * @internal
135
+ * @type {ReactComponent}
136
+ */
137
+ current: null
138
+ };
139
+
140
+ /**
141
+ * Keeps track of the current batch's configuration such as how long an update
142
+ * should suspend for if it needs to.
143
+ */
144
+ var ReactCurrentBatchConfig = {
145
+ transition: null
146
+ };
147
+
148
+ var ReactCurrentActQueue = {
149
+ current: null,
150
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode.
151
+ isBatchingLegacy: false,
152
+ didScheduleLegacyUpdate: false
153
+ };
154
+
155
+ /**
156
+ * Keeps track of the current owner.
157
+ *
158
+ * The current owner is the component who should own any components that are
159
+ * currently being constructed.
160
+ */
161
+ var ReactCurrentOwner = {
162
+ /**
163
+ * @internal
164
+ * @type {ReactComponent}
165
+ */
166
+ current: null
167
+ };
168
+
169
+ var ReactDebugCurrentFrame = {};
170
+ var currentExtraStackFrame = null;
171
+ function setExtraStackFrame(stack) {
172
+ {
173
+ currentExtraStackFrame = stack;
174
+ }
175
+ }
176
+
177
+ {
178
+ ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {
179
+ {
180
+ currentExtraStackFrame = stack;
181
+ }
182
+ }; // Stack implementation injected by the current renderer.
183
+
184
+
185
+ ReactDebugCurrentFrame.getCurrentStack = null;
186
+
187
+ ReactDebugCurrentFrame.getStackAddendum = function () {
188
+ var stack = ''; // Add an extra top frame while an element is being validated
189
+
190
+ if (currentExtraStackFrame) {
191
+ stack += currentExtraStackFrame;
192
+ } // Delegate to the injected renderer-specific implementation
193
+
194
+
195
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
196
+
197
+ if (impl) {
198
+ stack += impl() || '';
199
+ }
200
+
201
+ return stack;
202
+ };
203
+ }
204
+
205
+ // -----------------------------------------------------------------------------
206
+
207
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
208
+ var enableCacheElement = false;
209
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
210
+
211
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
212
+ // stuff. Intended to enable React core members to more easily debug scheduling
213
+ // issues in DEV builds.
214
+
215
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
216
+
217
+ var ReactSharedInternals = {
218
+ ReactCurrentDispatcher: ReactCurrentDispatcher,
219
+ ReactCurrentBatchConfig: ReactCurrentBatchConfig,
220
+ ReactCurrentOwner: ReactCurrentOwner
221
+ };
222
+
223
+ {
224
+ ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
225
+ ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
226
+ }
227
+
228
+ // by calls to these methods by a Babel plugin.
229
+ //
230
+ // In PROD (or in packages without access to React internals),
231
+ // they are left as they are instead.
232
+
233
+ function warn(format) {
234
+ {
235
+ {
236
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
237
+ args[_key - 1] = arguments[_key];
238
+ }
239
+
240
+ printWarning('warn', format, args);
241
+ }
242
+ }
243
+ }
244
+ function error(format) {
245
+ {
246
+ {
247
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
248
+ args[_key2 - 1] = arguments[_key2];
249
+ }
250
+
251
+ printWarning('error', format, args);
252
+ }
253
+ }
254
+ }
255
+
256
+ function printWarning(level, format, args) {
257
+ // When changing this logic, you might want to also
258
+ // update consoleWithStackDev.www.js as well.
259
+ {
260
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
261
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
262
+
263
+ if (stack !== '') {
264
+ format += '%s';
265
+ args = args.concat([stack]);
266
+ } // eslint-disable-next-line react-internal/safe-string-coercion
267
+
268
+
269
+ var argsWithFormat = args.map(function (item) {
270
+ return String(item);
271
+ }); // Careful: RN currently depends on this prefix
272
+
273
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
274
+ // breaks IE9: https://github.com/facebook/react/issues/13610
275
+ // eslint-disable-next-line react-internal/no-production-logging
276
+
277
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
278
+ }
279
+ }
280
+
281
+ var didWarnStateUpdateForUnmountedComponent = {};
282
+
283
+ function warnNoop(publicInstance, callerName) {
284
+ {
285
+ var _constructor = publicInstance.constructor;
286
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
287
+ var warningKey = componentName + "." + callerName;
288
+
289
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
290
+ return;
291
+ }
292
+
293
+ error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
294
+
295
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
296
+ }
297
+ }
298
+ /**
299
+ * This is the abstract API for an update queue.
300
+ */
301
+
302
+
303
+ var ReactNoopUpdateQueue = {
304
+ /**
305
+ * Checks whether or not this composite component is mounted.
306
+ * @param {ReactClass} publicInstance The instance we want to test.
307
+ * @return {boolean} True if mounted, false otherwise.
308
+ * @protected
309
+ * @final
310
+ */
311
+ isMounted: function (publicInstance) {
312
+ return false;
313
+ },
314
+
315
+ /**
316
+ * Forces an update. This should only be invoked when it is known with
317
+ * certainty that we are **not** in a DOM transaction.
318
+ *
319
+ * You may want to call this when you know that some deeper aspect of the
320
+ * component's state has changed but `setState` was not called.
321
+ *
322
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
323
+ * `componentWillUpdate` and `componentDidUpdate`.
324
+ *
325
+ * @param {ReactClass} publicInstance The instance that should rerender.
326
+ * @param {?function} callback Called after component is updated.
327
+ * @param {?string} callerName name of the calling function in the public API.
328
+ * @internal
329
+ */
330
+ enqueueForceUpdate: function (publicInstance, callback, callerName) {
331
+ warnNoop(publicInstance, 'forceUpdate');
332
+ },
333
+
334
+ /**
335
+ * Replaces all of the state. Always use this or `setState` to mutate state.
336
+ * You should treat `this.state` as immutable.
337
+ *
338
+ * There is no guarantee that `this.state` will be immediately updated, so
339
+ * accessing `this.state` after calling this method may return the old value.
340
+ *
341
+ * @param {ReactClass} publicInstance The instance that should rerender.
342
+ * @param {object} completeState Next state.
343
+ * @param {?function} callback Called after component is updated.
344
+ * @param {?string} callerName name of the calling function in the public API.
345
+ * @internal
346
+ */
347
+ enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
348
+ warnNoop(publicInstance, 'replaceState');
349
+ },
350
+
351
+ /**
352
+ * Sets a subset of the state. This only exists because _pendingState is
353
+ * internal. This provides a merging strategy that is not available to deep
354
+ * properties which is confusing. TODO: Expose pendingState or don't use it
355
+ * during the merge.
356
+ *
357
+ * @param {ReactClass} publicInstance The instance that should rerender.
358
+ * @param {object} partialState Next partial state to be merged with state.
359
+ * @param {?function} callback Called after component is updated.
360
+ * @param {?string} Name of the calling function in the public API.
361
+ * @internal
362
+ */
363
+ enqueueSetState: function (publicInstance, partialState, callback, callerName) {
364
+ warnNoop(publicInstance, 'setState');
365
+ }
366
+ };
367
+
368
+ var assign = Object.assign;
369
+
370
+ var emptyObject = {};
371
+
372
+ {
373
+ Object.freeze(emptyObject);
374
+ }
375
+ /**
376
+ * Base class helpers for the updating state of a component.
377
+ */
378
+
379
+
380
+ function Component(props, context, updater) {
381
+ this.props = props;
382
+ this.context = context; // If a component has string refs, we will assign a different object later.
383
+
384
+ this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
385
+ // renderer.
386
+
387
+ this.updater = updater || ReactNoopUpdateQueue;
388
+ }
389
+
390
+ Component.prototype.isReactComponent = {};
391
+ /**
392
+ * Sets a subset of the state. Always use this to mutate
393
+ * state. You should treat `this.state` as immutable.
394
+ *
395
+ * There is no guarantee that `this.state` will be immediately updated, so
396
+ * accessing `this.state` after calling this method may return the old value.
397
+ *
398
+ * There is no guarantee that calls to `setState` will run synchronously,
399
+ * as they may eventually be batched together. You can provide an optional
400
+ * callback that will be executed when the call to setState is actually
401
+ * completed.
402
+ *
403
+ * When a function is provided to setState, it will be called at some point in
404
+ * the future (not synchronously). It will be called with the up to date
405
+ * component arguments (state, props, context). These values can be different
406
+ * from this.* because your function may be called after receiveProps but before
407
+ * shouldComponentUpdate, and this new state, props, and context will not yet be
408
+ * assigned to this.
409
+ *
410
+ * @param {object|function} partialState Next partial state or function to
411
+ * produce next partial state to be merged with current state.
412
+ * @param {?function} callback Called after state is updated.
413
+ * @final
414
+ * @protected
415
+ */
416
+
417
+ Component.prototype.setState = function (partialState, callback) {
418
+ if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) {
419
+ throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.');
420
+ }
421
+
422
+ this.updater.enqueueSetState(this, partialState, callback, 'setState');
423
+ };
424
+ /**
425
+ * Forces an update. This should only be invoked when it is known with
426
+ * certainty that we are **not** in a DOM transaction.
427
+ *
428
+ * You may want to call this when you know that some deeper aspect of the
429
+ * component's state has changed but `setState` was not called.
430
+ *
431
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
432
+ * `componentWillUpdate` and `componentDidUpdate`.
433
+ *
434
+ * @param {?function} callback Called after update is complete.
435
+ * @final
436
+ * @protected
437
+ */
438
+
439
+
440
+ Component.prototype.forceUpdate = function (callback) {
441
+ this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
442
+ };
443
+ /**
444
+ * Deprecated APIs. These APIs used to exist on classic React classes but since
445
+ * we would like to deprecate them, we're not going to move them over to this
446
+ * modern base class. Instead, we define a getter that warns if it's accessed.
447
+ */
448
+
449
+
450
+ {
451
+ var deprecatedAPIs = {
452
+ isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
453
+ replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
454
+ };
455
+
456
+ var defineDeprecationWarning = function (methodName, info) {
457
+ Object.defineProperty(Component.prototype, methodName, {
458
+ get: function () {
459
+ warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
460
+
461
+ return undefined;
462
+ }
463
+ });
464
+ };
465
+
466
+ for (var fnName in deprecatedAPIs) {
467
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
468
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
469
+ }
470
+ }
471
+ }
472
+
473
+ function ComponentDummy() {}
474
+
475
+ ComponentDummy.prototype = Component.prototype;
476
+ /**
477
+ * Convenience component with default shallow equality check for sCU.
478
+ */
479
+
480
+ function PureComponent(props, context, updater) {
481
+ this.props = props;
482
+ this.context = context; // If a component has string refs, we will assign a different object later.
483
+
484
+ this.refs = emptyObject;
485
+ this.updater = updater || ReactNoopUpdateQueue;
486
+ }
487
+
488
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
489
+ pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
490
+
491
+ assign(pureComponentPrototype, Component.prototype);
492
+ pureComponentPrototype.isPureReactComponent = true;
493
+
494
+ // an immutable object with a single mutable value
495
+ function createRef() {
496
+ var refObject = {
497
+ current: null
498
+ };
499
+
500
+ {
501
+ Object.seal(refObject);
502
+ }
503
+
504
+ return refObject;
505
+ }
506
+
507
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
508
+
509
+ function isArray(a) {
510
+ return isArrayImpl(a);
511
+ }
512
+
513
+ /*
514
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
515
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
516
+ *
517
+ * The functions in this module will throw an easier-to-understand,
518
+ * easier-to-debug exception with a clear errors message message explaining the
519
+ * problem. (Instead of a confusing exception thrown inside the implementation
520
+ * of the `value` object).
521
+ */
522
+ // $FlowFixMe only called in DEV, so void return is not possible.
523
+ function typeName(value) {
524
+ {
525
+ // toStringTag is needed for namespaced types like Temporal.Instant
526
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
527
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
528
+ return type;
529
+ }
530
+ } // $FlowFixMe only called in DEV, so void return is not possible.
531
+
532
+
533
+ function willCoercionThrow(value) {
534
+ {
535
+ try {
536
+ testStringCoercion(value);
537
+ return false;
538
+ } catch (e) {
539
+ return true;
540
+ }
541
+ }
542
+ }
543
+
544
+ function testStringCoercion(value) {
545
+ // If you ended up here by following an exception call stack, here's what's
546
+ // happened: you supplied an object or symbol value to React (as a prop, key,
547
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
548
+ // coerce it to a string using `'' + value`, an exception was thrown.
549
+ //
550
+ // The most common types that will cause this exception are `Symbol` instances
551
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
552
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
553
+ // exception. (Library authors do this to prevent users from using built-in
554
+ // numeric operators like `+` or comparison operators like `>=` because custom
555
+ // methods are needed to perform accurate arithmetic or comparison.)
556
+ //
557
+ // To fix the problem, coerce this object or symbol value to a string before
558
+ // passing it to React. The most reliable way is usually `String(value)`.
559
+ //
560
+ // To find which value is throwing, check the browser or debugger console.
561
+ // Before this exception was thrown, there should be `console.error` output
562
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
563
+ // problem and how that type was used: key, atrribute, input value prop, etc.
564
+ // In most cases, this console output also shows the component and its
565
+ // ancestor components where the exception happened.
566
+ //
567
+ // eslint-disable-next-line react-internal/safe-string-coercion
568
+ return '' + value;
569
+ }
570
+ function checkKeyStringCoercion(value) {
571
+ {
572
+ if (willCoercionThrow(value)) {
573
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
574
+
575
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
576
+ }
577
+ }
578
+ }
579
+
580
+ function getWrappedName(outerType, innerType, wrapperName) {
581
+ var displayName = outerType.displayName;
582
+
583
+ if (displayName) {
584
+ return displayName;
585
+ }
586
+
587
+ var functionName = innerType.displayName || innerType.name || '';
588
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
589
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
590
+
591
+
592
+ function getContextName(type) {
593
+ return type.displayName || 'Context';
594
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
595
+
596
+
597
+ function getComponentNameFromType(type) {
598
+ if (type == null) {
599
+ // Host root, text node or just invalid type.
600
+ return null;
601
+ }
602
+
603
+ {
604
+ if (typeof type.tag === 'number') {
605
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
606
+ }
607
+ }
608
+
609
+ if (typeof type === 'function') {
610
+ return type.displayName || type.name || null;
611
+ }
612
+
613
+ if (typeof type === 'string') {
614
+ return type;
615
+ }
616
+
617
+ switch (type) {
618
+ case REACT_FRAGMENT_TYPE:
619
+ return 'Fragment';
620
+
621
+ case REACT_PORTAL_TYPE:
622
+ return 'Portal';
623
+
624
+ case REACT_PROFILER_TYPE:
625
+ return 'Profiler';
626
+
627
+ case REACT_STRICT_MODE_TYPE:
628
+ return 'StrictMode';
629
+
630
+ case REACT_SUSPENSE_TYPE:
631
+ return 'Suspense';
632
+
633
+ case REACT_SUSPENSE_LIST_TYPE:
634
+ return 'SuspenseList';
635
+
636
+ }
637
+
638
+ if (typeof type === 'object') {
639
+ switch (type.$$typeof) {
640
+ case REACT_CONTEXT_TYPE:
641
+ var context = type;
642
+ return getContextName(context) + '.Consumer';
643
+
644
+ case REACT_PROVIDER_TYPE:
645
+ var provider = type;
646
+ return getContextName(provider._context) + '.Provider';
647
+
648
+ case REACT_FORWARD_REF_TYPE:
649
+ return getWrappedName(type, type.render, 'ForwardRef');
650
+
651
+ case REACT_MEMO_TYPE:
652
+ var outerName = type.displayName || null;
653
+
654
+ if (outerName !== null) {
655
+ return outerName;
656
+ }
657
+
658
+ return getComponentNameFromType(type.type) || 'Memo';
659
+
660
+ case REACT_LAZY_TYPE:
661
+ {
662
+ var lazyComponent = type;
663
+ var payload = lazyComponent._payload;
664
+ var init = lazyComponent._init;
665
+
666
+ try {
667
+ return getComponentNameFromType(init(payload));
668
+ } catch (x) {
669
+ return null;
670
+ }
671
+ }
672
+
673
+ // eslint-disable-next-line no-fallthrough
674
+ }
675
+ }
676
+
677
+ return null;
678
+ }
679
+
680
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
681
+
682
+ var RESERVED_PROPS = {
683
+ key: true,
684
+ ref: true,
685
+ __self: true,
686
+ __source: true
687
+ };
688
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
689
+
690
+ {
691
+ didWarnAboutStringRefs = {};
692
+ }
693
+
694
+ function hasValidRef(config) {
695
+ {
696
+ if (hasOwnProperty.call(config, 'ref')) {
697
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
698
+
699
+ if (getter && getter.isReactWarning) {
700
+ return false;
701
+ }
702
+ }
703
+ }
704
+
705
+ return config.ref !== undefined;
706
+ }
707
+
708
+ function hasValidKey(config) {
709
+ {
710
+ if (hasOwnProperty.call(config, 'key')) {
711
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
712
+
713
+ if (getter && getter.isReactWarning) {
714
+ return false;
715
+ }
716
+ }
717
+ }
718
+
719
+ return config.key !== undefined;
720
+ }
721
+
722
+ function defineKeyPropWarningGetter(props, displayName) {
723
+ var warnAboutAccessingKey = function () {
724
+ {
725
+ if (!specialPropKeyWarningShown) {
726
+ specialPropKeyWarningShown = true;
727
+
728
+ error('%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://reactjs.org/link/special-props)', displayName);
729
+ }
730
+ }
731
+ };
732
+
733
+ warnAboutAccessingKey.isReactWarning = true;
734
+ Object.defineProperty(props, 'key', {
735
+ get: warnAboutAccessingKey,
736
+ configurable: true
737
+ });
738
+ }
739
+
740
+ function defineRefPropWarningGetter(props, displayName) {
741
+ var warnAboutAccessingRef = function () {
742
+ {
743
+ if (!specialPropRefWarningShown) {
744
+ specialPropRefWarningShown = true;
745
+
746
+ error('%s: `ref` 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://reactjs.org/link/special-props)', displayName);
747
+ }
748
+ }
749
+ };
750
+
751
+ warnAboutAccessingRef.isReactWarning = true;
752
+ Object.defineProperty(props, 'ref', {
753
+ get: warnAboutAccessingRef,
754
+ configurable: true
755
+ });
756
+ }
757
+
758
+ function warnIfStringRefCannotBeAutoConverted(config) {
759
+ {
760
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
761
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
762
+
763
+ if (!didWarnAboutStringRefs[componentName]) {
764
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
765
+
766
+ didWarnAboutStringRefs[componentName] = true;
767
+ }
768
+ }
769
+ }
770
+ }
771
+ /**
772
+ * Factory method to create a new React element. This no longer adheres to
773
+ * the class pattern, so do not use new to call it. Also, instanceof check
774
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
775
+ * if something is a React Element.
776
+ *
777
+ * @param {*} type
778
+ * @param {*} props
779
+ * @param {*} key
780
+ * @param {string|object} ref
781
+ * @param {*} owner
782
+ * @param {*} self A *temporary* helper to detect places where `this` is
783
+ * different from the `owner` when React.createElement is called, so that we
784
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
785
+ * functions, and as long as `this` and owner are the same, there will be no
786
+ * change in behavior.
787
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
788
+ * indicating filename, line number, and/or other information.
789
+ * @internal
790
+ */
791
+
792
+
793
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
794
+ var element = {
795
+ // This tag allows us to uniquely identify this as a React Element
796
+ $$typeof: REACT_ELEMENT_TYPE,
797
+ // Built-in properties that belong on the element
798
+ type: type,
799
+ key: key,
800
+ ref: ref,
801
+ props: props,
802
+ // Record the component responsible for creating this element.
803
+ _owner: owner
804
+ };
805
+
806
+ {
807
+ // The validation flag is currently mutative. We put it on
808
+ // an external backing store so that we can freeze the whole object.
809
+ // This can be replaced with a WeakMap once they are implemented in
810
+ // commonly used development environments.
811
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
812
+ // the validation flag non-enumerable (where possible, which should
813
+ // include every environment we run tests in), so the test framework
814
+ // ignores it.
815
+
816
+ Object.defineProperty(element._store, 'validated', {
817
+ configurable: false,
818
+ enumerable: false,
819
+ writable: true,
820
+ value: false
821
+ }); // self and source are DEV only properties.
822
+
823
+ Object.defineProperty(element, '_self', {
824
+ configurable: false,
825
+ enumerable: false,
826
+ writable: false,
827
+ value: self
828
+ }); // Two elements created in two different places should be considered
829
+ // equal for testing purposes and therefore we hide it from enumeration.
830
+
831
+ Object.defineProperty(element, '_source', {
832
+ configurable: false,
833
+ enumerable: false,
834
+ writable: false,
835
+ value: source
836
+ });
837
+
838
+ if (Object.freeze) {
839
+ Object.freeze(element.props);
840
+ Object.freeze(element);
841
+ }
842
+ }
843
+
844
+ return element;
845
+ };
846
+ /**
847
+ * Create and return a new ReactElement of the given type.
848
+ * See https://reactjs.org/docs/react-api.html#createelement
849
+ */
850
+
851
+ function createElement(type, config, children) {
852
+ var propName; // Reserved names are extracted
853
+
854
+ var props = {};
855
+ var key = null;
856
+ var ref = null;
857
+ var self = null;
858
+ var source = null;
859
+
860
+ if (config != null) {
861
+ if (hasValidRef(config)) {
862
+ ref = config.ref;
863
+
864
+ {
865
+ warnIfStringRefCannotBeAutoConverted(config);
866
+ }
867
+ }
868
+
869
+ if (hasValidKey(config)) {
870
+ {
871
+ checkKeyStringCoercion(config.key);
872
+ }
873
+
874
+ key = '' + config.key;
875
+ }
876
+
877
+ self = config.__self === undefined ? null : config.__self;
878
+ source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
879
+
880
+ for (propName in config) {
881
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
882
+ props[propName] = config[propName];
883
+ }
884
+ }
885
+ } // Children can be more than one argument, and those are transferred onto
886
+ // the newly allocated props object.
887
+
888
+
889
+ var childrenLength = arguments.length - 2;
890
+
891
+ if (childrenLength === 1) {
892
+ props.children = children;
893
+ } else if (childrenLength > 1) {
894
+ var childArray = Array(childrenLength);
895
+
896
+ for (var i = 0; i < childrenLength; i++) {
897
+ childArray[i] = arguments[i + 2];
898
+ }
899
+
900
+ {
901
+ if (Object.freeze) {
902
+ Object.freeze(childArray);
903
+ }
904
+ }
905
+
906
+ props.children = childArray;
907
+ } // Resolve default props
908
+
909
+
910
+ if (type && type.defaultProps) {
911
+ var defaultProps = type.defaultProps;
912
+
913
+ for (propName in defaultProps) {
914
+ if (props[propName] === undefined) {
915
+ props[propName] = defaultProps[propName];
916
+ }
917
+ }
918
+ }
919
+
920
+ {
921
+ if (key || ref) {
922
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
923
+
924
+ if (key) {
925
+ defineKeyPropWarningGetter(props, displayName);
926
+ }
927
+
928
+ if (ref) {
929
+ defineRefPropWarningGetter(props, displayName);
930
+ }
931
+ }
932
+ }
933
+
934
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
935
+ }
936
+ function cloneAndReplaceKey(oldElement, newKey) {
937
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
938
+ return newElement;
939
+ }
940
+ /**
941
+ * Clone and return a new ReactElement using element as the starting point.
942
+ * See https://reactjs.org/docs/react-api.html#cloneelement
943
+ */
944
+
945
+ function cloneElement(element, config, children) {
946
+ if (element === null || element === undefined) {
947
+ throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
948
+ }
949
+
950
+ var propName; // Original props are copied
951
+
952
+ var props = assign({}, element.props); // Reserved names are extracted
953
+
954
+ var key = element.key;
955
+ var ref = element.ref; // Self is preserved since the owner is preserved.
956
+
957
+ var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
958
+ // transpiler, and the original source is probably a better indicator of the
959
+ // true owner.
960
+
961
+ var source = element._source; // Owner will be preserved, unless ref is overridden
962
+
963
+ var owner = element._owner;
964
+
965
+ if (config != null) {
966
+ if (hasValidRef(config)) {
967
+ // Silently steal the ref from the parent.
968
+ ref = config.ref;
969
+ owner = ReactCurrentOwner.current;
970
+ }
971
+
972
+ if (hasValidKey(config)) {
973
+ {
974
+ checkKeyStringCoercion(config.key);
975
+ }
976
+
977
+ key = '' + config.key;
978
+ } // Remaining properties override existing props
979
+
980
+
981
+ var defaultProps;
982
+
983
+ if (element.type && element.type.defaultProps) {
984
+ defaultProps = element.type.defaultProps;
985
+ }
986
+
987
+ for (propName in config) {
988
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
989
+ if (config[propName] === undefined && defaultProps !== undefined) {
990
+ // Resolve default props
991
+ props[propName] = defaultProps[propName];
992
+ } else {
993
+ props[propName] = config[propName];
994
+ }
995
+ }
996
+ }
997
+ } // Children can be more than one argument, and those are transferred onto
998
+ // the newly allocated props object.
999
+
1000
+
1001
+ var childrenLength = arguments.length - 2;
1002
+
1003
+ if (childrenLength === 1) {
1004
+ props.children = children;
1005
+ } else if (childrenLength > 1) {
1006
+ var childArray = Array(childrenLength);
1007
+
1008
+ for (var i = 0; i < childrenLength; i++) {
1009
+ childArray[i] = arguments[i + 2];
1010
+ }
1011
+
1012
+ props.children = childArray;
1013
+ }
1014
+
1015
+ return ReactElement(element.type, key, ref, self, source, owner, props);
1016
+ }
1017
+ /**
1018
+ * Verifies the object is a ReactElement.
1019
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
1020
+ * @param {?object} object
1021
+ * @return {boolean} True if `object` is a ReactElement.
1022
+ * @final
1023
+ */
1024
+
1025
+ function isValidElement(object) {
1026
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1027
+ }
1028
+
1029
+ var SEPARATOR = '.';
1030
+ var SUBSEPARATOR = ':';
1031
+ /**
1032
+ * Escape and wrap key so it is safe to use as a reactid
1033
+ *
1034
+ * @param {string} key to be escaped.
1035
+ * @return {string} the escaped key.
1036
+ */
1037
+
1038
+ function escape(key) {
1039
+ var escapeRegex = /[=:]/g;
1040
+ var escaperLookup = {
1041
+ '=': '=0',
1042
+ ':': '=2'
1043
+ };
1044
+ var escapedString = key.replace(escapeRegex, function (match) {
1045
+ return escaperLookup[match];
1046
+ });
1047
+ return '$' + escapedString;
1048
+ }
1049
+ /**
1050
+ * TODO: Test that a single child and an array with one item have the same key
1051
+ * pattern.
1052
+ */
1053
+
1054
+
1055
+ var didWarnAboutMaps = false;
1056
+ var userProvidedKeyEscapeRegex = /\/+/g;
1057
+
1058
+ function escapeUserProvidedKey(text) {
1059
+ return text.replace(userProvidedKeyEscapeRegex, '$&/');
1060
+ }
1061
+ /**
1062
+ * Generate a key string that identifies a element within a set.
1063
+ *
1064
+ * @param {*} element A element that could contain a manual key.
1065
+ * @param {number} index Index that is used if a manual key is not provided.
1066
+ * @return {string}
1067
+ */
1068
+
1069
+
1070
+ function getElementKey(element, index) {
1071
+ // Do some typechecking here since we call this blindly. We want to ensure
1072
+ // that we don't block potential future ES APIs.
1073
+ if (typeof element === 'object' && element !== null && element.key != null) {
1074
+ // Explicit key
1075
+ {
1076
+ checkKeyStringCoercion(element.key);
1077
+ }
1078
+
1079
+ return escape('' + element.key);
1080
+ } // Implicit key determined by the index in the set
1081
+
1082
+
1083
+ return index.toString(36);
1084
+ }
1085
+
1086
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1087
+ var type = typeof children;
1088
+
1089
+ if (type === 'undefined' || type === 'boolean') {
1090
+ // All of the above are perceived as null.
1091
+ children = null;
1092
+ }
1093
+
1094
+ var invokeCallback = false;
1095
+
1096
+ if (children === null) {
1097
+ invokeCallback = true;
1098
+ } else {
1099
+ switch (type) {
1100
+ case 'string':
1101
+ case 'number':
1102
+ invokeCallback = true;
1103
+ break;
1104
+
1105
+ case 'object':
1106
+ switch (children.$$typeof) {
1107
+ case REACT_ELEMENT_TYPE:
1108
+ case REACT_PORTAL_TYPE:
1109
+ invokeCallback = true;
1110
+ }
1111
+
1112
+ }
1113
+ }
1114
+
1115
+ if (invokeCallback) {
1116
+ var _child = children;
1117
+ var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
1118
+ // so that it's consistent if the number of children grows:
1119
+
1120
+ var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
1121
+
1122
+ if (isArray(mappedChild)) {
1123
+ var escapedChildKey = '';
1124
+
1125
+ if (childKey != null) {
1126
+ escapedChildKey = escapeUserProvidedKey(childKey) + '/';
1127
+ }
1128
+
1129
+ mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
1130
+ return c;
1131
+ });
1132
+ } else if (mappedChild != null) {
1133
+ if (isValidElement(mappedChild)) {
1134
+ {
1135
+ // The `if` statement here prevents auto-disabling of the safe
1136
+ // coercion ESLint rule, so we must manually disable it below.
1137
+ // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1138
+ if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
1139
+ checkKeyStringCoercion(mappedChild.key);
1140
+ }
1141
+ }
1142
+
1143
+ mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
1144
+ // traverseAllChildren used to do for objects as children
1145
+ escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1146
+ mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1147
+ // eslint-disable-next-line react-internal/safe-string-coercion
1148
+ escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
1149
+ }
1150
+
1151
+ array.push(mappedChild);
1152
+ }
1153
+
1154
+ return 1;
1155
+ }
1156
+
1157
+ var child;
1158
+ var nextName;
1159
+ var subtreeCount = 0; // Count of children found in the current subtree.
1160
+
1161
+ var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1162
+
1163
+ if (isArray(children)) {
1164
+ for (var i = 0; i < children.length; i++) {
1165
+ child = children[i];
1166
+ nextName = nextNamePrefix + getElementKey(child, i);
1167
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1168
+ }
1169
+ } else {
1170
+ var iteratorFn = getIteratorFn(children);
1171
+
1172
+ if (typeof iteratorFn === 'function') {
1173
+ var iterableChildren = children;
1174
+
1175
+ {
1176
+ // Warn about using Maps as children
1177
+ if (iteratorFn === iterableChildren.entries) {
1178
+ if (!didWarnAboutMaps) {
1179
+ warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
1180
+ }
1181
+
1182
+ didWarnAboutMaps = true;
1183
+ }
1184
+ }
1185
+
1186
+ var iterator = iteratorFn.call(iterableChildren);
1187
+ var step;
1188
+ var ii = 0;
1189
+
1190
+ while (!(step = iterator.next()).done) {
1191
+ child = step.value;
1192
+ nextName = nextNamePrefix + getElementKey(child, ii++);
1193
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1194
+ }
1195
+ } else if (type === 'object') {
1196
+ // eslint-disable-next-line react-internal/safe-string-coercion
1197
+ var childrenString = String(children);
1198
+ throw new Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.');
1199
+ }
1200
+ }
1201
+
1202
+ return subtreeCount;
1203
+ }
1204
+
1205
+ /**
1206
+ * Maps children that are typically specified as `props.children`.
1207
+ *
1208
+ * See https://reactjs.org/docs/react-api.html#reactchildrenmap
1209
+ *
1210
+ * The provided mapFunction(child, index) will be called for each
1211
+ * leaf child.
1212
+ *
1213
+ * @param {?*} children Children tree container.
1214
+ * @param {function(*, int)} func The map function.
1215
+ * @param {*} context Context for mapFunction.
1216
+ * @return {object} Object containing the ordered map of results.
1217
+ */
1218
+ function mapChildren(children, func, context) {
1219
+ if (children == null) {
1220
+ return children;
1221
+ }
1222
+
1223
+ var result = [];
1224
+ var count = 0;
1225
+ mapIntoArray(children, result, '', '', function (child) {
1226
+ return func.call(context, child, count++);
1227
+ });
1228
+ return result;
1229
+ }
1230
+ /**
1231
+ * Count the number of children that are typically specified as
1232
+ * `props.children`.
1233
+ *
1234
+ * See https://reactjs.org/docs/react-api.html#reactchildrencount
1235
+ *
1236
+ * @param {?*} children Children tree container.
1237
+ * @return {number} The number of children.
1238
+ */
1239
+
1240
+
1241
+ function countChildren(children) {
1242
+ var n = 0;
1243
+ mapChildren(children, function () {
1244
+ n++; // Don't return anything
1245
+ });
1246
+ return n;
1247
+ }
1248
+
1249
+ /**
1250
+ * Iterates through children that are typically specified as `props.children`.
1251
+ *
1252
+ * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
1253
+ *
1254
+ * The provided forEachFunc(child, index) will be called for each
1255
+ * leaf child.
1256
+ *
1257
+ * @param {?*} children Children tree container.
1258
+ * @param {function(*, int)} forEachFunc
1259
+ * @param {*} forEachContext Context for forEachContext.
1260
+ */
1261
+ function forEachChildren(children, forEachFunc, forEachContext) {
1262
+ mapChildren(children, function () {
1263
+ forEachFunc.apply(this, arguments); // Don't return anything.
1264
+ }, forEachContext);
1265
+ }
1266
+ /**
1267
+ * Flatten a children object (typically specified as `props.children`) and
1268
+ * return an array with appropriately re-keyed children.
1269
+ *
1270
+ * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
1271
+ */
1272
+
1273
+
1274
+ function toArray(children) {
1275
+ return mapChildren(children, function (child) {
1276
+ return child;
1277
+ }) || [];
1278
+ }
1279
+ /**
1280
+ * Returns the first child in a collection of children and verifies that there
1281
+ * is only one child in the collection.
1282
+ *
1283
+ * See https://reactjs.org/docs/react-api.html#reactchildrenonly
1284
+ *
1285
+ * The current implementation of this function assumes that a single child gets
1286
+ * passed without a wrapper, but the purpose of this helper function is to
1287
+ * abstract away the particular structure of children.
1288
+ *
1289
+ * @param {?object} children Child collection structure.
1290
+ * @return {ReactElement} The first and only `ReactElement` contained in the
1291
+ * structure.
1292
+ */
1293
+
1294
+
1295
+ function onlyChild(children) {
1296
+ if (!isValidElement(children)) {
1297
+ throw new Error('React.Children.only expected to receive a single React element child.');
1298
+ }
1299
+
1300
+ return children;
1301
+ }
1302
+
1303
+ function createContext(defaultValue) {
1304
+ // TODO: Second argument used to be an optional `calculateChangedBits`
1305
+ // function. Warn to reserve for future use?
1306
+ var context = {
1307
+ $$typeof: REACT_CONTEXT_TYPE,
1308
+ // As a workaround to support multiple concurrent renderers, we categorize
1309
+ // some renderers as primary and others as secondary. We only expect
1310
+ // there to be two concurrent renderers at most: React Native (primary) and
1311
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
1312
+ // Secondary renderers store their context values on separate fields.
1313
+ _currentValue: defaultValue,
1314
+ _currentValue2: defaultValue,
1315
+ // Used to track how many concurrent renderers this context currently
1316
+ // supports within in a single renderer. Such as parallel server rendering.
1317
+ _threadCount: 0,
1318
+ // These are circular
1319
+ Provider: null,
1320
+ Consumer: null,
1321
+ // Add these to use same hidden class in VM as ServerContext
1322
+ _defaultValue: null,
1323
+ _globalName: null
1324
+ };
1325
+ context.Provider = {
1326
+ $$typeof: REACT_PROVIDER_TYPE,
1327
+ _context: context
1328
+ };
1329
+ var hasWarnedAboutUsingNestedContextConsumers = false;
1330
+ var hasWarnedAboutUsingConsumerProvider = false;
1331
+ var hasWarnedAboutDisplayNameOnConsumer = false;
1332
+
1333
+ {
1334
+ // A separate object, but proxies back to the original context object for
1335
+ // backwards compatibility. It has a different $$typeof, so we can properly
1336
+ // warn for the incorrect usage of Context as a Consumer.
1337
+ var Consumer = {
1338
+ $$typeof: REACT_CONTEXT_TYPE,
1339
+ _context: context
1340
+ }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
1341
+
1342
+ Object.defineProperties(Consumer, {
1343
+ Provider: {
1344
+ get: function () {
1345
+ if (!hasWarnedAboutUsingConsumerProvider) {
1346
+ hasWarnedAboutUsingConsumerProvider = true;
1347
+
1348
+ error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
1349
+ }
1350
+
1351
+ return context.Provider;
1352
+ },
1353
+ set: function (_Provider) {
1354
+ context.Provider = _Provider;
1355
+ }
1356
+ },
1357
+ _currentValue: {
1358
+ get: function () {
1359
+ return context._currentValue;
1360
+ },
1361
+ set: function (_currentValue) {
1362
+ context._currentValue = _currentValue;
1363
+ }
1364
+ },
1365
+ _currentValue2: {
1366
+ get: function () {
1367
+ return context._currentValue2;
1368
+ },
1369
+ set: function (_currentValue2) {
1370
+ context._currentValue2 = _currentValue2;
1371
+ }
1372
+ },
1373
+ _threadCount: {
1374
+ get: function () {
1375
+ return context._threadCount;
1376
+ },
1377
+ set: function (_threadCount) {
1378
+ context._threadCount = _threadCount;
1379
+ }
1380
+ },
1381
+ Consumer: {
1382
+ get: function () {
1383
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
1384
+ hasWarnedAboutUsingNestedContextConsumers = true;
1385
+
1386
+ error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
1387
+ }
1388
+
1389
+ return context.Consumer;
1390
+ }
1391
+ },
1392
+ displayName: {
1393
+ get: function () {
1394
+ return context.displayName;
1395
+ },
1396
+ set: function (displayName) {
1397
+ if (!hasWarnedAboutDisplayNameOnConsumer) {
1398
+ warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);
1399
+
1400
+ hasWarnedAboutDisplayNameOnConsumer = true;
1401
+ }
1402
+ }
1403
+ }
1404
+ }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
1405
+
1406
+ context.Consumer = Consumer;
1407
+ }
1408
+
1409
+ {
1410
+ context._currentRenderer = null;
1411
+ context._currentRenderer2 = null;
1412
+ }
1413
+
1414
+ return context;
1415
+ }
1416
+
1417
+ var Uninitialized = -1;
1418
+ var Pending = 0;
1419
+ var Resolved = 1;
1420
+ var Rejected = 2;
1421
+
1422
+ function lazyInitializer(payload) {
1423
+ if (payload._status === Uninitialized) {
1424
+ var ctor = payload._result;
1425
+ var thenable = ctor(); // Transition to the next state.
1426
+ // This might throw either because it's missing or throws. If so, we treat it
1427
+ // as still uninitialized and try again next time. Which is the same as what
1428
+ // happens if the ctor or any wrappers processing the ctor throws. This might
1429
+ // end up fixing it if the resolution was a concurrency bug.
1430
+
1431
+ thenable.then(function (moduleObject) {
1432
+ if (payload._status === Pending || payload._status === Uninitialized) {
1433
+ // Transition to the next state.
1434
+ var resolved = payload;
1435
+ resolved._status = Resolved;
1436
+ resolved._result = moduleObject;
1437
+ }
1438
+ }, function (error) {
1439
+ if (payload._status === Pending || payload._status === Uninitialized) {
1440
+ // Transition to the next state.
1441
+ var rejected = payload;
1442
+ rejected._status = Rejected;
1443
+ rejected._result = error;
1444
+ }
1445
+ });
1446
+
1447
+ if (payload._status === Uninitialized) {
1448
+ // In case, we're still uninitialized, then we're waiting for the thenable
1449
+ // to resolve. Set it as pending in the meantime.
1450
+ var pending = payload;
1451
+ pending._status = Pending;
1452
+ pending._result = thenable;
1453
+ }
1454
+ }
1455
+
1456
+ if (payload._status === Resolved) {
1457
+ var moduleObject = payload._result;
1458
+
1459
+ {
1460
+ if (moduleObject === undefined) {
1461
+ error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
1462
+ 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))\n\n" + 'Did you accidentally put curly braces around the import?', moduleObject);
1463
+ }
1464
+ }
1465
+
1466
+ {
1467
+ if (!('default' in moduleObject)) {
1468
+ error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
1469
+ 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
1470
+ }
1471
+ }
1472
+
1473
+ return moduleObject.default;
1474
+ } else {
1475
+ throw payload._result;
1476
+ }
1477
+ }
1478
+
1479
+ function lazy(ctor) {
1480
+ var payload = {
1481
+ // We use these fields to store the result.
1482
+ _status: Uninitialized,
1483
+ _result: ctor
1484
+ };
1485
+ var lazyType = {
1486
+ $$typeof: REACT_LAZY_TYPE,
1487
+ _payload: payload,
1488
+ _init: lazyInitializer
1489
+ };
1490
+
1491
+ {
1492
+ // In production, this would just set it on the object.
1493
+ var defaultProps;
1494
+ var propTypes; // $FlowFixMe
1495
+
1496
+ Object.defineProperties(lazyType, {
1497
+ defaultProps: {
1498
+ configurable: true,
1499
+ get: function () {
1500
+ return defaultProps;
1501
+ },
1502
+ set: function (newDefaultProps) {
1503
+ error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
1504
+
1505
+ defaultProps = newDefaultProps; // Match production behavior more closely:
1506
+ // $FlowFixMe
1507
+
1508
+ Object.defineProperty(lazyType, 'defaultProps', {
1509
+ enumerable: true
1510
+ });
1511
+ }
1512
+ },
1513
+ propTypes: {
1514
+ configurable: true,
1515
+ get: function () {
1516
+ return propTypes;
1517
+ },
1518
+ set: function (newPropTypes) {
1519
+ error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
1520
+
1521
+ propTypes = newPropTypes; // Match production behavior more closely:
1522
+ // $FlowFixMe
1523
+
1524
+ Object.defineProperty(lazyType, 'propTypes', {
1525
+ enumerable: true
1526
+ });
1527
+ }
1528
+ }
1529
+ });
1530
+ }
1531
+
1532
+ return lazyType;
1533
+ }
1534
+
1535
+ function forwardRef(render) {
1536
+ {
1537
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1538
+ error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
1539
+ } else if (typeof render !== 'function') {
1540
+ error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
1541
+ } else {
1542
+ if (render.length !== 0 && render.length !== 2) {
1543
+ error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
1544
+ }
1545
+ }
1546
+
1547
+ if (render != null) {
1548
+ if (render.defaultProps != null || render.propTypes != null) {
1549
+ error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
1550
+ }
1551
+ }
1552
+ }
1553
+
1554
+ var elementType = {
1555
+ $$typeof: REACT_FORWARD_REF_TYPE,
1556
+ render: render
1557
+ };
1558
+
1559
+ {
1560
+ var ownName;
1561
+ Object.defineProperty(elementType, 'displayName', {
1562
+ enumerable: false,
1563
+ configurable: true,
1564
+ get: function () {
1565
+ return ownName;
1566
+ },
1567
+ set: function (name) {
1568
+ ownName = name; // The inner component shouldn't inherit this display name in most cases,
1569
+ // because the component may be used elsewhere.
1570
+ // But it's nice for anonymous functions to inherit the name,
1571
+ // so that our component-stack generation logic will display their frames.
1572
+ // An anonymous function generally suggests a pattern like:
1573
+ // React.forwardRef((props, ref) => {...});
1574
+ // This kind of inner function is not used elsewhere so the side effect is okay.
1575
+
1576
+ if (!render.name && !render.displayName) {
1577
+ render.displayName = name;
1578
+ }
1579
+ }
1580
+ });
1581
+ }
1582
+
1583
+ return elementType;
1584
+ }
1585
+
1586
+ var REACT_MODULE_REFERENCE;
1587
+
1588
+ {
1589
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
1590
+ }
1591
+
1592
+ function isValidElementType(type) {
1593
+ if (typeof type === 'string' || typeof type === 'function') {
1594
+ return true;
1595
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1596
+
1597
+
1598
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
1599
+ return true;
1600
+ }
1601
+
1602
+ if (typeof type === 'object' && type !== null) {
1603
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
1604
+ // types supported by any Flight configuration anywhere since
1605
+ // we don't know which Flight build this will end up being used
1606
+ // with.
1607
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
1608
+ return true;
1609
+ }
1610
+ }
1611
+
1612
+ return false;
1613
+ }
1614
+
1615
+ function memo(type, compare) {
1616
+ {
1617
+ if (!isValidElementType(type)) {
1618
+ error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
1619
+ }
1620
+ }
1621
+
1622
+ var elementType = {
1623
+ $$typeof: REACT_MEMO_TYPE,
1624
+ type: type,
1625
+ compare: compare === undefined ? null : compare
1626
+ };
1627
+
1628
+ {
1629
+ var ownName;
1630
+ Object.defineProperty(elementType, 'displayName', {
1631
+ enumerable: false,
1632
+ configurable: true,
1633
+ get: function () {
1634
+ return ownName;
1635
+ },
1636
+ set: function (name) {
1637
+ ownName = name; // The inner component shouldn't inherit this display name in most cases,
1638
+ // because the component may be used elsewhere.
1639
+ // But it's nice for anonymous functions to inherit the name,
1640
+ // so that our component-stack generation logic will display their frames.
1641
+ // An anonymous function generally suggests a pattern like:
1642
+ // React.memo((props) => {...});
1643
+ // This kind of inner function is not used elsewhere so the side effect is okay.
1644
+
1645
+ if (!type.name && !type.displayName) {
1646
+ type.displayName = name;
1647
+ }
1648
+ }
1649
+ });
1650
+ }
1651
+
1652
+ return elementType;
1653
+ }
1654
+
1655
+ function resolveDispatcher() {
1656
+ var dispatcher = ReactCurrentDispatcher.current;
1657
+
1658
+ {
1659
+ if (dispatcher === null) {
1660
+ error('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:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
1661
+ }
1662
+ } // Will result in a null access error if accessed outside render phase. We
1663
+ // intentionally don't throw our own error because this is in a hot path.
1664
+ // Also helps ensure this is inlined.
1665
+
1666
+
1667
+ return dispatcher;
1668
+ }
1669
+ function useContext(Context) {
1670
+ var dispatcher = resolveDispatcher();
1671
+
1672
+ {
1673
+ // TODO: add a more generic warning for invalid values.
1674
+ if (Context._context !== undefined) {
1675
+ var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
1676
+ // and nobody should be using this in existing code.
1677
+
1678
+ if (realContext.Consumer === Context) {
1679
+ error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
1680
+ } else if (realContext.Provider === Context) {
1681
+ error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
1682
+ }
1683
+ }
1684
+ }
1685
+
1686
+ return dispatcher.useContext(Context);
1687
+ }
1688
+ function useState(initialState) {
1689
+ var dispatcher = resolveDispatcher();
1690
+ return dispatcher.useState(initialState);
1691
+ }
1692
+ function useReducer(reducer, initialArg, init) {
1693
+ var dispatcher = resolveDispatcher();
1694
+ return dispatcher.useReducer(reducer, initialArg, init);
1695
+ }
1696
+ function useRef(initialValue) {
1697
+ var dispatcher = resolveDispatcher();
1698
+ return dispatcher.useRef(initialValue);
1699
+ }
1700
+ function useEffect(create, deps) {
1701
+ var dispatcher = resolveDispatcher();
1702
+ return dispatcher.useEffect(create, deps);
1703
+ }
1704
+ function useInsertionEffect(create, deps) {
1705
+ var dispatcher = resolveDispatcher();
1706
+ return dispatcher.useInsertionEffect(create, deps);
1707
+ }
1708
+ function useLayoutEffect(create, deps) {
1709
+ var dispatcher = resolveDispatcher();
1710
+ return dispatcher.useLayoutEffect(create, deps);
1711
+ }
1712
+ function useCallback(callback, deps) {
1713
+ var dispatcher = resolveDispatcher();
1714
+ return dispatcher.useCallback(callback, deps);
1715
+ }
1716
+ function useMemo(create, deps) {
1717
+ var dispatcher = resolveDispatcher();
1718
+ return dispatcher.useMemo(create, deps);
1719
+ }
1720
+ function useImperativeHandle(ref, create, deps) {
1721
+ var dispatcher = resolveDispatcher();
1722
+ return dispatcher.useImperativeHandle(ref, create, deps);
1723
+ }
1724
+ function useDebugValue(value, formatterFn) {
1725
+ {
1726
+ var dispatcher = resolveDispatcher();
1727
+ return dispatcher.useDebugValue(value, formatterFn);
1728
+ }
1729
+ }
1730
+ function useTransition() {
1731
+ var dispatcher = resolveDispatcher();
1732
+ return dispatcher.useTransition();
1733
+ }
1734
+ function useDeferredValue(value) {
1735
+ var dispatcher = resolveDispatcher();
1736
+ return dispatcher.useDeferredValue(value);
1737
+ }
1738
+ function useId() {
1739
+ var dispatcher = resolveDispatcher();
1740
+ return dispatcher.useId();
1741
+ }
1742
+ function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1743
+ var dispatcher = resolveDispatcher();
1744
+ return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1745
+ }
1746
+
1747
+ // Helpers to patch console.logs to avoid logging during side-effect free
1748
+ // replaying on render function. This currently only patches the object
1749
+ // lazily which won't cover if the log function was extracted eagerly.
1750
+ // We could also eagerly patch the method.
1751
+ var disabledDepth = 0;
1752
+ var prevLog;
1753
+ var prevInfo;
1754
+ var prevWarn;
1755
+ var prevError;
1756
+ var prevGroup;
1757
+ var prevGroupCollapsed;
1758
+ var prevGroupEnd;
1759
+
1760
+ function disabledLog() {}
1761
+
1762
+ disabledLog.__reactDisabledLog = true;
1763
+ function disableLogs() {
1764
+ {
1765
+ if (disabledDepth === 0) {
1766
+ /* eslint-disable react-internal/no-production-logging */
1767
+ prevLog = console.log;
1768
+ prevInfo = console.info;
1769
+ prevWarn = console.warn;
1770
+ prevError = console.error;
1771
+ prevGroup = console.group;
1772
+ prevGroupCollapsed = console.groupCollapsed;
1773
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
1774
+
1775
+ var props = {
1776
+ configurable: true,
1777
+ enumerable: true,
1778
+ value: disabledLog,
1779
+ writable: true
1780
+ }; // $FlowFixMe Flow thinks console is immutable.
1781
+
1782
+ Object.defineProperties(console, {
1783
+ info: props,
1784
+ log: props,
1785
+ warn: props,
1786
+ error: props,
1787
+ group: props,
1788
+ groupCollapsed: props,
1789
+ groupEnd: props
1790
+ });
1791
+ /* eslint-enable react-internal/no-production-logging */
1792
+ }
1793
+
1794
+ disabledDepth++;
1795
+ }
1796
+ }
1797
+ function reenableLogs() {
1798
+ {
1799
+ disabledDepth--;
1800
+
1801
+ if (disabledDepth === 0) {
1802
+ /* eslint-disable react-internal/no-production-logging */
1803
+ var props = {
1804
+ configurable: true,
1805
+ enumerable: true,
1806
+ writable: true
1807
+ }; // $FlowFixMe Flow thinks console is immutable.
1808
+
1809
+ Object.defineProperties(console, {
1810
+ log: assign({}, props, {
1811
+ value: prevLog
1812
+ }),
1813
+ info: assign({}, props, {
1814
+ value: prevInfo
1815
+ }),
1816
+ warn: assign({}, props, {
1817
+ value: prevWarn
1818
+ }),
1819
+ error: assign({}, props, {
1820
+ value: prevError
1821
+ }),
1822
+ group: assign({}, props, {
1823
+ value: prevGroup
1824
+ }),
1825
+ groupCollapsed: assign({}, props, {
1826
+ value: prevGroupCollapsed
1827
+ }),
1828
+ groupEnd: assign({}, props, {
1829
+ value: prevGroupEnd
1830
+ })
1831
+ });
1832
+ /* eslint-enable react-internal/no-production-logging */
1833
+ }
1834
+
1835
+ if (disabledDepth < 0) {
1836
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
1837
+ }
1838
+ }
1839
+ }
1840
+
1841
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1842
+ var prefix;
1843
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
1844
+ {
1845
+ if (prefix === undefined) {
1846
+ // Extract the VM specific prefix used by each line.
1847
+ try {
1848
+ throw Error();
1849
+ } catch (x) {
1850
+ var match = x.stack.trim().match(/\n( *(at )?)/);
1851
+ prefix = match && match[1] || '';
1852
+ }
1853
+ } // We use the prefix to ensure our stacks line up with native stack frames.
1854
+
1855
+
1856
+ return '\n' + prefix + name;
1857
+ }
1858
+ }
1859
+ var reentry = false;
1860
+ var componentFrameCache;
1861
+
1862
+ {
1863
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
1864
+ componentFrameCache = new PossiblyWeakMap();
1865
+ }
1866
+
1867
+ function describeNativeComponentFrame(fn, construct) {
1868
+ // If something asked for a stack inside a fake render, it should get ignored.
1869
+ if ( !fn || reentry) {
1870
+ return '';
1871
+ }
1872
+
1873
+ {
1874
+ var frame = componentFrameCache.get(fn);
1875
+
1876
+ if (frame !== undefined) {
1877
+ return frame;
1878
+ }
1879
+ }
1880
+
1881
+ var control;
1882
+ reentry = true;
1883
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
1884
+
1885
+ Error.prepareStackTrace = undefined;
1886
+ var previousDispatcher;
1887
+
1888
+ {
1889
+ previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function
1890
+ // for warnings.
1891
+
1892
+ ReactCurrentDispatcher$1.current = null;
1893
+ disableLogs();
1894
+ }
1895
+
1896
+ try {
1897
+ // This should throw.
1898
+ if (construct) {
1899
+ // Something should be setting the props in the constructor.
1900
+ var Fake = function () {
1901
+ throw Error();
1902
+ }; // $FlowFixMe
1903
+
1904
+
1905
+ Object.defineProperty(Fake.prototype, 'props', {
1906
+ set: function () {
1907
+ // We use a throwing setter instead of frozen or non-writable props
1908
+ // because that won't throw in a non-strict mode function.
1909
+ throw Error();
1910
+ }
1911
+ });
1912
+
1913
+ if (typeof Reflect === 'object' && Reflect.construct) {
1914
+ // We construct a different control for this case to include any extra
1915
+ // frames added by the construct call.
1916
+ try {
1917
+ Reflect.construct(Fake, []);
1918
+ } catch (x) {
1919
+ control = x;
1920
+ }
1921
+
1922
+ Reflect.construct(fn, [], Fake);
1923
+ } else {
1924
+ try {
1925
+ Fake.call();
1926
+ } catch (x) {
1927
+ control = x;
1928
+ }
1929
+
1930
+ fn.call(Fake.prototype);
1931
+ }
1932
+ } else {
1933
+ try {
1934
+ throw Error();
1935
+ } catch (x) {
1936
+ control = x;
1937
+ }
1938
+
1939
+ fn();
1940
+ }
1941
+ } catch (sample) {
1942
+ // This is inlined manually because closure doesn't do it for us.
1943
+ if (sample && control && typeof sample.stack === 'string') {
1944
+ // This extracts the first frame from the sample that isn't also in the control.
1945
+ // Skipping one frame that we assume is the frame that calls the two.
1946
+ var sampleLines = sample.stack.split('\n');
1947
+ var controlLines = control.stack.split('\n');
1948
+ var s = sampleLines.length - 1;
1949
+ var c = controlLines.length - 1;
1950
+
1951
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1952
+ // We expect at least one stack frame to be shared.
1953
+ // Typically this will be the root most one. However, stack frames may be
1954
+ // cut off due to maximum stack limits. In this case, one maybe cut off
1955
+ // earlier than the other. We assume that the sample is longer or the same
1956
+ // and there for cut off earlier. So we should find the root most frame in
1957
+ // the sample somewhere in the control.
1958
+ c--;
1959
+ }
1960
+
1961
+ for (; s >= 1 && c >= 0; s--, c--) {
1962
+ // Next we find the first one that isn't the same which should be the
1963
+ // frame that called our sample function and the control.
1964
+ if (sampleLines[s] !== controlLines[c]) {
1965
+ // In V8, the first line is describing the message but other VMs don't.
1966
+ // If we're about to return the first line, and the control is also on the same
1967
+ // line, that's a pretty good indicator that our sample threw at same line as
1968
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
1969
+ // This can happen if you passed a class to function component, or non-function.
1970
+ if (s !== 1 || c !== 1) {
1971
+ do {
1972
+ s--;
1973
+ c--; // We may still have similar intermediate frames from the construct call.
1974
+ // The next one that isn't the same should be our match though.
1975
+
1976
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
1977
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
1978
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
1979
+ // but we have a user-provided "displayName"
1980
+ // splice it in to make the stack more readable.
1981
+
1982
+
1983
+ if (fn.displayName && _frame.includes('<anonymous>')) {
1984
+ _frame = _frame.replace('<anonymous>', fn.displayName);
1985
+ }
1986
+
1987
+ {
1988
+ if (typeof fn === 'function') {
1989
+ componentFrameCache.set(fn, _frame);
1990
+ }
1991
+ } // Return the line we found.
1992
+
1993
+
1994
+ return _frame;
1995
+ }
1996
+ } while (s >= 1 && c >= 0);
1997
+ }
1998
+
1999
+ break;
2000
+ }
2001
+ }
2002
+ }
2003
+ } finally {
2004
+ reentry = false;
2005
+
2006
+ {
2007
+ ReactCurrentDispatcher$1.current = previousDispatcher;
2008
+ reenableLogs();
2009
+ }
2010
+
2011
+ Error.prepareStackTrace = previousPrepareStackTrace;
2012
+ } // Fallback to just using the name if we couldn't make it throw.
2013
+
2014
+
2015
+ var name = fn ? fn.displayName || fn.name : '';
2016
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
2017
+
2018
+ {
2019
+ if (typeof fn === 'function') {
2020
+ componentFrameCache.set(fn, syntheticFrame);
2021
+ }
2022
+ }
2023
+
2024
+ return syntheticFrame;
2025
+ }
2026
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
2027
+ {
2028
+ return describeNativeComponentFrame(fn, false);
2029
+ }
2030
+ }
2031
+
2032
+ function shouldConstruct(Component) {
2033
+ var prototype = Component.prototype;
2034
+ return !!(prototype && prototype.isReactComponent);
2035
+ }
2036
+
2037
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2038
+
2039
+ if (type == null) {
2040
+ return '';
2041
+ }
2042
+
2043
+ if (typeof type === 'function') {
2044
+ {
2045
+ return describeNativeComponentFrame(type, shouldConstruct(type));
2046
+ }
2047
+ }
2048
+
2049
+ if (typeof type === 'string') {
2050
+ return describeBuiltInComponentFrame(type);
2051
+ }
2052
+
2053
+ switch (type) {
2054
+ case REACT_SUSPENSE_TYPE:
2055
+ return describeBuiltInComponentFrame('Suspense');
2056
+
2057
+ case REACT_SUSPENSE_LIST_TYPE:
2058
+ return describeBuiltInComponentFrame('SuspenseList');
2059
+ }
2060
+
2061
+ if (typeof type === 'object') {
2062
+ switch (type.$$typeof) {
2063
+ case REACT_FORWARD_REF_TYPE:
2064
+ return describeFunctionComponentFrame(type.render);
2065
+
2066
+ case REACT_MEMO_TYPE:
2067
+ // Memo may contain any component type so we recursively resolve it.
2068
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2069
+
2070
+ case REACT_LAZY_TYPE:
2071
+ {
2072
+ var lazyComponent = type;
2073
+ var payload = lazyComponent._payload;
2074
+ var init = lazyComponent._init;
2075
+
2076
+ try {
2077
+ // Lazy may contain any component type so we recursively resolve it.
2078
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2079
+ } catch (x) {}
2080
+ }
2081
+ }
2082
+ }
2083
+
2084
+ return '';
2085
+ }
2086
+
2087
+ var loggedTypeFailures = {};
2088
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2089
+
2090
+ function setCurrentlyValidatingElement(element) {
2091
+ {
2092
+ if (element) {
2093
+ var owner = element._owner;
2094
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2095
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2096
+ } else {
2097
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2098
+ }
2099
+ }
2100
+ }
2101
+
2102
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
2103
+ {
2104
+ // $FlowFixMe This is okay but Flow doesn't know it.
2105
+ var has = Function.call.bind(hasOwnProperty);
2106
+
2107
+ for (var typeSpecName in typeSpecs) {
2108
+ if (has(typeSpecs, typeSpecName)) {
2109
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2110
+ // fail the render phase where it didn't fail before. So we log it.
2111
+ // After these have been cleaned up, we'll let them throw.
2112
+
2113
+ try {
2114
+ // This is intentionally an invariant that gets caught. It's the same
2115
+ // behavior as without this statement except with a better message.
2116
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
2117
+ // eslint-disable-next-line react-internal/prod-error-codes
2118
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
2119
+ err.name = 'Invariant Violation';
2120
+ throw err;
2121
+ }
2122
+
2123
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2124
+ } catch (ex) {
2125
+ error$1 = ex;
2126
+ }
2127
+
2128
+ if (error$1 && !(error$1 instanceof Error)) {
2129
+ setCurrentlyValidatingElement(element);
2130
+
2131
+ error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
2132
+
2133
+ setCurrentlyValidatingElement(null);
2134
+ }
2135
+
2136
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2137
+ // Only monitor this failure once because there tends to be a lot of the
2138
+ // same error.
2139
+ loggedTypeFailures[error$1.message] = true;
2140
+ setCurrentlyValidatingElement(element);
2141
+
2142
+ error('Failed %s type: %s', location, error$1.message);
2143
+
2144
+ setCurrentlyValidatingElement(null);
2145
+ }
2146
+ }
2147
+ }
2148
+ }
2149
+ }
2150
+
2151
+ function setCurrentlyValidatingElement$1(element) {
2152
+ {
2153
+ if (element) {
2154
+ var owner = element._owner;
2155
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2156
+ setExtraStackFrame(stack);
2157
+ } else {
2158
+ setExtraStackFrame(null);
2159
+ }
2160
+ }
2161
+ }
2162
+
2163
+ var propTypesMisspellWarningShown;
2164
+
2165
+ {
2166
+ propTypesMisspellWarningShown = false;
2167
+ }
2168
+
2169
+ function getDeclarationErrorAddendum() {
2170
+ if (ReactCurrentOwner.current) {
2171
+ var name = getComponentNameFromType(ReactCurrentOwner.current.type);
2172
+
2173
+ if (name) {
2174
+ return '\n\nCheck the render method of `' + name + '`.';
2175
+ }
2176
+ }
2177
+
2178
+ return '';
2179
+ }
2180
+
2181
+ function getSourceInfoErrorAddendum(source) {
2182
+ if (source !== undefined) {
2183
+ var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2184
+ var lineNumber = source.lineNumber;
2185
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2186
+ }
2187
+
2188
+ return '';
2189
+ }
2190
+
2191
+ function getSourceInfoErrorAddendumForProps(elementProps) {
2192
+ if (elementProps !== null && elementProps !== undefined) {
2193
+ return getSourceInfoErrorAddendum(elementProps.__source);
2194
+ }
2195
+
2196
+ return '';
2197
+ }
2198
+ /**
2199
+ * Warn if there's no key explicitly set on dynamic arrays of children or
2200
+ * object keys are not valid. This allows us to keep track of children between
2201
+ * updates.
2202
+ */
2203
+
2204
+
2205
+ var ownerHasKeyUseWarning = {};
2206
+
2207
+ function getCurrentComponentErrorInfo(parentType) {
2208
+ var info = getDeclarationErrorAddendum();
2209
+
2210
+ if (!info) {
2211
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
2212
+
2213
+ if (parentName) {
2214
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2215
+ }
2216
+ }
2217
+
2218
+ return info;
2219
+ }
2220
+ /**
2221
+ * Warn if the element doesn't have an explicit key assigned to it.
2222
+ * This element is in an array. The array could grow and shrink or be
2223
+ * reordered. All children that haven't already been validated are required to
2224
+ * have a "key" property assigned to it. Error statuses are cached so a warning
2225
+ * will only be shown once.
2226
+ *
2227
+ * @internal
2228
+ * @param {ReactElement} element Element that requires a key.
2229
+ * @param {*} parentType element's parent's type.
2230
+ */
2231
+
2232
+
2233
+ function validateExplicitKey(element, parentType) {
2234
+ if (!element._store || element._store.validated || element.key != null) {
2235
+ return;
2236
+ }
2237
+
2238
+ element._store.validated = true;
2239
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2240
+
2241
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2242
+ return;
2243
+ }
2244
+
2245
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
2246
+ // property, it may be the creator of the child that's responsible for
2247
+ // assigning it a key.
2248
+
2249
+ var childOwner = '';
2250
+
2251
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
2252
+ // Give the component that originally created this child.
2253
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2254
+ }
2255
+
2256
+ {
2257
+ setCurrentlyValidatingElement$1(element);
2258
+
2259
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2260
+
2261
+ setCurrentlyValidatingElement$1(null);
2262
+ }
2263
+ }
2264
+ /**
2265
+ * Ensure that every element either is passed in a static location, in an
2266
+ * array with an explicit keys property defined, or in an object literal
2267
+ * with valid key property.
2268
+ *
2269
+ * @internal
2270
+ * @param {ReactNode} node Statically passed child of any type.
2271
+ * @param {*} parentType node's parent's type.
2272
+ */
2273
+
2274
+
2275
+ function validateChildKeys(node, parentType) {
2276
+ if (typeof node !== 'object') {
2277
+ return;
2278
+ }
2279
+
2280
+ if (isArray(node)) {
2281
+ for (var i = 0; i < node.length; i++) {
2282
+ var child = node[i];
2283
+
2284
+ if (isValidElement(child)) {
2285
+ validateExplicitKey(child, parentType);
2286
+ }
2287
+ }
2288
+ } else if (isValidElement(node)) {
2289
+ // This element was passed in a valid location.
2290
+ if (node._store) {
2291
+ node._store.validated = true;
2292
+ }
2293
+ } else if (node) {
2294
+ var iteratorFn = getIteratorFn(node);
2295
+
2296
+ if (typeof iteratorFn === 'function') {
2297
+ // Entry iterators used to provide implicit keys,
2298
+ // but now we print a separate warning for them later.
2299
+ if (iteratorFn !== node.entries) {
2300
+ var iterator = iteratorFn.call(node);
2301
+ var step;
2302
+
2303
+ while (!(step = iterator.next()).done) {
2304
+ if (isValidElement(step.value)) {
2305
+ validateExplicitKey(step.value, parentType);
2306
+ }
2307
+ }
2308
+ }
2309
+ }
2310
+ }
2311
+ }
2312
+ /**
2313
+ * Given an element, validate that its props follow the propTypes definition,
2314
+ * provided by the type.
2315
+ *
2316
+ * @param {ReactElement} element
2317
+ */
2318
+
2319
+
2320
+ function validatePropTypes(element) {
2321
+ {
2322
+ var type = element.type;
2323
+
2324
+ if (type === null || type === undefined || typeof type === 'string') {
2325
+ return;
2326
+ }
2327
+
2328
+ var propTypes;
2329
+
2330
+ if (typeof type === 'function') {
2331
+ propTypes = type.propTypes;
2332
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2333
+ // Inner props are checked in the reconciler.
2334
+ type.$$typeof === REACT_MEMO_TYPE)) {
2335
+ propTypes = type.propTypes;
2336
+ } else {
2337
+ return;
2338
+ }
2339
+
2340
+ if (propTypes) {
2341
+ // Intentionally inside to avoid triggering lazy initializers:
2342
+ var name = getComponentNameFromType(type);
2343
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
2344
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
2345
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
2346
+
2347
+ var _name = getComponentNameFromType(type);
2348
+
2349
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
2350
+ }
2351
+
2352
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
2353
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
2354
+ }
2355
+ }
2356
+ }
2357
+ /**
2358
+ * Given a fragment, validate that it can only be provided with fragment props
2359
+ * @param {ReactElement} fragment
2360
+ */
2361
+
2362
+
2363
+ function validateFragmentProps(fragment) {
2364
+ {
2365
+ var keys = Object.keys(fragment.props);
2366
+
2367
+ for (var i = 0; i < keys.length; i++) {
2368
+ var key = keys[i];
2369
+
2370
+ if (key !== 'children' && key !== 'key') {
2371
+ setCurrentlyValidatingElement$1(fragment);
2372
+
2373
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
2374
+
2375
+ setCurrentlyValidatingElement$1(null);
2376
+ break;
2377
+ }
2378
+ }
2379
+
2380
+ if (fragment.ref !== null) {
2381
+ setCurrentlyValidatingElement$1(fragment);
2382
+
2383
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
2384
+
2385
+ setCurrentlyValidatingElement$1(null);
2386
+ }
2387
+ }
2388
+ }
2389
+ function createElementWithValidation(type, props, children) {
2390
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2391
+ // succeed and there will likely be errors in render.
2392
+
2393
+ if (!validType) {
2394
+ var info = '';
2395
+
2396
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
2397
+ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
2398
+ }
2399
+
2400
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
2401
+
2402
+ if (sourceInfo) {
2403
+ info += sourceInfo;
2404
+ } else {
2405
+ info += getDeclarationErrorAddendum();
2406
+ }
2407
+
2408
+ var typeString;
2409
+
2410
+ if (type === null) {
2411
+ typeString = 'null';
2412
+ } else if (isArray(type)) {
2413
+ typeString = 'array';
2414
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
2415
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
2416
+ info = ' Did you accidentally export a JSX literal instead of a component?';
2417
+ } else {
2418
+ typeString = typeof type;
2419
+ }
2420
+
2421
+ {
2422
+ error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
2423
+ }
2424
+ }
2425
+
2426
+ var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
2427
+ // TODO: Drop this when these are no longer allowed as the type argument.
2428
+
2429
+ if (element == null) {
2430
+ return element;
2431
+ } // Skip key warning if the type isn't valid since our key validation logic
2432
+ // doesn't expect a non-string/function type and can throw confusing errors.
2433
+ // We don't want exception behavior to differ between dev and prod.
2434
+ // (Rendering will throw with a helpful message and as soon as the type is
2435
+ // fixed, the key warnings will appear.)
2436
+
2437
+
2438
+ if (validType) {
2439
+ for (var i = 2; i < arguments.length; i++) {
2440
+ validateChildKeys(arguments[i], type);
2441
+ }
2442
+ }
2443
+
2444
+ if (type === REACT_FRAGMENT_TYPE) {
2445
+ validateFragmentProps(element);
2446
+ } else {
2447
+ validatePropTypes(element);
2448
+ }
2449
+
2450
+ return element;
2451
+ }
2452
+ var didWarnAboutDeprecatedCreateFactory = false;
2453
+ function createFactoryWithValidation(type) {
2454
+ var validatedFactory = createElementWithValidation.bind(null, type);
2455
+ validatedFactory.type = type;
2456
+
2457
+ {
2458
+ if (!didWarnAboutDeprecatedCreateFactory) {
2459
+ didWarnAboutDeprecatedCreateFactory = true;
2460
+
2461
+ warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
2462
+ } // Legacy hook: remove it
2463
+
2464
+
2465
+ Object.defineProperty(validatedFactory, 'type', {
2466
+ enumerable: false,
2467
+ get: function () {
2468
+ warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
2469
+
2470
+ Object.defineProperty(this, 'type', {
2471
+ value: type
2472
+ });
2473
+ return type;
2474
+ }
2475
+ });
2476
+ }
2477
+
2478
+ return validatedFactory;
2479
+ }
2480
+ function cloneElementWithValidation(element, props, children) {
2481
+ var newElement = cloneElement.apply(this, arguments);
2482
+
2483
+ for (var i = 2; i < arguments.length; i++) {
2484
+ validateChildKeys(arguments[i], newElement.type);
2485
+ }
2486
+
2487
+ validatePropTypes(newElement);
2488
+ return newElement;
2489
+ }
2490
+
2491
+ function startTransition(scope, options) {
2492
+ var prevTransition = ReactCurrentBatchConfig.transition;
2493
+ ReactCurrentBatchConfig.transition = {};
2494
+ var currentTransition = ReactCurrentBatchConfig.transition;
2495
+
2496
+ {
2497
+ ReactCurrentBatchConfig.transition._updatedFibers = new Set();
2498
+ }
2499
+
2500
+ try {
2501
+ scope();
2502
+ } finally {
2503
+ ReactCurrentBatchConfig.transition = prevTransition;
2504
+
2505
+ {
2506
+ if (prevTransition === null && currentTransition._updatedFibers) {
2507
+ var updatedFibersCount = currentTransition._updatedFibers.size;
2508
+
2509
+ if (updatedFibersCount > 10) {
2510
+ warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');
2511
+ }
2512
+
2513
+ currentTransition._updatedFibers.clear();
2514
+ }
2515
+ }
2516
+ }
2517
+ }
2518
+
2519
+ var didWarnAboutMessageChannel = false;
2520
+ var enqueueTaskImpl = null;
2521
+ function enqueueTask(task) {
2522
+ if (enqueueTaskImpl === null) {
2523
+ try {
2524
+ // read require off the module object to get around the bundlers.
2525
+ // we don't want them to detect a require and bundle a Node polyfill.
2526
+ var requireString = ('require' + Math.random()).slice(0, 7);
2527
+ var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's
2528
+ // version of setImmediate, bypassing fake timers if any.
2529
+
2530
+ enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate;
2531
+ } catch (_err) {
2532
+ // we're in a browser
2533
+ // we can't use regular timers because they may still be faked
2534
+ // so we try MessageChannel+postMessage instead
2535
+ enqueueTaskImpl = function (callback) {
2536
+ {
2537
+ if (didWarnAboutMessageChannel === false) {
2538
+ didWarnAboutMessageChannel = true;
2539
+
2540
+ if (typeof MessageChannel === 'undefined') {
2541
+ error('This browser does not have a MessageChannel implementation, ' + 'so enqueuing tasks via await act(async () => ...) will fail. ' + 'Please file an issue at https://github.com/facebook/react/issues ' + 'if you encounter this warning.');
2542
+ }
2543
+ }
2544
+ }
2545
+
2546
+ var channel = new MessageChannel();
2547
+ channel.port1.onmessage = callback;
2548
+ channel.port2.postMessage(undefined);
2549
+ };
2550
+ }
2551
+ }
2552
+
2553
+ return enqueueTaskImpl(task);
2554
+ }
2555
+
2556
+ var actScopeDepth = 0;
2557
+ var didWarnNoAwaitAct = false;
2558
+ function act(callback) {
2559
+ {
2560
+ // `act` calls can be nested, so we track the depth. This represents the
2561
+ // number of `act` scopes on the stack.
2562
+ var prevActScopeDepth = actScopeDepth;
2563
+ actScopeDepth++;
2564
+
2565
+ if (ReactCurrentActQueue.current === null) {
2566
+ // This is the outermost `act` scope. Initialize the queue. The reconciler
2567
+ // will detect the queue and use it instead of Scheduler.
2568
+ ReactCurrentActQueue.current = [];
2569
+ }
2570
+
2571
+ var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
2572
+ var result;
2573
+
2574
+ try {
2575
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode. Only
2576
+ // set to `true` while the given callback is executed, not for updates
2577
+ // triggered during an async event, because this is how the legacy
2578
+ // implementation of `act` behaved.
2579
+ ReactCurrentActQueue.isBatchingLegacy = true;
2580
+ result = callback(); // Replicate behavior of original `act` implementation in legacy mode,
2581
+ // which flushed updates immediately after the scope function exits, even
2582
+ // if it's an async function.
2583
+
2584
+ if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
2585
+ var queue = ReactCurrentActQueue.current;
2586
+
2587
+ if (queue !== null) {
2588
+ ReactCurrentActQueue.didScheduleLegacyUpdate = false;
2589
+ flushActQueue(queue);
2590
+ }
2591
+ }
2592
+ } catch (error) {
2593
+ popActScope(prevActScopeDepth);
2594
+ throw error;
2595
+ } finally {
2596
+ ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
2597
+ }
2598
+
2599
+ if (result !== null && typeof result === 'object' && typeof result.then === 'function') {
2600
+ var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait
2601
+ // for it to resolve before exiting the current scope.
2602
+
2603
+ var wasAwaited = false;
2604
+ var thenable = {
2605
+ then: function (resolve, reject) {
2606
+ wasAwaited = true;
2607
+ thenableResult.then(function (returnValue) {
2608
+ popActScope(prevActScopeDepth);
2609
+
2610
+ if (actScopeDepth === 0) {
2611
+ // We've exited the outermost act scope. Recursively flush the
2612
+ // queue until there's no remaining work.
2613
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2614
+ } else {
2615
+ resolve(returnValue);
2616
+ }
2617
+ }, function (error) {
2618
+ // The callback threw an error.
2619
+ popActScope(prevActScopeDepth);
2620
+ reject(error);
2621
+ });
2622
+ }
2623
+ };
2624
+
2625
+ {
2626
+ if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') {
2627
+ // eslint-disable-next-line no-undef
2628
+ Promise.resolve().then(function () {}).then(function () {
2629
+ if (!wasAwaited) {
2630
+ didWarnNoAwaitAct = true;
2631
+
2632
+ error('You called act(async () => ...) without await. ' + 'This could lead to unexpected testing behaviour, ' + 'interleaving multiple act calls and mixing their ' + 'scopes. ' + 'You should - await act(async () => ...);');
2633
+ }
2634
+ });
2635
+ }
2636
+ }
2637
+
2638
+ return thenable;
2639
+ } else {
2640
+ var returnValue = result; // The callback is not an async function. Exit the current scope
2641
+ // immediately, without awaiting.
2642
+
2643
+ popActScope(prevActScopeDepth);
2644
+
2645
+ if (actScopeDepth === 0) {
2646
+ // Exiting the outermost act scope. Flush the queue.
2647
+ var _queue = ReactCurrentActQueue.current;
2648
+
2649
+ if (_queue !== null) {
2650
+ flushActQueue(_queue);
2651
+ ReactCurrentActQueue.current = null;
2652
+ } // Return a thenable. If the user awaits it, we'll flush again in
2653
+ // case additional work was scheduled by a microtask.
2654
+
2655
+
2656
+ var _thenable = {
2657
+ then: function (resolve, reject) {
2658
+ // Confirm we haven't re-entered another `act` scope, in case
2659
+ // the user does something weird like await the thenable
2660
+ // multiple times.
2661
+ if (ReactCurrentActQueue.current === null) {
2662
+ // Recursively flush the queue until there's no remaining work.
2663
+ ReactCurrentActQueue.current = [];
2664
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2665
+ } else {
2666
+ resolve(returnValue);
2667
+ }
2668
+ }
2669
+ };
2670
+ return _thenable;
2671
+ } else {
2672
+ // Since we're inside a nested `act` scope, the returned thenable
2673
+ // immediately resolves. The outer scope will flush the queue.
2674
+ var _thenable2 = {
2675
+ then: function (resolve, reject) {
2676
+ resolve(returnValue);
2677
+ }
2678
+ };
2679
+ return _thenable2;
2680
+ }
2681
+ }
2682
+ }
2683
+ }
2684
+
2685
+ function popActScope(prevActScopeDepth) {
2686
+ {
2687
+ if (prevActScopeDepth !== actScopeDepth - 1) {
2688
+ error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. ');
2689
+ }
2690
+
2691
+ actScopeDepth = prevActScopeDepth;
2692
+ }
2693
+ }
2694
+
2695
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2696
+ {
2697
+ var queue = ReactCurrentActQueue.current;
2698
+
2699
+ if (queue !== null) {
2700
+ try {
2701
+ flushActQueue(queue);
2702
+ enqueueTask(function () {
2703
+ if (queue.length === 0) {
2704
+ // No additional work was scheduled. Finish.
2705
+ ReactCurrentActQueue.current = null;
2706
+ resolve(returnValue);
2707
+ } else {
2708
+ // Keep flushing work until there's none left.
2709
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2710
+ }
2711
+ });
2712
+ } catch (error) {
2713
+ reject(error);
2714
+ }
2715
+ } else {
2716
+ resolve(returnValue);
2717
+ }
2718
+ }
2719
+ }
2720
+
2721
+ var isFlushing = false;
2722
+
2723
+ function flushActQueue(queue) {
2724
+ {
2725
+ if (!isFlushing) {
2726
+ // Prevent re-entrance.
2727
+ isFlushing = true;
2728
+ var i = 0;
2729
+
2730
+ try {
2731
+ for (; i < queue.length; i++) {
2732
+ var callback = queue[i];
2733
+
2734
+ do {
2735
+ callback = callback(true);
2736
+ } while (callback !== null);
2737
+ }
2738
+
2739
+ queue.length = 0;
2740
+ } catch (error) {
2741
+ // If something throws, leave the remaining callbacks on the queue.
2742
+ queue = queue.slice(i + 1);
2743
+ throw error;
2744
+ } finally {
2745
+ isFlushing = false;
2746
+ }
2747
+ }
2748
+ }
2749
+ }
2750
+
2751
+ var createElement$1 = createElementWithValidation ;
2752
+ var cloneElement$1 = cloneElementWithValidation ;
2753
+ var createFactory = createFactoryWithValidation ;
2754
+ var Children = {
2755
+ map: mapChildren,
2756
+ forEach: forEachChildren,
2757
+ count: countChildren,
2758
+ toArray: toArray,
2759
+ only: onlyChild
2760
+ };
2761
+
2762
+ exports.Children = Children;
2763
+ exports.Component = Component;
2764
+ exports.Fragment = REACT_FRAGMENT_TYPE;
2765
+ exports.Profiler = REACT_PROFILER_TYPE;
2766
+ exports.PureComponent = PureComponent;
2767
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
2768
+ exports.Suspense = REACT_SUSPENSE_TYPE;
2769
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2770
+ exports.act = act;
2771
+ exports.cloneElement = cloneElement$1;
2772
+ exports.createContext = createContext;
2773
+ exports.createElement = createElement$1;
2774
+ exports.createFactory = createFactory;
2775
+ exports.createRef = createRef;
2776
+ exports.forwardRef = forwardRef;
2777
+ exports.isValidElement = isValidElement;
2778
+ exports.lazy = lazy;
2779
+ exports.memo = memo;
2780
+ exports.startTransition = startTransition;
2781
+ exports.unstable_act = act;
2782
+ exports.useCallback = useCallback;
2783
+ exports.useContext = useContext;
2784
+ exports.useDebugValue = useDebugValue;
2785
+ exports.useDeferredValue = useDeferredValue;
2786
+ exports.useEffect = useEffect;
2787
+ exports.useId = useId;
2788
+ exports.useImperativeHandle = useImperativeHandle;
2789
+ exports.useInsertionEffect = useInsertionEffect;
2790
+ exports.useLayoutEffect = useLayoutEffect;
2791
+ exports.useMemo = useMemo;
2792
+ exports.useReducer = useReducer;
2793
+ exports.useRef = useRef;
2794
+ exports.useState = useState;
2795
+ exports.useSyncExternalStore = useSyncExternalStore;
2796
+ exports.useTransition = useTransition;
2797
+ exports.version = ReactVersion;
2798
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
2799
+ if (
2800
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2801
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
2802
+ 'function'
2803
+ ) {
2804
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2805
+ }
2806
+
2807
+ })();
2808
+ }
2809
+ } (react_development, react_development.exports));
2810
+ return react_development.exports;
2811
+ }
2812
+
2813
+ var hasRequiredReact;
2814
+
2815
+ function requireReact () {
2816
+ if (hasRequiredReact) return react.exports;
2817
+ hasRequiredReact = 1;
2818
+
2819
+ if (process.env.NODE_ENV === 'production') {
2820
+ react.exports = requireReact_production_min();
2821
+ } else {
2822
+ react.exports = requireReact_development();
2823
+ }
2824
+ return react.exports;
2825
+ }
2826
+
2827
+ /**
2828
+ * @license React
2829
+ * react-jsx-runtime.production.min.js
2830
+ *
2831
+ * Copyright (c) Facebook, Inc. and its affiliates.
2832
+ *
2833
+ * This source code is licensed under the MIT license found in the
2834
+ * LICENSE file in the root directory of this source tree.
2835
+ */
2836
+
2837
+ var hasRequiredReactJsxRuntime_production_min;
2838
+
2839
+ function requireReactJsxRuntime_production_min () {
2840
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
2841
+ hasRequiredReactJsxRuntime_production_min = 1;
2842
+ var f=requireReact(),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
2843
+ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
2844
+ return reactJsxRuntime_production_min;
2845
+ }
2846
+
2847
+ var reactJsxRuntime_development = {};
2848
+
2849
+ /**
2850
+ * @license React
2851
+ * react-jsx-runtime.development.js
2852
+ *
2853
+ * Copyright (c) Facebook, Inc. and its affiliates.
2854
+ *
2855
+ * This source code is licensed under the MIT license found in the
2856
+ * LICENSE file in the root directory of this source tree.
2857
+ */
2858
+
2859
+ var hasRequiredReactJsxRuntime_development;
2860
+
2861
+ function requireReactJsxRuntime_development () {
2862
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
2863
+ hasRequiredReactJsxRuntime_development = 1;
2864
+
2865
+ if (process.env.NODE_ENV !== "production") {
2866
+ (function() {
2867
+
2868
+ var React = requireReact();
2869
+
2870
+ // ATTENTION
2871
+ // When adding new symbols to this file,
2872
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
2873
+ // The Symbol used to tag the ReactElement-like types.
2874
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
2875
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
2876
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
2877
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
2878
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
2879
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
2880
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
2881
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
2882
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
2883
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
2884
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
2885
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
2886
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
2887
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2888
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
2889
+ function getIteratorFn(maybeIterable) {
2890
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
2891
+ return null;
2892
+ }
2893
+
2894
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2895
+
2896
+ if (typeof maybeIterator === 'function') {
2897
+ return maybeIterator;
2898
+ }
2899
+
2900
+ return null;
2901
+ }
2902
+
2903
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2904
+
2905
+ function error(format) {
2906
+ {
2907
+ {
2908
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2909
+ args[_key2 - 1] = arguments[_key2];
2910
+ }
2911
+
2912
+ printWarning('error', format, args);
2913
+ }
2914
+ }
2915
+ }
2916
+
2917
+ function printWarning(level, format, args) {
2918
+ // When changing this logic, you might want to also
2919
+ // update consoleWithStackDev.www.js as well.
2920
+ {
2921
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2922
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
2923
+
2924
+ if (stack !== '') {
2925
+ format += '%s';
2926
+ args = args.concat([stack]);
2927
+ } // eslint-disable-next-line react-internal/safe-string-coercion
2928
+
2929
+
2930
+ var argsWithFormat = args.map(function (item) {
2931
+ return String(item);
2932
+ }); // Careful: RN currently depends on this prefix
2933
+
2934
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
2935
+ // breaks IE9: https://github.com/facebook/react/issues/13610
2936
+ // eslint-disable-next-line react-internal/no-production-logging
2937
+
2938
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
2939
+ }
2940
+ }
2941
+
2942
+ // -----------------------------------------------------------------------------
2943
+
2944
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
2945
+ var enableCacheElement = false;
2946
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
2947
+
2948
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
2949
+ // stuff. Intended to enable React core members to more easily debug scheduling
2950
+ // issues in DEV builds.
2951
+
2952
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
2953
+
2954
+ var REACT_MODULE_REFERENCE;
2955
+
2956
+ {
2957
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
2958
+ }
2959
+
2960
+ function isValidElementType(type) {
2961
+ if (typeof type === 'string' || typeof type === 'function') {
2962
+ return true;
2963
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
2964
+
2965
+
2966
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
2967
+ return true;
2968
+ }
2969
+
2970
+ if (typeof type === 'object' && type !== null) {
2971
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
2972
+ // types supported by any Flight configuration anywhere since
2973
+ // we don't know which Flight build this will end up being used
2974
+ // with.
2975
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
2976
+ return true;
2977
+ }
2978
+ }
2979
+
2980
+ return false;
2981
+ }
2982
+
2983
+ function getWrappedName(outerType, innerType, wrapperName) {
2984
+ var displayName = outerType.displayName;
2985
+
2986
+ if (displayName) {
2987
+ return displayName;
2988
+ }
2989
+
2990
+ var functionName = innerType.displayName || innerType.name || '';
2991
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
2992
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
2993
+
2994
+
2995
+ function getContextName(type) {
2996
+ return type.displayName || 'Context';
2997
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
2998
+
2999
+
3000
+ function getComponentNameFromType(type) {
3001
+ if (type == null) {
3002
+ // Host root, text node or just invalid type.
3003
+ return null;
3004
+ }
3005
+
3006
+ {
3007
+ if (typeof type.tag === 'number') {
3008
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
3009
+ }
3010
+ }
3011
+
3012
+ if (typeof type === 'function') {
3013
+ return type.displayName || type.name || null;
3014
+ }
3015
+
3016
+ if (typeof type === 'string') {
3017
+ return type;
3018
+ }
3019
+
3020
+ switch (type) {
3021
+ case REACT_FRAGMENT_TYPE:
3022
+ return 'Fragment';
3023
+
3024
+ case REACT_PORTAL_TYPE:
3025
+ return 'Portal';
3026
+
3027
+ case REACT_PROFILER_TYPE:
3028
+ return 'Profiler';
3029
+
3030
+ case REACT_STRICT_MODE_TYPE:
3031
+ return 'StrictMode';
3032
+
3033
+ case REACT_SUSPENSE_TYPE:
3034
+ return 'Suspense';
3035
+
3036
+ case REACT_SUSPENSE_LIST_TYPE:
3037
+ return 'SuspenseList';
3038
+
3039
+ }
3040
+
3041
+ if (typeof type === 'object') {
3042
+ switch (type.$$typeof) {
3043
+ case REACT_CONTEXT_TYPE:
3044
+ var context = type;
3045
+ return getContextName(context) + '.Consumer';
3046
+
3047
+ case REACT_PROVIDER_TYPE:
3048
+ var provider = type;
3049
+ return getContextName(provider._context) + '.Provider';
3050
+
3051
+ case REACT_FORWARD_REF_TYPE:
3052
+ return getWrappedName(type, type.render, 'ForwardRef');
3053
+
3054
+ case REACT_MEMO_TYPE:
3055
+ var outerName = type.displayName || null;
3056
+
3057
+ if (outerName !== null) {
3058
+ return outerName;
3059
+ }
3060
+
3061
+ return getComponentNameFromType(type.type) || 'Memo';
3062
+
3063
+ case REACT_LAZY_TYPE:
3064
+ {
3065
+ var lazyComponent = type;
3066
+ var payload = lazyComponent._payload;
3067
+ var init = lazyComponent._init;
3068
+
3069
+ try {
3070
+ return getComponentNameFromType(init(payload));
3071
+ } catch (x) {
3072
+ return null;
3073
+ }
3074
+ }
3075
+
3076
+ // eslint-disable-next-line no-fallthrough
3077
+ }
3078
+ }
3079
+
3080
+ return null;
3081
+ }
3082
+
3083
+ var assign = Object.assign;
3084
+
3085
+ // Helpers to patch console.logs to avoid logging during side-effect free
3086
+ // replaying on render function. This currently only patches the object
3087
+ // lazily which won't cover if the log function was extracted eagerly.
3088
+ // We could also eagerly patch the method.
3089
+ var disabledDepth = 0;
3090
+ var prevLog;
3091
+ var prevInfo;
3092
+ var prevWarn;
3093
+ var prevError;
3094
+ var prevGroup;
3095
+ var prevGroupCollapsed;
3096
+ var prevGroupEnd;
3097
+
3098
+ function disabledLog() {}
3099
+
3100
+ disabledLog.__reactDisabledLog = true;
3101
+ function disableLogs() {
3102
+ {
3103
+ if (disabledDepth === 0) {
3104
+ /* eslint-disable react-internal/no-production-logging */
3105
+ prevLog = console.log;
3106
+ prevInfo = console.info;
3107
+ prevWarn = console.warn;
3108
+ prevError = console.error;
3109
+ prevGroup = console.group;
3110
+ prevGroupCollapsed = console.groupCollapsed;
3111
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
3112
+
3113
+ var props = {
3114
+ configurable: true,
3115
+ enumerable: true,
3116
+ value: disabledLog,
3117
+ writable: true
3118
+ }; // $FlowFixMe Flow thinks console is immutable.
3119
+
3120
+ Object.defineProperties(console, {
3121
+ info: props,
3122
+ log: props,
3123
+ warn: props,
3124
+ error: props,
3125
+ group: props,
3126
+ groupCollapsed: props,
3127
+ groupEnd: props
3128
+ });
3129
+ /* eslint-enable react-internal/no-production-logging */
3130
+ }
3131
+
3132
+ disabledDepth++;
3133
+ }
3134
+ }
3135
+ function reenableLogs() {
3136
+ {
3137
+ disabledDepth--;
3138
+
3139
+ if (disabledDepth === 0) {
3140
+ /* eslint-disable react-internal/no-production-logging */
3141
+ var props = {
3142
+ configurable: true,
3143
+ enumerable: true,
3144
+ writable: true
3145
+ }; // $FlowFixMe Flow thinks console is immutable.
3146
+
3147
+ Object.defineProperties(console, {
3148
+ log: assign({}, props, {
3149
+ value: prevLog
3150
+ }),
3151
+ info: assign({}, props, {
3152
+ value: prevInfo
3153
+ }),
3154
+ warn: assign({}, props, {
3155
+ value: prevWarn
3156
+ }),
3157
+ error: assign({}, props, {
3158
+ value: prevError
3159
+ }),
3160
+ group: assign({}, props, {
3161
+ value: prevGroup
3162
+ }),
3163
+ groupCollapsed: assign({}, props, {
3164
+ value: prevGroupCollapsed
3165
+ }),
3166
+ groupEnd: assign({}, props, {
3167
+ value: prevGroupEnd
3168
+ })
3169
+ });
3170
+ /* eslint-enable react-internal/no-production-logging */
3171
+ }
3172
+
3173
+ if (disabledDepth < 0) {
3174
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
3175
+ }
3176
+ }
3177
+ }
3178
+
3179
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
3180
+ var prefix;
3181
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
3182
+ {
3183
+ if (prefix === undefined) {
3184
+ // Extract the VM specific prefix used by each line.
3185
+ try {
3186
+ throw Error();
3187
+ } catch (x) {
3188
+ var match = x.stack.trim().match(/\n( *(at )?)/);
3189
+ prefix = match && match[1] || '';
3190
+ }
3191
+ } // We use the prefix to ensure our stacks line up with native stack frames.
3192
+
3193
+
3194
+ return '\n' + prefix + name;
3195
+ }
3196
+ }
3197
+ var reentry = false;
3198
+ var componentFrameCache;
3199
+
3200
+ {
3201
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
3202
+ componentFrameCache = new PossiblyWeakMap();
3203
+ }
3204
+
3205
+ function describeNativeComponentFrame(fn, construct) {
3206
+ // If something asked for a stack inside a fake render, it should get ignored.
3207
+ if ( !fn || reentry) {
3208
+ return '';
3209
+ }
3210
+
3211
+ {
3212
+ var frame = componentFrameCache.get(fn);
3213
+
3214
+ if (frame !== undefined) {
3215
+ return frame;
3216
+ }
3217
+ }
3218
+
3219
+ var control;
3220
+ reentry = true;
3221
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
3222
+
3223
+ Error.prepareStackTrace = undefined;
3224
+ var previousDispatcher;
3225
+
3226
+ {
3227
+ previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
3228
+ // for warnings.
3229
+
3230
+ ReactCurrentDispatcher.current = null;
3231
+ disableLogs();
3232
+ }
3233
+
3234
+ try {
3235
+ // This should throw.
3236
+ if (construct) {
3237
+ // Something should be setting the props in the constructor.
3238
+ var Fake = function () {
3239
+ throw Error();
3240
+ }; // $FlowFixMe
3241
+
3242
+
3243
+ Object.defineProperty(Fake.prototype, 'props', {
3244
+ set: function () {
3245
+ // We use a throwing setter instead of frozen or non-writable props
3246
+ // because that won't throw in a non-strict mode function.
3247
+ throw Error();
3248
+ }
3249
+ });
3250
+
3251
+ if (typeof Reflect === 'object' && Reflect.construct) {
3252
+ // We construct a different control for this case to include any extra
3253
+ // frames added by the construct call.
3254
+ try {
3255
+ Reflect.construct(Fake, []);
3256
+ } catch (x) {
3257
+ control = x;
3258
+ }
3259
+
3260
+ Reflect.construct(fn, [], Fake);
3261
+ } else {
3262
+ try {
3263
+ Fake.call();
3264
+ } catch (x) {
3265
+ control = x;
3266
+ }
3267
+
3268
+ fn.call(Fake.prototype);
3269
+ }
3270
+ } else {
3271
+ try {
3272
+ throw Error();
3273
+ } catch (x) {
3274
+ control = x;
3275
+ }
3276
+
3277
+ fn();
3278
+ }
3279
+ } catch (sample) {
3280
+ // This is inlined manually because closure doesn't do it for us.
3281
+ if (sample && control && typeof sample.stack === 'string') {
3282
+ // This extracts the first frame from the sample that isn't also in the control.
3283
+ // Skipping one frame that we assume is the frame that calls the two.
3284
+ var sampleLines = sample.stack.split('\n');
3285
+ var controlLines = control.stack.split('\n');
3286
+ var s = sampleLines.length - 1;
3287
+ var c = controlLines.length - 1;
3288
+
3289
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
3290
+ // We expect at least one stack frame to be shared.
3291
+ // Typically this will be the root most one. However, stack frames may be
3292
+ // cut off due to maximum stack limits. In this case, one maybe cut off
3293
+ // earlier than the other. We assume that the sample is longer or the same
3294
+ // and there for cut off earlier. So we should find the root most frame in
3295
+ // the sample somewhere in the control.
3296
+ c--;
3297
+ }
3298
+
3299
+ for (; s >= 1 && c >= 0; s--, c--) {
3300
+ // Next we find the first one that isn't the same which should be the
3301
+ // frame that called our sample function and the control.
3302
+ if (sampleLines[s] !== controlLines[c]) {
3303
+ // In V8, the first line is describing the message but other VMs don't.
3304
+ // If we're about to return the first line, and the control is also on the same
3305
+ // line, that's a pretty good indicator that our sample threw at same line as
3306
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
3307
+ // This can happen if you passed a class to function component, or non-function.
3308
+ if (s !== 1 || c !== 1) {
3309
+ do {
3310
+ s--;
3311
+ c--; // We may still have similar intermediate frames from the construct call.
3312
+ // The next one that isn't the same should be our match though.
3313
+
3314
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
3315
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
3316
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
3317
+ // but we have a user-provided "displayName"
3318
+ // splice it in to make the stack more readable.
3319
+
3320
+
3321
+ if (fn.displayName && _frame.includes('<anonymous>')) {
3322
+ _frame = _frame.replace('<anonymous>', fn.displayName);
3323
+ }
3324
+
3325
+ {
3326
+ if (typeof fn === 'function') {
3327
+ componentFrameCache.set(fn, _frame);
3328
+ }
3329
+ } // Return the line we found.
3330
+
3331
+
3332
+ return _frame;
3333
+ }
3334
+ } while (s >= 1 && c >= 0);
3335
+ }
3336
+
3337
+ break;
3338
+ }
3339
+ }
3340
+ }
3341
+ } finally {
3342
+ reentry = false;
3343
+
3344
+ {
3345
+ ReactCurrentDispatcher.current = previousDispatcher;
3346
+ reenableLogs();
3347
+ }
3348
+
3349
+ Error.prepareStackTrace = previousPrepareStackTrace;
3350
+ } // Fallback to just using the name if we couldn't make it throw.
3351
+
3352
+
3353
+ var name = fn ? fn.displayName || fn.name : '';
3354
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
3355
+
3356
+ {
3357
+ if (typeof fn === 'function') {
3358
+ componentFrameCache.set(fn, syntheticFrame);
3359
+ }
3360
+ }
3361
+
3362
+ return syntheticFrame;
3363
+ }
3364
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
3365
+ {
3366
+ return describeNativeComponentFrame(fn, false);
3367
+ }
3368
+ }
3369
+
3370
+ function shouldConstruct(Component) {
3371
+ var prototype = Component.prototype;
3372
+ return !!(prototype && prototype.isReactComponent);
3373
+ }
3374
+
3375
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
3376
+
3377
+ if (type == null) {
3378
+ return '';
3379
+ }
3380
+
3381
+ if (typeof type === 'function') {
3382
+ {
3383
+ return describeNativeComponentFrame(type, shouldConstruct(type));
3384
+ }
3385
+ }
3386
+
3387
+ if (typeof type === 'string') {
3388
+ return describeBuiltInComponentFrame(type);
3389
+ }
3390
+
3391
+ switch (type) {
3392
+ case REACT_SUSPENSE_TYPE:
3393
+ return describeBuiltInComponentFrame('Suspense');
3394
+
3395
+ case REACT_SUSPENSE_LIST_TYPE:
3396
+ return describeBuiltInComponentFrame('SuspenseList');
3397
+ }
3398
+
3399
+ if (typeof type === 'object') {
3400
+ switch (type.$$typeof) {
3401
+ case REACT_FORWARD_REF_TYPE:
3402
+ return describeFunctionComponentFrame(type.render);
3403
+
3404
+ case REACT_MEMO_TYPE:
3405
+ // Memo may contain any component type so we recursively resolve it.
3406
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
3407
+
3408
+ case REACT_LAZY_TYPE:
3409
+ {
3410
+ var lazyComponent = type;
3411
+ var payload = lazyComponent._payload;
3412
+ var init = lazyComponent._init;
3413
+
3414
+ try {
3415
+ // Lazy may contain any component type so we recursively resolve it.
3416
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
3417
+ } catch (x) {}
3418
+ }
3419
+ }
3420
+ }
3421
+
3422
+ return '';
3423
+ }
3424
+
3425
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
3426
+
3427
+ var loggedTypeFailures = {};
3428
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
3429
+
3430
+ function setCurrentlyValidatingElement(element) {
3431
+ {
3432
+ if (element) {
3433
+ var owner = element._owner;
3434
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
3435
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
3436
+ } else {
3437
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
3438
+ }
3439
+ }
3440
+ }
3441
+
3442
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
3443
+ {
3444
+ // $FlowFixMe This is okay but Flow doesn't know it.
3445
+ var has = Function.call.bind(hasOwnProperty);
3446
+
3447
+ for (var typeSpecName in typeSpecs) {
3448
+ if (has(typeSpecs, typeSpecName)) {
3449
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
3450
+ // fail the render phase where it didn't fail before. So we log it.
3451
+ // After these have been cleaned up, we'll let them throw.
3452
+
3453
+ try {
3454
+ // This is intentionally an invariant that gets caught. It's the same
3455
+ // behavior as without this statement except with a better message.
3456
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
3457
+ // eslint-disable-next-line react-internal/prod-error-codes
3458
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
3459
+ err.name = 'Invariant Violation';
3460
+ throw err;
3461
+ }
3462
+
3463
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
3464
+ } catch (ex) {
3465
+ error$1 = ex;
3466
+ }
3467
+
3468
+ if (error$1 && !(error$1 instanceof Error)) {
3469
+ setCurrentlyValidatingElement(element);
3470
+
3471
+ error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
3472
+
3473
+ setCurrentlyValidatingElement(null);
3474
+ }
3475
+
3476
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
3477
+ // Only monitor this failure once because there tends to be a lot of the
3478
+ // same error.
3479
+ loggedTypeFailures[error$1.message] = true;
3480
+ setCurrentlyValidatingElement(element);
3481
+
3482
+ error('Failed %s type: %s', location, error$1.message);
3483
+
3484
+ setCurrentlyValidatingElement(null);
3485
+ }
3486
+ }
3487
+ }
3488
+ }
3489
+ }
3490
+
3491
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
3492
+
3493
+ function isArray(a) {
3494
+ return isArrayImpl(a);
3495
+ }
3496
+
3497
+ /*
3498
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
3499
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
3500
+ *
3501
+ * The functions in this module will throw an easier-to-understand,
3502
+ * easier-to-debug exception with a clear errors message message explaining the
3503
+ * problem. (Instead of a confusing exception thrown inside the implementation
3504
+ * of the `value` object).
3505
+ */
3506
+ // $FlowFixMe only called in DEV, so void return is not possible.
3507
+ function typeName(value) {
3508
+ {
3509
+ // toStringTag is needed for namespaced types like Temporal.Instant
3510
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
3511
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
3512
+ return type;
3513
+ }
3514
+ } // $FlowFixMe only called in DEV, so void return is not possible.
3515
+
3516
+
3517
+ function willCoercionThrow(value) {
3518
+ {
3519
+ try {
3520
+ testStringCoercion(value);
3521
+ return false;
3522
+ } catch (e) {
3523
+ return true;
3524
+ }
3525
+ }
3526
+ }
3527
+
3528
+ function testStringCoercion(value) {
3529
+ // If you ended up here by following an exception call stack, here's what's
3530
+ // happened: you supplied an object or symbol value to React (as a prop, key,
3531
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
3532
+ // coerce it to a string using `'' + value`, an exception was thrown.
3533
+ //
3534
+ // The most common types that will cause this exception are `Symbol` instances
3535
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
3536
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
3537
+ // exception. (Library authors do this to prevent users from using built-in
3538
+ // numeric operators like `+` or comparison operators like `>=` because custom
3539
+ // methods are needed to perform accurate arithmetic or comparison.)
3540
+ //
3541
+ // To fix the problem, coerce this object or symbol value to a string before
3542
+ // passing it to React. The most reliable way is usually `String(value)`.
3543
+ //
3544
+ // To find which value is throwing, check the browser or debugger console.
3545
+ // Before this exception was thrown, there should be `console.error` output
3546
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
3547
+ // problem and how that type was used: key, atrribute, input value prop, etc.
3548
+ // In most cases, this console output also shows the component and its
3549
+ // ancestor components where the exception happened.
3550
+ //
3551
+ // eslint-disable-next-line react-internal/safe-string-coercion
3552
+ return '' + value;
3553
+ }
3554
+ function checkKeyStringCoercion(value) {
3555
+ {
3556
+ if (willCoercionThrow(value)) {
3557
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
3558
+
3559
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
3560
+ }
3561
+ }
3562
+ }
3563
+
3564
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
3565
+ var RESERVED_PROPS = {
3566
+ key: true,
3567
+ ref: true,
3568
+ __self: true,
3569
+ __source: true
3570
+ };
3571
+ var specialPropKeyWarningShown;
3572
+ var specialPropRefWarningShown;
3573
+
3574
+ function hasValidRef(config) {
3575
+ {
3576
+ if (hasOwnProperty.call(config, 'ref')) {
3577
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
3578
+
3579
+ if (getter && getter.isReactWarning) {
3580
+ return false;
3581
+ }
3582
+ }
3583
+ }
3584
+
3585
+ return config.ref !== undefined;
3586
+ }
3587
+
3588
+ function hasValidKey(config) {
3589
+ {
3590
+ if (hasOwnProperty.call(config, 'key')) {
3591
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
3592
+
3593
+ if (getter && getter.isReactWarning) {
3594
+ return false;
3595
+ }
3596
+ }
3597
+ }
3598
+
3599
+ return config.key !== undefined;
3600
+ }
3601
+
3602
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
3603
+ {
3604
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && self) ;
3605
+ }
3606
+ }
3607
+
3608
+ function defineKeyPropWarningGetter(props, displayName) {
3609
+ {
3610
+ var warnAboutAccessingKey = function () {
3611
+ if (!specialPropKeyWarningShown) {
3612
+ specialPropKeyWarningShown = true;
3613
+
3614
+ error('%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://reactjs.org/link/special-props)', displayName);
3615
+ }
3616
+ };
3617
+
3618
+ warnAboutAccessingKey.isReactWarning = true;
3619
+ Object.defineProperty(props, 'key', {
3620
+ get: warnAboutAccessingKey,
3621
+ configurable: true
3622
+ });
3623
+ }
3624
+ }
3625
+
3626
+ function defineRefPropWarningGetter(props, displayName) {
3627
+ {
3628
+ var warnAboutAccessingRef = function () {
3629
+ if (!specialPropRefWarningShown) {
3630
+ specialPropRefWarningShown = true;
3631
+
3632
+ error('%s: `ref` 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://reactjs.org/link/special-props)', displayName);
3633
+ }
3634
+ };
3635
+
3636
+ warnAboutAccessingRef.isReactWarning = true;
3637
+ Object.defineProperty(props, 'ref', {
3638
+ get: warnAboutAccessingRef,
3639
+ configurable: true
3640
+ });
3641
+ }
3642
+ }
3643
+ /**
3644
+ * Factory method to create a new React element. This no longer adheres to
3645
+ * the class pattern, so do not use new to call it. Also, instanceof check
3646
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
3647
+ * if something is a React Element.
3648
+ *
3649
+ * @param {*} type
3650
+ * @param {*} props
3651
+ * @param {*} key
3652
+ * @param {string|object} ref
3653
+ * @param {*} owner
3654
+ * @param {*} self A *temporary* helper to detect places where `this` is
3655
+ * different from the `owner` when React.createElement is called, so that we
3656
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
3657
+ * functions, and as long as `this` and owner are the same, there will be no
3658
+ * change in behavior.
3659
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
3660
+ * indicating filename, line number, and/or other information.
3661
+ * @internal
3662
+ */
3663
+
3664
+
3665
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
3666
+ var element = {
3667
+ // This tag allows us to uniquely identify this as a React Element
3668
+ $$typeof: REACT_ELEMENT_TYPE,
3669
+ // Built-in properties that belong on the element
3670
+ type: type,
3671
+ key: key,
3672
+ ref: ref,
3673
+ props: props,
3674
+ // Record the component responsible for creating this element.
3675
+ _owner: owner
3676
+ };
3677
+
3678
+ {
3679
+ // The validation flag is currently mutative. We put it on
3680
+ // an external backing store so that we can freeze the whole object.
3681
+ // This can be replaced with a WeakMap once they are implemented in
3682
+ // commonly used development environments.
3683
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
3684
+ // the validation flag non-enumerable (where possible, which should
3685
+ // include every environment we run tests in), so the test framework
3686
+ // ignores it.
3687
+
3688
+ Object.defineProperty(element._store, 'validated', {
3689
+ configurable: false,
3690
+ enumerable: false,
3691
+ writable: true,
3692
+ value: false
3693
+ }); // self and source are DEV only properties.
3694
+
3695
+ Object.defineProperty(element, '_self', {
3696
+ configurable: false,
3697
+ enumerable: false,
3698
+ writable: false,
3699
+ value: self
3700
+ }); // Two elements created in two different places should be considered
3701
+ // equal for testing purposes and therefore we hide it from enumeration.
3702
+
3703
+ Object.defineProperty(element, '_source', {
3704
+ configurable: false,
3705
+ enumerable: false,
3706
+ writable: false,
3707
+ value: source
3708
+ });
3709
+
3710
+ if (Object.freeze) {
3711
+ Object.freeze(element.props);
3712
+ Object.freeze(element);
3713
+ }
3714
+ }
3715
+
3716
+ return element;
3717
+ };
3718
+ /**
3719
+ * https://github.com/reactjs/rfcs/pull/107
3720
+ * @param {*} type
3721
+ * @param {object} props
3722
+ * @param {string} key
3723
+ */
3724
+
3725
+ function jsxDEV(type, config, maybeKey, source, self) {
3726
+ {
3727
+ var propName; // Reserved names are extracted
3728
+
3729
+ var props = {};
3730
+ var key = null;
3731
+ var ref = null; // Currently, key can be spread in as a prop. This causes a potential
3732
+ // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
3733
+ // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
3734
+ // but as an intermediary step, we will use jsxDEV for everything except
3735
+ // <div {...props} key="Hi" />, because we aren't currently able to tell if
3736
+ // key is explicitly declared to be undefined or not.
3737
+
3738
+ if (maybeKey !== undefined) {
3739
+ {
3740
+ checkKeyStringCoercion(maybeKey);
3741
+ }
3742
+
3743
+ key = '' + maybeKey;
3744
+ }
3745
+
3746
+ if (hasValidKey(config)) {
3747
+ {
3748
+ checkKeyStringCoercion(config.key);
3749
+ }
3750
+
3751
+ key = '' + config.key;
3752
+ }
3753
+
3754
+ if (hasValidRef(config)) {
3755
+ ref = config.ref;
3756
+ warnIfStringRefCannotBeAutoConverted(config, self);
3757
+ } // Remaining properties are added to a new props object
3758
+
3759
+
3760
+ for (propName in config) {
3761
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
3762
+ props[propName] = config[propName];
3763
+ }
3764
+ } // Resolve default props
3765
+
3766
+
3767
+ if (type && type.defaultProps) {
3768
+ var defaultProps = type.defaultProps;
3769
+
3770
+ for (propName in defaultProps) {
3771
+ if (props[propName] === undefined) {
3772
+ props[propName] = defaultProps[propName];
3773
+ }
3774
+ }
3775
+ }
3776
+
3777
+ if (key || ref) {
3778
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
3779
+
3780
+ if (key) {
3781
+ defineKeyPropWarningGetter(props, displayName);
3782
+ }
3783
+
3784
+ if (ref) {
3785
+ defineRefPropWarningGetter(props, displayName);
3786
+ }
3787
+ }
3788
+
3789
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
3790
+ }
3791
+ }
3792
+
3793
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
3794
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
3795
+
3796
+ function setCurrentlyValidatingElement$1(element) {
3797
+ {
3798
+ if (element) {
3799
+ var owner = element._owner;
3800
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
3801
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
3802
+ } else {
3803
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
3804
+ }
3805
+ }
3806
+ }
3807
+
3808
+ var propTypesMisspellWarningShown;
3809
+
3810
+ {
3811
+ propTypesMisspellWarningShown = false;
3812
+ }
3813
+ /**
3814
+ * Verifies the object is a ReactElement.
3815
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
3816
+ * @param {?object} object
3817
+ * @return {boolean} True if `object` is a ReactElement.
3818
+ * @final
3819
+ */
3820
+
3821
+
3822
+ function isValidElement(object) {
3823
+ {
3824
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
3825
+ }
3826
+ }
3827
+
3828
+ function getDeclarationErrorAddendum() {
3829
+ {
3830
+ if (ReactCurrentOwner$1.current) {
3831
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
3832
+
3833
+ if (name) {
3834
+ return '\n\nCheck the render method of `' + name + '`.';
3835
+ }
3836
+ }
3837
+
3838
+ return '';
3839
+ }
3840
+ }
3841
+
3842
+ function getSourceInfoErrorAddendum(source) {
3843
+ {
3844
+
3845
+ return '';
3846
+ }
3847
+ }
3848
+ /**
3849
+ * Warn if there's no key explicitly set on dynamic arrays of children or
3850
+ * object keys are not valid. This allows us to keep track of children between
3851
+ * updates.
3852
+ */
3853
+
3854
+
3855
+ var ownerHasKeyUseWarning = {};
3856
+
3857
+ function getCurrentComponentErrorInfo(parentType) {
3858
+ {
3859
+ var info = getDeclarationErrorAddendum();
3860
+
3861
+ if (!info) {
3862
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
3863
+
3864
+ if (parentName) {
3865
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
3866
+ }
3867
+ }
3868
+
3869
+ return info;
3870
+ }
3871
+ }
3872
+ /**
3873
+ * Warn if the element doesn't have an explicit key assigned to it.
3874
+ * This element is in an array. The array could grow and shrink or be
3875
+ * reordered. All children that haven't already been validated are required to
3876
+ * have a "key" property assigned to it. Error statuses are cached so a warning
3877
+ * will only be shown once.
3878
+ *
3879
+ * @internal
3880
+ * @param {ReactElement} element Element that requires a key.
3881
+ * @param {*} parentType element's parent's type.
3882
+ */
3883
+
3884
+
3885
+ function validateExplicitKey(element, parentType) {
3886
+ {
3887
+ if (!element._store || element._store.validated || element.key != null) {
3888
+ return;
3889
+ }
3890
+
3891
+ element._store.validated = true;
3892
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
3893
+
3894
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
3895
+ return;
3896
+ }
3897
+
3898
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
3899
+ // property, it may be the creator of the child that's responsible for
3900
+ // assigning it a key.
3901
+
3902
+ var childOwner = '';
3903
+
3904
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
3905
+ // Give the component that originally created this child.
3906
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
3907
+ }
3908
+
3909
+ setCurrentlyValidatingElement$1(element);
3910
+
3911
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
3912
+
3913
+ setCurrentlyValidatingElement$1(null);
3914
+ }
3915
+ }
3916
+ /**
3917
+ * Ensure that every element either is passed in a static location, in an
3918
+ * array with an explicit keys property defined, or in an object literal
3919
+ * with valid key property.
3920
+ *
3921
+ * @internal
3922
+ * @param {ReactNode} node Statically passed child of any type.
3923
+ * @param {*} parentType node's parent's type.
3924
+ */
3925
+
3926
+
3927
+ function validateChildKeys(node, parentType) {
3928
+ {
3929
+ if (typeof node !== 'object') {
3930
+ return;
3931
+ }
3932
+
3933
+ if (isArray(node)) {
3934
+ for (var i = 0; i < node.length; i++) {
3935
+ var child = node[i];
3936
+
3937
+ if (isValidElement(child)) {
3938
+ validateExplicitKey(child, parentType);
3939
+ }
3940
+ }
3941
+ } else if (isValidElement(node)) {
3942
+ // This element was passed in a valid location.
3943
+ if (node._store) {
3944
+ node._store.validated = true;
3945
+ }
3946
+ } else if (node) {
3947
+ var iteratorFn = getIteratorFn(node);
3948
+
3949
+ if (typeof iteratorFn === 'function') {
3950
+ // Entry iterators used to provide implicit keys,
3951
+ // but now we print a separate warning for them later.
3952
+ if (iteratorFn !== node.entries) {
3953
+ var iterator = iteratorFn.call(node);
3954
+ var step;
3955
+
3956
+ while (!(step = iterator.next()).done) {
3957
+ if (isValidElement(step.value)) {
3958
+ validateExplicitKey(step.value, parentType);
3959
+ }
3960
+ }
3961
+ }
3962
+ }
3963
+ }
3964
+ }
3965
+ }
3966
+ /**
3967
+ * Given an element, validate that its props follow the propTypes definition,
3968
+ * provided by the type.
3969
+ *
3970
+ * @param {ReactElement} element
3971
+ */
3972
+
3973
+
3974
+ function validatePropTypes(element) {
3975
+ {
3976
+ var type = element.type;
3977
+
3978
+ if (type === null || type === undefined || typeof type === 'string') {
3979
+ return;
3980
+ }
3981
+
3982
+ var propTypes;
3983
+
3984
+ if (typeof type === 'function') {
3985
+ propTypes = type.propTypes;
3986
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
3987
+ // Inner props are checked in the reconciler.
3988
+ type.$$typeof === REACT_MEMO_TYPE)) {
3989
+ propTypes = type.propTypes;
3990
+ } else {
3991
+ return;
3992
+ }
3993
+
3994
+ if (propTypes) {
3995
+ // Intentionally inside to avoid triggering lazy initializers:
3996
+ var name = getComponentNameFromType(type);
3997
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
3998
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
3999
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
4000
+
4001
+ var _name = getComponentNameFromType(type);
4002
+
4003
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
4004
+ }
4005
+
4006
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
4007
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
4008
+ }
4009
+ }
4010
+ }
4011
+ /**
4012
+ * Given a fragment, validate that it can only be provided with fragment props
4013
+ * @param {ReactElement} fragment
4014
+ */
4015
+
4016
+
4017
+ function validateFragmentProps(fragment) {
4018
+ {
4019
+ var keys = Object.keys(fragment.props);
4020
+
4021
+ for (var i = 0; i < keys.length; i++) {
4022
+ var key = keys[i];
4023
+
4024
+ if (key !== 'children' && key !== 'key') {
4025
+ setCurrentlyValidatingElement$1(fragment);
4026
+
4027
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
4028
+
4029
+ setCurrentlyValidatingElement$1(null);
4030
+ break;
4031
+ }
4032
+ }
4033
+
4034
+ if (fragment.ref !== null) {
4035
+ setCurrentlyValidatingElement$1(fragment);
4036
+
4037
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
4038
+
4039
+ setCurrentlyValidatingElement$1(null);
4040
+ }
4041
+ }
4042
+ }
4043
+
4044
+ var didWarnAboutKeySpread = {};
4045
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
4046
+ {
4047
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
4048
+ // succeed and there will likely be errors in render.
4049
+
4050
+ if (!validType) {
4051
+ var info = '';
4052
+
4053
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
4054
+ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
4055
+ }
4056
+
4057
+ var sourceInfo = getSourceInfoErrorAddendum();
4058
+
4059
+ if (sourceInfo) {
4060
+ info += sourceInfo;
4061
+ } else {
4062
+ info += getDeclarationErrorAddendum();
4063
+ }
4064
+
4065
+ var typeString;
4066
+
4067
+ if (type === null) {
4068
+ typeString = 'null';
4069
+ } else if (isArray(type)) {
4070
+ typeString = 'array';
4071
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
4072
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
4073
+ info = ' Did you accidentally export a JSX literal instead of a component?';
4074
+ } else {
4075
+ typeString = typeof type;
4076
+ }
4077
+
4078
+ error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
4079
+ }
4080
+
4081
+ var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
4082
+ // TODO: Drop this when these are no longer allowed as the type argument.
4083
+
4084
+ if (element == null) {
4085
+ return element;
4086
+ } // Skip key warning if the type isn't valid since our key validation logic
4087
+ // doesn't expect a non-string/function type and can throw confusing errors.
4088
+ // We don't want exception behavior to differ between dev and prod.
4089
+ // (Rendering will throw with a helpful message and as soon as the type is
4090
+ // fixed, the key warnings will appear.)
4091
+
4092
+
4093
+ if (validType) {
4094
+ var children = props.children;
4095
+
4096
+ if (children !== undefined) {
4097
+ if (isStaticChildren) {
4098
+ if (isArray(children)) {
4099
+ for (var i = 0; i < children.length; i++) {
4100
+ validateChildKeys(children[i], type);
4101
+ }
4102
+
4103
+ if (Object.freeze) {
4104
+ Object.freeze(children);
4105
+ }
4106
+ } else {
4107
+ error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
4108
+ }
4109
+ } else {
4110
+ validateChildKeys(children, type);
4111
+ }
4112
+ }
4113
+ }
4114
+
4115
+ {
4116
+ if (hasOwnProperty.call(props, 'key')) {
4117
+ var componentName = getComponentNameFromType(type);
4118
+ var keys = Object.keys(props).filter(function (k) {
4119
+ return k !== 'key';
4120
+ });
4121
+ var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
4122
+
4123
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
4124
+ var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
4125
+
4126
+ error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
4127
+
4128
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
4129
+ }
4130
+ }
4131
+ }
4132
+
4133
+ if (type === REACT_FRAGMENT_TYPE) {
4134
+ validateFragmentProps(element);
4135
+ } else {
4136
+ validatePropTypes(element);
4137
+ }
4138
+
4139
+ return element;
4140
+ }
4141
+ } // These two functions exist to still get child warnings in dev
4142
+ // even with the prod transform. This means that jsxDEV is purely
4143
+ // opt-in behavior for better messages but that we won't stop
4144
+ // giving you warnings if you use production apis.
4145
+
4146
+ function jsxWithValidationStatic(type, props, key) {
4147
+ {
4148
+ return jsxWithValidation(type, props, key, true);
4149
+ }
4150
+ }
4151
+ function jsxWithValidationDynamic(type, props, key) {
4152
+ {
4153
+ return jsxWithValidation(type, props, key, false);
4154
+ }
4155
+ }
4156
+
4157
+ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
4158
+ // for now we can ship identical prod functions
4159
+
4160
+ var jsxs = jsxWithValidationStatic ;
4161
+
4162
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
4163
+ reactJsxRuntime_development.jsx = jsx;
4164
+ reactJsxRuntime_development.jsxs = jsxs;
4165
+ })();
4166
+ }
4167
+ return reactJsxRuntime_development;
4168
+ }
4169
+
4170
+ var hasRequiredJsxRuntime;
4171
+
4172
+ function requireJsxRuntime () {
4173
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
4174
+ hasRequiredJsxRuntime = 1;
4175
+
4176
+ if (process.env.NODE_ENV === 'production') {
4177
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
4178
+ } else {
4179
+ jsxRuntime.exports = requireReactJsxRuntime_development();
4180
+ }
4181
+ return jsxRuntime.exports;
4182
+ }
4183
+
4184
+ var jsxRuntimeExports = requireJsxRuntime();
4185
+
4186
+ const setReactNativeConfig = ({ pages, localResources, endpoints, links }) => {
4187
+ setReactNativeStorage();
4188
+ setReactNativePageConfig(pages);
4189
+ initializeI18n(localResources);
4190
+ setEndpoints(endpoints);
4191
+ setAppLinks(links);
4192
+ setDefaultFormFieldContainer(({ children }) => {
4193
+ return (jsxRuntimeExports.jsx(KeyboardAvoidingView, { behavior: Platform.OS === "ios" ? "padding" : undefined, children: children }));
4194
+ });
4195
+ };
4196
+
4197
+ export { setReactNativeConfig };
12
4198
  //# sourceMappingURL=index.mjs.map