react 16.0.0-alpha.2 → 16.0.0-alpha.3
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 +269 -257
- package/dist/react-with-addons.min.js +3 -3
- package/dist/react.js +230 -218
- package/dist/react.min.js +3 -3
- package/lib/React.js +4 -12
- package/lib/ReactClass.js +2 -3
- package/lib/ReactDebugCurrentFrame.js +53 -0
- package/lib/ReactElementValidator.js +32 -16
- package/lib/ReactPropTypes.js +11 -22
- package/lib/ReactVersion.js +1 -1
- package/lib/checkPropTypes.js +64 -0
- package/lib/checkReactTypeSpec.js +5 -81
- package/package.json +1 -1
- package/lib/ReactPropTypeLocationNames.js +0 -24
- package/lib/ReactPropTypeLocations.js +0 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React (with addons) v16.0.0-alpha.
|
|
2
|
+
* React (with addons) v16.0.0-alpha.3
|
|
3
3
|
*
|
|
4
4
|
* Copyright 2013-present, Facebook, Inc.
|
|
5
5
|
* All rights reserved.
|
|
@@ -9,9 +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(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){/*
|
|
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(6),o=e(9),i=e(10),a=e(13),s=e(14),u=e(18),c=e(23),p=e(30),l=(e(41),e(27)),f=s.createElement,d=s.createFactory,h=s.cloneElement,y=function(e){return e},v={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:p},Component:r.Component,PureComponent:r.PureComponent,createElement:f,cloneElement:h,isValidElement:s.isValidElement,checkPropTypes:l,PropTypes:u,createClass:i.createClass,createFactory:d,createMixin:y,DOM:a,version:c};t.exports=v},{10:10,13:13,14:14,18:18,23:23,27:27,30:30,41:41,6:6,9:9}],5:[function(e,t,n){"use strict";function r(){if(!o){var t=e(25);o=t.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}return o}var o;n.getReactDOM=r},{25:25}],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(26),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,26:26,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(22),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},{22:22,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(21),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},{21:21,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 T={forEach:a,map:p,mapIntoWithKeyPrefixInternal:c,count:f,toArray:d};t.exports=T},{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;_.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)&&T.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),T.hasOwnProperty(i))T[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 T;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(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"},T={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(){}},_={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,_);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,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(26),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,26:26,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";function r(e){this.message=e,this.stack=""}var o,i=(e(31),e(14),e(19),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,19:19,29:29,31:31,37:37,39:39,41:41}],19:[function(e,t,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=r},{}],20:[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}],21:[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}],22:[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(20),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},{20:20,37:37,4:4,42:42}],23:[function(e,t,n){"use strict";t.exports="16.0.0-alpha.3"},{}],24:[function(e,t,n){"use strict";var r=e(4),o=(e(5),e(11)),i=e(7),a=e(16),s=e(22),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,22:22,32:32,34:34,4:4,5:5,7:7}],25:[function(e,t,n){"use strict";var r=e(42),o=e(24),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,24:24,42:42}],26:[function(e,t,n){"use strict";var r=!1;t.exports=r},{}],27:[function(e,t,n){"use strict";function r(e,t,n,r,o){}e(31),e(19),e(39),e(41);t.exports=r},{19:19,31:31,39:39,41:41}],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]"===_?"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
13
|
object-assign
|
|
14
14
|
(c) Sindre Sorhus
|
|
15
15
|
@license MIT
|
|
16
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}},{}]},{},[
|
|
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}},{}]},{},[25])(25)});
|
package/dist/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React v16.0.0-alpha.
|
|
2
|
+
* React v16.0.0-alpha.3
|
|
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
|
/**
|
|
@@ -74,9 +74,9 @@ module.exports = KeyEscapeUtils;
|
|
|
74
74
|
|
|
75
75
|
'use strict';
|
|
76
76
|
|
|
77
|
-
var _prodInvariant = _dereq_(
|
|
77
|
+
var _prodInvariant = _dereq_(26);
|
|
78
78
|
|
|
79
|
-
var invariant = _dereq_(
|
|
79
|
+
var invariant = _dereq_(30);
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* Static poolers. Several custom versions for each potential number of
|
|
@@ -172,7 +172,7 @@ var PooledClass = {
|
|
|
172
172
|
};
|
|
173
173
|
|
|
174
174
|
module.exports = PooledClass;
|
|
175
|
-
},{"
|
|
175
|
+
},{"26":26,"30":30}],3:[function(_dereq_,module,exports){
|
|
176
176
|
/**
|
|
177
177
|
* Copyright 2013-present, Facebook, Inc.
|
|
178
178
|
* All rights reserved.
|
|
@@ -185,43 +185,35 @@ module.exports = PooledClass;
|
|
|
185
185
|
|
|
186
186
|
'use strict';
|
|
187
187
|
|
|
188
|
-
var _assign = _dereq_(31);
|
|
189
|
-
|
|
190
188
|
var ReactBaseClasses = _dereq_(4);
|
|
191
189
|
var ReactChildren = _dereq_(5);
|
|
192
190
|
var ReactClass = _dereq_(6);
|
|
193
191
|
var ReactDOMFactories = _dereq_(9);
|
|
194
|
-
var ReactElement = _dereq_(
|
|
192
|
+
var ReactElement = _dereq_(11);
|
|
195
193
|
var ReactPropTypes = _dereq_(15);
|
|
196
194
|
var ReactVersion = _dereq_(19);
|
|
197
195
|
|
|
198
|
-
var onlyChild = _dereq_(
|
|
199
|
-
var warning = _dereq_(
|
|
196
|
+
var onlyChild = _dereq_(25);
|
|
197
|
+
var warning = _dereq_(31);
|
|
198
|
+
var checkPropTypes = _dereq_(21);
|
|
200
199
|
|
|
201
200
|
var createElement = ReactElement.createElement;
|
|
202
201
|
var createFactory = ReactElement.createFactory;
|
|
203
202
|
var cloneElement = ReactElement.cloneElement;
|
|
204
203
|
|
|
205
204
|
if ("development" !== 'production') {
|
|
206
|
-
var ReactElementValidator = _dereq_(
|
|
205
|
+
var ReactElementValidator = _dereq_(13);
|
|
207
206
|
createElement = ReactElementValidator.createElement;
|
|
208
207
|
createFactory = ReactElementValidator.createFactory;
|
|
209
208
|
cloneElement = ReactElementValidator.cloneElement;
|
|
210
209
|
}
|
|
211
210
|
|
|
212
|
-
var __spread = _assign;
|
|
213
211
|
var createMixin = function (mixin) {
|
|
214
212
|
return mixin;
|
|
215
213
|
};
|
|
216
214
|
|
|
217
215
|
if ("development" !== 'production') {
|
|
218
|
-
var warnedForSpread = false;
|
|
219
216
|
var warnedForCreateMixin = false;
|
|
220
|
-
__spread = function () {
|
|
221
|
-
"development" !== 'production' ? warning(warnedForSpread, 'React.__spread is deprecated and should not be used. Use ' + 'Object.assign directly or another helper function with similar ' + 'semantics. You may be seeing this warning due to your compiler. ' + 'See https://fb.me/react-spread-deprecation for more details.') : void 0;
|
|
222
|
-
warnedForSpread = true;
|
|
223
|
-
return _assign.apply(null, arguments);
|
|
224
|
-
};
|
|
225
217
|
|
|
226
218
|
createMixin = function (mixin) {
|
|
227
219
|
"development" !== 'production' ? warning(warnedForCreateMixin, 'React.createMixin is deprecated and should not be used. You ' + 'can use this mixin directly instead.') : void 0;
|
|
@@ -249,6 +241,8 @@ var React = {
|
|
|
249
241
|
cloneElement: cloneElement,
|
|
250
242
|
isValidElement: ReactElement.isValidElement,
|
|
251
243
|
|
|
244
|
+
checkPropTypes: checkPropTypes,
|
|
245
|
+
|
|
252
246
|
// Classic
|
|
253
247
|
|
|
254
248
|
PropTypes: ReactPropTypes,
|
|
@@ -260,14 +254,12 @@ var React = {
|
|
|
260
254
|
// since they are just generating DOM strings.
|
|
261
255
|
DOM: ReactDOMFactories,
|
|
262
256
|
|
|
263
|
-
version: ReactVersion
|
|
257
|
+
version: ReactVersion
|
|
264
258
|
|
|
265
|
-
// Deprecated hook for JSX spread, don't use this for anything.
|
|
266
|
-
__spread: __spread
|
|
267
259
|
};
|
|
268
260
|
|
|
269
261
|
module.exports = React;
|
|
270
|
-
},{"
|
|
262
|
+
},{"11":11,"13":13,"15":15,"19":19,"21":21,"25":25,"31":31,"4":4,"5":5,"6":6,"9":9}],4:[function(_dereq_,module,exports){
|
|
271
263
|
/**
|
|
272
264
|
* Copyright 2013-present, Facebook, Inc.
|
|
273
265
|
* All rights reserved.
|
|
@@ -280,15 +272,15 @@ module.exports = React;
|
|
|
280
272
|
|
|
281
273
|
'use strict';
|
|
282
274
|
|
|
283
|
-
var _prodInvariant = _dereq_(
|
|
284
|
-
_assign = _dereq_(
|
|
275
|
+
var _prodInvariant = _dereq_(26),
|
|
276
|
+
_assign = _dereq_(32);
|
|
285
277
|
|
|
286
|
-
var ReactNoopUpdateQueue = _dereq_(
|
|
278
|
+
var ReactNoopUpdateQueue = _dereq_(14);
|
|
287
279
|
|
|
288
280
|
var canDefineProperty = _dereq_(20);
|
|
289
|
-
var emptyObject = _dereq_(
|
|
290
|
-
var invariant = _dereq_(
|
|
291
|
-
var warning = _dereq_(
|
|
281
|
+
var emptyObject = _dereq_(29);
|
|
282
|
+
var invariant = _dereq_(30);
|
|
283
|
+
var warning = _dereq_(31);
|
|
292
284
|
|
|
293
285
|
/**
|
|
294
286
|
* Base class helpers for the updating state of a component.
|
|
@@ -404,7 +396,7 @@ module.exports = {
|
|
|
404
396
|
Component: ReactComponent,
|
|
405
397
|
PureComponent: ReactPureComponent
|
|
406
398
|
};
|
|
407
|
-
},{"
|
|
399
|
+
},{"14":14,"20":20,"26":26,"29":29,"30":30,"31":31,"32":32}],5:[function(_dereq_,module,exports){
|
|
408
400
|
/**
|
|
409
401
|
* Copyright 2013-present, Facebook, Inc.
|
|
410
402
|
* All rights reserved.
|
|
@@ -418,10 +410,10 @@ module.exports = {
|
|
|
418
410
|
'use strict';
|
|
419
411
|
|
|
420
412
|
var PooledClass = _dereq_(2);
|
|
421
|
-
var ReactElement = _dereq_(
|
|
413
|
+
var ReactElement = _dereq_(11);
|
|
422
414
|
|
|
423
|
-
var emptyFunction = _dereq_(
|
|
424
|
-
var traverseAllChildren = _dereq_(
|
|
415
|
+
var emptyFunction = _dereq_(28);
|
|
416
|
+
var traverseAllChildren = _dereq_(27);
|
|
425
417
|
|
|
426
418
|
var twoArgumentPooler = PooledClass.twoArgumentPooler;
|
|
427
419
|
var fourArgumentPooler = PooledClass.fourArgumentPooler;
|
|
@@ -595,7 +587,7 @@ var ReactChildren = {
|
|
|
595
587
|
};
|
|
596
588
|
|
|
597
589
|
module.exports = ReactChildren;
|
|
598
|
-
},{"
|
|
590
|
+
},{"11":11,"2":2,"27":27,"28":28}],6:[function(_dereq_,module,exports){
|
|
599
591
|
/**
|
|
600
592
|
* Copyright 2013-present, Facebook, Inc.
|
|
601
593
|
* All rights reserved.
|
|
@@ -608,17 +600,16 @@ module.exports = ReactChildren;
|
|
|
608
600
|
|
|
609
601
|
'use strict';
|
|
610
602
|
|
|
611
|
-
var _prodInvariant = _dereq_(
|
|
612
|
-
_assign = _dereq_(
|
|
603
|
+
var _prodInvariant = _dereq_(26),
|
|
604
|
+
_assign = _dereq_(32);
|
|
613
605
|
|
|
614
606
|
var ReactBaseClasses = _dereq_(4);
|
|
615
|
-
var ReactElement = _dereq_(
|
|
616
|
-
var
|
|
617
|
-
var ReactNoopUpdateQueue = _dereq_(13);
|
|
607
|
+
var ReactElement = _dereq_(11);
|
|
608
|
+
var ReactNoopUpdateQueue = _dereq_(14);
|
|
618
609
|
|
|
619
|
-
var emptyObject = _dereq_(
|
|
620
|
-
var invariant = _dereq_(
|
|
621
|
-
var warning = _dereq_(
|
|
610
|
+
var emptyObject = _dereq_(29);
|
|
611
|
+
var invariant = _dereq_(30);
|
|
612
|
+
var warning = _dereq_(31);
|
|
622
613
|
|
|
623
614
|
var ReactComponent = ReactBaseClasses.Component;
|
|
624
615
|
|
|
@@ -901,7 +892,7 @@ var RESERVED_SPEC_KEYS = {
|
|
|
901
892
|
},
|
|
902
893
|
childContextTypes: function (Constructor, childContextTypes) {
|
|
903
894
|
if ("development" !== 'production') {
|
|
904
|
-
validateTypeDef(Constructor, childContextTypes, '
|
|
895
|
+
validateTypeDef(Constructor, childContextTypes, 'child context');
|
|
905
896
|
}
|
|
906
897
|
Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);
|
|
907
898
|
},
|
|
@@ -938,7 +929,7 @@ function validateTypeDef(Constructor, typeDef, location) {
|
|
|
938
929
|
if (typeDef.hasOwnProperty(propName)) {
|
|
939
930
|
// use a warning instead of an invariant so components
|
|
940
931
|
// don't show up in prod but only in __DEV__
|
|
941
|
-
"development" !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass',
|
|
932
|
+
"development" !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', location, propName) : void 0;
|
|
942
933
|
}
|
|
943
934
|
}
|
|
944
935
|
}
|
|
@@ -1300,7 +1291,7 @@ var ReactClass = {
|
|
|
1300
1291
|
};
|
|
1301
1292
|
|
|
1302
1293
|
module.exports = ReactClass;
|
|
1303
|
-
},{"
|
|
1294
|
+
},{"11":11,"14":14,"26":26,"29":29,"30":30,"31":31,"32":32,"4":4}],7:[function(_dereq_,module,exports){
|
|
1304
1295
|
/**
|
|
1305
1296
|
* Copyright 2016-present, Facebook, Inc.
|
|
1306
1297
|
* All rights reserved.
|
|
@@ -1314,7 +1305,7 @@ module.exports = ReactClass;
|
|
|
1314
1305
|
|
|
1315
1306
|
'use strict';
|
|
1316
1307
|
|
|
1317
|
-
var _prodInvariant = _dereq_(
|
|
1308
|
+
var _prodInvariant = _dereq_(26);
|
|
1318
1309
|
|
|
1319
1310
|
var ReactCurrentOwner = _dereq_(8);
|
|
1320
1311
|
var ReactTypeOfWork = _dereq_(17);
|
|
@@ -1324,9 +1315,9 @@ var IndeterminateComponent = ReactTypeOfWork.IndeterminateComponent,
|
|
|
1324
1315
|
HostComponent = ReactTypeOfWork.HostComponent;
|
|
1325
1316
|
|
|
1326
1317
|
|
|
1327
|
-
var getComponentName = _dereq_(
|
|
1328
|
-
var invariant = _dereq_(
|
|
1329
|
-
var warning = _dereq_(
|
|
1318
|
+
var getComponentName = _dereq_(23);
|
|
1319
|
+
var invariant = _dereq_(30);
|
|
1320
|
+
var warning = _dereq_(31);
|
|
1330
1321
|
|
|
1331
1322
|
function isNative(fn) {
|
|
1332
1323
|
// Based on isNative() from Lodash
|
|
@@ -1682,7 +1673,7 @@ var ReactComponentTreeHook = {
|
|
|
1682
1673
|
};
|
|
1683
1674
|
|
|
1684
1675
|
module.exports = ReactComponentTreeHook;
|
|
1685
|
-
},{"17":17,"
|
|
1676
|
+
},{"17":17,"23":23,"26":26,"30":30,"31":31,"8":8}],8:[function(_dereq_,module,exports){
|
|
1686
1677
|
/**
|
|
1687
1678
|
* Copyright 2013-present, Facebook, Inc.
|
|
1688
1679
|
* All rights reserved.
|
|
@@ -1726,7 +1717,7 @@ module.exports = ReactCurrentOwner;
|
|
|
1726
1717
|
|
|
1727
1718
|
'use strict';
|
|
1728
1719
|
|
|
1729
|
-
var ReactElement = _dereq_(
|
|
1720
|
+
var ReactElement = _dereq_(11);
|
|
1730
1721
|
|
|
1731
1722
|
/**
|
|
1732
1723
|
* Create a factory that creates HTML tag elements.
|
|
@@ -1735,7 +1726,7 @@ var ReactElement = _dereq_(10);
|
|
|
1735
1726
|
*/
|
|
1736
1727
|
var createDOMFactory = ReactElement.createFactory;
|
|
1737
1728
|
if ("development" !== 'production') {
|
|
1738
|
-
var ReactElementValidator = _dereq_(
|
|
1729
|
+
var ReactElementValidator = _dereq_(13);
|
|
1739
1730
|
createDOMFactory = ReactElementValidator.createFactory;
|
|
1740
1731
|
}
|
|
1741
1732
|
|
|
@@ -1883,7 +1874,61 @@ var ReactDOMFactories = {
|
|
|
1883
1874
|
};
|
|
1884
1875
|
|
|
1885
1876
|
module.exports = ReactDOMFactories;
|
|
1886
|
-
},{"
|
|
1877
|
+
},{"11":11,"13":13}],10:[function(_dereq_,module,exports){
|
|
1878
|
+
/**
|
|
1879
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
1880
|
+
* All rights reserved.
|
|
1881
|
+
*
|
|
1882
|
+
* This source code is licensed under the BSD-style license found in the
|
|
1883
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
1884
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
1885
|
+
*
|
|
1886
|
+
*
|
|
1887
|
+
*/
|
|
1888
|
+
|
|
1889
|
+
'use strict';
|
|
1890
|
+
|
|
1891
|
+
var ReactDebugCurrentFrame = {};
|
|
1892
|
+
|
|
1893
|
+
if ("development" !== 'production') {
|
|
1894
|
+
var _require = _dereq_(7),
|
|
1895
|
+
getStackAddendumByID = _require.getStackAddendumByID,
|
|
1896
|
+
getStackAddendumByWorkInProgressFiber = _require.getStackAddendumByWorkInProgressFiber,
|
|
1897
|
+
getCurrentStackAddendum = _require.getCurrentStackAddendum;
|
|
1898
|
+
|
|
1899
|
+
// Component that is being worked on
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
ReactDebugCurrentFrame.current = null;
|
|
1903
|
+
|
|
1904
|
+
// Element that is being cloned or created
|
|
1905
|
+
ReactDebugCurrentFrame.element = null;
|
|
1906
|
+
|
|
1907
|
+
ReactDebugCurrentFrame.getStackAddendum = function () {
|
|
1908
|
+
var stack = null;
|
|
1909
|
+
var current = ReactDebugCurrentFrame.current;
|
|
1910
|
+
var element = ReactDebugCurrentFrame.element;
|
|
1911
|
+
if (current !== null) {
|
|
1912
|
+
if (typeof current === 'number') {
|
|
1913
|
+
// DebugID from Stack.
|
|
1914
|
+
var debugID = current;
|
|
1915
|
+
stack = getStackAddendumByID(debugID);
|
|
1916
|
+
} else if (typeof current.tag === 'number') {
|
|
1917
|
+
// This is a Fiber.
|
|
1918
|
+
// The stack will only be correct if this is a work in progress
|
|
1919
|
+
// version and we're calling it during reconciliation.
|
|
1920
|
+
var workInProgress = current;
|
|
1921
|
+
stack = getStackAddendumByWorkInProgressFiber(workInProgress);
|
|
1922
|
+
}
|
|
1923
|
+
} else if (element !== null) {
|
|
1924
|
+
stack = getCurrentStackAddendum(element);
|
|
1925
|
+
}
|
|
1926
|
+
return stack;
|
|
1927
|
+
};
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
module.exports = ReactDebugCurrentFrame;
|
|
1931
|
+
},{"7":7}],11:[function(_dereq_,module,exports){
|
|
1887
1932
|
/**
|
|
1888
1933
|
* Copyright 2014-present, Facebook, Inc.
|
|
1889
1934
|
* All rights reserved.
|
|
@@ -1896,15 +1941,15 @@ module.exports = ReactDOMFactories;
|
|
|
1896
1941
|
|
|
1897
1942
|
'use strict';
|
|
1898
1943
|
|
|
1899
|
-
var _assign = _dereq_(
|
|
1944
|
+
var _assign = _dereq_(32);
|
|
1900
1945
|
|
|
1901
1946
|
var ReactCurrentOwner = _dereq_(8);
|
|
1902
1947
|
|
|
1903
|
-
var warning = _dereq_(
|
|
1948
|
+
var warning = _dereq_(31);
|
|
1904
1949
|
var canDefineProperty = _dereq_(20);
|
|
1905
1950
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1906
1951
|
|
|
1907
|
-
var REACT_ELEMENT_TYPE = _dereq_(
|
|
1952
|
+
var REACT_ELEMENT_TYPE = _dereq_(12);
|
|
1908
1953
|
|
|
1909
1954
|
var RESERVED_PROPS = {
|
|
1910
1955
|
key: true,
|
|
@@ -2224,7 +2269,7 @@ ReactElement.isValidElement = function (object) {
|
|
|
2224
2269
|
};
|
|
2225
2270
|
|
|
2226
2271
|
module.exports = ReactElement;
|
|
2227
|
-
},{"
|
|
2272
|
+
},{"12":12,"20":20,"31":31,"32":32,"8":8}],12:[function(_dereq_,module,exports){
|
|
2228
2273
|
/**
|
|
2229
2274
|
* Copyright 2014-present, Facebook, Inc.
|
|
2230
2275
|
* All rights reserved.
|
|
@@ -2244,7 +2289,7 @@ module.exports = ReactElement;
|
|
|
2244
2289
|
var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
|
|
2245
2290
|
|
|
2246
2291
|
module.exports = REACT_ELEMENT_TYPE;
|
|
2247
|
-
},{}],
|
|
2292
|
+
},{}],13:[function(_dereq_,module,exports){
|
|
2248
2293
|
/**
|
|
2249
2294
|
* Copyright 2014-present, Facebook, Inc.
|
|
2250
2295
|
* All rights reserved.
|
|
@@ -2266,14 +2311,18 @@ module.exports = REACT_ELEMENT_TYPE;
|
|
|
2266
2311
|
|
|
2267
2312
|
var ReactCurrentOwner = _dereq_(8);
|
|
2268
2313
|
var ReactComponentTreeHook = _dereq_(7);
|
|
2269
|
-
var ReactElement = _dereq_(
|
|
2314
|
+
var ReactElement = _dereq_(11);
|
|
2270
2315
|
|
|
2271
|
-
var checkReactTypeSpec = _dereq_(
|
|
2316
|
+
var checkReactTypeSpec = _dereq_(22);
|
|
2272
2317
|
|
|
2273
2318
|
var canDefineProperty = _dereq_(20);
|
|
2274
|
-
var getComponentName = _dereq_(
|
|
2275
|
-
var getIteratorFn = _dereq_(
|
|
2276
|
-
|
|
2319
|
+
var getComponentName = _dereq_(23);
|
|
2320
|
+
var getIteratorFn = _dereq_(24);
|
|
2321
|
+
|
|
2322
|
+
if ("development" !== 'production') {
|
|
2323
|
+
var warning = _dereq_(31);
|
|
2324
|
+
var ReactDebugCurrentFrame = _dereq_(10);
|
|
2325
|
+
}
|
|
2277
2326
|
|
|
2278
2327
|
function getDeclarationErrorAddendum() {
|
|
2279
2328
|
if (ReactCurrentOwner.current) {
|
|
@@ -2406,7 +2455,7 @@ function validatePropTypes(element) {
|
|
|
2406
2455
|
}
|
|
2407
2456
|
var name = componentClass.displayName || componentClass.name;
|
|
2408
2457
|
if (componentClass.propTypes) {
|
|
2409
|
-
checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name
|
|
2458
|
+
checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name);
|
|
2410
2459
|
}
|
|
2411
2460
|
if (typeof componentClass.getDefaultProps === 'function') {
|
|
2412
2461
|
"development" !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
|
|
@@ -2420,23 +2469,21 @@ var ReactElementValidator = {
|
|
|
2420
2469
|
// We warn in this case but don't throw. We expect the element creation to
|
|
2421
2470
|
// succeed and there will likely be errors in render.
|
|
2422
2471
|
if (!validType) {
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
}
|
|
2472
|
+
var info = '';
|
|
2473
|
+
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
2474
|
+
info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
|
|
2475
|
+
}
|
|
2428
2476
|
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2477
|
+
var sourceInfo = getSourceInfoErrorAddendum(props);
|
|
2478
|
+
if (sourceInfo) {
|
|
2479
|
+
info += sourceInfo;
|
|
2480
|
+
} else {
|
|
2481
|
+
info += getDeclarationErrorAddendum();
|
|
2482
|
+
}
|
|
2435
2483
|
|
|
2436
|
-
|
|
2484
|
+
info += ReactComponentTreeHook.getCurrentStackAddendum();
|
|
2437
2485
|
|
|
2438
|
-
|
|
2439
|
-
}
|
|
2486
|
+
"development" !== 'production' ? warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', type == null ? type : typeof type, info) : void 0;
|
|
2440
2487
|
}
|
|
2441
2488
|
|
|
2442
2489
|
var element = ReactElement.createElement.apply(this, arguments);
|
|
@@ -2447,6 +2494,10 @@ var ReactElementValidator = {
|
|
|
2447
2494
|
return element;
|
|
2448
2495
|
}
|
|
2449
2496
|
|
|
2497
|
+
if ("development" !== 'production') {
|
|
2498
|
+
ReactDebugCurrentFrame.element = element;
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2450
2501
|
// Skip key warning if the type isn't valid since our key validation logic
|
|
2451
2502
|
// doesn't expect a non-string/function type and can throw confusing errors.
|
|
2452
2503
|
// We don't want exception behavior to differ between dev and prod.
|
|
@@ -2460,6 +2511,10 @@ var ReactElementValidator = {
|
|
|
2460
2511
|
|
|
2461
2512
|
validatePropTypes(element);
|
|
2462
2513
|
|
|
2514
|
+
if ("development" !== 'production') {
|
|
2515
|
+
ReactDebugCurrentFrame.element = null;
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2463
2518
|
return element;
|
|
2464
2519
|
},
|
|
2465
2520
|
|
|
@@ -2488,17 +2543,23 @@ var ReactElementValidator = {
|
|
|
2488
2543
|
|
|
2489
2544
|
cloneElement: function (element, props, children) {
|
|
2490
2545
|
var newElement = ReactElement.cloneElement.apply(this, arguments);
|
|
2546
|
+
if ("development" !== 'production') {
|
|
2547
|
+
ReactDebugCurrentFrame.element = newElement;
|
|
2548
|
+
}
|
|
2491
2549
|
for (var i = 2; i < arguments.length; i++) {
|
|
2492
2550
|
validateChildKeys(arguments[i], newElement.type);
|
|
2493
2551
|
}
|
|
2494
2552
|
validatePropTypes(newElement);
|
|
2553
|
+
if ("development" !== 'production') {
|
|
2554
|
+
ReactDebugCurrentFrame.element = null;
|
|
2555
|
+
}
|
|
2495
2556
|
return newElement;
|
|
2496
2557
|
}
|
|
2497
2558
|
|
|
2498
2559
|
};
|
|
2499
2560
|
|
|
2500
2561
|
module.exports = ReactElementValidator;
|
|
2501
|
-
},{"10":10,"
|
|
2562
|
+
},{"10":10,"11":11,"20":20,"22":22,"23":23,"24":24,"31":31,"7":7,"8":8}],14:[function(_dereq_,module,exports){
|
|
2502
2563
|
/**
|
|
2503
2564
|
* Copyright 2015-present, Facebook, Inc.
|
|
2504
2565
|
* All rights reserved.
|
|
@@ -2511,7 +2572,7 @@ module.exports = ReactElementValidator;
|
|
|
2511
2572
|
|
|
2512
2573
|
'use strict';
|
|
2513
2574
|
|
|
2514
|
-
var warning = _dereq_(
|
|
2575
|
+
var warning = _dereq_(31);
|
|
2515
2576
|
|
|
2516
2577
|
function warnNoop(publicInstance, callerName) {
|
|
2517
2578
|
if ("development" !== 'production') {
|
|
@@ -2590,32 +2651,7 @@ var ReactNoopUpdateQueue = {
|
|
|
2590
2651
|
};
|
|
2591
2652
|
|
|
2592
2653
|
module.exports = ReactNoopUpdateQueue;
|
|
2593
|
-
},{"
|
|
2594
|
-
/**
|
|
2595
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
2596
|
-
* All rights reserved.
|
|
2597
|
-
*
|
|
2598
|
-
* This source code is licensed under the BSD-style license found in the
|
|
2599
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
2600
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
2601
|
-
*
|
|
2602
|
-
*
|
|
2603
|
-
*/
|
|
2604
|
-
|
|
2605
|
-
'use strict';
|
|
2606
|
-
|
|
2607
|
-
var ReactPropTypeLocationNames = {};
|
|
2608
|
-
|
|
2609
|
-
if ("development" !== 'production') {
|
|
2610
|
-
ReactPropTypeLocationNames = {
|
|
2611
|
-
prop: 'prop',
|
|
2612
|
-
context: 'context',
|
|
2613
|
-
childContext: 'child context'
|
|
2614
|
-
};
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
module.exports = ReactPropTypeLocationNames;
|
|
2618
|
-
},{}],15:[function(_dereq_,module,exports){
|
|
2654
|
+
},{"31":31}],15:[function(_dereq_,module,exports){
|
|
2619
2655
|
/**
|
|
2620
2656
|
* Copyright 2013-present, Facebook, Inc.
|
|
2621
2657
|
* All rights reserved.
|
|
@@ -2628,16 +2664,15 @@ module.exports = ReactPropTypeLocationNames;
|
|
|
2628
2664
|
|
|
2629
2665
|
'use strict';
|
|
2630
2666
|
|
|
2631
|
-
var _prodInvariant = _dereq_(
|
|
2667
|
+
var _prodInvariant = _dereq_(26);
|
|
2632
2668
|
|
|
2633
|
-
var ReactElement = _dereq_(
|
|
2634
|
-
var ReactPropTypeLocationNames = _dereq_(14);
|
|
2669
|
+
var ReactElement = _dereq_(11);
|
|
2635
2670
|
var ReactPropTypesSecret = _dereq_(16);
|
|
2636
2671
|
|
|
2637
|
-
var emptyFunction = _dereq_(
|
|
2638
|
-
var getIteratorFn = _dereq_(
|
|
2639
|
-
var invariant = _dereq_(
|
|
2640
|
-
var warning = _dereq_(
|
|
2672
|
+
var emptyFunction = _dereq_(28);
|
|
2673
|
+
var getIteratorFn = _dereq_(24);
|
|
2674
|
+
var invariant = _dereq_(30);
|
|
2675
|
+
var warning = _dereq_(31);
|
|
2641
2676
|
|
|
2642
2677
|
/**
|
|
2643
2678
|
* Collection of methods that allow declaration and validation of props that are
|
|
@@ -2790,12 +2825,11 @@ function createChainableTypeChecker(validate) {
|
|
|
2790
2825
|
}
|
|
2791
2826
|
}
|
|
2792
2827
|
if (props[propName] == null) {
|
|
2793
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2794
2828
|
if (isRequired) {
|
|
2795
2829
|
if (props[propName] === null) {
|
|
2796
|
-
return new PropTypeError('The ' +
|
|
2830
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
2797
2831
|
}
|
|
2798
|
-
return new PropTypeError('The ' +
|
|
2832
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
2799
2833
|
}
|
|
2800
2834
|
return null;
|
|
2801
2835
|
} else {
|
|
@@ -2814,13 +2848,12 @@ function createPrimitiveTypeChecker(expectedType) {
|
|
|
2814
2848
|
var propValue = props[propName];
|
|
2815
2849
|
var propType = getPropType(propValue);
|
|
2816
2850
|
if (propType !== expectedType) {
|
|
2817
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2818
2851
|
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
2819
2852
|
// check, but we can offer a more precise error message here rather than
|
|
2820
2853
|
// 'of type `object`'.
|
|
2821
2854
|
var preciseType = getPreciseType(propValue);
|
|
2822
2855
|
|
|
2823
|
-
return new PropTypeError('Invalid ' +
|
|
2856
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
2824
2857
|
}
|
|
2825
2858
|
return null;
|
|
2826
2859
|
}
|
|
@@ -2838,9 +2871,8 @@ function createArrayOfTypeChecker(typeChecker) {
|
|
|
2838
2871
|
}
|
|
2839
2872
|
var propValue = props[propName];
|
|
2840
2873
|
if (!Array.isArray(propValue)) {
|
|
2841
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2842
2874
|
var propType = getPropType(propValue);
|
|
2843
|
-
return new PropTypeError('Invalid ' +
|
|
2875
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
2844
2876
|
}
|
|
2845
2877
|
for (var i = 0; i < propValue.length; i++) {
|
|
2846
2878
|
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
@@ -2857,9 +2889,8 @@ function createElementTypeChecker() {
|
|
|
2857
2889
|
function validate(props, propName, componentName, location, propFullName) {
|
|
2858
2890
|
var propValue = props[propName];
|
|
2859
2891
|
if (!ReactElement.isValidElement(propValue)) {
|
|
2860
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2861
2892
|
var propType = getPropType(propValue);
|
|
2862
|
-
return new PropTypeError('Invalid ' +
|
|
2893
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
2863
2894
|
}
|
|
2864
2895
|
return null;
|
|
2865
2896
|
}
|
|
@@ -2869,10 +2900,9 @@ function createElementTypeChecker() {
|
|
|
2869
2900
|
function createInstanceTypeChecker(expectedClass) {
|
|
2870
2901
|
function validate(props, propName, componentName, location, propFullName) {
|
|
2871
2902
|
if (!(props[propName] instanceof expectedClass)) {
|
|
2872
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2873
2903
|
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
2874
2904
|
var actualClassName = getClassName(props[propName]);
|
|
2875
|
-
return new PropTypeError('Invalid ' +
|
|
2905
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
2876
2906
|
}
|
|
2877
2907
|
return null;
|
|
2878
2908
|
}
|
|
@@ -2893,9 +2923,8 @@ function createEnumTypeChecker(expectedValues) {
|
|
|
2893
2923
|
}
|
|
2894
2924
|
}
|
|
2895
2925
|
|
|
2896
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2897
2926
|
var valuesString = JSON.stringify(expectedValues);
|
|
2898
|
-
return new PropTypeError('Invalid ' +
|
|
2927
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
2899
2928
|
}
|
|
2900
2929
|
return createChainableTypeChecker(validate);
|
|
2901
2930
|
}
|
|
@@ -2908,8 +2937,7 @@ function createObjectOfTypeChecker(typeChecker) {
|
|
|
2908
2937
|
var propValue = props[propName];
|
|
2909
2938
|
var propType = getPropType(propValue);
|
|
2910
2939
|
if (propType !== 'object') {
|
|
2911
|
-
|
|
2912
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
2940
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
2913
2941
|
}
|
|
2914
2942
|
for (var key in propValue) {
|
|
2915
2943
|
if (propValue.hasOwnProperty(key)) {
|
|
@@ -2938,8 +2966,7 @@ function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
|
2938
2966
|
}
|
|
2939
2967
|
}
|
|
2940
2968
|
|
|
2941
|
-
|
|
2942
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
2969
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
2943
2970
|
}
|
|
2944
2971
|
return createChainableTypeChecker(validate);
|
|
2945
2972
|
}
|
|
@@ -2947,8 +2974,7 @@ function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
|
2947
2974
|
function createNodeChecker() {
|
|
2948
2975
|
function validate(props, propName, componentName, location, propFullName) {
|
|
2949
2976
|
if (!isNode(props[propName])) {
|
|
2950
|
-
|
|
2951
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
2977
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
2952
2978
|
}
|
|
2953
2979
|
return null;
|
|
2954
2980
|
}
|
|
@@ -2960,8 +2986,7 @@ function createShapeTypeChecker(shapeTypes) {
|
|
|
2960
2986
|
var propValue = props[propName];
|
|
2961
2987
|
var propType = getPropType(propValue);
|
|
2962
2988
|
if (propType !== 'object') {
|
|
2963
|
-
|
|
2964
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
2989
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
2965
2990
|
}
|
|
2966
2991
|
for (var key in shapeTypes) {
|
|
2967
2992
|
var checker = shapeTypes[key];
|
|
@@ -3085,7 +3110,7 @@ function getClassName(propValue) {
|
|
|
3085
3110
|
}
|
|
3086
3111
|
|
|
3087
3112
|
module.exports = ReactPropTypes;
|
|
3088
|
-
},{"
|
|
3113
|
+
},{"11":11,"16":16,"24":24,"26":26,"28":28,"30":30,"31":31}],16:[function(_dereq_,module,exports){
|
|
3089
3114
|
/**
|
|
3090
3115
|
* Copyright 2013-present, Facebook, Inc.
|
|
3091
3116
|
* All rights reserved.
|
|
@@ -3142,7 +3167,7 @@ module.exports = {
|
|
|
3142
3167
|
|
|
3143
3168
|
'use strict';
|
|
3144
3169
|
|
|
3145
|
-
var _assign = _dereq_(
|
|
3170
|
+
var _assign = _dereq_(32);
|
|
3146
3171
|
|
|
3147
3172
|
var React = _dereq_(3);
|
|
3148
3173
|
|
|
@@ -3161,7 +3186,7 @@ if ("development" !== 'production') {
|
|
|
3161
3186
|
}
|
|
3162
3187
|
|
|
3163
3188
|
module.exports = ReactUMDEntry;
|
|
3164
|
-
},{"3":3,"
|
|
3189
|
+
},{"3":3,"32":32,"7":7,"8":8}],19:[function(_dereq_,module,exports){
|
|
3165
3190
|
/**
|
|
3166
3191
|
* Copyright 2013-present, Facebook, Inc.
|
|
3167
3192
|
* All rights reserved.
|
|
@@ -3174,7 +3199,7 @@ module.exports = ReactUMDEntry;
|
|
|
3174
3199
|
|
|
3175
3200
|
'use strict';
|
|
3176
3201
|
|
|
3177
|
-
module.exports = '16.0.0-alpha.
|
|
3202
|
+
module.exports = '16.0.0-alpha.3';
|
|
3178
3203
|
},{}],20:[function(_dereq_,module,exports){
|
|
3179
3204
|
/**
|
|
3180
3205
|
* Copyright 2013-present, Facebook, Inc.
|
|
@@ -3202,7 +3227,6 @@ if ("development" !== 'production') {
|
|
|
3202
3227
|
|
|
3203
3228
|
module.exports = canDefineProperty;
|
|
3204
3229
|
},{}],21:[function(_dereq_,module,exports){
|
|
3205
|
-
(function (process){
|
|
3206
3230
|
/**
|
|
3207
3231
|
* Copyright 2013-present, Facebook, Inc.
|
|
3208
3232
|
* All rights reserved.
|
|
@@ -3215,24 +3239,12 @@ module.exports = canDefineProperty;
|
|
|
3215
3239
|
|
|
3216
3240
|
'use strict';
|
|
3217
3241
|
|
|
3218
|
-
var _prodInvariant = _dereq_(
|
|
3242
|
+
var _prodInvariant = _dereq_(26);
|
|
3219
3243
|
|
|
3220
|
-
var ReactPropTypeLocationNames = _dereq_(14);
|
|
3221
3244
|
var ReactPropTypesSecret = _dereq_(16);
|
|
3222
3245
|
|
|
3223
|
-
var invariant = _dereq_(
|
|
3224
|
-
var warning = _dereq_(
|
|
3225
|
-
|
|
3226
|
-
var ReactComponentTreeHook;
|
|
3227
|
-
|
|
3228
|
-
if (typeof process !== 'undefined' && process.env && "development" === 'test') {
|
|
3229
|
-
// Temporary hack.
|
|
3230
|
-
// Inline requires don't work well with Jest:
|
|
3231
|
-
// https://github.com/facebook/react/issues/7240
|
|
3232
|
-
// Remove the inline requires when we don't need them anymore:
|
|
3233
|
-
// https://github.com/facebook/react/pull/7178
|
|
3234
|
-
ReactComponentTreeHook = _dereq_(7);
|
|
3235
|
-
}
|
|
3246
|
+
var invariant = _dereq_(30);
|
|
3247
|
+
var warning = _dereq_(31);
|
|
3236
3248
|
|
|
3237
3249
|
var loggedTypeFailures = {};
|
|
3238
3250
|
|
|
@@ -3244,65 +3256,65 @@ var loggedTypeFailures = {};
|
|
|
3244
3256
|
* @param {object} values Runtime values that need to be type-checked
|
|
3245
3257
|
* @param {string} location e.g. "prop", "context", "child context"
|
|
3246
3258
|
* @param {string} componentName Name of the component for error messages.
|
|
3247
|
-
* @param {?
|
|
3248
|
-
* @param {?number} workInProgressOrDebugID The React component instance that is being type-checked
|
|
3259
|
+
* @param {?Function} getStack Returns the component stack.
|
|
3249
3260
|
* @private
|
|
3250
3261
|
*/
|
|
3251
|
-
function
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
loggedTypeFailures[error.message] = true;
|
|
3262
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
3263
|
+
if ("development" !== 'production') {
|
|
3264
|
+
for (var typeSpecName in typeSpecs) {
|
|
3265
|
+
if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
|
3266
|
+
var error;
|
|
3267
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
3268
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
3269
|
+
// After these have been cleaned up, we'll let them throw.
|
|
3270
|
+
try {
|
|
3271
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
3272
|
+
// behavior as without this statement except with a better message.
|
|
3273
|
+
!(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', location, typeSpecName) : _prodInvariant('84', componentName || 'React class', location, typeSpecName) : void 0;
|
|
3274
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
3275
|
+
} catch (ex) {
|
|
3276
|
+
error = ex;
|
|
3277
|
+
}
|
|
3278
|
+
"development" !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error) : void 0;
|
|
3279
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
3280
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
3281
|
+
// same error.
|
|
3282
|
+
loggedTypeFailures[error.message] = true;
|
|
3273
3283
|
|
|
3274
|
-
|
|
3284
|
+
var stack = getStack ? getStack() : '';
|
|
3275
3285
|
|
|
3276
|
-
|
|
3277
|
-
if (!ReactComponentTreeHook) {
|
|
3278
|
-
ReactComponentTreeHook = _dereq_(7);
|
|
3279
|
-
}
|
|
3280
|
-
if (workInProgressOrDebugID != null) {
|
|
3281
|
-
if (typeof workInProgressOrDebugID === 'number') {
|
|
3282
|
-
// DebugID from Stack.
|
|
3283
|
-
var debugID = workInProgressOrDebugID;
|
|
3284
|
-
componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
|
|
3285
|
-
} else if (typeof workInProgressOrDebugID.tag === 'number') {
|
|
3286
|
-
// This is a Fiber.
|
|
3287
|
-
// The stack will only be correct if this is a work in progress
|
|
3288
|
-
// version and we're calling it during reconciliation.
|
|
3289
|
-
var workInProgress = workInProgressOrDebugID;
|
|
3290
|
-
componentStackInfo = ReactComponentTreeHook.getStackAddendumByWorkInProgressFiber(workInProgress);
|
|
3291
|
-
}
|
|
3292
|
-
} else if (element !== null) {
|
|
3293
|
-
componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
|
|
3294
|
-
}
|
|
3286
|
+
"development" !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '') : void 0;
|
|
3295
3287
|
}
|
|
3296
|
-
|
|
3297
|
-
"development" !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;
|
|
3298
3288
|
}
|
|
3299
3289
|
}
|
|
3300
3290
|
}
|
|
3301
3291
|
}
|
|
3302
3292
|
|
|
3293
|
+
module.exports = checkPropTypes;
|
|
3294
|
+
},{"16":16,"26":26,"30":30,"31":31}],22:[function(_dereq_,module,exports){
|
|
3295
|
+
/**
|
|
3296
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
3297
|
+
* All rights reserved.
|
|
3298
|
+
*
|
|
3299
|
+
* This source code is licensed under the BSD-style license found in the
|
|
3300
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
3301
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
3302
|
+
*
|
|
3303
|
+
*/
|
|
3304
|
+
|
|
3305
|
+
'use strict';
|
|
3306
|
+
|
|
3307
|
+
var checkPropTypes = _dereq_(21);
|
|
3308
|
+
|
|
3309
|
+
var _require = _dereq_(10),
|
|
3310
|
+
getStackAddendum = _require.getStackAddendum;
|
|
3311
|
+
|
|
3312
|
+
function checkReactTypeSpec(typeSpecs, values, location, componentName) {
|
|
3313
|
+
checkPropTypes(typeSpecs, values, location, componentName, getStackAddendum);
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3303
3316
|
module.exports = checkReactTypeSpec;
|
|
3304
|
-
}
|
|
3305
|
-
},{"14":14,"16":16,"25":25,"29":29,"30":30,"7":7}],22:[function(_dereq_,module,exports){
|
|
3317
|
+
},{"10":10,"21":21}],23:[function(_dereq_,module,exports){
|
|
3306
3318
|
/**
|
|
3307
3319
|
* Copyright 2013-present, Facebook, Inc.
|
|
3308
3320
|
* All rights reserved.
|
|
@@ -3338,7 +3350,7 @@ function getComponentName(instanceOrFiber) {
|
|
|
3338
3350
|
}
|
|
3339
3351
|
|
|
3340
3352
|
module.exports = getComponentName;
|
|
3341
|
-
},{}],
|
|
3353
|
+
},{}],24:[function(_dereq_,module,exports){
|
|
3342
3354
|
/**
|
|
3343
3355
|
* Copyright 2013-present, Facebook, Inc.
|
|
3344
3356
|
* All rights reserved.
|
|
@@ -3379,7 +3391,7 @@ function getIteratorFn(maybeIterable) {
|
|
|
3379
3391
|
}
|
|
3380
3392
|
|
|
3381
3393
|
module.exports = getIteratorFn;
|
|
3382
|
-
},{}],
|
|
3394
|
+
},{}],25:[function(_dereq_,module,exports){
|
|
3383
3395
|
/**
|
|
3384
3396
|
* Copyright 2013-present, Facebook, Inc.
|
|
3385
3397
|
* All rights reserved.
|
|
@@ -3391,11 +3403,11 @@ module.exports = getIteratorFn;
|
|
|
3391
3403
|
*/
|
|
3392
3404
|
'use strict';
|
|
3393
3405
|
|
|
3394
|
-
var _prodInvariant = _dereq_(
|
|
3406
|
+
var _prodInvariant = _dereq_(26);
|
|
3395
3407
|
|
|
3396
|
-
var ReactElement = _dereq_(
|
|
3408
|
+
var ReactElement = _dereq_(11);
|
|
3397
3409
|
|
|
3398
|
-
var invariant = _dereq_(
|
|
3410
|
+
var invariant = _dereq_(30);
|
|
3399
3411
|
|
|
3400
3412
|
/**
|
|
3401
3413
|
* Returns the first child in a collection of children and verifies that there
|
|
@@ -3417,7 +3429,7 @@ function onlyChild(children) {
|
|
|
3417
3429
|
}
|
|
3418
3430
|
|
|
3419
3431
|
module.exports = onlyChild;
|
|
3420
|
-
},{"
|
|
3432
|
+
},{"11":11,"26":26,"30":30}],26:[function(_dereq_,module,exports){
|
|
3421
3433
|
/**
|
|
3422
3434
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3423
3435
|
* All rights reserved.
|
|
@@ -3456,7 +3468,7 @@ function reactProdInvariant(code) {
|
|
|
3456
3468
|
}
|
|
3457
3469
|
|
|
3458
3470
|
module.exports = reactProdInvariant;
|
|
3459
|
-
},{}],
|
|
3471
|
+
},{}],27:[function(_dereq_,module,exports){
|
|
3460
3472
|
/**
|
|
3461
3473
|
* Copyright 2013-present, Facebook, Inc.
|
|
3462
3474
|
* All rights reserved.
|
|
@@ -3469,15 +3481,15 @@ module.exports = reactProdInvariant;
|
|
|
3469
3481
|
|
|
3470
3482
|
'use strict';
|
|
3471
3483
|
|
|
3472
|
-
var _prodInvariant = _dereq_(
|
|
3484
|
+
var _prodInvariant = _dereq_(26);
|
|
3473
3485
|
|
|
3474
3486
|
var ReactCurrentOwner = _dereq_(8);
|
|
3475
|
-
var REACT_ELEMENT_TYPE = _dereq_(
|
|
3487
|
+
var REACT_ELEMENT_TYPE = _dereq_(12);
|
|
3476
3488
|
|
|
3477
|
-
var getIteratorFn = _dereq_(
|
|
3478
|
-
var invariant = _dereq_(
|
|
3489
|
+
var getIteratorFn = _dereq_(24);
|
|
3490
|
+
var invariant = _dereq_(30);
|
|
3479
3491
|
var KeyEscapeUtils = _dereq_(1);
|
|
3480
|
-
var warning = _dereq_(
|
|
3492
|
+
var warning = _dereq_(31);
|
|
3481
3493
|
|
|
3482
3494
|
var SEPARATOR = '.';
|
|
3483
3495
|
var SUBSEPARATOR = ':';
|
|
@@ -3621,7 +3633,7 @@ function traverseAllChildren(children, callback, traverseContext) {
|
|
|
3621
3633
|
}
|
|
3622
3634
|
|
|
3623
3635
|
module.exports = traverseAllChildren;
|
|
3624
|
-
},{"1":1,"
|
|
3636
|
+
},{"1":1,"12":12,"24":24,"26":26,"30":30,"31":31,"8":8}],28:[function(_dereq_,module,exports){
|
|
3625
3637
|
"use strict";
|
|
3626
3638
|
|
|
3627
3639
|
/**
|
|
@@ -3660,7 +3672,7 @@ emptyFunction.thatReturnsArgument = function (arg) {
|
|
|
3660
3672
|
};
|
|
3661
3673
|
|
|
3662
3674
|
module.exports = emptyFunction;
|
|
3663
|
-
},{}],
|
|
3675
|
+
},{}],29:[function(_dereq_,module,exports){
|
|
3664
3676
|
/**
|
|
3665
3677
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3666
3678
|
* All rights reserved.
|
|
@@ -3680,7 +3692,7 @@ if ("development" !== 'production') {
|
|
|
3680
3692
|
}
|
|
3681
3693
|
|
|
3682
3694
|
module.exports = emptyObject;
|
|
3683
|
-
},{}],
|
|
3695
|
+
},{}],30:[function(_dereq_,module,exports){
|
|
3684
3696
|
/**
|
|
3685
3697
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3686
3698
|
* All rights reserved.
|
|
@@ -3736,7 +3748,7 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
3736
3748
|
}
|
|
3737
3749
|
|
|
3738
3750
|
module.exports = invariant;
|
|
3739
|
-
},{}],
|
|
3751
|
+
},{}],31:[function(_dereq_,module,exports){
|
|
3740
3752
|
/**
|
|
3741
3753
|
* Copyright 2014-2015, Facebook, Inc.
|
|
3742
3754
|
* All rights reserved.
|
|
@@ -3749,7 +3761,7 @@ module.exports = invariant;
|
|
|
3749
3761
|
|
|
3750
3762
|
'use strict';
|
|
3751
3763
|
|
|
3752
|
-
var emptyFunction = _dereq_(
|
|
3764
|
+
var emptyFunction = _dereq_(28);
|
|
3753
3765
|
|
|
3754
3766
|
/**
|
|
3755
3767
|
* Similar to invariant but only logs a warning if the condition is not met.
|
|
@@ -3803,7 +3815,7 @@ if ("development" !== 'production') {
|
|
|
3803
3815
|
}
|
|
3804
3816
|
|
|
3805
3817
|
module.exports = warning;
|
|
3806
|
-
},{"
|
|
3818
|
+
},{"28":28}],32:[function(_dereq_,module,exports){
|
|
3807
3819
|
/*
|
|
3808
3820
|
object-assign
|
|
3809
3821
|
(c) Sindre Sorhus
|