@pie-element/number-line 11.0.1-esmbeta.1 → 11.0.1-esmbeta.3

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/esm/configure.js CHANGED
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { NumberTextField as NumberTextField$2, NumberTextFieldCustom, InputCheckbox, layout, InputContainer, FormSection, AlertDialog, settings } from '@pie-lib/config-ui';
2
3
  import EditableHtml from '@pie-lib/editable-html';
3
4
  import { pointChooser, tickUtils, NumberLineComponent, dataConverter } from '@pie-element/number-line';
@@ -43,2159 +44,6 @@ function getAugmentedNamespace(n) {
43
44
  return a;
44
45
  }
45
46
 
46
- var react = {exports: {}};
47
-
48
- var react_production_min = {};
49
-
50
- /*
51
- object-assign
52
- (c) Sindre Sorhus
53
- @license MIT
54
- */
55
- /* eslint-disable no-unused-vars */
56
- var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
57
- var hasOwnProperty$c = Object.prototype.hasOwnProperty;
58
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
59
-
60
- function toObject(val) {
61
- if (val === null || val === undefined) {
62
- throw new TypeError('Object.assign cannot be called with null or undefined');
63
- }
64
-
65
- return Object(val);
66
- }
67
-
68
- function shouldUseNative() {
69
- try {
70
- if (!Object.assign) {
71
- return false;
72
- }
73
-
74
- // Detect buggy property enumeration order in older V8 versions.
75
-
76
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
77
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
78
- test1[5] = 'de';
79
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
80
- return false;
81
- }
82
-
83
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
84
- var test2 = {};
85
- for (var i = 0; i < 10; i++) {
86
- test2['_' + String.fromCharCode(i)] = i;
87
- }
88
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
89
- return test2[n];
90
- });
91
- if (order2.join('') !== '0123456789') {
92
- return false;
93
- }
94
-
95
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
96
- var test3 = {};
97
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
98
- test3[letter] = letter;
99
- });
100
- if (Object.keys(Object.assign({}, test3)).join('') !==
101
- 'abcdefghijklmnopqrst') {
102
- return false;
103
- }
104
-
105
- return true;
106
- } catch (err) {
107
- // We don't expect any of the above to throw, but better to be safe.
108
- return false;
109
- }
110
- }
111
-
112
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
113
- var from;
114
- var to = toObject(target);
115
- var symbols;
116
-
117
- for (var s = 1; s < arguments.length; s++) {
118
- from = Object(arguments[s]);
119
-
120
- for (var key in from) {
121
- if (hasOwnProperty$c.call(from, key)) {
122
- to[key] = from[key];
123
- }
124
- }
125
-
126
- if (getOwnPropertySymbols$1) {
127
- symbols = getOwnPropertySymbols$1(from);
128
- for (var i = 0; i < symbols.length; i++) {
129
- if (propIsEnumerable.call(from, symbols[i])) {
130
- to[symbols[i]] = from[symbols[i]];
131
- }
132
- }
133
- }
134
- }
135
-
136
- return to;
137
- };
138
-
139
- /** @license React v16.14.0
140
- * react.production.min.js
141
- *
142
- * Copyright (c) Facebook, Inc. and its affiliates.
143
- *
144
- * This source code is licensed under the MIT license found in the
145
- * LICENSE file in the root directory of this source tree.
146
- */
147
- var l$1=objectAssign,n$2="function"===typeof Symbol&&Symbol.for,p$1=n$2?Symbol.for("react.element"):60103,q$1=n$2?Symbol.for("react.portal"):60106,r$2=n$2?Symbol.for("react.fragment"):60107,t$1=n$2?Symbol.for("react.strict_mode"):60108,u$1=n$2?Symbol.for("react.profiler"):60114,v$2=n$2?Symbol.for("react.provider"):60109,w$1=n$2?Symbol.for("react.context"):60110,x$1=n$2?Symbol.for("react.forward_ref"):60112,y$1=n$2?Symbol.for("react.suspense"):60113,z$1=n$2?Symbol.for("react.memo"):60115,A$1=n$2?Symbol.for("react.lazy"):
148
- 60116,B="function"===typeof Symbol&&Symbol.iterator;function C$1(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
149
- var D={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E$1={};function F$1(a,b,c){this.props=a;this.context=b;this.refs=E$1;this.updater=c||D;}F$1.prototype.isReactComponent={};F$1.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(C$1(85));this.updater.enqueueSetState(this,a,b,"setState");};F$1.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};
150
- function G$1(){}G$1.prototype=F$1.prototype;function H$1(a,b,c){this.props=a;this.context=b;this.refs=E$1;this.updater=c||D;}var I$1=H$1.prototype=new G$1;I$1.constructor=H$1;l$1(I$1,F$1.prototype);I$1.isPureReactComponent=!0;var J$1={current:null},K$1=Object.prototype.hasOwnProperty,L$1={key:!0,ref:!0,__self:!0,__source:!0};
151
- function M$1(a,b,c){var e,d={},g=null,k=null;if(null!=b)for(e in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)K$1.call(b,e)&&!L$1.hasOwnProperty(e)&&(d[e]=b[e]);var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];d.children=h;}if(a&&a.defaultProps)for(e in f=a.defaultProps,f)void 0===d[e]&&(d[e]=f[e]);return {$$typeof:p$1,type:a,key:g,ref:k,props:d,_owner:J$1.current}}
152
- function N$1(a,b){return {$$typeof:p$1,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O$1(a){return "object"===typeof a&&null!==a&&a.$$typeof===p$1}function escape$1(a){var b={"=":"=0",":":"=2"};return "$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var P$2=/\/+/g,Q$2=[];function R$1(a,b,c,e){if(Q$2.length){var d=Q$2.pop();d.result=a;d.keyPrefix=b;d.func=c;d.context=e;d.count=0;return d}return {result:a,keyPrefix:b,func:c,context:e,count:0}}
153
- function S$1(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q$2.length&&Q$2.push(a);}
154
- function T$1(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p$1:case q$1:g=!0;}}if(g)return c(e,a,""===b?"."+U$1(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){d=a[k];var f=b+U$1(d,k);g+=T$1(d,f,c,e);}else if(null===a||"object"!==typeof a?f=null:(f=B&&a[B]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),k=
155
- 0;!(d=a.next()).done;)d=d.value,f=b+U$1(d,k++),g+=T$1(d,f,c,e);else if("object"===d)throw c=""+a,Error(C$1(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return g}function V$1(a,b,c){return null==a?0:T$1(a,"",b,c)}function U$1(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape$1(a.key):b.toString(36)}function W$1(a,b){a.func.call(a.context,b,a.count++);}
156
- function aa$1(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?X$1(a,e,c,function(a){return a}):null!=a&&(O$1(a)&&(a=N$1(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(P$2,"$&/")+"/")+c)),e.push(a));}function X$1(a,b,c,e,d){var g="";null!=c&&(g=(""+c).replace(P$2,"$&/")+"/");b=R$1(b,g,e,d);V$1(a,aa$1,b);S$1(b);}var Y$1={current:null};function Z$1(){var a=Y$1.current;if(null===a)throw Error(C$1(321));return a}
157
- var ba$1={ReactCurrentDispatcher:Y$1,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J$1,IsSomeRendererActing:{current:!1},assign:l$1};react_production_min.Children={map:function(a,b,c){if(null==a)return a;var e=[];X$1(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=R$1(null,null,b,c);V$1(a,W$1,b);S$1(b);},count:function(a){return V$1(a,function(){return null},null)},toArray:function(a){var b=[];X$1(a,b,null,function(a){return a});return b},only:function(a){if(!O$1(a))throw Error(C$1(143));return a}};
158
- react_production_min.Component=F$1;react_production_min.Fragment=r$2;react_production_min.Profiler=u$1;react_production_min.PureComponent=H$1;react_production_min.StrictMode=t$1;react_production_min.Suspense=y$1;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ba$1;
159
- react_production_min.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(C$1(267,a));var e=l$1({},a.props),d=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=J$1.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(h in b)K$1.call(b,h)&&!L$1.hasOwnProperty(h)&&(e[h]=void 0===b[h]&&void 0!==f?f[h]:b[h]);}var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){f=Array(h);for(var m=0;m<h;m++)f[m]=arguments[m+2];e.children=f;}return {$$typeof:p$1,type:a.type,
160
- key:d,ref:g,props:e,_owner:k}};react_production_min.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:w$1,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v$2,_context:a};return a.Consumer=a};react_production_min.createElement=M$1;react_production_min.createFactory=function(a){var b=M$1.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};react_production_min.forwardRef=function(a){return {$$typeof:x$1,render:a}};react_production_min.isValidElement=O$1;
161
- react_production_min.lazy=function(a){return {$$typeof:A$1,_ctor:a,_status:-1,_result:null}};react_production_min.memo=function(a,b){return {$$typeof:z$1,type:a,compare:void 0===b?null:b}};react_production_min.useCallback=function(a,b){return Z$1().useCallback(a,b)};react_production_min.useContext=function(a,b){return Z$1().useContext(a,b)};react_production_min.useDebugValue=function(){};react_production_min.useEffect=function(a,b){return Z$1().useEffect(a,b)};react_production_min.useImperativeHandle=function(a,b,c){return Z$1().useImperativeHandle(a,b,c)};
162
- react_production_min.useLayoutEffect=function(a,b){return Z$1().useLayoutEffect(a,b)};react_production_min.useMemo=function(a,b){return Z$1().useMemo(a,b)};react_production_min.useReducer=function(a,b,c){return Z$1().useReducer(a,b,c)};react_production_min.useRef=function(a){return Z$1().useRef(a)};react_production_min.useState=function(a){return Z$1().useState(a)};react_production_min.version="16.14.0";
163
-
164
- var react_development = {};
165
-
166
- /**
167
- * Copyright (c) 2013-present, Facebook, Inc.
168
- *
169
- * This source code is licensed under the MIT license found in the
170
- * LICENSE file in the root directory of this source tree.
171
- */
172
-
173
- var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
174
-
175
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
176
-
177
- var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
178
-
179
- /**
180
- * Copyright (c) 2013-present, Facebook, Inc.
181
- *
182
- * This source code is licensed under the MIT license found in the
183
- * LICENSE file in the root directory of this source tree.
184
- */
185
-
186
- var printWarning$2 = function() {};
187
-
188
- if (process.env.NODE_ENV !== 'production') {
189
- var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
190
- var loggedTypeFailures = {};
191
- var has$1 = has$2;
192
-
193
- printWarning$2 = function(text) {
194
- var message = 'Warning: ' + text;
195
- if (typeof console !== 'undefined') {
196
- console.error(message);
197
- }
198
- try {
199
- // --- Welcome to debugging React ---
200
- // This error was thrown as a convenience so that you can use this stack
201
- // to find the callsite that caused this warning to fire.
202
- throw new Error(message);
203
- } catch (x) { /**/ }
204
- };
205
- }
206
-
207
- /**
208
- * Assert that the values match with the type specs.
209
- * Error messages are memorized and will only be shown once.
210
- *
211
- * @param {object} typeSpecs Map of name to a ReactPropType
212
- * @param {object} values Runtime values that need to be type-checked
213
- * @param {string} location e.g. "prop", "context", "child context"
214
- * @param {string} componentName Name of the component for error messages.
215
- * @param {?Function} getStack Returns the component stack.
216
- * @private
217
- */
218
- function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
219
- if (process.env.NODE_ENV !== 'production') {
220
- for (var typeSpecName in typeSpecs) {
221
- if (has$1(typeSpecs, typeSpecName)) {
222
- var error;
223
- // Prop type validation may throw. In case they do, we don't want to
224
- // fail the render phase where it didn't fail before. So we log it.
225
- // After these have been cleaned up, we'll let them throw.
226
- try {
227
- // This is intentionally an invariant that gets caught. It's the same
228
- // behavior as without this statement except with a better message.
229
- if (typeof typeSpecs[typeSpecName] !== 'function') {
230
- var err = Error(
231
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
232
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
233
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
234
- );
235
- err.name = 'Invariant Violation';
236
- throw err;
237
- }
238
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
239
- } catch (ex) {
240
- error = ex;
241
- }
242
- if (error && !(error instanceof Error)) {
243
- printWarning$2(
244
- (componentName || 'React class') + ': type specification of ' +
245
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
246
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
247
- 'You may have forgotten to pass an argument to the type checker ' +
248
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
249
- 'shape all require an argument).'
250
- );
251
- }
252
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
253
- // Only monitor this failure once because there tends to be a lot of the
254
- // same error.
255
- loggedTypeFailures[error.message] = true;
256
-
257
- var stack = getStack ? getStack() : '';
258
-
259
- printWarning$2(
260
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
261
- );
262
- }
263
- }
264
- }
265
- }
266
- }
267
-
268
- /**
269
- * Resets warning cache when testing.
270
- *
271
- * @private
272
- */
273
- checkPropTypes$1.resetWarningCache = function() {
274
- if (process.env.NODE_ENV !== 'production') {
275
- loggedTypeFailures = {};
276
- }
277
- };
278
-
279
- var checkPropTypes_1 = checkPropTypes$1;
280
-
281
- /** @license React v16.14.0
282
- * react.development.js
283
- *
284
- * Copyright (c) Facebook, Inc. and its affiliates.
285
- *
286
- * This source code is licensed under the MIT license found in the
287
- * LICENSE file in the root directory of this source tree.
288
- */
289
-
290
-
291
-
292
- if (process.env.NODE_ENV !== "production") {
293
- (function() {
294
-
295
- var _assign = objectAssign;
296
- var checkPropTypes = checkPropTypes_1;
297
-
298
- var ReactVersion = '16.14.0';
299
-
300
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
301
- // nor polyfill, then a plain number is used for performance.
302
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
303
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
304
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
305
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
306
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
307
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
308
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
309
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
310
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
311
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
312
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
313
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
314
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
315
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
316
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
317
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
318
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
319
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
320
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
321
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
322
- function getIteratorFn(maybeIterable) {
323
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
324
- return null;
325
- }
326
-
327
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
328
-
329
- if (typeof maybeIterator === 'function') {
330
- return maybeIterator;
331
- }
332
-
333
- return null;
334
- }
335
-
336
- /**
337
- * Keeps track of the current dispatcher.
338
- */
339
- var ReactCurrentDispatcher = {
340
- /**
341
- * @internal
342
- * @type {ReactComponent}
343
- */
344
- current: null
345
- };
346
-
347
- /**
348
- * Keeps track of the current batch's configuration such as how long an update
349
- * should suspend for if it needs to.
350
- */
351
- var ReactCurrentBatchConfig = {
352
- suspense: null
353
- };
354
-
355
- /**
356
- * Keeps track of the current owner.
357
- *
358
- * The current owner is the component who should own any components that are
359
- * currently being constructed.
360
- */
361
- var ReactCurrentOwner = {
362
- /**
363
- * @internal
364
- * @type {ReactComponent}
365
- */
366
- current: null
367
- };
368
-
369
- var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
370
- function describeComponentFrame (name, source, ownerName) {
371
- var sourceInfo = '';
372
-
373
- if (source) {
374
- var path = source.fileName;
375
- var fileName = path.replace(BEFORE_SLASH_RE, '');
376
-
377
- {
378
- // In DEV, include code for a common special case:
379
- // prefer "folder/index.js" instead of just "index.js".
380
- if (/^index\./.test(fileName)) {
381
- var match = path.match(BEFORE_SLASH_RE);
382
-
383
- if (match) {
384
- var pathBeforeSlash = match[1];
385
-
386
- if (pathBeforeSlash) {
387
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
388
- fileName = folderName + '/' + fileName;
389
- }
390
- }
391
- }
392
- }
393
-
394
- sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
395
- } else if (ownerName) {
396
- sourceInfo = ' (created by ' + ownerName + ')';
397
- }
398
-
399
- return '\n in ' + (name || 'Unknown') + sourceInfo;
400
- }
401
-
402
- var Resolved = 1;
403
- function refineResolvedLazyComponent(lazyComponent) {
404
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
405
- }
406
-
407
- function getWrappedName(outerType, innerType, wrapperName) {
408
- var functionName = innerType.displayName || innerType.name || '';
409
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
410
- }
411
-
412
- function getComponentName(type) {
413
- if (type == null) {
414
- // Host root, text node or just invalid type.
415
- return null;
416
- }
417
-
418
- {
419
- if (typeof type.tag === 'number') {
420
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
421
- }
422
- }
423
-
424
- if (typeof type === 'function') {
425
- return type.displayName || type.name || null;
426
- }
427
-
428
- if (typeof type === 'string') {
429
- return type;
430
- }
431
-
432
- switch (type) {
433
- case REACT_FRAGMENT_TYPE:
434
- return 'Fragment';
435
-
436
- case REACT_PORTAL_TYPE:
437
- return 'Portal';
438
-
439
- case REACT_PROFILER_TYPE:
440
- return "Profiler";
441
-
442
- case REACT_STRICT_MODE_TYPE:
443
- return 'StrictMode';
444
-
445
- case REACT_SUSPENSE_TYPE:
446
- return 'Suspense';
447
-
448
- case REACT_SUSPENSE_LIST_TYPE:
449
- return 'SuspenseList';
450
- }
451
-
452
- if (typeof type === 'object') {
453
- switch (type.$$typeof) {
454
- case REACT_CONTEXT_TYPE:
455
- return 'Context.Consumer';
456
-
457
- case REACT_PROVIDER_TYPE:
458
- return 'Context.Provider';
459
-
460
- case REACT_FORWARD_REF_TYPE:
461
- return getWrappedName(type, type.render, 'ForwardRef');
462
-
463
- case REACT_MEMO_TYPE:
464
- return getComponentName(type.type);
465
-
466
- case REACT_BLOCK_TYPE:
467
- return getComponentName(type.render);
468
-
469
- case REACT_LAZY_TYPE:
470
- {
471
- var thenable = type;
472
- var resolvedThenable = refineResolvedLazyComponent(thenable);
473
-
474
- if (resolvedThenable) {
475
- return getComponentName(resolvedThenable);
476
- }
477
-
478
- break;
479
- }
480
- }
481
- }
482
-
483
- return null;
484
- }
485
-
486
- var ReactDebugCurrentFrame = {};
487
- var currentlyValidatingElement = null;
488
- function setCurrentlyValidatingElement(element) {
489
- {
490
- currentlyValidatingElement = element;
491
- }
492
- }
493
-
494
- {
495
- // Stack implementation injected by the current renderer.
496
- ReactDebugCurrentFrame.getCurrentStack = null;
497
-
498
- ReactDebugCurrentFrame.getStackAddendum = function () {
499
- var stack = ''; // Add an extra top frame while an element is being validated
500
-
501
- if (currentlyValidatingElement) {
502
- var name = getComponentName(currentlyValidatingElement.type);
503
- var owner = currentlyValidatingElement._owner;
504
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
505
- } // Delegate to the injected renderer-specific implementation
506
-
507
-
508
- var impl = ReactDebugCurrentFrame.getCurrentStack;
509
-
510
- if (impl) {
511
- stack += impl() || '';
512
- }
513
-
514
- return stack;
515
- };
516
- }
517
-
518
- /**
519
- * Used by act() to track whether you're inside an act() scope.
520
- */
521
- var IsSomeRendererActing = {
522
- current: false
523
- };
524
-
525
- var ReactSharedInternals = {
526
- ReactCurrentDispatcher: ReactCurrentDispatcher,
527
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
528
- ReactCurrentOwner: ReactCurrentOwner,
529
- IsSomeRendererActing: IsSomeRendererActing,
530
- // Used by renderers to avoid bundling object-assign twice in UMD bundles:
531
- assign: _assign
532
- };
533
-
534
- {
535
- _assign(ReactSharedInternals, {
536
- // These should not be included in production.
537
- ReactDebugCurrentFrame: ReactDebugCurrentFrame,
538
- // Shim for React DOM 16.0.0 which still destructured (but not used) this.
539
- // TODO: remove in React 17.0.
540
- ReactComponentTreeHook: {}
541
- });
542
- }
543
-
544
- // by calls to these methods by a Babel plugin.
545
- //
546
- // In PROD (or in packages without access to React internals),
547
- // they are left as they are instead.
548
-
549
- function warn(format) {
550
- {
551
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
552
- args[_key - 1] = arguments[_key];
553
- }
554
-
555
- printWarning('warn', format, args);
556
- }
557
- }
558
- function error(format) {
559
- {
560
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
561
- args[_key2 - 1] = arguments[_key2];
562
- }
563
-
564
- printWarning('error', format, args);
565
- }
566
- }
567
-
568
- function printWarning(level, format, args) {
569
- // When changing this logic, you might want to also
570
- // update consoleWithStackDev.www.js as well.
571
- {
572
- var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
573
-
574
- if (!hasExistingStack) {
575
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
576
- var stack = ReactDebugCurrentFrame.getStackAddendum();
577
-
578
- if (stack !== '') {
579
- format += '%s';
580
- args = args.concat([stack]);
581
- }
582
- }
583
-
584
- var argsWithFormat = args.map(function (item) {
585
- return '' + item;
586
- }); // Careful: RN currently depends on this prefix
587
-
588
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
589
- // breaks IE9: https://github.com/facebook/react/issues/13610
590
- // eslint-disable-next-line react-internal/no-production-logging
591
-
592
- Function.prototype.apply.call(console[level], console, argsWithFormat);
593
-
594
- try {
595
- // --- Welcome to debugging React ---
596
- // This error was thrown as a convenience so that you can use this stack
597
- // to find the callsite that caused this warning to fire.
598
- var argIndex = 0;
599
- var message = 'Warning: ' + format.replace(/%s/g, function () {
600
- return args[argIndex++];
601
- });
602
- throw new Error(message);
603
- } catch (x) {}
604
- }
605
- }
606
-
607
- var didWarnStateUpdateForUnmountedComponent = {};
608
-
609
- function warnNoop(publicInstance, callerName) {
610
- {
611
- var _constructor = publicInstance.constructor;
612
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
613
- var warningKey = componentName + "." + callerName;
614
-
615
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
616
- return;
617
- }
618
-
619
- 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);
620
-
621
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
622
- }
623
- }
624
- /**
625
- * This is the abstract API for an update queue.
626
- */
627
-
628
-
629
- var ReactNoopUpdateQueue = {
630
- /**
631
- * Checks whether or not this composite component is mounted.
632
- * @param {ReactClass} publicInstance The instance we want to test.
633
- * @return {boolean} True if mounted, false otherwise.
634
- * @protected
635
- * @final
636
- */
637
- isMounted: function (publicInstance) {
638
- return false;
639
- },
640
-
641
- /**
642
- * Forces an update. This should only be invoked when it is known with
643
- * certainty that we are **not** in a DOM transaction.
644
- *
645
- * You may want to call this when you know that some deeper aspect of the
646
- * component's state has changed but `setState` was not called.
647
- *
648
- * This will not invoke `shouldComponentUpdate`, but it will invoke
649
- * `componentWillUpdate` and `componentDidUpdate`.
650
- *
651
- * @param {ReactClass} publicInstance The instance that should rerender.
652
- * @param {?function} callback Called after component is updated.
653
- * @param {?string} callerName name of the calling function in the public API.
654
- * @internal
655
- */
656
- enqueueForceUpdate: function (publicInstance, callback, callerName) {
657
- warnNoop(publicInstance, 'forceUpdate');
658
- },
659
-
660
- /**
661
- * Replaces all of the state. Always use this or `setState` to mutate state.
662
- * You should treat `this.state` as immutable.
663
- *
664
- * There is no guarantee that `this.state` will be immediately updated, so
665
- * accessing `this.state` after calling this method may return the old value.
666
- *
667
- * @param {ReactClass} publicInstance The instance that should rerender.
668
- * @param {object} completeState Next state.
669
- * @param {?function} callback Called after component is updated.
670
- * @param {?string} callerName name of the calling function in the public API.
671
- * @internal
672
- */
673
- enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
674
- warnNoop(publicInstance, 'replaceState');
675
- },
676
-
677
- /**
678
- * Sets a subset of the state. This only exists because _pendingState is
679
- * internal. This provides a merging strategy that is not available to deep
680
- * properties which is confusing. TODO: Expose pendingState or don't use it
681
- * during the merge.
682
- *
683
- * @param {ReactClass} publicInstance The instance that should rerender.
684
- * @param {object} partialState Next partial state to be merged with state.
685
- * @param {?function} callback Called after component is updated.
686
- * @param {?string} Name of the calling function in the public API.
687
- * @internal
688
- */
689
- enqueueSetState: function (publicInstance, partialState, callback, callerName) {
690
- warnNoop(publicInstance, 'setState');
691
- }
692
- };
693
-
694
- var emptyObject = {};
695
-
696
- {
697
- Object.freeze(emptyObject);
698
- }
699
- /**
700
- * Base class helpers for the updating state of a component.
701
- */
702
-
703
-
704
- function Component(props, context, updater) {
705
- this.props = props;
706
- this.context = context; // If a component has string refs, we will assign a different object later.
707
-
708
- this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
709
- // renderer.
710
-
711
- this.updater = updater || ReactNoopUpdateQueue;
712
- }
713
-
714
- Component.prototype.isReactComponent = {};
715
- /**
716
- * Sets a subset of the state. Always use this to mutate
717
- * state. You should treat `this.state` as immutable.
718
- *
719
- * There is no guarantee that `this.state` will be immediately updated, so
720
- * accessing `this.state` after calling this method may return the old value.
721
- *
722
- * There is no guarantee that calls to `setState` will run synchronously,
723
- * as they may eventually be batched together. You can provide an optional
724
- * callback that will be executed when the call to setState is actually
725
- * completed.
726
- *
727
- * When a function is provided to setState, it will be called at some point in
728
- * the future (not synchronously). It will be called with the up to date
729
- * component arguments (state, props, context). These values can be different
730
- * from this.* because your function may be called after receiveProps but before
731
- * shouldComponentUpdate, and this new state, props, and context will not yet be
732
- * assigned to this.
733
- *
734
- * @param {object|function} partialState Next partial state or function to
735
- * produce next partial state to be merged with current state.
736
- * @param {?function} callback Called after state is updated.
737
- * @final
738
- * @protected
739
- */
740
-
741
- Component.prototype.setState = function (partialState, callback) {
742
- if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
743
- {
744
- throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
745
- }
746
- }
747
-
748
- this.updater.enqueueSetState(this, partialState, callback, 'setState');
749
- };
750
- /**
751
- * Forces an update. This should only be invoked when it is known with
752
- * certainty that we are **not** in a DOM transaction.
753
- *
754
- * You may want to call this when you know that some deeper aspect of the
755
- * component's state has changed but `setState` was not called.
756
- *
757
- * This will not invoke `shouldComponentUpdate`, but it will invoke
758
- * `componentWillUpdate` and `componentDidUpdate`.
759
- *
760
- * @param {?function} callback Called after update is complete.
761
- * @final
762
- * @protected
763
- */
764
-
765
-
766
- Component.prototype.forceUpdate = function (callback) {
767
- this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
768
- };
769
- /**
770
- * Deprecated APIs. These APIs used to exist on classic React classes but since
771
- * we would like to deprecate them, we're not going to move them over to this
772
- * modern base class. Instead, we define a getter that warns if it's accessed.
773
- */
774
-
775
-
776
- {
777
- var deprecatedAPIs = {
778
- isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
779
- replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
780
- };
781
-
782
- var defineDeprecationWarning = function (methodName, info) {
783
- Object.defineProperty(Component.prototype, methodName, {
784
- get: function () {
785
- warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
786
-
787
- return undefined;
788
- }
789
- });
790
- };
791
-
792
- for (var fnName in deprecatedAPIs) {
793
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
794
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
795
- }
796
- }
797
- }
798
-
799
- function ComponentDummy() {}
800
-
801
- ComponentDummy.prototype = Component.prototype;
802
- /**
803
- * Convenience component with default shallow equality check for sCU.
804
- */
805
-
806
- function PureComponent(props, context, updater) {
807
- this.props = props;
808
- this.context = context; // If a component has string refs, we will assign a different object later.
809
-
810
- this.refs = emptyObject;
811
- this.updater = updater || ReactNoopUpdateQueue;
812
- }
813
-
814
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
815
- pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
816
-
817
- _assign(pureComponentPrototype, Component.prototype);
818
-
819
- pureComponentPrototype.isPureReactComponent = true;
820
-
821
- // an immutable object with a single mutable value
822
- function createRef() {
823
- var refObject = {
824
- current: null
825
- };
826
-
827
- {
828
- Object.seal(refObject);
829
- }
830
-
831
- return refObject;
832
- }
833
-
834
- var hasOwnProperty = Object.prototype.hasOwnProperty;
835
- var RESERVED_PROPS = {
836
- key: true,
837
- ref: true,
838
- __self: true,
839
- __source: true
840
- };
841
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
842
-
843
- {
844
- didWarnAboutStringRefs = {};
845
- }
846
-
847
- function hasValidRef(config) {
848
- {
849
- if (hasOwnProperty.call(config, 'ref')) {
850
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
851
-
852
- if (getter && getter.isReactWarning) {
853
- return false;
854
- }
855
- }
856
- }
857
-
858
- return config.ref !== undefined;
859
- }
860
-
861
- function hasValidKey(config) {
862
- {
863
- if (hasOwnProperty.call(config, 'key')) {
864
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
865
-
866
- if (getter && getter.isReactWarning) {
867
- return false;
868
- }
869
- }
870
- }
871
-
872
- return config.key !== undefined;
873
- }
874
-
875
- function defineKeyPropWarningGetter(props, displayName) {
876
- var warnAboutAccessingKey = function () {
877
- {
878
- if (!specialPropKeyWarningShown) {
879
- specialPropKeyWarningShown = true;
880
-
881
- 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://fb.me/react-special-props)', displayName);
882
- }
883
- }
884
- };
885
-
886
- warnAboutAccessingKey.isReactWarning = true;
887
- Object.defineProperty(props, 'key', {
888
- get: warnAboutAccessingKey,
889
- configurable: true
890
- });
891
- }
892
-
893
- function defineRefPropWarningGetter(props, displayName) {
894
- var warnAboutAccessingRef = function () {
895
- {
896
- if (!specialPropRefWarningShown) {
897
- specialPropRefWarningShown = true;
898
-
899
- 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://fb.me/react-special-props)', displayName);
900
- }
901
- }
902
- };
903
-
904
- warnAboutAccessingRef.isReactWarning = true;
905
- Object.defineProperty(props, 'ref', {
906
- get: warnAboutAccessingRef,
907
- configurable: true
908
- });
909
- }
910
-
911
- function warnIfStringRefCannotBeAutoConverted(config) {
912
- {
913
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
914
- var componentName = getComponentName(ReactCurrentOwner.current.type);
915
-
916
- if (!didWarnAboutStringRefs[componentName]) {
917
- 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://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
918
-
919
- didWarnAboutStringRefs[componentName] = true;
920
- }
921
- }
922
- }
923
- }
924
- /**
925
- * Factory method to create a new React element. This no longer adheres to
926
- * the class pattern, so do not use new to call it. Also, instanceof check
927
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
928
- * if something is a React Element.
929
- *
930
- * @param {*} type
931
- * @param {*} props
932
- * @param {*} key
933
- * @param {string|object} ref
934
- * @param {*} owner
935
- * @param {*} self A *temporary* helper to detect places where `this` is
936
- * different from the `owner` when React.createElement is called, so that we
937
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
938
- * functions, and as long as `this` and owner are the same, there will be no
939
- * change in behavior.
940
- * @param {*} source An annotation object (added by a transpiler or otherwise)
941
- * indicating filename, line number, and/or other information.
942
- * @internal
943
- */
944
-
945
-
946
- var ReactElement = function (type, key, ref, self, source, owner, props) {
947
- var element = {
948
- // This tag allows us to uniquely identify this as a React Element
949
- $$typeof: REACT_ELEMENT_TYPE,
950
- // Built-in properties that belong on the element
951
- type: type,
952
- key: key,
953
- ref: ref,
954
- props: props,
955
- // Record the component responsible for creating this element.
956
- _owner: owner
957
- };
958
-
959
- {
960
- // The validation flag is currently mutative. We put it on
961
- // an external backing store so that we can freeze the whole object.
962
- // This can be replaced with a WeakMap once they are implemented in
963
- // commonly used development environments.
964
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
965
- // the validation flag non-enumerable (where possible, which should
966
- // include every environment we run tests in), so the test framework
967
- // ignores it.
968
-
969
- Object.defineProperty(element._store, 'validated', {
970
- configurable: false,
971
- enumerable: false,
972
- writable: true,
973
- value: false
974
- }); // self and source are DEV only properties.
975
-
976
- Object.defineProperty(element, '_self', {
977
- configurable: false,
978
- enumerable: false,
979
- writable: false,
980
- value: self
981
- }); // Two elements created in two different places should be considered
982
- // equal for testing purposes and therefore we hide it from enumeration.
983
-
984
- Object.defineProperty(element, '_source', {
985
- configurable: false,
986
- enumerable: false,
987
- writable: false,
988
- value: source
989
- });
990
-
991
- if (Object.freeze) {
992
- Object.freeze(element.props);
993
- Object.freeze(element);
994
- }
995
- }
996
-
997
- return element;
998
- };
999
- /**
1000
- * Create and return a new ReactElement of the given type.
1001
- * See https://reactjs.org/docs/react-api.html#createelement
1002
- */
1003
-
1004
- function createElement(type, config, children) {
1005
- var propName; // Reserved names are extracted
1006
-
1007
- var props = {};
1008
- var key = null;
1009
- var ref = null;
1010
- var self = null;
1011
- var source = null;
1012
-
1013
- if (config != null) {
1014
- if (hasValidRef(config)) {
1015
- ref = config.ref;
1016
-
1017
- {
1018
- warnIfStringRefCannotBeAutoConverted(config);
1019
- }
1020
- }
1021
-
1022
- if (hasValidKey(config)) {
1023
- key = '' + config.key;
1024
- }
1025
-
1026
- self = config.__self === undefined ? null : config.__self;
1027
- source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
1028
-
1029
- for (propName in config) {
1030
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
1031
- props[propName] = config[propName];
1032
- }
1033
- }
1034
- } // Children can be more than one argument, and those are transferred onto
1035
- // the newly allocated props object.
1036
-
1037
-
1038
- var childrenLength = arguments.length - 2;
1039
-
1040
- if (childrenLength === 1) {
1041
- props.children = children;
1042
- } else if (childrenLength > 1) {
1043
- var childArray = Array(childrenLength);
1044
-
1045
- for (var i = 0; i < childrenLength; i++) {
1046
- childArray[i] = arguments[i + 2];
1047
- }
1048
-
1049
- {
1050
- if (Object.freeze) {
1051
- Object.freeze(childArray);
1052
- }
1053
- }
1054
-
1055
- props.children = childArray;
1056
- } // Resolve default props
1057
-
1058
-
1059
- if (type && type.defaultProps) {
1060
- var defaultProps = type.defaultProps;
1061
-
1062
- for (propName in defaultProps) {
1063
- if (props[propName] === undefined) {
1064
- props[propName] = defaultProps[propName];
1065
- }
1066
- }
1067
- }
1068
-
1069
- {
1070
- if (key || ref) {
1071
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
1072
-
1073
- if (key) {
1074
- defineKeyPropWarningGetter(props, displayName);
1075
- }
1076
-
1077
- if (ref) {
1078
- defineRefPropWarningGetter(props, displayName);
1079
- }
1080
- }
1081
- }
1082
-
1083
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
1084
- }
1085
- function cloneAndReplaceKey(oldElement, newKey) {
1086
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
1087
- return newElement;
1088
- }
1089
- /**
1090
- * Clone and return a new ReactElement using element as the starting point.
1091
- * See https://reactjs.org/docs/react-api.html#cloneelement
1092
- */
1093
-
1094
- function cloneElement(element, config, children) {
1095
- if (!!(element === null || element === undefined)) {
1096
- {
1097
- throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
1098
- }
1099
- }
1100
-
1101
- var propName; // Original props are copied
1102
-
1103
- var props = _assign({}, element.props); // Reserved names are extracted
1104
-
1105
-
1106
- var key = element.key;
1107
- var ref = element.ref; // Self is preserved since the owner is preserved.
1108
-
1109
- var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
1110
- // transpiler, and the original source is probably a better indicator of the
1111
- // true owner.
1112
-
1113
- var source = element._source; // Owner will be preserved, unless ref is overridden
1114
-
1115
- var owner = element._owner;
1116
-
1117
- if (config != null) {
1118
- if (hasValidRef(config)) {
1119
- // Silently steal the ref from the parent.
1120
- ref = config.ref;
1121
- owner = ReactCurrentOwner.current;
1122
- }
1123
-
1124
- if (hasValidKey(config)) {
1125
- key = '' + config.key;
1126
- } // Remaining properties override existing props
1127
-
1128
-
1129
- var defaultProps;
1130
-
1131
- if (element.type && element.type.defaultProps) {
1132
- defaultProps = element.type.defaultProps;
1133
- }
1134
-
1135
- for (propName in config) {
1136
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
1137
- if (config[propName] === undefined && defaultProps !== undefined) {
1138
- // Resolve default props
1139
- props[propName] = defaultProps[propName];
1140
- } else {
1141
- props[propName] = config[propName];
1142
- }
1143
- }
1144
- }
1145
- } // Children can be more than one argument, and those are transferred onto
1146
- // the newly allocated props object.
1147
-
1148
-
1149
- var childrenLength = arguments.length - 2;
1150
-
1151
- if (childrenLength === 1) {
1152
- props.children = children;
1153
- } else if (childrenLength > 1) {
1154
- var childArray = Array(childrenLength);
1155
-
1156
- for (var i = 0; i < childrenLength; i++) {
1157
- childArray[i] = arguments[i + 2];
1158
- }
1159
-
1160
- props.children = childArray;
1161
- }
1162
-
1163
- return ReactElement(element.type, key, ref, self, source, owner, props);
1164
- }
1165
- /**
1166
- * Verifies the object is a ReactElement.
1167
- * See https://reactjs.org/docs/react-api.html#isvalidelement
1168
- * @param {?object} object
1169
- * @return {boolean} True if `object` is a ReactElement.
1170
- * @final
1171
- */
1172
-
1173
- function isValidElement(object) {
1174
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1175
- }
1176
-
1177
- var SEPARATOR = '.';
1178
- var SUBSEPARATOR = ':';
1179
- /**
1180
- * Escape and wrap key so it is safe to use as a reactid
1181
- *
1182
- * @param {string} key to be escaped.
1183
- * @return {string} the escaped key.
1184
- */
1185
-
1186
- function escape(key) {
1187
- var escapeRegex = /[=:]/g;
1188
- var escaperLookup = {
1189
- '=': '=0',
1190
- ':': '=2'
1191
- };
1192
- var escapedString = ('' + key).replace(escapeRegex, function (match) {
1193
- return escaperLookup[match];
1194
- });
1195
- return '$' + escapedString;
1196
- }
1197
- /**
1198
- * TODO: Test that a single child and an array with one item have the same key
1199
- * pattern.
1200
- */
1201
-
1202
-
1203
- var didWarnAboutMaps = false;
1204
- var userProvidedKeyEscapeRegex = /\/+/g;
1205
-
1206
- function escapeUserProvidedKey(text) {
1207
- return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
1208
- }
1209
-
1210
- var POOL_SIZE = 10;
1211
- var traverseContextPool = [];
1212
-
1213
- function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
1214
- if (traverseContextPool.length) {
1215
- var traverseContext = traverseContextPool.pop();
1216
- traverseContext.result = mapResult;
1217
- traverseContext.keyPrefix = keyPrefix;
1218
- traverseContext.func = mapFunction;
1219
- traverseContext.context = mapContext;
1220
- traverseContext.count = 0;
1221
- return traverseContext;
1222
- } else {
1223
- return {
1224
- result: mapResult,
1225
- keyPrefix: keyPrefix,
1226
- func: mapFunction,
1227
- context: mapContext,
1228
- count: 0
1229
- };
1230
- }
1231
- }
1232
-
1233
- function releaseTraverseContext(traverseContext) {
1234
- traverseContext.result = null;
1235
- traverseContext.keyPrefix = null;
1236
- traverseContext.func = null;
1237
- traverseContext.context = null;
1238
- traverseContext.count = 0;
1239
-
1240
- if (traverseContextPool.length < POOL_SIZE) {
1241
- traverseContextPool.push(traverseContext);
1242
- }
1243
- }
1244
- /**
1245
- * @param {?*} children Children tree container.
1246
- * @param {!string} nameSoFar Name of the key path so far.
1247
- * @param {!function} callback Callback to invoke with each child found.
1248
- * @param {?*} traverseContext Used to pass information throughout the traversal
1249
- * process.
1250
- * @return {!number} The number of children in this subtree.
1251
- */
1252
-
1253
-
1254
- function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
1255
- var type = typeof children;
1256
-
1257
- if (type === 'undefined' || type === 'boolean') {
1258
- // All of the above are perceived as null.
1259
- children = null;
1260
- }
1261
-
1262
- var invokeCallback = false;
1263
-
1264
- if (children === null) {
1265
- invokeCallback = true;
1266
- } else {
1267
- switch (type) {
1268
- case 'string':
1269
- case 'number':
1270
- invokeCallback = true;
1271
- break;
1272
-
1273
- case 'object':
1274
- switch (children.$$typeof) {
1275
- case REACT_ELEMENT_TYPE:
1276
- case REACT_PORTAL_TYPE:
1277
- invokeCallback = true;
1278
- }
1279
-
1280
- }
1281
- }
1282
-
1283
- if (invokeCallback) {
1284
- callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
1285
- // so that it's consistent if the number of children grows.
1286
- nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
1287
- return 1;
1288
- }
1289
-
1290
- var child;
1291
- var nextName;
1292
- var subtreeCount = 0; // Count of children found in the current subtree.
1293
-
1294
- var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1295
-
1296
- if (Array.isArray(children)) {
1297
- for (var i = 0; i < children.length; i++) {
1298
- child = children[i];
1299
- nextName = nextNamePrefix + getComponentKey(child, i);
1300
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
1301
- }
1302
- } else {
1303
- var iteratorFn = getIteratorFn(children);
1304
-
1305
- if (typeof iteratorFn === 'function') {
1306
-
1307
- {
1308
- // Warn about using Maps as children
1309
- if (iteratorFn === children.entries) {
1310
- if (!didWarnAboutMaps) {
1311
- warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');
1312
- }
1313
-
1314
- didWarnAboutMaps = true;
1315
- }
1316
- }
1317
-
1318
- var iterator = iteratorFn.call(children);
1319
- var step;
1320
- var ii = 0;
1321
-
1322
- while (!(step = iterator.next()).done) {
1323
- child = step.value;
1324
- nextName = nextNamePrefix + getComponentKey(child, ii++);
1325
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
1326
- }
1327
- } else if (type === 'object') {
1328
- var addendum = '';
1329
-
1330
- {
1331
- addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
1332
- }
1333
-
1334
- var childrenString = '' + children;
1335
-
1336
- {
1337
- {
1338
- throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum );
1339
- }
1340
- }
1341
- }
1342
- }
1343
-
1344
- return subtreeCount;
1345
- }
1346
- /**
1347
- * Traverses children that are typically specified as `props.children`, but
1348
- * might also be specified through attributes:
1349
- *
1350
- * - `traverseAllChildren(this.props.children, ...)`
1351
- * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
1352
- *
1353
- * The `traverseContext` is an optional argument that is passed through the
1354
- * entire traversal. It can be used to store accumulations or anything else that
1355
- * the callback might find relevant.
1356
- *
1357
- * @param {?*} children Children tree object.
1358
- * @param {!function} callback To invoke upon traversing each child.
1359
- * @param {?*} traverseContext Context for traversal.
1360
- * @return {!number} The number of children in this subtree.
1361
- */
1362
-
1363
-
1364
- function traverseAllChildren(children, callback, traverseContext) {
1365
- if (children == null) {
1366
- return 0;
1367
- }
1368
-
1369
- return traverseAllChildrenImpl(children, '', callback, traverseContext);
1370
- }
1371
- /**
1372
- * Generate a key string that identifies a component within a set.
1373
- *
1374
- * @param {*} component A component that could contain a manual key.
1375
- * @param {number} index Index that is used if a manual key is not provided.
1376
- * @return {string}
1377
- */
1378
-
1379
-
1380
- function getComponentKey(component, index) {
1381
- // Do some typechecking here since we call this blindly. We want to ensure
1382
- // that we don't block potential future ES APIs.
1383
- if (typeof component === 'object' && component !== null && component.key != null) {
1384
- // Explicit key
1385
- return escape(component.key);
1386
- } // Implicit key determined by the index in the set
1387
-
1388
-
1389
- return index.toString(36);
1390
- }
1391
-
1392
- function forEachSingleChild(bookKeeping, child, name) {
1393
- var func = bookKeeping.func,
1394
- context = bookKeeping.context;
1395
- func.call(context, child, bookKeeping.count++);
1396
- }
1397
- /**
1398
- * Iterates through children that are typically specified as `props.children`.
1399
- *
1400
- * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
1401
- *
1402
- * The provided forEachFunc(child, index) will be called for each
1403
- * leaf child.
1404
- *
1405
- * @param {?*} children Children tree container.
1406
- * @param {function(*, int)} forEachFunc
1407
- * @param {*} forEachContext Context for forEachContext.
1408
- */
1409
-
1410
-
1411
- function forEachChildren(children, forEachFunc, forEachContext) {
1412
- if (children == null) {
1413
- return children;
1414
- }
1415
-
1416
- var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
1417
- traverseAllChildren(children, forEachSingleChild, traverseContext);
1418
- releaseTraverseContext(traverseContext);
1419
- }
1420
-
1421
- function mapSingleChildIntoContext(bookKeeping, child, childKey) {
1422
- var result = bookKeeping.result,
1423
- keyPrefix = bookKeeping.keyPrefix,
1424
- func = bookKeeping.func,
1425
- context = bookKeeping.context;
1426
- var mappedChild = func.call(context, child, bookKeeping.count++);
1427
-
1428
- if (Array.isArray(mappedChild)) {
1429
- mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
1430
- return c;
1431
- });
1432
- } else if (mappedChild != null) {
1433
- if (isValidElement(mappedChild)) {
1434
- mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
1435
- // traverseAllChildren used to do for objects as children
1436
- keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
1437
- }
1438
-
1439
- result.push(mappedChild);
1440
- }
1441
- }
1442
-
1443
- function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
1444
- var escapedPrefix = '';
1445
-
1446
- if (prefix != null) {
1447
- escapedPrefix = escapeUserProvidedKey(prefix) + '/';
1448
- }
1449
-
1450
- var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
1451
- traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
1452
- releaseTraverseContext(traverseContext);
1453
- }
1454
- /**
1455
- * Maps children that are typically specified as `props.children`.
1456
- *
1457
- * See https://reactjs.org/docs/react-api.html#reactchildrenmap
1458
- *
1459
- * The provided mapFunction(child, key, index) will be called for each
1460
- * leaf child.
1461
- *
1462
- * @param {?*} children Children tree container.
1463
- * @param {function(*, int)} func The map function.
1464
- * @param {*} context Context for mapFunction.
1465
- * @return {object} Object containing the ordered map of results.
1466
- */
1467
-
1468
-
1469
- function mapChildren(children, func, context) {
1470
- if (children == null) {
1471
- return children;
1472
- }
1473
-
1474
- var result = [];
1475
- mapIntoWithKeyPrefixInternal(children, result, null, func, context);
1476
- return result;
1477
- }
1478
- /**
1479
- * Count the number of children that are typically specified as
1480
- * `props.children`.
1481
- *
1482
- * See https://reactjs.org/docs/react-api.html#reactchildrencount
1483
- *
1484
- * @param {?*} children Children tree container.
1485
- * @return {number} The number of children.
1486
- */
1487
-
1488
-
1489
- function countChildren(children) {
1490
- return traverseAllChildren(children, function () {
1491
- return null;
1492
- }, null);
1493
- }
1494
- /**
1495
- * Flatten a children object (typically specified as `props.children`) and
1496
- * return an array with appropriately re-keyed children.
1497
- *
1498
- * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
1499
- */
1500
-
1501
-
1502
- function toArray(children) {
1503
- var result = [];
1504
- mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
1505
- return child;
1506
- });
1507
- return result;
1508
- }
1509
- /**
1510
- * Returns the first child in a collection of children and verifies that there
1511
- * is only one child in the collection.
1512
- *
1513
- * See https://reactjs.org/docs/react-api.html#reactchildrenonly
1514
- *
1515
- * The current implementation of this function assumes that a single child gets
1516
- * passed without a wrapper, but the purpose of this helper function is to
1517
- * abstract away the particular structure of children.
1518
- *
1519
- * @param {?object} children Child collection structure.
1520
- * @return {ReactElement} The first and only `ReactElement` contained in the
1521
- * structure.
1522
- */
1523
-
1524
-
1525
- function onlyChild(children) {
1526
- if (!isValidElement(children)) {
1527
- {
1528
- throw Error( "React.Children.only expected to receive a single React element child." );
1529
- }
1530
- }
1531
-
1532
- return children;
1533
- }
1534
-
1535
- function createContext(defaultValue, calculateChangedBits) {
1536
- if (calculateChangedBits === undefined) {
1537
- calculateChangedBits = null;
1538
- } else {
1539
- {
1540
- if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
1541
- error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
1542
- }
1543
- }
1544
- }
1545
-
1546
- var context = {
1547
- $$typeof: REACT_CONTEXT_TYPE,
1548
- _calculateChangedBits: calculateChangedBits,
1549
- // As a workaround to support multiple concurrent renderers, we categorize
1550
- // some renderers as primary and others as secondary. We only expect
1551
- // there to be two concurrent renderers at most: React Native (primary) and
1552
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
1553
- // Secondary renderers store their context values on separate fields.
1554
- _currentValue: defaultValue,
1555
- _currentValue2: defaultValue,
1556
- // Used to track how many concurrent renderers this context currently
1557
- // supports within in a single renderer. Such as parallel server rendering.
1558
- _threadCount: 0,
1559
- // These are circular
1560
- Provider: null,
1561
- Consumer: null
1562
- };
1563
- context.Provider = {
1564
- $$typeof: REACT_PROVIDER_TYPE,
1565
- _context: context
1566
- };
1567
- var hasWarnedAboutUsingNestedContextConsumers = false;
1568
- var hasWarnedAboutUsingConsumerProvider = false;
1569
-
1570
- {
1571
- // A separate object, but proxies back to the original context object for
1572
- // backwards compatibility. It has a different $$typeof, so we can properly
1573
- // warn for the incorrect usage of Context as a Consumer.
1574
- var Consumer = {
1575
- $$typeof: REACT_CONTEXT_TYPE,
1576
- _context: context,
1577
- _calculateChangedBits: context._calculateChangedBits
1578
- }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
1579
-
1580
- Object.defineProperties(Consumer, {
1581
- Provider: {
1582
- get: function () {
1583
- if (!hasWarnedAboutUsingConsumerProvider) {
1584
- hasWarnedAboutUsingConsumerProvider = true;
1585
-
1586
- 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?');
1587
- }
1588
-
1589
- return context.Provider;
1590
- },
1591
- set: function (_Provider) {
1592
- context.Provider = _Provider;
1593
- }
1594
- },
1595
- _currentValue: {
1596
- get: function () {
1597
- return context._currentValue;
1598
- },
1599
- set: function (_currentValue) {
1600
- context._currentValue = _currentValue;
1601
- }
1602
- },
1603
- _currentValue2: {
1604
- get: function () {
1605
- return context._currentValue2;
1606
- },
1607
- set: function (_currentValue2) {
1608
- context._currentValue2 = _currentValue2;
1609
- }
1610
- },
1611
- _threadCount: {
1612
- get: function () {
1613
- return context._threadCount;
1614
- },
1615
- set: function (_threadCount) {
1616
- context._threadCount = _threadCount;
1617
- }
1618
- },
1619
- Consumer: {
1620
- get: function () {
1621
- if (!hasWarnedAboutUsingNestedContextConsumers) {
1622
- hasWarnedAboutUsingNestedContextConsumers = true;
1623
-
1624
- 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?');
1625
- }
1626
-
1627
- return context.Consumer;
1628
- }
1629
- }
1630
- }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
1631
-
1632
- context.Consumer = Consumer;
1633
- }
1634
-
1635
- {
1636
- context._currentRenderer = null;
1637
- context._currentRenderer2 = null;
1638
- }
1639
-
1640
- return context;
1641
- }
1642
-
1643
- function lazy(ctor) {
1644
- var lazyType = {
1645
- $$typeof: REACT_LAZY_TYPE,
1646
- _ctor: ctor,
1647
- // React uses these fields to store the result.
1648
- _status: -1,
1649
- _result: null
1650
- };
1651
-
1652
- {
1653
- // In production, this would just set it on the object.
1654
- var defaultProps;
1655
- var propTypes;
1656
- Object.defineProperties(lazyType, {
1657
- defaultProps: {
1658
- configurable: true,
1659
- get: function () {
1660
- return defaultProps;
1661
- },
1662
- set: function (newDefaultProps) {
1663
- 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.');
1664
-
1665
- defaultProps = newDefaultProps; // Match production behavior more closely:
1666
-
1667
- Object.defineProperty(lazyType, 'defaultProps', {
1668
- enumerable: true
1669
- });
1670
- }
1671
- },
1672
- propTypes: {
1673
- configurable: true,
1674
- get: function () {
1675
- return propTypes;
1676
- },
1677
- set: function (newPropTypes) {
1678
- 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.');
1679
-
1680
- propTypes = newPropTypes; // Match production behavior more closely:
1681
-
1682
- Object.defineProperty(lazyType, 'propTypes', {
1683
- enumerable: true
1684
- });
1685
- }
1686
- }
1687
- });
1688
- }
1689
-
1690
- return lazyType;
1691
- }
1692
-
1693
- function forwardRef(render) {
1694
- {
1695
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1696
- error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
1697
- } else if (typeof render !== 'function') {
1698
- error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
1699
- } else {
1700
- if (render.length !== 0 && render.length !== 2) {
1701
- 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.');
1702
- }
1703
- }
1704
-
1705
- if (render != null) {
1706
- if (render.defaultProps != null || render.propTypes != null) {
1707
- error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
1708
- }
1709
- }
1710
- }
1711
-
1712
- return {
1713
- $$typeof: REACT_FORWARD_REF_TYPE,
1714
- render: render
1715
- };
1716
- }
1717
-
1718
- function isValidElementType(type) {
1719
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1720
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (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 || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1721
- }
1722
-
1723
- function memo(type, compare) {
1724
- {
1725
- if (!isValidElementType(type)) {
1726
- error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
1727
- }
1728
- }
1729
-
1730
- return {
1731
- $$typeof: REACT_MEMO_TYPE,
1732
- type: type,
1733
- compare: compare === undefined ? null : compare
1734
- };
1735
- }
1736
-
1737
- function resolveDispatcher() {
1738
- var dispatcher = ReactCurrentDispatcher.current;
1739
-
1740
- if (!(dispatcher !== null)) {
1741
- {
1742
- throw 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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." );
1743
- }
1744
- }
1745
-
1746
- return dispatcher;
1747
- }
1748
-
1749
- function useContext(Context, unstable_observedBits) {
1750
- var dispatcher = resolveDispatcher();
1751
-
1752
- {
1753
- if (unstable_observedBits !== undefined) {
1754
- error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '');
1755
- } // TODO: add a more generic warning for invalid values.
1756
-
1757
-
1758
- if (Context._context !== undefined) {
1759
- var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
1760
- // and nobody should be using this in existing code.
1761
-
1762
- if (realContext.Consumer === Context) {
1763
- 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?');
1764
- } else if (realContext.Provider === Context) {
1765
- error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
1766
- }
1767
- }
1768
- }
1769
-
1770
- return dispatcher.useContext(Context, unstable_observedBits);
1771
- }
1772
- function useState(initialState) {
1773
- var dispatcher = resolveDispatcher();
1774
- return dispatcher.useState(initialState);
1775
- }
1776
- function useReducer(reducer, initialArg, init) {
1777
- var dispatcher = resolveDispatcher();
1778
- return dispatcher.useReducer(reducer, initialArg, init);
1779
- }
1780
- function useRef(initialValue) {
1781
- var dispatcher = resolveDispatcher();
1782
- return dispatcher.useRef(initialValue);
1783
- }
1784
- function useEffect(create, deps) {
1785
- var dispatcher = resolveDispatcher();
1786
- return dispatcher.useEffect(create, deps);
1787
- }
1788
- function useLayoutEffect(create, deps) {
1789
- var dispatcher = resolveDispatcher();
1790
- return dispatcher.useLayoutEffect(create, deps);
1791
- }
1792
- function useCallback(callback, deps) {
1793
- var dispatcher = resolveDispatcher();
1794
- return dispatcher.useCallback(callback, deps);
1795
- }
1796
- function useMemo(create, deps) {
1797
- var dispatcher = resolveDispatcher();
1798
- return dispatcher.useMemo(create, deps);
1799
- }
1800
- function useImperativeHandle(ref, create, deps) {
1801
- var dispatcher = resolveDispatcher();
1802
- return dispatcher.useImperativeHandle(ref, create, deps);
1803
- }
1804
- function useDebugValue(value, formatterFn) {
1805
- {
1806
- var dispatcher = resolveDispatcher();
1807
- return dispatcher.useDebugValue(value, formatterFn);
1808
- }
1809
- }
1810
-
1811
- var propTypesMisspellWarningShown;
1812
-
1813
- {
1814
- propTypesMisspellWarningShown = false;
1815
- }
1816
-
1817
- function getDeclarationErrorAddendum() {
1818
- if (ReactCurrentOwner.current) {
1819
- var name = getComponentName(ReactCurrentOwner.current.type);
1820
-
1821
- if (name) {
1822
- return '\n\nCheck the render method of `' + name + '`.';
1823
- }
1824
- }
1825
-
1826
- return '';
1827
- }
1828
-
1829
- function getSourceInfoErrorAddendum(source) {
1830
- if (source !== undefined) {
1831
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
1832
- var lineNumber = source.lineNumber;
1833
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
1834
- }
1835
-
1836
- return '';
1837
- }
1838
-
1839
- function getSourceInfoErrorAddendumForProps(elementProps) {
1840
- if (elementProps !== null && elementProps !== undefined) {
1841
- return getSourceInfoErrorAddendum(elementProps.__source);
1842
- }
1843
-
1844
- return '';
1845
- }
1846
- /**
1847
- * Warn if there's no key explicitly set on dynamic arrays of children or
1848
- * object keys are not valid. This allows us to keep track of children between
1849
- * updates.
1850
- */
1851
-
1852
-
1853
- var ownerHasKeyUseWarning = {};
1854
-
1855
- function getCurrentComponentErrorInfo(parentType) {
1856
- var info = getDeclarationErrorAddendum();
1857
-
1858
- if (!info) {
1859
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1860
-
1861
- if (parentName) {
1862
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1863
- }
1864
- }
1865
-
1866
- return info;
1867
- }
1868
- /**
1869
- * Warn if the element doesn't have an explicit key assigned to it.
1870
- * This element is in an array. The array could grow and shrink or be
1871
- * reordered. All children that haven't already been validated are required to
1872
- * have a "key" property assigned to it. Error statuses are cached so a warning
1873
- * will only be shown once.
1874
- *
1875
- * @internal
1876
- * @param {ReactElement} element Element that requires a key.
1877
- * @param {*} parentType element's parent's type.
1878
- */
1879
-
1880
-
1881
- function validateExplicitKey(element, parentType) {
1882
- if (!element._store || element._store.validated || element.key != null) {
1883
- return;
1884
- }
1885
-
1886
- element._store.validated = true;
1887
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1888
-
1889
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1890
- return;
1891
- }
1892
-
1893
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1894
- // property, it may be the creator of the child that's responsible for
1895
- // assigning it a key.
1896
-
1897
- var childOwner = '';
1898
-
1899
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1900
- // Give the component that originally created this child.
1901
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
1902
- }
1903
-
1904
- setCurrentlyValidatingElement(element);
1905
-
1906
- {
1907
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
1908
- }
1909
-
1910
- setCurrentlyValidatingElement(null);
1911
- }
1912
- /**
1913
- * Ensure that every element either is passed in a static location, in an
1914
- * array with an explicit keys property defined, or in an object literal
1915
- * with valid key property.
1916
- *
1917
- * @internal
1918
- * @param {ReactNode} node Statically passed child of any type.
1919
- * @param {*} parentType node's parent's type.
1920
- */
1921
-
1922
-
1923
- function validateChildKeys(node, parentType) {
1924
- if (typeof node !== 'object') {
1925
- return;
1926
- }
1927
-
1928
- if (Array.isArray(node)) {
1929
- for (var i = 0; i < node.length; i++) {
1930
- var child = node[i];
1931
-
1932
- if (isValidElement(child)) {
1933
- validateExplicitKey(child, parentType);
1934
- }
1935
- }
1936
- } else if (isValidElement(node)) {
1937
- // This element was passed in a valid location.
1938
- if (node._store) {
1939
- node._store.validated = true;
1940
- }
1941
- } else if (node) {
1942
- var iteratorFn = getIteratorFn(node);
1943
-
1944
- if (typeof iteratorFn === 'function') {
1945
- // Entry iterators used to provide implicit keys,
1946
- // but now we print a separate warning for them later.
1947
- if (iteratorFn !== node.entries) {
1948
- var iterator = iteratorFn.call(node);
1949
- var step;
1950
-
1951
- while (!(step = iterator.next()).done) {
1952
- if (isValidElement(step.value)) {
1953
- validateExplicitKey(step.value, parentType);
1954
- }
1955
- }
1956
- }
1957
- }
1958
- }
1959
- }
1960
- /**
1961
- * Given an element, validate that its props follow the propTypes definition,
1962
- * provided by the type.
1963
- *
1964
- * @param {ReactElement} element
1965
- */
1966
-
1967
-
1968
- function validatePropTypes(element) {
1969
- {
1970
- var type = element.type;
1971
-
1972
- if (type === null || type === undefined || typeof type === 'string') {
1973
- return;
1974
- }
1975
-
1976
- var name = getComponentName(type);
1977
- var propTypes;
1978
-
1979
- if (typeof type === 'function') {
1980
- propTypes = type.propTypes;
1981
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1982
- // Inner props are checked in the reconciler.
1983
- type.$$typeof === REACT_MEMO_TYPE)) {
1984
- propTypes = type.propTypes;
1985
- } else {
1986
- return;
1987
- }
1988
-
1989
- if (propTypes) {
1990
- setCurrentlyValidatingElement(element);
1991
- checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
1992
- setCurrentlyValidatingElement(null);
1993
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1994
- propTypesMisspellWarningShown = true;
1995
-
1996
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
1997
- }
1998
-
1999
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
2000
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
2001
- }
2002
- }
2003
- }
2004
- /**
2005
- * Given a fragment, validate that it can only be provided with fragment props
2006
- * @param {ReactElement} fragment
2007
- */
2008
-
2009
-
2010
- function validateFragmentProps(fragment) {
2011
- {
2012
- setCurrentlyValidatingElement(fragment);
2013
- var keys = Object.keys(fragment.props);
2014
-
2015
- for (var i = 0; i < keys.length; i++) {
2016
- var key = keys[i];
2017
-
2018
- if (key !== 'children' && key !== 'key') {
2019
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
2020
-
2021
- break;
2022
- }
2023
- }
2024
-
2025
- if (fragment.ref !== null) {
2026
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
2027
- }
2028
-
2029
- setCurrentlyValidatingElement(null);
2030
- }
2031
- }
2032
- function createElementWithValidation(type, props, children) {
2033
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2034
- // succeed and there will likely be errors in render.
2035
-
2036
- if (!validType) {
2037
- var info = '';
2038
-
2039
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
2040
- 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.";
2041
- }
2042
-
2043
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
2044
-
2045
- if (sourceInfo) {
2046
- info += sourceInfo;
2047
- } else {
2048
- info += getDeclarationErrorAddendum();
2049
- }
2050
-
2051
- var typeString;
2052
-
2053
- if (type === null) {
2054
- typeString = 'null';
2055
- } else if (Array.isArray(type)) {
2056
- typeString = 'array';
2057
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
2058
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
2059
- info = ' Did you accidentally export a JSX literal instead of a component?';
2060
- } else {
2061
- typeString = typeof type;
2062
- }
2063
-
2064
- {
2065
- 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);
2066
- }
2067
- }
2068
-
2069
- var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
2070
- // TODO: Drop this when these are no longer allowed as the type argument.
2071
-
2072
- if (element == null) {
2073
- return element;
2074
- } // Skip key warning if the type isn't valid since our key validation logic
2075
- // doesn't expect a non-string/function type and can throw confusing errors.
2076
- // We don't want exception behavior to differ between dev and prod.
2077
- // (Rendering will throw with a helpful message and as soon as the type is
2078
- // fixed, the key warnings will appear.)
2079
-
2080
-
2081
- if (validType) {
2082
- for (var i = 2; i < arguments.length; i++) {
2083
- validateChildKeys(arguments[i], type);
2084
- }
2085
- }
2086
-
2087
- if (type === REACT_FRAGMENT_TYPE) {
2088
- validateFragmentProps(element);
2089
- } else {
2090
- validatePropTypes(element);
2091
- }
2092
-
2093
- return element;
2094
- }
2095
- var didWarnAboutDeprecatedCreateFactory = false;
2096
- function createFactoryWithValidation(type) {
2097
- var validatedFactory = createElementWithValidation.bind(null, type);
2098
- validatedFactory.type = type;
2099
-
2100
- {
2101
- if (!didWarnAboutDeprecatedCreateFactory) {
2102
- didWarnAboutDeprecatedCreateFactory = true;
2103
-
2104
- warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
2105
- } // Legacy hook: remove it
2106
-
2107
-
2108
- Object.defineProperty(validatedFactory, 'type', {
2109
- enumerable: false,
2110
- get: function () {
2111
- warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
2112
-
2113
- Object.defineProperty(this, 'type', {
2114
- value: type
2115
- });
2116
- return type;
2117
- }
2118
- });
2119
- }
2120
-
2121
- return validatedFactory;
2122
- }
2123
- function cloneElementWithValidation(element, props, children) {
2124
- var newElement = cloneElement.apply(this, arguments);
2125
-
2126
- for (var i = 2; i < arguments.length; i++) {
2127
- validateChildKeys(arguments[i], newElement.type);
2128
- }
2129
-
2130
- validatePropTypes(newElement);
2131
- return newElement;
2132
- }
2133
-
2134
- {
2135
-
2136
- try {
2137
- var frozenObject = Object.freeze({});
2138
- var testMap = new Map([[frozenObject, null]]);
2139
- var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.
2140
- // https://github.com/rollup/rollup/issues/1771
2141
- // TODO: we can remove these if Rollup fixes the bug.
2142
-
2143
- testMap.set(0, 0);
2144
- testSet.add(0);
2145
- } catch (e) {
2146
- }
2147
- }
2148
-
2149
- var createElement$1 = createElementWithValidation ;
2150
- var cloneElement$1 = cloneElementWithValidation ;
2151
- var createFactory = createFactoryWithValidation ;
2152
- var Children = {
2153
- map: mapChildren,
2154
- forEach: forEachChildren,
2155
- count: countChildren,
2156
- toArray: toArray,
2157
- only: onlyChild
2158
- };
2159
-
2160
- react_development.Children = Children;
2161
- react_development.Component = Component;
2162
- react_development.Fragment = REACT_FRAGMENT_TYPE;
2163
- react_development.Profiler = REACT_PROFILER_TYPE;
2164
- react_development.PureComponent = PureComponent;
2165
- react_development.StrictMode = REACT_STRICT_MODE_TYPE;
2166
- react_development.Suspense = REACT_SUSPENSE_TYPE;
2167
- react_development.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2168
- react_development.cloneElement = cloneElement$1;
2169
- react_development.createContext = createContext;
2170
- react_development.createElement = createElement$1;
2171
- react_development.createFactory = createFactory;
2172
- react_development.createRef = createRef;
2173
- react_development.forwardRef = forwardRef;
2174
- react_development.isValidElement = isValidElement;
2175
- react_development.lazy = lazy;
2176
- react_development.memo = memo;
2177
- react_development.useCallback = useCallback;
2178
- react_development.useContext = useContext;
2179
- react_development.useDebugValue = useDebugValue;
2180
- react_development.useEffect = useEffect;
2181
- react_development.useImperativeHandle = useImperativeHandle;
2182
- react_development.useLayoutEffect = useLayoutEffect;
2183
- react_development.useMemo = useMemo;
2184
- react_development.useReducer = useReducer;
2185
- react_development.useRef = useRef;
2186
- react_development.useState = useState;
2187
- react_development.version = ReactVersion;
2188
- })();
2189
- }
2190
-
2191
- if (process.env.NODE_ENV === 'production') {
2192
- react.exports = react_production_min;
2193
- } else {
2194
- react.exports = react_development;
2195
- }
2196
-
2197
- var React = react.exports;
2198
-
2199
47
  var propTypes = {exports: {}};
2200
48
 
2201
49
  var reactIs$1 = {exports: {}};
@@ -2404,6 +252,210 @@ if (process.env.NODE_ENV === 'production') {
2404
252
  reactIs$1.exports = reactIs_development;
2405
253
  }
2406
254
 
255
+ /*
256
+ object-assign
257
+ (c) Sindre Sorhus
258
+ @license MIT
259
+ */
260
+ /* eslint-disable no-unused-vars */
261
+ var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
262
+ var hasOwnProperty$c = Object.prototype.hasOwnProperty;
263
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
264
+
265
+ function toObject(val) {
266
+ if (val === null || val === undefined) {
267
+ throw new TypeError('Object.assign cannot be called with null or undefined');
268
+ }
269
+
270
+ return Object(val);
271
+ }
272
+
273
+ function shouldUseNative() {
274
+ try {
275
+ if (!Object.assign) {
276
+ return false;
277
+ }
278
+
279
+ // Detect buggy property enumeration order in older V8 versions.
280
+
281
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
282
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
283
+ test1[5] = 'de';
284
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
285
+ return false;
286
+ }
287
+
288
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
289
+ var test2 = {};
290
+ for (var i = 0; i < 10; i++) {
291
+ test2['_' + String.fromCharCode(i)] = i;
292
+ }
293
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
294
+ return test2[n];
295
+ });
296
+ if (order2.join('') !== '0123456789') {
297
+ return false;
298
+ }
299
+
300
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
301
+ var test3 = {};
302
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
303
+ test3[letter] = letter;
304
+ });
305
+ if (Object.keys(Object.assign({}, test3)).join('') !==
306
+ 'abcdefghijklmnopqrst') {
307
+ return false;
308
+ }
309
+
310
+ return true;
311
+ } catch (err) {
312
+ // We don't expect any of the above to throw, but better to be safe.
313
+ return false;
314
+ }
315
+ }
316
+
317
+ var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
318
+ var from;
319
+ var to = toObject(target);
320
+ var symbols;
321
+
322
+ for (var s = 1; s < arguments.length; s++) {
323
+ from = Object(arguments[s]);
324
+
325
+ for (var key in from) {
326
+ if (hasOwnProperty$c.call(from, key)) {
327
+ to[key] = from[key];
328
+ }
329
+ }
330
+
331
+ if (getOwnPropertySymbols$1) {
332
+ symbols = getOwnPropertySymbols$1(from);
333
+ for (var i = 0; i < symbols.length; i++) {
334
+ if (propIsEnumerable.call(from, symbols[i])) {
335
+ to[symbols[i]] = from[symbols[i]];
336
+ }
337
+ }
338
+ }
339
+ }
340
+
341
+ return to;
342
+ };
343
+
344
+ /**
345
+ * Copyright (c) 2013-present, Facebook, Inc.
346
+ *
347
+ * This source code is licensed under the MIT license found in the
348
+ * LICENSE file in the root directory of this source tree.
349
+ */
350
+
351
+ var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
352
+
353
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
354
+
355
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
356
+
357
+ /**
358
+ * Copyright (c) 2013-present, Facebook, Inc.
359
+ *
360
+ * This source code is licensed under the MIT license found in the
361
+ * LICENSE file in the root directory of this source tree.
362
+ */
363
+
364
+ var printWarning$2 = function() {};
365
+
366
+ if (process.env.NODE_ENV !== 'production') {
367
+ var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
368
+ var loggedTypeFailures = {};
369
+ var has$1 = has$2;
370
+
371
+ printWarning$2 = function(text) {
372
+ var message = 'Warning: ' + text;
373
+ if (typeof console !== 'undefined') {
374
+ console.error(message);
375
+ }
376
+ try {
377
+ // --- Welcome to debugging React ---
378
+ // This error was thrown as a convenience so that you can use this stack
379
+ // to find the callsite that caused this warning to fire.
380
+ throw new Error(message);
381
+ } catch (x) { /**/ }
382
+ };
383
+ }
384
+
385
+ /**
386
+ * Assert that the values match with the type specs.
387
+ * Error messages are memorized and will only be shown once.
388
+ *
389
+ * @param {object} typeSpecs Map of name to a ReactPropType
390
+ * @param {object} values Runtime values that need to be type-checked
391
+ * @param {string} location e.g. "prop", "context", "child context"
392
+ * @param {string} componentName Name of the component for error messages.
393
+ * @param {?Function} getStack Returns the component stack.
394
+ * @private
395
+ */
396
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
397
+ if (process.env.NODE_ENV !== 'production') {
398
+ for (var typeSpecName in typeSpecs) {
399
+ if (has$1(typeSpecs, typeSpecName)) {
400
+ var error;
401
+ // Prop type validation may throw. In case they do, we don't want to
402
+ // fail the render phase where it didn't fail before. So we log it.
403
+ // After these have been cleaned up, we'll let them throw.
404
+ try {
405
+ // This is intentionally an invariant that gets caught. It's the same
406
+ // behavior as without this statement except with a better message.
407
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
408
+ var err = Error(
409
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
410
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
411
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
412
+ );
413
+ err.name = 'Invariant Violation';
414
+ throw err;
415
+ }
416
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
417
+ } catch (ex) {
418
+ error = ex;
419
+ }
420
+ if (error && !(error instanceof Error)) {
421
+ printWarning$2(
422
+ (componentName || 'React class') + ': type specification of ' +
423
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
424
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
425
+ 'You may have forgotten to pass an argument to the type checker ' +
426
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
427
+ 'shape all require an argument).'
428
+ );
429
+ }
430
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
431
+ // Only monitor this failure once because there tends to be a lot of the
432
+ // same error.
433
+ loggedTypeFailures[error.message] = true;
434
+
435
+ var stack = getStack ? getStack() : '';
436
+
437
+ printWarning$2(
438
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
439
+ );
440
+ }
441
+ }
442
+ }
443
+ }
444
+ }
445
+
446
+ /**
447
+ * Resets warning cache when testing.
448
+ *
449
+ * @private
450
+ */
451
+ checkPropTypes$1.resetWarningCache = function() {
452
+ if (process.env.NODE_ENV !== 'production') {
453
+ loggedTypeFailures = {};
454
+ }
455
+ };
456
+
457
+ var checkPropTypes_1 = checkPropTypes$1;
458
+
2407
459
  /**
2408
460
  * Copyright (c) 2013-present, Facebook, Inc.
2409
461
  *
@@ -9179,7 +7231,7 @@ var _getPrototypeOf2$7 = _interopRequireDefault$E(getPrototypeOf$1.exports);
9179
7231
 
9180
7232
  var _inherits2$d = _interopRequireDefault$E(inherits.exports);
9181
7233
 
9182
- var _react$v = _interopRequireDefault$E(react.exports);
7234
+ var _react$v = _interopRequireDefault$E(React);
9183
7235
 
9184
7236
  var _propTypes$l = _interopRequireDefault$E(propTypes.exports);
9185
7237
 
@@ -9683,7 +7735,7 @@ var _inherits2$c = _interopRequireDefault$B(inherits.exports);
9683
7735
 
9684
7736
  var _objectWithoutProperties2$g = _interopRequireDefault$B(objectWithoutProperties.exports);
9685
7737
 
9686
- var _react$u = _interopRequireDefault$B(react.exports);
7738
+ var _react$u = _interopRequireDefault$B(React);
9687
7739
 
9688
7740
  var _propTypes$k = _interopRequireDefault$B(propTypes.exports);
9689
7741
 
@@ -10074,7 +8126,7 @@ var _getPrototypeOf2$5 = _interopRequireDefault$A(getPrototypeOf$1.exports);
10074
8126
 
10075
8127
  var _inherits2$b = _interopRequireDefault$A(inherits.exports);
10076
8128
 
10077
- var _react$t = _interopRequireDefault$A(react.exports);
8129
+ var _react$t = _interopRequireDefault$A(React);
10078
8130
 
10079
8131
  var _propTypes$j = _interopRequireDefault$A(propTypes.exports);
10080
8132
 
@@ -11264,7 +9316,7 @@ if (process.env.NODE_ENV === 'production') {
11264
9316
  * This source code is licensed under the MIT license found in the
11265
9317
  * LICENSE file in the root directory of this source tree.
11266
9318
  */
11267
- var aa=react.exports,n=objectAssign,r=scheduler.exports;function u(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!aa)throw Error(u(227));
9319
+ var aa=React,n=objectAssign,r=scheduler.exports;function u(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!aa)throw Error(u(227));
11268
9320
  function ba(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l);}catch(m){this.onError(m);}}var da=!1,ea=null,fa=!1,ha=null,ia={onError:function(a){da=!0;ea=a;}};function ja(a,b,c,d,e,f,g,h,k){da=!1;ea=null;ba.apply(ia,arguments);}function ka(a,b,c,d,e,f,g,h,k){ja.apply(this,arguments);if(da){if(da){var l=ea;da=!1;ea=null;}else throw Error(u(198));fa||(fa=!0,ha=l);}}var la=null,ma=null,na=null;
11269
9321
  function oa(a,b,c){var d=a.type||"unknown-event";a.currentTarget=na(c);ka(d,b,void 0,a);a.currentTarget=null;}var pa=null,qa={};
11270
9322
  function ra(){if(pa)for(var a in qa){var b=qa[a],c=pa.indexOf(a);if(!(-1<c))throw Error(u(96,a));if(!sa[c]){if(!b.extractEvents)throw Error(u(97,a));sa[c]=b;c=b.eventTypes;for(var d in c){var e=void 0;var f=c[d],g=b,h=d;if(ta.hasOwnProperty(h))throw Error(u(99,h));ta[h]=f;var k=f.phasedRegistrationNames;if(k){for(e in k)k.hasOwnProperty(e)&&ua(k[e],g,h);e=!0;}else f.registrationName?(ua(f.registrationName,g,h),e=!0):e=!1;if(!e)throw Error(u(98,d,a));}}}}
@@ -11933,13 +9985,13 @@ if (process.env.NODE_ENV === 'production') {
11933
9985
  if (process.env.NODE_ENV !== "production") {
11934
9986
  (function() {
11935
9987
 
11936
- var React = react.exports;
9988
+ var React$1 = React;
11937
9989
  var _assign = objectAssign;
11938
9990
  var Scheduler = scheduler.exports;
11939
9991
  var checkPropTypes = checkPropTypes_1;
11940
9992
  var tracing$1 = tracing.exports;
11941
9993
 
11942
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.
9994
+ var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.
11943
9995
  // Current owner and dispatcher used to share the same ref,
11944
9996
  // but PR #14548 split them out to better support the react-debug-tools package.
11945
9997
 
@@ -12018,7 +10070,7 @@ function printWarning(level, format, args) {
12018
10070
  }
12019
10071
  }
12020
10072
 
12021
- if (!React) {
10073
+ if (!React$1) {
12022
10074
  {
12023
10075
  throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." );
12024
10076
  }
@@ -13985,7 +12037,7 @@ function flattenChildren(children) {
13985
12037
  // Elements are stringified (which is normally irrelevant
13986
12038
  // but matters for <fbt>).
13987
12039
 
13988
- React.Children.forEach(children, function (child) {
12040
+ React$1.Children.forEach(children, function (child) {
13989
12041
  if (child == null) {
13990
12042
  return;
13991
12043
  }
@@ -14008,7 +12060,7 @@ function validateProps(element, props) {
14008
12060
  // TODO: this seems like it could cause a DEV-only throw for hydration
14009
12061
  // if children contains a non-element object. We should try to avoid that.
14010
12062
  if (typeof props.children === 'object' && props.children !== null) {
14011
- React.Children.forEach(props.children, function (child) {
12063
+ React$1.Children.forEach(props.children, function (child) {
14012
12064
  if (child == null) {
14013
12065
  return;
14014
12066
  }
@@ -24439,7 +22491,7 @@ var fakeInternalInstance = {};
24439
22491
  var isArray = Array.isArray; // React.Component uses a shared frozen object by default.
24440
22492
  // We'll use it to determine whether we need to initialize legacy refs.
24441
22493
 
24442
- var emptyRefsObject = new React.Component().refs;
22494
+ var emptyRefsObject = new React$1.Component().refs;
24443
22495
  var didWarnAboutStateAssignmentForComponent;
24444
22496
  var didWarnAboutUninitializedState;
24445
22497
  var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
@@ -36972,7 +35024,7 @@ reactHelpers.cloneChildrenWithClassName = cloneChildrenWithClassName;
36972
35024
  reactHelpers.isMuiElement = isMuiElement;
36973
35025
  reactHelpers.setRef = setRef;
36974
35026
 
36975
- var _react$s = _interopRequireDefault$z(react.exports);
35027
+ var _react$s = _interopRequireDefault$z(React);
36976
35028
 
36977
35029
  var _classnames$c = _interopRequireDefault$z(classnames.exports);
36978
35030
 
@@ -37017,7 +35069,7 @@ var _getPrototypeOf2$4 = _interopRequireDefault$y(getPrototypeOf$1.exports);
37017
35069
 
37018
35070
  var _inherits2$a = _interopRequireDefault$y(inherits.exports);
37019
35071
 
37020
- var _react$r = _interopRequireDefault$y(react.exports);
35072
+ var _react$r = _interopRequireDefault$y(React);
37021
35073
 
37022
35074
  var _reactDom$5 = _interopRequireDefault$y(reactDom.exports);
37023
35075
 
@@ -37435,7 +35487,7 @@ Transition$1.default = Transition$1.EXITING = Transition$1.ENTERED = Transition$
37435
35487
 
37436
35488
  var PropTypes = _interopRequireWildcard(propTypes.exports);
37437
35489
 
37438
- var _react$q = _interopRequireDefault$v(react.exports);
35490
+ var _react$q = _interopRequireDefault$v(React);
37439
35491
 
37440
35492
  var _reactDom$4 = _interopRequireDefault$v(reactDom.exports);
37441
35493
 
@@ -38083,7 +36135,7 @@ var _getPrototypeOf3$5 = _interopRequireDefault$u(getPrototypeOf$1.exports);
38083
36135
 
38084
36136
  var _inherits2$9 = _interopRequireDefault$u(inherits.exports);
38085
36137
 
38086
- var _react$p = _interopRequireDefault$u(react.exports);
36138
+ var _react$p = _interopRequireDefault$u(React);
38087
36139
 
38088
36140
  var _propTypes$g = _interopRequireDefault$u(propTypes.exports);
38089
36141
 
@@ -40974,7 +39026,7 @@ var _getPrototypeOf3$4 = _interopRequireDefault$t(getPrototypeOf$1.exports);
40974
39026
 
40975
39027
  var _inherits2$8 = _interopRequireDefault$t(inherits.exports);
40976
39028
 
40977
- var _react$o = _interopRequireDefault$t(react.exports);
39029
+ var _react$o = _interopRequireDefault$t(React);
40978
39030
 
40979
39031
  var _reactDom$3 = _interopRequireDefault$t(reactDom.exports);
40980
39032
 
@@ -41165,7 +39217,7 @@ var _inherits2$7 = _interopRequireDefault$s(inherits.exports);
41165
39217
 
41166
39218
  var _assertThisInitialized2$2 = _interopRequireDefault$s(assertThisInitialized.exports);
41167
39219
 
41168
- var _react$n = _interopRequireDefault$s(react.exports);
39220
+ var _react$n = _interopRequireDefault$s(React);
41169
39221
 
41170
39222
  var _reactDom$2 = _interopRequireDefault$s(reactDom.exports);
41171
39223
 
@@ -41489,7 +39541,7 @@ var _inherits2$6 = _interopRequireDefault$r(inherits.exports);
41489
39541
 
41490
39542
  var _defineProperty2$9 = _interopRequireDefault$r(defineProperty$4.exports);
41491
39543
 
41492
- var _react$m = _interopRequireDefault$r(react.exports);
39544
+ var _react$m = _interopRequireDefault$r(React);
41493
39545
 
41494
39546
  var _propTypes$d = _interopRequireDefault$r(propTypes.exports);
41495
39547
 
@@ -42113,7 +40165,7 @@ shouldUpdate$1.default = void 0;
42113
40165
 
42114
40166
  var _inheritsLoose2 = _interopRequireDefault$o(inheritsLoose.exports);
42115
40167
 
42116
- var _react$l = react.exports;
40168
+ var _react$l = React;
42117
40169
 
42118
40170
  var _setDisplayName$1 = _interopRequireDefault$o(setDisplayName$1);
42119
40171
 
@@ -42275,7 +40327,7 @@ var _defineProperty2$8 = _interopRequireDefault$l(defineProperty$4.exports);
42275
40327
 
42276
40328
  var _objectWithoutProperties2$b = _interopRequireDefault$l(objectWithoutProperties.exports);
42277
40329
 
42278
- var _react$k = _interopRequireDefault$l(react.exports);
40330
+ var _react$k = _interopRequireDefault$l(React);
42279
40331
 
42280
40332
  var _propTypes$c = _interopRequireDefault$l(propTypes.exports);
42281
40333
 
@@ -42469,7 +40521,7 @@ Object.defineProperty(createSvgIcon$1, "__esModule", {
42469
40521
  });
42470
40522
  createSvgIcon$1.default = void 0;
42471
40523
 
42472
- var _react$j = _interopRequireDefault$k(react.exports);
40524
+ var _react$j = _interopRequireDefault$k(React);
42473
40525
 
42474
40526
  var _pure$2 = _interopRequireDefault$k(pure$1);
42475
40527
 
@@ -42495,7 +40547,7 @@ Object.defineProperty(HelpOutline, "__esModule", {
42495
40547
  });
42496
40548
  var default_1$1 = HelpOutline.default = void 0;
42497
40549
 
42498
- var _react$i = _interopRequireDefault$j(react.exports);
40550
+ var _react$i = _interopRequireDefault$j(React);
42499
40551
 
42500
40552
  var _createSvgIcon$1 = _interopRequireDefault$j(createSvgIcon$1);
42501
40553
 
@@ -42557,7 +40609,7 @@ var _getPrototypeOf3$3 = _interopRequireDefault$h(getPrototypeOf$1.exports);
42557
40609
 
42558
40610
  var _inherits2$5 = _interopRequireDefault$h(inherits.exports);
42559
40611
 
42560
- var _react$h = _interopRequireDefault$h(react.exports);
40612
+ var _react$h = _interopRequireDefault$h(React);
42561
40613
 
42562
40614
  var _propTypes$b = _interopRequireDefault$h(propTypes.exports);
42563
40615
 
@@ -42861,7 +40913,7 @@ ChildMapping.mergeChildMappings = mergeChildMappings;
42861
40913
  ChildMapping.getInitialChildMapping = getInitialChildMapping;
42862
40914
  ChildMapping.getNextChildMapping = getNextChildMapping;
42863
40915
 
42864
- var _react$g = react.exports;
40916
+ var _react$g = React;
42865
40917
 
42866
40918
  /**
42867
40919
  * Given `this.props.children`, return an object mapping key to child.
@@ -43011,7 +41063,7 @@ exports.default = void 0;
43011
41063
 
43012
41064
  var _propTypes = _interopRequireDefault(propTypes.exports);
43013
41065
 
43014
- var _react = _interopRequireDefault(react.exports);
41066
+ var _react = _interopRequireDefault(React);
43015
41067
 
43016
41068
  var _reactLifecyclesCompat = require$$2;
43017
41069
 
@@ -43239,7 +41291,7 @@ var _getPrototypeOf3$2 = _interopRequireDefault$f(getPrototypeOf$1.exports);
43239
41291
 
43240
41292
  var _inherits2$4 = _interopRequireDefault$f(inherits.exports);
43241
41293
 
43242
- var _react$f = _interopRequireDefault$f(react.exports);
41294
+ var _react$f = _interopRequireDefault$f(React);
43243
41295
 
43244
41296
  var _propTypes$a = _interopRequireDefault$f(propTypes.exports);
43245
41297
 
@@ -43388,7 +41440,7 @@ var _inherits2$3 = _interopRequireDefault$e(inherits.exports);
43388
41440
 
43389
41441
  var _assertThisInitialized2$1 = _interopRequireDefault$e(assertThisInitialized.exports);
43390
41442
 
43391
- var _react$e = _interopRequireDefault$e(react.exports);
41443
+ var _react$e = _interopRequireDefault$e(React);
43392
41444
 
43393
41445
  var _propTypes$9 = _interopRequireDefault$e(propTypes.exports);
43394
41446
 
@@ -43804,7 +41856,7 @@ var _inherits2$2 = _interopRequireDefault$d(inherits.exports);
43804
41856
 
43805
41857
  var _assertThisInitialized2 = _interopRequireDefault$d(assertThisInitialized.exports);
43806
41858
 
43807
- var _react$d = _interopRequireDefault$d(react.exports);
41859
+ var _react$d = _interopRequireDefault$d(React);
43808
41860
 
43809
41861
  var _propTypes$8 = _interopRequireDefault$d(propTypes.exports);
43810
41862
 
@@ -44352,7 +42404,7 @@ var _defineProperty2$5 = _interopRequireDefault$c(defineProperty$4.exports);
44352
42404
 
44353
42405
  var _objectWithoutProperties2$7 = _interopRequireDefault$c(objectWithoutProperties.exports);
44354
42406
 
44355
- var _react$c = _interopRequireDefault$c(react.exports);
42407
+ var _react$c = _interopRequireDefault$c(React);
44356
42408
 
44357
42409
  var _propTypes$7 = _interopRequireDefault$c(propTypes.exports);
44358
42410
 
@@ -44558,7 +42610,7 @@ var _defineProperty2$4 = _interopRequireDefault$b(defineProperty$4.exports);
44558
42610
 
44559
42611
  var _objectWithoutProperties2$6 = _interopRequireDefault$b(objectWithoutProperties.exports);
44560
42612
 
44561
- var _react$b = _interopRequireDefault$b(react.exports);
42613
+ var _react$b = _interopRequireDefault$b(React);
44562
42614
 
44563
42615
  var _propTypes$6 = _interopRequireDefault$b(propTypes.exports);
44564
42616
 
@@ -45217,7 +43269,7 @@ var _objectWithoutProperties2$5 = _interopRequireDefault$a(objectWithoutProperti
45217
43269
 
45218
43270
  var _extends2$6 = _interopRequireDefault$a(_extends$9.exports);
45219
43271
 
45220
- var _react$a = _interopRequireDefault$a(react.exports);
43272
+ var _react$a = _interopRequireDefault$a(React);
45221
43273
 
45222
43274
  var _propTypes$5 = _interopRequireDefault$a(propTypes.exports);
45223
43275
 
@@ -48525,7 +46577,7 @@ Object.defineProperty(Info, "__esModule", {
48525
46577
  });
48526
46578
  var default_1 = Info.default = void 0;
48527
46579
 
48528
- var _react$9 = _interopRequireDefault$9(react.exports);
46580
+ var _react$9 = _interopRequireDefault$9(React);
48529
46581
 
48530
46582
  var _createSvgIcon = _interopRequireDefault$9(createSvgIcon$1);
48531
46583
 
@@ -48553,7 +46605,7 @@ Object.defineProperty(FormControlContext$1, "__esModule", {
48553
46605
  });
48554
46606
  FormControlContext$1.default = void 0;
48555
46607
 
48556
- var _react$8 = _interopRequireDefault$8(react.exports);
46608
+ var _react$8 = _interopRequireDefault$8(React);
48557
46609
 
48558
46610
  /**
48559
46611
  * @ignore - internal component.
@@ -48572,7 +46624,7 @@ withFormControlContext$1.default = withFormControlContext;
48572
46624
 
48573
46625
  var _extends2$5 = _interopRequireDefault$7(_extends$9.exports);
48574
46626
 
48575
- var _react$7 = _interopRequireDefault$7(react.exports);
46627
+ var _react$7 = _interopRequireDefault$7(React);
48576
46628
 
48577
46629
  var _hoistNonReactStatics = _interopRequireDefault$7(hoistNonReactStatics_cjs);
48578
46630
 
@@ -48610,7 +46662,7 @@ var _defineProperty2$2 = _interopRequireDefault$6(defineProperty$4.exports);
48610
46662
 
48611
46663
  var _objectWithoutProperties2$4 = _interopRequireDefault$6(objectWithoutProperties.exports);
48612
46664
 
48613
- var _react$6 = _interopRequireDefault$6(react.exports);
46665
+ var _react$6 = _interopRequireDefault$6(React);
48614
46666
 
48615
46667
  var _propTypes$4 = _interopRequireDefault$6(propTypes.exports);
48616
46668
 
@@ -48840,7 +46892,7 @@ var _defineProperty2$1 = _interopRequireDefault$5(defineProperty$4.exports);
48840
46892
 
48841
46893
  var _objectWithoutProperties2$3 = _interopRequireDefault$5(objectWithoutProperties.exports);
48842
46894
 
48843
- var _react$5 = _interopRequireDefault$5(react.exports);
46895
+ var _react$5 = _interopRequireDefault$5(React);
48844
46896
 
48845
46897
  var _propTypes$3 = _interopRequireDefault$5(propTypes.exports);
48846
46898
 
@@ -48950,7 +47002,7 @@ var _getPrototypeOf2$1 = _interopRequireDefault$4(getPrototypeOf$1.exports);
48950
47002
 
48951
47003
  var _inherits2$1 = _interopRequireDefault$4(inherits.exports);
48952
47004
 
48953
- var _react$4 = _interopRequireDefault$4(react.exports);
47005
+ var _react$4 = _interopRequireDefault$4(React);
48954
47006
 
48955
47007
  var _propTypes$2 = _interopRequireDefault$4(propTypes.exports);
48956
47008
 
@@ -49149,7 +47201,7 @@ var _getPrototypeOf2 = _interopRequireDefault$3(getPrototypeOf$1.exports);
49149
47201
 
49150
47202
  var _inherits2 = _interopRequireDefault$3(inherits.exports);
49151
47203
 
49152
- var _react$3 = _interopRequireDefault$3(react.exports);
47204
+ var _react$3 = _interopRequireDefault$3(React);
49153
47205
 
49154
47206
  var _propTypes$1 = _interopRequireDefault$3(propTypes.exports);
49155
47207
 
@@ -49454,7 +47506,7 @@ Object.defineProperty(RadioButtonUnchecked$1, "__esModule", {
49454
47506
  });
49455
47507
  RadioButtonUnchecked$1.default = void 0;
49456
47508
 
49457
- var _react$2 = _interopRequireDefault$2(react.exports);
47509
+ var _react$2 = _interopRequireDefault$2(React);
49458
47510
 
49459
47511
  var _pure$1 = _interopRequireDefault$2(pure$1);
49460
47512
 
@@ -49485,7 +47537,7 @@ Object.defineProperty(RadioButtonChecked$1, "__esModule", {
49485
47537
  });
49486
47538
  RadioButtonChecked$1.default = void 0;
49487
47539
 
49488
- var _react$1 = _interopRequireDefault$1(react.exports);
47540
+ var _react$1 = _interopRequireDefault$1(React);
49489
47541
 
49490
47542
  var _pure = _interopRequireDefault$1(pure$1);
49491
47543
 
@@ -49518,7 +47570,7 @@ var _extends2 = _interopRequireDefault(_extends$9.exports);
49518
47570
 
49519
47571
  var _objectWithoutProperties2 = _interopRequireDefault(objectWithoutProperties.exports);
49520
47572
 
49521
- var _react = _interopRequireDefault(react.exports);
47573
+ var _react = _interopRequireDefault(React);
49522
47574
 
49523
47575
  var _propTypes = _interopRequireDefault(propTypes.exports);
49524
47576