react-router 3.2.1 → 3.2.5
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/docs/API.md +12 -1
- package/es/ContextUtils.js +36 -10
- package/es/InternalPropTypes.js +2 -2
- package/es/Link.js +7 -5
- package/es/Router.js +20 -6
- package/es/RouterContext.js +4 -1
- package/lib/ContextUtils.js +39 -10
- package/lib/InternalPropTypes.js +1 -1
- package/lib/Link.js +6 -4
- package/lib/Router.js +20 -6
- package/lib/RouterContext.js +5 -1
- package/package.json +7 -5
- package/umd/ReactRouter.js +824 -450
- package/umd/ReactRouter.min.js +10 -2
package/umd/ReactRouter.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["ReactRouter"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["ReactRouter"] = factory(root["React"]);
|
|
10
|
-
})(this, function(
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE_4__) {
|
|
11
11
|
return /******/ (function(modules) { // webpackBootstrap
|
|
12
12
|
/******/ // The module cache
|
|
13
13
|
/******/ var installedModules = {};
|
|
@@ -59,7 +59,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
59
59
|
exports.__esModule = true;
|
|
60
60
|
exports.createMemoryHistory = exports.hashHistory = exports.browserHistory = exports.applyRouterMiddleware = exports.formatPattern = exports.useRouterHistory = exports.match = exports.routerShape = exports.locationShape = exports.RouterContext = exports.createRoutes = exports.Route = exports.Redirect = exports.IndexRoute = exports.IndexRedirect = exports.withRouter = exports.IndexLink = exports.Link = exports.Router = undefined;
|
|
61
61
|
|
|
62
|
-
var _RouteUtils = __webpack_require__(
|
|
62
|
+
var _RouteUtils = __webpack_require__(5);
|
|
63
63
|
|
|
64
64
|
Object.defineProperty(exports, 'createRoutes', {
|
|
65
65
|
enumerable: true,
|
|
@@ -92,35 +92,35 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
var _Router2 = __webpack_require__(
|
|
95
|
+
var _Router2 = __webpack_require__(40);
|
|
96
96
|
|
|
97
97
|
var _Router3 = _interopRequireDefault(_Router2);
|
|
98
98
|
|
|
99
|
-
var _Link2 = __webpack_require__(
|
|
99
|
+
var _Link2 = __webpack_require__(24);
|
|
100
100
|
|
|
101
101
|
var _Link3 = _interopRequireDefault(_Link2);
|
|
102
102
|
|
|
103
|
-
var _IndexLink2 = __webpack_require__(
|
|
103
|
+
var _IndexLink2 = __webpack_require__(36);
|
|
104
104
|
|
|
105
105
|
var _IndexLink3 = _interopRequireDefault(_IndexLink2);
|
|
106
106
|
|
|
107
|
-
var _withRouter2 = __webpack_require__(
|
|
107
|
+
var _withRouter2 = __webpack_require__(51);
|
|
108
108
|
|
|
109
109
|
var _withRouter3 = _interopRequireDefault(_withRouter2);
|
|
110
110
|
|
|
111
|
-
var _IndexRedirect2 = __webpack_require__(
|
|
111
|
+
var _IndexRedirect2 = __webpack_require__(37);
|
|
112
112
|
|
|
113
113
|
var _IndexRedirect3 = _interopRequireDefault(_IndexRedirect2);
|
|
114
114
|
|
|
115
|
-
var _IndexRoute2 = __webpack_require__(
|
|
115
|
+
var _IndexRoute2 = __webpack_require__(38);
|
|
116
116
|
|
|
117
117
|
var _IndexRoute3 = _interopRequireDefault(_IndexRoute2);
|
|
118
118
|
|
|
119
|
-
var _Redirect2 = __webpack_require__(
|
|
119
|
+
var _Redirect2 = __webpack_require__(26);
|
|
120
120
|
|
|
121
121
|
var _Redirect3 = _interopRequireDefault(_Redirect2);
|
|
122
122
|
|
|
123
|
-
var _Route2 = __webpack_require__(
|
|
123
|
+
var _Route2 = __webpack_require__(39);
|
|
124
124
|
|
|
125
125
|
var _Route3 = _interopRequireDefault(_Route2);
|
|
126
126
|
|
|
@@ -128,27 +128,27 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
128
128
|
|
|
129
129
|
var _RouterContext3 = _interopRequireDefault(_RouterContext2);
|
|
130
130
|
|
|
131
|
-
var _match2 = __webpack_require__(
|
|
131
|
+
var _match2 = __webpack_require__(49);
|
|
132
132
|
|
|
133
133
|
var _match3 = _interopRequireDefault(_match2);
|
|
134
134
|
|
|
135
|
-
var _useRouterHistory2 = __webpack_require__(
|
|
135
|
+
var _useRouterHistory2 = __webpack_require__(31);
|
|
136
136
|
|
|
137
137
|
var _useRouterHistory3 = _interopRequireDefault(_useRouterHistory2);
|
|
138
138
|
|
|
139
|
-
var _applyRouterMiddleware2 = __webpack_require__(
|
|
139
|
+
var _applyRouterMiddleware2 = __webpack_require__(42);
|
|
140
140
|
|
|
141
141
|
var _applyRouterMiddleware3 = _interopRequireDefault(_applyRouterMiddleware2);
|
|
142
142
|
|
|
143
|
-
var _browserHistory2 = __webpack_require__(
|
|
143
|
+
var _browserHistory2 = __webpack_require__(43);
|
|
144
144
|
|
|
145
145
|
var _browserHistory3 = _interopRequireDefault(_browserHistory2);
|
|
146
146
|
|
|
147
|
-
var _hashHistory2 = __webpack_require__(
|
|
147
|
+
var _hashHistory2 = __webpack_require__(47);
|
|
148
148
|
|
|
149
149
|
var _hashHistory3 = _interopRequireDefault(_hashHistory2);
|
|
150
150
|
|
|
151
|
-
var _createMemoryHistory2 = __webpack_require__(
|
|
151
|
+
var _createMemoryHistory2 = __webpack_require__(28);
|
|
152
152
|
|
|
153
153
|
var _createMemoryHistory3 = _interopRequireDefault(_createMemoryHistory2);
|
|
154
154
|
|
|
@@ -247,21 +247,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
247
247
|
*/
|
|
248
248
|
|
|
249
249
|
if (true) {
|
|
250
|
-
var
|
|
251
|
-
Symbol.for &&
|
|
252
|
-
Symbol.for('react.element')) ||
|
|
253
|
-
0xeac7;
|
|
254
|
-
|
|
255
|
-
var isValidElement = function(object) {
|
|
256
|
-
return typeof object === 'object' &&
|
|
257
|
-
object !== null &&
|
|
258
|
-
object.$$typeof === REACT_ELEMENT_TYPE;
|
|
259
|
-
};
|
|
250
|
+
var ReactIs = __webpack_require__(23);
|
|
260
251
|
|
|
261
252
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
262
253
|
// http://fb.me/prop-types-in-prod
|
|
263
254
|
var throwOnDirectAccess = true;
|
|
264
|
-
module.exports = __webpack_require__(
|
|
255
|
+
module.exports = __webpack_require__(65)(ReactIs.isElement, throwOnDirectAccess);
|
|
265
256
|
} else {
|
|
266
257
|
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
267
258
|
// http://fb.me/prop-types-in-prod
|
|
@@ -283,8 +274,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
283
274
|
|
|
284
275
|
'use strict';
|
|
285
276
|
|
|
286
|
-
var React = __webpack_require__(
|
|
287
|
-
var factory = __webpack_require__(
|
|
277
|
+
var React = __webpack_require__(4);
|
|
278
|
+
var factory = __webpack_require__(52);
|
|
288
279
|
|
|
289
280
|
if (typeof React === 'undefined') {
|
|
290
281
|
throw Error(
|
|
@@ -305,6 +296,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
305
296
|
|
|
306
297
|
/***/ }),
|
|
307
298
|
/* 4 */
|
|
299
|
+
/***/ (function(module, exports) {
|
|
300
|
+
|
|
301
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_4__;
|
|
302
|
+
|
|
303
|
+
/***/ }),
|
|
304
|
+
/* 5 */
|
|
308
305
|
/***/ (function(module, exports, __webpack_require__) {
|
|
309
306
|
|
|
310
307
|
'use strict';
|
|
@@ -318,7 +315,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
318
315
|
exports.createRoutesFromReactChildren = createRoutesFromReactChildren;
|
|
319
316
|
exports.createRoutes = createRoutes;
|
|
320
317
|
|
|
321
|
-
var _react = __webpack_require__(
|
|
318
|
+
var _react = __webpack_require__(4);
|
|
322
319
|
|
|
323
320
|
var _react2 = _interopRequireDefault(_react);
|
|
324
321
|
|
|
@@ -402,7 +399,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
402
399
|
}
|
|
403
400
|
|
|
404
401
|
/***/ }),
|
|
405
|
-
/*
|
|
402
|
+
/* 6 */
|
|
406
403
|
/***/ (function(module, exports, __webpack_require__) {
|
|
407
404
|
|
|
408
405
|
'use strict';
|
|
@@ -410,7 +407,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
410
407
|
exports.__esModule = true;
|
|
411
408
|
exports.createPath = exports.parsePath = exports.getQueryStringValueFromPath = exports.stripQueryStringValueFromPath = exports.addQueryStringValueToPath = undefined;
|
|
412
409
|
|
|
413
|
-
var _warning = __webpack_require__(
|
|
410
|
+
var _warning = __webpack_require__(7);
|
|
414
411
|
|
|
415
412
|
var _warning2 = _interopRequireDefault(_warning);
|
|
416
413
|
|
|
@@ -503,7 +500,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
503
500
|
};
|
|
504
501
|
|
|
505
502
|
/***/ }),
|
|
506
|
-
/*
|
|
503
|
+
/* 7 */
|
|
507
504
|
/***/ (function(module, exports, __webpack_require__) {
|
|
508
505
|
|
|
509
506
|
/**
|
|
@@ -568,12 +565,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
568
565
|
module.exports = warning;
|
|
569
566
|
|
|
570
567
|
|
|
571
|
-
/***/ }),
|
|
572
|
-
/* 7 */
|
|
573
|
-
/***/ (function(module, exports) {
|
|
574
|
-
|
|
575
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_7__;
|
|
576
|
-
|
|
577
568
|
/***/ }),
|
|
578
569
|
/* 8 */
|
|
579
570
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -833,7 +824,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
833
824
|
exports.default = routerWarning;
|
|
834
825
|
exports._resetWarned = _resetWarned;
|
|
835
826
|
|
|
836
|
-
var _warning = __webpack_require__(
|
|
827
|
+
var _warning = __webpack_require__(7);
|
|
837
828
|
|
|
838
829
|
var _warning2 = _interopRequireDefault(_warning);
|
|
839
830
|
|
|
@@ -881,11 +872,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
881
872
|
|
|
882
873
|
var _invariant2 = _interopRequireDefault(_invariant);
|
|
883
874
|
|
|
884
|
-
var _warning = __webpack_require__(
|
|
875
|
+
var _warning = __webpack_require__(7);
|
|
885
876
|
|
|
886
877
|
var _warning2 = _interopRequireDefault(_warning);
|
|
887
878
|
|
|
888
|
-
var _PathUtils = __webpack_require__(
|
|
879
|
+
var _PathUtils = __webpack_require__(6);
|
|
889
880
|
|
|
890
881
|
var _Actions = __webpack_require__(12);
|
|
891
882
|
|
|
@@ -986,7 +977,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
986
977
|
goForward: _propTypes.func.isRequired
|
|
987
978
|
});
|
|
988
979
|
|
|
989
|
-
var component = exports.component =
|
|
980
|
+
var component = exports.component = _propTypes.elementType;
|
|
990
981
|
var components = exports.components = (0, _propTypes.oneOfType)([component, _propTypes.object]);
|
|
991
982
|
var route = exports.route = (0, _propTypes.oneOfType)([_propTypes.object, _propTypes.element]);
|
|
992
983
|
var routes = exports.routes = (0, _propTypes.oneOfType)([route, (0, _propTypes.arrayOf)(route)]);
|
|
@@ -1175,6 +1166,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1175
1166
|
exports.ContextProvider = ContextProvider;
|
|
1176
1167
|
exports.ContextSubscriber = ContextSubscriber;
|
|
1177
1168
|
|
|
1169
|
+
var _react = __webpack_require__(4);
|
|
1170
|
+
|
|
1171
|
+
var _react2 = _interopRequireDefault(_react);
|
|
1172
|
+
|
|
1178
1173
|
var _propTypes = __webpack_require__(2);
|
|
1179
1174
|
|
|
1180
1175
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
@@ -1195,15 +1190,17 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1195
1190
|
return '@@contextSubscriber/' + name;
|
|
1196
1191
|
}
|
|
1197
1192
|
|
|
1193
|
+
var prefixUnsafeLifecycleMethods = typeof _react2.default.forwardRef !== 'undefined';
|
|
1194
|
+
|
|
1198
1195
|
function ContextProvider(name) {
|
|
1199
|
-
var _childContextTypes,
|
|
1196
|
+
var _childContextTypes, _config;
|
|
1200
1197
|
|
|
1201
1198
|
var contextName = makeContextName(name);
|
|
1202
1199
|
var listenersKey = contextName + '/listeners';
|
|
1203
1200
|
var eventIndexKey = contextName + '/eventIndex';
|
|
1204
1201
|
var subscribeKey = contextName + '/subscribe';
|
|
1205
1202
|
|
|
1206
|
-
|
|
1203
|
+
var config = (_config = {
|
|
1207
1204
|
childContextTypes: (_childContextTypes = {}, _childContextTypes[contextName] = contextProviderShape.isRequired, _childContextTypes),
|
|
1208
1205
|
|
|
1209
1206
|
getChildContext: function getChildContext() {
|
|
@@ -1214,10 +1211,16 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1214
1211
|
subscribe: this[subscribeKey]
|
|
1215
1212
|
}, _ref;
|
|
1216
1213
|
},
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
// this method will be updated to UNSAFE_componentWillMount below for React versions >= 16.3
|
|
1217
1217
|
componentWillMount: function componentWillMount() {
|
|
1218
1218
|
this[listenersKey] = [];
|
|
1219
1219
|
this[eventIndexKey] = 0;
|
|
1220
1220
|
},
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
// this method will be updated to UNSAFE_componentWillReceiveProps below for React versions >= 16.3
|
|
1221
1224
|
componentWillReceiveProps: function componentWillReceiveProps() {
|
|
1222
1225
|
this[eventIndexKey]++;
|
|
1223
1226
|
},
|
|
@@ -1228,7 +1231,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1228
1231
|
return listener(_this[eventIndexKey]);
|
|
1229
1232
|
});
|
|
1230
1233
|
}
|
|
1231
|
-
},
|
|
1234
|
+
}, _config[subscribeKey] = function (listener) {
|
|
1232
1235
|
var _this2 = this;
|
|
1233
1236
|
|
|
1234
1237
|
// No need to immediately call listener here.
|
|
@@ -1239,28 +1242,36 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1239
1242
|
return item !== listener;
|
|
1240
1243
|
});
|
|
1241
1244
|
};
|
|
1242
|
-
},
|
|
1245
|
+
}, _config);
|
|
1246
|
+
|
|
1247
|
+
if (prefixUnsafeLifecycleMethods) {
|
|
1248
|
+
config.UNSAFE_componentWillMount = config.componentWillMount;
|
|
1249
|
+
config.UNSAFE_componentWillReceiveProps = config.componentWillReceiveProps;
|
|
1250
|
+
delete config.componentWillMount;
|
|
1251
|
+
delete config.componentWillReceiveProps;
|
|
1252
|
+
}
|
|
1253
|
+
return config;
|
|
1243
1254
|
}
|
|
1244
1255
|
|
|
1245
1256
|
function ContextSubscriber(name) {
|
|
1246
|
-
var _contextTypes,
|
|
1257
|
+
var _contextTypes, _config2;
|
|
1247
1258
|
|
|
1248
1259
|
var contextName = makeContextName(name);
|
|
1249
1260
|
var lastRenderedEventIndexKey = contextName + '/lastRenderedEventIndex';
|
|
1250
1261
|
var handleContextUpdateKey = contextName + '/handleContextUpdate';
|
|
1251
1262
|
var unsubscribeKey = contextName + '/unsubscribe';
|
|
1252
1263
|
|
|
1253
|
-
|
|
1264
|
+
var config = (_config2 = {
|
|
1254
1265
|
contextTypes: (_contextTypes = {}, _contextTypes[contextName] = contextProviderShape, _contextTypes),
|
|
1255
1266
|
|
|
1256
1267
|
getInitialState: function getInitialState() {
|
|
1257
|
-
var
|
|
1268
|
+
var _ref2;
|
|
1258
1269
|
|
|
1259
1270
|
if (!this.context[contextName]) {
|
|
1260
1271
|
return {};
|
|
1261
1272
|
}
|
|
1262
1273
|
|
|
1263
|
-
return
|
|
1274
|
+
return _ref2 = {}, _ref2[lastRenderedEventIndexKey] = this.context[contextName].eventIndex, _ref2;
|
|
1264
1275
|
},
|
|
1265
1276
|
componentDidMount: function componentDidMount() {
|
|
1266
1277
|
if (!this.context[contextName]) {
|
|
@@ -1269,6 +1280,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1269
1280
|
|
|
1270
1281
|
this[unsubscribeKey] = this.context[contextName].subscribe(this[handleContextUpdateKey]);
|
|
1271
1282
|
},
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
// this method will be updated to UNSAFE_componentWillReceiveProps below for React versions >= 16.3
|
|
1272
1286
|
componentWillReceiveProps: function componentWillReceiveProps() {
|
|
1273
1287
|
var _setState;
|
|
1274
1288
|
|
|
@@ -1286,13 +1300,19 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1286
1300
|
this[unsubscribeKey]();
|
|
1287
1301
|
this[unsubscribeKey] = null;
|
|
1288
1302
|
}
|
|
1289
|
-
},
|
|
1303
|
+
}, _config2[handleContextUpdateKey] = function (eventIndex) {
|
|
1290
1304
|
if (eventIndex !== this.state[lastRenderedEventIndexKey]) {
|
|
1291
1305
|
var _setState2;
|
|
1292
1306
|
|
|
1293
1307
|
this.setState((_setState2 = {}, _setState2[lastRenderedEventIndexKey] = eventIndex, _setState2));
|
|
1294
1308
|
}
|
|
1295
|
-
},
|
|
1309
|
+
}, _config2);
|
|
1310
|
+
|
|
1311
|
+
if (prefixUnsafeLifecycleMethods) {
|
|
1312
|
+
config.UNSAFE_componentWillReceiveProps = config.componentWillReceiveProps;
|
|
1313
|
+
delete config.componentWillReceiveProps;
|
|
1314
|
+
}
|
|
1315
|
+
return config;
|
|
1296
1316
|
}
|
|
1297
1317
|
|
|
1298
1318
|
/***/ }),
|
|
@@ -1340,23 +1360,25 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1340
1360
|
|
|
1341
1361
|
var _invariant2 = _interopRequireDefault(_invariant);
|
|
1342
1362
|
|
|
1343
|
-
var _react = __webpack_require__(
|
|
1363
|
+
var _react = __webpack_require__(4);
|
|
1344
1364
|
|
|
1345
1365
|
var _react2 = _interopRequireDefault(_react);
|
|
1346
1366
|
|
|
1367
|
+
var _reactIs = __webpack_require__(23);
|
|
1368
|
+
|
|
1347
1369
|
var _createReactClass = __webpack_require__(3);
|
|
1348
1370
|
|
|
1349
1371
|
var _createReactClass2 = _interopRequireDefault(_createReactClass);
|
|
1350
1372
|
|
|
1351
1373
|
var _propTypes = __webpack_require__(2);
|
|
1352
1374
|
|
|
1353
|
-
var _getRouteParams = __webpack_require__(
|
|
1375
|
+
var _getRouteParams = __webpack_require__(46);
|
|
1354
1376
|
|
|
1355
1377
|
var _getRouteParams2 = _interopRequireDefault(_getRouteParams);
|
|
1356
1378
|
|
|
1357
1379
|
var _ContextUtils = __webpack_require__(15);
|
|
1358
1380
|
|
|
1359
|
-
var _RouteUtils = __webpack_require__(
|
|
1381
|
+
var _RouteUtils = __webpack_require__(5);
|
|
1360
1382
|
|
|
1361
1383
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1362
1384
|
|
|
@@ -1432,7 +1454,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1432
1454
|
}
|
|
1433
1455
|
}
|
|
1434
1456
|
|
|
1435
|
-
|
|
1457
|
+
// Handle components is object for { [name]: component } but not valid element
|
|
1458
|
+
// type of react, such as React.memo, React.lazy and so on.
|
|
1459
|
+
if ((typeof components === 'undefined' ? 'undefined' : _typeof(components)) === 'object' && !(0, _reactIs.isValidElementType)(components)) {
|
|
1436
1460
|
var elements = {};
|
|
1437
1461
|
|
|
1438
1462
|
for (var key in components) {
|
|
@@ -1462,131 +1486,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1462
1486
|
|
|
1463
1487
|
/***/ }),
|
|
1464
1488
|
/* 18 */
|
|
1465
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1466
|
-
|
|
1467
|
-
/**
|
|
1468
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1469
|
-
*
|
|
1470
|
-
* This source code is licensed under the MIT license found in the
|
|
1471
|
-
* LICENSE file in the root directory of this source tree.
|
|
1472
|
-
*
|
|
1473
|
-
*/
|
|
1474
|
-
|
|
1475
|
-
'use strict';
|
|
1476
|
-
|
|
1477
|
-
/**
|
|
1478
|
-
* Use invariant() to assert state which your program assumes to be true.
|
|
1479
|
-
*
|
|
1480
|
-
* Provide sprintf-style format (only %s is supported) and arguments
|
|
1481
|
-
* to provide information about what broke and what you were
|
|
1482
|
-
* expecting.
|
|
1483
|
-
*
|
|
1484
|
-
* The invariant message will be stripped in production, but the invariant
|
|
1485
|
-
* will remain to ensure logic does not differ in production.
|
|
1486
|
-
*/
|
|
1487
|
-
|
|
1488
|
-
var validateFormat = function validateFormat(format) {};
|
|
1489
|
-
|
|
1490
|
-
if (true) {
|
|
1491
|
-
validateFormat = function validateFormat(format) {
|
|
1492
|
-
if (format === undefined) {
|
|
1493
|
-
throw new Error('invariant requires an error message argument');
|
|
1494
|
-
}
|
|
1495
|
-
};
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
function invariant(condition, format, a, b, c, d, e, f) {
|
|
1499
|
-
validateFormat(format);
|
|
1500
|
-
|
|
1501
|
-
if (!condition) {
|
|
1502
|
-
var error;
|
|
1503
|
-
if (format === undefined) {
|
|
1504
|
-
error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
|
|
1505
|
-
} else {
|
|
1506
|
-
var args = [a, b, c, d, e, f];
|
|
1507
|
-
var argIndex = 0;
|
|
1508
|
-
error = new Error(format.replace(/%s/g, function () {
|
|
1509
|
-
return args[argIndex++];
|
|
1510
|
-
}));
|
|
1511
|
-
error.name = 'Invariant Violation';
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
error.framesToPop = 1; // we don't care about invariant's own frame
|
|
1515
|
-
throw error;
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
module.exports = invariant;
|
|
1520
|
-
|
|
1521
|
-
/***/ }),
|
|
1522
|
-
/* 19 */
|
|
1523
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1524
|
-
|
|
1525
|
-
/**
|
|
1526
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
1527
|
-
*
|
|
1528
|
-
* This source code is licensed under the MIT license found in the
|
|
1529
|
-
* LICENSE file in the root directory of this source tree.
|
|
1530
|
-
*
|
|
1531
|
-
*/
|
|
1532
|
-
|
|
1533
|
-
'use strict';
|
|
1534
|
-
|
|
1535
|
-
var emptyFunction = __webpack_require__(33);
|
|
1536
|
-
|
|
1537
|
-
/**
|
|
1538
|
-
* Similar to invariant but only logs a warning if the condition is not met.
|
|
1539
|
-
* This can be used to log issues in development environments in critical
|
|
1540
|
-
* paths. Removing the logging code for production environments will keep the
|
|
1541
|
-
* same logic and follow the same code paths.
|
|
1542
|
-
*/
|
|
1543
|
-
|
|
1544
|
-
var warning = emptyFunction;
|
|
1545
|
-
|
|
1546
|
-
if (true) {
|
|
1547
|
-
var printWarning = function printWarning(format) {
|
|
1548
|
-
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
1549
|
-
args[_key - 1] = arguments[_key];
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
var argIndex = 0;
|
|
1553
|
-
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
1554
|
-
return args[argIndex++];
|
|
1555
|
-
});
|
|
1556
|
-
if (typeof console !== 'undefined') {
|
|
1557
|
-
console.error(message);
|
|
1558
|
-
}
|
|
1559
|
-
try {
|
|
1560
|
-
// --- Welcome to debugging React ---
|
|
1561
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
1562
|
-
// to find the callsite that caused this warning to fire.
|
|
1563
|
-
throw new Error(message);
|
|
1564
|
-
} catch (x) {}
|
|
1565
|
-
};
|
|
1566
|
-
|
|
1567
|
-
warning = function warning(condition, format) {
|
|
1568
|
-
if (format === undefined) {
|
|
1569
|
-
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
if (format.indexOf('Failed Composite propType: ') === 0) {
|
|
1573
|
-
return; // Ignore CompositeComponent proptype check.
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
if (!condition) {
|
|
1577
|
-
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
1578
|
-
args[_key2 - 2] = arguments[_key2];
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
|
-
printWarning.apply(undefined, [format].concat(args));
|
|
1582
|
-
}
|
|
1583
|
-
};
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
module.exports = warning;
|
|
1587
|
-
|
|
1588
|
-
/***/ }),
|
|
1589
|
-
/* 20 */
|
|
1590
1489
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1591
1490
|
|
|
1592
1491
|
'use strict';
|
|
@@ -1598,11 +1497,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1598
1497
|
|
|
1599
1498
|
var _DOMUtils = __webpack_require__(13);
|
|
1600
1499
|
|
|
1601
|
-
var _DOMStateStorage = __webpack_require__(
|
|
1500
|
+
var _DOMStateStorage = __webpack_require__(32);
|
|
1602
1501
|
|
|
1603
|
-
var _PathUtils = __webpack_require__(
|
|
1502
|
+
var _PathUtils = __webpack_require__(6);
|
|
1604
1503
|
|
|
1605
|
-
var _ExecutionEnvironment = __webpack_require__(
|
|
1504
|
+
var _ExecutionEnvironment = __webpack_require__(19);
|
|
1606
1505
|
|
|
1607
1506
|
var PopStateEvent = 'popstate';
|
|
1608
1507
|
var HashChangeEvent = 'hashchange';
|
|
@@ -1690,7 +1589,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1690
1589
|
};
|
|
1691
1590
|
|
|
1692
1591
|
/***/ }),
|
|
1693
|
-
/*
|
|
1592
|
+
/* 19 */
|
|
1694
1593
|
/***/ (function(module, exports) {
|
|
1695
1594
|
|
|
1696
1595
|
'use strict';
|
|
@@ -1699,18 +1598,18 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1699
1598
|
var canUseDOM = exports.canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
1700
1599
|
|
|
1701
1600
|
/***/ }),
|
|
1702
|
-
/*
|
|
1601
|
+
/* 20 */
|
|
1703
1602
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1704
1603
|
|
|
1705
1604
|
'use strict';
|
|
1706
1605
|
|
|
1707
1606
|
exports.__esModule = true;
|
|
1708
1607
|
|
|
1709
|
-
var _AsyncUtils = __webpack_require__(
|
|
1608
|
+
var _AsyncUtils = __webpack_require__(57);
|
|
1710
1609
|
|
|
1711
|
-
var _PathUtils = __webpack_require__(
|
|
1610
|
+
var _PathUtils = __webpack_require__(6);
|
|
1712
1611
|
|
|
1713
|
-
var _runTransitionHook = __webpack_require__(
|
|
1612
|
+
var _runTransitionHook = __webpack_require__(21);
|
|
1714
1613
|
|
|
1715
1614
|
var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook);
|
|
1716
1615
|
|
|
@@ -1880,14 +1779,14 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1880
1779
|
exports.default = createHistory;
|
|
1881
1780
|
|
|
1882
1781
|
/***/ }),
|
|
1883
|
-
/*
|
|
1782
|
+
/* 21 */
|
|
1884
1783
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1885
1784
|
|
|
1886
1785
|
'use strict';
|
|
1887
1786
|
|
|
1888
1787
|
exports.__esModule = true;
|
|
1889
1788
|
|
|
1890
|
-
var _warning = __webpack_require__(
|
|
1789
|
+
var _warning = __webpack_require__(7);
|
|
1891
1790
|
|
|
1892
1791
|
var _warning2 = _interopRequireDefault(_warning);
|
|
1893
1792
|
|
|
@@ -1908,7 +1807,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
1908
1807
|
exports.default = runTransitionHook;
|
|
1909
1808
|
|
|
1910
1809
|
/***/ }),
|
|
1911
|
-
/*
|
|
1810
|
+
/* 22 */
|
|
1912
1811
|
/***/ (function(module, exports) {
|
|
1913
1812
|
|
|
1914
1813
|
/*
|
|
@@ -2004,7 +1903,20 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2004
1903
|
|
|
2005
1904
|
|
|
2006
1905
|
/***/ }),
|
|
2007
|
-
/*
|
|
1906
|
+
/* 23 */
|
|
1907
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1908
|
+
|
|
1909
|
+
'use strict';
|
|
1910
|
+
|
|
1911
|
+
if (false) {
|
|
1912
|
+
module.exports = require('./cjs/react-is.production.min.js');
|
|
1913
|
+
} else {
|
|
1914
|
+
module.exports = __webpack_require__(67);
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
|
|
1918
|
+
/***/ }),
|
|
1919
|
+
/* 24 */
|
|
2008
1920
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2009
1921
|
|
|
2010
1922
|
'use strict';
|
|
@@ -2013,7 +1925,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2013
1925
|
|
|
2014
1926
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
2015
1927
|
|
|
2016
|
-
var _react = __webpack_require__(
|
|
1928
|
+
var _react = __webpack_require__(4);
|
|
2017
1929
|
|
|
2018
1930
|
var _react2 = _interopRequireDefault(_react);
|
|
2019
1931
|
|
|
@@ -2082,7 +1994,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2082
1994
|
activeClassName: _propTypes.string,
|
|
2083
1995
|
onlyActiveOnIndex: _propTypes.bool.isRequired,
|
|
2084
1996
|
onClick: _propTypes.func,
|
|
2085
|
-
target: _propTypes.string
|
|
1997
|
+
target: _propTypes.string,
|
|
1998
|
+
innerRef: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.func, (0, _propTypes.shape)({ current: _propTypes.elementType })])
|
|
2086
1999
|
},
|
|
2087
2000
|
|
|
2088
2001
|
getDefaultProps: function getDefaultProps() {
|
|
@@ -2116,7 +2029,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2116
2029
|
activeClassName = _props.activeClassName,
|
|
2117
2030
|
activeStyle = _props.activeStyle,
|
|
2118
2031
|
onlyActiveOnIndex = _props.onlyActiveOnIndex,
|
|
2119
|
-
|
|
2032
|
+
innerRef = _props.innerRef,
|
|
2033
|
+
props = _objectWithoutProperties(_props, ['to', 'activeClassName', 'activeStyle', 'onlyActiveOnIndex', 'innerRef']);
|
|
2120
2034
|
|
|
2121
2035
|
// Ignore if rendered outside the context of router to simplify unit testing.
|
|
2122
2036
|
|
|
@@ -2127,7 +2041,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2127
2041
|
if (router) {
|
|
2128
2042
|
// If user does not specify a `to` prop, return an empty anchor tag.
|
|
2129
2043
|
if (!to) {
|
|
2130
|
-
return _react2.default.createElement('a', props);
|
|
2044
|
+
return _react2.default.createElement('a', _extends({}, props, { ref: innerRef }));
|
|
2131
2045
|
}
|
|
2132
2046
|
|
|
2133
2047
|
var toLocation = resolveToLocation(to, router);
|
|
@@ -2148,14 +2062,14 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2148
2062
|
}
|
|
2149
2063
|
}
|
|
2150
2064
|
|
|
2151
|
-
return _react2.default.createElement('a', _extends({}, props, { onClick: this.handleClick }));
|
|
2065
|
+
return _react2.default.createElement('a', _extends({}, props, { onClick: this.handleClick, ref: innerRef }));
|
|
2152
2066
|
}
|
|
2153
2067
|
});
|
|
2154
2068
|
|
|
2155
2069
|
exports.default = Link;
|
|
2156
2070
|
|
|
2157
2071
|
/***/ }),
|
|
2158
|
-
/*
|
|
2072
|
+
/* 25 */
|
|
2159
2073
|
/***/ (function(module, exports) {
|
|
2160
2074
|
|
|
2161
2075
|
'use strict';
|
|
@@ -2167,7 +2081,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2167
2081
|
}
|
|
2168
2082
|
|
|
2169
2083
|
/***/ }),
|
|
2170
|
-
/*
|
|
2084
|
+
/* 26 */
|
|
2171
2085
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2172
2086
|
|
|
2173
2087
|
'use strict';
|
|
@@ -2184,7 +2098,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2184
2098
|
|
|
2185
2099
|
var _invariant2 = _interopRequireDefault(_invariant);
|
|
2186
2100
|
|
|
2187
|
-
var _RouteUtils = __webpack_require__(
|
|
2101
|
+
var _RouteUtils = __webpack_require__(5);
|
|
2188
2102
|
|
|
2189
2103
|
var _PatternUtils = __webpack_require__(8);
|
|
2190
2104
|
|
|
@@ -2270,7 +2184,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2270
2184
|
exports.default = Redirect;
|
|
2271
2185
|
|
|
2272
2186
|
/***/ }),
|
|
2273
|
-
/*
|
|
2187
|
+
/* 27 */
|
|
2274
2188
|
/***/ (function(module, exports) {
|
|
2275
2189
|
|
|
2276
2190
|
"use strict";
|
|
@@ -2303,7 +2217,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2303
2217
|
}
|
|
2304
2218
|
|
|
2305
2219
|
/***/ }),
|
|
2306
|
-
/*
|
|
2220
|
+
/* 28 */
|
|
2307
2221
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2308
2222
|
|
|
2309
2223
|
'use strict';
|
|
@@ -2311,15 +2225,15 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2311
2225
|
exports.__esModule = true;
|
|
2312
2226
|
exports.default = createMemoryHistory;
|
|
2313
2227
|
|
|
2314
|
-
var _useQueries = __webpack_require__(
|
|
2228
|
+
var _useQueries = __webpack_require__(34);
|
|
2315
2229
|
|
|
2316
2230
|
var _useQueries2 = _interopRequireDefault(_useQueries);
|
|
2317
2231
|
|
|
2318
|
-
var _useBasename = __webpack_require__(
|
|
2232
|
+
var _useBasename = __webpack_require__(33);
|
|
2319
2233
|
|
|
2320
2234
|
var _useBasename2 = _interopRequireDefault(_useBasename);
|
|
2321
2235
|
|
|
2322
|
-
var _createMemoryHistory = __webpack_require__(
|
|
2236
|
+
var _createMemoryHistory = __webpack_require__(62);
|
|
2323
2237
|
|
|
2324
2238
|
var _createMemoryHistory2 = _interopRequireDefault(_createMemoryHistory);
|
|
2325
2239
|
|
|
@@ -2338,7 +2252,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2338
2252
|
}
|
|
2339
2253
|
|
|
2340
2254
|
/***/ }),
|
|
2341
|
-
/*
|
|
2255
|
+
/* 29 */
|
|
2342
2256
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2343
2257
|
|
|
2344
2258
|
'use strict';
|
|
@@ -2346,7 +2260,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2346
2260
|
exports.__esModule = true;
|
|
2347
2261
|
exports.default = createRouterHistory;
|
|
2348
2262
|
|
|
2349
|
-
var _useRouterHistory = __webpack_require__(
|
|
2263
|
+
var _useRouterHistory = __webpack_require__(31);
|
|
2350
2264
|
|
|
2351
2265
|
var _useRouterHistory2 = _interopRequireDefault(_useRouterHistory);
|
|
2352
2266
|
|
|
@@ -2361,7 +2275,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2361
2275
|
}
|
|
2362
2276
|
|
|
2363
2277
|
/***/ }),
|
|
2364
|
-
/*
|
|
2278
|
+
/* 30 */
|
|
2365
2279
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2366
2280
|
|
|
2367
2281
|
'use strict';
|
|
@@ -2376,23 +2290,23 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2376
2290
|
|
|
2377
2291
|
var _routerWarning2 = _interopRequireDefault(_routerWarning);
|
|
2378
2292
|
|
|
2379
|
-
var _computeChangedRoutes2 = __webpack_require__(
|
|
2293
|
+
var _computeChangedRoutes2 = __webpack_require__(44);
|
|
2380
2294
|
|
|
2381
2295
|
var _computeChangedRoutes3 = _interopRequireDefault(_computeChangedRoutes2);
|
|
2382
2296
|
|
|
2383
|
-
var _TransitionUtils = __webpack_require__(
|
|
2297
|
+
var _TransitionUtils = __webpack_require__(41);
|
|
2384
2298
|
|
|
2385
2299
|
var _TransitionUtils2 = _interopRequireDefault(_TransitionUtils);
|
|
2386
2300
|
|
|
2387
|
-
var _isActive2 = __webpack_require__(
|
|
2301
|
+
var _isActive2 = __webpack_require__(48);
|
|
2388
2302
|
|
|
2389
2303
|
var _isActive3 = _interopRequireDefault(_isActive2);
|
|
2390
2304
|
|
|
2391
|
-
var _getComponents = __webpack_require__(
|
|
2305
|
+
var _getComponents = __webpack_require__(45);
|
|
2392
2306
|
|
|
2393
2307
|
var _getComponents2 = _interopRequireDefault(_getComponents);
|
|
2394
2308
|
|
|
2395
|
-
var _matchRoutes = __webpack_require__(
|
|
2309
|
+
var _matchRoutes = __webpack_require__(50);
|
|
2396
2310
|
|
|
2397
2311
|
var _matchRoutes2 = _interopRequireDefault(_matchRoutes);
|
|
2398
2312
|
|
|
@@ -2649,7 +2563,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2649
2563
|
}
|
|
2650
2564
|
|
|
2651
2565
|
/***/ }),
|
|
2652
|
-
/*
|
|
2566
|
+
/* 31 */
|
|
2653
2567
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2654
2568
|
|
|
2655
2569
|
'use strict';
|
|
@@ -2657,11 +2571,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2657
2571
|
exports.__esModule = true;
|
|
2658
2572
|
exports.default = useRouterHistory;
|
|
2659
2573
|
|
|
2660
|
-
var _useQueries = __webpack_require__(
|
|
2574
|
+
var _useQueries = __webpack_require__(34);
|
|
2661
2575
|
|
|
2662
2576
|
var _useQueries2 = _interopRequireDefault(_useQueries);
|
|
2663
2577
|
|
|
2664
|
-
var _useBasename = __webpack_require__(
|
|
2578
|
+
var _useBasename = __webpack_require__(33);
|
|
2665
2579
|
|
|
2666
2580
|
var _useBasename2 = _interopRequireDefault(_useBasename);
|
|
2667
2581
|
|
|
@@ -2675,48 +2589,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2675
2589
|
}
|
|
2676
2590
|
|
|
2677
2591
|
/***/ }),
|
|
2678
|
-
/*
|
|
2679
|
-
/***/ (function(module, exports) {
|
|
2680
|
-
|
|
2681
|
-
"use strict";
|
|
2682
|
-
|
|
2683
|
-
/**
|
|
2684
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2685
|
-
*
|
|
2686
|
-
* This source code is licensed under the MIT license found in the
|
|
2687
|
-
* LICENSE file in the root directory of this source tree.
|
|
2688
|
-
*
|
|
2689
|
-
*
|
|
2690
|
-
*/
|
|
2691
|
-
|
|
2692
|
-
function makeEmptyFunction(arg) {
|
|
2693
|
-
return function () {
|
|
2694
|
-
return arg;
|
|
2695
|
-
};
|
|
2696
|
-
}
|
|
2697
|
-
|
|
2698
|
-
/**
|
|
2699
|
-
* This function accepts and discards inputs; it has no side effects. This is
|
|
2700
|
-
* primarily useful idiomatically for overridable function endpoints which
|
|
2701
|
-
* always need to be callable, since JS lacks a null-call idiom ala Cocoa.
|
|
2702
|
-
*/
|
|
2703
|
-
var emptyFunction = function emptyFunction() {};
|
|
2704
|
-
|
|
2705
|
-
emptyFunction.thatReturns = makeEmptyFunction;
|
|
2706
|
-
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
|
|
2707
|
-
emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
|
|
2708
|
-
emptyFunction.thatReturnsNull = makeEmptyFunction(null);
|
|
2709
|
-
emptyFunction.thatReturnsThis = function () {
|
|
2710
|
-
return this;
|
|
2711
|
-
};
|
|
2712
|
-
emptyFunction.thatReturnsArgument = function (arg) {
|
|
2713
|
-
return arg;
|
|
2714
|
-
};
|
|
2715
|
-
|
|
2716
|
-
module.exports = emptyFunction;
|
|
2717
|
-
|
|
2718
|
-
/***/ }),
|
|
2719
|
-
/* 34 */
|
|
2592
|
+
/* 32 */
|
|
2720
2593
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2721
2594
|
|
|
2722
2595
|
'use strict';
|
|
@@ -2724,7 +2597,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2724
2597
|
exports.__esModule = true;
|
|
2725
2598
|
exports.readState = exports.saveState = undefined;
|
|
2726
2599
|
|
|
2727
|
-
var _warning = __webpack_require__(
|
|
2600
|
+
var _warning = __webpack_require__(7);
|
|
2728
2601
|
|
|
2729
2602
|
var _warning2 = _interopRequireDefault(_warning);
|
|
2730
2603
|
|
|
@@ -2806,7 +2679,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2806
2679
|
};
|
|
2807
2680
|
|
|
2808
2681
|
/***/ }),
|
|
2809
|
-
/*
|
|
2682
|
+
/* 33 */
|
|
2810
2683
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2811
2684
|
|
|
2812
2685
|
'use strict';
|
|
@@ -2815,11 +2688,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2815
2688
|
|
|
2816
2689
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
2817
2690
|
|
|
2818
|
-
var _runTransitionHook = __webpack_require__(
|
|
2691
|
+
var _runTransitionHook = __webpack_require__(21);
|
|
2819
2692
|
|
|
2820
2693
|
var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook);
|
|
2821
2694
|
|
|
2822
|
-
var _PathUtils = __webpack_require__(
|
|
2695
|
+
var _PathUtils = __webpack_require__(6);
|
|
2823
2696
|
|
|
2824
2697
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2825
2698
|
|
|
@@ -2920,7 +2793,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2920
2793
|
exports.default = useBasename;
|
|
2921
2794
|
|
|
2922
2795
|
/***/ }),
|
|
2923
|
-
/*
|
|
2796
|
+
/* 34 */
|
|
2924
2797
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2925
2798
|
|
|
2926
2799
|
'use strict';
|
|
@@ -2929,15 +2802,15 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2929
2802
|
|
|
2930
2803
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
2931
2804
|
|
|
2932
|
-
var _queryString = __webpack_require__(
|
|
2805
|
+
var _queryString = __webpack_require__(66);
|
|
2933
2806
|
|
|
2934
|
-
var _runTransitionHook = __webpack_require__(
|
|
2807
|
+
var _runTransitionHook = __webpack_require__(21);
|
|
2935
2808
|
|
|
2936
2809
|
var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook);
|
|
2937
2810
|
|
|
2938
2811
|
var _LocationUtils = __webpack_require__(10);
|
|
2939
2812
|
|
|
2940
|
-
var _PathUtils = __webpack_require__(
|
|
2813
|
+
var _PathUtils = __webpack_require__(6);
|
|
2941
2814
|
|
|
2942
2815
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2943
2816
|
|
|
@@ -3046,7 +2919,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3046
2919
|
exports.default = useQueries;
|
|
3047
2920
|
|
|
3048
2921
|
/***/ }),
|
|
3049
|
-
/*
|
|
2922
|
+
/* 35 */
|
|
3050
2923
|
/***/ (function(module, exports) {
|
|
3051
2924
|
|
|
3052
2925
|
/**
|
|
@@ -3064,7 +2937,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3064
2937
|
|
|
3065
2938
|
|
|
3066
2939
|
/***/ }),
|
|
3067
|
-
/*
|
|
2940
|
+
/* 36 */
|
|
3068
2941
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3069
2942
|
|
|
3070
2943
|
'use strict';
|
|
@@ -3073,7 +2946,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3073
2946
|
|
|
3074
2947
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
3075
2948
|
|
|
3076
|
-
var _react = __webpack_require__(
|
|
2949
|
+
var _react = __webpack_require__(4);
|
|
3077
2950
|
|
|
3078
2951
|
var _react2 = _interopRequireDefault(_react);
|
|
3079
2952
|
|
|
@@ -3081,7 +2954,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3081
2954
|
|
|
3082
2955
|
var _createReactClass2 = _interopRequireDefault(_createReactClass);
|
|
3083
2956
|
|
|
3084
|
-
var _Link = __webpack_require__(
|
|
2957
|
+
var _Link = __webpack_require__(24);
|
|
3085
2958
|
|
|
3086
2959
|
var _Link2 = _interopRequireDefault(_Link);
|
|
3087
2960
|
|
|
@@ -3101,7 +2974,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3101
2974
|
exports.default = IndexLink;
|
|
3102
2975
|
|
|
3103
2976
|
/***/ }),
|
|
3104
|
-
/*
|
|
2977
|
+
/* 37 */
|
|
3105
2978
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3106
2979
|
|
|
3107
2980
|
'use strict';
|
|
@@ -3122,7 +2995,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3122
2995
|
|
|
3123
2996
|
var _invariant2 = _interopRequireDefault(_invariant);
|
|
3124
2997
|
|
|
3125
|
-
var _Redirect = __webpack_require__(
|
|
2998
|
+
var _Redirect = __webpack_require__(26);
|
|
3126
2999
|
|
|
3127
3000
|
var _Redirect2 = _interopRequireDefault(_Redirect);
|
|
3128
3001
|
|
|
@@ -3165,7 +3038,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3165
3038
|
exports.default = IndexRedirect;
|
|
3166
3039
|
|
|
3167
3040
|
/***/ }),
|
|
3168
|
-
/*
|
|
3041
|
+
/* 38 */
|
|
3169
3042
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3170
3043
|
|
|
3171
3044
|
'use strict';
|
|
@@ -3186,7 +3059,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3186
3059
|
|
|
3187
3060
|
var _invariant2 = _interopRequireDefault(_invariant);
|
|
3188
3061
|
|
|
3189
|
-
var _RouteUtils = __webpack_require__(
|
|
3062
|
+
var _RouteUtils = __webpack_require__(5);
|
|
3190
3063
|
|
|
3191
3064
|
var _InternalPropTypes = __webpack_require__(11);
|
|
3192
3065
|
|
|
@@ -3228,7 +3101,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3228
3101
|
exports.default = IndexRoute;
|
|
3229
3102
|
|
|
3230
3103
|
/***/ }),
|
|
3231
|
-
/*
|
|
3104
|
+
/* 39 */
|
|
3232
3105
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3233
3106
|
|
|
3234
3107
|
'use strict';
|
|
@@ -3245,7 +3118,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3245
3118
|
|
|
3246
3119
|
var _invariant2 = _interopRequireDefault(_invariant);
|
|
3247
3120
|
|
|
3248
|
-
var _RouteUtils = __webpack_require__(
|
|
3121
|
+
var _RouteUtils = __webpack_require__(5);
|
|
3249
3122
|
|
|
3250
3123
|
var _InternalPropTypes = __webpack_require__(11);
|
|
3251
3124
|
|
|
@@ -3286,7 +3159,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3286
3159
|
exports.default = Route;
|
|
3287
3160
|
|
|
3288
3161
|
/***/ }),
|
|
3289
|
-
/*
|
|
3162
|
+
/* 40 */
|
|
3290
3163
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3291
3164
|
|
|
3292
3165
|
'use strict';
|
|
@@ -3299,7 +3172,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3299
3172
|
|
|
3300
3173
|
var _invariant2 = _interopRequireDefault(_invariant);
|
|
3301
3174
|
|
|
3302
|
-
var _react = __webpack_require__(
|
|
3175
|
+
var _react = __webpack_require__(4);
|
|
3303
3176
|
|
|
3304
3177
|
var _react2 = _interopRequireDefault(_react);
|
|
3305
3178
|
|
|
@@ -3309,7 +3182,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3309
3182
|
|
|
3310
3183
|
var _propTypes = __webpack_require__(2);
|
|
3311
3184
|
|
|
3312
|
-
var _createTransitionManager2 = __webpack_require__(
|
|
3185
|
+
var _createTransitionManager2 = __webpack_require__(30);
|
|
3313
3186
|
|
|
3314
3187
|
var _createTransitionManager3 = _interopRequireDefault(_createTransitionManager2);
|
|
3315
3188
|
|
|
@@ -3319,9 +3192,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3319
3192
|
|
|
3320
3193
|
var _RouterContext2 = _interopRequireDefault(_RouterContext);
|
|
3321
3194
|
|
|
3322
|
-
var _RouteUtils = __webpack_require__(
|
|
3195
|
+
var _RouteUtils = __webpack_require__(5);
|
|
3323
3196
|
|
|
3324
|
-
var _RouterUtils = __webpack_require__(
|
|
3197
|
+
var _RouterUtils = __webpack_require__(27);
|
|
3325
3198
|
|
|
3326
3199
|
var _routerWarning = __webpack_require__(9);
|
|
3327
3200
|
|
|
@@ -3342,13 +3215,16 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3342
3215
|
|
|
3343
3216
|
// PRIVATE: For client-side rehydration of server match.
|
|
3344
3217
|
matchContext: _propTypes.object
|
|
3218
|
+
};
|
|
3345
3219
|
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3220
|
+
var prefixUnsafeLifecycleMethods = typeof _react2.default.forwardRef !== 'undefined';
|
|
3221
|
+
|
|
3222
|
+
/**
|
|
3223
|
+
* A <Router> is a high-level API for automatically setting up
|
|
3224
|
+
* a router that renders a <RouterContext> with all the props
|
|
3225
|
+
* it needs each time the URL changes.
|
|
3226
|
+
*/
|
|
3227
|
+
var Router = (0, _createReactClass2.default)({
|
|
3352
3228
|
displayName: 'Router',
|
|
3353
3229
|
|
|
3354
3230
|
propTypes: propTypes,
|
|
@@ -3404,6 +3280,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3404
3280
|
|
|
3405
3281
|
return (0, _createTransitionManager3.default)(history, (0, _RouteUtils.createRoutes)(routes || children));
|
|
3406
3282
|
},
|
|
3283
|
+
|
|
3284
|
+
|
|
3285
|
+
// this method will be updated to UNSAFE_componentWillMount below for React versions >= 16.3
|
|
3407
3286
|
componentWillMount: function componentWillMount() {
|
|
3408
3287
|
var _this = this;
|
|
3409
3288
|
|
|
@@ -3423,6 +3302,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3423
3302
|
},
|
|
3424
3303
|
|
|
3425
3304
|
|
|
3305
|
+
// this method will be updated to UNSAFE_componentWillReceiveProps below for React versions >= 16.3
|
|
3426
3306
|
/* istanbul ignore next: sanity check */
|
|
3427
3307
|
componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
|
|
3428
3308
|
true ? (0, _routerWarning2.default)(nextProps.history === this.props.history, 'You cannot change <Router history>; it will be ignored') : void 0;
|
|
@@ -3463,10 +3343,17 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3463
3343
|
}
|
|
3464
3344
|
});
|
|
3465
3345
|
|
|
3466
|
-
|
|
3346
|
+
if (prefixUnsafeLifecycleMethods) {
|
|
3347
|
+
Router.prototype.UNSAFE_componentWillReceiveProps = Router.prototype.componentWillReceiveProps;
|
|
3348
|
+
Router.prototype.UNSAFE_componentWillMount = Router.prototype.componentWillMount;
|
|
3349
|
+
delete Router.prototype.componentWillReceiveProps;
|
|
3350
|
+
delete Router.prototype.componentWillMount;
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
exports.default = Router;
|
|
3467
3354
|
|
|
3468
3355
|
/***/ }),
|
|
3469
|
-
/*
|
|
3356
|
+
/* 41 */
|
|
3470
3357
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3471
3358
|
|
|
3472
3359
|
'use strict';
|
|
@@ -3632,7 +3519,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3632
3519
|
}
|
|
3633
3520
|
|
|
3634
3521
|
/***/ }),
|
|
3635
|
-
/*
|
|
3522
|
+
/* 42 */
|
|
3636
3523
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3637
3524
|
|
|
3638
3525
|
'use strict';
|
|
@@ -3641,7 +3528,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3641
3528
|
|
|
3642
3529
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
3643
3530
|
|
|
3644
|
-
var _react = __webpack_require__(
|
|
3531
|
+
var _react = __webpack_require__(4);
|
|
3645
3532
|
|
|
3646
3533
|
var _react2 = _interopRequireDefault(_react);
|
|
3647
3534
|
|
|
@@ -3692,18 +3579,18 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3692
3579
|
};
|
|
3693
3580
|
|
|
3694
3581
|
/***/ }),
|
|
3695
|
-
/*
|
|
3582
|
+
/* 43 */
|
|
3696
3583
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3697
3584
|
|
|
3698
3585
|
'use strict';
|
|
3699
3586
|
|
|
3700
3587
|
exports.__esModule = true;
|
|
3701
3588
|
|
|
3702
|
-
var _createBrowserHistory = __webpack_require__(
|
|
3589
|
+
var _createBrowserHistory = __webpack_require__(60);
|
|
3703
3590
|
|
|
3704
3591
|
var _createBrowserHistory2 = _interopRequireDefault(_createBrowserHistory);
|
|
3705
3592
|
|
|
3706
|
-
var _createRouterHistory = __webpack_require__(
|
|
3593
|
+
var _createRouterHistory = __webpack_require__(29);
|
|
3707
3594
|
|
|
3708
3595
|
var _createRouterHistory2 = _interopRequireDefault(_createRouterHistory);
|
|
3709
3596
|
|
|
@@ -3712,7 +3599,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3712
3599
|
exports.default = (0, _createRouterHistory2.default)(_createBrowserHistory2.default);
|
|
3713
3600
|
|
|
3714
3601
|
/***/ }),
|
|
3715
|
-
/*
|
|
3602
|
+
/* 44 */
|
|
3716
3603
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3717
3604
|
|
|
3718
3605
|
'use strict';
|
|
@@ -3791,7 +3678,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3791
3678
|
exports.default = computeChangedRoutes;
|
|
3792
3679
|
|
|
3793
3680
|
/***/ }),
|
|
3794
|
-
/*
|
|
3681
|
+
/* 45 */
|
|
3795
3682
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3796
3683
|
|
|
3797
3684
|
'use strict';
|
|
@@ -3800,7 +3687,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3800
3687
|
|
|
3801
3688
|
var _AsyncUtils = __webpack_require__(14);
|
|
3802
3689
|
|
|
3803
|
-
var _PromiseUtils = __webpack_require__(
|
|
3690
|
+
var _PromiseUtils = __webpack_require__(25);
|
|
3804
3691
|
|
|
3805
3692
|
function getComponentsForRoute(nextState, route, callback) {
|
|
3806
3693
|
if (route.component || route.components) {
|
|
@@ -3835,7 +3722,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3835
3722
|
exports.default = getComponents;
|
|
3836
3723
|
|
|
3837
3724
|
/***/ }),
|
|
3838
|
-
/*
|
|
3725
|
+
/* 46 */
|
|
3839
3726
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3840
3727
|
|
|
3841
3728
|
'use strict';
|
|
@@ -3865,18 +3752,18 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3865
3752
|
exports.default = getRouteParams;
|
|
3866
3753
|
|
|
3867
3754
|
/***/ }),
|
|
3868
|
-
/*
|
|
3755
|
+
/* 47 */
|
|
3869
3756
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3870
3757
|
|
|
3871
3758
|
'use strict';
|
|
3872
3759
|
|
|
3873
3760
|
exports.__esModule = true;
|
|
3874
3761
|
|
|
3875
|
-
var _createHashHistory = __webpack_require__(
|
|
3762
|
+
var _createHashHistory = __webpack_require__(61);
|
|
3876
3763
|
|
|
3877
3764
|
var _createHashHistory2 = _interopRequireDefault(_createHashHistory);
|
|
3878
3765
|
|
|
3879
|
-
var _createRouterHistory = __webpack_require__(
|
|
3766
|
+
var _createRouterHistory = __webpack_require__(29);
|
|
3880
3767
|
|
|
3881
3768
|
var _createRouterHistory2 = _interopRequireDefault(_createRouterHistory);
|
|
3882
3769
|
|
|
@@ -3885,7 +3772,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
3885
3772
|
exports.default = (0, _createRouterHistory2.default)(_createHashHistory2.default);
|
|
3886
3773
|
|
|
3887
3774
|
/***/ }),
|
|
3888
|
-
/*
|
|
3775
|
+
/* 48 */
|
|
3889
3776
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3890
3777
|
|
|
3891
3778
|
'use strict';
|
|
@@ -4041,7 +3928,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4041
3928
|
}
|
|
4042
3929
|
|
|
4043
3930
|
/***/ }),
|
|
4044
|
-
/*
|
|
3931
|
+
/* 49 */
|
|
4045
3932
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4046
3933
|
|
|
4047
3934
|
'use strict';
|
|
@@ -4056,17 +3943,17 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4056
3943
|
|
|
4057
3944
|
var _invariant2 = _interopRequireDefault(_invariant);
|
|
4058
3945
|
|
|
4059
|
-
var _createMemoryHistory = __webpack_require__(
|
|
3946
|
+
var _createMemoryHistory = __webpack_require__(28);
|
|
4060
3947
|
|
|
4061
3948
|
var _createMemoryHistory2 = _interopRequireDefault(_createMemoryHistory);
|
|
4062
3949
|
|
|
4063
|
-
var _createTransitionManager = __webpack_require__(
|
|
3950
|
+
var _createTransitionManager = __webpack_require__(30);
|
|
4064
3951
|
|
|
4065
3952
|
var _createTransitionManager2 = _interopRequireDefault(_createTransitionManager);
|
|
4066
3953
|
|
|
4067
|
-
var _RouteUtils = __webpack_require__(
|
|
3954
|
+
var _RouteUtils = __webpack_require__(5);
|
|
4068
3955
|
|
|
4069
|
-
var _RouterUtils = __webpack_require__(
|
|
3956
|
+
var _RouterUtils = __webpack_require__(27);
|
|
4070
3957
|
|
|
4071
3958
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4072
3959
|
|
|
@@ -4117,7 +4004,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4117
4004
|
exports.default = match;
|
|
4118
4005
|
|
|
4119
4006
|
/***/ }),
|
|
4120
|
-
/*
|
|
4007
|
+
/* 50 */
|
|
4121
4008
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4122
4009
|
|
|
4123
4010
|
'use strict';
|
|
@@ -4130,7 +4017,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4130
4017
|
|
|
4131
4018
|
var _AsyncUtils = __webpack_require__(14);
|
|
4132
4019
|
|
|
4133
|
-
var _PromiseUtils = __webpack_require__(
|
|
4020
|
+
var _PromiseUtils = __webpack_require__(25);
|
|
4134
4021
|
|
|
4135
4022
|
var _PatternUtils = __webpack_require__(8);
|
|
4136
4023
|
|
|
@@ -4138,7 +4025,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4138
4025
|
|
|
4139
4026
|
var _routerWarning2 = _interopRequireDefault(_routerWarning);
|
|
4140
4027
|
|
|
4141
|
-
var _RouteUtils = __webpack_require__(
|
|
4028
|
+
var _RouteUtils = __webpack_require__(5);
|
|
4142
4029
|
|
|
4143
4030
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4144
4031
|
|
|
@@ -4376,7 +4263,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4376
4263
|
}
|
|
4377
4264
|
|
|
4378
4265
|
/***/ }),
|
|
4379
|
-
/*
|
|
4266
|
+
/* 51 */
|
|
4380
4267
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4381
4268
|
|
|
4382
4269
|
'use strict';
|
|
@@ -4391,7 +4278,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4391
4278
|
|
|
4392
4279
|
var _invariant2 = _interopRequireDefault(_invariant);
|
|
4393
4280
|
|
|
4394
|
-
var _react = __webpack_require__(
|
|
4281
|
+
var _react = __webpack_require__(4);
|
|
4395
4282
|
|
|
4396
4283
|
var _react2 = _interopRequireDefault(_react);
|
|
4397
4284
|
|
|
@@ -4399,7 +4286,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4399
4286
|
|
|
4400
4287
|
var _createReactClass2 = _interopRequireDefault(_createReactClass);
|
|
4401
4288
|
|
|
4402
|
-
var _hoistNonReactStatics = __webpack_require__(
|
|
4289
|
+
var _hoistNonReactStatics = __webpack_require__(63);
|
|
4403
4290
|
|
|
4404
4291
|
var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics);
|
|
4405
4292
|
|
|
@@ -4460,7 +4347,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4460
4347
|
}
|
|
4461
4348
|
|
|
4462
4349
|
/***/ }),
|
|
4463
|
-
/*
|
|
4350
|
+
/* 52 */
|
|
4464
4351
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4465
4352
|
|
|
4466
4353
|
/**
|
|
@@ -4473,13 +4360,13 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
4473
4360
|
|
|
4474
4361
|
'use strict';
|
|
4475
4362
|
|
|
4476
|
-
var _assign = __webpack_require__(
|
|
4363
|
+
var _assign = __webpack_require__(22);
|
|
4477
4364
|
|
|
4478
|
-
var emptyObject = __webpack_require__(
|
|
4479
|
-
var _invariant = __webpack_require__(
|
|
4365
|
+
var emptyObject = __webpack_require__(54);
|
|
4366
|
+
var _invariant = __webpack_require__(55);
|
|
4480
4367
|
|
|
4481
4368
|
if (true) {
|
|
4482
|
-
var warning = __webpack_require__(
|
|
4369
|
+
var warning = __webpack_require__(56);
|
|
4483
4370
|
}
|
|
4484
4371
|
|
|
4485
4372
|
var MIXINS_KEY = 'mixins';
|
|
@@ -5392,7 +5279,48 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5392
5279
|
|
|
5393
5280
|
|
|
5394
5281
|
/***/ }),
|
|
5395
|
-
/*
|
|
5282
|
+
/* 53 */
|
|
5283
|
+
/***/ (function(module, exports) {
|
|
5284
|
+
|
|
5285
|
+
"use strict";
|
|
5286
|
+
|
|
5287
|
+
/**
|
|
5288
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5289
|
+
*
|
|
5290
|
+
* This source code is licensed under the MIT license found in the
|
|
5291
|
+
* LICENSE file in the root directory of this source tree.
|
|
5292
|
+
*
|
|
5293
|
+
*
|
|
5294
|
+
*/
|
|
5295
|
+
|
|
5296
|
+
function makeEmptyFunction(arg) {
|
|
5297
|
+
return function () {
|
|
5298
|
+
return arg;
|
|
5299
|
+
};
|
|
5300
|
+
}
|
|
5301
|
+
|
|
5302
|
+
/**
|
|
5303
|
+
* This function accepts and discards inputs; it has no side effects. This is
|
|
5304
|
+
* primarily useful idiomatically for overridable function endpoints which
|
|
5305
|
+
* always need to be callable, since JS lacks a null-call idiom ala Cocoa.
|
|
5306
|
+
*/
|
|
5307
|
+
var emptyFunction = function emptyFunction() {};
|
|
5308
|
+
|
|
5309
|
+
emptyFunction.thatReturns = makeEmptyFunction;
|
|
5310
|
+
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
|
|
5311
|
+
emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
|
|
5312
|
+
emptyFunction.thatReturnsNull = makeEmptyFunction(null);
|
|
5313
|
+
emptyFunction.thatReturnsThis = function () {
|
|
5314
|
+
return this;
|
|
5315
|
+
};
|
|
5316
|
+
emptyFunction.thatReturnsArgument = function (arg) {
|
|
5317
|
+
return arg;
|
|
5318
|
+
};
|
|
5319
|
+
|
|
5320
|
+
module.exports = emptyFunction;
|
|
5321
|
+
|
|
5322
|
+
/***/ }),
|
|
5323
|
+
/* 54 */
|
|
5396
5324
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5397
5325
|
|
|
5398
5326
|
/**
|
|
@@ -5413,8 +5341,133 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5413
5341
|
|
|
5414
5342
|
module.exports = emptyObject;
|
|
5415
5343
|
|
|
5344
|
+
/***/ }),
|
|
5345
|
+
/* 55 */
|
|
5346
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5347
|
+
|
|
5348
|
+
/**
|
|
5349
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5350
|
+
*
|
|
5351
|
+
* This source code is licensed under the MIT license found in the
|
|
5352
|
+
* LICENSE file in the root directory of this source tree.
|
|
5353
|
+
*
|
|
5354
|
+
*/
|
|
5355
|
+
|
|
5356
|
+
'use strict';
|
|
5357
|
+
|
|
5358
|
+
/**
|
|
5359
|
+
* Use invariant() to assert state which your program assumes to be true.
|
|
5360
|
+
*
|
|
5361
|
+
* Provide sprintf-style format (only %s is supported) and arguments
|
|
5362
|
+
* to provide information about what broke and what you were
|
|
5363
|
+
* expecting.
|
|
5364
|
+
*
|
|
5365
|
+
* The invariant message will be stripped in production, but the invariant
|
|
5366
|
+
* will remain to ensure logic does not differ in production.
|
|
5367
|
+
*/
|
|
5368
|
+
|
|
5369
|
+
var validateFormat = function validateFormat(format) {};
|
|
5370
|
+
|
|
5371
|
+
if (true) {
|
|
5372
|
+
validateFormat = function validateFormat(format) {
|
|
5373
|
+
if (format === undefined) {
|
|
5374
|
+
throw new Error('invariant requires an error message argument');
|
|
5375
|
+
}
|
|
5376
|
+
};
|
|
5377
|
+
}
|
|
5378
|
+
|
|
5379
|
+
function invariant(condition, format, a, b, c, d, e, f) {
|
|
5380
|
+
validateFormat(format);
|
|
5381
|
+
|
|
5382
|
+
if (!condition) {
|
|
5383
|
+
var error;
|
|
5384
|
+
if (format === undefined) {
|
|
5385
|
+
error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
|
|
5386
|
+
} else {
|
|
5387
|
+
var args = [a, b, c, d, e, f];
|
|
5388
|
+
var argIndex = 0;
|
|
5389
|
+
error = new Error(format.replace(/%s/g, function () {
|
|
5390
|
+
return args[argIndex++];
|
|
5391
|
+
}));
|
|
5392
|
+
error.name = 'Invariant Violation';
|
|
5393
|
+
}
|
|
5394
|
+
|
|
5395
|
+
error.framesToPop = 1; // we don't care about invariant's own frame
|
|
5396
|
+
throw error;
|
|
5397
|
+
}
|
|
5398
|
+
}
|
|
5399
|
+
|
|
5400
|
+
module.exports = invariant;
|
|
5401
|
+
|
|
5416
5402
|
/***/ }),
|
|
5417
5403
|
/* 56 */
|
|
5404
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5405
|
+
|
|
5406
|
+
/**
|
|
5407
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
5408
|
+
*
|
|
5409
|
+
* This source code is licensed under the MIT license found in the
|
|
5410
|
+
* LICENSE file in the root directory of this source tree.
|
|
5411
|
+
*
|
|
5412
|
+
*/
|
|
5413
|
+
|
|
5414
|
+
'use strict';
|
|
5415
|
+
|
|
5416
|
+
var emptyFunction = __webpack_require__(53);
|
|
5417
|
+
|
|
5418
|
+
/**
|
|
5419
|
+
* Similar to invariant but only logs a warning if the condition is not met.
|
|
5420
|
+
* This can be used to log issues in development environments in critical
|
|
5421
|
+
* paths. Removing the logging code for production environments will keep the
|
|
5422
|
+
* same logic and follow the same code paths.
|
|
5423
|
+
*/
|
|
5424
|
+
|
|
5425
|
+
var warning = emptyFunction;
|
|
5426
|
+
|
|
5427
|
+
if (true) {
|
|
5428
|
+
var printWarning = function printWarning(format) {
|
|
5429
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
5430
|
+
args[_key - 1] = arguments[_key];
|
|
5431
|
+
}
|
|
5432
|
+
|
|
5433
|
+
var argIndex = 0;
|
|
5434
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
5435
|
+
return args[argIndex++];
|
|
5436
|
+
});
|
|
5437
|
+
if (typeof console !== 'undefined') {
|
|
5438
|
+
console.error(message);
|
|
5439
|
+
}
|
|
5440
|
+
try {
|
|
5441
|
+
// --- Welcome to debugging React ---
|
|
5442
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
5443
|
+
// to find the callsite that caused this warning to fire.
|
|
5444
|
+
throw new Error(message);
|
|
5445
|
+
} catch (x) {}
|
|
5446
|
+
};
|
|
5447
|
+
|
|
5448
|
+
warning = function warning(condition, format) {
|
|
5449
|
+
if (format === undefined) {
|
|
5450
|
+
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
5451
|
+
}
|
|
5452
|
+
|
|
5453
|
+
if (format.indexOf('Failed Composite propType: ') === 0) {
|
|
5454
|
+
return; // Ignore CompositeComponent proptype check.
|
|
5455
|
+
}
|
|
5456
|
+
|
|
5457
|
+
if (!condition) {
|
|
5458
|
+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
5459
|
+
args[_key2 - 2] = arguments[_key2];
|
|
5460
|
+
}
|
|
5461
|
+
|
|
5462
|
+
printWarning.apply(undefined, [format].concat(args));
|
|
5463
|
+
}
|
|
5464
|
+
};
|
|
5465
|
+
}
|
|
5466
|
+
|
|
5467
|
+
module.exports = warning;
|
|
5468
|
+
|
|
5469
|
+
/***/ }),
|
|
5470
|
+
/* 57 */
|
|
5418
5471
|
/***/ (function(module, exports) {
|
|
5419
5472
|
|
|
5420
5473
|
"use strict";
|
|
@@ -5475,7 +5528,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5475
5528
|
};
|
|
5476
5529
|
|
|
5477
5530
|
/***/ }),
|
|
5478
|
-
/*
|
|
5531
|
+
/* 58 */
|
|
5479
5532
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5480
5533
|
|
|
5481
5534
|
'use strict';
|
|
@@ -5483,7 +5536,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5483
5536
|
exports.__esModule = true;
|
|
5484
5537
|
exports.replaceLocation = exports.pushLocation = exports.startListener = exports.getCurrentLocation = exports.go = exports.getUserConfirmation = undefined;
|
|
5485
5538
|
|
|
5486
|
-
var _BrowserProtocol = __webpack_require__(
|
|
5539
|
+
var _BrowserProtocol = __webpack_require__(18);
|
|
5487
5540
|
|
|
5488
5541
|
Object.defineProperty(exports, 'getUserConfirmation', {
|
|
5489
5542
|
enumerable: true,
|
|
@@ -5498,7 +5551,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5498
5551
|
}
|
|
5499
5552
|
});
|
|
5500
5553
|
|
|
5501
|
-
var _warning = __webpack_require__(
|
|
5554
|
+
var _warning = __webpack_require__(7);
|
|
5502
5555
|
|
|
5503
5556
|
var _warning2 = _interopRequireDefault(_warning);
|
|
5504
5557
|
|
|
@@ -5506,9 +5559,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5506
5559
|
|
|
5507
5560
|
var _DOMUtils = __webpack_require__(13);
|
|
5508
5561
|
|
|
5509
|
-
var _DOMStateStorage = __webpack_require__(
|
|
5562
|
+
var _DOMStateStorage = __webpack_require__(32);
|
|
5510
5563
|
|
|
5511
|
-
var _PathUtils = __webpack_require__(
|
|
5564
|
+
var _PathUtils = __webpack_require__(6);
|
|
5512
5565
|
|
|
5513
5566
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
5514
5567
|
|
|
@@ -5616,7 +5669,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5616
5669
|
};
|
|
5617
5670
|
|
|
5618
5671
|
/***/ }),
|
|
5619
|
-
/*
|
|
5672
|
+
/* 59 */
|
|
5620
5673
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5621
5674
|
|
|
5622
5675
|
'use strict';
|
|
@@ -5624,7 +5677,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5624
5677
|
exports.__esModule = true;
|
|
5625
5678
|
exports.replaceLocation = exports.pushLocation = exports.getCurrentLocation = exports.go = exports.getUserConfirmation = undefined;
|
|
5626
5679
|
|
|
5627
|
-
var _BrowserProtocol = __webpack_require__(
|
|
5680
|
+
var _BrowserProtocol = __webpack_require__(18);
|
|
5628
5681
|
|
|
5629
5682
|
Object.defineProperty(exports, 'getUserConfirmation', {
|
|
5630
5683
|
enumerable: true,
|
|
@@ -5641,7 +5694,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5641
5694
|
|
|
5642
5695
|
var _LocationUtils = __webpack_require__(10);
|
|
5643
5696
|
|
|
5644
|
-
var _PathUtils = __webpack_require__(
|
|
5697
|
+
var _PathUtils = __webpack_require__(6);
|
|
5645
5698
|
|
|
5646
5699
|
var getCurrentLocation = exports.getCurrentLocation = function getCurrentLocation() {
|
|
5647
5700
|
return (0, _LocationUtils.createLocation)(window.location);
|
|
@@ -5658,7 +5711,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5658
5711
|
};
|
|
5659
5712
|
|
|
5660
5713
|
/***/ }),
|
|
5661
|
-
/*
|
|
5714
|
+
/* 60 */
|
|
5662
5715
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5663
5716
|
|
|
5664
5717
|
'use strict';
|
|
@@ -5671,19 +5724,19 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5671
5724
|
|
|
5672
5725
|
var _invariant2 = _interopRequireDefault(_invariant);
|
|
5673
5726
|
|
|
5674
|
-
var _ExecutionEnvironment = __webpack_require__(
|
|
5727
|
+
var _ExecutionEnvironment = __webpack_require__(19);
|
|
5675
5728
|
|
|
5676
|
-
var _BrowserProtocol = __webpack_require__(
|
|
5729
|
+
var _BrowserProtocol = __webpack_require__(18);
|
|
5677
5730
|
|
|
5678
5731
|
var BrowserProtocol = _interopRequireWildcard(_BrowserProtocol);
|
|
5679
5732
|
|
|
5680
|
-
var _RefreshProtocol = __webpack_require__(
|
|
5733
|
+
var _RefreshProtocol = __webpack_require__(59);
|
|
5681
5734
|
|
|
5682
5735
|
var RefreshProtocol = _interopRequireWildcard(_RefreshProtocol);
|
|
5683
5736
|
|
|
5684
5737
|
var _DOMUtils = __webpack_require__(13);
|
|
5685
5738
|
|
|
5686
|
-
var _createHistory = __webpack_require__(
|
|
5739
|
+
var _createHistory = __webpack_require__(20);
|
|
5687
5740
|
|
|
5688
5741
|
var _createHistory2 = _interopRequireDefault(_createHistory);
|
|
5689
5742
|
|
|
@@ -5756,7 +5809,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5756
5809
|
exports.default = createBrowserHistory;
|
|
5757
5810
|
|
|
5758
5811
|
/***/ }),
|
|
5759
|
-
/*
|
|
5812
|
+
/* 61 */
|
|
5760
5813
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5761
5814
|
|
|
5762
5815
|
'use strict';
|
|
@@ -5765,7 +5818,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5765
5818
|
|
|
5766
5819
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
5767
5820
|
|
|
5768
|
-
var _warning = __webpack_require__(
|
|
5821
|
+
var _warning = __webpack_require__(7);
|
|
5769
5822
|
|
|
5770
5823
|
var _warning2 = _interopRequireDefault(_warning);
|
|
5771
5824
|
|
|
@@ -5773,15 +5826,15 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5773
5826
|
|
|
5774
5827
|
var _invariant2 = _interopRequireDefault(_invariant);
|
|
5775
5828
|
|
|
5776
|
-
var _ExecutionEnvironment = __webpack_require__(
|
|
5829
|
+
var _ExecutionEnvironment = __webpack_require__(19);
|
|
5777
5830
|
|
|
5778
5831
|
var _DOMUtils = __webpack_require__(13);
|
|
5779
5832
|
|
|
5780
|
-
var _HashProtocol = __webpack_require__(
|
|
5833
|
+
var _HashProtocol = __webpack_require__(58);
|
|
5781
5834
|
|
|
5782
5835
|
var HashProtocol = _interopRequireWildcard(_HashProtocol);
|
|
5783
5836
|
|
|
5784
|
-
var _createHistory = __webpack_require__(
|
|
5837
|
+
var _createHistory = __webpack_require__(20);
|
|
5785
5838
|
|
|
5786
5839
|
var _createHistory2 = _interopRequireDefault(_createHistory);
|
|
5787
5840
|
|
|
@@ -5908,7 +5961,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5908
5961
|
exports.default = createHashHistory;
|
|
5909
5962
|
|
|
5910
5963
|
/***/ }),
|
|
5911
|
-
/*
|
|
5964
|
+
/* 62 */
|
|
5912
5965
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5913
5966
|
|
|
5914
5967
|
'use strict';
|
|
@@ -5917,7 +5970,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5917
5970
|
|
|
5918
5971
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
5919
5972
|
|
|
5920
|
-
var _warning = __webpack_require__(
|
|
5973
|
+
var _warning = __webpack_require__(7);
|
|
5921
5974
|
|
|
5922
5975
|
var _warning2 = _interopRequireDefault(_warning);
|
|
5923
5976
|
|
|
@@ -5927,9 +5980,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
5927
5980
|
|
|
5928
5981
|
var _LocationUtils = __webpack_require__(10);
|
|
5929
5982
|
|
|
5930
|
-
var _PathUtils = __webpack_require__(
|
|
5983
|
+
var _PathUtils = __webpack_require__(6);
|
|
5931
5984
|
|
|
5932
|
-
var _createHistory = __webpack_require__(
|
|
5985
|
+
var _createHistory = __webpack_require__(20);
|
|
5933
5986
|
|
|
5934
5987
|
var _createHistory2 = _interopRequireDefault(_createHistory);
|
|
5935
5988
|
|
|
@@ -6053,85 +6106,81 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6053
6106
|
exports.default = createMemoryHistory;
|
|
6054
6107
|
|
|
6055
6108
|
/***/ }),
|
|
6056
|
-
/*
|
|
6057
|
-
/***/ (function(module, exports
|
|
6109
|
+
/* 63 */
|
|
6110
|
+
/***/ (function(module, exports) {
|
|
6111
|
+
|
|
6112
|
+
'use strict';
|
|
6058
6113
|
|
|
6059
6114
|
/**
|
|
6060
6115
|
* Copyright 2015, Yahoo! Inc.
|
|
6061
6116
|
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
6062
6117
|
*/
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
return function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
6100
|
-
if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components
|
|
6101
|
-
|
|
6102
|
-
if (objectPrototype) {
|
|
6103
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
6104
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
6105
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
6106
|
-
}
|
|
6107
|
-
}
|
|
6108
|
-
|
|
6109
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
6110
|
-
|
|
6111
|
-
if (getOwnPropertySymbols) {
|
|
6112
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
6118
|
+
var REACT_STATICS = {
|
|
6119
|
+
childContextTypes: true,
|
|
6120
|
+
contextTypes: true,
|
|
6121
|
+
defaultProps: true,
|
|
6122
|
+
displayName: true,
|
|
6123
|
+
getDefaultProps: true,
|
|
6124
|
+
getDerivedStateFromProps: true,
|
|
6125
|
+
mixins: true,
|
|
6126
|
+
propTypes: true,
|
|
6127
|
+
type: true
|
|
6128
|
+
};
|
|
6129
|
+
|
|
6130
|
+
var KNOWN_STATICS = {
|
|
6131
|
+
name: true,
|
|
6132
|
+
length: true,
|
|
6133
|
+
prototype: true,
|
|
6134
|
+
caller: true,
|
|
6135
|
+
callee: true,
|
|
6136
|
+
arguments: true,
|
|
6137
|
+
arity: true
|
|
6138
|
+
};
|
|
6139
|
+
|
|
6140
|
+
var defineProperty = Object.defineProperty;
|
|
6141
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
6142
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
6143
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
6144
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
6145
|
+
var objectPrototype = getPrototypeOf && getPrototypeOf(Object);
|
|
6146
|
+
|
|
6147
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
6148
|
+
if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components
|
|
6149
|
+
|
|
6150
|
+
if (objectPrototype) {
|
|
6151
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
6152
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
6153
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
6113
6154
|
}
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6155
|
+
}
|
|
6156
|
+
|
|
6157
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
|
6158
|
+
|
|
6159
|
+
if (getOwnPropertySymbols) {
|
|
6160
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
6161
|
+
}
|
|
6162
|
+
|
|
6163
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
6164
|
+
var key = keys[i];
|
|
6165
|
+
if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
|
|
6166
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
6167
|
+
try { // Avoid failures from read-only properties
|
|
6168
|
+
defineProperty(targetComponent, key, descriptor);
|
|
6169
|
+
} catch (e) {}
|
|
6123
6170
|
}
|
|
6124
|
-
|
|
6125
|
-
return targetComponent;
|
|
6126
6171
|
}
|
|
6127
|
-
|
|
6172
|
+
|
|
6128
6173
|
return targetComponent;
|
|
6129
|
-
}
|
|
6130
|
-
|
|
6174
|
+
}
|
|
6175
|
+
|
|
6176
|
+
return targetComponent;
|
|
6177
|
+
}
|
|
6178
|
+
|
|
6179
|
+
module.exports = hoistNonReactStatics;
|
|
6131
6180
|
|
|
6132
6181
|
|
|
6133
6182
|
/***/ }),
|
|
6134
|
-
/*
|
|
6183
|
+
/* 64 */
|
|
6135
6184
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6136
6185
|
|
|
6137
6186
|
/**
|
|
@@ -6143,11 +6192,25 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6143
6192
|
|
|
6144
6193
|
'use strict';
|
|
6145
6194
|
|
|
6195
|
+
var printWarning = function() {};
|
|
6196
|
+
|
|
6146
6197
|
if (true) {
|
|
6147
|
-
var
|
|
6148
|
-
var warning = __webpack_require__(19);
|
|
6149
|
-
var ReactPropTypesSecret = __webpack_require__(37);
|
|
6198
|
+
var ReactPropTypesSecret = __webpack_require__(35);
|
|
6150
6199
|
var loggedTypeFailures = {};
|
|
6200
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6201
|
+
|
|
6202
|
+
printWarning = function(text) {
|
|
6203
|
+
var message = 'Warning: ' + text;
|
|
6204
|
+
if (typeof console !== 'undefined') {
|
|
6205
|
+
console.error(message);
|
|
6206
|
+
}
|
|
6207
|
+
try {
|
|
6208
|
+
// --- Welcome to debugging React ---
|
|
6209
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
6210
|
+
// to find the callsite that caused this warning to fire.
|
|
6211
|
+
throw new Error(message);
|
|
6212
|
+
} catch (x) {}
|
|
6213
|
+
};
|
|
6151
6214
|
}
|
|
6152
6215
|
|
|
6153
6216
|
/**
|
|
@@ -6164,7 +6227,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6164
6227
|
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
6165
6228
|
if (true) {
|
|
6166
6229
|
for (var typeSpecName in typeSpecs) {
|
|
6167
|
-
if (typeSpecs
|
|
6230
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
6168
6231
|
var error;
|
|
6169
6232
|
// Prop type validation may throw. In case they do, we don't want to
|
|
6170
6233
|
// fail the render phase where it didn't fail before. So we log it.
|
|
@@ -6172,12 +6235,28 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6172
6235
|
try {
|
|
6173
6236
|
// This is intentionally an invariant that gets caught. It's the same
|
|
6174
6237
|
// behavior as without this statement except with a better message.
|
|
6175
|
-
|
|
6238
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
6239
|
+
var err = Error(
|
|
6240
|
+
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
6241
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
6242
|
+
);
|
|
6243
|
+
err.name = 'Invariant Violation';
|
|
6244
|
+
throw err;
|
|
6245
|
+
}
|
|
6176
6246
|
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
6177
6247
|
} catch (ex) {
|
|
6178
6248
|
error = ex;
|
|
6179
6249
|
}
|
|
6180
|
-
|
|
6250
|
+
if (error && !(error instanceof Error)) {
|
|
6251
|
+
printWarning(
|
|
6252
|
+
(componentName || 'React class') + ': type specification of ' +
|
|
6253
|
+
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
6254
|
+
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
6255
|
+
'You may have forgotten to pass an argument to the type checker ' +
|
|
6256
|
+
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
6257
|
+
'shape all require an argument).'
|
|
6258
|
+
);
|
|
6259
|
+
}
|
|
6181
6260
|
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
6182
6261
|
// Only monitor this failure once because there tends to be a lot of the
|
|
6183
6262
|
// same error.
|
|
@@ -6185,18 +6264,31 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6185
6264
|
|
|
6186
6265
|
var stack = getStack ? getStack() : '';
|
|
6187
6266
|
|
|
6188
|
-
|
|
6267
|
+
printWarning(
|
|
6268
|
+
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
6269
|
+
);
|
|
6189
6270
|
}
|
|
6190
6271
|
}
|
|
6191
6272
|
}
|
|
6192
6273
|
}
|
|
6193
6274
|
}
|
|
6194
6275
|
|
|
6276
|
+
/**
|
|
6277
|
+
* Resets warning cache when testing.
|
|
6278
|
+
*
|
|
6279
|
+
* @private
|
|
6280
|
+
*/
|
|
6281
|
+
checkPropTypes.resetWarningCache = function() {
|
|
6282
|
+
if (true) {
|
|
6283
|
+
loggedTypeFailures = {};
|
|
6284
|
+
}
|
|
6285
|
+
}
|
|
6286
|
+
|
|
6195
6287
|
module.exports = checkPropTypes;
|
|
6196
6288
|
|
|
6197
6289
|
|
|
6198
6290
|
/***/ }),
|
|
6199
|
-
/*
|
|
6291
|
+
/* 65 */
|
|
6200
6292
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6201
6293
|
|
|
6202
6294
|
/**
|
|
@@ -6208,13 +6300,33 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6208
6300
|
|
|
6209
6301
|
'use strict';
|
|
6210
6302
|
|
|
6211
|
-
var
|
|
6212
|
-
var
|
|
6213
|
-
|
|
6214
|
-
var
|
|
6303
|
+
var ReactIs = __webpack_require__(23);
|
|
6304
|
+
var assign = __webpack_require__(22);
|
|
6305
|
+
|
|
6306
|
+
var ReactPropTypesSecret = __webpack_require__(35);
|
|
6307
|
+
var checkPropTypes = __webpack_require__(64);
|
|
6308
|
+
|
|
6309
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6310
|
+
var printWarning = function() {};
|
|
6311
|
+
|
|
6312
|
+
if (true) {
|
|
6313
|
+
printWarning = function(text) {
|
|
6314
|
+
var message = 'Warning: ' + text;
|
|
6315
|
+
if (typeof console !== 'undefined') {
|
|
6316
|
+
console.error(message);
|
|
6317
|
+
}
|
|
6318
|
+
try {
|
|
6319
|
+
// --- Welcome to debugging React ---
|
|
6320
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
6321
|
+
// to find the callsite that caused this warning to fire.
|
|
6322
|
+
throw new Error(message);
|
|
6323
|
+
} catch (x) {}
|
|
6324
|
+
};
|
|
6325
|
+
}
|
|
6215
6326
|
|
|
6216
|
-
|
|
6217
|
-
|
|
6327
|
+
function emptyFunctionThatReturnsNull() {
|
|
6328
|
+
return null;
|
|
6329
|
+
}
|
|
6218
6330
|
|
|
6219
6331
|
module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
6220
6332
|
/* global Symbol */
|
|
@@ -6305,6 +6417,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6305
6417
|
any: createAnyTypeChecker(),
|
|
6306
6418
|
arrayOf: createArrayOfTypeChecker,
|
|
6307
6419
|
element: createElementTypeChecker(),
|
|
6420
|
+
elementType: createElementTypeTypeChecker(),
|
|
6308
6421
|
instanceOf: createInstanceTypeChecker,
|
|
6309
6422
|
node: createNodeChecker(),
|
|
6310
6423
|
objectOf: createObjectOfTypeChecker,
|
|
@@ -6358,12 +6471,13 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6358
6471
|
if (secret !== ReactPropTypesSecret) {
|
|
6359
6472
|
if (throwOnDirectAccess) {
|
|
6360
6473
|
// New behavior only for users of `prop-types` package
|
|
6361
|
-
|
|
6362
|
-
false,
|
|
6474
|
+
var err = new Error(
|
|
6363
6475
|
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
6364
6476
|
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
6365
6477
|
'Read more at http://fb.me/use-check-prop-types'
|
|
6366
6478
|
);
|
|
6479
|
+
err.name = 'Invariant Violation';
|
|
6480
|
+
throw err;
|
|
6367
6481
|
} else if (("development") !== 'production' && typeof console !== 'undefined') {
|
|
6368
6482
|
// Old behavior for people using React.PropTypes
|
|
6369
6483
|
var cacheKey = componentName + ':' + propName;
|
|
@@ -6372,15 +6486,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6372
6486
|
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
6373
6487
|
manualPropTypeWarningCount < 3
|
|
6374
6488
|
) {
|
|
6375
|
-
|
|
6376
|
-
false,
|
|
6489
|
+
printWarning(
|
|
6377
6490
|
'You are manually calling a React.PropTypes validation ' +
|
|
6378
|
-
'function for the
|
|
6491
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6379
6492
|
'and will throw in the standalone `prop-types` package. ' +
|
|
6380
6493
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6381
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
6382
|
-
propFullName,
|
|
6383
|
-
componentName
|
|
6494
|
+
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
6384
6495
|
);
|
|
6385
6496
|
manualPropTypeCallCache[cacheKey] = true;
|
|
6386
6497
|
manualPropTypeWarningCount++;
|
|
@@ -6424,7 +6535,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6424
6535
|
}
|
|
6425
6536
|
|
|
6426
6537
|
function createAnyTypeChecker() {
|
|
6427
|
-
return createChainableTypeChecker(
|
|
6538
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
6428
6539
|
}
|
|
6429
6540
|
|
|
6430
6541
|
function createArrayOfTypeChecker(typeChecker) {
|
|
@@ -6460,6 +6571,18 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6460
6571
|
return createChainableTypeChecker(validate);
|
|
6461
6572
|
}
|
|
6462
6573
|
|
|
6574
|
+
function createElementTypeTypeChecker() {
|
|
6575
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
6576
|
+
var propValue = props[propName];
|
|
6577
|
+
if (!ReactIs.isValidElementType(propValue)) {
|
|
6578
|
+
var propType = getPropType(propValue);
|
|
6579
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
6580
|
+
}
|
|
6581
|
+
return null;
|
|
6582
|
+
}
|
|
6583
|
+
return createChainableTypeChecker(validate);
|
|
6584
|
+
}
|
|
6585
|
+
|
|
6463
6586
|
function createInstanceTypeChecker(expectedClass) {
|
|
6464
6587
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6465
6588
|
if (!(props[propName] instanceof expectedClass)) {
|
|
@@ -6474,8 +6597,17 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6474
6597
|
|
|
6475
6598
|
function createEnumTypeChecker(expectedValues) {
|
|
6476
6599
|
if (!Array.isArray(expectedValues)) {
|
|
6477
|
-
|
|
6478
|
-
|
|
6600
|
+
if (true) {
|
|
6601
|
+
if (arguments.length > 1) {
|
|
6602
|
+
printWarning(
|
|
6603
|
+
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
6604
|
+
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
6605
|
+
);
|
|
6606
|
+
} else {
|
|
6607
|
+
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
6608
|
+
}
|
|
6609
|
+
}
|
|
6610
|
+
return emptyFunctionThatReturnsNull;
|
|
6479
6611
|
}
|
|
6480
6612
|
|
|
6481
6613
|
function validate(props, propName, componentName, location, propFullName) {
|
|
@@ -6486,8 +6618,14 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6486
6618
|
}
|
|
6487
6619
|
}
|
|
6488
6620
|
|
|
6489
|
-
var valuesString = JSON.stringify(expectedValues)
|
|
6490
|
-
|
|
6621
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
6622
|
+
var type = getPreciseType(value);
|
|
6623
|
+
if (type === 'symbol') {
|
|
6624
|
+
return String(value);
|
|
6625
|
+
}
|
|
6626
|
+
return value;
|
|
6627
|
+
});
|
|
6628
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
6491
6629
|
}
|
|
6492
6630
|
return createChainableTypeChecker(validate);
|
|
6493
6631
|
}
|
|
@@ -6503,7 +6641,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6503
6641
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
6504
6642
|
}
|
|
6505
6643
|
for (var key in propValue) {
|
|
6506
|
-
if (propValue
|
|
6644
|
+
if (has(propValue, key)) {
|
|
6507
6645
|
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6508
6646
|
if (error instanceof Error) {
|
|
6509
6647
|
return error;
|
|
@@ -6517,21 +6655,18 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6517
6655
|
|
|
6518
6656
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
6519
6657
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
6520
|
-
true ?
|
|
6521
|
-
return
|
|
6658
|
+
true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
6659
|
+
return emptyFunctionThatReturnsNull;
|
|
6522
6660
|
}
|
|
6523
6661
|
|
|
6524
6662
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6525
6663
|
var checker = arrayOfTypeCheckers[i];
|
|
6526
6664
|
if (typeof checker !== 'function') {
|
|
6527
|
-
|
|
6528
|
-
false,
|
|
6665
|
+
printWarning(
|
|
6529
6666
|
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
6530
|
-
'received
|
|
6531
|
-
getPostfixForTypeWarning(checker),
|
|
6532
|
-
i
|
|
6667
|
+
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
6533
6668
|
);
|
|
6534
|
-
return
|
|
6669
|
+
return emptyFunctionThatReturnsNull;
|
|
6535
6670
|
}
|
|
6536
6671
|
}
|
|
6537
6672
|
|
|
@@ -6663,6 +6798,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6663
6798
|
return true;
|
|
6664
6799
|
}
|
|
6665
6800
|
|
|
6801
|
+
// falsy value can't be a Symbol
|
|
6802
|
+
if (!propValue) {
|
|
6803
|
+
return false;
|
|
6804
|
+
}
|
|
6805
|
+
|
|
6666
6806
|
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
6667
6807
|
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
6668
6808
|
return true;
|
|
@@ -6737,6 +6877,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6737
6877
|
}
|
|
6738
6878
|
|
|
6739
6879
|
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
6880
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
6740
6881
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
6741
6882
|
|
|
6742
6883
|
return ReactPropTypes;
|
|
@@ -6744,12 +6885,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6744
6885
|
|
|
6745
6886
|
|
|
6746
6887
|
/***/ }),
|
|
6747
|
-
/*
|
|
6888
|
+
/* 66 */
|
|
6748
6889
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6749
6890
|
|
|
6750
6891
|
'use strict';
|
|
6751
|
-
var strictUriEncode = __webpack_require__(
|
|
6752
|
-
var objectAssign = __webpack_require__(
|
|
6892
|
+
var strictUriEncode = __webpack_require__(68);
|
|
6893
|
+
var objectAssign = __webpack_require__(22);
|
|
6753
6894
|
|
|
6754
6895
|
function encoderForArrayFormat(opts) {
|
|
6755
6896
|
switch (opts.arrayFormat) {
|
|
@@ -6955,7 +7096,240 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
6955
7096
|
|
|
6956
7097
|
|
|
6957
7098
|
/***/ }),
|
|
6958
|
-
/*
|
|
7099
|
+
/* 67 */
|
|
7100
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7101
|
+
|
|
7102
|
+
/** @license React v16.8.6
|
|
7103
|
+
* react-is.development.js
|
|
7104
|
+
*
|
|
7105
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7106
|
+
*
|
|
7107
|
+
* This source code is licensed under the MIT license found in the
|
|
7108
|
+
* LICENSE file in the root directory of this source tree.
|
|
7109
|
+
*/
|
|
7110
|
+
|
|
7111
|
+
'use strict';
|
|
7112
|
+
|
|
7113
|
+
|
|
7114
|
+
|
|
7115
|
+
if (true) {
|
|
7116
|
+
(function() {
|
|
7117
|
+
'use strict';
|
|
7118
|
+
|
|
7119
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7120
|
+
|
|
7121
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
7122
|
+
// nor polyfill, then a plain number is used for performance.
|
|
7123
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
7124
|
+
|
|
7125
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
7126
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
7127
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
7128
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
7129
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
7130
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
7131
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
7132
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
7133
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
7134
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
7135
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
7136
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
7137
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
7138
|
+
|
|
7139
|
+
function isValidElementType(type) {
|
|
7140
|
+
return typeof type === 'string' || typeof type === 'function' ||
|
|
7141
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
7142
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_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);
|
|
7143
|
+
}
|
|
7144
|
+
|
|
7145
|
+
/**
|
|
7146
|
+
* Forked from fbjs/warning:
|
|
7147
|
+
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
7148
|
+
*
|
|
7149
|
+
* Only change is we use console.warn instead of console.error,
|
|
7150
|
+
* and do nothing when 'console' is not supported.
|
|
7151
|
+
* This really simplifies the code.
|
|
7152
|
+
* ---
|
|
7153
|
+
* Similar to invariant but only logs a warning if the condition is not met.
|
|
7154
|
+
* This can be used to log issues in development environments in critical
|
|
7155
|
+
* paths. Removing the logging code for production environments will keep the
|
|
7156
|
+
* same logic and follow the same code paths.
|
|
7157
|
+
*/
|
|
7158
|
+
|
|
7159
|
+
var lowPriorityWarning = function () {};
|
|
7160
|
+
|
|
7161
|
+
{
|
|
7162
|
+
var printWarning = function (format) {
|
|
7163
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
7164
|
+
args[_key - 1] = arguments[_key];
|
|
7165
|
+
}
|
|
7166
|
+
|
|
7167
|
+
var argIndex = 0;
|
|
7168
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
7169
|
+
return args[argIndex++];
|
|
7170
|
+
});
|
|
7171
|
+
if (typeof console !== 'undefined') {
|
|
7172
|
+
console.warn(message);
|
|
7173
|
+
}
|
|
7174
|
+
try {
|
|
7175
|
+
// --- Welcome to debugging React ---
|
|
7176
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
7177
|
+
// to find the callsite that caused this warning to fire.
|
|
7178
|
+
throw new Error(message);
|
|
7179
|
+
} catch (x) {}
|
|
7180
|
+
};
|
|
7181
|
+
|
|
7182
|
+
lowPriorityWarning = function (condition, format) {
|
|
7183
|
+
if (format === undefined) {
|
|
7184
|
+
throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
7185
|
+
}
|
|
7186
|
+
if (!condition) {
|
|
7187
|
+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
7188
|
+
args[_key2 - 2] = arguments[_key2];
|
|
7189
|
+
}
|
|
7190
|
+
|
|
7191
|
+
printWarning.apply(undefined, [format].concat(args));
|
|
7192
|
+
}
|
|
7193
|
+
};
|
|
7194
|
+
}
|
|
7195
|
+
|
|
7196
|
+
var lowPriorityWarning$1 = lowPriorityWarning;
|
|
7197
|
+
|
|
7198
|
+
function typeOf(object) {
|
|
7199
|
+
if (typeof object === 'object' && object !== null) {
|
|
7200
|
+
var $$typeof = object.$$typeof;
|
|
7201
|
+
switch ($$typeof) {
|
|
7202
|
+
case REACT_ELEMENT_TYPE:
|
|
7203
|
+
var type = object.type;
|
|
7204
|
+
|
|
7205
|
+
switch (type) {
|
|
7206
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
7207
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
7208
|
+
case REACT_FRAGMENT_TYPE:
|
|
7209
|
+
case REACT_PROFILER_TYPE:
|
|
7210
|
+
case REACT_STRICT_MODE_TYPE:
|
|
7211
|
+
case REACT_SUSPENSE_TYPE:
|
|
7212
|
+
return type;
|
|
7213
|
+
default:
|
|
7214
|
+
var $$typeofType = type && type.$$typeof;
|
|
7215
|
+
|
|
7216
|
+
switch ($$typeofType) {
|
|
7217
|
+
case REACT_CONTEXT_TYPE:
|
|
7218
|
+
case REACT_FORWARD_REF_TYPE:
|
|
7219
|
+
case REACT_PROVIDER_TYPE:
|
|
7220
|
+
return $$typeofType;
|
|
7221
|
+
default:
|
|
7222
|
+
return $$typeof;
|
|
7223
|
+
}
|
|
7224
|
+
}
|
|
7225
|
+
case REACT_LAZY_TYPE:
|
|
7226
|
+
case REACT_MEMO_TYPE:
|
|
7227
|
+
case REACT_PORTAL_TYPE:
|
|
7228
|
+
return $$typeof;
|
|
7229
|
+
}
|
|
7230
|
+
}
|
|
7231
|
+
|
|
7232
|
+
return undefined;
|
|
7233
|
+
}
|
|
7234
|
+
|
|
7235
|
+
// AsyncMode is deprecated along with isAsyncMode
|
|
7236
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
7237
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
7238
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
7239
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
7240
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
7241
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
7242
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
7243
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
7244
|
+
var Memo = REACT_MEMO_TYPE;
|
|
7245
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
7246
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
7247
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
7248
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
7249
|
+
|
|
7250
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
7251
|
+
|
|
7252
|
+
// AsyncMode should be deprecated
|
|
7253
|
+
function isAsyncMode(object) {
|
|
7254
|
+
{
|
|
7255
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
7256
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
7257
|
+
lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
7258
|
+
}
|
|
7259
|
+
}
|
|
7260
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
7261
|
+
}
|
|
7262
|
+
function isConcurrentMode(object) {
|
|
7263
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
7264
|
+
}
|
|
7265
|
+
function isContextConsumer(object) {
|
|
7266
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
7267
|
+
}
|
|
7268
|
+
function isContextProvider(object) {
|
|
7269
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
7270
|
+
}
|
|
7271
|
+
function isElement(object) {
|
|
7272
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
7273
|
+
}
|
|
7274
|
+
function isForwardRef(object) {
|
|
7275
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
7276
|
+
}
|
|
7277
|
+
function isFragment(object) {
|
|
7278
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
7279
|
+
}
|
|
7280
|
+
function isLazy(object) {
|
|
7281
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
7282
|
+
}
|
|
7283
|
+
function isMemo(object) {
|
|
7284
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
7285
|
+
}
|
|
7286
|
+
function isPortal(object) {
|
|
7287
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
7288
|
+
}
|
|
7289
|
+
function isProfiler(object) {
|
|
7290
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
7291
|
+
}
|
|
7292
|
+
function isStrictMode(object) {
|
|
7293
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
7294
|
+
}
|
|
7295
|
+
function isSuspense(object) {
|
|
7296
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
7297
|
+
}
|
|
7298
|
+
|
|
7299
|
+
exports.typeOf = typeOf;
|
|
7300
|
+
exports.AsyncMode = AsyncMode;
|
|
7301
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
7302
|
+
exports.ContextConsumer = ContextConsumer;
|
|
7303
|
+
exports.ContextProvider = ContextProvider;
|
|
7304
|
+
exports.Element = Element;
|
|
7305
|
+
exports.ForwardRef = ForwardRef;
|
|
7306
|
+
exports.Fragment = Fragment;
|
|
7307
|
+
exports.Lazy = Lazy;
|
|
7308
|
+
exports.Memo = Memo;
|
|
7309
|
+
exports.Portal = Portal;
|
|
7310
|
+
exports.Profiler = Profiler;
|
|
7311
|
+
exports.StrictMode = StrictMode;
|
|
7312
|
+
exports.Suspense = Suspense;
|
|
7313
|
+
exports.isValidElementType = isValidElementType;
|
|
7314
|
+
exports.isAsyncMode = isAsyncMode;
|
|
7315
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
7316
|
+
exports.isContextConsumer = isContextConsumer;
|
|
7317
|
+
exports.isContextProvider = isContextProvider;
|
|
7318
|
+
exports.isElement = isElement;
|
|
7319
|
+
exports.isForwardRef = isForwardRef;
|
|
7320
|
+
exports.isFragment = isFragment;
|
|
7321
|
+
exports.isLazy = isLazy;
|
|
7322
|
+
exports.isMemo = isMemo;
|
|
7323
|
+
exports.isPortal = isPortal;
|
|
7324
|
+
exports.isProfiler = isProfiler;
|
|
7325
|
+
exports.isStrictMode = isStrictMode;
|
|
7326
|
+
exports.isSuspense = isSuspense;
|
|
7327
|
+
})();
|
|
7328
|
+
}
|
|
7329
|
+
|
|
7330
|
+
|
|
7331
|
+
/***/ }),
|
|
7332
|
+
/* 68 */
|
|
6959
7333
|
/***/ (function(module, exports) {
|
|
6960
7334
|
|
|
6961
7335
|
'use strict';
|