react-rails 2.4.3 → 2.4.4.pre

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 871c8935efe49325b78955b744dd749664078a23
4
- data.tar.gz: 5c14ae74ab1c66edf2eafb95b7d7427a7c7f1b4e
2
+ SHA256:
3
+ metadata.gz: 70df1eb045d04241f6f0a0ee12dd8183ace3fa23e7d8c89ff9056ae6a87fc639
4
+ data.tar.gz: d6fe0594aefc3d7bd326cc2a8d5d7f54dac3f8399d82a1844b62e23f2462c53a
5
5
  SHA512:
6
- metadata.gz: 4928107a478a44c2afa03db3a71e3eb2fb0888d0835f047b254c93fc63e7236021f6ee1392041a1cd5632d8922bf30f1d10e25ff9d3a68bd9b8c83d4ce3201ff
7
- data.tar.gz: 1a49da7b4ccfe06517e37bbf520233a51eb528351bca4ace5abbadead5e918c4ee2e6b18cf4c6d7f82d58f4f64d641bddfdf1e91abd4cce375b9382a6afdf100
6
+ metadata.gz: 5fdbcd13c1c0cbca75da5daa8496b491d04ca941730343566c8c062e694b27955aa16959c03156009091b818f144fd8cd5a1a8be1a7db895e40c866d059f1c77
7
+ data.tar.gz: 8617fa749b67abe79be687403154f665ecbee77553455d189c77bdfbe7f31cf41eab96388ed33abc8e9073f63a577246c3faf1e8e5bc2ecce743fe3210f82863
data/README.md CHANGED
@@ -61,8 +61,8 @@ Add `webpacker` and `react-rails` to your gemfile and run the installers:
61
61
 
62
62
  ```
63
63
  $ bundle install
64
- $ rails webpacker:install
65
- $ rails webpacker:install:react
64
+ $ rails webpacker:install # OR (on rails version < 5.0) rake webpacker:install
65
+ $ rails webpacker:install:react # OR (on rails version < 5.0) rake webpacker:install:react
66
66
  $ rails generate react:install
67
67
  ```
68
68
 
@@ -72,6 +72,13 @@ This gives you:
72
72
  - [`ReactRailsUJS`](#ujs) setup in `app/javascript/packs/application.js`
73
73
  - `app/javascript/packs/server_rendering.js` for [server-side rendering](#server-side-rendering)
74
74
 
75
+ Link the JavaScript pack in Rails view using `javascript_pack_tag` [helper](https://github.com/rails/webpacker#usage), for example:
76
+
77
+ ```
78
+ <!-- application.html.erb -->
79
+ <%= javascript_pack_tag 'application' %>
80
+ ```
81
+
75
82
  Generate your first component:
76
83
 
77
84
  ```
@@ -327,20 +334,22 @@ Server renderers are stored in a pool and reused between requests. Threaded Rubi
327
334
  These are the default configurations:
328
335
 
329
336
  ```ruby
330
- # config/environments/application.rb
337
+ # config/application.rb
331
338
  # These are the defaults if you don't specify any yourself
332
- MyApp::Application.configure do
333
- # Settings for the pool of renderers:
334
- config.react.server_renderer_pool_size ||= 1 # ExecJS doesn't allow more than one on MRI
335
- config.react.server_renderer_timeout ||= 20 # seconds
336
- config.react.server_renderer = React::ServerRendering::BundleRenderer
337
- config.react.server_renderer_options = {
338
- files: ["server_rendering.js"], # files to load for prerendering
339
- replay_console: true, # if true, console.* will be replayed client-side
340
- }
341
- # Changing files matching these dirs/exts will cause the server renderer to reload:
342
- config.react.server_renderer_extensions = ["jsx", "js"]
343
- config.react.server_renderer_directories = ["/app/assets/javascripts", "/app/javascript/"]
339
+ module MyApp
340
+ class Application < Rails::Application
341
+ # Settings for the pool of renderers:
342
+ config.react.server_renderer_pool_size ||= 1 # ExecJS doesn't allow more than one on MRI
343
+ config.react.server_renderer_timeout ||= 20 # seconds
344
+ config.react.server_renderer = React::ServerRendering::BundleRenderer
345
+ config.react.server_renderer_options = {
346
+ files: ["server_rendering.js"], # files to load for prerendering
347
+ replay_console: true, # if true, console.* will be replayed client-side
348
+ }
349
+ # Changing files matching these dirs/exts will cause the server renderer to reload:
350
+ config.react.server_renderer_extensions = ["jsx", "js"]
351
+ config.react.server_renderer_directories = ["/app/assets/javascripts", "/app/javascript/"]
352
+ end
344
353
  end
345
354
  ```
346
355
 
@@ -128,14 +128,7 @@ module.exports = function(ujs) {
128
128
  nativeEvents.teardown(ujs);
129
129
  }
130
130
 
131
- if (ujs.jQuery) {
132
- ujs.handleEvent = function(eventName, callback) {
133
- ujs.jQuery(document).on(eventName, callback);
134
- };
135
- ujs.removeEvent = function(eventName, callback) {
136
- ujs.jQuery(document).off(eventName, callback);
137
- }
138
- } else if ('addEventListener' in window) {
131
+ if ('addEventListener' in window) {
139
132
  ujs.handleEvent = function(eventName, callback) {
140
133
  document.addEventListener(eventName, callback);
141
134
  };
@@ -387,10 +380,7 @@ module.exports = {
387
380
  // Attach handlers to browser events to mount
388
381
  // (There are no unmount handlers since the page is destroyed on navigation)
389
382
  setup: function(ujs) {
390
- if (ujs.jQuery) {
391
- // Use jQuery if it's present:
392
- ujs.handleEvent("ready", ujs.handleMount);
393
- } else if ('addEventListener' in window) {
383
+ if ('addEventListener' in window) {
394
384
  ujs.handleEvent('DOMContentLoaded', ujs.handleMount);
395
385
  } else {
396
386
  // add support to IE8 without jQuery
@@ -399,7 +389,6 @@ module.exports = {
399
389
  },
400
390
 
401
391
  teardown: function(ujs) {
402
- ujs.removeEvent("ready", ujs.handleMount);
403
392
  ujs.removeEvent('DOMContentLoaded', ujs.handleMount);
404
393
  ujs.removeEvent('onload', ujs.handleMount);
405
394
  }
@@ -433,14 +422,12 @@ module.exports = {
433
422
  module.exports = {
434
423
  // Turbolinks 5+ got rid of named events (?!)
435
424
  setup: function(ujs) {
436
- ujs.handleEvent('DOMContentLoaded', ujs.handleMount)
437
- ujs.handleEvent('turbolinks:render', ujs.handleMount)
425
+ ujs.handleEvent('turbolinks:load', ujs.handleMount)
438
426
  ujs.handleEvent('turbolinks:before-render', ujs.handleUnmount)
439
427
  },
440
428
 
441
429
  teardown: function(ujs) {
442
- ujs.removeEvent('DOMContentLoaded', ujs.handleMount)
443
- ujs.removeEvent('turbolinks:render', ujs.handleMount)
430
+ ujs.removeEvent('turbolinks:load', ujs.handleMount)
444
431
  ujs.removeEvent('turbolinks:before-render', ujs.handleUnmount)
445
432
  },
446
433
  }
@@ -244,6 +244,10 @@
244
244
  process.removeListener = noop;
245
245
  process.removeAllListeners = noop;
246
246
  process.emit = noop;
247
+ process.prependListener = noop;
248
+ process.prependOnceListener = noop;
249
+
250
+ process.listeners = function (name) { return [] }
247
251
 
248
252
  process.binding = function (name) {
249
253
  throw new Error('process.binding is not supported');
@@ -260,7 +264,7 @@
260
264
  /* 3 */
261
265
  /***/ (function(module, exports, __webpack_require__) {
262
266
 
263
- /** @license React v16.1.1
267
+ /** @license React v16.2.0
264
268
  * react.production.min.js
265
269
  *
266
270
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -268,20 +272,19 @@
268
272
  * This source code is licensed under the MIT license found in the
269
273
  * LICENSE file in the root directory of this source tree.
270
274
  */
271
- 'use strict';var m=__webpack_require__(4),n=__webpack_require__(5),p=__webpack_require__(6);
272
- function q(a){for(var b=arguments.length-1,e="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,d=0;d<b;d++)e+="\x26args[]\x3d"+encodeURIComponent(arguments[d+1]);b=Error(e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}
273
- var r={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function t(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||r}t.prototype.isReactComponent={};t.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?q("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};t.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
274
- function u(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||r}function v(){}v.prototype=t.prototype;var w=u.prototype=new v;w.constructor=u;m(w,t.prototype);w.isPureReactComponent=!0;function x(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||r}var y=x.prototype=new v;y.constructor=x;m(y,t.prototype);y.unstable_isAsyncReactComponent=!0;y.render=function(){return this.props.children};
275
- var z={current:null},A=Object.prototype.hasOwnProperty,B="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,C={key:!0,ref:!0,__self:!0,__source:!0};
276
- function D(a,b,e){var d,c={},h=null,k=null;if(null!=b)for(d in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(h=""+b.key),b)A.call(b,d)&&!C.hasOwnProperty(d)&&(c[d]=b[d]);var f=arguments.length-2;if(1===f)c.children=e;else if(1<f){for(var g=Array(f),l=0;l<f;l++)g[l]=arguments[l+2];c.children=g}if(a&&a.defaultProps)for(d in f=a.defaultProps,f)void 0===c[d]&&(c[d]=f[d]);return{$$typeof:B,type:a,key:h,ref:k,props:c,_owner:z.current}}function E(a){return"object"===typeof a&&null!==a&&a.$$typeof===B}
277
- var F="function"===typeof Symbol&&Symbol.iterator,G="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,H="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||60106;function escape(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var I=/\/+/g,J=[];
278
- function K(a,b,e,d){if(J.length){var c=J.pop();c.result=a;c.keyPrefix=b;c.func=e;c.context=d;c.count=0;return c}return{result:a,keyPrefix:b,func:e,context:d,count:0}}function L(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>J.length&&J.push(a)}
279
- function M(a,b,e,d){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;if(null===a||"string"===c||"number"===c||"object"===c&&a.$$typeof===G||"object"===c&&a.$$typeof===H)return e(d,a,""===b?"."+N(a,0):b),1;var h=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){c=a[k];var f=b+N(c,k);h+=M(c,f,e,d)}else if(f=F&&a[F]||a["@@iterator"],"function"===typeof f)for(a=f.call(a),k=0;!(c=a.next()).done;)c=c.value,f=b+N(c,k++),h+=M(c,f,e,d);else"object"===c&&(e=""+a,q("31","[object Object]"===
280
- e?"object with keys {"+Object.keys(a).join(", ")+"}":e,""));return h}function N(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function O(a,b){a.func.call(a.context,b,a.count++)}
281
- function P(a,b,e){var d=a.result,c=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?Q(a,d,e,p.thatReturnsArgument):null!=a&&(E(a)&&(b=c+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(I,"$\x26/")+"/")+e,a={$$typeof:B,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),d.push(a))}function Q(a,b,e,d,c){var h="";null!=e&&(h=(""+e).replace(I,"$\x26/")+"/");b=K(b,h,d,c);null==a||M(a,"",P,b);L(b)}"function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.fragment");
282
- var R={Children:{map:function(a,b,e){if(null==a)return a;var d=[];Q(a,d,null,b,e);return d},forEach:function(a,b,e){if(null==a)return a;b=K(null,null,b,e);null==a||M(a,"",O,b);L(b)},count:function(a){return null==a?0:M(a,"",p.thatReturnsNull,null)},toArray:function(a){var b=[];Q(a,b,null,p.thatReturnsArgument);return b},only:function(a){E(a)?void 0:q("143");return a}},Component:t,PureComponent:u,unstable_AsyncComponent:x,createElement:D,cloneElement:function(a,b,e){var d=m({},a.props),c=a.key,h=a.ref,
283
- k=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,k=z.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(g in b)A.call(b,g)&&!C.hasOwnProperty(g)&&(d[g]=void 0===b[g]&&void 0!==f?f[g]:b[g])}var g=arguments.length-2;if(1===g)d.children=e;else if(1<g){f=Array(g);for(var l=0;l<g;l++)f[l]=arguments[l+2];d.children=f}return{$$typeof:B,type:a.type,key:c,ref:h,props:d,_owner:k}},createFactory:function(a){var b=D.bind(null,a);b.type=a;return b},isValidElement:E,
284
- version:"16.1.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:z,assign:m}},S=Object.freeze({default:R}),T=S&&R||S;module.exports=T["default"]?T["default"]:T;
275
+
276
+ 'use strict';var m=__webpack_require__(4),n=__webpack_require__(5),p=__webpack_require__(6),q="function"===typeof Symbol&&Symbol["for"],r=q?Symbol["for"]("react.element"):60103,t=q?Symbol["for"]("react.call"):60104,u=q?Symbol["for"]("react.return"):60105,v=q?Symbol["for"]("react.portal"):60106,w=q?Symbol["for"]("react.fragment"):60107,x="function"===typeof Symbol&&Symbol.iterator;
277
+ function y(a){for(var b=arguments.length-1,e="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,c=0;c<b;c++)e+="\x26args[]\x3d"+encodeURIComponent(arguments[c+1]);b=Error(e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}
278
+ var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function A(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||z}A.prototype.isReactComponent={};A.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?y("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};A.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
279
+ function B(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||z}function C(){}C.prototype=A.prototype;var D=B.prototype=new C;D.constructor=B;m(D,A.prototype);D.isPureReactComponent=!0;function E(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||z}var F=E.prototype=new C;F.constructor=E;m(F,A.prototype);F.unstable_isAsyncReactComponent=!0;F.render=function(){return this.props.children};var G={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};
280
+ function J(a,b,e){var c,d={},g=null,k=null;if(null!=b)for(c in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)H.call(b,c)&&!I.hasOwnProperty(c)&&(d[c]=b[c]);var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){for(var h=Array(f),l=0;l<f;l++)h[l]=arguments[l+2];d.children=h}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===d[c]&&(d[c]=f[c]);return{$$typeof:r,type:a,key:g,ref:k,props:d,_owner:G.current}}function K(a){return"object"===typeof a&&null!==a&&a.$$typeof===r}
281
+ function escape(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var L=/\/+/g,M=[];function N(a,b,e,c){if(M.length){var d=M.pop();d.result=a;d.keyPrefix=b;d.func=e;d.context=c;d.count=0;return d}return{result:a,keyPrefix:b,func:e,context:c,count:0}}function O(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>M.length&&M.push(a)}
282
+ function P(a,b,e,c){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case r:case t:case u:case v:g=!0}}if(g)return e(c,a,""===b?"."+Q(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){d=a[k];var f=b+Q(d,k);g+=P(d,f,e,c)}else if(null===a||"undefined"===typeof a?f=null:(f=x&&a[x]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=
283
+ f.call(a),k=0;!(d=a.next()).done;)d=d.value,f=b+Q(d,k++),g+=P(d,f,e,c);else"object"===d&&(e=""+a,y("31","[object Object]"===e?"object with keys {"+Object.keys(a).join(", ")+"}":e,""));return g}function Q(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function R(a,b){a.func.call(a.context,b,a.count++)}
284
+ function S(a,b,e){var c=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?T(a,c,e,p.thatReturnsArgument):null!=a&&(K(a)&&(b=d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(L,"$\x26/")+"/")+e,a={$$typeof:r,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),c.push(a))}function T(a,b,e,c,d){var g="";null!=e&&(g=(""+e).replace(L,"$\x26/")+"/");b=N(b,g,c,d);null==a||P(a,"",S,b);O(b)}
285
+ var U={Children:{map:function(a,b,e){if(null==a)return a;var c=[];T(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=N(null,null,b,e);null==a||P(a,"",R,b);O(b)},count:function(a){return null==a?0:P(a,"",p.thatReturnsNull,null)},toArray:function(a){var b=[];T(a,b,null,p.thatReturnsArgument);return b},only:function(a){K(a)?void 0:y("143");return a}},Component:A,PureComponent:B,unstable_AsyncComponent:E,Fragment:w,createElement:J,cloneElement:function(a,b,e){var c=m({},a.props),
286
+ d=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=G.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(h in b)H.call(b,h)&&!I.hasOwnProperty(h)&&(c[h]=void 0===b[h]&&void 0!==f?f[h]:b[h])}var h=arguments.length-2;if(1===h)c.children=e;else if(1<h){f=Array(h);for(var l=0;l<h;l++)f[l]=arguments[l+2];c.children=f}return{$$typeof:r,type:a.type,key:d,ref:g,props:c,_owner:k}},createFactory:function(a){var b=J.bind(null,a);b.type=a;return b},
287
+ isValidElement:K,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:G,assign:m}},V=Object.freeze({default:U}),W=V&&U||V;module.exports=W["default"]?W["default"]:W;
285
288
 
286
289
 
287
290
  /***/ }),
@@ -448,7 +451,7 @@
448
451
  /* 7 */
449
452
  /***/ (function(module, exports, __webpack_require__) {
450
453
 
451
- /* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.1.1
454
+ /* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.2.0
452
455
  * react.development.js
453
456
  *
454
457
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -459,20 +462,46 @@
459
462
 
460
463
  'use strict';
461
464
 
465
+
466
+
462
467
  if (process.env.NODE_ENV !== "production") {
463
468
  (function() {
464
469
  'use strict';
465
470
 
466
471
  var _assign = __webpack_require__(4);
467
- var invariant = __webpack_require__(8);
468
472
  var emptyObject = __webpack_require__(5);
473
+ var invariant = __webpack_require__(8);
469
474
  var warning = __webpack_require__(9);
470
475
  var emptyFunction = __webpack_require__(6);
471
476
  var checkPropTypes = __webpack_require__(10);
472
477
 
473
478
  // TODO: this is special because it gets imported during build.
474
479
 
475
- var ReactVersion = '16.1.1';
480
+ var ReactVersion = '16.2.0';
481
+
482
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
483
+ // nor polyfill, then a plain number is used for performance.
484
+ var hasSymbol = typeof Symbol === 'function' && Symbol['for'];
485
+
486
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol['for']('react.element') : 0xeac7;
487
+ var REACT_CALL_TYPE = hasSymbol ? Symbol['for']('react.call') : 0xeac8;
488
+ var REACT_RETURN_TYPE = hasSymbol ? Symbol['for']('react.return') : 0xeac9;
489
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol['for']('react.portal') : 0xeaca;
490
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol['for']('react.fragment') : 0xeacb;
491
+
492
+ var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
493
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
494
+
495
+ function getIteratorFn(maybeIterable) {
496
+ if (maybeIterable === null || typeof maybeIterable === 'undefined') {
497
+ return null;
498
+ }
499
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
500
+ if (typeof maybeIterator === 'function') {
501
+ return maybeIterator;
502
+ }
503
+ return null;
504
+ }
476
505
 
477
506
  /**
478
507
  * WARNING: DO NOT manually require this module.
@@ -481,21 +510,6 @@
481
510
  * It always throws.
482
511
  */
483
512
 
484
- // Exports React.Fragment
485
- var enableReactFragment = false;
486
- // Exports ReactDOM.createRoot
487
-
488
-
489
-
490
- // Mutating mode (React DOM, React ART, React Native):
491
-
492
- // Experimental noop mode (currently unused):
493
-
494
- // Experimental persistent mode (CS):
495
-
496
-
497
- // Only used in www builds.
498
-
499
513
  /**
500
514
  * Forked from fbjs/warning:
501
515
  * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
@@ -775,10 +789,6 @@
775
789
 
776
790
  var hasOwnProperty = Object.prototype.hasOwnProperty;
777
791
 
778
- // The Symbol used to tag the ReactElement type. If there is no native Symbol
779
- // nor polyfill, then a plain number is used for performance.
780
- var REACT_ELEMENT_TYPE$1 = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
781
-
782
792
  var RESERVED_PROPS = {
783
793
  key: true,
784
794
  ref: true,
@@ -864,7 +874,7 @@
864
874
  var ReactElement = function (type, key, ref, self, source, owner, props) {
865
875
  var element = {
866
876
  // This tag allow us to uniquely identify this as a React Element
867
- $$typeof: REACT_ELEMENT_TYPE$1,
877
+ $$typeof: REACT_ELEMENT_TYPE,
868
878
 
869
879
  // Built-in properties that belong on the element
870
880
  type: type,
@@ -979,7 +989,7 @@
979
989
  }
980
990
  {
981
991
  if (key || ref) {
982
- if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE$1) {
992
+ if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
983
993
  var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
984
994
  if (key) {
985
995
  defineKeyPropWarningGetter(props, displayName);
@@ -1079,7 +1089,7 @@
1079
1089
  * @final
1080
1090
  */
1081
1091
  function isValidElement(object) {
1082
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE$1;
1092
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1083
1093
  }
1084
1094
 
1085
1095
  var ReactDebugCurrentFrame = {};
@@ -1097,12 +1107,6 @@
1097
1107
  };
1098
1108
  }
1099
1109
 
1100
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1101
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1102
- // The Symbol used to tag the ReactElement type. If there is no native Symbol
1103
- // nor polyfill, then a plain number is used for performance.
1104
- var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
1105
- var REACT_PORTAL_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.portal') || 0xeaca;
1106
1110
  var SEPARATOR = '.';
1107
1111
  var SUBSEPARATOR = ':';
1108
1112
 
@@ -1186,10 +1190,28 @@
1186
1190
  children = null;
1187
1191
  }
1188
1192
 
1189
- if (children === null || type === 'string' || type === 'number' ||
1190
- // The following is inlined from ReactElement. This means we can optimize
1191
- // some checks. React Fiber also inlines this logic for similar purposes.
1192
- type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE || type === 'object' && children.$$typeof === REACT_PORTAL_TYPE) {
1193
+ var invokeCallback = false;
1194
+
1195
+ if (children === null) {
1196
+ invokeCallback = true;
1197
+ } else {
1198
+ switch (type) {
1199
+ case 'string':
1200
+ case 'number':
1201
+ invokeCallback = true;
1202
+ break;
1203
+ case 'object':
1204
+ switch (children.$$typeof) {
1205
+ case REACT_ELEMENT_TYPE:
1206
+ case REACT_CALL_TYPE:
1207
+ case REACT_RETURN_TYPE:
1208
+ case REACT_PORTAL_TYPE:
1209
+ invokeCallback = true;
1210
+ }
1211
+ }
1212
+ }
1213
+
1214
+ if (invokeCallback) {
1193
1215
  callback(traverseContext, children,
1194
1216
  // If it's the only child, treat the name as if it was wrapped in an array
1195
1217
  // so that it's consistent if the number of children grows.
@@ -1209,7 +1231,7 @@
1209
1231
  subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
1210
1232
  }
1211
1233
  } else {
1212
- var iteratorFn = ITERATOR_SYMBOL && children[ITERATOR_SYMBOL] || children[FAUX_ITERATOR_SYMBOL];
1234
+ var iteratorFn = getIteratorFn(children);
1213
1235
  if (typeof iteratorFn === 'function') {
1214
1236
  {
1215
1237
  // Warn about using Maps as children
@@ -1433,6 +1455,8 @@
1433
1455
  {
1434
1456
  var currentlyValidatingElement = null;
1435
1457
 
1458
+ var propTypesMisspellWarningShown = false;
1459
+
1436
1460
  var getDisplayName = function (element) {
1437
1461
  if (element == null) {
1438
1462
  return '#empty';
@@ -1440,7 +1464,7 @@
1440
1464
  return '#text';
1441
1465
  } else if (typeof element.type === 'string') {
1442
1466
  return element.type;
1443
- } else if (element.type === REACT_FRAGMENT_TYPE$1) {
1467
+ } else if (element.type === REACT_FRAGMENT_TYPE) {
1444
1468
  return 'React.Fragment';
1445
1469
  } else {
1446
1470
  return element.type.displayName || element.type.name || 'Unknown';
@@ -1458,14 +1482,9 @@
1458
1482
  return stack;
1459
1483
  };
1460
1484
 
1461
- var REACT_FRAGMENT_TYPE$1 = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.fragment') || 0xeacb;
1462
-
1463
1485
  var VALID_FRAGMENT_PROPS = new Map([['children', true], ['key', true]]);
1464
1486
  }
1465
1487
 
1466
- var ITERATOR_SYMBOL$1 = typeof Symbol === 'function' && Symbol.iterator;
1467
- var FAUX_ITERATOR_SYMBOL$1 = '@@iterator'; // Before Symbol spec.
1468
-
1469
1488
  function getDeclarationErrorAddendum() {
1470
1489
  if (ReactCurrentOwner.current) {
1471
1490
  var name = getComponentName(ReactCurrentOwner.current);
@@ -1570,7 +1589,7 @@
1570
1589
  node._store.validated = true;
1571
1590
  }
1572
1591
  } else if (node) {
1573
- var iteratorFn = ITERATOR_SYMBOL$1 && node[ITERATOR_SYMBOL$1] || node[FAUX_ITERATOR_SYMBOL$1];
1592
+ var iteratorFn = getIteratorFn(node);
1574
1593
  if (typeof iteratorFn === 'function') {
1575
1594
  // Entry iterators used to provide implicit keys,
1576
1595
  // but now we print a separate warning for them later.
@@ -1600,11 +1619,13 @@
1600
1619
  }
1601
1620
  var name = componentClass.displayName || componentClass.name;
1602
1621
  var propTypes = componentClass.propTypes;
1603
-
1604
1622
  if (propTypes) {
1605
1623
  currentlyValidatingElement = element;
1606
1624
  checkPropTypes(propTypes, element.props, 'prop', name, getStackAddendum);
1607
1625
  currentlyValidatingElement = null;
1626
+ } else if (componentClass.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1627
+ propTypesMisspellWarningShown = true;
1628
+ warning(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
1608
1629
  }
1609
1630
  if (typeof componentClass.getDefaultProps === 'function') {
1610
1631
  warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
@@ -1694,7 +1715,7 @@
1694
1715
  }
1695
1716
  }
1696
1717
 
1697
- if (typeof type === 'symbol' && type === REACT_FRAGMENT_TYPE$1) {
1718
+ if (typeof type === 'symbol' && type === REACT_FRAGMENT_TYPE) {
1698
1719
  validateFragmentProps(element);
1699
1720
  } else {
1700
1721
  validatePropTypes(element);
@@ -1733,8 +1754,6 @@
1733
1754
  return newElement;
1734
1755
  }
1735
1756
 
1736
- var REACT_FRAGMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.fragment') || 0xeacb;
1737
-
1738
1757
  var React = {
1739
1758
  Children: {
1740
1759
  map: mapChildren,
@@ -1748,6 +1767,8 @@
1748
1767
  PureComponent: PureComponent,
1749
1768
  unstable_AsyncComponent: AsyncComponent,
1750
1769
 
1770
+ Fragment: REACT_FRAGMENT_TYPE,
1771
+
1751
1772
  createElement: createElementWithValidation,
1752
1773
  cloneElement: cloneElementWithValidation,
1753
1774
  createFactory: createFactoryWithValidation,
@@ -1762,10 +1783,6 @@
1762
1783
  }
1763
1784
  };
1764
1785
 
1765
- if (enableReactFragment) {
1766
- React.Fragment = REACT_FRAGMENT_TYPE;
1767
- }
1768
-
1769
1786
  {
1770
1787
  _assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
1771
1788
  // These should not be included in production.
@@ -3745,7 +3762,7 @@
3745
3762
  /* 33 */
3746
3763
  /***/ (function(module, exports, __webpack_require__) {
3747
3764
 
3748
- /** @license React v16.1.1
3765
+ /** @license React v16.2.0
3749
3766
  * react-dom-server.browser.production.min.js
3750
3767
  *
3751
3768
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -3753,6 +3770,7 @@
3753
3770
  * This source code is licensed under the MIT license found in the
3754
3771
  * LICENSE file in the root directory of this source tree.
3755
3772
  */
3773
+
3756
3774
  'use strict';var h=__webpack_require__(4),n=__webpack_require__(1),aa=__webpack_require__(6),t=__webpack_require__(5),ba=__webpack_require__(23),ca=__webpack_require__(34);
3757
3775
  function w(a){for(var b=arguments.length-1,g="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,c=0;c<b;c++)g+="\x26args[]\x3d"+encodeURIComponent(arguments[c+1]);b=Error(g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}
3758
3776
  var x={children:!0,dangerouslySetInnerHTML:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,style:!0};function z(a,b){return(a&b)===b}
@@ -3765,27 +3783,27 @@
3765
3783
  b)}}},M=F.HAS_STRING_BOOLEAN_VALUE,N={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},O={Properties:{autoReverse:M,externalResourcesRequired:M,preserveAlpha:M},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:N.xlink,xlinkArcrole:N.xlink,xlinkHref:N.xlink,xlinkRole:N.xlink,xlinkShow:N.xlink,xlinkTitle:N.xlink,xlinkType:N.xlink,xmlBase:N.xml,xmlLang:N.xml,
3766
3784
  xmlSpace:N.xml}},fa=/[\-\:]([a-z])/g;function ha(a){return a[1].toUpperCase()}
3767
3785
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(a){var b=a.replace(fa,
3768
- ha);O.Properties[b]=0;O.DOMAttributeNames[b]=a});F.injectDOMPropertyConfig(ea);F.injectDOMPropertyConfig(O);var ia=/["'&<>]/;
3769
- function P(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=ia.exec(a);if(b){var g="",c,k=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b="\x26quot;";break;case 38:b="\x26amp;";break;case 39:b="\x26#x27;";break;case 60:b="\x26lt;";break;case 62:b="\x26gt;";break;default:continue}k!==c&&(g+=a.substring(k,c));k=c+1;g+=b}a=k!==c?g+a.substring(k,c):g}return a}
3770
- var ja=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Q={},R={};function ka(a){if(R.hasOwnProperty(a))return!0;if(Q.hasOwnProperty(a))return!1;if(ja.test(a))return R[a]=!0;Q[a]=!0;return!1}
3771
- function la(a,b){var g=E(a);if(g){if(null==b||g.hasBooleanValue&&!b||g.hasNumericValue&&isNaN(b)||g.hasPositiveNumericValue&&1>b||g.hasOverloadedBooleanValue&&!1===b)return"";var c=g.attributeName;if(g.hasBooleanValue||g.hasOverloadedBooleanValue&&!0===b)return c+'\x3d""';if("boolean"!==typeof b||D(a))return c+"\x3d"+('"'+P(b)+'"')}else if(da(a,b))return null==b?"":a+"\x3d"+('"'+P(b)+'"');return null}var S={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
3772
- function T(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}
3773
- var U={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ma=h({menuitem:!0},U),V={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,
3774
- fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},na=["Webkit","ms","Moz","O"];Object.keys(V).forEach(function(a){na.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);V[b]=V[a]})});
3775
- var W="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.fragment")||60107,X=n.Children.toArray,oa=aa.thatReturns(""),pa={listing:!0,pre:!0,textarea:!0};function Y(a){return"string"===typeof a?a:"function"===typeof a?a.displayName||a.name:null}var qa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ra={},sa=ca(function(a){return ba(a)});function ta(a){var b="";n.Children.forEach(a,function(a){null==a||"string"!==typeof a&&"number"!==typeof a||(b+=a)});return b}
3776
- function ua(a,b){if(a=a.contextTypes){var g={},c;for(c in a)g[c]=b[c];b=g}else b=t;return b}var va={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function wa(a,b){void 0===a&&w("152",Y(b)||"Component")}
3786
+ ha);O.Properties[b]=0;O.DOMAttributeNames[b]=a});F.injectDOMPropertyConfig(ea);F.injectDOMPropertyConfig(O);var P="function"===typeof Symbol&&Symbol["for"]?Symbol["for"]("react.fragment"):60107,ia=/["'&<>]/;
3787
+ function Q(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=ia.exec(a);if(b){var g="",c,k=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b="\x26quot;";break;case 38:b="\x26amp;";break;case 39:b="\x26#x27;";break;case 60:b="\x26lt;";break;case 62:b="\x26gt;";break;default:continue}k!==c&&(g+=a.substring(k,c));k=c+1;g+=b}a=k!==c?g+a.substring(k,c):g}return a}
3788
+ var ja=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,R={},S={};function ka(a){if(S.hasOwnProperty(a))return!0;if(R.hasOwnProperty(a))return!1;if(ja.test(a))return S[a]=!0;R[a]=!0;return!1}
3789
+ function la(a,b){var g=E(a);if(g){if(null==b||g.hasBooleanValue&&!b||g.hasNumericValue&&isNaN(b)||g.hasPositiveNumericValue&&1>b||g.hasOverloadedBooleanValue&&!1===b)return"";var c=g.attributeName;if(g.hasBooleanValue||g.hasOverloadedBooleanValue&&!0===b)return c+'\x3d""';if("boolean"!==typeof b||D(a))return c+"\x3d"+('"'+Q(b)+'"')}else if(da(a,b))return null==b?"":a+"\x3d"+('"'+Q(b)+'"');return null}var T={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
3790
+ function U(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}
3791
+ var V={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ma=h({menuitem:!0},V),W={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,
3792
+ fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},na=["Webkit","ms","Moz","O"];Object.keys(W).forEach(function(a){na.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);W[b]=W[a]})});var X=n.Children.toArray,Y=aa.thatReturns(""),oa={listing:!0,pre:!0,textarea:!0};
3793
+ function pa(a){return"string"===typeof a?a:"function"===typeof a?a.displayName||a.name:null}var qa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ra={},sa=ca(function(a){return ba(a)});function ta(a){var b="";n.Children.forEach(a,function(a){null==a||"string"!==typeof a&&"number"!==typeof a||(b+=a)});return b}function ua(a,b){if(a=a.contextTypes){var g={},c;for(c in a)g[c]=b[c];b=g}else b=t;return b}var va={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};
3794
+ function wa(a,b){void 0===a&&w("152",pa(b)||"Component")}
3777
3795
  function xa(a,b){for(;n.isValidElement(a);){var g=a,c=g.type;if("function"!==typeof c)break;a=ua(c,b);var k=[],f=!1,e={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===k)return null},enqueueReplaceState:function(a,b){f=!0;k=[b]},enqueueSetState:function(a,b){if(null===k)return null;k.push(b)}};if(c.prototype&&c.prototype.isReactComponent)var d=new c(g.props,a,e);else if(d=c(g.props,a,e),null==d||null==d.render){a=d;wa(a,c);continue}d.props=g.props;d.context=a;d.updater=e;e=d.state;
3778
- void 0===e&&(d.state=e=null);if(d.componentWillMount)if(d.componentWillMount(),k.length){e=k;var p=f;k=null;f=!1;if(p&&1===e.length)d.state=e[0];else{var q=p?e[0]:d.state,l=!0;for(p=p?1:0;p<e.length;p++){var m=e[p];if(m="function"===typeof m?m.call(d,q,g.props,a):m)l?(l=!1,q=h({},q,m)):h(q,m)}d.state=q}}else k=null;a=d.render();wa(a,c);if("function"===typeof d.getChildContext){g=c.childContextTypes;"object"!==typeof g?w("107",Y(c)||"Unknown"):void 0;var A=d.getChildContext();for(var y in A)y in g?
3779
- void 0:w("108",Y(c)||"Unknown",y)}A&&(b=h({},b,A))}return{child:a,context:b}}
3780
- var ya=function(){function a(b,g){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");n.isValidElement(b)?b.type!==W?b=[b]:(b=b.props.children,b=n.isValidElement(b)?[b]:X(b)):b=X(b);this.stack=[{domNamespace:S.html,children:b,childIndex:0,context:t,footer:""}];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=g}a.prototype.read=function(a){if(this.exhausted)return null;for(var b="";b.length<a;){if(0===this.stack.length){this.exhausted=
3781
- !0;break}var c=this.stack[this.stack.length-1];if(c.childIndex>=c.children.length){var k=c.footer;b+=k;""!==k&&(this.previousWasTextNode=!1);this.stack.pop();"select"===c.tag&&(this.currentSelectValue=null)}else k=c.children[c.childIndex++],b+=this.render(k,c.context,c.domNamespace)}return b};a.prototype.render=function(a,g,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return P(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+P(c);this.previousWasTextNode=
3782
- !0;return P(c)}g=xa(a,g);a=g.child;g=g.context;if(null===a||!1===a)return"";if(n.isValidElement(a))return a.type===W?(a=X(a.props.children),this.stack.push({domNamespace:c,children:a,childIndex:0,context:g,footer:""}),""):this.renderDOM(a,g,c);a=X(a);this.stack.push({domNamespace:c,children:a,childIndex:0,context:g,footer:""});return""};a.prototype.renderDOM=function(a,g,c){var b=a.type.toLowerCase();c===S.html&&T(b);ra.hasOwnProperty(b)||(qa.test(b)?void 0:w("65",b),ra[b]=!0);var f=a.props;if("input"===
3796
+ void 0===e&&(d.state=e=null);if(d.componentWillMount)if(d.componentWillMount(),k.length){e=k;var p=f;k=null;f=!1;if(p&&1===e.length)d.state=e[0];else{var q=p?e[0]:d.state,l=!0;for(p=p?1:0;p<e.length;p++){var m=e[p];if(m="function"===typeof m?m.call(d,q,g.props,a):m)l?(l=!1,q=h({},q,m)):h(q,m)}d.state=q}}else k=null;a=d.render();wa(a,c);if("function"===typeof d.getChildContext&&(g=c.childContextTypes,"object"===typeof g)){var A=d.getChildContext();for(var y in A)y in g?void 0:w("108",pa(c)||"Unknown",
3797
+ y)}A&&(b=h({},b,A))}return{child:a,context:b}}
3798
+ var ya=function(){function a(b,g){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");n.isValidElement(b)?b.type!==P?b=[b]:(b=b.props.children,b=n.isValidElement(b)?[b]:X(b)):b=X(b);this.stack=[{domNamespace:T.html,children:b,childIndex:0,context:t,footer:""}];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=g}a.prototype.read=function(a){if(this.exhausted)return null;for(var b="";b.length<a;){if(0===this.stack.length){this.exhausted=
3799
+ !0;break}var c=this.stack[this.stack.length-1];if(c.childIndex>=c.children.length){var k=c.footer;b+=k;""!==k&&(this.previousWasTextNode=!1);this.stack.pop();"select"===c.tag&&(this.currentSelectValue=null)}else k=c.children[c.childIndex++],b+=this.render(k,c.context,c.domNamespace)}return b};a.prototype.render=function(a,g,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return Q(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+Q(c);this.previousWasTextNode=
3800
+ !0;return Q(c)}g=xa(a,g);a=g.child;g=g.context;if(null===a||!1===a)return"";if(n.isValidElement(a))return a.type===P?(a=X(a.props.children),this.stack.push({domNamespace:c,children:a,childIndex:0,context:g,footer:""}),""):this.renderDOM(a,g,c);a=X(a);this.stack.push({domNamespace:c,children:a,childIndex:0,context:g,footer:""});return""};a.prototype.renderDOM=function(a,g,c){var b=a.type.toLowerCase();c===T.html&&U(b);ra.hasOwnProperty(b)||(qa.test(b)?void 0:w("65",b),ra[b]=!0);var f=a.props;if("input"===
3783
3801
  b)f=h({type:void 0},f,{defaultChecked:void 0,defaultValue:void 0,value:null!=f.value?f.value:f.defaultValue,checked:null!=f.checked?f.checked:f.defaultChecked});else if("textarea"===b){var e=f.value;if(null==e){e=f.defaultValue;var d=f.children;null!=d&&(null!=e?w("92"):void 0,Array.isArray(d)&&(1>=d.length?void 0:w("93"),d=d[0]),e=""+d);null==e&&(e="")}f=h({},f,{value:void 0,children:""+e})}else if("select"===b)this.currentSelectValue=null!=f.value?f.value:f.defaultValue,f=h({},f,{value:void 0});
3784
- else if("option"===b){d=this.currentSelectValue;var p=ta(f.children);if(null!=d){var q=null!=f.value?f.value+"":p;e=!1;if(Array.isArray(d))for(var l=0;l<d.length;l++){if(""+d[l]===q){e=!0;break}}else e=""+d===q;f=h({selected:void 0,children:void 0},f,{selected:e,children:p})}}if(e=f)ma[b]&&(null!=e.children||null!=e.dangerouslySetInnerHTML?w("137",b,oa()):void 0),null!=e.dangerouslySetInnerHTML&&(null!=e.children?w("60"):void 0,"object"===typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML?
3785
- void 0:w("61")),null!=e.style&&"object"!==typeof e.style?w("62",oa()):void 0;e=f;d=this.makeStaticMarkup;p=1===this.stack.length;q="\x3c"+a.type;for(r in e)if(e.hasOwnProperty(r)){var m=e[r];if(null!=m){if("style"===r){l=void 0;var A="",y="";for(l in m)if(m.hasOwnProperty(l)){var u=0===l.indexOf("--"),v=m[l];null!=v&&(A+=y+sa(l)+":",y=l,u=null==v||"boolean"===typeof v||""===v?"":u||"number"!==typeof v||0===v||V.hasOwnProperty(y)&&V[y]?(""+v).trim():v+"px",A+=u,y=";")}m=A||null}l=null;b:if(u=b,v=e,
3786
- -1===u.indexOf("-"))u="string"===typeof v.is;else switch(u){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":u=!1;break b;default:u=!0}u?va.hasOwnProperty(r)||(l=r,l=ka(l)&&null!=m?l+"\x3d"+('"'+P(m)+'"'):""):l=la(r,m);l&&(q+=" "+l)}}d||p&&(q+=' data-reactroot\x3d""');var r=q;e="";U.hasOwnProperty(b)?r+="/\x3e":(r+="\x3e",e="\x3c/"+a.type+"\x3e");a:{d=f.dangerouslySetInnerHTML;if(null!=
3787
- d){if(null!=d.__html){d=d.__html;break a}}else if(d=f.children,"string"===typeof d||"number"===typeof d){d=P(d);break a}d=null}null!=d?(f=[],pa[b]&&"\n"===d.charAt(0)&&(r+="\n"),r+=d):f=X(f.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?T(a):"http://www.w3.org/2000/svg"===c&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":c;this.stack.push({domNamespace:c,tag:b,children:f,childIndex:0,context:g,footer:e});this.previousWasTextNode=!1;return r};return a}(),za={renderToString:function(a){return(new ya(a,
3788
- !1)).read(Infinity)},renderToStaticMarkup:function(a){return(new ya(a,!0)).read(Infinity)},renderToNodeStream:function(){w("207")},renderToStaticNodeStream:function(){w("208")},version:"16.1.1"},Aa=Object.freeze({default:za}),Z=Aa&&za||Aa;module.exports=Z["default"]?Z["default"]:Z;
3802
+ else if("option"===b){d=this.currentSelectValue;var p=ta(f.children);if(null!=d){var q=null!=f.value?f.value+"":p;e=!1;if(Array.isArray(d))for(var l=0;l<d.length;l++){if(""+d[l]===q){e=!0;break}}else e=""+d===q;f=h({selected:void 0,children:void 0},f,{selected:e,children:p})}}if(e=f)ma[b]&&(null!=e.children||null!=e.dangerouslySetInnerHTML?w("137",b,Y()):void 0),null!=e.dangerouslySetInnerHTML&&(null!=e.children?w("60"):void 0,"object"===typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML?
3803
+ void 0:w("61")),null!=e.style&&"object"!==typeof e.style?w("62",Y()):void 0;e=f;d=this.makeStaticMarkup;p=1===this.stack.length;q="\x3c"+a.type;for(r in e)if(e.hasOwnProperty(r)){var m=e[r];if(null!=m){if("style"===r){l=void 0;var A="",y="";for(l in m)if(m.hasOwnProperty(l)){var u=0===l.indexOf("--"),v=m[l];null!=v&&(A+=y+sa(l)+":",y=l,u=null==v||"boolean"===typeof v||""===v?"":u||"number"!==typeof v||0===v||W.hasOwnProperty(y)&&W[y]?(""+v).trim():v+"px",A+=u,y=";")}m=A||null}l=null;b:if(u=b,v=e,
3804
+ -1===u.indexOf("-"))u="string"===typeof v.is;else switch(u){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":u=!1;break b;default:u=!0}u?va.hasOwnProperty(r)||(l=r,l=ka(l)&&null!=m?l+"\x3d"+('"'+Q(m)+'"'):""):l=la(r,m);l&&(q+=" "+l)}}d||p&&(q+=' data-reactroot\x3d""');var r=q;e="";V.hasOwnProperty(b)?r+="/\x3e":(r+="\x3e",e="\x3c/"+a.type+"\x3e");a:{d=f.dangerouslySetInnerHTML;if(null!=
3805
+ d){if(null!=d.__html){d=d.__html;break a}}else if(d=f.children,"string"===typeof d||"number"===typeof d){d=Q(d);break a}d=null}null!=d?(f=[],oa[b]&&"\n"===d.charAt(0)&&(r+="\n"),r+=d):f=X(f.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?U(a):"http://www.w3.org/2000/svg"===c&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":c;this.stack.push({domNamespace:c,tag:b,children:f,childIndex:0,context:g,footer:e});this.previousWasTextNode=!1;return r};return a}(),za={renderToString:function(a){return(new ya(a,
3806
+ !1)).read(Infinity)},renderToStaticMarkup:function(a){return(new ya(a,!0)).read(Infinity)},renderToNodeStream:function(){w("207")},renderToStaticNodeStream:function(){w("208")},version:"16.2.0"},Aa=Object.freeze({default:za}),Z=Aa&&za||Aa;module.exports=Z["default"]?Z["default"]:Z;
3789
3807
 
3790
3808
 
3791
3809
  /***/ }),
@@ -3824,7 +3842,7 @@
3824
3842
  /* 35 */
3825
3843
  /***/ (function(module, exports, __webpack_require__) {
3826
3844
 
3827
- /* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.1.1
3845
+ /* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.2.0
3828
3846
  * react-dom-server.browser.development.js
3829
3847
  *
3830
3848
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -3835,6 +3853,8 @@
3835
3853
 
3836
3854
  'use strict';
3837
3855
 
3856
+
3857
+
3838
3858
  if (process.env.NODE_ENV !== "production") {
3839
3859
  (function() {
3840
3860
  'use strict';
@@ -4224,7 +4244,7 @@
4224
4244
 
4225
4245
  // TODO: this is special because it gets imported during build.
4226
4246
 
4227
- var ReactVersion = '16.1.1';
4247
+ var ReactVersion = '16.2.0';
4228
4248
 
4229
4249
  var describeComponentFrame = function (name, source, ownerName) {
4230
4250
  return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
@@ -4232,9 +4252,19 @@
4232
4252
 
4233
4253
  var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
4234
4254
 
4235
-
4255
+ var ReactCurrentOwner = ReactInternals.ReactCurrentOwner;
4236
4256
  var ReactDebugCurrentFrame = ReactInternals.ReactDebugCurrentFrame;
4237
4257
 
4258
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
4259
+ // nor polyfill, then a plain number is used for performance.
4260
+ var hasSymbol = typeof Symbol === 'function' && Symbol['for'];
4261
+
4262
+
4263
+
4264
+
4265
+
4266
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol['for']('react.fragment') : 0xeacb;
4267
+
4238
4268
  // code copied and modified from escape-html
4239
4269
  /**
4240
4270
  * Module variables.
@@ -4244,9 +4274,9 @@
4244
4274
  var matchHtmlRegExp = /["'&<>]/;
4245
4275
 
4246
4276
  /**
4247
- * Escape special characters in the given string of html.
4277
+ * Escapes special characters and HTML entities in a given html string.
4248
4278
  *
4249
- * @param {string} string The string to escape for inserting into HTML
4279
+ * @param {string} string HTML string to escape for later insertion
4250
4280
  * @return {string}
4251
4281
  * @public
4252
4282
  */
@@ -4308,7 +4338,7 @@
4308
4338
  * @param {*} text Text value to escape.
4309
4339
  * @return {string} An escaped string.
4310
4340
  */
4311
- function escapeTextContentForBrowser(text) {
4341
+ function escapeTextForBrowser(text) {
4312
4342
  if (typeof text === 'boolean' || typeof text === 'number') {
4313
4343
  // this shortcircuit helps perf for types that we know will never have
4314
4344
  // special characters, especially given that this function is used often
@@ -4325,7 +4355,7 @@
4325
4355
  * @return {string} An escaped string.
4326
4356
  */
4327
4357
  function quoteAttributeValueForBrowser(value) {
4328
- return '"' + escapeTextContentForBrowser(value) + '"';
4358
+ return '"' + escapeTextForBrowser(value) + '"';
4329
4359
  }
4330
4360
 
4331
4361
  // isAttributeNameSafe() is currently duplicated in DOMPropertyOperations.
@@ -4915,7 +4945,7 @@
4915
4945
  /**
4916
4946
  * Ordered list of injected plugins.
4917
4947
  */
4918
- var plugins = [];
4948
+
4919
4949
 
4920
4950
  /**
4921
4951
  * Mapping from event name to dispatch config
@@ -5459,36 +5489,46 @@
5459
5489
  {
5460
5490
  var warnedProperties$1 = {};
5461
5491
  var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
5462
- var EVENT_NAME_REGEX = /^on[A-Z]/;
5492
+ var EVENT_NAME_REGEX = /^on./;
5493
+ var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
5463
5494
  var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
5464
5495
  var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
5465
5496
 
5466
- var validateProperty$1 = function (tagName, name, value) {
5497
+ var validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
5467
5498
  if (hasOwnProperty$1.call(warnedProperties$1, name) && warnedProperties$1[name]) {
5468
5499
  return true;
5469
5500
  }
5470
5501
 
5471
- if (registrationNameModules.hasOwnProperty(name)) {
5472
- return true;
5473
- }
5474
-
5475
- if (plugins.length === 0 && EVENT_NAME_REGEX.test(name)) {
5476
- // If no event plugins have been injected, we might be in a server environment.
5477
- // Don't check events in this case.
5478
- return true;
5479
- }
5480
-
5481
5502
  var lowerCasedName = name.toLowerCase();
5482
- var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
5483
-
5484
- if (registrationName != null) {
5485
- warning(false, 'Invalid event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$3());
5503
+ if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
5504
+ warning(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
5486
5505
  warnedProperties$1[name] = true;
5487
5506
  return true;
5488
5507
  }
5489
5508
 
5490
- if (lowerCasedName.indexOf('on') === 0 && lowerCasedName.length > 2) {
5491
- warning(false, 'Unknown event handler property `%s`. It will be ignored.%s', name, getStackAddendum$3());
5509
+ // We can't rely on the event system being injected on the server.
5510
+ if (canUseEventSystem) {
5511
+ if (registrationNameModules.hasOwnProperty(name)) {
5512
+ return true;
5513
+ }
5514
+ var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
5515
+ if (registrationName != null) {
5516
+ warning(false, 'Invalid event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$3());
5517
+ warnedProperties$1[name] = true;
5518
+ return true;
5519
+ }
5520
+ if (EVENT_NAME_REGEX.test(name)) {
5521
+ warning(false, 'Unknown event handler property `%s`. It will be ignored.%s', name, getStackAddendum$3());
5522
+ warnedProperties$1[name] = true;
5523
+ return true;
5524
+ }
5525
+ } else if (EVENT_NAME_REGEX.test(name)) {
5526
+ // If no event plugins have been injected, we are in a server environment.
5527
+ // So we can't tell if the event name is correct for sure, but we can filter
5528
+ // out known bad ones like `onclick`. We can't suggest a specific replacement though.
5529
+ if (INVALID_EVENT_NAME_REGEX.test(name)) {
5530
+ warning(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.%s', name, getStackAddendum$3());
5531
+ }
5492
5532
  warnedProperties$1[name] = true;
5493
5533
  return true;
5494
5534
  }
@@ -5498,12 +5538,6 @@
5498
5538
  return true;
5499
5539
  }
5500
5540
 
5501
- if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
5502
- warning(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
5503
- warnedProperties$1[name] = true;
5504
- return true;
5505
- }
5506
-
5507
5541
  if (lowerCasedName === 'innerhtml') {
5508
5542
  warning(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
5509
5543
  warnedProperties$1[name] = true;
@@ -5572,10 +5606,10 @@
5572
5606
  };
5573
5607
  }
5574
5608
 
5575
- var warnUnknownProperties = function (type, props) {
5609
+ var warnUnknownProperties = function (type, props, canUseEventSystem) {
5576
5610
  var unknownProps = [];
5577
5611
  for (var key in props) {
5578
- var isValid = validateProperty$1(type, key, props[key]);
5612
+ var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
5579
5613
  if (!isValid) {
5580
5614
  unknownProps.push(key);
5581
5615
  }
@@ -5591,17 +5625,15 @@
5591
5625
  }
5592
5626
  };
5593
5627
 
5594
- function validateProperties$2(type, props) {
5628
+ function validateProperties$2(type, props, canUseEventSystem) {
5595
5629
  if (isCustomComponent(type, props)) {
5596
5630
  return;
5597
5631
  }
5598
- warnUnknownProperties(type, props);
5632
+ warnUnknownProperties(type, props, canUseEventSystem);
5599
5633
  }
5600
5634
 
5601
5635
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5602
5636
 
5603
- var REACT_FRAGMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.fragment') || 0xeacb;
5604
-
5605
5637
  // Based on reading the React.Children implementation. TODO: type this somewhere?
5606
5638
 
5607
5639
  var toArray = React.Children.toArray;
@@ -5612,7 +5644,7 @@
5612
5644
  var validatePropertiesInDevelopment = function (type, props) {
5613
5645
  validateProperties(type, props);
5614
5646
  validateProperties$1(type, props);
5615
- validateProperties$2(type, props);
5647
+ validateProperties$2(type, props, /* canUseEventSystem */false);
5616
5648
  };
5617
5649
 
5618
5650
  var describeStackFrame = function (element) {
@@ -5744,7 +5776,7 @@
5744
5776
  } else {
5745
5777
  var content = props.children;
5746
5778
  if (typeof content === 'string' || typeof content === 'number') {
5747
- return escapeTextContentForBrowser(content);
5779
+ return escapeTextForBrowser(content);
5748
5780
  }
5749
5781
  }
5750
5782
  return null;
@@ -5971,10 +6003,13 @@
5971
6003
  var childContext;
5972
6004
  if (typeof inst.getChildContext === 'function') {
5973
6005
  var childContextTypes = Component.childContextTypes;
5974
- !(typeof childContextTypes === 'object') ? invariant(false, '%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().', getComponentName(Component) || 'Unknown') : void 0;
5975
- childContext = inst.getChildContext();
5976
- for (var contextKey in childContext) {
5977
- !(contextKey in childContextTypes) ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(Component) || 'Unknown', contextKey) : void 0;
6006
+ if (typeof childContextTypes === 'object') {
6007
+ childContext = inst.getChildContext();
6008
+ for (var contextKey in childContext) {
6009
+ !(contextKey in childContextTypes) ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(Component) || 'Unknown', contextKey) : void 0;
6010
+ }
6011
+ } else {
6012
+ warning(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', getComponentName(Component) || 'Unknown');
5978
6013
  }
5979
6014
  }
5980
6015
  if (childContext) {
@@ -5984,7 +6019,7 @@
5984
6019
  return { child: child, context: context };
5985
6020
  }
5986
6021
 
5987
- var ReactDOMServerRenderer$1 = function () {
6022
+ var ReactDOMServerRenderer = function () {
5988
6023
  function ReactDOMServerRenderer(children, makeStaticMarkup) {
5989
6024
  _classCallCheck(this, ReactDOMServerRenderer);
5990
6025
 
@@ -6055,13 +6090,13 @@
6055
6090
  return '';
6056
6091
  }
6057
6092
  if (this.makeStaticMarkup) {
6058
- return escapeTextContentForBrowser(text);
6093
+ return escapeTextForBrowser(text);
6059
6094
  }
6060
6095
  if (this.previousWasTextNode) {
6061
- return '<!-- -->' + escapeTextContentForBrowser(text);
6096
+ return '<!-- -->' + escapeTextForBrowser(text);
6062
6097
  }
6063
6098
  this.previousWasTextNode = true;
6064
- return escapeTextContentForBrowser(text);
6099
+ return escapeTextForBrowser(text);
6065
6100
  } else {
6066
6101
  var nextChild;
6067
6102
 
@@ -6305,7 +6340,7 @@
6305
6340
  * See https://reactjs.org/docs/react-dom-server.html#rendertostring
6306
6341
  */
6307
6342
  function renderToString(element) {
6308
- var renderer = new ReactDOMServerRenderer$1(element, false);
6343
+ var renderer = new ReactDOMServerRenderer(element, false);
6309
6344
  var markup = renderer.read(Infinity);
6310
6345
  return markup;
6311
6346
  }
@@ -6316,7 +6351,7 @@
6316
6351
  * See https://reactjs.org/docs/react-dom-server.html#rendertostaticmarkup
6317
6352
  */
6318
6353
  function renderToStaticMarkup(element) {
6319
- var renderer = new ReactDOMServerRenderer$1(element, true);
6354
+ var renderer = new ReactDOMServerRenderer(element, true);
6320
6355
  var markup = renderer.read(Infinity);
6321
6356
  return markup;
6322
6357
  }