@pie-element/inline-dropdown 8.0.1-esmbeta.1 → 8.0.1-esmbeta.2
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/configure/package.json +5 -5
- package/controller/package.json +2 -2
- package/esm/configure.js +229 -2177
- package/esm/configure.js.map +1 -1
- package/package.json +6 -6
package/esm/configure.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ModelUpdatedEvent, InsertImageEvent, DeleteImageEvent, InsertSoundEvent, DeleteSoundEvent } from '@pie-framework/pie-configure-events';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import EditableHtml, { ALL_PLUGINS } from '@pie-lib/editable-html';
|
|
3
4
|
import { layout, InputContainer, AlertDialog, settings } from '@pie-lib/config-ui';
|
|
4
5
|
import { renderMath } from '@pie-lib/math-rendering';
|
|
@@ -43,2163 +44,99 @@ function getAugmentedNamespace(n) {
|
|
|
43
44
|
return a;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
var react_production_min = {};
|
|
49
|
-
|
|
50
|
-
/*
|
|
51
|
-
object-assign
|
|
52
|
-
(c) Sindre Sorhus
|
|
53
|
-
@license MIT
|
|
54
|
-
*/
|
|
55
|
-
/* eslint-disable no-unused-vars */
|
|
56
|
-
var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
|
|
57
|
-
var hasOwnProperty$f = Object.prototype.hasOwnProperty;
|
|
58
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
59
|
-
|
|
60
|
-
function toObject(val) {
|
|
61
|
-
if (val === null || val === undefined) {
|
|
62
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
return Object(val);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function shouldUseNative() {
|
|
69
|
-
try {
|
|
70
|
-
if (!Object.assign) {
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
75
|
-
|
|
76
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
77
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
78
|
-
test1[5] = 'de';
|
|
79
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
84
|
-
var test2 = {};
|
|
85
|
-
for (var i = 0; i < 10; i++) {
|
|
86
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
87
|
-
}
|
|
88
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
89
|
-
return test2[n];
|
|
90
|
-
});
|
|
91
|
-
if (order2.join('') !== '0123456789') {
|
|
92
|
-
return false;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
96
|
-
var test3 = {};
|
|
97
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
98
|
-
test3[letter] = letter;
|
|
99
|
-
});
|
|
100
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
101
|
-
'abcdefghijklmnopqrst') {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return true;
|
|
106
|
-
} catch (err) {
|
|
107
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
108
|
-
return false;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
113
|
-
var from;
|
|
114
|
-
var to = toObject(target);
|
|
115
|
-
var symbols;
|
|
116
|
-
|
|
117
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
118
|
-
from = Object(arguments[s]);
|
|
119
|
-
|
|
120
|
-
for (var key in from) {
|
|
121
|
-
if (hasOwnProperty$f.call(from, key)) {
|
|
122
|
-
to[key] = from[key];
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (getOwnPropertySymbols$1) {
|
|
127
|
-
symbols = getOwnPropertySymbols$1(from);
|
|
128
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
129
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
130
|
-
to[symbols[i]] = from[symbols[i]];
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
return to;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
/** @license React v16.14.0
|
|
140
|
-
* react.production.min.js
|
|
141
|
-
*
|
|
142
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the MIT license found in the
|
|
145
|
-
* LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/
|
|
147
|
-
var l$1=objectAssign,n$2="function"===typeof Symbol&&Symbol.for,p$1=n$2?Symbol.for("react.element"):60103,q$1=n$2?Symbol.for("react.portal"):60106,r$2=n$2?Symbol.for("react.fragment"):60107,t$1=n$2?Symbol.for("react.strict_mode"):60108,u$1=n$2?Symbol.for("react.profiler"):60114,v$2=n$2?Symbol.for("react.provider"):60109,w$2=n$2?Symbol.for("react.context"):60110,x$1=n$2?Symbol.for("react.forward_ref"):60112,y$2=n$2?Symbol.for("react.suspense"):60113,z$1=n$2?Symbol.for("react.memo"):60115,A$1=n$2?Symbol.for("react.lazy"):
|
|
148
|
-
60116,B="function"===typeof Symbol&&Symbol.iterator;function C$1(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
|
|
149
|
-
var D={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E$1={};function F$1(a,b,c){this.props=a;this.context=b;this.refs=E$1;this.updater=c||D;}F$1.prototype.isReactComponent={};F$1.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(C$1(85));this.updater.enqueueSetState(this,a,b,"setState");};F$1.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};
|
|
150
|
-
function G$1(){}G$1.prototype=F$1.prototype;function H$1(a,b,c){this.props=a;this.context=b;this.refs=E$1;this.updater=c||D;}var I$1=H$1.prototype=new G$1;I$1.constructor=H$1;l$1(I$1,F$1.prototype);I$1.isPureReactComponent=!0;var J$1={current:null},K$1=Object.prototype.hasOwnProperty,L$1={key:!0,ref:!0,__self:!0,__source:!0};
|
|
151
|
-
function M$1(a,b,c){var e,d={},g=null,k=null;if(null!=b)for(e in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)K$1.call(b,e)&&!L$1.hasOwnProperty(e)&&(d[e]=b[e]);var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];d.children=h;}if(a&&a.defaultProps)for(e in f=a.defaultProps,f)void 0===d[e]&&(d[e]=f[e]);return {$$typeof:p$1,type:a,key:g,ref:k,props:d,_owner:J$1.current}}
|
|
152
|
-
function N$1(a,b){return {$$typeof:p$1,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O$1(a){return "object"===typeof a&&null!==a&&a.$$typeof===p$1}function escape$1(a){var b={"=":"=0",":":"=2"};return "$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var P$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}}
|
|
153
|
-
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);}
|
|
154
|
-
function T$1(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p$1:case q$1:g=!0;}}if(g)return c(e,a,""===b?"."+U$1(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){d=a[k];var f=b+U$1(d,k);g+=T$1(d,f,c,e);}else if(null===a||"object"!==typeof a?f=null:(f=B&&a[B]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),k=
|
|
155
|
-
0;!(d=a.next()).done;)d=d.value,f=b+U$1(d,k++),g+=T$1(d,f,c,e);else if("object"===d)throw c=""+a,Error(C$1(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return g}function V$1(a,b,c){return null==a?0:T$1(a,"",b,c)}function U$1(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape$1(a.key):b.toString(36)}function W$1(a,b){a.func.call(a.context,b,a.count++);}
|
|
156
|
-
function aa$1(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?X$1(a,e,c,function(a){return a}):null!=a&&(O$1(a)&&(a=N$1(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(P$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}
|
|
157
|
-
var ba$1={ReactCurrentDispatcher:Y$1,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J$1,IsSomeRendererActing:{current:!1},assign:l$1};react_production_min.Children={map:function(a,b,c){if(null==a)return a;var e=[];X$1(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=R$1(null,null,b,c);V$1(a,W$1,b);S$1(b);},count:function(a){return V$1(a,function(){return null},null)},toArray:function(a){var b=[];X$1(a,b,null,function(a){return a});return b},only:function(a){if(!O$1(a))throw Error(C$1(143));return a}};
|
|
158
|
-
react_production_min.Component=F$1;react_production_min.Fragment=r$2;react_production_min.Profiler=u$1;react_production_min.PureComponent=H$1;react_production_min.StrictMode=t$1;react_production_min.Suspense=y$2;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ba$1;
|
|
159
|
-
react_production_min.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(C$1(267,a));var e=l$1({},a.props),d=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=J$1.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(h in b)K$1.call(b,h)&&!L$1.hasOwnProperty(h)&&(e[h]=void 0===b[h]&&void 0!==f?f[h]:b[h]);}var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){f=Array(h);for(var m=0;m<h;m++)f[m]=arguments[m+2];e.children=f;}return {$$typeof:p$1,type:a.type,
|
|
160
|
-
key:d,ref:g,props:e,_owner:k}};react_production_min.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:w$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;
|
|
161
|
-
react_production_min.lazy=function(a){return {$$typeof:A$1,_ctor:a,_status:-1,_result:null}};react_production_min.memo=function(a,b){return {$$typeof:z$1,type:a,compare:void 0===b?null:b}};react_production_min.useCallback=function(a,b){return Z$1().useCallback(a,b)};react_production_min.useContext=function(a,b){return Z$1().useContext(a,b)};react_production_min.useDebugValue=function(){};react_production_min.useEffect=function(a,b){return Z$1().useEffect(a,b)};react_production_min.useImperativeHandle=function(a,b,c){return Z$1().useImperativeHandle(a,b,c)};
|
|
162
|
-
react_production_min.useLayoutEffect=function(a,b){return Z$1().useLayoutEffect(a,b)};react_production_min.useMemo=function(a,b){return Z$1().useMemo(a,b)};react_production_min.useReducer=function(a,b,c){return Z$1().useReducer(a,b,c)};react_production_min.useRef=function(a){return Z$1().useRef(a)};react_production_min.useState=function(a){return Z$1().useState(a)};react_production_min.version="16.14.0";
|
|
163
|
-
|
|
164
|
-
var react_development = {};
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
168
|
-
*
|
|
169
|
-
* This source code is licensed under the MIT license found in the
|
|
170
|
-
* LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/
|
|
172
|
-
|
|
173
|
-
var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
174
|
-
|
|
175
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
176
|
-
|
|
177
|
-
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
181
|
-
*
|
|
182
|
-
* This source code is licensed under the MIT license found in the
|
|
183
|
-
* LICENSE file in the root directory of this source tree.
|
|
184
|
-
*/
|
|
185
|
-
|
|
186
|
-
var printWarning$2 = function() {};
|
|
187
|
-
|
|
188
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
189
|
-
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
|
|
190
|
-
var loggedTypeFailures = {};
|
|
191
|
-
var has$1 = has$2;
|
|
192
|
-
|
|
193
|
-
printWarning$2 = function(text) {
|
|
194
|
-
var message = 'Warning: ' + text;
|
|
195
|
-
if (typeof console !== 'undefined') {
|
|
196
|
-
console.error(message);
|
|
197
|
-
}
|
|
198
|
-
try {
|
|
199
|
-
// --- Welcome to debugging React ---
|
|
200
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
201
|
-
// to find the callsite that caused this warning to fire.
|
|
202
|
-
throw new Error(message);
|
|
203
|
-
} catch (x) { /**/ }
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Assert that the values match with the type specs.
|
|
209
|
-
* Error messages are memorized and will only be shown once.
|
|
210
|
-
*
|
|
211
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
212
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
213
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
214
|
-
* @param {string} componentName Name of the component for error messages.
|
|
215
|
-
* @param {?Function} getStack Returns the component stack.
|
|
216
|
-
* @private
|
|
217
|
-
*/
|
|
218
|
-
function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
|
|
219
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
220
|
-
for (var typeSpecName in typeSpecs) {
|
|
221
|
-
if (has$1(typeSpecs, typeSpecName)) {
|
|
222
|
-
var error;
|
|
223
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
224
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
225
|
-
// After these have been cleaned up, we'll let them throw.
|
|
226
|
-
try {
|
|
227
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
228
|
-
// behavior as without this statement except with a better message.
|
|
229
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
230
|
-
var err = Error(
|
|
231
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
232
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
233
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
234
|
-
);
|
|
235
|
-
err.name = 'Invariant Violation';
|
|
236
|
-
throw err;
|
|
237
|
-
}
|
|
238
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
|
|
239
|
-
} catch (ex) {
|
|
240
|
-
error = ex;
|
|
241
|
-
}
|
|
242
|
-
if (error && !(error instanceof Error)) {
|
|
243
|
-
printWarning$2(
|
|
244
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
245
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
246
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
247
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
248
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
249
|
-
'shape all require an argument).'
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
253
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
254
|
-
// same error.
|
|
255
|
-
loggedTypeFailures[error.message] = true;
|
|
256
|
-
|
|
257
|
-
var stack = getStack ? getStack() : '';
|
|
258
|
-
|
|
259
|
-
printWarning$2(
|
|
260
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
261
|
-
);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Resets warning cache when testing.
|
|
270
|
-
*
|
|
271
|
-
* @private
|
|
272
|
-
*/
|
|
273
|
-
checkPropTypes$1.resetWarningCache = function() {
|
|
274
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
275
|
-
loggedTypeFailures = {};
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
var checkPropTypes_1 = checkPropTypes$1;
|
|
280
|
-
|
|
281
|
-
/** @license React v16.14.0
|
|
282
|
-
* react.development.js
|
|
283
|
-
*
|
|
284
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
285
|
-
*
|
|
286
|
-
* This source code is licensed under the MIT license found in the
|
|
287
|
-
* LICENSE file in the root directory of this source tree.
|
|
288
|
-
*/
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
if (process.env.NODE_ENV !== "production") {
|
|
293
|
-
(function() {
|
|
294
|
-
|
|
295
|
-
var _assign = objectAssign;
|
|
296
|
-
var checkPropTypes = checkPropTypes_1;
|
|
297
|
-
|
|
298
|
-
var ReactVersion = '16.14.0';
|
|
299
|
-
|
|
300
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
301
|
-
// nor polyfill, then a plain number is used for performance.
|
|
302
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
303
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
304
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
305
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
306
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
307
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
308
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
309
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
310
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
311
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
312
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
313
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
314
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
315
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
316
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
317
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
318
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
319
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
320
|
-
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
321
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
322
|
-
function getIteratorFn(maybeIterable) {
|
|
323
|
-
if (maybeIterable === null || typeof maybeIterable !== 'object') {
|
|
324
|
-
return null;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
328
|
-
|
|
329
|
-
if (typeof maybeIterator === 'function') {
|
|
330
|
-
return maybeIterator;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
return null;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Keeps track of the current dispatcher.
|
|
338
|
-
*/
|
|
339
|
-
var ReactCurrentDispatcher = {
|
|
340
|
-
/**
|
|
341
|
-
* @internal
|
|
342
|
-
* @type {ReactComponent}
|
|
343
|
-
*/
|
|
344
|
-
current: null
|
|
345
|
-
};
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Keeps track of the current batch's configuration such as how long an update
|
|
349
|
-
* should suspend for if it needs to.
|
|
350
|
-
*/
|
|
351
|
-
var ReactCurrentBatchConfig = {
|
|
352
|
-
suspense: null
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* Keeps track of the current owner.
|
|
357
|
-
*
|
|
358
|
-
* The current owner is the component who should own any components that are
|
|
359
|
-
* currently being constructed.
|
|
360
|
-
*/
|
|
361
|
-
var ReactCurrentOwner = {
|
|
362
|
-
/**
|
|
363
|
-
* @internal
|
|
364
|
-
* @type {ReactComponent}
|
|
365
|
-
*/
|
|
366
|
-
current: null
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
|
|
370
|
-
function describeComponentFrame (name, source, ownerName) {
|
|
371
|
-
var sourceInfo = '';
|
|
372
|
-
|
|
373
|
-
if (source) {
|
|
374
|
-
var path = source.fileName;
|
|
375
|
-
var fileName = path.replace(BEFORE_SLASH_RE, '');
|
|
376
|
-
|
|
377
|
-
{
|
|
378
|
-
// In DEV, include code for a common special case:
|
|
379
|
-
// prefer "folder/index.js" instead of just "index.js".
|
|
380
|
-
if (/^index\./.test(fileName)) {
|
|
381
|
-
var match = path.match(BEFORE_SLASH_RE);
|
|
382
|
-
|
|
383
|
-
if (match) {
|
|
384
|
-
var pathBeforeSlash = match[1];
|
|
385
|
-
|
|
386
|
-
if (pathBeforeSlash) {
|
|
387
|
-
var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
|
|
388
|
-
fileName = folderName + '/' + fileName;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
|
|
395
|
-
} else if (ownerName) {
|
|
396
|
-
sourceInfo = ' (created by ' + ownerName + ')';
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
return '\n in ' + (name || 'Unknown') + sourceInfo;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
var Resolved = 1;
|
|
403
|
-
function refineResolvedLazyComponent(lazyComponent) {
|
|
404
|
-
return lazyComponent._status === Resolved ? lazyComponent._result : null;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
408
|
-
var functionName = innerType.displayName || innerType.name || '';
|
|
409
|
-
return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
function getComponentName(type) {
|
|
413
|
-
if (type == null) {
|
|
414
|
-
// Host root, text node or just invalid type.
|
|
415
|
-
return null;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
{
|
|
419
|
-
if (typeof type.tag === 'number') {
|
|
420
|
-
error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
if (typeof type === 'function') {
|
|
425
|
-
return type.displayName || type.name || null;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
if (typeof type === 'string') {
|
|
429
|
-
return type;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
switch (type) {
|
|
433
|
-
case REACT_FRAGMENT_TYPE:
|
|
434
|
-
return 'Fragment';
|
|
435
|
-
|
|
436
|
-
case REACT_PORTAL_TYPE:
|
|
437
|
-
return 'Portal';
|
|
438
|
-
|
|
439
|
-
case REACT_PROFILER_TYPE:
|
|
440
|
-
return "Profiler";
|
|
441
|
-
|
|
442
|
-
case REACT_STRICT_MODE_TYPE:
|
|
443
|
-
return 'StrictMode';
|
|
444
|
-
|
|
445
|
-
case REACT_SUSPENSE_TYPE:
|
|
446
|
-
return 'Suspense';
|
|
447
|
-
|
|
448
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
449
|
-
return 'SuspenseList';
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
if (typeof type === 'object') {
|
|
453
|
-
switch (type.$$typeof) {
|
|
454
|
-
case REACT_CONTEXT_TYPE:
|
|
455
|
-
return 'Context.Consumer';
|
|
456
|
-
|
|
457
|
-
case REACT_PROVIDER_TYPE:
|
|
458
|
-
return 'Context.Provider';
|
|
459
|
-
|
|
460
|
-
case REACT_FORWARD_REF_TYPE:
|
|
461
|
-
return getWrappedName(type, type.render, 'ForwardRef');
|
|
462
|
-
|
|
463
|
-
case REACT_MEMO_TYPE:
|
|
464
|
-
return getComponentName(type.type);
|
|
465
|
-
|
|
466
|
-
case REACT_BLOCK_TYPE:
|
|
467
|
-
return getComponentName(type.render);
|
|
468
|
-
|
|
469
|
-
case REACT_LAZY_TYPE:
|
|
470
|
-
{
|
|
471
|
-
var thenable = type;
|
|
472
|
-
var resolvedThenable = refineResolvedLazyComponent(thenable);
|
|
473
|
-
|
|
474
|
-
if (resolvedThenable) {
|
|
475
|
-
return getComponentName(resolvedThenable);
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
break;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
return null;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
var ReactDebugCurrentFrame = {};
|
|
487
|
-
var currentlyValidatingElement = null;
|
|
488
|
-
function setCurrentlyValidatingElement(element) {
|
|
489
|
-
{
|
|
490
|
-
currentlyValidatingElement = element;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
{
|
|
495
|
-
// Stack implementation injected by the current renderer.
|
|
496
|
-
ReactDebugCurrentFrame.getCurrentStack = null;
|
|
497
|
-
|
|
498
|
-
ReactDebugCurrentFrame.getStackAddendum = function () {
|
|
499
|
-
var stack = ''; // Add an extra top frame while an element is being validated
|
|
500
|
-
|
|
501
|
-
if (currentlyValidatingElement) {
|
|
502
|
-
var name = getComponentName(currentlyValidatingElement.type);
|
|
503
|
-
var owner = currentlyValidatingElement._owner;
|
|
504
|
-
stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
|
|
505
|
-
} // Delegate to the injected renderer-specific implementation
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
var impl = ReactDebugCurrentFrame.getCurrentStack;
|
|
509
|
-
|
|
510
|
-
if (impl) {
|
|
511
|
-
stack += impl() || '';
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
return stack;
|
|
515
|
-
};
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* Used by act() to track whether you're inside an act() scope.
|
|
520
|
-
*/
|
|
521
|
-
var IsSomeRendererActing = {
|
|
522
|
-
current: false
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
var ReactSharedInternals = {
|
|
526
|
-
ReactCurrentDispatcher: ReactCurrentDispatcher,
|
|
527
|
-
ReactCurrentBatchConfig: ReactCurrentBatchConfig,
|
|
528
|
-
ReactCurrentOwner: ReactCurrentOwner,
|
|
529
|
-
IsSomeRendererActing: IsSomeRendererActing,
|
|
530
|
-
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
|
531
|
-
assign: _assign
|
|
532
|
-
};
|
|
533
|
-
|
|
534
|
-
{
|
|
535
|
-
_assign(ReactSharedInternals, {
|
|
536
|
-
// These should not be included in production.
|
|
537
|
-
ReactDebugCurrentFrame: ReactDebugCurrentFrame,
|
|
538
|
-
// Shim for React DOM 16.0.0 which still destructured (but not used) this.
|
|
539
|
-
// TODO: remove in React 17.0.
|
|
540
|
-
ReactComponentTreeHook: {}
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
// by calls to these methods by a Babel plugin.
|
|
545
|
-
//
|
|
546
|
-
// In PROD (or in packages without access to React internals),
|
|
547
|
-
// they are left as they are instead.
|
|
548
|
-
|
|
549
|
-
function warn(format) {
|
|
550
|
-
{
|
|
551
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
552
|
-
args[_key - 1] = arguments[_key];
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
printWarning('warn', format, args);
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
function error(format) {
|
|
559
|
-
{
|
|
560
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
561
|
-
args[_key2 - 1] = arguments[_key2];
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
printWarning('error', format, args);
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
function printWarning(level, format, args) {
|
|
569
|
-
// When changing this logic, you might want to also
|
|
570
|
-
// update consoleWithStackDev.www.js as well.
|
|
571
|
-
{
|
|
572
|
-
var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
|
|
573
|
-
|
|
574
|
-
if (!hasExistingStack) {
|
|
575
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
576
|
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
577
|
-
|
|
578
|
-
if (stack !== '') {
|
|
579
|
-
format += '%s';
|
|
580
|
-
args = args.concat([stack]);
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
var argsWithFormat = args.map(function (item) {
|
|
585
|
-
return '' + item;
|
|
586
|
-
}); // Careful: RN currently depends on this prefix
|
|
587
|
-
|
|
588
|
-
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
|
|
589
|
-
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
590
|
-
// eslint-disable-next-line react-internal/no-production-logging
|
|
591
|
-
|
|
592
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
593
|
-
|
|
594
|
-
try {
|
|
595
|
-
// --- Welcome to debugging React ---
|
|
596
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
597
|
-
// to find the callsite that caused this warning to fire.
|
|
598
|
-
var argIndex = 0;
|
|
599
|
-
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
600
|
-
return args[argIndex++];
|
|
601
|
-
});
|
|
602
|
-
throw new Error(message);
|
|
603
|
-
} catch (x) {}
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
var didWarnStateUpdateForUnmountedComponent = {};
|
|
608
|
-
|
|
609
|
-
function warnNoop(publicInstance, callerName) {
|
|
610
|
-
{
|
|
611
|
-
var _constructor = publicInstance.constructor;
|
|
612
|
-
var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
|
|
613
|
-
var warningKey = componentName + "." + callerName;
|
|
614
|
-
|
|
615
|
-
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
616
|
-
return;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
|
|
620
|
-
|
|
621
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
/**
|
|
625
|
-
* This is the abstract API for an update queue.
|
|
626
|
-
*/
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
var ReactNoopUpdateQueue = {
|
|
630
|
-
/**
|
|
631
|
-
* Checks whether or not this composite component is mounted.
|
|
632
|
-
* @param {ReactClass} publicInstance The instance we want to test.
|
|
633
|
-
* @return {boolean} True if mounted, false otherwise.
|
|
634
|
-
* @protected
|
|
635
|
-
* @final
|
|
636
|
-
*/
|
|
637
|
-
isMounted: function (publicInstance) {
|
|
638
|
-
return false;
|
|
639
|
-
},
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
* Forces an update. This should only be invoked when it is known with
|
|
643
|
-
* certainty that we are **not** in a DOM transaction.
|
|
644
|
-
*
|
|
645
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
646
|
-
* component's state has changed but `setState` was not called.
|
|
647
|
-
*
|
|
648
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
649
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
650
|
-
*
|
|
651
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
652
|
-
* @param {?function} callback Called after component is updated.
|
|
653
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
654
|
-
* @internal
|
|
655
|
-
*/
|
|
656
|
-
enqueueForceUpdate: function (publicInstance, callback, callerName) {
|
|
657
|
-
warnNoop(publicInstance, 'forceUpdate');
|
|
658
|
-
},
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
662
|
-
* You should treat `this.state` as immutable.
|
|
663
|
-
*
|
|
664
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
665
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
666
|
-
*
|
|
667
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
668
|
-
* @param {object} completeState Next state.
|
|
669
|
-
* @param {?function} callback Called after component is updated.
|
|
670
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
671
|
-
* @internal
|
|
672
|
-
*/
|
|
673
|
-
enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
|
|
674
|
-
warnNoop(publicInstance, 'replaceState');
|
|
675
|
-
},
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* Sets a subset of the state. This only exists because _pendingState is
|
|
679
|
-
* internal. This provides a merging strategy that is not available to deep
|
|
680
|
-
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
681
|
-
* during the merge.
|
|
682
|
-
*
|
|
683
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
684
|
-
* @param {object} partialState Next partial state to be merged with state.
|
|
685
|
-
* @param {?function} callback Called after component is updated.
|
|
686
|
-
* @param {?string} Name of the calling function in the public API.
|
|
687
|
-
* @internal
|
|
688
|
-
*/
|
|
689
|
-
enqueueSetState: function (publicInstance, partialState, callback, callerName) {
|
|
690
|
-
warnNoop(publicInstance, 'setState');
|
|
691
|
-
}
|
|
692
|
-
};
|
|
693
|
-
|
|
694
|
-
var emptyObject = {};
|
|
695
|
-
|
|
696
|
-
{
|
|
697
|
-
Object.freeze(emptyObject);
|
|
698
|
-
}
|
|
699
|
-
/**
|
|
700
|
-
* Base class helpers for the updating state of a component.
|
|
701
|
-
*/
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
function Component(props, context, updater) {
|
|
705
|
-
this.props = props;
|
|
706
|
-
this.context = context; // If a component has string refs, we will assign a different object later.
|
|
707
|
-
|
|
708
|
-
this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
|
|
709
|
-
// renderer.
|
|
710
|
-
|
|
711
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
Component.prototype.isReactComponent = {};
|
|
715
|
-
/**
|
|
716
|
-
* Sets a subset of the state. Always use this to mutate
|
|
717
|
-
* state. You should treat `this.state` as immutable.
|
|
718
|
-
*
|
|
719
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
720
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
721
|
-
*
|
|
722
|
-
* There is no guarantee that calls to `setState` will run synchronously,
|
|
723
|
-
* as they may eventually be batched together. You can provide an optional
|
|
724
|
-
* callback that will be executed when the call to setState is actually
|
|
725
|
-
* completed.
|
|
726
|
-
*
|
|
727
|
-
* When a function is provided to setState, it will be called at some point in
|
|
728
|
-
* the future (not synchronously). It will be called with the up to date
|
|
729
|
-
* component arguments (state, props, context). These values can be different
|
|
730
|
-
* from this.* because your function may be called after receiveProps but before
|
|
731
|
-
* shouldComponentUpdate, and this new state, props, and context will not yet be
|
|
732
|
-
* assigned to this.
|
|
733
|
-
*
|
|
734
|
-
* @param {object|function} partialState Next partial state or function to
|
|
735
|
-
* produce next partial state to be merged with current state.
|
|
736
|
-
* @param {?function} callback Called after state is updated.
|
|
737
|
-
* @final
|
|
738
|
-
* @protected
|
|
739
|
-
*/
|
|
740
|
-
|
|
741
|
-
Component.prototype.setState = function (partialState, callback) {
|
|
742
|
-
if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
|
|
743
|
-
{
|
|
744
|
-
throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
this.updater.enqueueSetState(this, partialState, callback, 'setState');
|
|
749
|
-
};
|
|
750
|
-
/**
|
|
751
|
-
* Forces an update. This should only be invoked when it is known with
|
|
752
|
-
* certainty that we are **not** in a DOM transaction.
|
|
753
|
-
*
|
|
754
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
755
|
-
* component's state has changed but `setState` was not called.
|
|
756
|
-
*
|
|
757
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
758
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
759
|
-
*
|
|
760
|
-
* @param {?function} callback Called after update is complete.
|
|
761
|
-
* @final
|
|
762
|
-
* @protected
|
|
763
|
-
*/
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
Component.prototype.forceUpdate = function (callback) {
|
|
767
|
-
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
|
|
768
|
-
};
|
|
769
|
-
/**
|
|
770
|
-
* Deprecated APIs. These APIs used to exist on classic React classes but since
|
|
771
|
-
* we would like to deprecate them, we're not going to move them over to this
|
|
772
|
-
* modern base class. Instead, we define a getter that warns if it's accessed.
|
|
773
|
-
*/
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
{
|
|
777
|
-
var deprecatedAPIs = {
|
|
778
|
-
isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
|
|
779
|
-
replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
var defineDeprecationWarning = function (methodName, info) {
|
|
783
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
784
|
-
get: function () {
|
|
785
|
-
warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
|
|
786
|
-
|
|
787
|
-
return undefined;
|
|
788
|
-
}
|
|
789
|
-
});
|
|
790
|
-
};
|
|
791
|
-
|
|
792
|
-
for (var fnName in deprecatedAPIs) {
|
|
793
|
-
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
794
|
-
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
function ComponentDummy() {}
|
|
800
|
-
|
|
801
|
-
ComponentDummy.prototype = Component.prototype;
|
|
802
|
-
/**
|
|
803
|
-
* Convenience component with default shallow equality check for sCU.
|
|
804
|
-
*/
|
|
805
|
-
|
|
806
|
-
function PureComponent(props, context, updater) {
|
|
807
|
-
this.props = props;
|
|
808
|
-
this.context = context; // If a component has string refs, we will assign a different object later.
|
|
809
|
-
|
|
810
|
-
this.refs = emptyObject;
|
|
811
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
815
|
-
pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
|
|
816
|
-
|
|
817
|
-
_assign(pureComponentPrototype, Component.prototype);
|
|
818
|
-
|
|
819
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
820
|
-
|
|
821
|
-
// an immutable object with a single mutable value
|
|
822
|
-
function createRef() {
|
|
823
|
-
var refObject = {
|
|
824
|
-
current: null
|
|
825
|
-
};
|
|
826
|
-
|
|
827
|
-
{
|
|
828
|
-
Object.seal(refObject);
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
return refObject;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
835
|
-
var RESERVED_PROPS = {
|
|
836
|
-
key: true,
|
|
837
|
-
ref: true,
|
|
838
|
-
__self: true,
|
|
839
|
-
__source: true
|
|
840
|
-
};
|
|
841
|
-
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
|
|
842
|
-
|
|
843
|
-
{
|
|
844
|
-
didWarnAboutStringRefs = {};
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
function hasValidRef(config) {
|
|
848
|
-
{
|
|
849
|
-
if (hasOwnProperty.call(config, 'ref')) {
|
|
850
|
-
var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
|
|
851
|
-
|
|
852
|
-
if (getter && getter.isReactWarning) {
|
|
853
|
-
return false;
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
return config.ref !== undefined;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
function hasValidKey(config) {
|
|
862
|
-
{
|
|
863
|
-
if (hasOwnProperty.call(config, 'key')) {
|
|
864
|
-
var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
|
|
865
|
-
|
|
866
|
-
if (getter && getter.isReactWarning) {
|
|
867
|
-
return false;
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
return config.key !== undefined;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
876
|
-
var warnAboutAccessingKey = function () {
|
|
877
|
-
{
|
|
878
|
-
if (!specialPropKeyWarningShown) {
|
|
879
|
-
specialPropKeyWarningShown = true;
|
|
880
|
-
|
|
881
|
-
error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
};
|
|
885
|
-
|
|
886
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
887
|
-
Object.defineProperty(props, 'key', {
|
|
888
|
-
get: warnAboutAccessingKey,
|
|
889
|
-
configurable: true
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
894
|
-
var warnAboutAccessingRef = function () {
|
|
895
|
-
{
|
|
896
|
-
if (!specialPropRefWarningShown) {
|
|
897
|
-
specialPropRefWarningShown = true;
|
|
898
|
-
|
|
899
|
-
error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
};
|
|
903
|
-
|
|
904
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
905
|
-
Object.defineProperty(props, 'ref', {
|
|
906
|
-
get: warnAboutAccessingRef,
|
|
907
|
-
configurable: true
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
function warnIfStringRefCannotBeAutoConverted(config) {
|
|
912
|
-
{
|
|
913
|
-
if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
|
|
914
|
-
var componentName = getComponentName(ReactCurrentOwner.current.type);
|
|
915
|
-
|
|
916
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
917
|
-
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
|
|
918
|
-
|
|
919
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
/**
|
|
925
|
-
* Factory method to create a new React element. This no longer adheres to
|
|
926
|
-
* the class pattern, so do not use new to call it. Also, instanceof check
|
|
927
|
-
* will not work. Instead test $$typeof field against Symbol.for('react.element') to check
|
|
928
|
-
* if something is a React Element.
|
|
929
|
-
*
|
|
930
|
-
* @param {*} type
|
|
931
|
-
* @param {*} props
|
|
932
|
-
* @param {*} key
|
|
933
|
-
* @param {string|object} ref
|
|
934
|
-
* @param {*} owner
|
|
935
|
-
* @param {*} self A *temporary* helper to detect places where `this` is
|
|
936
|
-
* different from the `owner` when React.createElement is called, so that we
|
|
937
|
-
* can warn. We want to get rid of owner and replace string `ref`s with arrow
|
|
938
|
-
* functions, and as long as `this` and owner are the same, there will be no
|
|
939
|
-
* change in behavior.
|
|
940
|
-
* @param {*} source An annotation object (added by a transpiler or otherwise)
|
|
941
|
-
* indicating filename, line number, and/or other information.
|
|
942
|
-
* @internal
|
|
943
|
-
*/
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
var ReactElement = function (type, key, ref, self, source, owner, props) {
|
|
947
|
-
var element = {
|
|
948
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
949
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
950
|
-
// Built-in properties that belong on the element
|
|
951
|
-
type: type,
|
|
952
|
-
key: key,
|
|
953
|
-
ref: ref,
|
|
954
|
-
props: props,
|
|
955
|
-
// Record the component responsible for creating this element.
|
|
956
|
-
_owner: owner
|
|
957
|
-
};
|
|
958
|
-
|
|
959
|
-
{
|
|
960
|
-
// The validation flag is currently mutative. We put it on
|
|
961
|
-
// an external backing store so that we can freeze the whole object.
|
|
962
|
-
// This can be replaced with a WeakMap once they are implemented in
|
|
963
|
-
// commonly used development environments.
|
|
964
|
-
element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
|
|
965
|
-
// the validation flag non-enumerable (where possible, which should
|
|
966
|
-
// include every environment we run tests in), so the test framework
|
|
967
|
-
// ignores it.
|
|
968
|
-
|
|
969
|
-
Object.defineProperty(element._store, 'validated', {
|
|
970
|
-
configurable: false,
|
|
971
|
-
enumerable: false,
|
|
972
|
-
writable: true,
|
|
973
|
-
value: false
|
|
974
|
-
}); // self and source are DEV only properties.
|
|
975
|
-
|
|
976
|
-
Object.defineProperty(element, '_self', {
|
|
977
|
-
configurable: false,
|
|
978
|
-
enumerable: false,
|
|
979
|
-
writable: false,
|
|
980
|
-
value: self
|
|
981
|
-
}); // Two elements created in two different places should be considered
|
|
982
|
-
// equal for testing purposes and therefore we hide it from enumeration.
|
|
983
|
-
|
|
984
|
-
Object.defineProperty(element, '_source', {
|
|
985
|
-
configurable: false,
|
|
986
|
-
enumerable: false,
|
|
987
|
-
writable: false,
|
|
988
|
-
value: source
|
|
989
|
-
});
|
|
990
|
-
|
|
991
|
-
if (Object.freeze) {
|
|
992
|
-
Object.freeze(element.props);
|
|
993
|
-
Object.freeze(element);
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
return element;
|
|
998
|
-
};
|
|
999
|
-
/**
|
|
1000
|
-
* Create and return a new ReactElement of the given type.
|
|
1001
|
-
* See https://reactjs.org/docs/react-api.html#createelement
|
|
1002
|
-
*/
|
|
1003
|
-
|
|
1004
|
-
function createElement(type, config, children) {
|
|
1005
|
-
var propName; // Reserved names are extracted
|
|
1006
|
-
|
|
1007
|
-
var props = {};
|
|
1008
|
-
var key = null;
|
|
1009
|
-
var ref = null;
|
|
1010
|
-
var self = null;
|
|
1011
|
-
var source = null;
|
|
1012
|
-
|
|
1013
|
-
if (config != null) {
|
|
1014
|
-
if (hasValidRef(config)) {
|
|
1015
|
-
ref = config.ref;
|
|
1016
|
-
|
|
1017
|
-
{
|
|
1018
|
-
warnIfStringRefCannotBeAutoConverted(config);
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
if (hasValidKey(config)) {
|
|
1023
|
-
key = '' + config.key;
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
self = config.__self === undefined ? null : config.__self;
|
|
1027
|
-
source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
|
|
1028
|
-
|
|
1029
|
-
for (propName in config) {
|
|
1030
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
1031
|
-
props[propName] = config[propName];
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
} // Children can be more than one argument, and those are transferred onto
|
|
1035
|
-
// the newly allocated props object.
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
var childrenLength = arguments.length - 2;
|
|
1039
|
-
|
|
1040
|
-
if (childrenLength === 1) {
|
|
1041
|
-
props.children = children;
|
|
1042
|
-
} else if (childrenLength > 1) {
|
|
1043
|
-
var childArray = Array(childrenLength);
|
|
1044
|
-
|
|
1045
|
-
for (var i = 0; i < childrenLength; i++) {
|
|
1046
|
-
childArray[i] = arguments[i + 2];
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
{
|
|
1050
|
-
if (Object.freeze) {
|
|
1051
|
-
Object.freeze(childArray);
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
props.children = childArray;
|
|
1056
|
-
} // Resolve default props
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
if (type && type.defaultProps) {
|
|
1060
|
-
var defaultProps = type.defaultProps;
|
|
1061
|
-
|
|
1062
|
-
for (propName in defaultProps) {
|
|
1063
|
-
if (props[propName] === undefined) {
|
|
1064
|
-
props[propName] = defaultProps[propName];
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
{
|
|
1070
|
-
if (key || ref) {
|
|
1071
|
-
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
|
|
1072
|
-
|
|
1073
|
-
if (key) {
|
|
1074
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
if (ref) {
|
|
1078
|
-
defineRefPropWarningGetter(props, displayName);
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
1084
|
-
}
|
|
1085
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
1086
|
-
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
1087
|
-
return newElement;
|
|
1088
|
-
}
|
|
1089
|
-
/**
|
|
1090
|
-
* Clone and return a new ReactElement using element as the starting point.
|
|
1091
|
-
* See https://reactjs.org/docs/react-api.html#cloneelement
|
|
1092
|
-
*/
|
|
1093
|
-
|
|
1094
|
-
function cloneElement(element, config, children) {
|
|
1095
|
-
if (!!(element === null || element === undefined)) {
|
|
1096
|
-
{
|
|
1097
|
-
throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
var propName; // Original props are copied
|
|
1102
|
-
|
|
1103
|
-
var props = _assign({}, element.props); // Reserved names are extracted
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
var key = element.key;
|
|
1107
|
-
var ref = element.ref; // Self is preserved since the owner is preserved.
|
|
1108
|
-
|
|
1109
|
-
var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
|
|
1110
|
-
// transpiler, and the original source is probably a better indicator of the
|
|
1111
|
-
// true owner.
|
|
1112
|
-
|
|
1113
|
-
var source = element._source; // Owner will be preserved, unless ref is overridden
|
|
1114
|
-
|
|
1115
|
-
var owner = element._owner;
|
|
1116
|
-
|
|
1117
|
-
if (config != null) {
|
|
1118
|
-
if (hasValidRef(config)) {
|
|
1119
|
-
// Silently steal the ref from the parent.
|
|
1120
|
-
ref = config.ref;
|
|
1121
|
-
owner = ReactCurrentOwner.current;
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
if (hasValidKey(config)) {
|
|
1125
|
-
key = '' + config.key;
|
|
1126
|
-
} // Remaining properties override existing props
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
var defaultProps;
|
|
1130
|
-
|
|
1131
|
-
if (element.type && element.type.defaultProps) {
|
|
1132
|
-
defaultProps = element.type.defaultProps;
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
for (propName in config) {
|
|
1136
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
1137
|
-
if (config[propName] === undefined && defaultProps !== undefined) {
|
|
1138
|
-
// Resolve default props
|
|
1139
|
-
props[propName] = defaultProps[propName];
|
|
1140
|
-
} else {
|
|
1141
|
-
props[propName] = config[propName];
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
} // Children can be more than one argument, and those are transferred onto
|
|
1146
|
-
// the newly allocated props object.
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
var childrenLength = arguments.length - 2;
|
|
1150
|
-
|
|
1151
|
-
if (childrenLength === 1) {
|
|
1152
|
-
props.children = children;
|
|
1153
|
-
} else if (childrenLength > 1) {
|
|
1154
|
-
var childArray = Array(childrenLength);
|
|
1155
|
-
|
|
1156
|
-
for (var i = 0; i < childrenLength; i++) {
|
|
1157
|
-
childArray[i] = arguments[i + 2];
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
props.children = childArray;
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
return ReactElement(element.type, key, ref, self, source, owner, props);
|
|
1164
|
-
}
|
|
1165
|
-
/**
|
|
1166
|
-
* Verifies the object is a ReactElement.
|
|
1167
|
-
* See https://reactjs.org/docs/react-api.html#isvalidelement
|
|
1168
|
-
* @param {?object} object
|
|
1169
|
-
* @return {boolean} True if `object` is a ReactElement.
|
|
1170
|
-
* @final
|
|
1171
|
-
*/
|
|
1172
|
-
|
|
1173
|
-
function isValidElement(object) {
|
|
1174
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
var SEPARATOR = '.';
|
|
1178
|
-
var SUBSEPARATOR = ':';
|
|
1179
|
-
/**
|
|
1180
|
-
* Escape and wrap key so it is safe to use as a reactid
|
|
1181
|
-
*
|
|
1182
|
-
* @param {string} key to be escaped.
|
|
1183
|
-
* @return {string} the escaped key.
|
|
1184
|
-
*/
|
|
1185
|
-
|
|
1186
|
-
function escape(key) {
|
|
1187
|
-
var escapeRegex = /[=:]/g;
|
|
1188
|
-
var escaperLookup = {
|
|
1189
|
-
'=': '=0',
|
|
1190
|
-
':': '=2'
|
|
1191
|
-
};
|
|
1192
|
-
var escapedString = ('' + key).replace(escapeRegex, function (match) {
|
|
1193
|
-
return escaperLookup[match];
|
|
1194
|
-
});
|
|
1195
|
-
return '$' + escapedString;
|
|
1196
|
-
}
|
|
1197
|
-
/**
|
|
1198
|
-
* TODO: Test that a single child and an array with one item have the same key
|
|
1199
|
-
* pattern.
|
|
1200
|
-
*/
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
var didWarnAboutMaps = false;
|
|
1204
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
1205
|
-
|
|
1206
|
-
function escapeUserProvidedKey(text) {
|
|
1207
|
-
return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
var POOL_SIZE = 10;
|
|
1211
|
-
var traverseContextPool = [];
|
|
1212
|
-
|
|
1213
|
-
function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
|
|
1214
|
-
if (traverseContextPool.length) {
|
|
1215
|
-
var traverseContext = traverseContextPool.pop();
|
|
1216
|
-
traverseContext.result = mapResult;
|
|
1217
|
-
traverseContext.keyPrefix = keyPrefix;
|
|
1218
|
-
traverseContext.func = mapFunction;
|
|
1219
|
-
traverseContext.context = mapContext;
|
|
1220
|
-
traverseContext.count = 0;
|
|
1221
|
-
return traverseContext;
|
|
1222
|
-
} else {
|
|
1223
|
-
return {
|
|
1224
|
-
result: mapResult,
|
|
1225
|
-
keyPrefix: keyPrefix,
|
|
1226
|
-
func: mapFunction,
|
|
1227
|
-
context: mapContext,
|
|
1228
|
-
count: 0
|
|
1229
|
-
};
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
function releaseTraverseContext(traverseContext) {
|
|
1234
|
-
traverseContext.result = null;
|
|
1235
|
-
traverseContext.keyPrefix = null;
|
|
1236
|
-
traverseContext.func = null;
|
|
1237
|
-
traverseContext.context = null;
|
|
1238
|
-
traverseContext.count = 0;
|
|
1239
|
-
|
|
1240
|
-
if (traverseContextPool.length < POOL_SIZE) {
|
|
1241
|
-
traverseContextPool.push(traverseContext);
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
/**
|
|
1245
|
-
* @param {?*} children Children tree container.
|
|
1246
|
-
* @param {!string} nameSoFar Name of the key path so far.
|
|
1247
|
-
* @param {!function} callback Callback to invoke with each child found.
|
|
1248
|
-
* @param {?*} traverseContext Used to pass information throughout the traversal
|
|
1249
|
-
* process.
|
|
1250
|
-
* @return {!number} The number of children in this subtree.
|
|
1251
|
-
*/
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
|
|
1255
|
-
var type = typeof children;
|
|
1256
|
-
|
|
1257
|
-
if (type === 'undefined' || type === 'boolean') {
|
|
1258
|
-
// All of the above are perceived as null.
|
|
1259
|
-
children = null;
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
var invokeCallback = false;
|
|
1263
|
-
|
|
1264
|
-
if (children === null) {
|
|
1265
|
-
invokeCallback = true;
|
|
1266
|
-
} else {
|
|
1267
|
-
switch (type) {
|
|
1268
|
-
case 'string':
|
|
1269
|
-
case 'number':
|
|
1270
|
-
invokeCallback = true;
|
|
1271
|
-
break;
|
|
1272
|
-
|
|
1273
|
-
case 'object':
|
|
1274
|
-
switch (children.$$typeof) {
|
|
1275
|
-
case REACT_ELEMENT_TYPE:
|
|
1276
|
-
case REACT_PORTAL_TYPE:
|
|
1277
|
-
invokeCallback = true;
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
if (invokeCallback) {
|
|
1284
|
-
callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
|
|
1285
|
-
// so that it's consistent if the number of children grows.
|
|
1286
|
-
nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
|
|
1287
|
-
return 1;
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
var child;
|
|
1291
|
-
var nextName;
|
|
1292
|
-
var subtreeCount = 0; // Count of children found in the current subtree.
|
|
1293
|
-
|
|
1294
|
-
var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
1295
|
-
|
|
1296
|
-
if (Array.isArray(children)) {
|
|
1297
|
-
for (var i = 0; i < children.length; i++) {
|
|
1298
|
-
child = children[i];
|
|
1299
|
-
nextName = nextNamePrefix + getComponentKey(child, i);
|
|
1300
|
-
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
|
1301
|
-
}
|
|
1302
|
-
} else {
|
|
1303
|
-
var iteratorFn = getIteratorFn(children);
|
|
1304
|
-
|
|
1305
|
-
if (typeof iteratorFn === 'function') {
|
|
1306
|
-
|
|
1307
|
-
{
|
|
1308
|
-
// Warn about using Maps as children
|
|
1309
|
-
if (iteratorFn === children.entries) {
|
|
1310
|
-
if (!didWarnAboutMaps) {
|
|
1311
|
-
warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
didWarnAboutMaps = true;
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
var iterator = iteratorFn.call(children);
|
|
1319
|
-
var step;
|
|
1320
|
-
var ii = 0;
|
|
1321
|
-
|
|
1322
|
-
while (!(step = iterator.next()).done) {
|
|
1323
|
-
child = step.value;
|
|
1324
|
-
nextName = nextNamePrefix + getComponentKey(child, ii++);
|
|
1325
|
-
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
|
1326
|
-
}
|
|
1327
|
-
} else if (type === 'object') {
|
|
1328
|
-
var addendum = '';
|
|
1329
|
-
|
|
1330
|
-
{
|
|
1331
|
-
addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
var childrenString = '' + children;
|
|
1335
|
-
|
|
1336
|
-
{
|
|
1337
|
-
{
|
|
1338
|
-
throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum );
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
return subtreeCount;
|
|
1345
|
-
}
|
|
1346
|
-
/**
|
|
1347
|
-
* Traverses children that are typically specified as `props.children`, but
|
|
1348
|
-
* might also be specified through attributes:
|
|
1349
|
-
*
|
|
1350
|
-
* - `traverseAllChildren(this.props.children, ...)`
|
|
1351
|
-
* - `traverseAllChildren(this.props.leftPanelChildren, ...)`
|
|
1352
|
-
*
|
|
1353
|
-
* The `traverseContext` is an optional argument that is passed through the
|
|
1354
|
-
* entire traversal. It can be used to store accumulations or anything else that
|
|
1355
|
-
* the callback might find relevant.
|
|
1356
|
-
*
|
|
1357
|
-
* @param {?*} children Children tree object.
|
|
1358
|
-
* @param {!function} callback To invoke upon traversing each child.
|
|
1359
|
-
* @param {?*} traverseContext Context for traversal.
|
|
1360
|
-
* @return {!number} The number of children in this subtree.
|
|
1361
|
-
*/
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
function traverseAllChildren(children, callback, traverseContext) {
|
|
1365
|
-
if (children == null) {
|
|
1366
|
-
return 0;
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
return traverseAllChildrenImpl(children, '', callback, traverseContext);
|
|
1370
|
-
}
|
|
1371
|
-
/**
|
|
1372
|
-
* Generate a key string that identifies a component within a set.
|
|
1373
|
-
*
|
|
1374
|
-
* @param {*} component A component that could contain a manual key.
|
|
1375
|
-
* @param {number} index Index that is used if a manual key is not provided.
|
|
1376
|
-
* @return {string}
|
|
1377
|
-
*/
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
function getComponentKey(component, index) {
|
|
1381
|
-
// Do some typechecking here since we call this blindly. We want to ensure
|
|
1382
|
-
// that we don't block potential future ES APIs.
|
|
1383
|
-
if (typeof component === 'object' && component !== null && component.key != null) {
|
|
1384
|
-
// Explicit key
|
|
1385
|
-
return escape(component.key);
|
|
1386
|
-
} // Implicit key determined by the index in the set
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
return index.toString(36);
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
function forEachSingleChild(bookKeeping, child, name) {
|
|
1393
|
-
var func = bookKeeping.func,
|
|
1394
|
-
context = bookKeeping.context;
|
|
1395
|
-
func.call(context, child, bookKeeping.count++);
|
|
1396
|
-
}
|
|
1397
|
-
/**
|
|
1398
|
-
* Iterates through children that are typically specified as `props.children`.
|
|
1399
|
-
*
|
|
1400
|
-
* See https://reactjs.org/docs/react-api.html#reactchildrenforeach
|
|
1401
|
-
*
|
|
1402
|
-
* The provided forEachFunc(child, index) will be called for each
|
|
1403
|
-
* leaf child.
|
|
1404
|
-
*
|
|
1405
|
-
* @param {?*} children Children tree container.
|
|
1406
|
-
* @param {function(*, int)} forEachFunc
|
|
1407
|
-
* @param {*} forEachContext Context for forEachContext.
|
|
1408
|
-
*/
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
function forEachChildren(children, forEachFunc, forEachContext) {
|
|
1412
|
-
if (children == null) {
|
|
1413
|
-
return children;
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
|
|
1417
|
-
traverseAllChildren(children, forEachSingleChild, traverseContext);
|
|
1418
|
-
releaseTraverseContext(traverseContext);
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
function mapSingleChildIntoContext(bookKeeping, child, childKey) {
|
|
1422
|
-
var result = bookKeeping.result,
|
|
1423
|
-
keyPrefix = bookKeeping.keyPrefix,
|
|
1424
|
-
func = bookKeeping.func,
|
|
1425
|
-
context = bookKeeping.context;
|
|
1426
|
-
var mappedChild = func.call(context, child, bookKeeping.count++);
|
|
1427
|
-
|
|
1428
|
-
if (Array.isArray(mappedChild)) {
|
|
1429
|
-
mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
|
|
1430
|
-
return c;
|
|
1431
|
-
});
|
|
1432
|
-
} else if (mappedChild != null) {
|
|
1433
|
-
if (isValidElement(mappedChild)) {
|
|
1434
|
-
mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
|
|
1435
|
-
// traverseAllChildren used to do for objects as children
|
|
1436
|
-
keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
result.push(mappedChild);
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
|
|
1444
|
-
var escapedPrefix = '';
|
|
1445
|
-
|
|
1446
|
-
if (prefix != null) {
|
|
1447
|
-
escapedPrefix = escapeUserProvidedKey(prefix) + '/';
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
|
|
1451
|
-
traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
|
|
1452
|
-
releaseTraverseContext(traverseContext);
|
|
1453
|
-
}
|
|
1454
|
-
/**
|
|
1455
|
-
* Maps children that are typically specified as `props.children`.
|
|
1456
|
-
*
|
|
1457
|
-
* See https://reactjs.org/docs/react-api.html#reactchildrenmap
|
|
1458
|
-
*
|
|
1459
|
-
* The provided mapFunction(child, key, index) will be called for each
|
|
1460
|
-
* leaf child.
|
|
1461
|
-
*
|
|
1462
|
-
* @param {?*} children Children tree container.
|
|
1463
|
-
* @param {function(*, int)} func The map function.
|
|
1464
|
-
* @param {*} context Context for mapFunction.
|
|
1465
|
-
* @return {object} Object containing the ordered map of results.
|
|
1466
|
-
*/
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
function mapChildren(children, func, context) {
|
|
1470
|
-
if (children == null) {
|
|
1471
|
-
return children;
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
var result = [];
|
|
1475
|
-
mapIntoWithKeyPrefixInternal(children, result, null, func, context);
|
|
1476
|
-
return result;
|
|
1477
|
-
}
|
|
1478
|
-
/**
|
|
1479
|
-
* Count the number of children that are typically specified as
|
|
1480
|
-
* `props.children`.
|
|
1481
|
-
*
|
|
1482
|
-
* See https://reactjs.org/docs/react-api.html#reactchildrencount
|
|
1483
|
-
*
|
|
1484
|
-
* @param {?*} children Children tree container.
|
|
1485
|
-
* @return {number} The number of children.
|
|
1486
|
-
*/
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
function countChildren(children) {
|
|
1490
|
-
return traverseAllChildren(children, function () {
|
|
1491
|
-
return null;
|
|
1492
|
-
}, null);
|
|
1493
|
-
}
|
|
1494
|
-
/**
|
|
1495
|
-
* Flatten a children object (typically specified as `props.children`) and
|
|
1496
|
-
* return an array with appropriately re-keyed children.
|
|
1497
|
-
*
|
|
1498
|
-
* See https://reactjs.org/docs/react-api.html#reactchildrentoarray
|
|
1499
|
-
*/
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
function toArray(children) {
|
|
1503
|
-
var result = [];
|
|
1504
|
-
mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
|
|
1505
|
-
return child;
|
|
1506
|
-
});
|
|
1507
|
-
return result;
|
|
1508
|
-
}
|
|
1509
|
-
/**
|
|
1510
|
-
* Returns the first child in a collection of children and verifies that there
|
|
1511
|
-
* is only one child in the collection.
|
|
1512
|
-
*
|
|
1513
|
-
* See https://reactjs.org/docs/react-api.html#reactchildrenonly
|
|
1514
|
-
*
|
|
1515
|
-
* The current implementation of this function assumes that a single child gets
|
|
1516
|
-
* passed without a wrapper, but the purpose of this helper function is to
|
|
1517
|
-
* abstract away the particular structure of children.
|
|
1518
|
-
*
|
|
1519
|
-
* @param {?object} children Child collection structure.
|
|
1520
|
-
* @return {ReactElement} The first and only `ReactElement` contained in the
|
|
1521
|
-
* structure.
|
|
1522
|
-
*/
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
function onlyChild(children) {
|
|
1526
|
-
if (!isValidElement(children)) {
|
|
1527
|
-
{
|
|
1528
|
-
throw Error( "React.Children.only expected to receive a single React element child." );
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
return children;
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
function createContext(defaultValue, calculateChangedBits) {
|
|
1536
|
-
if (calculateChangedBits === undefined) {
|
|
1537
|
-
calculateChangedBits = null;
|
|
1538
|
-
} else {
|
|
1539
|
-
{
|
|
1540
|
-
if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
|
|
1541
|
-
error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
var context = {
|
|
1547
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1548
|
-
_calculateChangedBits: calculateChangedBits,
|
|
1549
|
-
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1550
|
-
// some renderers as primary and others as secondary. We only expect
|
|
1551
|
-
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1552
|
-
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1553
|
-
// Secondary renderers store their context values on separate fields.
|
|
1554
|
-
_currentValue: defaultValue,
|
|
1555
|
-
_currentValue2: defaultValue,
|
|
1556
|
-
// Used to track how many concurrent renderers this context currently
|
|
1557
|
-
// supports within in a single renderer. Such as parallel server rendering.
|
|
1558
|
-
_threadCount: 0,
|
|
1559
|
-
// These are circular
|
|
1560
|
-
Provider: null,
|
|
1561
|
-
Consumer: null
|
|
1562
|
-
};
|
|
1563
|
-
context.Provider = {
|
|
1564
|
-
$$typeof: REACT_PROVIDER_TYPE,
|
|
1565
|
-
_context: context
|
|
1566
|
-
};
|
|
1567
|
-
var hasWarnedAboutUsingNestedContextConsumers = false;
|
|
1568
|
-
var hasWarnedAboutUsingConsumerProvider = false;
|
|
1569
|
-
|
|
1570
|
-
{
|
|
1571
|
-
// A separate object, but proxies back to the original context object for
|
|
1572
|
-
// backwards compatibility. It has a different $$typeof, so we can properly
|
|
1573
|
-
// warn for the incorrect usage of Context as a Consumer.
|
|
1574
|
-
var Consumer = {
|
|
1575
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1576
|
-
_context: context,
|
|
1577
|
-
_calculateChangedBits: context._calculateChangedBits
|
|
1578
|
-
}; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
|
|
1579
|
-
|
|
1580
|
-
Object.defineProperties(Consumer, {
|
|
1581
|
-
Provider: {
|
|
1582
|
-
get: function () {
|
|
1583
|
-
if (!hasWarnedAboutUsingConsumerProvider) {
|
|
1584
|
-
hasWarnedAboutUsingConsumerProvider = true;
|
|
1585
|
-
|
|
1586
|
-
error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
|
|
1587
|
-
}
|
|
1588
|
-
|
|
1589
|
-
return context.Provider;
|
|
1590
|
-
},
|
|
1591
|
-
set: function (_Provider) {
|
|
1592
|
-
context.Provider = _Provider;
|
|
1593
|
-
}
|
|
1594
|
-
},
|
|
1595
|
-
_currentValue: {
|
|
1596
|
-
get: function () {
|
|
1597
|
-
return context._currentValue;
|
|
1598
|
-
},
|
|
1599
|
-
set: function (_currentValue) {
|
|
1600
|
-
context._currentValue = _currentValue;
|
|
1601
|
-
}
|
|
1602
|
-
},
|
|
1603
|
-
_currentValue2: {
|
|
1604
|
-
get: function () {
|
|
1605
|
-
return context._currentValue2;
|
|
1606
|
-
},
|
|
1607
|
-
set: function (_currentValue2) {
|
|
1608
|
-
context._currentValue2 = _currentValue2;
|
|
1609
|
-
}
|
|
1610
|
-
},
|
|
1611
|
-
_threadCount: {
|
|
1612
|
-
get: function () {
|
|
1613
|
-
return context._threadCount;
|
|
1614
|
-
},
|
|
1615
|
-
set: function (_threadCount) {
|
|
1616
|
-
context._threadCount = _threadCount;
|
|
1617
|
-
}
|
|
1618
|
-
},
|
|
1619
|
-
Consumer: {
|
|
1620
|
-
get: function () {
|
|
1621
|
-
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
|
1622
|
-
hasWarnedAboutUsingNestedContextConsumers = true;
|
|
1623
|
-
|
|
1624
|
-
error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
return context.Consumer;
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
}); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
|
|
1631
|
-
|
|
1632
|
-
context.Consumer = Consumer;
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
{
|
|
1636
|
-
context._currentRenderer = null;
|
|
1637
|
-
context._currentRenderer2 = null;
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
return context;
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
function lazy(ctor) {
|
|
1644
|
-
var lazyType = {
|
|
1645
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1646
|
-
_ctor: ctor,
|
|
1647
|
-
// React uses these fields to store the result.
|
|
1648
|
-
_status: -1,
|
|
1649
|
-
_result: null
|
|
1650
|
-
};
|
|
1651
|
-
|
|
1652
|
-
{
|
|
1653
|
-
// In production, this would just set it on the object.
|
|
1654
|
-
var defaultProps;
|
|
1655
|
-
var propTypes;
|
|
1656
|
-
Object.defineProperties(lazyType, {
|
|
1657
|
-
defaultProps: {
|
|
1658
|
-
configurable: true,
|
|
1659
|
-
get: function () {
|
|
1660
|
-
return defaultProps;
|
|
1661
|
-
},
|
|
1662
|
-
set: function (newDefaultProps) {
|
|
1663
|
-
error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
|
|
1664
|
-
|
|
1665
|
-
defaultProps = newDefaultProps; // Match production behavior more closely:
|
|
1666
|
-
|
|
1667
|
-
Object.defineProperty(lazyType, 'defaultProps', {
|
|
1668
|
-
enumerable: true
|
|
1669
|
-
});
|
|
1670
|
-
}
|
|
1671
|
-
},
|
|
1672
|
-
propTypes: {
|
|
1673
|
-
configurable: true,
|
|
1674
|
-
get: function () {
|
|
1675
|
-
return propTypes;
|
|
1676
|
-
},
|
|
1677
|
-
set: function (newPropTypes) {
|
|
1678
|
-
error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
|
|
1679
|
-
|
|
1680
|
-
propTypes = newPropTypes; // Match production behavior more closely:
|
|
1681
|
-
|
|
1682
|
-
Object.defineProperty(lazyType, 'propTypes', {
|
|
1683
|
-
enumerable: true
|
|
1684
|
-
});
|
|
1685
|
-
}
|
|
1686
|
-
}
|
|
1687
|
-
});
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
return lazyType;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
function forwardRef(render) {
|
|
1694
|
-
{
|
|
1695
|
-
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
1696
|
-
error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
|
|
1697
|
-
} else if (typeof render !== 'function') {
|
|
1698
|
-
error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
|
|
1699
|
-
} else {
|
|
1700
|
-
if (render.length !== 0 && render.length !== 2) {
|
|
1701
|
-
error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
if (render != null) {
|
|
1706
|
-
if (render.defaultProps != null || render.propTypes != null) {
|
|
1707
|
-
error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
|
|
1708
|
-
}
|
|
1709
|
-
}
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
return {
|
|
1713
|
-
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1714
|
-
render: render
|
|
1715
|
-
};
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
function isValidElementType(type) {
|
|
1719
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1720
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
function memo(type, compare) {
|
|
1724
|
-
{
|
|
1725
|
-
if (!isValidElementType(type)) {
|
|
1726
|
-
error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
|
|
1727
|
-
}
|
|
1728
|
-
}
|
|
1729
|
-
|
|
1730
|
-
return {
|
|
1731
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1732
|
-
type: type,
|
|
1733
|
-
compare: compare === undefined ? null : compare
|
|
1734
|
-
};
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
function resolveDispatcher() {
|
|
1738
|
-
var dispatcher = ReactCurrentDispatcher.current;
|
|
1739
|
-
|
|
1740
|
-
if (!(dispatcher !== null)) {
|
|
1741
|
-
{
|
|
1742
|
-
throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." );
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
return dispatcher;
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
function useContext(Context, unstable_observedBits) {
|
|
1750
|
-
var dispatcher = resolveDispatcher();
|
|
1751
|
-
|
|
1752
|
-
{
|
|
1753
|
-
if (unstable_observedBits !== undefined) {
|
|
1754
|
-
error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '');
|
|
1755
|
-
} // TODO: add a more generic warning for invalid values.
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
if (Context._context !== undefined) {
|
|
1759
|
-
var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
|
|
1760
|
-
// and nobody should be using this in existing code.
|
|
1761
|
-
|
|
1762
|
-
if (realContext.Consumer === Context) {
|
|
1763
|
-
error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
|
|
1764
|
-
} else if (realContext.Provider === Context) {
|
|
1765
|
-
error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
|
|
1766
|
-
}
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
return dispatcher.useContext(Context, unstable_observedBits);
|
|
1771
|
-
}
|
|
1772
|
-
function useState(initialState) {
|
|
1773
|
-
var dispatcher = resolveDispatcher();
|
|
1774
|
-
return dispatcher.useState(initialState);
|
|
1775
|
-
}
|
|
1776
|
-
function useReducer(reducer, initialArg, init) {
|
|
1777
|
-
var dispatcher = resolveDispatcher();
|
|
1778
|
-
return dispatcher.useReducer(reducer, initialArg, init);
|
|
1779
|
-
}
|
|
1780
|
-
function useRef(initialValue) {
|
|
1781
|
-
var dispatcher = resolveDispatcher();
|
|
1782
|
-
return dispatcher.useRef(initialValue);
|
|
1783
|
-
}
|
|
1784
|
-
function useEffect(create, deps) {
|
|
1785
|
-
var dispatcher = resolveDispatcher();
|
|
1786
|
-
return dispatcher.useEffect(create, deps);
|
|
1787
|
-
}
|
|
1788
|
-
function useLayoutEffect(create, deps) {
|
|
1789
|
-
var dispatcher = resolveDispatcher();
|
|
1790
|
-
return dispatcher.useLayoutEffect(create, deps);
|
|
1791
|
-
}
|
|
1792
|
-
function useCallback(callback, deps) {
|
|
1793
|
-
var dispatcher = resolveDispatcher();
|
|
1794
|
-
return dispatcher.useCallback(callback, deps);
|
|
1795
|
-
}
|
|
1796
|
-
function useMemo(create, deps) {
|
|
1797
|
-
var dispatcher = resolveDispatcher();
|
|
1798
|
-
return dispatcher.useMemo(create, deps);
|
|
1799
|
-
}
|
|
1800
|
-
function useImperativeHandle(ref, create, deps) {
|
|
1801
|
-
var dispatcher = resolveDispatcher();
|
|
1802
|
-
return dispatcher.useImperativeHandle(ref, create, deps);
|
|
1803
|
-
}
|
|
1804
|
-
function useDebugValue(value, formatterFn) {
|
|
1805
|
-
{
|
|
1806
|
-
var dispatcher = resolveDispatcher();
|
|
1807
|
-
return dispatcher.useDebugValue(value, formatterFn);
|
|
1808
|
-
}
|
|
1809
|
-
}
|
|
1810
|
-
|
|
1811
|
-
var propTypesMisspellWarningShown;
|
|
1812
|
-
|
|
1813
|
-
{
|
|
1814
|
-
propTypesMisspellWarningShown = false;
|
|
1815
|
-
}
|
|
1816
|
-
|
|
1817
|
-
function getDeclarationErrorAddendum() {
|
|
1818
|
-
if (ReactCurrentOwner.current) {
|
|
1819
|
-
var name = getComponentName(ReactCurrentOwner.current.type);
|
|
1820
|
-
|
|
1821
|
-
if (name) {
|
|
1822
|
-
return '\n\nCheck the render method of `' + name + '`.';
|
|
1823
|
-
}
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
return '';
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
function getSourceInfoErrorAddendum(source) {
|
|
1830
|
-
if (source !== undefined) {
|
|
1831
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
|
1832
|
-
var lineNumber = source.lineNumber;
|
|
1833
|
-
return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
return '';
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
1840
|
-
if (elementProps !== null && elementProps !== undefined) {
|
|
1841
|
-
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
1842
|
-
}
|
|
1843
|
-
|
|
1844
|
-
return '';
|
|
1845
|
-
}
|
|
1846
|
-
/**
|
|
1847
|
-
* Warn if there's no key explicitly set on dynamic arrays of children or
|
|
1848
|
-
* object keys are not valid. This allows us to keep track of children between
|
|
1849
|
-
* updates.
|
|
1850
|
-
*/
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
var ownerHasKeyUseWarning = {};
|
|
1854
|
-
|
|
1855
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
1856
|
-
var info = getDeclarationErrorAddendum();
|
|
1857
|
-
|
|
1858
|
-
if (!info) {
|
|
1859
|
-
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
|
|
1860
|
-
|
|
1861
|
-
if (parentName) {
|
|
1862
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
1863
|
-
}
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
|
-
return info;
|
|
1867
|
-
}
|
|
1868
|
-
/**
|
|
1869
|
-
* Warn if the element doesn't have an explicit key assigned to it.
|
|
1870
|
-
* This element is in an array. The array could grow and shrink or be
|
|
1871
|
-
* reordered. All children that haven't already been validated are required to
|
|
1872
|
-
* have a "key" property assigned to it. Error statuses are cached so a warning
|
|
1873
|
-
* will only be shown once.
|
|
1874
|
-
*
|
|
1875
|
-
* @internal
|
|
1876
|
-
* @param {ReactElement} element Element that requires a key.
|
|
1877
|
-
* @param {*} parentType element's parent's type.
|
|
1878
|
-
*/
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
function validateExplicitKey(element, parentType) {
|
|
1882
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
1883
|
-
return;
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
element._store.validated = true;
|
|
1887
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
1888
|
-
|
|
1889
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
1890
|
-
return;
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
|
|
1894
|
-
// property, it may be the creator of the child that's responsible for
|
|
1895
|
-
// assigning it a key.
|
|
1896
|
-
|
|
1897
|
-
var childOwner = '';
|
|
1898
|
-
|
|
1899
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
1900
|
-
// Give the component that originally created this child.
|
|
1901
|
-
childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
|
-
setCurrentlyValidatingElement(element);
|
|
1905
|
-
|
|
1906
|
-
{
|
|
1907
|
-
error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
1908
|
-
}
|
|
1909
|
-
|
|
1910
|
-
setCurrentlyValidatingElement(null);
|
|
1911
|
-
}
|
|
1912
|
-
/**
|
|
1913
|
-
* Ensure that every element either is passed in a static location, in an
|
|
1914
|
-
* array with an explicit keys property defined, or in an object literal
|
|
1915
|
-
* with valid key property.
|
|
1916
|
-
*
|
|
1917
|
-
* @internal
|
|
1918
|
-
* @param {ReactNode} node Statically passed child of any type.
|
|
1919
|
-
* @param {*} parentType node's parent's type.
|
|
1920
|
-
*/
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
function validateChildKeys(node, parentType) {
|
|
1924
|
-
if (typeof node !== 'object') {
|
|
1925
|
-
return;
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
|
-
if (Array.isArray(node)) {
|
|
1929
|
-
for (var i = 0; i < node.length; i++) {
|
|
1930
|
-
var child = node[i];
|
|
1931
|
-
|
|
1932
|
-
if (isValidElement(child)) {
|
|
1933
|
-
validateExplicitKey(child, parentType);
|
|
1934
|
-
}
|
|
1935
|
-
}
|
|
1936
|
-
} else if (isValidElement(node)) {
|
|
1937
|
-
// This element was passed in a valid location.
|
|
1938
|
-
if (node._store) {
|
|
1939
|
-
node._store.validated = true;
|
|
1940
|
-
}
|
|
1941
|
-
} else if (node) {
|
|
1942
|
-
var iteratorFn = getIteratorFn(node);
|
|
1943
|
-
|
|
1944
|
-
if (typeof iteratorFn === 'function') {
|
|
1945
|
-
// Entry iterators used to provide implicit keys,
|
|
1946
|
-
// but now we print a separate warning for them later.
|
|
1947
|
-
if (iteratorFn !== node.entries) {
|
|
1948
|
-
var iterator = iteratorFn.call(node);
|
|
1949
|
-
var step;
|
|
1950
|
-
|
|
1951
|
-
while (!(step = iterator.next()).done) {
|
|
1952
|
-
if (isValidElement(step.value)) {
|
|
1953
|
-
validateExplicitKey(step.value, parentType);
|
|
1954
|
-
}
|
|
1955
|
-
}
|
|
1956
|
-
}
|
|
1957
|
-
}
|
|
1958
|
-
}
|
|
1959
|
-
}
|
|
1960
|
-
/**
|
|
1961
|
-
* Given an element, validate that its props follow the propTypes definition,
|
|
1962
|
-
* provided by the type.
|
|
1963
|
-
*
|
|
1964
|
-
* @param {ReactElement} element
|
|
1965
|
-
*/
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
function validatePropTypes(element) {
|
|
1969
|
-
{
|
|
1970
|
-
var type = element.type;
|
|
1971
|
-
|
|
1972
|
-
if (type === null || type === undefined || typeof type === 'string') {
|
|
1973
|
-
return;
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
var name = getComponentName(type);
|
|
1977
|
-
var propTypes;
|
|
1978
|
-
|
|
1979
|
-
if (typeof type === 'function') {
|
|
1980
|
-
propTypes = type.propTypes;
|
|
1981
|
-
} else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
1982
|
-
// Inner props are checked in the reconciler.
|
|
1983
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
1984
|
-
propTypes = type.propTypes;
|
|
1985
|
-
} else {
|
|
1986
|
-
return;
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
if (propTypes) {
|
|
1990
|
-
setCurrentlyValidatingElement(element);
|
|
1991
|
-
checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
|
|
1992
|
-
setCurrentlyValidatingElement(null);
|
|
1993
|
-
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
1994
|
-
propTypesMisspellWarningShown = true;
|
|
1995
|
-
|
|
1996
|
-
error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
|
|
2000
|
-
error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
|
|
2001
|
-
}
|
|
2002
|
-
}
|
|
2003
|
-
}
|
|
2004
|
-
/**
|
|
2005
|
-
* Given a fragment, validate that it can only be provided with fragment props
|
|
2006
|
-
* @param {ReactElement} fragment
|
|
2007
|
-
*/
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
function validateFragmentProps(fragment) {
|
|
2011
|
-
{
|
|
2012
|
-
setCurrentlyValidatingElement(fragment);
|
|
2013
|
-
var keys = Object.keys(fragment.props);
|
|
2014
|
-
|
|
2015
|
-
for (var i = 0; i < keys.length; i++) {
|
|
2016
|
-
var key = keys[i];
|
|
2017
|
-
|
|
2018
|
-
if (key !== 'children' && key !== 'key') {
|
|
2019
|
-
error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
|
|
2020
|
-
|
|
2021
|
-
break;
|
|
2022
|
-
}
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
if (fragment.ref !== null) {
|
|
2026
|
-
error('Invalid attribute `ref` supplied to `React.Fragment`.');
|
|
2027
|
-
}
|
|
2028
|
-
|
|
2029
|
-
setCurrentlyValidatingElement(null);
|
|
2030
|
-
}
|
|
2031
|
-
}
|
|
2032
|
-
function createElementWithValidation(type, props, children) {
|
|
2033
|
-
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
|
|
2034
|
-
// succeed and there will likely be errors in render.
|
|
2035
|
-
|
|
2036
|
-
if (!validType) {
|
|
2037
|
-
var info = '';
|
|
2038
|
-
|
|
2039
|
-
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
2040
|
-
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
|
2041
|
-
}
|
|
2042
|
-
|
|
2043
|
-
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
2044
|
-
|
|
2045
|
-
if (sourceInfo) {
|
|
2046
|
-
info += sourceInfo;
|
|
2047
|
-
} else {
|
|
2048
|
-
info += getDeclarationErrorAddendum();
|
|
2049
|
-
}
|
|
2050
|
-
|
|
2051
|
-
var typeString;
|
|
2052
|
-
|
|
2053
|
-
if (type === null) {
|
|
2054
|
-
typeString = 'null';
|
|
2055
|
-
} else if (Array.isArray(type)) {
|
|
2056
|
-
typeString = 'array';
|
|
2057
|
-
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
2058
|
-
typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
|
|
2059
|
-
info = ' Did you accidentally export a JSX literal instead of a component?';
|
|
2060
|
-
} else {
|
|
2061
|
-
typeString = typeof type;
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
{
|
|
2065
|
-
error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
|
|
2066
|
-
}
|
|
2067
|
-
}
|
|
2068
|
-
|
|
2069
|
-
var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
|
|
2070
|
-
// TODO: Drop this when these are no longer allowed as the type argument.
|
|
2071
|
-
|
|
2072
|
-
if (element == null) {
|
|
2073
|
-
return element;
|
|
2074
|
-
} // Skip key warning if the type isn't valid since our key validation logic
|
|
2075
|
-
// doesn't expect a non-string/function type and can throw confusing errors.
|
|
2076
|
-
// We don't want exception behavior to differ between dev and prod.
|
|
2077
|
-
// (Rendering will throw with a helpful message and as soon as the type is
|
|
2078
|
-
// fixed, the key warnings will appear.)
|
|
47
|
+
var reactDom = {exports: {}};
|
|
2079
48
|
|
|
49
|
+
var reactDom_production_min = {};
|
|
2080
50
|
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
51
|
+
/*
|
|
52
|
+
object-assign
|
|
53
|
+
(c) Sindre Sorhus
|
|
54
|
+
@license MIT
|
|
55
|
+
*/
|
|
56
|
+
/* eslint-disable no-unused-vars */
|
|
57
|
+
var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
|
|
58
|
+
var hasOwnProperty$f = Object.prototype.hasOwnProperty;
|
|
59
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
2086
60
|
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
}
|
|
61
|
+
function toObject(val) {
|
|
62
|
+
if (val === null || val === undefined) {
|
|
63
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
64
|
+
}
|
|
2092
65
|
|
|
2093
|
-
|
|
66
|
+
return Object(val);
|
|
2094
67
|
}
|
|
2095
|
-
var didWarnAboutDeprecatedCreateFactory = false;
|
|
2096
|
-
function createFactoryWithValidation(type) {
|
|
2097
|
-
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
2098
|
-
validatedFactory.type = type;
|
|
2099
68
|
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
69
|
+
function shouldUseNative() {
|
|
70
|
+
try {
|
|
71
|
+
if (!Object.assign) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
2103
74
|
|
|
2104
|
-
|
|
2105
|
-
} // Legacy hook: remove it
|
|
75
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
2106
76
|
|
|
77
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
78
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
79
|
+
test1[5] = 'de';
|
|
80
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
2107
83
|
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
84
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
85
|
+
var test2 = {};
|
|
86
|
+
for (var i = 0; i < 10; i++) {
|
|
87
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
88
|
+
}
|
|
89
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
90
|
+
return test2[n];
|
|
91
|
+
});
|
|
92
|
+
if (order2.join('') !== '0123456789') {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
2112
95
|
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
96
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
97
|
+
var test3 = {};
|
|
98
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
99
|
+
test3[letter] = letter;
|
|
100
|
+
});
|
|
101
|
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
102
|
+
'abcdefghijklmnopqrst') {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
2120
105
|
|
|
2121
|
-
|
|
106
|
+
return true;
|
|
107
|
+
} catch (err) {
|
|
108
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
2122
111
|
}
|
|
2123
|
-
function cloneElementWithValidation(element, props, children) {
|
|
2124
|
-
var newElement = cloneElement.apply(this, arguments);
|
|
2125
112
|
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
validatePropTypes(newElement);
|
|
2131
|
-
return newElement;
|
|
2132
|
-
}
|
|
113
|
+
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
114
|
+
var from;
|
|
115
|
+
var to = toObject(target);
|
|
116
|
+
var symbols;
|
|
2133
117
|
|
|
2134
|
-
{
|
|
118
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
119
|
+
from = Object(arguments[s]);
|
|
2135
120
|
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
// TODO: we can remove these if Rollup fixes the bug.
|
|
121
|
+
for (var key in from) {
|
|
122
|
+
if (hasOwnProperty$f.call(from, key)) {
|
|
123
|
+
to[key] = from[key];
|
|
124
|
+
}
|
|
125
|
+
}
|
|
2142
126
|
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
127
|
+
if (getOwnPropertySymbols$1) {
|
|
128
|
+
symbols = getOwnPropertySymbols$1(from);
|
|
129
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
130
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
131
|
+
to[symbols[i]] = from[symbols[i]];
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
2148
136
|
|
|
2149
|
-
|
|
2150
|
-
var cloneElement$1 = cloneElementWithValidation ;
|
|
2151
|
-
var createFactory = createFactoryWithValidation ;
|
|
2152
|
-
var Children = {
|
|
2153
|
-
map: mapChildren,
|
|
2154
|
-
forEach: forEachChildren,
|
|
2155
|
-
count: countChildren,
|
|
2156
|
-
toArray: toArray,
|
|
2157
|
-
only: onlyChild
|
|
137
|
+
return to;
|
|
2158
138
|
};
|
|
2159
139
|
|
|
2160
|
-
react_development.Children = Children;
|
|
2161
|
-
react_development.Component = Component;
|
|
2162
|
-
react_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
2163
|
-
react_development.Profiler = REACT_PROFILER_TYPE;
|
|
2164
|
-
react_development.PureComponent = PureComponent;
|
|
2165
|
-
react_development.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2166
|
-
react_development.Suspense = REACT_SUSPENSE_TYPE;
|
|
2167
|
-
react_development.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
2168
|
-
react_development.cloneElement = cloneElement$1;
|
|
2169
|
-
react_development.createContext = createContext;
|
|
2170
|
-
react_development.createElement = createElement$1;
|
|
2171
|
-
react_development.createFactory = createFactory;
|
|
2172
|
-
react_development.createRef = createRef;
|
|
2173
|
-
react_development.forwardRef = forwardRef;
|
|
2174
|
-
react_development.isValidElement = isValidElement;
|
|
2175
|
-
react_development.lazy = lazy;
|
|
2176
|
-
react_development.memo = memo;
|
|
2177
|
-
react_development.useCallback = useCallback;
|
|
2178
|
-
react_development.useContext = useContext;
|
|
2179
|
-
react_development.useDebugValue = useDebugValue;
|
|
2180
|
-
react_development.useEffect = useEffect;
|
|
2181
|
-
react_development.useImperativeHandle = useImperativeHandle;
|
|
2182
|
-
react_development.useLayoutEffect = useLayoutEffect;
|
|
2183
|
-
react_development.useMemo = useMemo;
|
|
2184
|
-
react_development.useReducer = useReducer;
|
|
2185
|
-
react_development.useRef = useRef;
|
|
2186
|
-
react_development.useState = useState;
|
|
2187
|
-
react_development.version = ReactVersion;
|
|
2188
|
-
})();
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
if (process.env.NODE_ENV === 'production') {
|
|
2192
|
-
react.exports = react_production_min;
|
|
2193
|
-
} else {
|
|
2194
|
-
react.exports = react_development;
|
|
2195
|
-
}
|
|
2196
|
-
|
|
2197
|
-
var React = react.exports;
|
|
2198
|
-
|
|
2199
|
-
var reactDom = {exports: {}};
|
|
2200
|
-
|
|
2201
|
-
var reactDom_production_min = {};
|
|
2202
|
-
|
|
2203
140
|
var scheduler = {exports: {}};
|
|
2204
141
|
|
|
2205
142
|
var scheduler_production_min = {};
|
|
@@ -3100,7 +1037,7 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
3100
1037
|
* This source code is licensed under the MIT license found in the
|
|
3101
1038
|
* LICENSE file in the root directory of this source tree.
|
|
3102
1039
|
*/
|
|
3103
|
-
var aa=
|
|
1040
|
+
var aa=React,n$1=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));
|
|
3104
1041
|
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;
|
|
3105
1042
|
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={};
|
|
3106
1043
|
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));}}}}
|
|
@@ -3383,6 +1320,121 @@ reactDom_production_min.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if
|
|
|
3383
1320
|
|
|
3384
1321
|
var reactDom_development = {};
|
|
3385
1322
|
|
|
1323
|
+
/**
|
|
1324
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1325
|
+
*
|
|
1326
|
+
* This source code is licensed under the MIT license found in the
|
|
1327
|
+
* LICENSE file in the root directory of this source tree.
|
|
1328
|
+
*/
|
|
1329
|
+
|
|
1330
|
+
var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
1331
|
+
|
|
1332
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
1333
|
+
|
|
1334
|
+
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1338
|
+
*
|
|
1339
|
+
* This source code is licensed under the MIT license found in the
|
|
1340
|
+
* LICENSE file in the root directory of this source tree.
|
|
1341
|
+
*/
|
|
1342
|
+
|
|
1343
|
+
var printWarning$2 = function() {};
|
|
1344
|
+
|
|
1345
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1346
|
+
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
|
|
1347
|
+
var loggedTypeFailures = {};
|
|
1348
|
+
var has$1 = has$2;
|
|
1349
|
+
|
|
1350
|
+
printWarning$2 = function(text) {
|
|
1351
|
+
var message = 'Warning: ' + text;
|
|
1352
|
+
if (typeof console !== 'undefined') {
|
|
1353
|
+
console.error(message);
|
|
1354
|
+
}
|
|
1355
|
+
try {
|
|
1356
|
+
// --- Welcome to debugging React ---
|
|
1357
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
1358
|
+
// to find the callsite that caused this warning to fire.
|
|
1359
|
+
throw new Error(message);
|
|
1360
|
+
} catch (x) { /**/ }
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* Assert that the values match with the type specs.
|
|
1366
|
+
* Error messages are memorized and will only be shown once.
|
|
1367
|
+
*
|
|
1368
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
1369
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
1370
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
1371
|
+
* @param {string} componentName Name of the component for error messages.
|
|
1372
|
+
* @param {?Function} getStack Returns the component stack.
|
|
1373
|
+
* @private
|
|
1374
|
+
*/
|
|
1375
|
+
function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
|
|
1376
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1377
|
+
for (var typeSpecName in typeSpecs) {
|
|
1378
|
+
if (has$1(typeSpecs, typeSpecName)) {
|
|
1379
|
+
var error;
|
|
1380
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
1381
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
1382
|
+
// After these have been cleaned up, we'll let them throw.
|
|
1383
|
+
try {
|
|
1384
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
1385
|
+
// behavior as without this statement except with a better message.
|
|
1386
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
1387
|
+
var err = Error(
|
|
1388
|
+
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
1389
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
1390
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
1391
|
+
);
|
|
1392
|
+
err.name = 'Invariant Violation';
|
|
1393
|
+
throw err;
|
|
1394
|
+
}
|
|
1395
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
|
|
1396
|
+
} catch (ex) {
|
|
1397
|
+
error = ex;
|
|
1398
|
+
}
|
|
1399
|
+
if (error && !(error instanceof Error)) {
|
|
1400
|
+
printWarning$2(
|
|
1401
|
+
(componentName || 'React class') + ': type specification of ' +
|
|
1402
|
+
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
1403
|
+
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
1404
|
+
'You may have forgotten to pass an argument to the type checker ' +
|
|
1405
|
+
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
1406
|
+
'shape all require an argument).'
|
|
1407
|
+
);
|
|
1408
|
+
}
|
|
1409
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
1410
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
1411
|
+
// same error.
|
|
1412
|
+
loggedTypeFailures[error.message] = true;
|
|
1413
|
+
|
|
1414
|
+
var stack = getStack ? getStack() : '';
|
|
1415
|
+
|
|
1416
|
+
printWarning$2(
|
|
1417
|
+
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
1418
|
+
);
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* Resets warning cache when testing.
|
|
1427
|
+
*
|
|
1428
|
+
* @private
|
|
1429
|
+
*/
|
|
1430
|
+
checkPropTypes$1.resetWarningCache = function() {
|
|
1431
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1432
|
+
loggedTypeFailures = {};
|
|
1433
|
+
}
|
|
1434
|
+
};
|
|
1435
|
+
|
|
1436
|
+
var checkPropTypes_1 = checkPropTypes$1;
|
|
1437
|
+
|
|
3386
1438
|
var tracing = {exports: {}};
|
|
3387
1439
|
|
|
3388
1440
|
var schedulerTracing_production_min = {};
|
|
@@ -3769,13 +1821,13 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
3769
1821
|
if (process.env.NODE_ENV !== "production") {
|
|
3770
1822
|
(function() {
|
|
3771
1823
|
|
|
3772
|
-
var React =
|
|
1824
|
+
var React$1 = React;
|
|
3773
1825
|
var _assign = objectAssign;
|
|
3774
1826
|
var Scheduler = scheduler.exports;
|
|
3775
1827
|
var checkPropTypes = checkPropTypes_1;
|
|
3776
1828
|
var tracing$1 = tracing.exports;
|
|
3777
1829
|
|
|
3778
|
-
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.
|
|
1830
|
+
var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.
|
|
3779
1831
|
// Current owner and dispatcher used to share the same ref,
|
|
3780
1832
|
// but PR #14548 split them out to better support the react-debug-tools package.
|
|
3781
1833
|
|
|
@@ -3854,7 +1906,7 @@ function printWarning(level, format, args) {
|
|
|
3854
1906
|
}
|
|
3855
1907
|
}
|
|
3856
1908
|
|
|
3857
|
-
if (!React) {
|
|
1909
|
+
if (!React$1) {
|
|
3858
1910
|
{
|
|
3859
1911
|
throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." );
|
|
3860
1912
|
}
|
|
@@ -5821,7 +3873,7 @@ function flattenChildren(children) {
|
|
|
5821
3873
|
// Elements are stringified (which is normally irrelevant
|
|
5822
3874
|
// but matters for <fbt>).
|
|
5823
3875
|
|
|
5824
|
-
React.Children.forEach(children, function (child) {
|
|
3876
|
+
React$1.Children.forEach(children, function (child) {
|
|
5825
3877
|
if (child == null) {
|
|
5826
3878
|
return;
|
|
5827
3879
|
}
|
|
@@ -5844,7 +3896,7 @@ function validateProps(element, props) {
|
|
|
5844
3896
|
// TODO: this seems like it could cause a DEV-only throw for hydration
|
|
5845
3897
|
// if children contains a non-element object. We should try to avoid that.
|
|
5846
3898
|
if (typeof props.children === 'object' && props.children !== null) {
|
|
5847
|
-
React.Children.forEach(props.children, function (child) {
|
|
3899
|
+
React$1.Children.forEach(props.children, function (child) {
|
|
5848
3900
|
if (child == null) {
|
|
5849
3901
|
return;
|
|
5850
3902
|
}
|
|
@@ -16275,7 +14327,7 @@ var fakeInternalInstance = {};
|
|
|
16275
14327
|
var isArray = Array.isArray; // React.Component uses a shared frozen object by default.
|
|
16276
14328
|
// We'll use it to determine whether we need to initialize legacy refs.
|
|
16277
14329
|
|
|
16278
|
-
var emptyRefsObject = new React.Component().refs;
|
|
14330
|
+
var emptyRefsObject = new React$1.Component().refs;
|
|
16279
14331
|
var didWarnAboutStateAssignmentForComponent;
|
|
16280
14332
|
var didWarnAboutUninitializedState;
|
|
16281
14333
|
var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
|
|
@@ -40315,7 +38367,7 @@ var _getPrototypeOf2$6 = _interopRequireDefault$D(getPrototypeOf$1.exports);
|
|
|
40315
38367
|
|
|
40316
38368
|
var _inherits2$e = _interopRequireDefault$D(inherits.exports);
|
|
40317
38369
|
|
|
40318
|
-
var _react$u = _interopRequireDefault$D(
|
|
38370
|
+
var _react$u = _interopRequireDefault$D(React);
|
|
40319
38371
|
|
|
40320
38372
|
var _propTypes$k = _interopRequireDefault$D(propTypes.exports);
|
|
40321
38373
|
|
|
@@ -40819,7 +38871,7 @@ var _inherits2$d = _interopRequireDefault$A(inherits.exports);
|
|
|
40819
38871
|
|
|
40820
38872
|
var _objectWithoutProperties2$f = _interopRequireDefault$A(objectWithoutProperties.exports);
|
|
40821
38873
|
|
|
40822
|
-
var _react$t = _interopRequireDefault$A(
|
|
38874
|
+
var _react$t = _interopRequireDefault$A(React);
|
|
40823
38875
|
|
|
40824
38876
|
var _propTypes$j = _interopRequireDefault$A(propTypes.exports);
|
|
40825
38877
|
|
|
@@ -41210,7 +39262,7 @@ var _getPrototypeOf2$4 = _interopRequireDefault$z(getPrototypeOf$1.exports);
|
|
|
41210
39262
|
|
|
41211
39263
|
var _inherits2$c = _interopRequireDefault$z(inherits.exports);
|
|
41212
39264
|
|
|
41213
|
-
var _react$s = _interopRequireDefault$z(
|
|
39265
|
+
var _react$s = _interopRequireDefault$z(React);
|
|
41214
39266
|
|
|
41215
39267
|
var _propTypes$i = _interopRequireDefault$z(propTypes.exports);
|
|
41216
39268
|
|
|
@@ -41472,7 +39524,7 @@ reactHelpers.cloneChildrenWithClassName = cloneChildrenWithClassName;
|
|
|
41472
39524
|
reactHelpers.isMuiElement = isMuiElement;
|
|
41473
39525
|
reactHelpers.setRef = setRef;
|
|
41474
39526
|
|
|
41475
|
-
var _react$r = _interopRequireDefault$y(
|
|
39527
|
+
var _react$r = _interopRequireDefault$y(React);
|
|
41476
39528
|
|
|
41477
39529
|
var _classnames$c = _interopRequireDefault$y(classnames$1.exports);
|
|
41478
39530
|
|
|
@@ -41517,7 +39569,7 @@ var _getPrototypeOf2$3 = _interopRequireDefault$x(getPrototypeOf$1.exports);
|
|
|
41517
39569
|
|
|
41518
39570
|
var _inherits2$b = _interopRequireDefault$x(inherits.exports);
|
|
41519
39571
|
|
|
41520
|
-
var _react$q = _interopRequireDefault$x(
|
|
39572
|
+
var _react$q = _interopRequireDefault$x(React);
|
|
41521
39573
|
|
|
41522
39574
|
var _reactDom$5 = _interopRequireDefault$x(reactDom.exports);
|
|
41523
39575
|
|
|
@@ -41935,7 +39987,7 @@ Transition$1.default = Transition$1.EXITING = Transition$1.ENTERED = Transition$
|
|
|
41935
39987
|
|
|
41936
39988
|
var PropTypes = _interopRequireWildcard(propTypes.exports);
|
|
41937
39989
|
|
|
41938
|
-
var _react$p = _interopRequireDefault$u(
|
|
39990
|
+
var _react$p = _interopRequireDefault$u(React);
|
|
41939
39991
|
|
|
41940
39992
|
var _reactDom$4 = _interopRequireDefault$u(reactDom.exports);
|
|
41941
39993
|
|
|
@@ -42583,7 +40635,7 @@ var _getPrototypeOf3$7 = _interopRequireDefault$t(getPrototypeOf$1.exports);
|
|
|
42583
40635
|
|
|
42584
40636
|
var _inherits2$a = _interopRequireDefault$t(inherits.exports);
|
|
42585
40637
|
|
|
42586
|
-
var _react$o = _interopRequireDefault$t(
|
|
40638
|
+
var _react$o = _interopRequireDefault$t(React);
|
|
42587
40639
|
|
|
42588
40640
|
var _propTypes$f = _interopRequireDefault$t(propTypes.exports);
|
|
42589
40641
|
|
|
@@ -45474,7 +43526,7 @@ var _getPrototypeOf3$6 = _interopRequireDefault$s(getPrototypeOf$1.exports);
|
|
|
45474
43526
|
|
|
45475
43527
|
var _inherits2$9 = _interopRequireDefault$s(inherits.exports);
|
|
45476
43528
|
|
|
45477
|
-
var _react$n = _interopRequireDefault$s(
|
|
43529
|
+
var _react$n = _interopRequireDefault$s(React);
|
|
45478
43530
|
|
|
45479
43531
|
var _reactDom$3 = _interopRequireDefault$s(reactDom.exports);
|
|
45480
43532
|
|
|
@@ -45665,7 +43717,7 @@ var _inherits2$8 = _interopRequireDefault$r(inherits.exports);
|
|
|
45665
43717
|
|
|
45666
43718
|
var _assertThisInitialized2$2 = _interopRequireDefault$r(assertThisInitialized.exports);
|
|
45667
43719
|
|
|
45668
|
-
var _react$m = _interopRequireDefault$r(
|
|
43720
|
+
var _react$m = _interopRequireDefault$r(React);
|
|
45669
43721
|
|
|
45670
43722
|
var _reactDom$2 = _interopRequireDefault$r(reactDom.exports);
|
|
45671
43723
|
|
|
@@ -45989,7 +44041,7 @@ var _inherits2$7 = _interopRequireDefault$q(inherits.exports);
|
|
|
45989
44041
|
|
|
45990
44042
|
var _defineProperty2$9 = _interopRequireDefault$q(defineProperty$3.exports);
|
|
45991
44043
|
|
|
45992
|
-
var _react$l = _interopRequireDefault$q(
|
|
44044
|
+
var _react$l = _interopRequireDefault$q(React);
|
|
45993
44045
|
|
|
45994
44046
|
var _propTypes$c = _interopRequireDefault$q(propTypes.exports);
|
|
45995
44047
|
|
|
@@ -46531,7 +44583,7 @@ var _defineProperty2$8 = _interopRequireDefault$p(defineProperty$3.exports);
|
|
|
46531
44583
|
|
|
46532
44584
|
var _objectWithoutProperties2$a = _interopRequireDefault$p(objectWithoutProperties.exports);
|
|
46533
44585
|
|
|
46534
|
-
var _react$k = _interopRequireDefault$p(
|
|
44586
|
+
var _react$k = _interopRequireDefault$p(React);
|
|
46535
44587
|
|
|
46536
44588
|
var _propTypes$b = _interopRequireDefault$p(propTypes.exports);
|
|
46537
44589
|
|
|
@@ -46925,7 +44977,7 @@ var _getPrototypeOf3$5 = _interopRequireDefault$o(getPrototypeOf$1.exports);
|
|
|
46925
44977
|
|
|
46926
44978
|
var _inherits2$6 = _interopRequireDefault$o(inherits.exports);
|
|
46927
44979
|
|
|
46928
|
-
var _react$j = _interopRequireDefault$o(
|
|
44980
|
+
var _react$j = _interopRequireDefault$o(React);
|
|
46929
44981
|
|
|
46930
44982
|
var _classnames$9 = _interopRequireDefault$o(classnames$1.exports);
|
|
46931
44983
|
|
|
@@ -47262,7 +45314,7 @@ var _objectWithoutProperties2$8 = _interopRequireDefault$n(objectWithoutProperti
|
|
|
47262
45314
|
|
|
47263
45315
|
var _extends2$8 = _interopRequireDefault$n(_extends$2.exports);
|
|
47264
45316
|
|
|
47265
|
-
var _react$i = _interopRequireDefault$n(
|
|
45317
|
+
var _react$i = _interopRequireDefault$n(React);
|
|
47266
45318
|
|
|
47267
45319
|
var _propTypes$9 = _interopRequireDefault$n(propTypes.exports);
|
|
47268
45320
|
|
|
@@ -47396,7 +45448,7 @@ var _getPrototypeOf2 = _interopRequireDefault$m(getPrototypeOf$1.exports);
|
|
|
47396
45448
|
|
|
47397
45449
|
var _inherits2$5 = _interopRequireDefault$m(inherits.exports);
|
|
47398
45450
|
|
|
47399
|
-
var _react$h = _interopRequireDefault$m(
|
|
45451
|
+
var _react$h = _interopRequireDefault$m(React);
|
|
47400
45452
|
|
|
47401
45453
|
var _propTypes$8 = _interopRequireDefault$m(propTypes.exports);
|
|
47402
45454
|
|
|
@@ -47708,7 +45760,7 @@ var _getPrototypeOf3$4 = _interopRequireDefault$k(getPrototypeOf$1.exports);
|
|
|
47708
45760
|
|
|
47709
45761
|
var _inherits2$4 = _interopRequireDefault$k(inherits.exports);
|
|
47710
45762
|
|
|
47711
|
-
var _react$g = _interopRequireDefault$k(
|
|
45763
|
+
var _react$g = _interopRequireDefault$k(React);
|
|
47712
45764
|
|
|
47713
45765
|
var _propTypes$7 = _interopRequireDefault$k(propTypes.exports);
|
|
47714
45766
|
|
|
@@ -48012,7 +46064,7 @@ ChildMapping.mergeChildMappings = mergeChildMappings;
|
|
|
48012
46064
|
ChildMapping.getInitialChildMapping = getInitialChildMapping;
|
|
48013
46065
|
ChildMapping.getNextChildMapping = getNextChildMapping;
|
|
48014
46066
|
|
|
48015
|
-
var _react$f =
|
|
46067
|
+
var _react$f = React;
|
|
48016
46068
|
|
|
48017
46069
|
/**
|
|
48018
46070
|
* Given `this.props.children`, return an object mapping key to child.
|
|
@@ -48162,7 +46214,7 @@ exports.default = void 0;
|
|
|
48162
46214
|
|
|
48163
46215
|
var _propTypes = _interopRequireDefault(propTypes.exports);
|
|
48164
46216
|
|
|
48165
|
-
var _react = _interopRequireDefault(
|
|
46217
|
+
var _react = _interopRequireDefault(React);
|
|
48166
46218
|
|
|
48167
46219
|
var _reactLifecyclesCompat = require$$2;
|
|
48168
46220
|
|
|
@@ -48390,7 +46442,7 @@ var _getPrototypeOf3$3 = _interopRequireDefault$i(getPrototypeOf$1.exports);
|
|
|
48390
46442
|
|
|
48391
46443
|
var _inherits2$3 = _interopRequireDefault$i(inherits.exports);
|
|
48392
46444
|
|
|
48393
|
-
var _react$e = _interopRequireDefault$i(
|
|
46445
|
+
var _react$e = _interopRequireDefault$i(React);
|
|
48394
46446
|
|
|
48395
46447
|
var _propTypes$6 = _interopRequireDefault$i(propTypes.exports);
|
|
48396
46448
|
|
|
@@ -48539,7 +46591,7 @@ var _inherits2$2 = _interopRequireDefault$h(inherits.exports);
|
|
|
48539
46591
|
|
|
48540
46592
|
var _assertThisInitialized2$1 = _interopRequireDefault$h(assertThisInitialized.exports);
|
|
48541
46593
|
|
|
48542
|
-
var _react$d = _interopRequireDefault$h(
|
|
46594
|
+
var _react$d = _interopRequireDefault$h(React);
|
|
48543
46595
|
|
|
48544
46596
|
var _propTypes$5 = _interopRequireDefault$h(propTypes.exports);
|
|
48545
46597
|
|
|
@@ -48955,7 +47007,7 @@ var _inherits2$1 = _interopRequireDefault$g(inherits.exports);
|
|
|
48955
47007
|
|
|
48956
47008
|
var _assertThisInitialized2 = _interopRequireDefault$g(assertThisInitialized.exports);
|
|
48957
47009
|
|
|
48958
|
-
var _react$c = _interopRequireDefault$g(
|
|
47010
|
+
var _react$c = _interopRequireDefault$g(React);
|
|
48959
47011
|
|
|
48960
47012
|
var _propTypes$4 = _interopRequireDefault$g(propTypes.exports);
|
|
48961
47013
|
|
|
@@ -49507,7 +47559,7 @@ var _defineProperty2$2 = _interopRequireDefault$f(defineProperty$3.exports);
|
|
|
49507
47559
|
|
|
49508
47560
|
var _objectWithoutProperties2$3 = _interopRequireDefault$f(objectWithoutProperties.exports);
|
|
49509
47561
|
|
|
49510
|
-
var _react$b = _interopRequireDefault$f(
|
|
47562
|
+
var _react$b = _interopRequireDefault$f(React);
|
|
49511
47563
|
|
|
49512
47564
|
var _propTypes$3 = _interopRequireDefault$f(propTypes.exports);
|
|
49513
47565
|
|
|
@@ -49719,7 +47771,7 @@ var _getPrototypeOf3 = _interopRequireDefault$e(getPrototypeOf$1.exports);
|
|
|
49719
47771
|
|
|
49720
47772
|
var _inherits2 = _interopRequireDefault$e(inherits.exports);
|
|
49721
47773
|
|
|
49722
|
-
var _react$a = _interopRequireDefault$e(
|
|
47774
|
+
var _react$a = _interopRequireDefault$e(React);
|
|
49723
47775
|
|
|
49724
47776
|
var _propTypes$2 = _interopRequireDefault$e(propTypes.exports);
|
|
49725
47777
|
|
|
@@ -50007,7 +48059,7 @@ var _extends2$1 = _interopRequireDefault$d(_extends$2.exports);
|
|
|
50007
48059
|
|
|
50008
48060
|
var _objectWithoutProperties2$1 = _interopRequireDefault$d(objectWithoutProperties.exports);
|
|
50009
48061
|
|
|
50010
|
-
var _react$9 = _interopRequireDefault$d(
|
|
48062
|
+
var _react$9 = _interopRequireDefault$d(React);
|
|
50011
48063
|
|
|
50012
48064
|
var _propTypes$1 = _interopRequireDefault$d(propTypes.exports);
|
|
50013
48065
|
|
|
@@ -50176,7 +48228,7 @@ shouldUpdate$1.default = void 0;
|
|
|
50176
48228
|
|
|
50177
48229
|
var _inheritsLoose2 = _interopRequireDefault$a(inheritsLoose.exports);
|
|
50178
48230
|
|
|
50179
|
-
var _react$8 =
|
|
48231
|
+
var _react$8 = React;
|
|
50180
48232
|
|
|
50181
48233
|
var _setDisplayName$1 = _interopRequireDefault$a(setDisplayName$1);
|
|
50182
48234
|
|
|
@@ -50338,7 +48390,7 @@ var _defineProperty2 = _interopRequireDefault$7(defineProperty$3.exports);
|
|
|
50338
48390
|
|
|
50339
48391
|
var _objectWithoutProperties2 = _interopRequireDefault$7(objectWithoutProperties.exports);
|
|
50340
48392
|
|
|
50341
|
-
var _react$7 = _interopRequireDefault$7(
|
|
48393
|
+
var _react$7 = _interopRequireDefault$7(React);
|
|
50342
48394
|
|
|
50343
48395
|
var _propTypes = _interopRequireDefault$7(propTypes.exports);
|
|
50344
48396
|
|
|
@@ -50532,7 +48584,7 @@ Object.defineProperty(createSvgIcon$1, "__esModule", {
|
|
|
50532
48584
|
});
|
|
50533
48585
|
createSvgIcon$1.default = void 0;
|
|
50534
48586
|
|
|
50535
|
-
var _react$6 = _interopRequireDefault$6(
|
|
48587
|
+
var _react$6 = _interopRequireDefault$6(React);
|
|
50536
48588
|
|
|
50537
48589
|
var _pure = _interopRequireDefault$6(pure$1);
|
|
50538
48590
|
|
|
@@ -50558,7 +48610,7 @@ Object.defineProperty(ExpandMore, "__esModule", {
|
|
|
50558
48610
|
});
|
|
50559
48611
|
var default_1$5 = ExpandMore.default = void 0;
|
|
50560
48612
|
|
|
50561
|
-
var _react$5 = _interopRequireDefault$5(
|
|
48613
|
+
var _react$5 = _interopRequireDefault$5(React);
|
|
50562
48614
|
|
|
50563
48615
|
var _createSvgIcon$5 = _interopRequireDefault$5(createSvgIcon$1);
|
|
50564
48616
|
|
|
@@ -50580,7 +48632,7 @@ Object.defineProperty(Info, "__esModule", {
|
|
|
50580
48632
|
});
|
|
50581
48633
|
var default_1$4 = Info.default = void 0;
|
|
50582
48634
|
|
|
50583
|
-
var _react$4 = _interopRequireDefault$4(
|
|
48635
|
+
var _react$4 = _interopRequireDefault$4(React);
|
|
50584
48636
|
|
|
50585
48637
|
var _createSvgIcon$4 = _interopRequireDefault$4(createSvgIcon$1);
|
|
50586
48638
|
|
|
@@ -50613,7 +48665,7 @@ Object.defineProperty(Add, "__esModule", {
|
|
|
50613
48665
|
});
|
|
50614
48666
|
var default_1$3 = Add.default = void 0;
|
|
50615
48667
|
|
|
50616
|
-
var _react$3 = _interopRequireDefault$3(
|
|
48668
|
+
var _react$3 = _interopRequireDefault$3(React);
|
|
50617
48669
|
|
|
50618
48670
|
var _createSvgIcon$3 = _interopRequireDefault$3(createSvgIcon$1);
|
|
50619
48671
|
|
|
@@ -50635,7 +48687,7 @@ Object.defineProperty(Check, "__esModule", {
|
|
|
50635
48687
|
});
|
|
50636
48688
|
var default_1$2 = Check.default = void 0;
|
|
50637
48689
|
|
|
50638
|
-
var _react$2 = _interopRequireDefault$2(
|
|
48690
|
+
var _react$2 = _interopRequireDefault$2(React);
|
|
50639
48691
|
|
|
50640
48692
|
var _createSvgIcon$2 = _interopRequireDefault$2(createSvgIcon$1);
|
|
50641
48693
|
|
|
@@ -50657,7 +48709,7 @@ Object.defineProperty(Close, "__esModule", {
|
|
|
50657
48709
|
});
|
|
50658
48710
|
var default_1$1 = Close.default = void 0;
|
|
50659
48711
|
|
|
50660
|
-
var _react$1 = _interopRequireDefault$1(
|
|
48712
|
+
var _react$1 = _interopRequireDefault$1(React);
|
|
50661
48713
|
|
|
50662
48714
|
var _createSvgIcon$1 = _interopRequireDefault$1(createSvgIcon$1);
|
|
50663
48715
|
|
|
@@ -50679,7 +48731,7 @@ Object.defineProperty(Edit, "__esModule", {
|
|
|
50679
48731
|
});
|
|
50680
48732
|
var default_1 = Edit.default = void 0;
|
|
50681
48733
|
|
|
50682
|
-
var _react = _interopRequireDefault(
|
|
48734
|
+
var _react = _interopRequireDefault(React);
|
|
50683
48735
|
|
|
50684
48736
|
var _createSvgIcon = _interopRequireDefault(createSvgIcon$1);
|
|
50685
48737
|
|