@pie-element/categorize 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$1, { createContext, isValidElement, cloneElement, createRef, Component } from 'react';
1
2
  import { ModelUpdatedEvent, InsertImageEvent, DeleteImageEvent, InsertSoundEvent, DeleteSoundEvent } from '@pie-framework/pie-configure-events';
2
3
  import { renderMath } from '@pie-lib/math-rendering';
3
4
  import { choiceUtils, Checkbox, layout, AlertDialog, InputContainer as InputContainer$1, FeedbackConfig, settings } from '@pie-lib/config-ui';
@@ -61,2163 +62,99 @@ function getAugmentedNamespace(n) {
61
62
  return a;
62
63
  }
63
64
 
64
- var react = {exports: {}};
65
-
66
- var react_production_min = {};
67
-
68
- /*
69
- object-assign
70
- (c) Sindre Sorhus
71
- @license MIT
72
- */
73
- /* eslint-disable no-unused-vars */
74
- var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
75
- var hasOwnProperty$d = Object.prototype.hasOwnProperty;
76
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
77
-
78
- function toObject(val) {
79
- if (val === null || val === undefined) {
80
- throw new TypeError('Object.assign cannot be called with null or undefined');
81
- }
82
-
83
- return Object(val);
84
- }
85
-
86
- function shouldUseNative() {
87
- try {
88
- if (!Object.assign) {
89
- return false;
90
- }
91
-
92
- // Detect buggy property enumeration order in older V8 versions.
93
-
94
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
95
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
96
- test1[5] = 'de';
97
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
98
- return false;
99
- }
100
-
101
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
102
- var test2 = {};
103
- for (var i = 0; i < 10; i++) {
104
- test2['_' + String.fromCharCode(i)] = i;
105
- }
106
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
107
- return test2[n];
108
- });
109
- if (order2.join('') !== '0123456789') {
110
- return false;
111
- }
112
-
113
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
114
- var test3 = {};
115
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
116
- test3[letter] = letter;
117
- });
118
- if (Object.keys(Object.assign({}, test3)).join('') !==
119
- 'abcdefghijklmnopqrst') {
120
- return false;
121
- }
122
-
123
- return true;
124
- } catch (err) {
125
- // We don't expect any of the above to throw, but better to be safe.
126
- return false;
127
- }
128
- }
129
-
130
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
131
- var from;
132
- var to = toObject(target);
133
- var symbols;
134
-
135
- for (var s = 1; s < arguments.length; s++) {
136
- from = Object(arguments[s]);
137
-
138
- for (var key in from) {
139
- if (hasOwnProperty$d.call(from, key)) {
140
- to[key] = from[key];
141
- }
142
- }
143
-
144
- if (getOwnPropertySymbols$1) {
145
- symbols = getOwnPropertySymbols$1(from);
146
- for (var i = 0; i < symbols.length; i++) {
147
- if (propIsEnumerable.call(from, symbols[i])) {
148
- to[symbols[i]] = from[symbols[i]];
149
- }
150
- }
151
- }
152
- }
153
-
154
- return to;
155
- };
156
-
157
- /** @license React v16.14.0
158
- * react.production.min.js
159
- *
160
- * Copyright (c) Facebook, Inc. and its affiliates.
161
- *
162
- * This source code is licensed under the MIT license found in the
163
- * LICENSE file in the root directory of this source tree.
164
- */
165
- var l$1=objectAssign,n$3="function"===typeof Symbol&&Symbol.for,p$2=n$3?Symbol.for("react.element"):60103,q$2=n$3?Symbol.for("react.portal"):60106,r$2=n$3?Symbol.for("react.fragment"):60107,t$1=n$3?Symbol.for("react.strict_mode"):60108,u$1=n$3?Symbol.for("react.profiler"):60114,v$2=n$3?Symbol.for("react.provider"):60109,w$2=n$3?Symbol.for("react.context"):60110,x$1=n$3?Symbol.for("react.forward_ref"):60112,y$2=n$3?Symbol.for("react.suspense"):60113,z$1=n$3?Symbol.for("react.memo"):60115,A$1=n$3?Symbol.for("react.lazy"):
166
- 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."}
167
- 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");};
168
- 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};
169
- 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$2,type:a,key:g,ref:k,props:d,_owner:J$1.current}}
170
- function N$1(a,b){return {$$typeof:p$2,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$2}function escape(a){var b={"=":"=0",":":"=2"};return "$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var P$1=/\/+/g,Q$1=[];function R$1(a,b,c,e){if(Q$1.length){var d=Q$1.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}}
171
- function S$1(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q$1.length&&Q$1.push(a);}
172
- 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$2:case q$2: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=
173
- 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(a.key):b.toString(36)}function W$1(a,b){a.func.call(a.context,b,a.count++);}
174
- 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$1,"$&/")+"/")+c)),e.push(a));}function X$1(a,b,c,e,d){var g="";null!=c&&(g=(""+c).replace(P$1,"$&/")+"/");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}
175
- 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}};
176
- 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$2;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ba$1;
177
- 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$2,type:a.type,
178
- key:d,ref:g,props:e,_owner:k}};react_production_min.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:w$2,_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;
179
- 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)};
180
- 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";
181
-
182
- var react_development = {};
183
-
184
- /**
185
- * Copyright (c) 2013-present, Facebook, Inc.
186
- *
187
- * This source code is licensed under the MIT license found in the
188
- * LICENSE file in the root directory of this source tree.
189
- */
190
-
191
- var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
192
-
193
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
194
-
195
- var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
196
-
197
- /**
198
- * Copyright (c) 2013-present, Facebook, Inc.
199
- *
200
- * This source code is licensed under the MIT license found in the
201
- * LICENSE file in the root directory of this source tree.
202
- */
203
-
204
- var printWarning$2 = function() {};
205
-
206
- if (process.env.NODE_ENV !== 'production') {
207
- var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
208
- var loggedTypeFailures = {};
209
- var has$1 = has$2;
210
-
211
- printWarning$2 = function(text) {
212
- var message = 'Warning: ' + text;
213
- if (typeof console !== 'undefined') {
214
- console.error(message);
215
- }
216
- try {
217
- // --- Welcome to debugging React ---
218
- // This error was thrown as a convenience so that you can use this stack
219
- // to find the callsite that caused this warning to fire.
220
- throw new Error(message);
221
- } catch (x) { /**/ }
222
- };
223
- }
224
-
225
- /**
226
- * Assert that the values match with the type specs.
227
- * Error messages are memorized and will only be shown once.
228
- *
229
- * @param {object} typeSpecs Map of name to a ReactPropType
230
- * @param {object} values Runtime values that need to be type-checked
231
- * @param {string} location e.g. "prop", "context", "child context"
232
- * @param {string} componentName Name of the component for error messages.
233
- * @param {?Function} getStack Returns the component stack.
234
- * @private
235
- */
236
- function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
237
- if (process.env.NODE_ENV !== 'production') {
238
- for (var typeSpecName in typeSpecs) {
239
- if (has$1(typeSpecs, typeSpecName)) {
240
- var error;
241
- // Prop type validation may throw. In case they do, we don't want to
242
- // fail the render phase where it didn't fail before. So we log it.
243
- // After these have been cleaned up, we'll let them throw.
244
- try {
245
- // This is intentionally an invariant that gets caught. It's the same
246
- // behavior as without this statement except with a better message.
247
- if (typeof typeSpecs[typeSpecName] !== 'function') {
248
- var err = Error(
249
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
250
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
251
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
252
- );
253
- err.name = 'Invariant Violation';
254
- throw err;
255
- }
256
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
257
- } catch (ex) {
258
- error = ex;
259
- }
260
- if (error && !(error instanceof Error)) {
261
- printWarning$2(
262
- (componentName || 'React class') + ': type specification of ' +
263
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
264
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
265
- 'You may have forgotten to pass an argument to the type checker ' +
266
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
267
- 'shape all require an argument).'
268
- );
269
- }
270
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
271
- // Only monitor this failure once because there tends to be a lot of the
272
- // same error.
273
- loggedTypeFailures[error.message] = true;
274
-
275
- var stack = getStack ? getStack() : '';
276
-
277
- printWarning$2(
278
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
279
- );
280
- }
281
- }
282
- }
283
- }
284
- }
285
-
286
- /**
287
- * Resets warning cache when testing.
288
- *
289
- * @private
290
- */
291
- checkPropTypes$1.resetWarningCache = function() {
292
- if (process.env.NODE_ENV !== 'production') {
293
- loggedTypeFailures = {};
294
- }
295
- };
296
-
297
- var checkPropTypes_1 = checkPropTypes$1;
298
-
299
- /** @license React v16.14.0
300
- * react.development.js
301
- *
302
- * Copyright (c) Facebook, Inc. and its affiliates.
303
- *
304
- * This source code is licensed under the MIT license found in the
305
- * LICENSE file in the root directory of this source tree.
306
- */
307
-
308
-
309
-
310
- if (process.env.NODE_ENV !== "production") {
311
- (function() {
312
-
313
- var _assign = objectAssign;
314
- var checkPropTypes = checkPropTypes_1;
315
-
316
- var ReactVersion = '16.14.0';
317
-
318
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
319
- // nor polyfill, then a plain number is used for performance.
320
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
321
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
322
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
323
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
324
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
325
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
326
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
327
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
328
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
329
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
330
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
331
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
332
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
333
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
334
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
335
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
336
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
337
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
338
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
339
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
340
- function getIteratorFn(maybeIterable) {
341
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
342
- return null;
343
- }
344
-
345
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
346
-
347
- if (typeof maybeIterator === 'function') {
348
- return maybeIterator;
349
- }
350
-
351
- return null;
352
- }
353
-
354
- /**
355
- * Keeps track of the current dispatcher.
356
- */
357
- var ReactCurrentDispatcher = {
358
- /**
359
- * @internal
360
- * @type {ReactComponent}
361
- */
362
- current: null
363
- };
364
-
365
- /**
366
- * Keeps track of the current batch's configuration such as how long an update
367
- * should suspend for if it needs to.
368
- */
369
- var ReactCurrentBatchConfig = {
370
- suspense: null
371
- };
372
-
373
- /**
374
- * Keeps track of the current owner.
375
- *
376
- * The current owner is the component who should own any components that are
377
- * currently being constructed.
378
- */
379
- var ReactCurrentOwner = {
380
- /**
381
- * @internal
382
- * @type {ReactComponent}
383
- */
384
- current: null
385
- };
386
-
387
- var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
388
- function describeComponentFrame (name, source, ownerName) {
389
- var sourceInfo = '';
390
-
391
- if (source) {
392
- var path = source.fileName;
393
- var fileName = path.replace(BEFORE_SLASH_RE, '');
394
-
395
- {
396
- // In DEV, include code for a common special case:
397
- // prefer "folder/index.js" instead of just "index.js".
398
- if (/^index\./.test(fileName)) {
399
- var match = path.match(BEFORE_SLASH_RE);
400
-
401
- if (match) {
402
- var pathBeforeSlash = match[1];
403
-
404
- if (pathBeforeSlash) {
405
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
406
- fileName = folderName + '/' + fileName;
407
- }
408
- }
409
- }
410
- }
411
-
412
- sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
413
- } else if (ownerName) {
414
- sourceInfo = ' (created by ' + ownerName + ')';
415
- }
416
-
417
- return '\n in ' + (name || 'Unknown') + sourceInfo;
418
- }
419
-
420
- var Resolved = 1;
421
- function refineResolvedLazyComponent(lazyComponent) {
422
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
423
- }
424
-
425
- function getWrappedName(outerType, innerType, wrapperName) {
426
- var functionName = innerType.displayName || innerType.name || '';
427
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
428
- }
429
-
430
- function getComponentName(type) {
431
- if (type == null) {
432
- // Host root, text node or just invalid type.
433
- return null;
434
- }
435
-
436
- {
437
- if (typeof type.tag === 'number') {
438
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
439
- }
440
- }
441
-
442
- if (typeof type === 'function') {
443
- return type.displayName || type.name || null;
444
- }
445
-
446
- if (typeof type === 'string') {
447
- return type;
448
- }
449
-
450
- switch (type) {
451
- case REACT_FRAGMENT_TYPE:
452
- return 'Fragment';
453
-
454
- case REACT_PORTAL_TYPE:
455
- return 'Portal';
456
-
457
- case REACT_PROFILER_TYPE:
458
- return "Profiler";
459
-
460
- case REACT_STRICT_MODE_TYPE:
461
- return 'StrictMode';
462
-
463
- case REACT_SUSPENSE_TYPE:
464
- return 'Suspense';
465
-
466
- case REACT_SUSPENSE_LIST_TYPE:
467
- return 'SuspenseList';
468
- }
469
-
470
- if (typeof type === 'object') {
471
- switch (type.$$typeof) {
472
- case REACT_CONTEXT_TYPE:
473
- return 'Context.Consumer';
474
-
475
- case REACT_PROVIDER_TYPE:
476
- return 'Context.Provider';
477
-
478
- case REACT_FORWARD_REF_TYPE:
479
- return getWrappedName(type, type.render, 'ForwardRef');
480
-
481
- case REACT_MEMO_TYPE:
482
- return getComponentName(type.type);
483
-
484
- case REACT_BLOCK_TYPE:
485
- return getComponentName(type.render);
486
-
487
- case REACT_LAZY_TYPE:
488
- {
489
- var thenable = type;
490
- var resolvedThenable = refineResolvedLazyComponent(thenable);
491
-
492
- if (resolvedThenable) {
493
- return getComponentName(resolvedThenable);
494
- }
495
-
496
- break;
497
- }
498
- }
499
- }
500
-
501
- return null;
502
- }
503
-
504
- var ReactDebugCurrentFrame = {};
505
- var currentlyValidatingElement = null;
506
- function setCurrentlyValidatingElement(element) {
507
- {
508
- currentlyValidatingElement = element;
509
- }
510
- }
511
-
512
- {
513
- // Stack implementation injected by the current renderer.
514
- ReactDebugCurrentFrame.getCurrentStack = null;
515
-
516
- ReactDebugCurrentFrame.getStackAddendum = function () {
517
- var stack = ''; // Add an extra top frame while an element is being validated
518
-
519
- if (currentlyValidatingElement) {
520
- var name = getComponentName(currentlyValidatingElement.type);
521
- var owner = currentlyValidatingElement._owner;
522
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
523
- } // Delegate to the injected renderer-specific implementation
524
-
525
-
526
- var impl = ReactDebugCurrentFrame.getCurrentStack;
527
-
528
- if (impl) {
529
- stack += impl() || '';
530
- }
531
-
532
- return stack;
533
- };
534
- }
535
-
536
- /**
537
- * Used by act() to track whether you're inside an act() scope.
538
- */
539
- var IsSomeRendererActing = {
540
- current: false
541
- };
542
-
543
- var ReactSharedInternals = {
544
- ReactCurrentDispatcher: ReactCurrentDispatcher,
545
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
546
- ReactCurrentOwner: ReactCurrentOwner,
547
- IsSomeRendererActing: IsSomeRendererActing,
548
- // Used by renderers to avoid bundling object-assign twice in UMD bundles:
549
- assign: _assign
550
- };
551
-
552
- {
553
- _assign(ReactSharedInternals, {
554
- // These should not be included in production.
555
- ReactDebugCurrentFrame: ReactDebugCurrentFrame,
556
- // Shim for React DOM 16.0.0 which still destructured (but not used) this.
557
- // TODO: remove in React 17.0.
558
- ReactComponentTreeHook: {}
559
- });
560
- }
561
-
562
- // by calls to these methods by a Babel plugin.
563
- //
564
- // In PROD (or in packages without access to React internals),
565
- // they are left as they are instead.
566
-
567
- function warn(format) {
568
- {
569
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
570
- args[_key - 1] = arguments[_key];
571
- }
572
-
573
- printWarning('warn', format, args);
574
- }
575
- }
576
- function error(format) {
577
- {
578
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
579
- args[_key2 - 1] = arguments[_key2];
580
- }
581
-
582
- printWarning('error', format, args);
583
- }
584
- }
585
-
586
- function printWarning(level, format, args) {
587
- // When changing this logic, you might want to also
588
- // update consoleWithStackDev.www.js as well.
589
- {
590
- var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
591
-
592
- if (!hasExistingStack) {
593
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
594
- var stack = ReactDebugCurrentFrame.getStackAddendum();
595
-
596
- if (stack !== '') {
597
- format += '%s';
598
- args = args.concat([stack]);
599
- }
600
- }
601
-
602
- var argsWithFormat = args.map(function (item) {
603
- return '' + item;
604
- }); // Careful: RN currently depends on this prefix
605
-
606
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
607
- // breaks IE9: https://github.com/facebook/react/issues/13610
608
- // eslint-disable-next-line react-internal/no-production-logging
609
-
610
- Function.prototype.apply.call(console[level], console, argsWithFormat);
611
-
612
- try {
613
- // --- Welcome to debugging React ---
614
- // This error was thrown as a convenience so that you can use this stack
615
- // to find the callsite that caused this warning to fire.
616
- var argIndex = 0;
617
- var message = 'Warning: ' + format.replace(/%s/g, function () {
618
- return args[argIndex++];
619
- });
620
- throw new Error(message);
621
- } catch (x) {}
622
- }
623
- }
624
-
625
- var didWarnStateUpdateForUnmountedComponent = {};
626
-
627
- function warnNoop(publicInstance, callerName) {
628
- {
629
- var _constructor = publicInstance.constructor;
630
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
631
- var warningKey = componentName + "." + callerName;
632
-
633
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
634
- return;
635
- }
636
-
637
- 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);
638
-
639
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
640
- }
641
- }
642
- /**
643
- * This is the abstract API for an update queue.
644
- */
645
-
646
-
647
- var ReactNoopUpdateQueue = {
648
- /**
649
- * Checks whether or not this composite component is mounted.
650
- * @param {ReactClass} publicInstance The instance we want to test.
651
- * @return {boolean} True if mounted, false otherwise.
652
- * @protected
653
- * @final
654
- */
655
- isMounted: function (publicInstance) {
656
- return false;
657
- },
658
-
659
- /**
660
- * Forces an update. This should only be invoked when it is known with
661
- * certainty that we are **not** in a DOM transaction.
662
- *
663
- * You may want to call this when you know that some deeper aspect of the
664
- * component's state has changed but `setState` was not called.
665
- *
666
- * This will not invoke `shouldComponentUpdate`, but it will invoke
667
- * `componentWillUpdate` and `componentDidUpdate`.
668
- *
669
- * @param {ReactClass} publicInstance The instance that should rerender.
670
- * @param {?function} callback Called after component is updated.
671
- * @param {?string} callerName name of the calling function in the public API.
672
- * @internal
673
- */
674
- enqueueForceUpdate: function (publicInstance, callback, callerName) {
675
- warnNoop(publicInstance, 'forceUpdate');
676
- },
677
-
678
- /**
679
- * Replaces all of the state. Always use this or `setState` to mutate state.
680
- * You should treat `this.state` as immutable.
681
- *
682
- * There is no guarantee that `this.state` will be immediately updated, so
683
- * accessing `this.state` after calling this method may return the old value.
684
- *
685
- * @param {ReactClass} publicInstance The instance that should rerender.
686
- * @param {object} completeState Next state.
687
- * @param {?function} callback Called after component is updated.
688
- * @param {?string} callerName name of the calling function in the public API.
689
- * @internal
690
- */
691
- enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
692
- warnNoop(publicInstance, 'replaceState');
693
- },
694
-
695
- /**
696
- * Sets a subset of the state. This only exists because _pendingState is
697
- * internal. This provides a merging strategy that is not available to deep
698
- * properties which is confusing. TODO: Expose pendingState or don't use it
699
- * during the merge.
700
- *
701
- * @param {ReactClass} publicInstance The instance that should rerender.
702
- * @param {object} partialState Next partial state to be merged with state.
703
- * @param {?function} callback Called after component is updated.
704
- * @param {?string} Name of the calling function in the public API.
705
- * @internal
706
- */
707
- enqueueSetState: function (publicInstance, partialState, callback, callerName) {
708
- warnNoop(publicInstance, 'setState');
709
- }
710
- };
711
-
712
- var emptyObject = {};
713
-
714
- {
715
- Object.freeze(emptyObject);
716
- }
717
- /**
718
- * Base class helpers for the updating state of a component.
719
- */
720
-
721
-
722
- function Component(props, context, updater) {
723
- this.props = props;
724
- this.context = context; // If a component has string refs, we will assign a different object later.
725
-
726
- this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
727
- // renderer.
728
-
729
- this.updater = updater || ReactNoopUpdateQueue;
730
- }
731
-
732
- Component.prototype.isReactComponent = {};
733
- /**
734
- * Sets a subset of the state. Always use this to mutate
735
- * state. You should treat `this.state` as immutable.
736
- *
737
- * There is no guarantee that `this.state` will be immediately updated, so
738
- * accessing `this.state` after calling this method may return the old value.
739
- *
740
- * There is no guarantee that calls to `setState` will run synchronously,
741
- * as they may eventually be batched together. You can provide an optional
742
- * callback that will be executed when the call to setState is actually
743
- * completed.
744
- *
745
- * When a function is provided to setState, it will be called at some point in
746
- * the future (not synchronously). It will be called with the up to date
747
- * component arguments (state, props, context). These values can be different
748
- * from this.* because your function may be called after receiveProps but before
749
- * shouldComponentUpdate, and this new state, props, and context will not yet be
750
- * assigned to this.
751
- *
752
- * @param {object|function} partialState Next partial state or function to
753
- * produce next partial state to be merged with current state.
754
- * @param {?function} callback Called after state is updated.
755
- * @final
756
- * @protected
757
- */
758
-
759
- Component.prototype.setState = function (partialState, callback) {
760
- if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
761
- {
762
- throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
763
- }
764
- }
765
-
766
- this.updater.enqueueSetState(this, partialState, callback, 'setState');
767
- };
768
- /**
769
- * Forces an update. This should only be invoked when it is known with
770
- * certainty that we are **not** in a DOM transaction.
771
- *
772
- * You may want to call this when you know that some deeper aspect of the
773
- * component's state has changed but `setState` was not called.
774
- *
775
- * This will not invoke `shouldComponentUpdate`, but it will invoke
776
- * `componentWillUpdate` and `componentDidUpdate`.
777
- *
778
- * @param {?function} callback Called after update is complete.
779
- * @final
780
- * @protected
781
- */
782
-
783
-
784
- Component.prototype.forceUpdate = function (callback) {
785
- this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
786
- };
787
- /**
788
- * Deprecated APIs. These APIs used to exist on classic React classes but since
789
- * we would like to deprecate them, we're not going to move them over to this
790
- * modern base class. Instead, we define a getter that warns if it's accessed.
791
- */
792
-
793
-
794
- {
795
- var deprecatedAPIs = {
796
- isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
797
- replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
798
- };
799
-
800
- var defineDeprecationWarning = function (methodName, info) {
801
- Object.defineProperty(Component.prototype, methodName, {
802
- get: function () {
803
- warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
804
-
805
- return undefined;
806
- }
807
- });
808
- };
809
-
810
- for (var fnName in deprecatedAPIs) {
811
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
812
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
813
- }
814
- }
815
- }
816
-
817
- function ComponentDummy() {}
818
-
819
- ComponentDummy.prototype = Component.prototype;
820
- /**
821
- * Convenience component with default shallow equality check for sCU.
822
- */
823
-
824
- function PureComponent(props, context, updater) {
825
- this.props = props;
826
- this.context = context; // If a component has string refs, we will assign a different object later.
827
-
828
- this.refs = emptyObject;
829
- this.updater = updater || ReactNoopUpdateQueue;
830
- }
831
-
832
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
833
- pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
834
-
835
- _assign(pureComponentPrototype, Component.prototype);
836
-
837
- pureComponentPrototype.isPureReactComponent = true;
838
-
839
- // an immutable object with a single mutable value
840
- function createRef() {
841
- var refObject = {
842
- current: null
843
- };
844
-
845
- {
846
- Object.seal(refObject);
847
- }
848
-
849
- return refObject;
850
- }
851
-
852
- var hasOwnProperty = Object.prototype.hasOwnProperty;
853
- var RESERVED_PROPS = {
854
- key: true,
855
- ref: true,
856
- __self: true,
857
- __source: true
858
- };
859
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
860
-
861
- {
862
- didWarnAboutStringRefs = {};
863
- }
864
-
865
- function hasValidRef(config) {
866
- {
867
- if (hasOwnProperty.call(config, 'ref')) {
868
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
869
-
870
- if (getter && getter.isReactWarning) {
871
- return false;
872
- }
873
- }
874
- }
875
-
876
- return config.ref !== undefined;
877
- }
878
-
879
- function hasValidKey(config) {
880
- {
881
- if (hasOwnProperty.call(config, 'key')) {
882
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
883
-
884
- if (getter && getter.isReactWarning) {
885
- return false;
886
- }
887
- }
888
- }
889
-
890
- return config.key !== undefined;
891
- }
892
-
893
- function defineKeyPropWarningGetter(props, displayName) {
894
- var warnAboutAccessingKey = function () {
895
- {
896
- if (!specialPropKeyWarningShown) {
897
- specialPropKeyWarningShown = true;
898
-
899
- 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);
900
- }
901
- }
902
- };
903
-
904
- warnAboutAccessingKey.isReactWarning = true;
905
- Object.defineProperty(props, 'key', {
906
- get: warnAboutAccessingKey,
907
- configurable: true
908
- });
909
- }
910
-
911
- function defineRefPropWarningGetter(props, displayName) {
912
- var warnAboutAccessingRef = function () {
913
- {
914
- if (!specialPropRefWarningShown) {
915
- specialPropRefWarningShown = true;
916
-
917
- 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);
918
- }
919
- }
920
- };
921
-
922
- warnAboutAccessingRef.isReactWarning = true;
923
- Object.defineProperty(props, 'ref', {
924
- get: warnAboutAccessingRef,
925
- configurable: true
926
- });
927
- }
928
-
929
- function warnIfStringRefCannotBeAutoConverted(config) {
930
- {
931
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
932
- var componentName = getComponentName(ReactCurrentOwner.current.type);
933
-
934
- if (!didWarnAboutStringRefs[componentName]) {
935
- 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);
936
-
937
- didWarnAboutStringRefs[componentName] = true;
938
- }
939
- }
940
- }
941
- }
942
- /**
943
- * Factory method to create a new React element. This no longer adheres to
944
- * the class pattern, so do not use new to call it. Also, instanceof check
945
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
946
- * if something is a React Element.
947
- *
948
- * @param {*} type
949
- * @param {*} props
950
- * @param {*} key
951
- * @param {string|object} ref
952
- * @param {*} owner
953
- * @param {*} self A *temporary* helper to detect places where `this` is
954
- * different from the `owner` when React.createElement is called, so that we
955
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
956
- * functions, and as long as `this` and owner are the same, there will be no
957
- * change in behavior.
958
- * @param {*} source An annotation object (added by a transpiler or otherwise)
959
- * indicating filename, line number, and/or other information.
960
- * @internal
961
- */
962
-
963
-
964
- var ReactElement = function (type, key, ref, self, source, owner, props) {
965
- var element = {
966
- // This tag allows us to uniquely identify this as a React Element
967
- $$typeof: REACT_ELEMENT_TYPE,
968
- // Built-in properties that belong on the element
969
- type: type,
970
- key: key,
971
- ref: ref,
972
- props: props,
973
- // Record the component responsible for creating this element.
974
- _owner: owner
975
- };
976
-
977
- {
978
- // The validation flag is currently mutative. We put it on
979
- // an external backing store so that we can freeze the whole object.
980
- // This can be replaced with a WeakMap once they are implemented in
981
- // commonly used development environments.
982
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
983
- // the validation flag non-enumerable (where possible, which should
984
- // include every environment we run tests in), so the test framework
985
- // ignores it.
986
-
987
- Object.defineProperty(element._store, 'validated', {
988
- configurable: false,
989
- enumerable: false,
990
- writable: true,
991
- value: false
992
- }); // self and source are DEV only properties.
993
-
994
- Object.defineProperty(element, '_self', {
995
- configurable: false,
996
- enumerable: false,
997
- writable: false,
998
- value: self
999
- }); // Two elements created in two different places should be considered
1000
- // equal for testing purposes and therefore we hide it from enumeration.
1001
-
1002
- Object.defineProperty(element, '_source', {
1003
- configurable: false,
1004
- enumerable: false,
1005
- writable: false,
1006
- value: source
1007
- });
1008
-
1009
- if (Object.freeze) {
1010
- Object.freeze(element.props);
1011
- Object.freeze(element);
1012
- }
1013
- }
1014
-
1015
- return element;
1016
- };
1017
- /**
1018
- * Create and return a new ReactElement of the given type.
1019
- * See https://reactjs.org/docs/react-api.html#createelement
1020
- */
1021
-
1022
- function createElement(type, config, children) {
1023
- var propName; // Reserved names are extracted
1024
-
1025
- var props = {};
1026
- var key = null;
1027
- var ref = null;
1028
- var self = null;
1029
- var source = null;
1030
-
1031
- if (config != null) {
1032
- if (hasValidRef(config)) {
1033
- ref = config.ref;
1034
-
1035
- {
1036
- warnIfStringRefCannotBeAutoConverted(config);
1037
- }
1038
- }
1039
-
1040
- if (hasValidKey(config)) {
1041
- key = '' + config.key;
1042
- }
1043
-
1044
- self = config.__self === undefined ? null : config.__self;
1045
- source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
1046
-
1047
- for (propName in config) {
1048
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
1049
- props[propName] = config[propName];
1050
- }
1051
- }
1052
- } // Children can be more than one argument, and those are transferred onto
1053
- // the newly allocated props object.
1054
-
1055
-
1056
- var childrenLength = arguments.length - 2;
1057
-
1058
- if (childrenLength === 1) {
1059
- props.children = children;
1060
- } else if (childrenLength > 1) {
1061
- var childArray = Array(childrenLength);
1062
-
1063
- for (var i = 0; i < childrenLength; i++) {
1064
- childArray[i] = arguments[i + 2];
1065
- }
1066
-
1067
- {
1068
- if (Object.freeze) {
1069
- Object.freeze(childArray);
1070
- }
1071
- }
1072
-
1073
- props.children = childArray;
1074
- } // Resolve default props
1075
-
1076
-
1077
- if (type && type.defaultProps) {
1078
- var defaultProps = type.defaultProps;
1079
-
1080
- for (propName in defaultProps) {
1081
- if (props[propName] === undefined) {
1082
- props[propName] = defaultProps[propName];
1083
- }
1084
- }
1085
- }
1086
-
1087
- {
1088
- if (key || ref) {
1089
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
1090
-
1091
- if (key) {
1092
- defineKeyPropWarningGetter(props, displayName);
1093
- }
1094
-
1095
- if (ref) {
1096
- defineRefPropWarningGetter(props, displayName);
1097
- }
1098
- }
1099
- }
1100
-
1101
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
1102
- }
1103
- function cloneAndReplaceKey(oldElement, newKey) {
1104
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
1105
- return newElement;
1106
- }
1107
- /**
1108
- * Clone and return a new ReactElement using element as the starting point.
1109
- * See https://reactjs.org/docs/react-api.html#cloneelement
1110
- */
1111
-
1112
- function cloneElement(element, config, children) {
1113
- if (!!(element === null || element === undefined)) {
1114
- {
1115
- throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
1116
- }
1117
- }
1118
-
1119
- var propName; // Original props are copied
1120
-
1121
- var props = _assign({}, element.props); // Reserved names are extracted
1122
-
1123
-
1124
- var key = element.key;
1125
- var ref = element.ref; // Self is preserved since the owner is preserved.
1126
-
1127
- var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
1128
- // transpiler, and the original source is probably a better indicator of the
1129
- // true owner.
1130
-
1131
- var source = element._source; // Owner will be preserved, unless ref is overridden
1132
-
1133
- var owner = element._owner;
1134
-
1135
- if (config != null) {
1136
- if (hasValidRef(config)) {
1137
- // Silently steal the ref from the parent.
1138
- ref = config.ref;
1139
- owner = ReactCurrentOwner.current;
1140
- }
1141
-
1142
- if (hasValidKey(config)) {
1143
- key = '' + config.key;
1144
- } // Remaining properties override existing props
1145
-
1146
-
1147
- var defaultProps;
1148
-
1149
- if (element.type && element.type.defaultProps) {
1150
- defaultProps = element.type.defaultProps;
1151
- }
1152
-
1153
- for (propName in config) {
1154
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
1155
- if (config[propName] === undefined && defaultProps !== undefined) {
1156
- // Resolve default props
1157
- props[propName] = defaultProps[propName];
1158
- } else {
1159
- props[propName] = config[propName];
1160
- }
1161
- }
1162
- }
1163
- } // Children can be more than one argument, and those are transferred onto
1164
- // the newly allocated props object.
1165
-
1166
-
1167
- var childrenLength = arguments.length - 2;
1168
-
1169
- if (childrenLength === 1) {
1170
- props.children = children;
1171
- } else if (childrenLength > 1) {
1172
- var childArray = Array(childrenLength);
1173
-
1174
- for (var i = 0; i < childrenLength; i++) {
1175
- childArray[i] = arguments[i + 2];
1176
- }
1177
-
1178
- props.children = childArray;
1179
- }
1180
-
1181
- return ReactElement(element.type, key, ref, self, source, owner, props);
1182
- }
1183
- /**
1184
- * Verifies the object is a ReactElement.
1185
- * See https://reactjs.org/docs/react-api.html#isvalidelement
1186
- * @param {?object} object
1187
- * @return {boolean} True if `object` is a ReactElement.
1188
- * @final
1189
- */
1190
-
1191
- function isValidElement(object) {
1192
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1193
- }
1194
-
1195
- var SEPARATOR = '.';
1196
- var SUBSEPARATOR = ':';
1197
- /**
1198
- * Escape and wrap key so it is safe to use as a reactid
1199
- *
1200
- * @param {string} key to be escaped.
1201
- * @return {string} the escaped key.
1202
- */
1203
-
1204
- function escape(key) {
1205
- var escapeRegex = /[=:]/g;
1206
- var escaperLookup = {
1207
- '=': '=0',
1208
- ':': '=2'
1209
- };
1210
- var escapedString = ('' + key).replace(escapeRegex, function (match) {
1211
- return escaperLookup[match];
1212
- });
1213
- return '$' + escapedString;
1214
- }
1215
- /**
1216
- * TODO: Test that a single child and an array with one item have the same key
1217
- * pattern.
1218
- */
1219
-
1220
-
1221
- var didWarnAboutMaps = false;
1222
- var userProvidedKeyEscapeRegex = /\/+/g;
1223
-
1224
- function escapeUserProvidedKey(text) {
1225
- return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
1226
- }
1227
-
1228
- var POOL_SIZE = 10;
1229
- var traverseContextPool = [];
1230
-
1231
- function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
1232
- if (traverseContextPool.length) {
1233
- var traverseContext = traverseContextPool.pop();
1234
- traverseContext.result = mapResult;
1235
- traverseContext.keyPrefix = keyPrefix;
1236
- traverseContext.func = mapFunction;
1237
- traverseContext.context = mapContext;
1238
- traverseContext.count = 0;
1239
- return traverseContext;
1240
- } else {
1241
- return {
1242
- result: mapResult,
1243
- keyPrefix: keyPrefix,
1244
- func: mapFunction,
1245
- context: mapContext,
1246
- count: 0
1247
- };
1248
- }
1249
- }
1250
-
1251
- function releaseTraverseContext(traverseContext) {
1252
- traverseContext.result = null;
1253
- traverseContext.keyPrefix = null;
1254
- traverseContext.func = null;
1255
- traverseContext.context = null;
1256
- traverseContext.count = 0;
1257
-
1258
- if (traverseContextPool.length < POOL_SIZE) {
1259
- traverseContextPool.push(traverseContext);
1260
- }
1261
- }
1262
- /**
1263
- * @param {?*} children Children tree container.
1264
- * @param {!string} nameSoFar Name of the key path so far.
1265
- * @param {!function} callback Callback to invoke with each child found.
1266
- * @param {?*} traverseContext Used to pass information throughout the traversal
1267
- * process.
1268
- * @return {!number} The number of children in this subtree.
1269
- */
1270
-
1271
-
1272
- function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
1273
- var type = typeof children;
1274
-
1275
- if (type === 'undefined' || type === 'boolean') {
1276
- // All of the above are perceived as null.
1277
- children = null;
1278
- }
1279
-
1280
- var invokeCallback = false;
1281
-
1282
- if (children === null) {
1283
- invokeCallback = true;
1284
- } else {
1285
- switch (type) {
1286
- case 'string':
1287
- case 'number':
1288
- invokeCallback = true;
1289
- break;
1290
-
1291
- case 'object':
1292
- switch (children.$$typeof) {
1293
- case REACT_ELEMENT_TYPE:
1294
- case REACT_PORTAL_TYPE:
1295
- invokeCallback = true;
1296
- }
1297
-
1298
- }
1299
- }
1300
-
1301
- if (invokeCallback) {
1302
- callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
1303
- // so that it's consistent if the number of children grows.
1304
- nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
1305
- return 1;
1306
- }
1307
-
1308
- var child;
1309
- var nextName;
1310
- var subtreeCount = 0; // Count of children found in the current subtree.
1311
-
1312
- var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1313
-
1314
- if (Array.isArray(children)) {
1315
- for (var i = 0; i < children.length; i++) {
1316
- child = children[i];
1317
- nextName = nextNamePrefix + getComponentKey(child, i);
1318
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
1319
- }
1320
- } else {
1321
- var iteratorFn = getIteratorFn(children);
1322
-
1323
- if (typeof iteratorFn === 'function') {
1324
-
1325
- {
1326
- // Warn about using Maps as children
1327
- if (iteratorFn === children.entries) {
1328
- if (!didWarnAboutMaps) {
1329
- 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.');
1330
- }
1331
-
1332
- didWarnAboutMaps = true;
1333
- }
1334
- }
1335
-
1336
- var iterator = iteratorFn.call(children);
1337
- var step;
1338
- var ii = 0;
1339
-
1340
- while (!(step = iterator.next()).done) {
1341
- child = step.value;
1342
- nextName = nextNamePrefix + getComponentKey(child, ii++);
1343
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
1344
- }
1345
- } else if (type === 'object') {
1346
- var addendum = '';
1347
-
1348
- {
1349
- addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
1350
- }
1351
-
1352
- var childrenString = '' + children;
1353
-
1354
- {
1355
- {
1356
- throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum );
1357
- }
1358
- }
1359
- }
1360
- }
1361
-
1362
- return subtreeCount;
1363
- }
1364
- /**
1365
- * Traverses children that are typically specified as `props.children`, but
1366
- * might also be specified through attributes:
1367
- *
1368
- * - `traverseAllChildren(this.props.children, ...)`
1369
- * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
1370
- *
1371
- * The `traverseContext` is an optional argument that is passed through the
1372
- * entire traversal. It can be used to store accumulations or anything else that
1373
- * the callback might find relevant.
1374
- *
1375
- * @param {?*} children Children tree object.
1376
- * @param {!function} callback To invoke upon traversing each child.
1377
- * @param {?*} traverseContext Context for traversal.
1378
- * @return {!number} The number of children in this subtree.
1379
- */
1380
-
1381
-
1382
- function traverseAllChildren(children, callback, traverseContext) {
1383
- if (children == null) {
1384
- return 0;
1385
- }
1386
-
1387
- return traverseAllChildrenImpl(children, '', callback, traverseContext);
1388
- }
1389
- /**
1390
- * Generate a key string that identifies a component within a set.
1391
- *
1392
- * @param {*} component A component that could contain a manual key.
1393
- * @param {number} index Index that is used if a manual key is not provided.
1394
- * @return {string}
1395
- */
1396
-
1397
-
1398
- function getComponentKey(component, index) {
1399
- // Do some typechecking here since we call this blindly. We want to ensure
1400
- // that we don't block potential future ES APIs.
1401
- if (typeof component === 'object' && component !== null && component.key != null) {
1402
- // Explicit key
1403
- return escape(component.key);
1404
- } // Implicit key determined by the index in the set
1405
-
1406
-
1407
- return index.toString(36);
1408
- }
1409
-
1410
- function forEachSingleChild(bookKeeping, child, name) {
1411
- var func = bookKeeping.func,
1412
- context = bookKeeping.context;
1413
- func.call(context, child, bookKeeping.count++);
1414
- }
1415
- /**
1416
- * Iterates through children that are typically specified as `props.children`.
1417
- *
1418
- * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
1419
- *
1420
- * The provided forEachFunc(child, index) will be called for each
1421
- * leaf child.
1422
- *
1423
- * @param {?*} children Children tree container.
1424
- * @param {function(*, int)} forEachFunc
1425
- * @param {*} forEachContext Context for forEachContext.
1426
- */
1427
-
1428
-
1429
- function forEachChildren(children, forEachFunc, forEachContext) {
1430
- if (children == null) {
1431
- return children;
1432
- }
1433
-
1434
- var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
1435
- traverseAllChildren(children, forEachSingleChild, traverseContext);
1436
- releaseTraverseContext(traverseContext);
1437
- }
1438
-
1439
- function mapSingleChildIntoContext(bookKeeping, child, childKey) {
1440
- var result = bookKeeping.result,
1441
- keyPrefix = bookKeeping.keyPrefix,
1442
- func = bookKeeping.func,
1443
- context = bookKeeping.context;
1444
- var mappedChild = func.call(context, child, bookKeeping.count++);
1445
-
1446
- if (Array.isArray(mappedChild)) {
1447
- mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
1448
- return c;
1449
- });
1450
- } else if (mappedChild != null) {
1451
- if (isValidElement(mappedChild)) {
1452
- mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
1453
- // traverseAllChildren used to do for objects as children
1454
- keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
1455
- }
1456
-
1457
- result.push(mappedChild);
1458
- }
1459
- }
1460
-
1461
- function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
1462
- var escapedPrefix = '';
1463
-
1464
- if (prefix != null) {
1465
- escapedPrefix = escapeUserProvidedKey(prefix) + '/';
1466
- }
1467
-
1468
- var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
1469
- traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
1470
- releaseTraverseContext(traverseContext);
1471
- }
1472
- /**
1473
- * Maps children that are typically specified as `props.children`.
1474
- *
1475
- * See https://reactjs.org/docs/react-api.html#reactchildrenmap
1476
- *
1477
- * The provided mapFunction(child, key, index) will be called for each
1478
- * leaf child.
1479
- *
1480
- * @param {?*} children Children tree container.
1481
- * @param {function(*, int)} func The map function.
1482
- * @param {*} context Context for mapFunction.
1483
- * @return {object} Object containing the ordered map of results.
1484
- */
1485
-
1486
-
1487
- function mapChildren(children, func, context) {
1488
- if (children == null) {
1489
- return children;
1490
- }
1491
-
1492
- var result = [];
1493
- mapIntoWithKeyPrefixInternal(children, result, null, func, context);
1494
- return result;
1495
- }
1496
- /**
1497
- * Count the number of children that are typically specified as
1498
- * `props.children`.
1499
- *
1500
- * See https://reactjs.org/docs/react-api.html#reactchildrencount
1501
- *
1502
- * @param {?*} children Children tree container.
1503
- * @return {number} The number of children.
1504
- */
1505
-
1506
-
1507
- function countChildren(children) {
1508
- return traverseAllChildren(children, function () {
1509
- return null;
1510
- }, null);
1511
- }
1512
- /**
1513
- * Flatten a children object (typically specified as `props.children`) and
1514
- * return an array with appropriately re-keyed children.
1515
- *
1516
- * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
1517
- */
1518
-
1519
-
1520
- function toArray(children) {
1521
- var result = [];
1522
- mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
1523
- return child;
1524
- });
1525
- return result;
1526
- }
1527
- /**
1528
- * Returns the first child in a collection of children and verifies that there
1529
- * is only one child in the collection.
1530
- *
1531
- * See https://reactjs.org/docs/react-api.html#reactchildrenonly
1532
- *
1533
- * The current implementation of this function assumes that a single child gets
1534
- * passed without a wrapper, but the purpose of this helper function is to
1535
- * abstract away the particular structure of children.
1536
- *
1537
- * @param {?object} children Child collection structure.
1538
- * @return {ReactElement} The first and only `ReactElement` contained in the
1539
- * structure.
1540
- */
1541
-
1542
-
1543
- function onlyChild(children) {
1544
- if (!isValidElement(children)) {
1545
- {
1546
- throw Error( "React.Children.only expected to receive a single React element child." );
1547
- }
1548
- }
1549
-
1550
- return children;
1551
- }
1552
-
1553
- function createContext(defaultValue, calculateChangedBits) {
1554
- if (calculateChangedBits === undefined) {
1555
- calculateChangedBits = null;
1556
- } else {
1557
- {
1558
- if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
1559
- error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
1560
- }
1561
- }
1562
- }
1563
-
1564
- var context = {
1565
- $$typeof: REACT_CONTEXT_TYPE,
1566
- _calculateChangedBits: calculateChangedBits,
1567
- // As a workaround to support multiple concurrent renderers, we categorize
1568
- // some renderers as primary and others as secondary. We only expect
1569
- // there to be two concurrent renderers at most: React Native (primary) and
1570
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
1571
- // Secondary renderers store their context values on separate fields.
1572
- _currentValue: defaultValue,
1573
- _currentValue2: defaultValue,
1574
- // Used to track how many concurrent renderers this context currently
1575
- // supports within in a single renderer. Such as parallel server rendering.
1576
- _threadCount: 0,
1577
- // These are circular
1578
- Provider: null,
1579
- Consumer: null
1580
- };
1581
- context.Provider = {
1582
- $$typeof: REACT_PROVIDER_TYPE,
1583
- _context: context
1584
- };
1585
- var hasWarnedAboutUsingNestedContextConsumers = false;
1586
- var hasWarnedAboutUsingConsumerProvider = false;
1587
-
1588
- {
1589
- // A separate object, but proxies back to the original context object for
1590
- // backwards compatibility. It has a different $$typeof, so we can properly
1591
- // warn for the incorrect usage of Context as a Consumer.
1592
- var Consumer = {
1593
- $$typeof: REACT_CONTEXT_TYPE,
1594
- _context: context,
1595
- _calculateChangedBits: context._calculateChangedBits
1596
- }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
1597
-
1598
- Object.defineProperties(Consumer, {
1599
- Provider: {
1600
- get: function () {
1601
- if (!hasWarnedAboutUsingConsumerProvider) {
1602
- hasWarnedAboutUsingConsumerProvider = true;
1603
-
1604
- 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?');
1605
- }
1606
-
1607
- return context.Provider;
1608
- },
1609
- set: function (_Provider) {
1610
- context.Provider = _Provider;
1611
- }
1612
- },
1613
- _currentValue: {
1614
- get: function () {
1615
- return context._currentValue;
1616
- },
1617
- set: function (_currentValue) {
1618
- context._currentValue = _currentValue;
1619
- }
1620
- },
1621
- _currentValue2: {
1622
- get: function () {
1623
- return context._currentValue2;
1624
- },
1625
- set: function (_currentValue2) {
1626
- context._currentValue2 = _currentValue2;
1627
- }
1628
- },
1629
- _threadCount: {
1630
- get: function () {
1631
- return context._threadCount;
1632
- },
1633
- set: function (_threadCount) {
1634
- context._threadCount = _threadCount;
1635
- }
1636
- },
1637
- Consumer: {
1638
- get: function () {
1639
- if (!hasWarnedAboutUsingNestedContextConsumers) {
1640
- hasWarnedAboutUsingNestedContextConsumers = true;
1641
-
1642
- 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?');
1643
- }
1644
-
1645
- return context.Consumer;
1646
- }
1647
- }
1648
- }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
1649
-
1650
- context.Consumer = Consumer;
1651
- }
1652
-
1653
- {
1654
- context._currentRenderer = null;
1655
- context._currentRenderer2 = null;
1656
- }
1657
-
1658
- return context;
1659
- }
1660
-
1661
- function lazy(ctor) {
1662
- var lazyType = {
1663
- $$typeof: REACT_LAZY_TYPE,
1664
- _ctor: ctor,
1665
- // React uses these fields to store the result.
1666
- _status: -1,
1667
- _result: null
1668
- };
1669
-
1670
- {
1671
- // In production, this would just set it on the object.
1672
- var defaultProps;
1673
- var propTypes;
1674
- Object.defineProperties(lazyType, {
1675
- defaultProps: {
1676
- configurable: true,
1677
- get: function () {
1678
- return defaultProps;
1679
- },
1680
- set: function (newDefaultProps) {
1681
- 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.');
1682
-
1683
- defaultProps = newDefaultProps; // Match production behavior more closely:
1684
-
1685
- Object.defineProperty(lazyType, 'defaultProps', {
1686
- enumerable: true
1687
- });
1688
- }
1689
- },
1690
- propTypes: {
1691
- configurable: true,
1692
- get: function () {
1693
- return propTypes;
1694
- },
1695
- set: function (newPropTypes) {
1696
- 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.');
1697
-
1698
- propTypes = newPropTypes; // Match production behavior more closely:
1699
-
1700
- Object.defineProperty(lazyType, 'propTypes', {
1701
- enumerable: true
1702
- });
1703
- }
1704
- }
1705
- });
1706
- }
1707
-
1708
- return lazyType;
1709
- }
1710
-
1711
- function forwardRef(render) {
1712
- {
1713
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1714
- error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
1715
- } else if (typeof render !== 'function') {
1716
- error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
1717
- } else {
1718
- if (render.length !== 0 && render.length !== 2) {
1719
- 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.');
1720
- }
1721
- }
1722
-
1723
- if (render != null) {
1724
- if (render.defaultProps != null || render.propTypes != null) {
1725
- error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
1726
- }
1727
- }
1728
- }
1729
-
1730
- return {
1731
- $$typeof: REACT_FORWARD_REF_TYPE,
1732
- render: render
1733
- };
1734
- }
1735
-
1736
- function isValidElementType(type) {
1737
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1738
- 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);
1739
- }
1740
-
1741
- function memo(type, compare) {
1742
- {
1743
- if (!isValidElementType(type)) {
1744
- error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
1745
- }
1746
- }
1747
-
1748
- return {
1749
- $$typeof: REACT_MEMO_TYPE,
1750
- type: type,
1751
- compare: compare === undefined ? null : compare
1752
- };
1753
- }
1754
-
1755
- function resolveDispatcher() {
1756
- var dispatcher = ReactCurrentDispatcher.current;
1757
-
1758
- if (!(dispatcher !== null)) {
1759
- {
1760
- 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." );
1761
- }
1762
- }
1763
-
1764
- return dispatcher;
1765
- }
1766
-
1767
- function useContext(Context, unstable_observedBits) {
1768
- var dispatcher = resolveDispatcher();
1769
-
1770
- {
1771
- if (unstable_observedBits !== undefined) {
1772
- 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' : '');
1773
- } // TODO: add a more generic warning for invalid values.
1774
-
1775
-
1776
- if (Context._context !== undefined) {
1777
- var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
1778
- // and nobody should be using this in existing code.
1779
-
1780
- if (realContext.Consumer === Context) {
1781
- 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?');
1782
- } else if (realContext.Provider === Context) {
1783
- error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
1784
- }
1785
- }
1786
- }
1787
-
1788
- return dispatcher.useContext(Context, unstable_observedBits);
1789
- }
1790
- function useState(initialState) {
1791
- var dispatcher = resolveDispatcher();
1792
- return dispatcher.useState(initialState);
1793
- }
1794
- function useReducer(reducer, initialArg, init) {
1795
- var dispatcher = resolveDispatcher();
1796
- return dispatcher.useReducer(reducer, initialArg, init);
1797
- }
1798
- function useRef(initialValue) {
1799
- var dispatcher = resolveDispatcher();
1800
- return dispatcher.useRef(initialValue);
1801
- }
1802
- function useEffect(create, deps) {
1803
- var dispatcher = resolveDispatcher();
1804
- return dispatcher.useEffect(create, deps);
1805
- }
1806
- function useLayoutEffect(create, deps) {
1807
- var dispatcher = resolveDispatcher();
1808
- return dispatcher.useLayoutEffect(create, deps);
1809
- }
1810
- function useCallback(callback, deps) {
1811
- var dispatcher = resolveDispatcher();
1812
- return dispatcher.useCallback(callback, deps);
1813
- }
1814
- function useMemo(create, deps) {
1815
- var dispatcher = resolveDispatcher();
1816
- return dispatcher.useMemo(create, deps);
1817
- }
1818
- function useImperativeHandle(ref, create, deps) {
1819
- var dispatcher = resolveDispatcher();
1820
- return dispatcher.useImperativeHandle(ref, create, deps);
1821
- }
1822
- function useDebugValue(value, formatterFn) {
1823
- {
1824
- var dispatcher = resolveDispatcher();
1825
- return dispatcher.useDebugValue(value, formatterFn);
1826
- }
1827
- }
1828
-
1829
- var propTypesMisspellWarningShown;
1830
-
1831
- {
1832
- propTypesMisspellWarningShown = false;
1833
- }
1834
-
1835
- function getDeclarationErrorAddendum() {
1836
- if (ReactCurrentOwner.current) {
1837
- var name = getComponentName(ReactCurrentOwner.current.type);
1838
-
1839
- if (name) {
1840
- return '\n\nCheck the render method of `' + name + '`.';
1841
- }
1842
- }
1843
-
1844
- return '';
1845
- }
1846
-
1847
- function getSourceInfoErrorAddendum(source) {
1848
- if (source !== undefined) {
1849
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
1850
- var lineNumber = source.lineNumber;
1851
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
1852
- }
1853
-
1854
- return '';
1855
- }
1856
-
1857
- function getSourceInfoErrorAddendumForProps(elementProps) {
1858
- if (elementProps !== null && elementProps !== undefined) {
1859
- return getSourceInfoErrorAddendum(elementProps.__source);
1860
- }
1861
-
1862
- return '';
1863
- }
1864
- /**
1865
- * Warn if there's no key explicitly set on dynamic arrays of children or
1866
- * object keys are not valid. This allows us to keep track of children between
1867
- * updates.
1868
- */
1869
-
1870
-
1871
- var ownerHasKeyUseWarning = {};
1872
-
1873
- function getCurrentComponentErrorInfo(parentType) {
1874
- var info = getDeclarationErrorAddendum();
1875
-
1876
- if (!info) {
1877
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1878
-
1879
- if (parentName) {
1880
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1881
- }
1882
- }
1883
-
1884
- return info;
1885
- }
1886
- /**
1887
- * Warn if the element doesn't have an explicit key assigned to it.
1888
- * This element is in an array. The array could grow and shrink or be
1889
- * reordered. All children that haven't already been validated are required to
1890
- * have a "key" property assigned to it. Error statuses are cached so a warning
1891
- * will only be shown once.
1892
- *
1893
- * @internal
1894
- * @param {ReactElement} element Element that requires a key.
1895
- * @param {*} parentType element's parent's type.
1896
- */
1897
-
1898
-
1899
- function validateExplicitKey(element, parentType) {
1900
- if (!element._store || element._store.validated || element.key != null) {
1901
- return;
1902
- }
1903
-
1904
- element._store.validated = true;
1905
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1906
-
1907
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1908
- return;
1909
- }
1910
-
1911
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1912
- // property, it may be the creator of the child that's responsible for
1913
- // assigning it a key.
1914
-
1915
- var childOwner = '';
1916
-
1917
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1918
- // Give the component that originally created this child.
1919
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
1920
- }
1921
-
1922
- setCurrentlyValidatingElement(element);
1923
-
1924
- {
1925
- 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);
1926
- }
1927
-
1928
- setCurrentlyValidatingElement(null);
1929
- }
1930
- /**
1931
- * Ensure that every element either is passed in a static location, in an
1932
- * array with an explicit keys property defined, or in an object literal
1933
- * with valid key property.
1934
- *
1935
- * @internal
1936
- * @param {ReactNode} node Statically passed child of any type.
1937
- * @param {*} parentType node's parent's type.
1938
- */
1939
-
1940
-
1941
- function validateChildKeys(node, parentType) {
1942
- if (typeof node !== 'object') {
1943
- return;
1944
- }
1945
-
1946
- if (Array.isArray(node)) {
1947
- for (var i = 0; i < node.length; i++) {
1948
- var child = node[i];
1949
-
1950
- if (isValidElement(child)) {
1951
- validateExplicitKey(child, parentType);
1952
- }
1953
- }
1954
- } else if (isValidElement(node)) {
1955
- // This element was passed in a valid location.
1956
- if (node._store) {
1957
- node._store.validated = true;
1958
- }
1959
- } else if (node) {
1960
- var iteratorFn = getIteratorFn(node);
1961
-
1962
- if (typeof iteratorFn === 'function') {
1963
- // Entry iterators used to provide implicit keys,
1964
- // but now we print a separate warning for them later.
1965
- if (iteratorFn !== node.entries) {
1966
- var iterator = iteratorFn.call(node);
1967
- var step;
1968
-
1969
- while (!(step = iterator.next()).done) {
1970
- if (isValidElement(step.value)) {
1971
- validateExplicitKey(step.value, parentType);
1972
- }
1973
- }
1974
- }
1975
- }
1976
- }
1977
- }
1978
- /**
1979
- * Given an element, validate that its props follow the propTypes definition,
1980
- * provided by the type.
1981
- *
1982
- * @param {ReactElement} element
1983
- */
1984
-
1985
-
1986
- function validatePropTypes(element) {
1987
- {
1988
- var type = element.type;
1989
-
1990
- if (type === null || type === undefined || typeof type === 'string') {
1991
- return;
1992
- }
1993
-
1994
- var name = getComponentName(type);
1995
- var propTypes;
1996
-
1997
- if (typeof type === 'function') {
1998
- propTypes = type.propTypes;
1999
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2000
- // Inner props are checked in the reconciler.
2001
- type.$$typeof === REACT_MEMO_TYPE)) {
2002
- propTypes = type.propTypes;
2003
- } else {
2004
- return;
2005
- }
2006
-
2007
- if (propTypes) {
2008
- setCurrentlyValidatingElement(element);
2009
- checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
2010
- setCurrentlyValidatingElement(null);
2011
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
2012
- propTypesMisspellWarningShown = true;
2013
-
2014
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
2015
- }
2016
-
2017
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
2018
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
2019
- }
2020
- }
2021
- }
2022
- /**
2023
- * Given a fragment, validate that it can only be provided with fragment props
2024
- * @param {ReactElement} fragment
2025
- */
2026
-
2027
-
2028
- function validateFragmentProps(fragment) {
2029
- {
2030
- setCurrentlyValidatingElement(fragment);
2031
- var keys = Object.keys(fragment.props);
2032
-
2033
- for (var i = 0; i < keys.length; i++) {
2034
- var key = keys[i];
2035
-
2036
- if (key !== 'children' && key !== 'key') {
2037
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
2038
-
2039
- break;
2040
- }
2041
- }
2042
-
2043
- if (fragment.ref !== null) {
2044
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
2045
- }
2046
-
2047
- setCurrentlyValidatingElement(null);
2048
- }
2049
- }
2050
- function createElementWithValidation(type, props, children) {
2051
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2052
- // succeed and there will likely be errors in render.
2053
-
2054
- if (!validType) {
2055
- var info = '';
2056
-
2057
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
2058
- 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.";
2059
- }
2060
-
2061
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
2062
-
2063
- if (sourceInfo) {
2064
- info += sourceInfo;
2065
- } else {
2066
- info += getDeclarationErrorAddendum();
2067
- }
2068
-
2069
- var typeString;
2070
-
2071
- if (type === null) {
2072
- typeString = 'null';
2073
- } else if (Array.isArray(type)) {
2074
- typeString = 'array';
2075
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
2076
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
2077
- info = ' Did you accidentally export a JSX literal instead of a component?';
2078
- } else {
2079
- typeString = typeof type;
2080
- }
2081
-
2082
- {
2083
- 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);
2084
- }
2085
- }
2086
-
2087
- var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
2088
- // TODO: Drop this when these are no longer allowed as the type argument.
2089
-
2090
- if (element == null) {
2091
- return element;
2092
- } // Skip key warning if the type isn't valid since our key validation logic
2093
- // doesn't expect a non-string/function type and can throw confusing errors.
2094
- // We don't want exception behavior to differ between dev and prod.
2095
- // (Rendering will throw with a helpful message and as soon as the type is
2096
- // fixed, the key warnings will appear.)
65
+ var reactDom = {exports: {}};
2097
66
 
67
+ var reactDom_production_min = {};
2098
68
 
2099
- if (validType) {
2100
- for (var i = 2; i < arguments.length; i++) {
2101
- validateChildKeys(arguments[i], type);
2102
- }
2103
- }
69
+ /*
70
+ object-assign
71
+ (c) Sindre Sorhus
72
+ @license MIT
73
+ */
74
+ /* eslint-disable no-unused-vars */
75
+ var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
76
+ var hasOwnProperty$d = Object.prototype.hasOwnProperty;
77
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
2104
78
 
2105
- if (type === REACT_FRAGMENT_TYPE) {
2106
- validateFragmentProps(element);
2107
- } else {
2108
- validatePropTypes(element);
2109
- }
79
+ function toObject(val) {
80
+ if (val === null || val === undefined) {
81
+ throw new TypeError('Object.assign cannot be called with null or undefined');
82
+ }
2110
83
 
2111
- return element;
84
+ return Object(val);
2112
85
  }
2113
- var didWarnAboutDeprecatedCreateFactory = false;
2114
- function createFactoryWithValidation(type) {
2115
- var validatedFactory = createElementWithValidation.bind(null, type);
2116
- validatedFactory.type = type;
2117
86
 
2118
- {
2119
- if (!didWarnAboutDeprecatedCreateFactory) {
2120
- didWarnAboutDeprecatedCreateFactory = true;
87
+ function shouldUseNative() {
88
+ try {
89
+ if (!Object.assign) {
90
+ return false;
91
+ }
2121
92
 
2122
- warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
2123
- } // Legacy hook: remove it
93
+ // Detect buggy property enumeration order in older V8 versions.
2124
94
 
95
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
96
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
97
+ test1[5] = 'de';
98
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
99
+ return false;
100
+ }
2125
101
 
2126
- Object.defineProperty(validatedFactory, 'type', {
2127
- enumerable: false,
2128
- get: function () {
2129
- warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
102
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
103
+ var test2 = {};
104
+ for (var i = 0; i < 10; i++) {
105
+ test2['_' + String.fromCharCode(i)] = i;
106
+ }
107
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
108
+ return test2[n];
109
+ });
110
+ if (order2.join('') !== '0123456789') {
111
+ return false;
112
+ }
2130
113
 
2131
- Object.defineProperty(this, 'type', {
2132
- value: type
2133
- });
2134
- return type;
2135
- }
2136
- });
2137
- }
114
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
115
+ var test3 = {};
116
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
117
+ test3[letter] = letter;
118
+ });
119
+ if (Object.keys(Object.assign({}, test3)).join('') !==
120
+ 'abcdefghijklmnopqrst') {
121
+ return false;
122
+ }
2138
123
 
2139
- return validatedFactory;
124
+ return true;
125
+ } catch (err) {
126
+ // We don't expect any of the above to throw, but better to be safe.
127
+ return false;
128
+ }
2140
129
  }
2141
- function cloneElementWithValidation(element, props, children) {
2142
- var newElement = cloneElement.apply(this, arguments);
2143
130
 
2144
- for (var i = 2; i < arguments.length; i++) {
2145
- validateChildKeys(arguments[i], newElement.type);
2146
- }
2147
-
2148
- validatePropTypes(newElement);
2149
- return newElement;
2150
- }
131
+ var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
132
+ var from;
133
+ var to = toObject(target);
134
+ var symbols;
2151
135
 
2152
- {
136
+ for (var s = 1; s < arguments.length; s++) {
137
+ from = Object(arguments[s]);
2153
138
 
2154
- try {
2155
- var frozenObject = Object.freeze({});
2156
- var testMap = new Map([[frozenObject, null]]);
2157
- var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.
2158
- // https://github.com/rollup/rollup/issues/1771
2159
- // TODO: we can remove these if Rollup fixes the bug.
139
+ for (var key in from) {
140
+ if (hasOwnProperty$d.call(from, key)) {
141
+ to[key] = from[key];
142
+ }
143
+ }
2160
144
 
2161
- testMap.set(0, 0);
2162
- testSet.add(0);
2163
- } catch (e) {
2164
- }
2165
- }
145
+ if (getOwnPropertySymbols$1) {
146
+ symbols = getOwnPropertySymbols$1(from);
147
+ for (var i = 0; i < symbols.length; i++) {
148
+ if (propIsEnumerable.call(from, symbols[i])) {
149
+ to[symbols[i]] = from[symbols[i]];
150
+ }
151
+ }
152
+ }
153
+ }
2166
154
 
2167
- var createElement$1 = createElementWithValidation ;
2168
- var cloneElement$1 = cloneElementWithValidation ;
2169
- var createFactory = createFactoryWithValidation ;
2170
- var Children = {
2171
- map: mapChildren,
2172
- forEach: forEachChildren,
2173
- count: countChildren,
2174
- toArray: toArray,
2175
- only: onlyChild
155
+ return to;
2176
156
  };
2177
157
 
2178
- react_development.Children = Children;
2179
- react_development.Component = Component;
2180
- react_development.Fragment = REACT_FRAGMENT_TYPE;
2181
- react_development.Profiler = REACT_PROFILER_TYPE;
2182
- react_development.PureComponent = PureComponent;
2183
- react_development.StrictMode = REACT_STRICT_MODE_TYPE;
2184
- react_development.Suspense = REACT_SUSPENSE_TYPE;
2185
- react_development.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2186
- react_development.cloneElement = cloneElement$1;
2187
- react_development.createContext = createContext;
2188
- react_development.createElement = createElement$1;
2189
- react_development.createFactory = createFactory;
2190
- react_development.createRef = createRef;
2191
- react_development.forwardRef = forwardRef;
2192
- react_development.isValidElement = isValidElement;
2193
- react_development.lazy = lazy;
2194
- react_development.memo = memo;
2195
- react_development.useCallback = useCallback;
2196
- react_development.useContext = useContext;
2197
- react_development.useDebugValue = useDebugValue;
2198
- react_development.useEffect = useEffect;
2199
- react_development.useImperativeHandle = useImperativeHandle;
2200
- react_development.useLayoutEffect = useLayoutEffect;
2201
- react_development.useMemo = useMemo;
2202
- react_development.useReducer = useReducer;
2203
- react_development.useRef = useRef;
2204
- react_development.useState = useState;
2205
- react_development.version = ReactVersion;
2206
- })();
2207
- }
2208
-
2209
- if (process.env.NODE_ENV === 'production') {
2210
- react.exports = react_production_min;
2211
- } else {
2212
- react.exports = react_development;
2213
- }
2214
-
2215
- var React$1 = react.exports;
2216
-
2217
- var reactDom = {exports: {}};
2218
-
2219
- var reactDom_production_min = {};
2220
-
2221
158
  var scheduler = {exports: {}};
2222
159
 
2223
160
  var scheduler_production_min = {};
@@ -3118,7 +1055,7 @@ if (process.env.NODE_ENV === 'production') {
3118
1055
  * This source code is licensed under the MIT license found in the
3119
1056
  * LICENSE file in the root directory of this source tree.
3120
1057
  */
3121
- var aa=react.exports,n$2=objectAssign,r$1=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));
1058
+ var aa=React$1,n$2=objectAssign,r$1=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));
3122
1059
  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;
3123
1060
  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={};
3124
1061
  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));}}}}
@@ -3401,6 +1338,121 @@ reactDom_production_min.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if
3401
1338
 
3402
1339
  var reactDom_development = {};
3403
1340
 
1341
+ /**
1342
+ * Copyright (c) 2013-present, Facebook, Inc.
1343
+ *
1344
+ * This source code is licensed under the MIT license found in the
1345
+ * LICENSE file in the root directory of this source tree.
1346
+ */
1347
+
1348
+ var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1349
+
1350
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
1351
+
1352
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
1353
+
1354
+ /**
1355
+ * Copyright (c) 2013-present, Facebook, Inc.
1356
+ *
1357
+ * This source code is licensed under the MIT license found in the
1358
+ * LICENSE file in the root directory of this source tree.
1359
+ */
1360
+
1361
+ var printWarning$2 = function() {};
1362
+
1363
+ if (process.env.NODE_ENV !== 'production') {
1364
+ var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
1365
+ var loggedTypeFailures = {};
1366
+ var has$1 = has$2;
1367
+
1368
+ printWarning$2 = function(text) {
1369
+ var message = 'Warning: ' + text;
1370
+ if (typeof console !== 'undefined') {
1371
+ console.error(message);
1372
+ }
1373
+ try {
1374
+ // --- Welcome to debugging React ---
1375
+ // This error was thrown as a convenience so that you can use this stack
1376
+ // to find the callsite that caused this warning to fire.
1377
+ throw new Error(message);
1378
+ } catch (x) { /**/ }
1379
+ };
1380
+ }
1381
+
1382
+ /**
1383
+ * Assert that the values match with the type specs.
1384
+ * Error messages are memorized and will only be shown once.
1385
+ *
1386
+ * @param {object} typeSpecs Map of name to a ReactPropType
1387
+ * @param {object} values Runtime values that need to be type-checked
1388
+ * @param {string} location e.g. "prop", "context", "child context"
1389
+ * @param {string} componentName Name of the component for error messages.
1390
+ * @param {?Function} getStack Returns the component stack.
1391
+ * @private
1392
+ */
1393
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
1394
+ if (process.env.NODE_ENV !== 'production') {
1395
+ for (var typeSpecName in typeSpecs) {
1396
+ if (has$1(typeSpecs, typeSpecName)) {
1397
+ var error;
1398
+ // Prop type validation may throw. In case they do, we don't want to
1399
+ // fail the render phase where it didn't fail before. So we log it.
1400
+ // After these have been cleaned up, we'll let them throw.
1401
+ try {
1402
+ // This is intentionally an invariant that gets caught. It's the same
1403
+ // behavior as without this statement except with a better message.
1404
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
1405
+ var err = Error(
1406
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
1407
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
1408
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
1409
+ );
1410
+ err.name = 'Invariant Violation';
1411
+ throw err;
1412
+ }
1413
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
1414
+ } catch (ex) {
1415
+ error = ex;
1416
+ }
1417
+ if (error && !(error instanceof Error)) {
1418
+ printWarning$2(
1419
+ (componentName || 'React class') + ': type specification of ' +
1420
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
1421
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
1422
+ 'You may have forgotten to pass an argument to the type checker ' +
1423
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
1424
+ 'shape all require an argument).'
1425
+ );
1426
+ }
1427
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1428
+ // Only monitor this failure once because there tends to be a lot of the
1429
+ // same error.
1430
+ loggedTypeFailures[error.message] = true;
1431
+
1432
+ var stack = getStack ? getStack() : '';
1433
+
1434
+ printWarning$2(
1435
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
1436
+ );
1437
+ }
1438
+ }
1439
+ }
1440
+ }
1441
+ }
1442
+
1443
+ /**
1444
+ * Resets warning cache when testing.
1445
+ *
1446
+ * @private
1447
+ */
1448
+ checkPropTypes$1.resetWarningCache = function() {
1449
+ if (process.env.NODE_ENV !== 'production') {
1450
+ loggedTypeFailures = {};
1451
+ }
1452
+ };
1453
+
1454
+ var checkPropTypes_1 = checkPropTypes$1;
1455
+
3404
1456
  var tracing = {exports: {}};
3405
1457
 
3406
1458
  var schedulerTracing_production_min = {};
@@ -3787,7 +1839,7 @@ if (process.env.NODE_ENV === 'production') {
3787
1839
  if (process.env.NODE_ENV !== "production") {
3788
1840
  (function() {
3789
1841
 
3790
- var React = react.exports;
1842
+ var React = React$1;
3791
1843
  var _assign = objectAssign;
3792
1844
  var Scheduler = scheduler.exports;
3793
1845
  var checkPropTypes = checkPropTypes_1;
@@ -35797,7 +33849,7 @@ var _getPrototypeOf2$c = _interopRequireDefault$10(getPrototypeOf$1.exports);
35797
33849
 
35798
33850
  var _inherits2$l = _interopRequireDefault$10(inherits.exports);
35799
33851
 
35800
- var _react$Q = _interopRequireDefault$10(react.exports);
33852
+ var _react$Q = _interopRequireDefault$10(React$1);
35801
33853
 
35802
33854
  var _propTypes$F = _interopRequireDefault$10(propTypes.exports);
35803
33855
 
@@ -36303,7 +34355,7 @@ var _inherits2$k = _interopRequireDefault$Z(inherits.exports);
36303
34355
 
36304
34356
  var _objectWithoutProperties2$A = _interopRequireDefault$Z(objectWithoutProperties.exports);
36305
34357
 
36306
- var _react$P = _interopRequireDefault$Z(react.exports);
34358
+ var _react$P = _interopRequireDefault$Z(React$1);
36307
34359
 
36308
34360
  var _propTypes$E = _interopRequireDefault$Z(propTypes.exports);
36309
34361
 
@@ -36694,7 +34746,7 @@ var _getPrototypeOf2$a = _interopRequireDefault$Y(getPrototypeOf$1.exports);
36694
34746
 
36695
34747
  var _inherits2$j = _interopRequireDefault$Y(inherits.exports);
36696
34748
 
36697
- var _react$O = _interopRequireDefault$Y(react.exports);
34749
+ var _react$O = _interopRequireDefault$Y(React$1);
36698
34750
 
36699
34751
  var _propTypes$D = _interopRequireDefault$Y(propTypes.exports);
36700
34752
 
@@ -37037,7 +35089,7 @@ shouldUpdate$1.default = void 0;
37037
35089
 
37038
35090
  var _inheritsLoose2 = _interopRequireDefault$V(inheritsLoose.exports);
37039
35091
 
37040
- var _react$N = react.exports;
35092
+ var _react$N = React$1;
37041
35093
 
37042
35094
  var _setDisplayName$1 = _interopRequireDefault$V(setDisplayName$1);
37043
35095
 
@@ -37291,7 +35343,7 @@ var _defineProperty2$l = _interopRequireDefault$R(defineProperty$6.exports);
37291
35343
 
37292
35344
  var _objectWithoutProperties2$y = _interopRequireDefault$R(objectWithoutProperties.exports);
37293
35345
 
37294
- var _react$M = _interopRequireDefault$R(react.exports);
35346
+ var _react$M = _interopRequireDefault$R(React$1);
37295
35347
 
37296
35348
  var _propTypes$C = _interopRequireDefault$R(propTypes.exports);
37297
35349
 
@@ -37485,7 +35537,7 @@ Object.defineProperty(createSvgIcon$1, "__esModule", {
37485
35537
  });
37486
35538
  createSvgIcon$1.default = void 0;
37487
35539
 
37488
- var _react$L = _interopRequireDefault$Q(react.exports);
35540
+ var _react$L = _interopRequireDefault$Q(React$1);
37489
35541
 
37490
35542
  var _pure$1 = _interopRequireDefault$Q(pure$1);
37491
35543
 
@@ -37511,7 +35563,7 @@ Object.defineProperty(Info, "__esModule", {
37511
35563
  });
37512
35564
  var default_1$2 = Info.default = void 0;
37513
35565
 
37514
- var _react$K = _interopRequireDefault$P(react.exports);
35566
+ var _react$K = _interopRequireDefault$P(React$1);
37515
35567
 
37516
35568
  var _createSvgIcon$2 = _interopRequireDefault$P(createSvgIcon$1);
37517
35569
 
@@ -37544,7 +35596,7 @@ reactHelpers.cloneChildrenWithClassName = cloneChildrenWithClassName;
37544
35596
  reactHelpers.isMuiElement = isMuiElement;
37545
35597
  reactHelpers.setRef = setRef$1;
37546
35598
 
37547
- var _react$J = _interopRequireDefault$O(react.exports);
35599
+ var _react$J = _interopRequireDefault$O(React$1);
37548
35600
 
37549
35601
  var _classnames$p = _interopRequireDefault$O(classnames.exports);
37550
35602
 
@@ -37589,7 +35641,7 @@ var _getPrototypeOf2$9 = _interopRequireDefault$N(getPrototypeOf$1.exports);
37589
35641
 
37590
35642
  var _inherits2$i = _interopRequireDefault$N(inherits.exports);
37591
35643
 
37592
- var _react$I = _interopRequireDefault$N(react.exports);
35644
+ var _react$I = _interopRequireDefault$N(React$1);
37593
35645
 
37594
35646
  var _reactDom$a = _interopRequireDefault$N(reactDom.exports);
37595
35647
 
@@ -37915,7 +35967,7 @@ Transition$1.default = Transition$1.EXITING = Transition$1.ENTERED = Transition$
37915
35967
 
37916
35968
  var PropTypes$1 = _interopRequireWildcard(propTypes.exports);
37917
35969
 
37918
- var _react$H = _interopRequireDefault$L(react.exports);
35970
+ var _react$H = _interopRequireDefault$L(React$1);
37919
35971
 
37920
35972
  var _reactDom$9 = _interopRequireDefault$L(reactDom.exports);
37921
35973
 
@@ -38563,7 +36615,7 @@ var _getPrototypeOf3$8 = _interopRequireDefault$K(getPrototypeOf$1.exports);
38563
36615
 
38564
36616
  var _inherits2$h = _interopRequireDefault$K(inherits.exports);
38565
36617
 
38566
- var _react$G = _interopRequireDefault$K(react.exports);
36618
+ var _react$G = _interopRequireDefault$K(React$1);
38567
36619
 
38568
36620
  var _propTypes$z = _interopRequireDefault$K(propTypes.exports);
38569
36621
 
@@ -41454,7 +39506,7 @@ var _getPrototypeOf3$7 = _interopRequireDefault$J(getPrototypeOf$1.exports);
41454
39506
 
41455
39507
  var _inherits2$g = _interopRequireDefault$J(inherits.exports);
41456
39508
 
41457
- var _react$F = _interopRequireDefault$J(react.exports);
39509
+ var _react$F = _interopRequireDefault$J(React$1);
41458
39510
 
41459
39511
  var _reactDom$8 = _interopRequireDefault$J(reactDom.exports);
41460
39512
 
@@ -41645,7 +39697,7 @@ var _inherits2$f = _interopRequireDefault$I(inherits.exports);
41645
39697
 
41646
39698
  var _assertThisInitialized2$3 = _interopRequireDefault$I(assertThisInitialized.exports);
41647
39699
 
41648
- var _react$E = _interopRequireDefault$I(react.exports);
39700
+ var _react$E = _interopRequireDefault$I(React$1);
41649
39701
 
41650
39702
  var _reactDom$7 = _interopRequireDefault$I(reactDom.exports);
41651
39703
 
@@ -41969,7 +40021,7 @@ var _inherits2$e = _interopRequireDefault$H(inherits.exports);
41969
40021
 
41970
40022
  var _defineProperty2$k = _interopRequireDefault$H(defineProperty$6.exports);
41971
40023
 
41972
- var _react$D = _interopRequireDefault$H(react.exports);
40024
+ var _react$D = _interopRequireDefault$H(React$1);
41973
40025
 
41974
40026
  var _propTypes$w = _interopRequireDefault$H(propTypes.exports);
41975
40027
 
@@ -42515,7 +40567,7 @@ var _objectWithoutProperties2$u = _interopRequireDefault$G(objectWithoutProperti
42515
40567
 
42516
40568
  var _extends2$u = _interopRequireDefault$G(_extends$3.exports);
42517
40569
 
42518
- var _react$C = _interopRequireDefault$G(react.exports);
40570
+ var _react$C = _interopRequireDefault$G(React$1);
42519
40571
 
42520
40572
  var _propTypes$v = _interopRequireDefault$G(propTypes.exports);
42521
40573
 
@@ -42637,7 +40689,7 @@ var _extends2$t = _interopRequireDefault$F(_extends$3.exports);
42637
40689
 
42638
40690
  var _objectWithoutProperties2$t = _interopRequireDefault$F(objectWithoutProperties.exports);
42639
40691
 
42640
- var _react$B = _interopRequireDefault$F(react.exports);
40692
+ var _react$B = _interopRequireDefault$F(React$1);
42641
40693
 
42642
40694
  var _propTypes$u = _interopRequireDefault$F(propTypes.exports);
42643
40695
 
@@ -42880,7 +40932,7 @@ var _getPrototypeOf3$6 = _interopRequireDefault$D(getPrototypeOf$1.exports);
42880
40932
 
42881
40933
  var _inherits2$d = _interopRequireDefault$D(inherits.exports);
42882
40934
 
42883
- var _react$A = _interopRequireDefault$D(react.exports);
40935
+ var _react$A = _interopRequireDefault$D(React$1);
42884
40936
 
42885
40937
  var _propTypes$t = _interopRequireDefault$D(propTypes.exports);
42886
40938
 
@@ -43184,7 +41236,7 @@ ChildMapping.mergeChildMappings = mergeChildMappings;
43184
41236
  ChildMapping.getInitialChildMapping = getInitialChildMapping;
43185
41237
  ChildMapping.getNextChildMapping = getNextChildMapping;
43186
41238
 
43187
- var _react$z = react.exports;
41239
+ var _react$z = React$1;
43188
41240
 
43189
41241
  /**
43190
41242
  * Given `this.props.children`, return an object mapping key to child.
@@ -43334,7 +41386,7 @@ exports.default = void 0;
43334
41386
 
43335
41387
  var _propTypes = _interopRequireDefault(propTypes.exports);
43336
41388
 
43337
- var _react = _interopRequireDefault(react.exports);
41389
+ var _react = _interopRequireDefault(React$1);
43338
41390
 
43339
41391
  var _reactLifecyclesCompat = require$$2;
43340
41392
 
@@ -43562,7 +41614,7 @@ var _getPrototypeOf3$5 = _interopRequireDefault$B(getPrototypeOf$1.exports);
43562
41614
 
43563
41615
  var _inherits2$c = _interopRequireDefault$B(inherits.exports);
43564
41616
 
43565
- var _react$y = _interopRequireDefault$B(react.exports);
41617
+ var _react$y = _interopRequireDefault$B(React$1);
43566
41618
 
43567
41619
  var _propTypes$s = _interopRequireDefault$B(propTypes.exports);
43568
41620
 
@@ -43711,7 +41763,7 @@ var _inherits2$b = _interopRequireDefault$A(inherits.exports);
43711
41763
 
43712
41764
  var _assertThisInitialized2$2 = _interopRequireDefault$A(assertThisInitialized.exports);
43713
41765
 
43714
- var _react$x = _interopRequireDefault$A(react.exports);
41766
+ var _react$x = _interopRequireDefault$A(React$1);
43715
41767
 
43716
41768
  var _propTypes$r = _interopRequireDefault$A(propTypes.exports);
43717
41769
 
@@ -44127,7 +42179,7 @@ var _inherits2$a = _interopRequireDefault$z(inherits.exports);
44127
42179
 
44128
42180
  var _assertThisInitialized2$1 = _interopRequireDefault$z(assertThisInitialized.exports);
44129
42181
 
44130
- var _react$w = _interopRequireDefault$z(react.exports);
42182
+ var _react$w = _interopRequireDefault$z(React$1);
44131
42183
 
44132
42184
  var _propTypes$q = _interopRequireDefault$z(propTypes.exports);
44133
42185
 
@@ -44675,7 +42727,7 @@ var _objectWithoutProperties2$p = _interopRequireDefault$y(objectWithoutProperti
44675
42727
 
44676
42728
  var _extends2$p = _interopRequireDefault$y(_extends$3.exports);
44677
42729
 
44678
- var _react$v = _interopRequireDefault$y(react.exports);
42730
+ var _react$v = _interopRequireDefault$y(React$1);
44679
42731
 
44680
42732
  var _propTypes$p = _interopRequireDefault$y(propTypes.exports);
44681
42733
 
@@ -45119,7 +43171,7 @@ var _defineProperty2$f = _interopRequireDefault$x(defineProperty$6.exports);
45119
43171
 
45120
43172
  var _objectWithoutProperties2$o = _interopRequireDefault$x(objectWithoutProperties.exports);
45121
43173
 
45122
- var _react$u = _interopRequireDefault$x(react.exports);
43174
+ var _react$u = _interopRequireDefault$x(React$1);
45123
43175
 
45124
43176
  var _propTypes$o = _interopRequireDefault$x(propTypes.exports);
45125
43177
 
@@ -45288,7 +43340,7 @@ var _defineProperty2$e = _interopRequireDefault$w(defineProperty$6.exports);
45288
43340
 
45289
43341
  var _objectWithoutProperties2$n = _interopRequireDefault$w(objectWithoutProperties.exports);
45290
43342
 
45291
- var _react$t = _interopRequireDefault$w(react.exports);
43343
+ var _react$t = _interopRequireDefault$w(React$1);
45292
43344
 
45293
43345
  var _propTypes$n = _interopRequireDefault$w(propTypes.exports);
45294
43346
 
@@ -45486,7 +43538,7 @@ Object.defineProperty(RemoveCircleOutline, "__esModule", {
45486
43538
  });
45487
43539
  var default_1$1 = RemoveCircleOutline.default = void 0;
45488
43540
 
45489
- var _react$s = _interopRequireDefault$v(react.exports);
43541
+ var _react$s = _interopRequireDefault$v(React$1);
45490
43542
 
45491
43543
  var _createSvgIcon$1 = _interopRequireDefault$v(createSvgIcon$1);
45492
43544
 
@@ -45580,7 +43632,7 @@ var ChoicePreview$1 = styles$H.withStyles(styles$u)(ChoicePreview);
45580
43632
  * Create the React Context
45581
43633
  */
45582
43634
 
45583
- var DndContext = react.exports.createContext({
43635
+ var DndContext = createContext({
45584
43636
  dragDropManager: undefined
45585
43637
  });
45586
43638
 
@@ -45596,7 +43648,7 @@ var reactJsxRuntime_production_min = {};
45596
43648
  * This source code is licensed under the MIT license found in the
45597
43649
  * LICENSE file in the root directory of this source tree.
45598
43650
  */
45599
- var f=react.exports,g=60103;reactJsxRuntime_production_min.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var h$1=Symbol.for;g=h$1("react.element");reactJsxRuntime_production_min.Fragment=h$1("react.fragment");}var m$1=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};
43651
+ var f=React$1,g=60103;reactJsxRuntime_production_min.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var h$1=Symbol.for;g=h$1("react.element");reactJsxRuntime_production_min.Fragment=h$1("react.fragment");}var m$1=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};
45600
43652
  function q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=""+k);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(l=a.ref);for(b in a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m$1.current}}reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
45601
43653
 
45602
43654
  var reactJsxRuntime_development = {};
@@ -45615,7 +43667,7 @@ var reactJsxRuntime_development = {};
45615
43667
  if (process.env.NODE_ENV !== "production") {
45616
43668
  (function() {
45617
43669
 
45618
- var React = react.exports;
43670
+ var React = React$1;
45619
43671
 
45620
43672
  // ATTENTION
45621
43673
  // When adding new symbols to this file,
@@ -46838,7 +44890,7 @@ function wrapHookToRecognizeElement(hook) {
46838
44890
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
46839
44891
 
46840
44892
  // When passed a node, call the hook straight away.
46841
- if (!react.exports.isValidElement(elementOrNode)) {
44893
+ if (!isValidElement(elementOrNode)) {
46842
44894
  var node = elementOrNode;
46843
44895
  hook(node, options); // return the node so it can be chained (e.g. when within callback refs
46844
44896
  // <div ref={node => connectDragSource(connectDropTarget(node))}/>
@@ -46891,11 +44943,11 @@ function cloneWithRef(element, newRef) {
46891
44943
 
46892
44944
  if (!previousRef) {
46893
44945
  // When there is no ref on the element, use the new ref directly
46894
- return react.exports.cloneElement(element, {
44946
+ return cloneElement(element, {
46895
44947
  ref: newRef
46896
44948
  });
46897
44949
  } else {
46898
- return react.exports.cloneElement(element, {
44950
+ return cloneElement(element, {
46899
44951
  ref: function ref(node) {
46900
44952
  setRef(previousRef, node);
46901
44953
  setRef(newRef, node);
@@ -47727,7 +45779,7 @@ function decorateHandler(_ref) {
47727
45779
 
47728
45780
  _this = _super.call(this, props);
47729
45781
 
47730
- _defineProperty$3(_assertThisInitialized(_this), "decoratedRef", react.exports.createRef());
45782
+ _defineProperty$3(_assertThisInitialized(_this), "decoratedRef", createRef());
47731
45783
 
47732
45784
  _defineProperty$3(_assertThisInitialized(_this), "handlerId", void 0);
47733
45785
 
@@ -47905,7 +45957,7 @@ function decorateHandler(_ref) {
47905
45957
  }]);
47906
45958
 
47907
45959
  return DragDropContainer;
47908
- }(react.exports.Component);
45960
+ }(Component);
47909
45961
 
47910
45962
  _defineProperty$3(DragDropContainer, "DecoratedComponent", DecoratedComponent);
47911
45963
 
@@ -49082,7 +47134,7 @@ var _defineProperty2$d = _interopRequireDefault$u(defineProperty$6.exports);
49082
47134
 
49083
47135
  var _objectWithoutProperties2$m = _interopRequireDefault$u(objectWithoutProperties.exports);
49084
47136
 
49085
- var _react$r = _interopRequireDefault$u(react.exports);
47137
+ var _react$r = _interopRequireDefault$u(React$1);
49086
47138
 
49087
47139
  var _propTypes$m = _interopRequireDefault$u(propTypes.exports);
49088
47140
 
@@ -50163,7 +48215,7 @@ Object.defineProperty(DragHandle, "__esModule", {
50163
48215
  });
50164
48216
  var default_1 = DragHandle.default = void 0;
50165
48217
 
50166
- var _react$q = _interopRequireDefault$t(react.exports);
48218
+ var _react$q = _interopRequireDefault$t(React$1);
50167
48219
 
50168
48220
  var _createSvgIcon = _interopRequireDefault$t(createSvgIcon$1);
50169
48221
 
@@ -51713,7 +49765,7 @@ Object.defineProperty(FormControlContext$1, "__esModule", {
51713
49765
  });
51714
49766
  FormControlContext$1.default = void 0;
51715
49767
 
51716
- var _react$p = _interopRequireDefault$s(react.exports);
49768
+ var _react$p = _interopRequireDefault$s(React$1);
51717
49769
 
51718
49770
  /**
51719
49771
  * @ignore - internal component.
@@ -51734,7 +49786,7 @@ withFormControlContext$1.default = withFormControlContext;
51734
49786
 
51735
49787
  var _extends2$l = _interopRequireDefault$r(_extends$3.exports);
51736
49788
 
51737
- var _react$o = _interopRequireDefault$r(react.exports);
49789
+ var _react$o = _interopRequireDefault$r(React$1);
51738
49790
 
51739
49791
  var _hoistNonReactStatics = _interopRequireDefault$r(hoistNonReactStatics_cjs);
51740
49792
 
@@ -51845,7 +49897,7 @@ var _inherits = _interopDefault(inherits.exports);
51845
49897
  var _typeof = _interopDefault(_typeof$5.exports);
51846
49898
  var _objectWithoutProperties = _interopDefault(objectWithoutProperties.exports);
51847
49899
  var _extends = _interopDefault(_extends$3.exports);
51848
- var React = _interopDefault(react.exports);
49900
+ var React = _interopDefault(React$1);
51849
49901
  var PropTypes = _interopDefault(propTypes.exports);
51850
49902
  var warning = _interopDefault(warning_1);
51851
49903
 
@@ -52035,7 +50087,7 @@ var _getPrototypeOf2$6 = _interopRequireDefault$q(getPrototypeOf$1.exports);
52035
50087
 
52036
50088
  var _inherits2$9 = _interopRequireDefault$q(inherits.exports);
52037
50089
 
52038
- var _react$n = _interopRequireDefault$q(react.exports);
50090
+ var _react$n = _interopRequireDefault$q(React$1);
52039
50091
 
52040
50092
  var _propTypes$l = _interopRequireDefault$q(propTypes.exports);
52041
50093
 
@@ -52377,7 +50429,7 @@ var _createClass2$9 = _interopRequireDefault$p(createClass$1.exports);
52377
50429
 
52378
50430
  var _inherits2$8 = _interopRequireDefault$p(inherits.exports);
52379
50431
 
52380
- var _react$m = _interopRequireDefault$p(react.exports);
50432
+ var _react$m = _interopRequireDefault$p(React$1);
52381
50433
 
52382
50434
  var _propTypes$k = _interopRequireDefault$p(propTypes.exports);
52383
50435
 
@@ -53074,7 +51126,7 @@ var _extends2$i = _interopRequireDefault$o(_extends$3.exports);
53074
51126
 
53075
51127
  var _objectWithoutProperties2$j = _interopRequireDefault$o(objectWithoutProperties.exports);
53076
51128
 
53077
- var _react$l = _interopRequireDefault$o(react.exports);
51129
+ var _react$l = _interopRequireDefault$o(React$1);
53078
51130
 
53079
51131
  var _propTypes$j = _interopRequireDefault$o(propTypes.exports);
53080
51132
 
@@ -53391,7 +51443,7 @@ var _extends2$h = _interopRequireDefault$n(_extends$3.exports);
53391
51443
 
53392
51444
  var _objectWithoutProperties2$i = _interopRequireDefault$n(objectWithoutProperties.exports);
53393
51445
 
53394
- var _react$k = _interopRequireDefault$n(react.exports);
51446
+ var _react$k = _interopRequireDefault$n(React$1);
53395
51447
 
53396
51448
  var _propTypes$i = _interopRequireDefault$n(propTypes.exports);
53397
51449
 
@@ -53742,7 +51794,7 @@ var _extends3 = _interopRequireDefault$m(_extends$3.exports);
53742
51794
 
53743
51795
  var _objectWithoutProperties2$h = _interopRequireDefault$m(objectWithoutProperties.exports);
53744
51796
 
53745
- var _react$j = _interopRequireDefault$m(react.exports);
51797
+ var _react$j = _interopRequireDefault$m(React$1);
53746
51798
 
53747
51799
  var _propTypes$h = _interopRequireDefault$m(propTypes.exports);
53748
51800
 
@@ -53880,7 +51932,7 @@ var _extends2$g = _interopRequireDefault$l(_extends$3.exports);
53880
51932
 
53881
51933
  var _objectWithoutProperties2$g = _interopRequireDefault$l(objectWithoutProperties.exports);
53882
51934
 
53883
- var _react$i = _interopRequireDefault$l(react.exports);
51935
+ var _react$i = _interopRequireDefault$l(React$1);
53884
51936
 
53885
51937
  var _propTypes$g = _interopRequireDefault$l(propTypes.exports);
53886
51938
 
@@ -54201,7 +52253,7 @@ var _defineProperty2$8 = _interopRequireDefault$k(defineProperty$6.exports);
54201
52253
 
54202
52254
  var _objectWithoutProperties2$f = _interopRequireDefault$k(objectWithoutProperties.exports);
54203
52255
 
54204
- var _react$h = _interopRequireDefault$k(react.exports);
52256
+ var _react$h = _interopRequireDefault$k(React$1);
54205
52257
 
54206
52258
  var _propTypes$f = _interopRequireDefault$k(propTypes.exports);
54207
52259
 
@@ -54378,7 +52430,7 @@ var _defineProperty2$7 = _interopRequireDefault$j(defineProperty$6.exports);
54378
52430
 
54379
52431
  var _objectWithoutProperties2$e = _interopRequireDefault$j(objectWithoutProperties.exports);
54380
52432
 
54381
- var _react$g = _interopRequireDefault$j(react.exports);
52433
+ var _react$g = _interopRequireDefault$j(React$1);
54382
52434
 
54383
52435
  var _propTypes$e = _interopRequireDefault$j(propTypes.exports);
54384
52436
 
@@ -54638,7 +52690,7 @@ var _createClass2$8 = _interopRequireDefault$i(createClass$1.exports);
54638
52690
 
54639
52691
  var _inherits2$7 = _interopRequireDefault$i(inherits.exports);
54640
52692
 
54641
- var _react$f = _interopRequireDefault$i(react.exports);
52693
+ var _react$f = _interopRequireDefault$i(React$1);
54642
52694
 
54643
52695
  var _propTypes$d = _interopRequireDefault$i(propTypes.exports);
54644
52696
 
@@ -54935,7 +52987,7 @@ var _defineProperty2$5 = _interopRequireDefault$h(defineProperty$6.exports);
54935
52987
 
54936
52988
  var _objectWithoutProperties2$c = _interopRequireDefault$h(objectWithoutProperties.exports);
54937
52989
 
54938
- var _react$e = _interopRequireDefault$h(react.exports);
52990
+ var _react$e = _interopRequireDefault$h(React$1);
54939
52991
 
54940
52992
  var _propTypes$c = _interopRequireDefault$h(propTypes.exports);
54941
52993
 
@@ -55822,7 +53874,7 @@ var _getPrototypeOf3$2 = _interopRequireDefault$d(getPrototypeOf$1.exports);
55822
53874
 
55823
53875
  var _inherits2$6 = _interopRequireDefault$d(inherits.exports);
55824
53876
 
55825
- var _react$d = _interopRequireDefault$d(react.exports);
53877
+ var _react$d = _interopRequireDefault$d(React$1);
55826
53878
 
55827
53879
  var _propTypes$b = _interopRequireDefault$d(propTypes.exports);
55828
53880
 
@@ -56005,7 +54057,7 @@ var _defineProperty2$4 = _interopRequireDefault$c(defineProperty$6.exports);
56005
54057
 
56006
54058
  var _objectWithoutProperties2$a = _interopRequireDefault$c(objectWithoutProperties.exports);
56007
54059
 
56008
- var _react$c = _interopRequireDefault$c(react.exports);
54060
+ var _react$c = _interopRequireDefault$c(React$1);
56009
54061
 
56010
54062
  var _propTypes$a = _interopRequireDefault$c(propTypes.exports);
56011
54063
 
@@ -56138,7 +54190,7 @@ var _inherits2$5 = _interopRequireDefault$b(inherits.exports);
56138
54190
 
56139
54191
  var _assertThisInitialized2 = _interopRequireDefault$b(assertThisInitialized.exports);
56140
54192
 
56141
- var _react$b = _interopRequireDefault$b(react.exports);
54193
+ var _react$b = _interopRequireDefault$b(React$1);
56142
54194
 
56143
54195
  var _reactDom$4 = _interopRequireDefault$b(reactDom.exports);
56144
54196
 
@@ -56711,7 +54763,7 @@ var _getPrototypeOf2$2 = _interopRequireDefault$a(getPrototypeOf$1.exports);
56711
54763
 
56712
54764
  var _inherits2$4 = _interopRequireDefault$a(inherits.exports);
56713
54765
 
56714
- var _react$a = _interopRequireDefault$a(react.exports);
54766
+ var _react$a = _interopRequireDefault$a(React$1);
56715
54767
 
56716
54768
  var _propTypes$8 = _interopRequireDefault$a(propTypes.exports);
56717
54769
 
@@ -57311,7 +55363,7 @@ Object.defineProperty(ListContext$1, "__esModule", {
57311
55363
  });
57312
55364
  ListContext$1.default = void 0;
57313
55365
 
57314
- var _react$9 = _interopRequireDefault$9(react.exports);
55366
+ var _react$9 = _interopRequireDefault$9(React$1);
57315
55367
 
57316
55368
  /**
57317
55369
  * @ignore - internal component.
@@ -57334,7 +55386,7 @@ var _defineProperty2$2 = _interopRequireDefault$8(defineProperty$6.exports);
57334
55386
 
57335
55387
  var _objectWithoutProperties2$7 = _interopRequireDefault$8(objectWithoutProperties.exports);
57336
55388
 
57337
- var _react$8 = _interopRequireDefault$8(react.exports);
55389
+ var _react$8 = _interopRequireDefault$8(React$1);
57338
55390
 
57339
55391
  var _propTypes$7 = _interopRequireDefault$8(propTypes.exports);
57340
55392
 
@@ -57484,7 +55536,7 @@ var _getPrototypeOf3$1 = _interopRequireDefault$7(getPrototypeOf$1.exports);
57484
55536
 
57485
55537
  var _inherits2$3 = _interopRequireDefault$7(inherits.exports);
57486
55538
 
57487
- var _react$7 = _interopRequireDefault$7(react.exports);
55539
+ var _react$7 = _interopRequireDefault$7(React$1);
57488
55540
 
57489
55541
  var _propTypes$6 = _interopRequireDefault$7(propTypes.exports);
57490
55542
 
@@ -57757,7 +55809,7 @@ var _getPrototypeOf3 = _interopRequireDefault$6(getPrototypeOf$1.exports);
57757
55809
 
57758
55810
  var _inherits2$2 = _interopRequireDefault$6(inherits.exports);
57759
55811
 
57760
- var _react$6 = _interopRequireDefault$6(react.exports);
55812
+ var _react$6 = _interopRequireDefault$6(React$1);
57761
55813
 
57762
55814
  var _propTypes$5 = _interopRequireDefault$6(propTypes.exports);
57763
55815
 
@@ -58049,7 +56101,7 @@ var _inherits2$1 = _interopRequireDefault$5(inherits.exports);
58049
56101
 
58050
56102
  var _typeof2 = _interopRequireDefault$5(_typeof$5.exports);
58051
56103
 
58052
- var _react$5 = _interopRequireDefault$5(react.exports);
56104
+ var _react$5 = _interopRequireDefault$5(React$1);
58053
56105
 
58054
56106
  var _propTypes$4 = _interopRequireDefault$5(propTypes.exports);
58055
56107
 
@@ -58567,7 +56619,7 @@ Object.defineProperty(ArrowDropDown$1, "__esModule", {
58567
56619
  });
58568
56620
  ArrowDropDown$1.default = void 0;
58569
56621
 
58570
- var _react$4 = _interopRequireDefault$4(react.exports);
56622
+ var _react$4 = _interopRequireDefault$4(React$1);
58571
56623
 
58572
56624
  var _pure = _interopRequireDefault$4(pure$1);
58573
56625
 
@@ -58606,7 +56658,7 @@ var _defineProperty2 = _interopRequireDefault$3(defineProperty$6.exports);
58606
56658
 
58607
56659
  var _objectWithoutProperties2$3 = _interopRequireDefault$3(objectWithoutProperties.exports);
58608
56660
 
58609
- var _react$3 = _interopRequireDefault$3(react.exports);
56661
+ var _react$3 = _interopRequireDefault$3(React$1);
58610
56662
 
58611
56663
  var _propTypes$3 = _interopRequireDefault$3(propTypes.exports);
58612
56664
 
@@ -58715,7 +56767,7 @@ var _extends2$2 = _interopRequireDefault$2(_extends$3.exports);
58715
56767
 
58716
56768
  var _objectWithoutProperties2$2 = _interopRequireDefault$2(objectWithoutProperties.exports);
58717
56769
 
58718
- var _react$2 = _interopRequireDefault$2(react.exports);
56770
+ var _react$2 = _interopRequireDefault$2(React$1);
58719
56771
 
58720
56772
  var _propTypes$2 = _interopRequireDefault$2(propTypes.exports);
58721
56773
 
@@ -58931,7 +56983,7 @@ var _extends2$1 = _interopRequireDefault$1(_extends$3.exports);
58931
56983
 
58932
56984
  var _objectWithoutProperties2$1 = _interopRequireDefault$1(objectWithoutProperties.exports);
58933
56985
 
58934
- var _react$1 = _interopRequireDefault$1(react.exports);
56986
+ var _react$1 = _interopRequireDefault$1(React$1);
58935
56987
 
58936
56988
  var _propTypes$1 = _interopRequireDefault$1(propTypes.exports);
58937
56989
 
@@ -59181,7 +57233,7 @@ var _getPrototypeOf2 = _interopRequireDefault(getPrototypeOf$1.exports);
59181
57233
 
59182
57234
  var _inherits2 = _interopRequireDefault(inherits.exports);
59183
57235
 
59184
- var _react = _interopRequireDefault(react.exports);
57236
+ var _react = _interopRequireDefault(React$1);
59185
57237
 
59186
57238
  var _reactDom = _interopRequireDefault(reactDom.exports);
59187
57239