react 16.1.0 → 16.3.0-alpha.1

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.
@@ -1,4 +1,4 @@
1
- /** @license React v16.1.0
1
+ /** @license React v16.3.0-alpha.1
2
2
  * react.production.min.js
3
3
  *
4
4
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -6,16 +6,16 @@
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- 'use strict';(function(p,l){"object"===typeof exports&&"undefined"!==typeof module?module.exports=l():"function"===typeof define&&define.amd?define(l):p.React=l()})(this,function(){function p(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,e=0;e<b;e++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[e+1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");
10
- b.name="Invariant Violation";b.framesToPop=1;throw b;}function l(a){return function(){return a}}function n(a,b,c){this.props=a;this.context=b;this.refs=v;this.updater=c||w}function x(a,b,c){this.props=a;this.context=b;this.refs=v;this.updater=c||w}function y(){}function z(a,b,c){this.props=a;this.context=b;this.refs=v;this.updater=c||w}function F(a,b,c){var e,f={},d=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(d=""+b.key),b)G.call(b,e)&&!H.hasOwnProperty(e)&&(f[e]=b[e]);
11
- var g=arguments.length-2;if(1===g)f.children=c;else if(1<g){for(var k=Array(g),m=0;m<g;m++)k[m]=arguments[m+2];f.children=k}if(a&&a.defaultProps)for(e in g=a.defaultProps,g)void 0===f[e]&&(f[e]=g[e]);return{$$typeof:r,type:a,key:d,ref:h,props:f,_owner:A.current}}function B(a){return"object"===typeof a&&null!==a&&a.$$typeof===r}function O(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function I(a,b,c,e){if(t.length){var f=t.pop();f.result=a;f.keyPrefix=
12
- b;f.func=c;f.context=e;f.count=0;return f}return{result:a,keyPrefix:b,func:c,context:e,count:0}}function J(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>t.length&&t.push(a)}function q(a,b,c,e){var f=typeof a;if("undefined"===f||"boolean"===f)a=null;if(null===a||"string"===f||"number"===f||"object"===f&&a.$$typeof===P||"object"===f&&a.$$typeof===Q)return c(e,a,""===b?"."+C(a,0):b),1;var d=0;b=""===b?".":b+":";if(Array.isArray(a))for(var h=0;h<a.length;h++){f=a[h];var g=
13
- b+C(f,h);d+=q(f,g,c,e)}else if(g=K&&a[K]||a["@@iterator"],"function"===typeof g)for(a=g.call(a),h=0;!(f=a.next()).done;)f=f.value,g=b+C(f,h++),d+=q(f,g,c,e);else"object"===f&&(c=""+a,p("31","[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return d}function C(a,b){return"object"===typeof a&&null!==a&&null!=a.key?O(a.key):b.toString(36)}function R(a,b,c){a.func.call(a.context,b,a.count++)}function S(a,b,c){var e=a.result,f=a.keyPrefix;a=a.func.call(a.context,b,a.count++);
14
- Array.isArray(a)?D(a,e,c,E.thatReturnsArgument):null!=a&&(B(a)&&(b=f+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(L,"$\x26/")+"/")+c,a={$$typeof:r,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),e.push(a))}function D(a,b,c,e,f){var d="";null!=c&&(d=(""+c).replace(L,"$\x26/")+"/");b=I(b,d,e,f);null==a||q(a,"",S,b);J(b)}var M=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,u=function(){try{if(!Object.assign)return!1;var a=new String("abc");
15
- a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(e){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");
16
- var c=Object(a);for(var e,f=1;f<arguments.length;f++){var d=Object(arguments[f]);for(var h in d)T.call(d,h)&&(c[h]=d[h]);if(M){e=M(d);for(var g=0;g<e.length;g++)U.call(d,e[g])&&(c[e[g]]=d[e[g]])}}return c},v={},d=function(){};d.thatReturns=l;d.thatReturnsFalse=l(!1);d.thatReturnsTrue=l(!0);d.thatReturnsNull=l(null);d.thatReturnsThis=function(){return this};d.thatReturnsArgument=function(a){return a};var E=d,w={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,
17
- b,c,e){},enqueueSetState:function(a,b,c,e){}};n.prototype.isReactComponent={};n.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?p("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};n.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};y.prototype=n.prototype;d=x.prototype=new y;d.constructor=x;u(d,n.prototype);d.isPureReactComponent=!0;d=z.prototype=new y;d.constructor=z;u(d,n.prototype);d.unstable_isAsyncReactComponent=
18
- !0;d.render=function(){return this.props.children};var A={current:null},G=Object.prototype.hasOwnProperty,r="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,H={key:!0,ref:!0,__self:!0,__source:!0},K="function"===typeof Symbol&&Symbol.iterator,P="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,Q="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||60106,L=/\/+/g,t=[];"function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.fragment");
19
- d={Children:{map:function(a,b,c){if(null==a)return a;var e=[];D(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=I(null,null,b,c);null==a||q(a,"",R,b);J(b)},count:function(a,b){return null==a?0:q(a,"",E.thatReturnsNull,null)},toArray:function(a){var b=[];D(a,b,null,E.thatReturnsArgument);return b},only:function(a){B(a)?void 0:p("143");return a}},Component:n,PureComponent:x,unstable_AsyncComponent:z,createElement:F,cloneElement:function(a,b,c){var e=u({},a.props),d=a.key,l=a.ref,
20
- h=a._owner;if(null!=b){void 0!==b.ref&&(l=b.ref,h=A.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(k in b)G.call(b,k)&&!H.hasOwnProperty(k)&&(e[k]=void 0===b[k]&&void 0!==g?g[k]:b[k])}var k=arguments.length-2;if(1===k)e.children=c;else if(1<k){g=Array(k);for(var m=0;m<k;m++)g[m]=arguments[m+2];e.children=g}return{$$typeof:r,type:a.type,key:d,ref:l,props:e,_owner:h}},createFactory:function(a){var b=F.bind(null,a);b.type=a;return b},isValidElement:B,
21
- version:"16.1.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:A,assign:u}};var N=Object.freeze({default:d});d=N&&d||N;return d["default"]?d["default"]:d});
9
+ 'use strict';(function(q,m){"object"===typeof exports&&"undefined"!==typeof module?module.exports=m():"function"===typeof define&&define.amd?define(m):q.React=m()})(this,function(){function q(a){for(var b=arguments.length-1,d="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,c=0;c<b;c++)d+="\x26args[]\x3d"+encodeURIComponent(arguments[c+1]);b=Error(d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");
10
+ b.name="Invariant Violation";b.framesToPop=1;throw b;}function m(a){return function(){return a}}function p(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||E}function F(){}function v(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||E}function G(a,b,d){var c=void 0,e={},g=null,l=null;if(null!=b)for(c in void 0!==b.ref&&(l=b.ref),void 0!==b.key&&(g=""+b.key),b)H.call(b,c)&&!I.hasOwnProperty(c)&&(e[c]=b[c]);var f=arguments.length-2;if(1===f)e.children=d;else if(1<f){for(var k=
11
+ Array(f),h=0;h<f;h++)k[h]=arguments[h+2];e.children=k}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===e[c]&&(e[c]=f[c]);return{$$typeof:r,type:a,key:g,ref:l,props:e,_owner:w.current}}function x(a){return"object"===typeof a&&null!==a&&a.$$typeof===r}function O(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function J(a,b,d,c){if(u.length){var e=u.pop();e.result=a;e.keyPrefix=b;e.func=d;e.context=c;e.count=0;return e}return{result:a,keyPrefix:b,
12
+ func:d,context:c,count:0}}function K(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>u.length&&u.push(a)}function t(a,b,d,c){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var g=!1;if(null===a)g=!0;else switch(e){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case r:case P:g=!0}}if(g)return d(c,a,""===b?"."+y(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var l=0;l<a.length;l++){e=a[l];var f=b+y(e,l);g+=t(e,f,d,c)}else if(null===
13
+ a||"undefined"===typeof a?f=null:(f=L&&a[L]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),l=0;!(e=a.next()).done;)e=e.value,f=b+y(e,l++),g+=t(e,f,d,c);else"object"===e&&(d=""+a,q("31","[object Object]"===d?"object with keys {"+Object.keys(a).join(", ")+"}":d,""));return g}function y(a,b){return"object"===typeof a&&null!==a&&null!=a.key?O(a.key):b.toString(36)}function Q(a,b,d){a.func.call(a.context,b,a.count++)}function R(a,b,d){var c=a.result,e=a.keyPrefix;
14
+ a=a.func.call(a.context,b,a.count++);Array.isArray(a)?z(a,c,d,A.thatReturnsArgument):null!=a&&(x(a)&&(b=e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(M,"$\x26/")+"/")+d,a={$$typeof:r,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),c.push(a))}function z(a,b,d,c,e){var g="";null!=d&&(g=(""+d).replace(M,"$\x26/")+"/");b=J(b,g,c,e);null==a||t(a,"",R,b);K(b)}var N=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,B=function(){try{if(!Object.assign)return!1;
15
+ var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var d={};"abcdefghijklmnopqrst".split("").forEach(function(a){d[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},d)).join("")?!1:!0}catch(c){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");
16
+ var d=Object(a);for(var c,e=1;e<arguments.length;e++){var g=Object(arguments[e]);for(var l in g)S.call(g,l)&&(d[l]=g[l]);if(N){c=N(g);for(var f=0;f<c.length;f++)T.call(g,c[f])&&(d[c[f]]=g[c[f]])}}return d},h="function"===typeof Symbol&&Symbol["for"],r=h?Symbol["for"]("react.element"):60103,P=h?Symbol["for"]("react.portal"):60106,n=h?Symbol["for"]("react.fragment"):60107,C=h?Symbol["for"]("react.strict_mode"):60108,U=h?Symbol["for"]("react.provider"):60109,V=h?Symbol["for"]("react.context"):60110;
17
+ h=h?Symbol["for"]("react.async_mode"):60111;var L="function"===typeof Symbol&&Symbol.iterator,D={},k=function(){};k.thatReturns=m;k.thatReturnsFalse=m(!1);k.thatReturnsTrue=m(!0);k.thatReturnsNull=m(null);k.thatReturnsThis=function(){return this};k.thatReturnsArgument=function(a){return a};var A=k,E={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,d){},enqueueReplaceState:function(a,b,d,c){},enqueueSetState:function(a,b,d,c){}};p.prototype.isReactComponent={};p.prototype.setState=
18
+ function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?q("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};p.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};F.prototype=p.prototype;k=v.prototype=new F;k.constructor=v;B(k,p.prototype);k.isPureReactComponent=!0;var w={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0},M=/\/+/g,u=[];n={Children:{map:function(a,b,d){if(null==a)return a;var c=[];z(a,
19
+ c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=J(null,null,b,d);null==a||t(a,"",Q,b);K(b)},count:function(a,b){return null==a?0:t(a,"",A.thatReturnsNull,null)},toArray:function(a){var b=[];z(a,b,null,A.thatReturnsArgument);return b},only:function(a){x(a)?void 0:q("143");return a}},createRef:function(){return{value:null}},Component:p,PureComponent:v,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:V,calculateChangedBits:b,defaultValue:a,currentValue:a,changedBits:0,
20
+ Provider:null,Consumer:null};a.Provider={$$typeof:U,context:a};return a.Consumer=a},Fragment:n,StrictMode:C,unstable_AsyncMode:h,createElement:G,cloneElement:function(a,b,d){var c=void 0,e=B({},a.props),g=a.key,l=a.ref,f=a._owner;if(null!=b){void 0!==b.ref&&(l=b.ref,f=w.current);void 0!==b.key&&(g=""+b.key);var h=void 0;a.type&&a.type.defaultProps&&(h=a.type.defaultProps);for(c in b)H.call(b,c)&&!I.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==h?h[c]:b[c])}c=arguments.length-2;if(1===c)e.children=
21
+ d;else if(1<c){h=Array(c);for(var k=0;k<c;k++)h[k]=arguments[k+2];e.children=h}return{$$typeof:r,type:a.type,key:g,ref:l,props:e,_owner:f}},createFactory:function(a){var b=G.bind(null,a);b.type=a;return b},isValidElement:x,version:"16.3.0-alpha.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:w,assign:B}};n=(C=Object.freeze({default:n}))&&n||C;return n["default"]?n["default"]:n});