react 16.0.0-alpha.0 → 16.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-with-addons.js +226 -210
- package/dist/react-with-addons.min.js +7 -2
- package/dist/react.js +219 -203
- package/dist/react.min.js +7 -2
- package/lib/React.js +3 -4
- package/lib/{ReactComponent.js → ReactBaseClasses.js} +27 -2
- package/lib/ReactClass.js +5 -4
- package/lib/ReactElementValidator.js +4 -4
- package/lib/ReactNoopUpdateQueue.js +1 -1
- package/lib/ReactPropTypes.js +19 -6
- package/lib/ReactPropTypesSecret.js +16 -0
- package/lib/ReactVersion.js +1 -1
- package/lib/checkReactTypeSpec.js +2 -1
- package/lib/traverseAllChildren.js +15 -26
- package/package.json +2 -2
- package/lib/ReactPureComponent.js +0 -41
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React (with addons) v16.0.0-alpha.
|
|
2
|
+
* React (with addons) v16.0.0-alpha.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright 2013-present, Facebook, Inc.
|
|
5
5
|
* All rights reserved.
|
|
@@ -9,4 +9,9 @@
|
|
|
9
9
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.React=e()}}(function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[a]={exports:{}};t[a][0].call(p.exports,function(e){var n=t[a][1][e];return o(n?n:e)},p,p.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var i=e(36),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};i.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=o},{36:36}],2:[function(e,t,n){"use strict";function r(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function o(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var i={escape:r,unescape:o};t.exports=i},{}],3:[function(e,t,n){"use strict";var r=e(31),o=(e(39),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},u=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,p=o,l=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||p,n.poolSize||(n.poolSize=c),n.release=u,n},f={addPoolingTo:l,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s};t.exports=f},{31:31,39:39}],4:[function(e,t,n){"use strict";var r=e(42),o=e(8),i=e(10),a=e(20),s=e(9),u=e(13),c=e(14),p=e(19),l=e(24),f=e(30),d=(e(41),c.createElement),h=c.createFactory,y=c.cloneElement,v=r,m=function(e){return e},g={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:f},Component:i,PureComponent:a,createElement:d,cloneElement:y,isValidElement:c.isValidElement,PropTypes:p,createClass:s.createClass,createFactory:h,createMixin:m,DOM:u,version:l,__spread:v};t.exports=g},{10:10,13:13,14:14,19:19,20:20,24:24,30:30,41:41,42:42,8:8,9:9}],5:[function(e,t,n){"use strict";function r(){if(!o){var t=e(26);o=t.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}return o}var o;n.getReactDOM=r},{26:26}],6:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to ReactCSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}}}var s=e(42),u=e(4),c=e(23),p=e(7),l=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return n=i=o(this,e.call.apply(e,[this].concat(c))),i._wrapChild=function(e){return u.createElement(p,{name:i.props.transitionName,appear:i.props.transitionAppear,enter:i.props.transitionEnter,leave:i.props.transitionLeave,appearTimeout:i.props.transitionAppearTimeout,enterTimeout:i.props.transitionEnterTimeout,leaveTimeout:i.props.transitionLeaveTimeout},e)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){return u.createElement(c,s({},this.props,{childFactory:this._wrapChild}))},t}(u.Component);l.displayName="ReactCSSTransitionGroup",l.propTypes={transitionName:p.propTypes.name,transitionAppear:u.PropTypes.bool,transitionEnter:u.PropTypes.bool,transitionLeave:u.PropTypes.bool,transitionAppearTimeout:a("Appear"),transitionEnterTimeout:a("Enter"),transitionLeaveTimeout:a("Leave")},l.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.exports=l},{23:23,4:4,42:42,7:7}],7:[function(e,t,n){"use strict";var r=e(4),o=e(5),i=e(35),a=e(22),s=e(30),u=17,c=r.createClass({displayName:"ReactCSSTransitionGroupChild",propTypes:{name:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.shape({enter:r.PropTypes.string,leave:r.PropTypes.string,active:r.PropTypes.string}),r.PropTypes.shape({enter:r.PropTypes.string,enterActive:r.PropTypes.string,leave:r.PropTypes.string,leaveActive:r.PropTypes.string,appear:r.PropTypes.string,appearActive:r.PropTypes.string})]).isRequired,appear:r.PropTypes.bool,enter:r.PropTypes.bool,leave:r.PropTypes.bool,appearTimeout:r.PropTypes.number,enterTimeout:r.PropTypes.number,leaveTimeout:r.PropTypes.number},transition:function(e,t,n){var r=o.getReactDOM().findDOMNode(this);if(!r)return void(t&&t());var s=this.props.name[e]||this.props.name+"-"+e,u=this.props.name[e+"Active"]||s+"-active",c=null,p=function(e){e&&e.target!==r||(clearTimeout(c),i.removeClass(r,s),i.removeClass(r,u),a.removeEndEventListener(r,p),t&&t())};i.addClass(r,s),this.queueClassAndNode(u,r),n?(c=setTimeout(p,n),this.transitionTimeouts.push(c)):a.addEndEventListener(r,p)},queueClassAndNode:function(e,t){this.classNameAndNodeQueue.push({className:e,node:t}),this.timeout||(this.timeout=setTimeout(this.flushClassNameAndNodeQueue,u))},flushClassNameAndNodeQueue:function(){this.isMounted()&&this.classNameAndNodeQueue.forEach(function(e){i.addClass(e.node,e.className)}),this.classNameAndNodeQueue.length=0,this.timeout=null},componentWillMount:function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},componentWillUnmount:function(){this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)}),this.classNameAndNodeQueue.length=0},componentWillAppear:function(e){this.props.appear?this.transition("appear",e,this.props.appearTimeout):e()},componentWillEnter:function(e){this.props.enter?this.transition("enter",e,this.props.enterTimeout):e()},componentWillLeave:function(e){this.props.leave?this.transition("leave",e,this.props.leaveTimeout):e()},render:function(){return s(this.props.children)}});t.exports=c},{22:22,30:30,35:35,4:4,5:5}],8:[function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"$&/")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);m(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?c(u,o,n,v.thatReturnsArgument):null!=u&&(y.isValidElement(u)&&(u=y.cloneAndReplaceKey(u,i+(!u.key||t&&t.key===u.key?"":r(u.key)+"/")+n)),o.push(u))}function c(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var c=s.getPooled(t,a,o,i);m(e,u,c),s.release(c)}function p(e,t,n){if(null==e)return e;var r=[];return c(e,r,null,t,n),r}function l(e,t,n){return null}function f(e,t){return m(e,l,null)}function d(e){var t=[];return c(e,t,null,v.thatReturnsArgument),t}var h=e(3),y=e(14),v=e(37),m=e(33),g=h.twoArgumentPooler,E=h.fourArgumentPooler,b=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,g),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,E);var T={forEach:a,map:p,mapIntoWithKeyPrefixInternal:c,count:f,toArray:d};t.exports=T},{14:14,3:3,33:33,37:37}],9:[function(e,t,n){"use strict";function r(e){return e}function o(e,t){var n=E.hasOwnProperty(t)?E[t]:null;T.hasOwnProperty(t)&&("OVERRIDE_BASE"!==n?f("73",t):void 0),e&&("DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n?f("74",t):void 0)}function i(e,t){if(t){"function"==typeof t?f("75"):void 0,y.isValidElement(t)?f("76"):void 0;var n=e.prototype,r=n.__reactAutoBindPairs;t.hasOwnProperty(g)&&b.mixins(e,t.mixins);for(var i in t)if(t.hasOwnProperty(i)&&i!==g){var a=t[i],s=n.hasOwnProperty(i);if(o(s,i),b.hasOwnProperty(i))b[i](e,a);else{var p=E.hasOwnProperty(i),l="function"==typeof a,d=l&&!p&&!s&&t.autobind!==!1;if(d)r.push(i,a),n[i]=a;else if(s){var h=E[i];!p||"DEFINE_MANY_MERGED"!==h&&"DEFINE_MANY"!==h?f("77",h,i):void 0,"DEFINE_MANY_MERGED"===h?n[i]=u(n[i],a):"DEFINE_MANY"===h&&(n[i]=c(n[i],a))}else n[i]=a}}}}function a(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in b;o?f("78",n):void 0;var i=n in e;i?f("79",n):void 0,e[n]=r}}}function s(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:f("80");for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?f("81",n):void 0,e[n]=t[n]);return e}function u(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return s(o,n),s(o,r),o}}function c(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function p(e,t){var n=t.bind(e);return n}function l(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=p(e,o)}}var f=e(31),d=e(42),h=e(10),y=e(14),v=(e(18),e(17)),m=e(38),g=(e(39),e(41),"mixins"),E={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},b={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=d({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=d({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=u(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=d({},e.propTypes,t)},statics:function(e,t){a(e,t)},autobind:function(){}},T={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},_=function(){};d(_.prototype,h.prototype,T);var P={createClass:function(e){var t=r(function(e,n,r){this.__reactAutoBindPairs.length&&l(this),this.props=e,this.context=n,this.refs=m,this.updater=r||v,this.state=null;var o=this.getInitialState?this.getInitialState():null;"object"!=typeof o||Array.isArray(o)?f("82",t.displayName||"ReactCompositeComponent"):void 0,this.state=o});t.prototype=new _,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],i(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:f("83");for(var n in E)t.prototype[n]||(t.prototype[n]=null);return t}};t.exports=P},{10:10,14:14,17:17,18:18,31:31,38:38,39:39,41:41,42:42}],10:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var o=e(31),i=e(17),a=(e(27),e(38));e(39),e(41);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?o("85"):void 0,this.updater.enqueueSetState(this,e,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};t.exports=r},{17:17,27:27,31:31,38:38,39:39,41:41}],11:[function(e,t,n){"use strict";var r=e(32),o={shouldComponentUpdate:function(e,t){return r(this,e,t)}};t.exports=o},{32:32}],12:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],13:[function(e,t,n){"use strict";var r=e(14),o=r.createFactory,i={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};t.exports=i},{14:14}],14:[function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function o(e){return void 0!==e.key}var i=e(42),a=e(12),s=(e(41),e(27),Object.prototype.hasOwnProperty),u=e(15),c={key:!0,ref:!0,__self:!0,__source:!0},p=function(e,t,n,r,o,i,a){var s={$$typeof:u,type:e,key:t,ref:n,props:a,_owner:i};return s};p.createElement=function(e,t,n){var i,u={},l=null,f=null,d=null,h=null;if(null!=t){r(t)&&(f=t.ref),o(t)&&(l=""+t.key),d=void 0===t.__self?null:t.__self,h=void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!c.hasOwnProperty(i)&&(u[i]=t[i])}var y=arguments.length-2;if(1===y)u.children=n;else if(y>1){for(var v=Array(y),m=0;m<y;m++)v[m]=arguments[m+2];u.children=v}if(e&&e.defaultProps){var g=e.defaultProps;for(i in g)void 0===u[i]&&(u[i]=g[i])}return p(e,l,f,d,h,a.current,u)},p.createFactory=function(e){var t=p.createElement.bind(null,e);return t.type=e,t},p.cloneAndReplaceKey=function(e,t){var n=p(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},p.cloneElement=function(e,t,n){var u,l=i({},e.props),f=e.key,d=e.ref,h=e._self,y=e._source,v=e._owner;if(null!=t){r(t)&&(d=t.ref,v=a.current),o(t)&&(f=""+t.key);var m;e.type&&e.type.defaultProps&&(m=e.type.defaultProps);for(u in t)s.call(t,u)&&!c.hasOwnProperty(u)&&(void 0===t[u]&&void 0!==m?l[u]=m[u]:l[u]=t[u])}var g=arguments.length-2;if(1===g)l.children=n;else if(g>1){for(var E=Array(g),b=0;b<g;b++)E[b]=arguments[b+2];l.children=E}return p(e.type,f,d,h,y,v,l)},p.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},t.exports=p},{12:12,15:15,27:27,41:41,42:42}],15:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},{}],16:[function(e,t,n){"use strict";var r=e(31),o=e(8),i=e(14),a=e(37),s=(e(39),e(41),{create:function(e){if("object"!=typeof e||!e||Array.isArray(e))return e;if(i.isValidElement(e))return e;1===e.nodeType?r("0"):void 0;var t=[];for(var n in e)o.mapIntoWithKeyPrefixInternal(e[n],t,n,a.thatReturnsArgument);return t}});t.exports=s},{14:14,31:31,37:37,39:39,41:41,8:8}],17:[function(e,t,n){"use strict";function r(e,t){}var o=(e(41),{isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){r(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,o){r(e,"replaceState")},enqueueSetState:function(e,t,n,o){r(e,"setState")}});t.exports=o},{41:41}],18:[function(e,t,n){"use strict";var r={};t.exports=r},{}],19:[function(e,t,n){"use strict";function r(e){this.message=e,this.stack=""}var o,i=(e(31),e(14),e(18),e(37),e(29),e(39)),a=(e(41),function(){i(!1,"React.PropTypes type checking code is stripped in production.")});a.isRequired=a;var s=function(){return a};o={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s},r.prototype=Error.prototype,t.exports=o},{14:14,18:18,29:29,31:31,37:37,39:39,41:41}],20:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||s}function o(){}var i=e(42),a=e(10),s=e(17),u=e(38);o.prototype=a.prototype,r.prototype=new o,r.prototype.constructor=r,i(r.prototype,a.prototype),r.prototype.isPureReactComponent=!0,t.exports=r},{10:10,17:17,38:38,42:42}],21:[function(e,t,n){"use strict";var r=e(28),o={getChildMapping:function(e,t){return e?r(e):e},mergeChildMappings:function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var c=r[u][a];s[r[u][a]]=n(c)}s[u]=n(u)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}};t.exports=o},{28:28}],22:[function(e,t,n){"use strict";function r(){var e=s("animationend"),t=s("transitionend");e&&u.push(e),t&&u.push(t)}function o(e,t,n){e.addEventListener(t,n,!1)}function i(e,t,n){e.removeEventListener(t,n,!1)}var a=e(36),s=e(1),u=[];a.canUseDOM&&r();var c={addEndEventListener:function(e,t){return 0===u.length?void window.setTimeout(t,0):void u.forEach(function(n){o(e,n,t)})},removeEndEventListener:function(e,t){0!==u.length&&u.forEach(function(n){i(e,n,t)})}};t.exports=c},{1:1,36:36}],23:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e(42),s=e(4),u=e(21),c=e(37),p=function(e){function t(){var n,i,s;r(this,t);for(var c=arguments.length,p=Array(c),l=0;l<c;l++)p[l]=arguments[l];return n=i=o(this,e.call.apply(e,[this].concat(p))),i.state={children:u.getChildMapping(i.props.children)},i.performAppear=function(e){i.currentlyTransitioningKeys[e]=!0;var t=i.refs[e];t.componentWillAppear?t.componentWillAppear(i._handleDoneAppearing.bind(i,e)):i._handleDoneAppearing(e)},i._handleDoneAppearing=function(e){var t=i.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete i.currentlyTransitioningKeys[e];var n=u.getChildMapping(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e)},i.performEnter=function(e){i.currentlyTransitioningKeys[e]=!0;var t=i.refs[e];t.componentWillEnter?t.componentWillEnter(i._handleDoneEntering.bind(i,e)):i._handleDoneEntering(e)},i._handleDoneEntering=function(e){var t=i.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete i.currentlyTransitioningKeys[e];var n=u.getChildMapping(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e)},i.performLeave=function(e){i.currentlyTransitioningKeys[e]=!0;var t=i.refs[e];t.componentWillLeave?t.componentWillLeave(i._handleDoneLeaving.bind(i,e)):i._handleDoneLeaving(e)},i._handleDoneLeaving=function(e){var t=i.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete i.currentlyTransitioningKeys[e];var n=u.getChildMapping(i.props.children);n&&n.hasOwnProperty(e)?i.performEnter(e):i.setState(function(t){var n=a({},t.children);return delete n[e],{children:n}})},s=n,o(i,s)}return i(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t)},t.prototype.componentWillReceiveProps=function(e){var t=u.getChildMapping(e.children),n=this.state.children;this.setState({children:u.mergeChildMappings(n,t)});var r;for(r in t){var o=n&&n.hasOwnProperty(r);!t[r]||o||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in n){var i=t&&t.hasOwnProperty(r);!n[r]||i||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},t.prototype.componentDidUpdate=function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},t.prototype.render=function(){var e=[];for(var t in this.state.children){var n=this.state.children[t];n&&e.push(s.cloneElement(this.props.childFactory(n),{ref:t,key:t}))}var r=a({},this.props);return delete r.transitionLeave,delete r.transitionName,delete r.transitionAppear,delete r.transitionEnter,delete r.childFactory,delete r.transitionLeaveTimeout,delete r.transitionEnterTimeout,delete r.transitionAppearTimeout,delete r.component,s.createElement(this.props.component,r,e)},t}(s.Component);p.displayName="ReactTransitionGroup",p.propTypes={component:s.PropTypes.any,childFactory:s.PropTypes.func},p.defaultProps={component:"span",childFactory:c.thatReturnsArgument},t.exports=p},{21:21,37:37,4:4,42:42}],24:[function(e,t,n){"use strict";t.exports="16.0.0-alpha.0"},{}],25:[function(e,t,n){"use strict";var r=e(4),o=(e(5),e(11)),i=e(6),a=e(16),s=e(23),u=e(32),c=e(34);r.addons={CSSTransitionGroup:i,PureRenderMixin:o,TransitionGroup:s,createFragment:a.create,shallowCompare:u,update:c},t.exports=r},{11:11,16:16,23:23,32:32,34:34,4:4,5:5,6:6}],26:[function(e,t,n){"use strict";var r=e(42),o=e(25),i=r({__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:null,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:e(12)}},o);t.exports=i},{12:12,25:25,42:42}],27:[function(e,t,n){"use strict";var r=!1;t.exports=r},{}],28:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){if(e&&"object"==typeof e){var o=e,i=void 0===o[n];i&&null!=t&&(o[n]=t)}}function o(e,t){if(null==e)return e;var n={};return i(e,r,n),n}var i=(e(2),e(33));e(41);"undefined"!=typeof n&&n.env,t.exports=o}).call(this,void 0)},{2:2,33:33,41:41}],29:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=r},{}],30:[function(e,t,n){"use strict";function r(e){return i.isValidElement(e)?void 0:o("143"),e}var o=e(31),i=e(14);e(39);t.exports=r},{14:14,31:31,39:39}],31:[function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}t.exports=r},{}],32:[function(e,t,n){"use strict";function r(e,t,n){return!o(e.props,t)||!o(e.state,n)}var o=e(40);t.exports=r},{40:40}],33:[function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?p+r(e,0):t),1;var d,h,y=0,v=""===t?p:t+l;if(Array.isArray(e))for(var m=0;m<e.length;m++)d=e[m],h=v+r(d,m),y+=o(d,h,n,i);else{var g=u(e);if(g){var E,b=g.call(e);if(g!==e.entries)for(var T=0;!(E=b.next()).done;)d=E.value,h=v+r(d,T++),y+=o(d,h,n,i);else for(;!(E=b.next()).done;){var _=E.value;_&&(d=_[1],h=v+c.escape(_[0])+l+r(d,0),y+=o(d,h,n,i))}}else if("object"===f){var P="",A=String(e);a("31","[object Object]"===A?"object with keys {"+Object.keys(e).join(", ")+"}":A,P)}}return y}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=e(31),s=(e(12),e(15)),u=e(29),c=(e(39),e(2)),p=(e(41),"."),l=":";t.exports=i},{12:12,15:15,2:2,29:29,31:31,39:39,41:41}],34:[function(e,t,n){"use strict";function r(e){return Array.isArray(e)?e.concat():e&&"object"==typeof e?s(new e.constructor,e):e}function o(e,t,n){Array.isArray(e)?void 0:a("1",n,e);var r=t[n];Array.isArray(r)?void 0:a("2",n,r)}function i(e,t){if("object"!=typeof t?a("3",y.join(", "),f):void 0,u.call(t,f))return 1!==Object.keys(t).length?a("4",f):void 0,t[f];var n=r(e);if(u.call(t,d)){var m=t[d];m&&"object"==typeof m?void 0:a("5",d,m),n&&"object"==typeof n?void 0:a("6",d,n),s(n,t[d])}u.call(t,c)&&(o(e,t,c),t[c].forEach(function(e){n.push(e)})),u.call(t,p)&&(o(e,t,p),t[p].forEach(function(e){n.unshift(e)})),u.call(t,l)&&(Array.isArray(e)?void 0:a("7",l,e),Array.isArray(t[l])?void 0:a("8",l,t[l]),t[l].forEach(function(e){Array.isArray(e)?void 0:a("8",l,t[l]),n.splice.apply(n,e)})),u.call(t,h)&&("function"!=typeof t[h]?a("9",h,t[h]):void 0,n=t[h](n));for(var g in t)v.hasOwnProperty(g)&&v[g]||(n[g]=i(e[g],t[g]));return n}var a=e(31),s=e(42),u=(e(39),{}.hasOwnProperty),c="$push",p="$unshift",l="$splice",f="$set",d="$merge",h="$apply",y=[c,p,l,f,d,h],v={};y.forEach(function(e){v[e]=!0}),t.exports=i},{31:31,39:39,42:42}],35:[function(e,t,n){"use strict";function r(e,t){for(var n=e;n.parentNode;)n=n.parentNode;var r=n.querySelectorAll(t);return Array.prototype.indexOf.call(r,e)!==-1}var o=e(39),i={addClass:function(e,t){return/\s/.test(t)?o(!1):void 0,t&&(e.classList?e.classList.add(t):i.hasClass(e,t)||(e.className=e.className+" "+t)),e},removeClass:function(e,t){return/\s/.test(t)?o(!1):void 0,t&&(e.classList?e.classList.remove(t):i.hasClass(e,t)&&(e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,""))),e},conditionClass:function(e,t,n){return(n?i.addClass:i.removeClass)(e,t)},hasClass:function(e,t){return/\s/.test(t)?o(!1):void 0,e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1},matchesSelector:function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||function(t){return r(e,t)};return n.call(e,t)}};t.exports=i},{39:39}],36:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],37:[function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],38:[function(e,t,n){"use strict";var r={};t.exports=r},{}],39:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],p=0;u=new Error(t.replace(/%s/g,function(){return c[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}t.exports=r},{}],40:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;t.exports=o},{}],41:[function(e,t,n){"use strict";var r=e(37),o=r;t.exports=o},{37:37}],42:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(e,t){for(var n,o,s=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)i.call(n,c)&&(s[c]=n[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(n);for(var p=0;p<o.length;p++)a.call(n,o[p])&&(s[o[p]]=n[o[p]])}}return s}},{}]},{},[26])(26)});
|
|
12
|
+
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.React=e()}}(function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[a]={exports:{}};t[a][0].call(p.exports,function(e){var n=t[a][1][e];return o(n?n:e)},p,p.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var i=e(36),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};i.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=o},{36:36}],2:[function(e,t,n){"use strict";function r(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function o(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var i={escape:r,unescape:o};t.exports=i},{}],3:[function(e,t,n){"use strict";var r=e(31),o=(e(39),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},u=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,p=o,l=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||p,n.poolSize||(n.poolSize=c),n.release=u,n},f={addPoolingTo:l,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s};t.exports=f},{31:31,39:39}],4:[function(e,t,n){"use strict";var r=e(42),o=e(6),i=e(9),a=e(10),s=e(13),u=e(14),c=e(19),p=e(24),l=e(30),f=(e(41),u.createElement),d=u.createFactory,h=u.cloneElement,y=r,v=function(e){return e},m={Children:{map:i.map,forEach:i.forEach,count:i.count,toArray:i.toArray,only:l},Component:o.Component,PureComponent:o.PureComponent,createElement:f,cloneElement:h,isValidElement:u.isValidElement,PropTypes:c,createClass:a.createClass,createFactory:d,createMixin:v,DOM:s,version:p,__spread:y};t.exports=m},{10:10,13:13,14:14,19:19,24:24,30:30,41:41,42:42,6:6,9:9}],5:[function(e,t,n){"use strict";function r(){if(!o){var t=e(26);o=t.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}return o}var o;n.getReactDOM=r},{26:26}],6:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=c,this.updater=n||u}function o(e,t,n){this.props=e,this.context=t,this.refs=c,this.updater=n||u}function i(){}var a=e(31),s=e(42),u=e(17),c=(e(27),e(38));e(39),e(41);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?a("85"):void 0,this.updater.enqueueSetState(this,e,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,s(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,t.exports={Component:r,PureComponent:o}},{17:17,27:27,31:31,38:38,39:39,41:41,42:42}],7:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to ReactCSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}}}var s=e(42),u=e(4),c=e(23),p=e(8),l=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return n=i=o(this,e.call.apply(e,[this].concat(c))),i._wrapChild=function(e){return u.createElement(p,{name:i.props.transitionName,appear:i.props.transitionAppear,enter:i.props.transitionEnter,leave:i.props.transitionLeave,appearTimeout:i.props.transitionAppearTimeout,enterTimeout:i.props.transitionEnterTimeout,leaveTimeout:i.props.transitionLeaveTimeout},e)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){return u.createElement(c,s({},this.props,{childFactory:this._wrapChild}))},t}(u.Component);l.displayName="ReactCSSTransitionGroup",l.propTypes={transitionName:p.propTypes.name,transitionAppear:u.PropTypes.bool,transitionEnter:u.PropTypes.bool,transitionLeave:u.PropTypes.bool,transitionAppearTimeout:a("Appear"),transitionEnterTimeout:a("Enter"),transitionLeaveTimeout:a("Leave")},l.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.exports=l},{23:23,4:4,42:42,8:8}],8:[function(e,t,n){"use strict";var r=e(4),o=e(5),i=e(35),a=e(22),s=e(30),u=17,c=r.createClass({displayName:"ReactCSSTransitionGroupChild",propTypes:{name:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.shape({enter:r.PropTypes.string,leave:r.PropTypes.string,active:r.PropTypes.string}),r.PropTypes.shape({enter:r.PropTypes.string,enterActive:r.PropTypes.string,leave:r.PropTypes.string,leaveActive:r.PropTypes.string,appear:r.PropTypes.string,appearActive:r.PropTypes.string})]).isRequired,appear:r.PropTypes.bool,enter:r.PropTypes.bool,leave:r.PropTypes.bool,appearTimeout:r.PropTypes.number,enterTimeout:r.PropTypes.number,leaveTimeout:r.PropTypes.number},transition:function(e,t,n){var r=o.getReactDOM().findDOMNode(this);if(!r)return void(t&&t());var s=this.props.name[e]||this.props.name+"-"+e,u=this.props.name[e+"Active"]||s+"-active",c=null,p=function(e){e&&e.target!==r||(clearTimeout(c),i.removeClass(r,s),i.removeClass(r,u),a.removeEndEventListener(r,p),t&&t())};i.addClass(r,s),this.queueClassAndNode(u,r),n?(c=setTimeout(p,n),this.transitionTimeouts.push(c)):a.addEndEventListener(r,p)},queueClassAndNode:function(e,t){this.classNameAndNodeQueue.push({className:e,node:t}),this.timeout||(this.timeout=setTimeout(this.flushClassNameAndNodeQueue,u))},flushClassNameAndNodeQueue:function(){this.isMounted()&&this.classNameAndNodeQueue.forEach(function(e){i.addClass(e.node,e.className)}),this.classNameAndNodeQueue.length=0,this.timeout=null},componentWillMount:function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},componentWillUnmount:function(){this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)}),this.classNameAndNodeQueue.length=0},componentWillAppear:function(e){this.props.appear?this.transition("appear",e,this.props.appearTimeout):e()},componentWillEnter:function(e){this.props.enter?this.transition("enter",e,this.props.enterTimeout):e()},componentWillLeave:function(e){this.props.leave?this.transition("leave",e,this.props.leaveTimeout):e()},render:function(){return s(this.props.children)}});t.exports=c},{22:22,30:30,35:35,4:4,5:5}],9:[function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"$&/")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);m(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?c(u,o,n,v.thatReturnsArgument):null!=u&&(y.isValidElement(u)&&(u=y.cloneAndReplaceKey(u,i+(!u.key||t&&t.key===u.key?"":r(u.key)+"/")+n)),o.push(u))}function c(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var c=s.getPooled(t,a,o,i);m(e,u,c),s.release(c)}function p(e,t,n){if(null==e)return e;var r=[];return c(e,r,null,t,n),r}function l(e,t,n){return null}function f(e,t){return m(e,l,null)}function d(e){var t=[];return c(e,t,null,v.thatReturnsArgument),t}var h=e(3),y=e(14),v=e(37),m=e(33),E=h.twoArgumentPooler,g=h.fourArgumentPooler,b=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,E),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,g);var _={forEach:a,map:p,mapIntoWithKeyPrefixInternal:c,count:f,toArray:d};t.exports=_},{14:14,3:3,33:33,37:37}],10:[function(e,t,n){"use strict";function r(e){return e}function o(e,t){var n=b.hasOwnProperty(t)?b[t]:null;T.hasOwnProperty(t)&&("OVERRIDE_BASE"!==n?f("73",t):void 0),e&&("DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n?f("74",t):void 0)}function i(e,t){if(t){"function"==typeof t?f("75"):void 0,y.isValidElement(t)?f("76"):void 0;var n=e.prototype,r=n.__reactAutoBindPairs;t.hasOwnProperty(g)&&_.mixins(e,t.mixins);for(var i in t)if(t.hasOwnProperty(i)&&i!==g){var a=t[i],s=n.hasOwnProperty(i);if(o(s,i),_.hasOwnProperty(i))_[i](e,a);else{var p=b.hasOwnProperty(i),l="function"==typeof a,d=l&&!p&&!s&&t.autobind!==!1;if(d)r.push(i,a),n[i]=a;else if(s){var h=b[i];!p||"DEFINE_MANY_MERGED"!==h&&"DEFINE_MANY"!==h?f("77",h,i):void 0,"DEFINE_MANY_MERGED"===h?n[i]=u(n[i],a):"DEFINE_MANY"===h&&(n[i]=c(n[i],a))}else n[i]=a}}}}function a(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in _;o?f("78",n):void 0;var i=n in e;i?f("79",n):void 0,e[n]=r}}}function s(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:f("80");for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?f("81",n):void 0,e[n]=t[n]);return e}function u(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return s(o,n),s(o,r),o}}function c(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function p(e,t){var n=t.bind(e);return n}function l(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=p(e,o)}}var f=e(31),d=e(42),h=e(6),y=e(14),v=(e(18),e(17)),m=e(38),E=(e(39),e(41),h.Component),g="mixins",b={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},_={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=d({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=d({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=u(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=d({},e.propTypes,t)},statics:function(e,t){a(e,t)},autobind:function(){}},T={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},P=function(){};d(P.prototype,E.prototype,T);var A={createClass:function(e){var t=r(function(e,n,r){this.__reactAutoBindPairs.length&&l(this),this.props=e,this.context=n,this.refs=m,this.updater=r||v,this.state=null;var o=this.getInitialState?this.getInitialState():null;"object"!=typeof o||Array.isArray(o)?f("82",t.displayName||"ReactCompositeComponent"):void 0,this.state=o});t.prototype=new P,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],i(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:f("83");for(var n in b)t.prototype[n]||(t.prototype[n]=null);return t}};t.exports=A},{14:14,17:17,18:18,31:31,38:38,39:39,41:41,42:42,6:6}],11:[function(e,t,n){"use strict";var r=e(32),o={shouldComponentUpdate:function(e,t){return r(this,e,t)}};t.exports=o},{32:32}],12:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],13:[function(e,t,n){"use strict";var r=e(14),o=r.createFactory,i={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};t.exports=i},{14:14}],14:[function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function o(e){return void 0!==e.key}var i=e(42),a=e(12),s=(e(41),e(27),Object.prototype.hasOwnProperty),u=e(15),c={key:!0,ref:!0,__self:!0,__source:!0},p=function(e,t,n,r,o,i,a){var s={$$typeof:u,type:e,key:t,ref:n,props:a,_owner:i};return s};p.createElement=function(e,t,n){var i,u={},l=null,f=null,d=null,h=null;if(null!=t){r(t)&&(f=t.ref),o(t)&&(l=""+t.key),d=void 0===t.__self?null:t.__self,h=void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!c.hasOwnProperty(i)&&(u[i]=t[i])}var y=arguments.length-2;if(1===y)u.children=n;else if(y>1){for(var v=Array(y),m=0;m<y;m++)v[m]=arguments[m+2];u.children=v}if(e&&e.defaultProps){var E=e.defaultProps;for(i in E)void 0===u[i]&&(u[i]=E[i])}return p(e,l,f,d,h,a.current,u)},p.createFactory=function(e){var t=p.createElement.bind(null,e);return t.type=e,t},p.cloneAndReplaceKey=function(e,t){var n=p(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},p.cloneElement=function(e,t,n){var u,l=i({},e.props),f=e.key,d=e.ref,h=e._self,y=e._source,v=e._owner;if(null!=t){r(t)&&(d=t.ref,v=a.current),o(t)&&(f=""+t.key);var m;e.type&&e.type.defaultProps&&(m=e.type.defaultProps);for(u in t)s.call(t,u)&&!c.hasOwnProperty(u)&&(void 0===t[u]&&void 0!==m?l[u]=m[u]:l[u]=t[u])}var E=arguments.length-2;if(1===E)l.children=n;else if(E>1){for(var g=Array(E),b=0;b<E;b++)g[b]=arguments[b+2];l.children=g}return p(e.type,f,d,h,y,v,l)},p.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},t.exports=p},{12:12,15:15,27:27,41:41,42:42}],15:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},{}],16:[function(e,t,n){"use strict";var r=e(31),o=e(9),i=e(14),a=e(37),s=(e(39),e(41),{create:function(e){if("object"!=typeof e||!e||Array.isArray(e))return e;if(i.isValidElement(e))return e;1===e.nodeType?r("0"):void 0;var t=[];for(var n in e)o.mapIntoWithKeyPrefixInternal(e[n],t,n,a.thatReturnsArgument);return t}});t.exports=s},{14:14,31:31,37:37,39:39,41:41,9:9}],17:[function(e,t,n){"use strict";function r(e,t){}var o=(e(41),{isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){r(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,o){r(e,"replaceState")},enqueueSetState:function(e,t,n,o){r(e,"setState")}});t.exports=o},{41:41}],18:[function(e,t,n){"use strict";var r={};t.exports=r},{}],19:[function(e,t,n){"use strict";function r(e){this.message=e,this.stack=""}var o,i=(e(31),e(14),e(18),e(20),e(37),e(29),e(39)),a=(e(41),function(){i(!1,"React.PropTypes type checking code is stripped in production.")});a.isRequired=a;var s=function(){return a};o={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s},r.prototype=Error.prototype,t.exports=o},{14:14,18:18,20:20,29:29,31:31,37:37,39:39,41:41}],20:[function(e,t,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=r},{}],21:[function(e,t,n){"use strict";var r=e(28),o={getChildMapping:function(e,t){return e?r(e):e},mergeChildMappings:function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var c=r[u][a];s[r[u][a]]=n(c)}s[u]=n(u)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}};t.exports=o},{28:28}],22:[function(e,t,n){"use strict";function r(){var e=s("animationend"),t=s("transitionend");e&&u.push(e),t&&u.push(t)}function o(e,t,n){e.addEventListener(t,n,!1)}function i(e,t,n){e.removeEventListener(t,n,!1)}var a=e(36),s=e(1),u=[];a.canUseDOM&&r();var c={addEndEventListener:function(e,t){return 0===u.length?void window.setTimeout(t,0):void u.forEach(function(n){o(e,n,t)})},removeEndEventListener:function(e,t){0!==u.length&&u.forEach(function(n){i(e,n,t)})}};t.exports=c},{1:1,36:36}],23:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e(42),s=e(4),u=e(21),c=e(37),p=function(e){function t(){var n,i,s;r(this,t);for(var c=arguments.length,p=Array(c),l=0;l<c;l++)p[l]=arguments[l];return n=i=o(this,e.call.apply(e,[this].concat(p))),i.state={children:u.getChildMapping(i.props.children)},i.performAppear=function(e){i.currentlyTransitioningKeys[e]=!0;var t=i.refs[e];t.componentWillAppear?t.componentWillAppear(i._handleDoneAppearing.bind(i,e)):i._handleDoneAppearing(e)},i._handleDoneAppearing=function(e){var t=i.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete i.currentlyTransitioningKeys[e];var n=u.getChildMapping(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e)},i.performEnter=function(e){i.currentlyTransitioningKeys[e]=!0;var t=i.refs[e];t.componentWillEnter?t.componentWillEnter(i._handleDoneEntering.bind(i,e)):i._handleDoneEntering(e)},i._handleDoneEntering=function(e){var t=i.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete i.currentlyTransitioningKeys[e];var n=u.getChildMapping(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e)},i.performLeave=function(e){i.currentlyTransitioningKeys[e]=!0;var t=i.refs[e];t.componentWillLeave?t.componentWillLeave(i._handleDoneLeaving.bind(i,e)):i._handleDoneLeaving(e)},i._handleDoneLeaving=function(e){var t=i.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete i.currentlyTransitioningKeys[e];var n=u.getChildMapping(i.props.children);n&&n.hasOwnProperty(e)?i.performEnter(e):i.setState(function(t){var n=a({},t.children);return delete n[e],{children:n}})},s=n,o(i,s)}return i(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t)},t.prototype.componentWillReceiveProps=function(e){var t=u.getChildMapping(e.children),n=this.state.children;this.setState({children:u.mergeChildMappings(n,t)});var r;for(r in t){var o=n&&n.hasOwnProperty(r);!t[r]||o||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in n){var i=t&&t.hasOwnProperty(r);!n[r]||i||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},t.prototype.componentDidUpdate=function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},t.prototype.render=function(){var e=[];for(var t in this.state.children){var n=this.state.children[t];n&&e.push(s.cloneElement(this.props.childFactory(n),{ref:t,key:t}))}var r=a({},this.props);return delete r.transitionLeave,delete r.transitionName,delete r.transitionAppear,delete r.transitionEnter,delete r.childFactory,delete r.transitionLeaveTimeout,delete r.transitionEnterTimeout,delete r.transitionAppearTimeout,delete r.component,s.createElement(this.props.component,r,e)},t}(s.Component);p.displayName="ReactTransitionGroup",p.propTypes={component:s.PropTypes.any,childFactory:s.PropTypes.func},p.defaultProps={component:"span",childFactory:c.thatReturnsArgument},t.exports=p},{21:21,37:37,4:4,42:42}],24:[function(e,t,n){"use strict";t.exports="16.0.0-alpha.2"},{}],25:[function(e,t,n){"use strict";var r=e(4),o=(e(5),e(11)),i=e(7),a=e(16),s=e(23),u=e(32),c=e(34);r.addons={CSSTransitionGroup:i,PureRenderMixin:o,TransitionGroup:s,createFragment:a.create,shallowCompare:u,update:c},t.exports=r},{11:11,16:16,23:23,32:32,34:34,4:4,5:5,7:7}],26:[function(e,t,n){"use strict";var r=e(42),o=e(25),i=r({__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:null,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:e(12)}},o);t.exports=i},{12:12,25:25,42:42}],27:[function(e,t,n){"use strict";var r=!1;t.exports=r},{}],28:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){if(e&&"object"==typeof e){var o=e,i=void 0===o[n];i&&null!=t&&(o[n]=t)}}function o(e,t){if(null==e)return e;var n={};return i(e,r,n),n}var i=(e(2),e(33));e(41);"undefined"!=typeof n&&n.env,t.exports=o}).call(this,void 0)},{2:2,33:33,41:41}],29:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=r},{}],30:[function(e,t,n){"use strict";function r(e){return i.isValidElement(e)?void 0:o("143"),e}var o=e(31),i=e(14);e(39);t.exports=r},{14:14,31:31,39:39}],31:[function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}t.exports=r},{}],32:[function(e,t,n){"use strict";function r(e,t,n){return!o(e.props,t)||!o(e.state,n)}var o=e(40);t.exports=r},{40:40}],33:[function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===s)return n(i,e,""===t?p+r(e,0):t),1;var f,d,h=0,y=""===t?p:t+l;if(Array.isArray(e))for(var v=0;v<e.length;v++)f=e[v],d=y+r(f,v),h+=o(f,d,n,i);else{var m=u(e);if(m)for(var E,g=m.call(e),b=0;!(E=g.next()).done;)f=E.value,d=y+r(f,b++),h+=o(f,d,n,i);else if("object"===c){var _="",T=String(e);a("31","[object Object]"===T?"object with keys {"+Object.keys(e).join(", ")+"}":T,_)}}return h}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=e(31),s=(e(12),e(15)),u=e(29),c=(e(39),e(2)),p=(e(41),"."),l=":";t.exports=i},{12:12,15:15,2:2,29:29,31:31,39:39,41:41}],34:[function(e,t,n){"use strict";function r(e){return Array.isArray(e)?e.concat():e&&"object"==typeof e?s(new e.constructor,e):e}function o(e,t,n){Array.isArray(e)?void 0:a("1",n,e);var r=t[n];Array.isArray(r)?void 0:a("2",n,r)}function i(e,t){if("object"!=typeof t?a("3",y.join(", "),f):void 0,u.call(t,f))return 1!==Object.keys(t).length?a("4",f):void 0,t[f];var n=r(e);if(u.call(t,d)){var m=t[d];m&&"object"==typeof m?void 0:a("5",d,m),n&&"object"==typeof n?void 0:a("6",d,n),s(n,t[d])}u.call(t,c)&&(o(e,t,c),t[c].forEach(function(e){n.push(e)})),u.call(t,p)&&(o(e,t,p),t[p].forEach(function(e){n.unshift(e)})),u.call(t,l)&&(Array.isArray(e)?void 0:a("7",l,e),Array.isArray(t[l])?void 0:a("8",l,t[l]),t[l].forEach(function(e){Array.isArray(e)?void 0:a("8",l,t[l]),n.splice.apply(n,e)})),u.call(t,h)&&("function"!=typeof t[h]?a("9",h,t[h]):void 0,n=t[h](n));for(var E in t)v.hasOwnProperty(E)&&v[E]||(n[E]=i(e[E],t[E]));return n}var a=e(31),s=e(42),u=(e(39),{}.hasOwnProperty),c="$push",p="$unshift",l="$splice",f="$set",d="$merge",h="$apply",y=[c,p,l,f,d,h],v={};y.forEach(function(e){v[e]=!0}),t.exports=i},{31:31,39:39,42:42}],35:[function(e,t,n){"use strict";function r(e,t){for(var n=e;n.parentNode;)n=n.parentNode;var r=n.querySelectorAll(t);return Array.prototype.indexOf.call(r,e)!==-1}var o=e(39),i={addClass:function(e,t){return/\s/.test(t)?o(!1):void 0,t&&(e.classList?e.classList.add(t):i.hasClass(e,t)||(e.className=e.className+" "+t)),e},removeClass:function(e,t){return/\s/.test(t)?o(!1):void 0,t&&(e.classList?e.classList.remove(t):i.hasClass(e,t)&&(e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,""))),e},conditionClass:function(e,t,n){return(n?i.addClass:i.removeClass)(e,t)},hasClass:function(e,t){return/\s/.test(t)?o(!1):void 0,e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1},matchesSelector:function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||function(t){return r(e,t)};return n.call(e,t)}};t.exports=i},{39:39}],36:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],37:[function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],38:[function(e,t,n){"use strict";var r={};t.exports=r},{}],39:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[n,r,i,a,s,u],l=0;c=new Error(t.replace(/%s/g,function(){return p[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};t.exports=r},{}],40:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;t.exports=o},{}],41:[function(e,t,n){"use strict";var r=e(37),o=r;t.exports=o},{37:37}],42:[function(e,t,n){/*
|
|
13
|
+
object-assign
|
|
14
|
+
(c) Sindre Sorhus
|
|
15
|
+
@license MIT
|
|
16
|
+
*/
|
|
17
|
+
"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(e,t){for(var n,o,u=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var p in n)a.call(n,p)&&(u[p]=n[p]);if(i){o=i(n);for(var l=0;l<o.length;l++)s.call(n,o[l])&&(u[o[l]]=n[o[l]])}}return u}},{}]},{},[26])(26)});
|
package/dist/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React v16.0.0-alpha.
|
|
2
|
+
* React v16.0.0-alpha.2
|
|
3
3
|
*/
|
|
4
4
|
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.React = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
|
5
5
|
/**
|
|
@@ -187,10 +187,9 @@ module.exports = PooledClass;
|
|
|
187
187
|
|
|
188
188
|
var _assign = _dereq_(31);
|
|
189
189
|
|
|
190
|
-
var
|
|
191
|
-
var
|
|
192
|
-
var
|
|
193
|
-
var ReactClass = _dereq_(5);
|
|
190
|
+
var ReactBaseClasses = _dereq_(4);
|
|
191
|
+
var ReactChildren = _dereq_(5);
|
|
192
|
+
var ReactClass = _dereq_(6);
|
|
194
193
|
var ReactDOMFactories = _dereq_(9);
|
|
195
194
|
var ReactElement = _dereq_(10);
|
|
196
195
|
var ReactPropTypes = _dereq_(15);
|
|
@@ -243,8 +242,8 @@ var React = {
|
|
|
243
242
|
only: onlyChild
|
|
244
243
|
},
|
|
245
244
|
|
|
246
|
-
Component:
|
|
247
|
-
PureComponent:
|
|
245
|
+
Component: ReactBaseClasses.Component,
|
|
246
|
+
PureComponent: ReactBaseClasses.PureComponent,
|
|
248
247
|
|
|
249
248
|
createElement: createElement,
|
|
250
249
|
cloneElement: cloneElement,
|
|
@@ -268,7 +267,144 @@ var React = {
|
|
|
268
267
|
};
|
|
269
268
|
|
|
270
269
|
module.exports = React;
|
|
271
|
-
},{"10":10,"12":12,"15":15,"
|
|
270
|
+
},{"10":10,"12":12,"15":15,"19":19,"24":24,"30":30,"31":31,"4":4,"5":5,"6":6,"9":9}],4:[function(_dereq_,module,exports){
|
|
271
|
+
/**
|
|
272
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
273
|
+
* All rights reserved.
|
|
274
|
+
*
|
|
275
|
+
* This source code is licensed under the BSD-style license found in the
|
|
276
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
277
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
278
|
+
*
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
'use strict';
|
|
282
|
+
|
|
283
|
+
var _prodInvariant = _dereq_(25),
|
|
284
|
+
_assign = _dereq_(31);
|
|
285
|
+
|
|
286
|
+
var ReactNoopUpdateQueue = _dereq_(13);
|
|
287
|
+
|
|
288
|
+
var canDefineProperty = _dereq_(20);
|
|
289
|
+
var emptyObject = _dereq_(28);
|
|
290
|
+
var invariant = _dereq_(29);
|
|
291
|
+
var warning = _dereq_(30);
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Base class helpers for the updating state of a component.
|
|
295
|
+
*/
|
|
296
|
+
function ReactComponent(props, context, updater) {
|
|
297
|
+
this.props = props;
|
|
298
|
+
this.context = context;
|
|
299
|
+
this.refs = emptyObject;
|
|
300
|
+
// We initialize the default updater but the real one gets injected by the
|
|
301
|
+
// renderer.
|
|
302
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
ReactComponent.prototype.isReactComponent = {};
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Sets a subset of the state. Always use this to mutate
|
|
309
|
+
* state. You should treat `this.state` as immutable.
|
|
310
|
+
*
|
|
311
|
+
* There is no guarantee that `this.state` will be immediately updated, so
|
|
312
|
+
* accessing `this.state` after calling this method may return the old value.
|
|
313
|
+
*
|
|
314
|
+
* There is no guarantee that calls to `setState` will run synchronously,
|
|
315
|
+
* as they may eventually be batched together. You can provide an optional
|
|
316
|
+
* callback that will be executed when the call to setState is actually
|
|
317
|
+
* completed.
|
|
318
|
+
*
|
|
319
|
+
* When a function is provided to setState, it will be called at some point in
|
|
320
|
+
* the future (not synchronously). It will be called with the up to date
|
|
321
|
+
* component arguments (state, props, context). These values can be different
|
|
322
|
+
* from this.* because your function may be called after receiveProps but before
|
|
323
|
+
* shouldComponentUpdate, and this new state, props, and context will not yet be
|
|
324
|
+
* assigned to this.
|
|
325
|
+
*
|
|
326
|
+
* @param {object|function} partialState Next partial state or function to
|
|
327
|
+
* produce next partial state to be merged with current state.
|
|
328
|
+
* @param {?function} callback Called after state is updated.
|
|
329
|
+
* @final
|
|
330
|
+
* @protected
|
|
331
|
+
*/
|
|
332
|
+
ReactComponent.prototype.setState = function (partialState, callback) {
|
|
333
|
+
!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? "development" !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;
|
|
334
|
+
this.updater.enqueueSetState(this, partialState, callback, 'setState');
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Forces an update. This should only be invoked when it is known with
|
|
339
|
+
* certainty that we are **not** in a DOM transaction.
|
|
340
|
+
*
|
|
341
|
+
* You may want to call this when you know that some deeper aspect of the
|
|
342
|
+
* component's state has changed but `setState` was not called.
|
|
343
|
+
*
|
|
344
|
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
345
|
+
* `componentWillUpdate` and `componentDidUpdate`.
|
|
346
|
+
*
|
|
347
|
+
* @param {?function} callback Called after update is complete.
|
|
348
|
+
* @final
|
|
349
|
+
* @protected
|
|
350
|
+
*/
|
|
351
|
+
ReactComponent.prototype.forceUpdate = function (callback) {
|
|
352
|
+
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Deprecated APIs. These APIs used to exist on classic React classes but since
|
|
357
|
+
* we would like to deprecate them, we're not going to move them over to this
|
|
358
|
+
* modern base class. Instead, we define a getter that warns if it's accessed.
|
|
359
|
+
*/
|
|
360
|
+
if ("development" !== 'production') {
|
|
361
|
+
var deprecatedAPIs = {
|
|
362
|
+
isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
|
|
363
|
+
replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
|
|
364
|
+
};
|
|
365
|
+
var defineDeprecationWarning = function (methodName, info) {
|
|
366
|
+
if (canDefineProperty) {
|
|
367
|
+
Object.defineProperty(ReactComponent.prototype, methodName, {
|
|
368
|
+
get: function () {
|
|
369
|
+
"development" !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;
|
|
370
|
+
return undefined;
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
for (var fnName in deprecatedAPIs) {
|
|
376
|
+
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
377
|
+
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Base class helpers for the updating state of a component.
|
|
384
|
+
*/
|
|
385
|
+
function ReactPureComponent(props, context, updater) {
|
|
386
|
+
// Duplicated from ReactComponent.
|
|
387
|
+
this.props = props;
|
|
388
|
+
this.context = context;
|
|
389
|
+
this.refs = emptyObject;
|
|
390
|
+
// We initialize the default updater but the real one gets injected by the
|
|
391
|
+
// renderer.
|
|
392
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
function ComponentDummy() {}
|
|
396
|
+
ComponentDummy.prototype = ReactComponent.prototype;
|
|
397
|
+
ReactPureComponent.prototype = new ComponentDummy();
|
|
398
|
+
ReactPureComponent.prototype.constructor = ReactPureComponent;
|
|
399
|
+
// Avoid an extra prototype jump for these methods.
|
|
400
|
+
_assign(ReactPureComponent.prototype, ReactComponent.prototype);
|
|
401
|
+
ReactPureComponent.prototype.isPureReactComponent = true;
|
|
402
|
+
|
|
403
|
+
module.exports = {
|
|
404
|
+
Component: ReactComponent,
|
|
405
|
+
PureComponent: ReactPureComponent
|
|
406
|
+
};
|
|
407
|
+
},{"13":13,"20":20,"25":25,"28":28,"29":29,"30":30,"31":31}],5:[function(_dereq_,module,exports){
|
|
272
408
|
/**
|
|
273
409
|
* Copyright 2013-present, Facebook, Inc.
|
|
274
410
|
* All rights reserved.
|
|
@@ -459,7 +595,7 @@ var ReactChildren = {
|
|
|
459
595
|
};
|
|
460
596
|
|
|
461
597
|
module.exports = ReactChildren;
|
|
462
|
-
},{"10":10,"2":2,"26":26,"27":27}],
|
|
598
|
+
},{"10":10,"2":2,"26":26,"27":27}],6:[function(_dereq_,module,exports){
|
|
463
599
|
/**
|
|
464
600
|
* Copyright 2013-present, Facebook, Inc.
|
|
465
601
|
* All rights reserved.
|
|
@@ -475,7 +611,7 @@ module.exports = ReactChildren;
|
|
|
475
611
|
var _prodInvariant = _dereq_(25),
|
|
476
612
|
_assign = _dereq_(31);
|
|
477
613
|
|
|
478
|
-
var
|
|
614
|
+
var ReactBaseClasses = _dereq_(4);
|
|
479
615
|
var ReactElement = _dereq_(10);
|
|
480
616
|
var ReactPropTypeLocationNames = _dereq_(14);
|
|
481
617
|
var ReactNoopUpdateQueue = _dereq_(13);
|
|
@@ -484,6 +620,8 @@ var emptyObject = _dereq_(28);
|
|
|
484
620
|
var invariant = _dereq_(29);
|
|
485
621
|
var warning = _dereq_(30);
|
|
486
622
|
|
|
623
|
+
var ReactComponent = ReactBaseClasses.Component;
|
|
624
|
+
|
|
487
625
|
var MIXINS_KEY = 'mixins';
|
|
488
626
|
|
|
489
627
|
// Helper function to allow the creation of anonymous functions which do not
|
|
@@ -611,7 +749,6 @@ var ReactClassInterface = {
|
|
|
611
749
|
* }
|
|
612
750
|
*
|
|
613
751
|
* @return {ReactComponent}
|
|
614
|
-
* @nosideeffects
|
|
615
752
|
* @required
|
|
616
753
|
*/
|
|
617
754
|
render: 'DEFINE_ONCE',
|
|
@@ -1007,9 +1144,9 @@ function bindAutoBindMethod(component, method) {
|
|
|
1007
1144
|
// ignore the value of "this" that the user is trying to use, so
|
|
1008
1145
|
// let's warn.
|
|
1009
1146
|
if (newThis !== component && newThis !== null) {
|
|
1010
|
-
"development" !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance
|
|
1147
|
+
"development" !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance.\n\nSee %s', componentName) : void 0;
|
|
1011
1148
|
} else if (!args.length) {
|
|
1012
|
-
"development" !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call
|
|
1149
|
+
"development" !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call.\n\nSee %s', componentName) : void 0;
|
|
1013
1150
|
return boundMethod;
|
|
1014
1151
|
}
|
|
1015
1152
|
var reboundMethod = _bind.apply(boundMethod, arguments);
|
|
@@ -1163,119 +1300,7 @@ var ReactClass = {
|
|
|
1163
1300
|
};
|
|
1164
1301
|
|
|
1165
1302
|
module.exports = ReactClass;
|
|
1166
|
-
},{"10":10,"13":13,"14":14,"25":25,"28":28,"29":29,"30":30,"31":31,"
|
|
1167
|
-
/**
|
|
1168
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
1169
|
-
* All rights reserved.
|
|
1170
|
-
*
|
|
1171
|
-
* This source code is licensed under the BSD-style license found in the
|
|
1172
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
1173
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
1174
|
-
*
|
|
1175
|
-
*/
|
|
1176
|
-
|
|
1177
|
-
'use strict';
|
|
1178
|
-
|
|
1179
|
-
var _prodInvariant = _dereq_(25);
|
|
1180
|
-
|
|
1181
|
-
var ReactNoopUpdateQueue = _dereq_(13);
|
|
1182
|
-
|
|
1183
|
-
var canDefineProperty = _dereq_(20);
|
|
1184
|
-
var emptyObject = _dereq_(28);
|
|
1185
|
-
var invariant = _dereq_(29);
|
|
1186
|
-
var warning = _dereq_(30);
|
|
1187
|
-
|
|
1188
|
-
/**
|
|
1189
|
-
* Base class helpers for the updating state of a component.
|
|
1190
|
-
*/
|
|
1191
|
-
function ReactComponent(props, context, updater) {
|
|
1192
|
-
this.props = props;
|
|
1193
|
-
this.context = context;
|
|
1194
|
-
this.refs = emptyObject;
|
|
1195
|
-
// We initialize the default updater but the real one gets injected by the
|
|
1196
|
-
// renderer.
|
|
1197
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
ReactComponent.prototype.isReactComponent = {};
|
|
1201
|
-
|
|
1202
|
-
/**
|
|
1203
|
-
* Sets a subset of the state. Always use this to mutate
|
|
1204
|
-
* state. You should treat `this.state` as immutable.
|
|
1205
|
-
*
|
|
1206
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
1207
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
1208
|
-
*
|
|
1209
|
-
* There is no guarantee that calls to `setState` will run synchronously,
|
|
1210
|
-
* as they may eventually be batched together. You can provide an optional
|
|
1211
|
-
* callback that will be executed when the call to setState is actually
|
|
1212
|
-
* completed.
|
|
1213
|
-
*
|
|
1214
|
-
* When a function is provided to setState, it will be called at some point in
|
|
1215
|
-
* the future (not synchronously). It will be called with the up to date
|
|
1216
|
-
* component arguments (state, props, context). These values can be different
|
|
1217
|
-
* from this.* because your function may be called after receiveProps but before
|
|
1218
|
-
* shouldComponentUpdate, and this new state, props, and context will not yet be
|
|
1219
|
-
* assigned to this.
|
|
1220
|
-
*
|
|
1221
|
-
* @param {object|function} partialState Next partial state or function to
|
|
1222
|
-
* produce next partial state to be merged with current state.
|
|
1223
|
-
* @param {?function} callback Called after state is updated.
|
|
1224
|
-
* @final
|
|
1225
|
-
* @protected
|
|
1226
|
-
*/
|
|
1227
|
-
ReactComponent.prototype.setState = function (partialState, callback) {
|
|
1228
|
-
!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? "development" !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;
|
|
1229
|
-
this.updater.enqueueSetState(this, partialState, callback, 'setState');
|
|
1230
|
-
};
|
|
1231
|
-
|
|
1232
|
-
/**
|
|
1233
|
-
* Forces an update. This should only be invoked when it is known with
|
|
1234
|
-
* certainty that we are **not** in a DOM transaction.
|
|
1235
|
-
*
|
|
1236
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
1237
|
-
* component's state has changed but `setState` was not called.
|
|
1238
|
-
*
|
|
1239
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
1240
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
1241
|
-
*
|
|
1242
|
-
* @param {?function} callback Called after update is complete.
|
|
1243
|
-
* @final
|
|
1244
|
-
* @protected
|
|
1245
|
-
*/
|
|
1246
|
-
ReactComponent.prototype.forceUpdate = function (callback) {
|
|
1247
|
-
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
|
|
1248
|
-
};
|
|
1249
|
-
|
|
1250
|
-
/**
|
|
1251
|
-
* Deprecated APIs. These APIs used to exist on classic React classes but since
|
|
1252
|
-
* we would like to deprecate them, we're not going to move them over to this
|
|
1253
|
-
* modern base class. Instead, we define a getter that warns if it's accessed.
|
|
1254
|
-
*/
|
|
1255
|
-
if ("development" !== 'production') {
|
|
1256
|
-
var deprecatedAPIs = {
|
|
1257
|
-
isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
|
|
1258
|
-
replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
|
|
1259
|
-
};
|
|
1260
|
-
var defineDeprecationWarning = function (methodName, info) {
|
|
1261
|
-
if (canDefineProperty) {
|
|
1262
|
-
Object.defineProperty(ReactComponent.prototype, methodName, {
|
|
1263
|
-
get: function () {
|
|
1264
|
-
"development" !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;
|
|
1265
|
-
return undefined;
|
|
1266
|
-
}
|
|
1267
|
-
});
|
|
1268
|
-
}
|
|
1269
|
-
};
|
|
1270
|
-
for (var fnName in deprecatedAPIs) {
|
|
1271
|
-
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
1272
|
-
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
module.exports = ReactComponent;
|
|
1278
|
-
},{"13":13,"20":20,"25":25,"28":28,"29":29,"30":30}],7:[function(_dereq_,module,exports){
|
|
1303
|
+
},{"10":10,"13":13,"14":14,"25":25,"28":28,"29":29,"30":30,"31":31,"4":4}],7:[function(_dereq_,module,exports){
|
|
1279
1304
|
/**
|
|
1280
1305
|
* Copyright 2016-present, Facebook, Inc.
|
|
1281
1306
|
* All rights reserved.
|
|
@@ -2254,7 +2279,7 @@ function getDeclarationErrorAddendum() {
|
|
|
2254
2279
|
if (ReactCurrentOwner.current) {
|
|
2255
2280
|
var name = getComponentName(ReactCurrentOwner.current);
|
|
2256
2281
|
if (name) {
|
|
2257
|
-
return '
|
|
2282
|
+
return '\n\nCheck the render method of `' + name + '`.';
|
|
2258
2283
|
}
|
|
2259
2284
|
}
|
|
2260
2285
|
return '';
|
|
@@ -2265,7 +2290,7 @@ function getSourceInfoErrorAddendum(elementProps) {
|
|
|
2265
2290
|
var source = elementProps.__source;
|
|
2266
2291
|
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
|
2267
2292
|
var lineNumber = source.lineNumber;
|
|
2268
|
-
return '
|
|
2293
|
+
return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
|
|
2269
2294
|
}
|
|
2270
2295
|
return '';
|
|
2271
2296
|
}
|
|
@@ -2283,7 +2308,7 @@ function getCurrentComponentErrorInfo(parentType) {
|
|
|
2283
2308
|
if (!info) {
|
|
2284
2309
|
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
|
|
2285
2310
|
if (parentName) {
|
|
2286
|
-
info = '
|
|
2311
|
+
info = '\n\nCheck the top-level render call using <' + parentName + '>.';
|
|
2287
2312
|
}
|
|
2288
2313
|
}
|
|
2289
2314
|
return info;
|
|
@@ -2391,7 +2416,7 @@ function validatePropTypes(element) {
|
|
|
2391
2416
|
var ReactElementValidator = {
|
|
2392
2417
|
|
|
2393
2418
|
createElement: function (type, props, children) {
|
|
2394
|
-
var validType = typeof type === 'string' || typeof type === 'function'
|
|
2419
|
+
var validType = typeof type === 'string' || typeof type === 'function';
|
|
2395
2420
|
// We warn in this case but don't throw. We expect the element creation to
|
|
2396
2421
|
// succeed and there will likely be errors in render.
|
|
2397
2422
|
if (!validType) {
|
|
@@ -2491,7 +2516,7 @@ var warning = _dereq_(30);
|
|
|
2491
2516
|
function warnNoop(publicInstance, callerName) {
|
|
2492
2517
|
if ("development" !== 'production') {
|
|
2493
2518
|
var constructor = publicInstance.constructor;
|
|
2494
|
-
"development" !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op
|
|
2519
|
+
"development" !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op.\n\nPlease check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
|
|
2495
2520
|
}
|
|
2496
2521
|
}
|
|
2497
2522
|
|
|
@@ -2607,6 +2632,7 @@ var _prodInvariant = _dereq_(25);
|
|
|
2607
2632
|
|
|
2608
2633
|
var ReactElement = _dereq_(10);
|
|
2609
2634
|
var ReactPropTypeLocationNames = _dereq_(14);
|
|
2635
|
+
var ReactPropTypesSecret = _dereq_(16);
|
|
2610
2636
|
|
|
2611
2637
|
var emptyFunction = _dereq_(27);
|
|
2612
2638
|
var getIteratorFn = _dereq_(23);
|
|
@@ -2748,9 +2774,21 @@ function PropTypeError(message) {
|
|
|
2748
2774
|
PropTypeError.prototype = Error.prototype;
|
|
2749
2775
|
|
|
2750
2776
|
function createChainableTypeChecker(validate) {
|
|
2751
|
-
|
|
2777
|
+
if ("development" !== 'production') {
|
|
2778
|
+
var manualPropTypeCallCache = {};
|
|
2779
|
+
}
|
|
2780
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
2752
2781
|
componentName = componentName || ANONYMOUS;
|
|
2753
2782
|
propFullName = propFullName || propName;
|
|
2783
|
+
if ("development" !== 'production') {
|
|
2784
|
+
if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') {
|
|
2785
|
+
var cacheKey = componentName + ':' + propName;
|
|
2786
|
+
if (!manualPropTypeCallCache[cacheKey]) {
|
|
2787
|
+
"development" !== 'production' ? warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will not work in production with the next major version. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.', propFullName, componentName) : void 0;
|
|
2788
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2754
2792
|
if (props[propName] == null) {
|
|
2755
2793
|
var locationName = ReactPropTypeLocationNames[location];
|
|
2756
2794
|
if (isRequired) {
|
|
@@ -2772,7 +2810,7 @@ function createChainableTypeChecker(validate) {
|
|
|
2772
2810
|
}
|
|
2773
2811
|
|
|
2774
2812
|
function createPrimitiveTypeChecker(expectedType) {
|
|
2775
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2813
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
2776
2814
|
var propValue = props[propName];
|
|
2777
2815
|
var propType = getPropType(propValue);
|
|
2778
2816
|
if (propType !== expectedType) {
|
|
@@ -2805,7 +2843,7 @@ function createArrayOfTypeChecker(typeChecker) {
|
|
|
2805
2843
|
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
2806
2844
|
}
|
|
2807
2845
|
for (var i = 0; i < propValue.length; i++) {
|
|
2808
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']');
|
|
2846
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
2809
2847
|
if (error instanceof Error) {
|
|
2810
2848
|
return error;
|
|
2811
2849
|
}
|
|
@@ -2875,7 +2913,7 @@ function createObjectOfTypeChecker(typeChecker) {
|
|
|
2875
2913
|
}
|
|
2876
2914
|
for (var key in propValue) {
|
|
2877
2915
|
if (propValue.hasOwnProperty(key)) {
|
|
2878
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key);
|
|
2916
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
2879
2917
|
if (error instanceof Error) {
|
|
2880
2918
|
return error;
|
|
2881
2919
|
}
|
|
@@ -2895,7 +2933,7 @@ function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
|
2895
2933
|
function validate(props, propName, componentName, location, propFullName) {
|
|
2896
2934
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
2897
2935
|
var checker = arrayOfTypeCheckers[i];
|
|
2898
|
-
if (checker(props, propName, componentName, location, propFullName) == null) {
|
|
2936
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
|
2899
2937
|
return null;
|
|
2900
2938
|
}
|
|
2901
2939
|
}
|
|
@@ -2930,7 +2968,7 @@ function createShapeTypeChecker(shapeTypes) {
|
|
|
2930
2968
|
if (!checker) {
|
|
2931
2969
|
continue;
|
|
2932
2970
|
}
|
|
2933
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key);
|
|
2971
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
2934
2972
|
if (error) {
|
|
2935
2973
|
return error;
|
|
2936
2974
|
}
|
|
@@ -3047,7 +3085,7 @@ function getClassName(propValue) {
|
|
|
3047
3085
|
}
|
|
3048
3086
|
|
|
3049
3087
|
module.exports = ReactPropTypes;
|
|
3050
|
-
},{"10":10,"14":14,"23":23,"25":25,"27":27,"29":29,"30":30}],16:[function(_dereq_,module,exports){
|
|
3088
|
+
},{"10":10,"14":14,"16":16,"23":23,"25":25,"27":27,"29":29,"30":30}],16:[function(_dereq_,module,exports){
|
|
3051
3089
|
/**
|
|
3052
3090
|
* Copyright 2013-present, Facebook, Inc.
|
|
3053
3091
|
* All rights reserved.
|
|
@@ -3056,40 +3094,15 @@ module.exports = ReactPropTypes;
|
|
|
3056
3094
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
3057
3095
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
3058
3096
|
*
|
|
3097
|
+
*
|
|
3059
3098
|
*/
|
|
3060
3099
|
|
|
3061
3100
|
'use strict';
|
|
3062
3101
|
|
|
3063
|
-
var
|
|
3064
|
-
|
|
3065
|
-
var ReactComponent = _dereq_(6);
|
|
3066
|
-
var ReactNoopUpdateQueue = _dereq_(13);
|
|
3067
|
-
|
|
3068
|
-
var emptyObject = _dereq_(28);
|
|
3069
|
-
|
|
3070
|
-
/**
|
|
3071
|
-
* Base class helpers for the updating state of a component.
|
|
3072
|
-
*/
|
|
3073
|
-
function ReactPureComponent(props, context, updater) {
|
|
3074
|
-
// Duplicated from ReactComponent.
|
|
3075
|
-
this.props = props;
|
|
3076
|
-
this.context = context;
|
|
3077
|
-
this.refs = emptyObject;
|
|
3078
|
-
// We initialize the default updater but the real one gets injected by the
|
|
3079
|
-
// renderer.
|
|
3080
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
3081
|
-
}
|
|
3082
|
-
|
|
3083
|
-
function ComponentDummy() {}
|
|
3084
|
-
ComponentDummy.prototype = ReactComponent.prototype;
|
|
3085
|
-
ReactPureComponent.prototype = new ComponentDummy();
|
|
3086
|
-
ReactPureComponent.prototype.constructor = ReactPureComponent;
|
|
3087
|
-
// Avoid an extra prototype jump for these methods.
|
|
3088
|
-
_assign(ReactPureComponent.prototype, ReactComponent.prototype);
|
|
3089
|
-
ReactPureComponent.prototype.isPureReactComponent = true;
|
|
3102
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
3090
3103
|
|
|
3091
|
-
module.exports =
|
|
3092
|
-
},{
|
|
3104
|
+
module.exports = ReactPropTypesSecret;
|
|
3105
|
+
},{}],17:[function(_dereq_,module,exports){
|
|
3093
3106
|
/**
|
|
3094
3107
|
* Copyright 2013-present, Facebook, Inc.
|
|
3095
3108
|
* All rights reserved.
|
|
@@ -3161,7 +3174,7 @@ module.exports = ReactUMDEntry;
|
|
|
3161
3174
|
|
|
3162
3175
|
'use strict';
|
|
3163
3176
|
|
|
3164
|
-
module.exports = '16.0.0-alpha.
|
|
3177
|
+
module.exports = '16.0.0-alpha.2';
|
|
3165
3178
|
},{}],20:[function(_dereq_,module,exports){
|
|
3166
3179
|
/**
|
|
3167
3180
|
* Copyright 2013-present, Facebook, Inc.
|
|
@@ -3205,6 +3218,7 @@ module.exports = canDefineProperty;
|
|
|
3205
3218
|
var _prodInvariant = _dereq_(25);
|
|
3206
3219
|
|
|
3207
3220
|
var ReactPropTypeLocationNames = _dereq_(14);
|
|
3221
|
+
var ReactPropTypesSecret = _dereq_(16);
|
|
3208
3222
|
|
|
3209
3223
|
var invariant = _dereq_(29);
|
|
3210
3224
|
var warning = _dereq_(30);
|
|
@@ -3247,7 +3261,7 @@ workInProgressOrDebugID) {
|
|
|
3247
3261
|
// This is intentionally an invariant that gets caught. It's the same
|
|
3248
3262
|
// behavior as without this statement except with a better message.
|
|
3249
3263
|
!(typeof typeSpecs[typeSpecName] === 'function') ? "development" !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;
|
|
3250
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location);
|
|
3264
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
3251
3265
|
} catch (ex) {
|
|
3252
3266
|
error = ex;
|
|
3253
3267
|
}
|
|
@@ -3288,7 +3302,7 @@ workInProgressOrDebugID) {
|
|
|
3288
3302
|
|
|
3289
3303
|
module.exports = checkReactTypeSpec;
|
|
3290
3304
|
}).call(this,undefined)
|
|
3291
|
-
},{"14":14,"25":25,"29":29,"30":30,"7":7}],22:[function(_dereq_,module,exports){
|
|
3305
|
+
},{"14":14,"16":16,"25":25,"29":29,"30":30,"7":7}],22:[function(_dereq_,module,exports){
|
|
3292
3306
|
/**
|
|
3293
3307
|
* Copyright 2013-present, Facebook, Inc.
|
|
3294
3308
|
* All rights reserved.
|
|
@@ -3540,48 +3554,37 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
3540
3554
|
} else {
|
|
3541
3555
|
var iteratorFn = getIteratorFn(children);
|
|
3542
3556
|
if (iteratorFn) {
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
var ii = 0;
|
|
3547
|
-
while (!(step = iterator.next()).done) {
|
|
3548
|
-
child = step.value;
|
|
3549
|
-
nextName = nextNamePrefix + getComponentKey(child, ii++);
|
|
3550
|
-
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
|
3551
|
-
}
|
|
3552
|
-
} else {
|
|
3553
|
-
if ("development" !== 'production') {
|
|
3557
|
+
if ("development" !== 'production') {
|
|
3558
|
+
// Warn about using Maps as children
|
|
3559
|
+
if (iteratorFn === children.entries) {
|
|
3554
3560
|
var mapsAsChildrenAddendum = '';
|
|
3555
3561
|
if (ReactCurrentOwner.current) {
|
|
3556
3562
|
var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
|
|
3557
3563
|
if (mapsAsChildrenOwnerName) {
|
|
3558
|
-
mapsAsChildrenAddendum = '
|
|
3564
|
+
mapsAsChildrenAddendum = '\n\nCheck the render method of `' + mapsAsChildrenOwnerName + '`.';
|
|
3559
3565
|
}
|
|
3560
3566
|
}
|
|
3561
|
-
"development" !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is
|
|
3567
|
+
"development" !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
|
|
3562
3568
|
didWarnAboutMaps = true;
|
|
3563
3569
|
}
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
var iterator = iteratorFn.call(children);
|
|
3573
|
+
var step;
|
|
3574
|
+
var ii = 0;
|
|
3575
|
+
while (!(step = iterator.next()).done) {
|
|
3576
|
+
child = step.value;
|
|
3577
|
+
nextName = nextNamePrefix + getComponentKey(child, ii++);
|
|
3578
|
+
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
|
3573
3579
|
}
|
|
3574
3580
|
} else if (type === 'object') {
|
|
3575
3581
|
var addendum = '';
|
|
3576
3582
|
if ("development" !== 'production') {
|
|
3577
3583
|
addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';
|
|
3578
|
-
if (children._isReactElement) {
|
|
3579
|
-
addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';
|
|
3580
|
-
}
|
|
3581
3584
|
if (ReactCurrentOwner.current) {
|
|
3582
3585
|
var name = ReactCurrentOwner.current.getName();
|
|
3583
3586
|
if (name) {
|
|
3584
|
-
addendum += '
|
|
3587
|
+
addendum += '\n\nCheck the render method of `' + name + '`.';
|
|
3585
3588
|
}
|
|
3586
3589
|
}
|
|
3587
3590
|
}
|
|
@@ -3701,12 +3704,18 @@ module.exports = emptyObject;
|
|
|
3701
3704
|
* will remain to ensure logic does not differ in production.
|
|
3702
3705
|
*/
|
|
3703
3706
|
|
|
3704
|
-
function
|
|
3705
|
-
|
|
3707
|
+
var validateFormat = function validateFormat(format) {};
|
|
3708
|
+
|
|
3709
|
+
if ("development" !== 'production') {
|
|
3710
|
+
validateFormat = function validateFormat(format) {
|
|
3706
3711
|
if (format === undefined) {
|
|
3707
3712
|
throw new Error('invariant requires an error message argument');
|
|
3708
3713
|
}
|
|
3709
|
-
}
|
|
3714
|
+
};
|
|
3715
|
+
}
|
|
3716
|
+
|
|
3717
|
+
function invariant(condition, format, a, b, c, d, e, f) {
|
|
3718
|
+
validateFormat(format);
|
|
3710
3719
|
|
|
3711
3720
|
if (!condition) {
|
|
3712
3721
|
var error;
|
|
@@ -3795,8 +3804,15 @@ if ("development" !== 'production') {
|
|
|
3795
3804
|
|
|
3796
3805
|
module.exports = warning;
|
|
3797
3806
|
},{"27":27}],31:[function(_dereq_,module,exports){
|
|
3807
|
+
/*
|
|
3808
|
+
object-assign
|
|
3809
|
+
(c) Sindre Sorhus
|
|
3810
|
+
@license MIT
|
|
3811
|
+
*/
|
|
3812
|
+
|
|
3798
3813
|
'use strict';
|
|
3799
3814
|
/* eslint-disable no-unused-vars */
|
|
3815
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
3800
3816
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3801
3817
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
3802
3818
|
|
|
@@ -3817,7 +3833,7 @@ function shouldUseNative() {
|
|
|
3817
3833
|
// Detect buggy property enumeration order in older V8 versions.
|
|
3818
3834
|
|
|
3819
3835
|
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
3820
|
-
var test1 = new String('abc'); // eslint-disable-line
|
|
3836
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
3821
3837
|
test1[5] = 'de';
|
|
3822
3838
|
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
3823
3839
|
return false;
|
|
@@ -3846,7 +3862,7 @@ function shouldUseNative() {
|
|
|
3846
3862
|
}
|
|
3847
3863
|
|
|
3848
3864
|
return true;
|
|
3849
|
-
} catch (
|
|
3865
|
+
} catch (err) {
|
|
3850
3866
|
// We don't expect any of the above to throw, but better to be safe.
|
|
3851
3867
|
return false;
|
|
3852
3868
|
}
|
|
@@ -3866,8 +3882,8 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
3866
3882
|
}
|
|
3867
3883
|
}
|
|
3868
3884
|
|
|
3869
|
-
if (
|
|
3870
|
-
symbols =
|
|
3885
|
+
if (getOwnPropertySymbols) {
|
|
3886
|
+
symbols = getOwnPropertySymbols(from);
|
|
3871
3887
|
for (var i = 0; i < symbols.length; i++) {
|
|
3872
3888
|
if (propIsEnumerable.call(from, symbols[i])) {
|
|
3873
3889
|
to[symbols[i]] = from[symbols[i]];
|