react 15.4.2 → 15.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -7
- package/dist/react-with-addons.js +876 -634
- package/dist/react-with-addons.min.js +3 -3
- package/dist/react.js +704 -485
- package/dist/react.min.js +2 -2
- package/lib/React.js +15 -0
- package/lib/ReactCSSTransitionGroup.js +5 -3
- package/lib/ReactCSSTransitionGroupChild.js +131 -113
- package/lib/ReactClass.js +7 -1
- package/lib/ReactElementValidator.js +20 -1
- package/lib/ReactPropTypes.js +4 -419
- package/lib/ReactTransitionGroup.js +5 -2
- package/lib/ReactUMDEntry.js +4 -3
- package/lib/ReactVersion.js +1 -1
- package/lib/ReactWithAddonsUMDEntry.js +4 -3
- package/lib/getNextDebugIDUMDShim.js +17 -0
- package/package.json +4 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React (with addons) v15.
|
|
2
|
+
* React (with addons) v15.5.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright 2013-present, Facebook, Inc.
|
|
5
5
|
* All rights reserved.
|
|
@@ -9,5 +9,5 @@
|
|
|
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(40),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},{40:40}],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(18),o=e(24),i={linkState:function(e){return new r(this.state[e],o.createStateKeySetter(this,e))}};t.exports=i},{18:18,24:24}],4:[function(e,t,n){"use strict";var r=e(35),o=(e(43),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},{35:35,43:43}],5:[function(e,t,n){"use strict";var r=e(46),o=e(9),i=e(11),a=e(23),s=e(10),u=e(14),c=e(15),p=e(21),l=e(28),f=e(34),d=(e(45),c.createElement),h=c.createFactory,v=c.cloneElement,y=r,m={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:f},Component:i,PureComponent:a,createElement:d,cloneElement:v,isValidElement:c.isValidElement,PropTypes:p,createClass:s.createClass,createFactory:h,createMixin:function(e){return e},DOM:u,version:l,__spread:y};t.exports=m},{10:10,11:11,14:14,15:15,21:21,23:23,28:28,34:34,45:45,46:46,9:9}],6:[function(e,t,n){"use strict";function r(){if(!o){var t=e(30);o=t.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}return o}var o;n.getReactDOM=r},{30:30}],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(46),u=e(5),c=e(27),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},{27:27,46:46,5:5,8:8}],8:[function(e,t,n){"use strict";var r=e(5),o=e(6),i=e(39),a=e(26),s=e(34),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},{26:26,34:34,39:39,5:5,6:6}],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,y.thatReturnsArgument):null!=u&&(v.isValidElement(u)&&(u=v.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,y.thatReturnsArgument),t}var h=e(4),v=e(15),y=e(41),m=e(37),g=h.twoArgumentPooler,E=h.fourArgumentPooler,b=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,g),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,E);var T={forEach:a,map:p,mapIntoWithKeyPrefixInternal:c,count:f,toArray:d};t.exports=T},{15:15,37:37,4:4,41:41}],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,v.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(35),d=e(46),h=e(11),v=e(15),y=(e(20),e(19)),m=e(42),g=(e(43),e(45),"mixins"),E=[],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&&this.updater.enqueueCallback(this,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},P=function(){};d(P.prototype,h.prototype,_);var w={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||y,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=[],E.forEach(i.bind(null,t)),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},injection:{injectMixin:function(e){E.push(e)}}};t.exports=w},{11:11,15:15,19:19,20:20,35:35,42:42,43:43,45:45,46:46}],11:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var o=e(35),i=e(19),a=(e(31),e(42));e(43),e(45);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?o("85"):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};t.exports=r},{19:19,31:31,35:35,42:42,43:43,45:45}],12:[function(e,t,n){"use strict";var r=e(36),o={shouldComponentUpdate:function(e,t){return r(this,e,t)}};t.exports=o},{36:36}],13:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],14:[function(e,t,n){"use strict";var r=e(15),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},{15:15}],15:[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(46),a=e(13),s=(e(45),e(31),Object.prototype.hasOwnProperty),u=e(16),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 v=arguments.length-2;if(1===v)u.children=n;else if(v>1){for(var y=Array(v),m=0;m<v;m++)y[m]=arguments[m+2];u.children=y}if(e&&e.defaultProps){var g=e.defaultProps;for(i in g)void 0===u[i]&&(u[i]=g[i])}return p(e,l,f,d,h,a.current,u)},p.createFactory=function(e){var t=p.createElement.bind(null,e);return t.type=e,t},p.cloneAndReplaceKey=function(e,t){var n=p(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},p.cloneElement=function(e,t,n){var u,l=i({},e.props),f=e.key,d=e.ref,h=e._self,v=e._source,y=e._owner;if(null!=t){r(t)&&(d=t.ref,y=a.current),o(t)&&(f=""+t.key);var m;e.type&&e.type.defaultProps&&(m=e.type.defaultProps);for(u in t)s.call(t,u)&&!c.hasOwnProperty(u)&&(void 0===t[u]&&void 0!==m?l[u]=m[u]:l[u]=t[u])}var g=arguments.length-2;if(1===g)l.children=n;else if(g>1){for(var E=Array(g),b=0;b<g;b++)E[b]=arguments[b+2];l.children=E}return p(e.type,f,d,h,v,y,l)},p.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},t.exports=p},{13:13,16:16,31:31,45:45,46:46}],16:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},{}],17:[function(e,t,n){"use strict";var r=e(35),o=e(9),i=e(15),a=e(41),s=(e(43),e(45),{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},{15:15,35:35,41:41,43:43,45:45,9:9}],18:[function(e,t,n){"use strict";function r(e,t){this.value=e,this.requestChange=t}function o(e){var t={value:void 0===e?i.PropTypes.any.isRequired:e.isRequired,requestChange:i.PropTypes.func.isRequired};return i.PropTypes.shape(t)}var i=e(5);r.PropTypes={link:o},t.exports=r},{5:5}],19:[function(e,t,n){"use strict";function r(e,t){}var o=(e(45),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}});t.exports=o},{45:45}],20:[function(e,t,n){"use strict";var r={};t.exports=r},{}],21:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function o(e){this.message=e,this.stack=""}function i(e){function t(t,n,r,i,a,s,u){if(i=i||x,s=s||r,null==n[r]){var c=_[a];return t?new o(null===n[r]?"The "+c+" `"+s+"` is marked as required "+("in `"+i+"`, but its value is `null`."):"The "+c+" `"+s+"` is marked as required in "+("`"+i+"`, but its value is `undefined`.")):null}return e(n,r,i,a,s)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function a(e){function t(t,n,r,i,a,s){var u=t[n],c=g(u);if(c!==e){var p=_[i],l=E(u);return new o("Invalid "+p+" `"+a+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return i(t)}function s(){return i(w.thatReturns(null))}function u(e){function t(t,n,r,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var u=_[i],c=g(s);return new o("Invalid "+u+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var p=0;p<s.length;p++){var l=e(s,p,r,i,a+"["+p+"]",P);if(l instanceof Error)return l}return null}return i(t)}function c(){function e(e,t,n,r,i){var a=e[t];if(!T.isValidElement(a)){var s=_[r],u=g(a);return new o("Invalid "+s+" `"+i+"` of type "+("`"+u+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return i(e)}function p(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var s=_[i],u=e.name||x,c=b(t[n]);return new o("Invalid "+s+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("instance of `"+u+"`."))}return null}return i(t)}function l(e){function t(t,n,i,a,s){for(var u=t[n],c=0;c<e.length;c++)if(r(u,e[c]))return null;var p=_[a],l=JSON.stringify(e);return new o("Invalid "+p+" `"+s+"` of value `"+u+"` "+("supplied to `"+i+"`, expected one of "+l+"."))}return Array.isArray(e)?i(t):w.thatReturnsNull}function f(e){function t(t,n,r,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],u=g(s);if("object"!==u){var c=_[i];return new o("Invalid "+c+" `"+a+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."))}for(var p in s)if(s.hasOwnProperty(p)){var l=e(s,p,r,i,a+"."+p,P);if(l instanceof Error)return l}return null}return i(t)}function d(e){function t(t,n,r,i,a){for(var s=0;s<e.length;s++){var u=e[s];if(null==u(t,n,r,i,a,P))return null}var c=_[i];return new o("Invalid "+c+" `"+a+"` supplied to "+("`"+r+"`."))}return Array.isArray(e)?i(t):w.thatReturnsNull}function h(){function e(e,t,n,r,i){if(!y(e[t])){var a=_[r];return new o("Invalid "+a+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return i(e)}function v(e){function t(t,n,r,i,a){var s=t[n],u=g(s);if("object"!==u){var c=_[i];return new o("Invalid "+c+" `"+a+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."))}for(var p in e){var l=e[p];if(l){var f=l(s,p,r,i,a+"."+p,P);if(f)return f}}return null}return i(t)}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||T.isValidElement(e))return!0;var t=A(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function m(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":m(t,e)?"symbol":t}function E(e){var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){return e.constructor&&e.constructor.name?e.constructor.name:x}var T=e(15),_=e(20),P=e(22),w=e(41),A=e(33),x=(e(45),"<<anonymous>>"),O={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:s(),arrayOf:u,element:c(),instanceOf:p,node:h(),objectOf:f,oneOf:l,oneOfType:d,shape:v};o.prototype=Error.prototype,t.exports=O},{15:15,20:20,22:22,33:33,41:41,45:45}],22:[function(e,t,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=r},{}],23:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||s}function o(){}var i=e(46),a=e(11),s=e(19),u=e(42);o.prototype=a.prototype,r.prototype=new o,r.prototype.constructor=r,i(r.prototype,a.prototype),r.prototype.isPureReactComponent=!0,t.exports=r},{11:11,19:19,42:42,46:46}],24:[function(e,t,n){"use strict";function r(e,t){var n={};return function(r){n[t]=r,e.setState(n)}}var o={createStateSetter:function(e,t){return function(n,r,o,i,a,s){var u=t.call(e,n,r,o,i,a,s);u&&e.setState(u)}},createStateKeySetter:function(e,t){var n=e.__keySetters||(e.__keySetters={});return n[t]||(n[t]=r(e,t))}};o.Mixin={createStateSetter:function(e){return o.createStateSetter(this,e)},createStateKeySetter:function(e){return o.createStateKeySetter(this,e)}},t.exports=o},{}],25:[function(e,t,n){"use strict";var r=e(32),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},{32:32}],26:[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(40),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,40:40}],27:[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(46),s=e(5),u=e(25),c=e(41),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},{25:25,41:41,46:46,5:5}],28:[function(e,t,n){"use strict";t.exports="15.4.2"},{}],29:[function(e,t,n){"use strict";var r=e(3),o=e(5),i=(e(6),e(12)),a=e(7),s=e(17),u=e(27),c=e(36),p=e(38);o.addons={CSSTransitionGroup:a,LinkedStateMixin:r,PureRenderMixin:i,TransitionGroup:u,createFragment:s.create,shallowCompare:c,update:p},t.exports=o},{12:12,17:17,27:27,3:3,36:36,38:38,5:5,6:6,7:7}],30:[function(e,t,n){"use strict";var r=e(46),o=e(29),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(13)}},o);t.exports=i},{13:13,29:29,46:46}],31:[function(e,t,n){"use strict";var r=!1;t.exports=r},{}],32:[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(37));e(45);"undefined"!=typeof n&&n.env,t.exports=o}).call(this,void 0)},{2:2,37:37,45:45}],33:[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},{}],34:[function(e,t,n){"use strict";function r(e){return i.isValidElement(e)?void 0:o("143"),e}var o=e(35),i=e(15);e(43);t.exports=r},{15:15,35:35,43:43}],35:[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},{}],36:[function(e,t,n){"use strict";function r(e,t,n){return!o(e.props,t)||!o(e.state,n)}var o=e(44);t.exports=r},{44:44}],37:[function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?p+r(e,0):t),1;var d,h,v=0,y=""===t?p:t+l;if(Array.isArray(e))for(var m=0;m<e.length;m++)d=e[m],h=y+r(d,m),v+=o(d,h,n,i);else{var g=u(e);if(g){var E,b=g.call(e);if(g!==e.entries)for(var T=0;!(E=b.next()).done;)d=E.value,h=y+r(d,T++),v+=o(d,h,n,i);else for(;!(E=b.next()).done;){var _=E.value;_&&(d=_[1],h=y+c.escape(_[0])+l+r(d,0),v+=o(d,h,n,i))}}else if("object"===f){var P="",w=String(e);a("31","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,P)}}return v}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=e(35),s=(e(13),e(16)),u=e(33),c=(e(43),e(2)),p=(e(45),"."),l=":";t.exports=i},{13:13,16:16,2:2,33:33,35:35,43:43,45:45}],38:[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",v.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));
|
|
13
|
-
|
|
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||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(39),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},{39:39}],2:[function(e,t,n){"use strict";function r(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function o(e){var t={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(/(=0|=2)/g,function(e){return t[e]})}var i={escape:r,unescape:o};t.exports=i},{}],3:[function(e,t,n){"use strict";var r=e(18),o=e(23),i={linkState:function(e){return new r(this.state[e],o.createStateKeySetter(this,e))}};t.exports=i},{18:18,23:23}],4:[function(e,t,n){"use strict";var r=e(34),o=(e(42),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||r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=o,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||c,n.poolSize||(n.poolSize=10),n.release=u,n},l={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s};t.exports=l},{34:34,42:42}],5:[function(e,t,n){"use strict";var r=e(45),o=e(9),i=e(11),a=e(22),s=e(10),u=e(14),c=e(15),p=e(21),l=e(27),f=e(33),d=(e(44),c.createElement),h=c.createFactory,y=c.cloneElement,m=r,v={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:f},Component:i,PureComponent:a,createElement:d,cloneElement:y,isValidElement:c.isValidElement,PropTypes:p,createClass:s.createClass,createFactory:h,createMixin:function(e){return e},DOM:u,version:l,__spread:m};t.exports=v},{10:10,11:11,14:14,15:15,21:21,22:22,27:27,33:33,44:44,45:45,9:9}],6:[function(e,t,n){"use strict";function r(){if(!o){var t=e(29);o=t.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}return o}var o;n.getReactDOM=r},{29:29}],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(45),u=e(5),c=e(47),p=c(u.isValidElement),l=e(26),f=e(8),d=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,c=Array(s),p=0;p<s;p++)c[p]=arguments[p];return n=i=o(this,e.call.apply(e,[this].concat(c))),i._wrapChild=function(e){return u.createElement(f,{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(l,s({},this.props,{childFactory:this._wrapChild}))},t}(u.Component);d.displayName="ReactCSSTransitionGroup",d.propTypes={transitionName:f.propTypes.name,transitionAppear:p.bool,transitionEnter:p.bool,transitionLeave:p.bool,transitionAppearTimeout:a("Appear"),transitionEnterTimeout:a("Enter"),transitionLeaveTimeout:a("Leave")},d.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.exports=d},{26:26,45:45,47:47,5:5,8:8}],8:[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(5),s=e(6),u=e(47),c=u(a.isValidElement),p=e(38),l=e(25),f=e(33),d=17,h=function(e){function t(){var n,i,a;r(this,t);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return n=i=o(this,e.call.apply(e,[this].concat(c))),i._isMounted=!1,i.transition=function(e,t,n){var r=s.getReactDOM().findDOMNode(i);if(!r)return void(t&&t());var o=i.props.name[e]||i.props.name+"-"+e,a=i.props.name[e+"Active"]||o+"-active",u=null,c=function(e){e&&e.target!==r||(clearTimeout(u),p.removeClass(r,o),p.removeClass(r,a),l.removeEndEventListener(r,c),t&&t())};p.addClass(r,o),i.queueClassAndNode(a,r),n?(u=setTimeout(c,n),i.transitionTimeouts.push(u)):l.addEndEventListener(r,c)},i.queueClassAndNode=function(e,t){i.classNameAndNodeQueue.push({className:e,node:t}),i.timeout||(i.timeout=setTimeout(i.flushClassNameAndNodeQueue,d))},i.flushClassNameAndNodeQueue=function(){i._isMounted&&i.classNameAndNodeQueue.forEach(function(e){p.addClass(e.node,e.className)}),i.classNameAndNodeQueue.length=0,i.timeout=null},i.componentWillAppear=function(e){i.props.appear?i.transition("appear",e,i.props.appearTimeout):e()},i.componentWillEnter=function(e){i.props.enter?i.transition("enter",e,i.props.enterTimeout):e()},i.componentWillLeave=function(e){i.props.leave?i.transition("leave",e,i.props.leaveTimeout):e()},a=n,o(i,a)}return i(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentDidMount=function(){this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)}),this.classNameAndNodeQueue.length=0},t.prototype.render=function(){return f(this.props.children)},t}(a.Component);h.propTypes={name:c.oneOfType([c.string,c.shape({enter:c.string,leave:c.string,active:c.string}),c.shape({enter:c.string,enterActive:c.string,leave:c.string,leaveActive:c.string,appear:c.string,appearActive:c.string})]).isRequired,appear:c.bool,enter:c.bool,leave:c.bool,appearTimeout:c.number,enterTimeout:c.number,leaveTimeout:c.number},t.exports=h},{25:25,33:33,38:38,47:47,5:5,6:6}],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);v(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,m.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);v(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 v(e,l,null)}function d(e){var t=[];return c(e,t,null,m.thatReturnsArgument),t}var h=e(4),y=e(15),m=e(40),v=e(36),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=_},{15:15,36:36,4:4,40:40}],10:[function(e,t,n){"use strict";function r(e){return e}function o(e,t){var n=b.hasOwnProperty(t)?b[t]:null;w.hasOwnProperty(t)&&"OVERRIDE_BASE"!==n&&f("73",t),e&&"DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n&&f("74",t)}function i(e,t){if(t){"function"==typeof t&&f("75"),y.isValidElement(t)&&f("76");var n=e.prototype,r=n.__reactAutoBindPairs;t.hasOwnProperty(E)&&_.mixins(e,t.mixins);for(var i in t)if(t.hasOwnProperty(i)&&i!==E){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&&!1!==t.autobind;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),"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);var i=n in e;i&&f("79",n),e[n]=r}}}function s(e,t){e&&t&&"object"==typeof e&&"object"==typeof t||f("80");for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]&&f("81",n),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){return t.bind(e)}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(34),d=e(45),h=e(11),y=e(15),m=(e(20),e(19)),v=e(41),E=(e(42),e(44),"mixins"),g=[],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(){}},w={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},A=function(){};d(A.prototype,h.prototype,w);var T={createClass:function(e){var t=r(function(e,n,r){this.__reactAutoBindPairs.length&&l(this),this.props=e,this.context=n,this.refs=v,this.updater=r||m,this.state=null;var o=this.getInitialState?this.getInitialState():null;("object"!=typeof o||Array.isArray(o))&&f("82",t.displayName||"ReactCompositeComponent"),this.state=o});t.prototype=new A,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],g.forEach(i.bind(null,t)),i(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render||f("83");for(var n in b)t.prototype[n]||(t.prototype[n]=null);return t},injection:{injectMixin:function(e){g.push(e)}}};t.exports=T},{11:11,15:15,19:19,20:20,34:34,41:41,42:42,44:44,45:45}],11:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var o=e(34),i=e(19),a=(e(30),e(41));e(42),e(44);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&o("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};t.exports=r},{19:19,30:30,34:34,41:41,42:42,44:44}],12:[function(e,t,n){"use strict";var r=e(35),o={shouldComponentUpdate:function(e,t){return r(this,e,t)}};t.exports=o},{35:35}],13:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],14:[function(e,t,n){"use strict";var r=e(15),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},{15:15}],15:[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(45),a=e(13),s=(e(44),e(30),Object.prototype.hasOwnProperty),u=e(16),c={key:!0,ref:!0,__self:!0,__source:!0},p=function(e,t,n,r,o,i,a){return{$$typeof:u,type:e,key:t,ref:n,props:a,_owner:i}};p.createElement=function(e,t,n){var i,u={},l=null,f=null;if(null!=t){r(t)&&(f=t.ref),o(t)&&(l=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!c.hasOwnProperty(i)&&(u[i]=t[i])}var d=arguments.length-2;if(1===d)u.children=n;else if(d>1){for(var h=Array(d),y=0;y<d;y++)h[y]=arguments[y+2];u.children=h}if(e&&e.defaultProps){var m=e.defaultProps;for(i in m)void 0===u[i]&&(u[i]=m[i])}return p(e,l,f,0,0,a.current,u)},p.createFactory=function(e){var t=p.createElement.bind(null,e);return t.type=e,t},p.cloneAndReplaceKey=function(e,t){return p(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},p.cloneElement=function(e,t,n){var u,l=i({},e.props),f=e.key,d=e.ref,h=(e._self,e._source,e._owner);if(null!=t){r(t)&&(d=t.ref,h=a.current),o(t)&&(f=""+t.key);var y;e.type&&e.type.defaultProps&&(y=e.type.defaultProps);for(u in t)s.call(t,u)&&!c.hasOwnProperty(u)&&(void 0===t[u]&&void 0!==y?l[u]=y[u]:l[u]=t[u])}var m=arguments.length-2;if(1===m)l.children=n;else if(m>1){for(var v=Array(m),E=0;E<m;E++)v[E]=arguments[E+2];l.children=v}return p(e.type,f,d,0,0,h,l)},p.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},t.exports=p},{13:13,16:16,30:30,44:44,45:45}],16:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},{}],17:[function(e,t,n){"use strict";var r=e(34),o=e(9),i=e(15),a=e(40),s=(e(42),e(44),{create:function(e){if("object"!=typeof e||!e||Array.isArray(e))return e;if(i.isValidElement(e))return e;1===e.nodeType&&r("0");var t=[];for(var n in e)o.mapIntoWithKeyPrefixInternal(e[n],t,n,a.thatReturnsArgument);return t}});t.exports=s},{15:15,34:34,40:40,42:42,44:44,9:9}],18:[function(e,t,n){"use strict";function r(e,t){this.value=e,this.requestChange=t}function o(e){var t={value:void 0===e?i.PropTypes.any.isRequired:e.isRequired,requestChange:i.PropTypes.func.isRequired};return i.PropTypes.shape(t)}var i=e(5);r.PropTypes={link:o},t.exports=r},{5:5}],19:[function(e,t,n){"use strict";var r=(e(44),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){},enqueueReplaceState:function(e,t){},enqueueSetState:function(e,t){}});t.exports=r},{44:44}],20:[function(e,t,n){"use strict";var r={};t.exports=r},{}],21:[function(e,t,n){"use strict";var r=e(15),o=r.isValidElement,i=e(47);t.exports=i(o)},{15:15,47:47}],22:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||s}function o(){}var i=e(45),a=e(11),s=e(19),u=e(41);o.prototype=a.prototype,r.prototype=new o,r.prototype.constructor=r,i(r.prototype,a.prototype),r.prototype.isPureReactComponent=!0,t.exports=r},{11:11,19:19,41:41,45:45}],23:[function(e,t,n){"use strict";function r(e,t){var n={};return function(r){n[t]=r,e.setState(n)}}var o={createStateSetter:function(e,t){return function(n,r,o,i,a,s){var u=t.call(e,n,r,o,i,a,s);u&&e.setState(u)}},createStateKeySetter:function(e,t){var n=e.__keySetters||(e.__keySetters={});return n[t]||(n[t]=r(e,t))}};o.Mixin={createStateSetter:function(e){return o.createStateSetter(this,e)},createStateKeySetter:function(e){return o.createStateKeySetter(this,e)}},t.exports=o},{}],24:[function(e,t,n){"use strict";var r=e(31),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},{31:31}],25:[function(e,t,n){"use strict";function r(e,t,n){e.addEventListener(t,n,!1)}function o(e,t,n){e.removeEventListener(t,n,!1)}var i=e(39),a=e(1),s=[];i.canUseDOM&&function(){var e=a("animationend"),t=a("transitionend");e&&s.push(e),t&&s.push(t)}();var u={addEndEventListener:function(e,t){if(0===s.length)return void window.setTimeout(t,0);s.forEach(function(n){r(e,n,t)})},removeEndEventListener:function(e,t){0!==s.length&&s.forEach(function(n){o(e,n,t)})}};t.exports=u},{1:1,39:39}],26:[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(45),s=e(5),u=e(24),c=e(47),p=c(s.isValidElement),l=e(40),f=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);f.displayName="ReactTransitionGroup",f.propTypes={component:p.any,childFactory:p.func},f.defaultProps={component:"span",childFactory:l.thatReturnsArgument},t.exports=f},{24:24,40:40,45:45,47:47,5:5}],27:[function(e,t,n){"use strict";t.exports="15.5.1"},{}],28:[function(e,t,n){"use strict";var r=e(3),o=e(5),i=(e(6),e(12)),a=e(7),s=e(17),u=e(26),c=e(35),p=e(37);o.addons={CSSTransitionGroup:a,LinkedStateMixin:r,PureRenderMixin:i,TransitionGroup:u,createFragment:s.create,shallowCompare:c,update:p},t.exports=o},{12:12,17:17,26:26,3:3,35:35,37:37,5:5,6:6,7:7}],29:[function(e,t,n){"use strict";var r=e(45),o=e(28),i=r(o,{__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(13)}});t.exports=i},{13:13,28:28,45:45}],30:[function(e,t,n){"use strict";t.exports=!1},{}],31:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){if(e&&"object"==typeof e){var o=e;void 0===o[n]&&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(36));e(44);void 0!==n&&n.env,t.exports=o}).call(this,void 0)},{2:2,36:36,44:44}],32:[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},{}],33:[function(e,t,n){"use strict";function r(e){return i.isValidElement(e)||o("143"),e}var o=e(34),i=e(15);e(42);t.exports=r},{15:15,34:34,42:42}],34:[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},{}],35:[function(e,t,n){"use strict";function r(e,t,n){return!o(e.props,t)||!o(e.state,n)}var o=e(43);t.exports=r},{43:43}],36:[function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?p+r(e,0):t),1;var d,h,y=0,m=""===t?p:t+l;if(Array.isArray(e))for(var v=0;v<e.length;v++)d=e[v],h=m+r(d,v),y+=o(d,h,n,i);else{var E=u(e);if(E){var g,b=E.call(e);if(E!==e.entries)for(var _=0;!(g=b.next()).done;)d=g.value,h=m+r(d,_++),y+=o(d,h,n,i);else for(;!(g=b.next()).done;){var w=g.value;w&&(d=w[1],h=m+c.escape(w[0])+l+r(d,0),y+=o(d,h,n,i))}}else if("object"===f){var A=String(e);a("31","[object Object]"===A?"object with keys {"+Object.keys(e).join(", ")+"}":A,"")}}return y}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=e(34),s=(e(13),e(16)),u=e(32),c=(e(42),e(2)),p=(e(44),"."),l=":";t.exports=i},{13:13,16:16,2:2,32:32,34:34,42:42,44:44}],37:[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)||a("1",n,e);var r=t[n];Array.isArray(r)||a("2",n,r)}function i(e,t){if("object"!=typeof t&&a("3",y.join(", "),f),u.call(t,f))return 1!==Object.keys(t).length&&a("4",f),t[f];var n=r(e);if(u.call(t,d)){var v=t[d];v&&"object"==typeof v||a("5",d,v),n&&"object"==typeof n||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)||a("7",l,e),Array.isArray(t[l])||a("8",l,t[l]),t[l].forEach(function(e){Array.isArray(e)||a("8",l,t[l]),n.splice.apply(n,e)})),u.call(t,h)&&("function"!=typeof t[h]&&a("9",h,t[h]),n=t[h](n));for(var E in t)m.hasOwnProperty(E)&&m[E]||(n[E]=i(e[E],t[E]));return n}var a=e(34),s=e(45),u=(e(42),{}.hasOwnProperty),c="$push",p="$unshift",l="$splice",f="$set",d="$merge",h="$apply",y=[c,p,l,f,d,h],m={};y.forEach(function(e){m[e]=!0}),t.exports=i},{34:34,42:42,45:45}],38:[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-1!==Array.prototype.indexOf.call(r,e)}var o=e(42),i={addClass:function(e,t){return/\s/.test(t)&&o(!1),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),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),e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1},matchesSelector:function(e,t){return(e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||function(t){return r(e,t)}).call(e,t)}};t.exports=i},{42:42}],39:[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},{}],40:[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},{}],41:[function(e,t,n){"use strict";var r={};t.exports=r},{}],42:[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},{}],43:[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},{}],44:[function(e,t,n){"use strict";var r=e(40),o=r;t.exports=o},{40:40}],45:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){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;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var p in n)i.call(n,p)&&(u[p]=n[p]);if(o){s=o(n);for(var l=0;l<s.length;l++)a.call(n,s[l])&&(u[s[l]]=n[s[l]])}}return u}},{}],46:[function(e,t,n){"use strict";function r(e,t,n,r,o){}e(42),e(44),e(48);t.exports=r},{42:42,44:44,48:48}],47:[function(e,t,n){"use strict"
|
|
13
|
+
;var r=(e(40),e(42)),o=(e(44),e(48),e(46));t.exports=function(e){function t(e){this.message=e,this.stack=""}var n,i=("function"==typeof Symbol&&Symbol.iterator,function(){r(!1,"React.PropTypes type checking code is stripped in production.")});i.isRequired=i;var a=function(){return i};return n={array:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a},t.prototype=Error.prototype,n.checkPropTypes=o,n.PropTypes=n,n}},{40:40,42:42,44:44,46:46,48:48}],48:[function(e,t,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}]},{},[29])(29)});
|
package/dist/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React v15.
|
|
2
|
+
* React v15.5.1
|
|
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_(25);
|
|
78
78
|
|
|
79
|
-
var invariant = _dereq_(
|
|
79
|
+
var invariant = _dereq_(29);
|
|
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
|
+
},{"25":25,"29":29}],3:[function(_dereq_,module,exports){
|
|
176
176
|
/**
|
|
177
177
|
* Copyright 2013-present, Facebook, Inc.
|
|
178
178
|
* All rights reserved.
|
|
@@ -185,7 +185,7 @@ module.exports = PooledClass;
|
|
|
185
185
|
|
|
186
186
|
'use strict';
|
|
187
187
|
|
|
188
|
-
var _assign = _dereq_(
|
|
188
|
+
var _assign = _dereq_(31);
|
|
189
189
|
|
|
190
190
|
var ReactChildren = _dereq_(4);
|
|
191
191
|
var ReactComponent = _dereq_(6);
|
|
@@ -196,15 +196,17 @@ var ReactElement = _dereq_(10);
|
|
|
196
196
|
var ReactPropTypes = _dereq_(15);
|
|
197
197
|
var ReactVersion = _dereq_(19);
|
|
198
198
|
|
|
199
|
-
var onlyChild = _dereq_(
|
|
200
|
-
var warning = _dereq_(
|
|
199
|
+
var onlyChild = _dereq_(24);
|
|
200
|
+
var warning = _dereq_(30);
|
|
201
201
|
|
|
202
202
|
var createElement = ReactElement.createElement;
|
|
203
203
|
var createFactory = ReactElement.createFactory;
|
|
204
204
|
var cloneElement = ReactElement.cloneElement;
|
|
205
205
|
|
|
206
206
|
if ("development" !== 'production') {
|
|
207
|
+
var canDefineProperty = _dereq_(20);
|
|
207
208
|
var ReactElementValidator = _dereq_(12);
|
|
209
|
+
var didWarnPropTypesDeprecated = false;
|
|
208
210
|
createElement = ReactElementValidator.createElement;
|
|
209
211
|
createFactory = ReactElementValidator.createFactory;
|
|
210
212
|
cloneElement = ReactElementValidator.cloneElement;
|
|
@@ -260,8 +262,21 @@ var React = {
|
|
|
260
262
|
__spread: __spread
|
|
261
263
|
};
|
|
262
264
|
|
|
265
|
+
// TODO: Fix tests so that this deprecation warning doesn't cause failures.
|
|
266
|
+
if ("development" !== 'production') {
|
|
267
|
+
if (canDefineProperty) {
|
|
268
|
+
Object.defineProperty(React, 'PropTypes', {
|
|
269
|
+
get: function () {
|
|
270
|
+
"development" !== 'production' ? warning(didWarnPropTypesDeprecated, 'Accessing PropTypes via the main React package is deprecated. Use ' + 'the prop-types package from npm instead.') : void 0;
|
|
271
|
+
didWarnPropTypesDeprecated = true;
|
|
272
|
+
return ReactPropTypes;
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
263
278
|
module.exports = React;
|
|
264
|
-
},{"10":10,"12":12,"15":15,"17":17,"19":19,"
|
|
279
|
+
},{"10":10,"12":12,"15":15,"17":17,"19":19,"20":20,"24":24,"30":30,"31":31,"4":4,"5":5,"6":6,"9":9}],4:[function(_dereq_,module,exports){
|
|
265
280
|
/**
|
|
266
281
|
* Copyright 2013-present, Facebook, Inc.
|
|
267
282
|
* All rights reserved.
|
|
@@ -277,8 +292,8 @@ module.exports = React;
|
|
|
277
292
|
var PooledClass = _dereq_(2);
|
|
278
293
|
var ReactElement = _dereq_(10);
|
|
279
294
|
|
|
280
|
-
var emptyFunction = _dereq_(
|
|
281
|
-
var traverseAllChildren = _dereq_(
|
|
295
|
+
var emptyFunction = _dereq_(27);
|
|
296
|
+
var traverseAllChildren = _dereq_(26);
|
|
282
297
|
|
|
283
298
|
var twoArgumentPooler = PooledClass.twoArgumentPooler;
|
|
284
299
|
var fourArgumentPooler = PooledClass.fourArgumentPooler;
|
|
@@ -452,7 +467,7 @@ var ReactChildren = {
|
|
|
452
467
|
};
|
|
453
468
|
|
|
454
469
|
module.exports = ReactChildren;
|
|
455
|
-
},{"10":10,"2":2,"
|
|
470
|
+
},{"10":10,"2":2,"26":26,"27":27}],5:[function(_dereq_,module,exports){
|
|
456
471
|
/**
|
|
457
472
|
* Copyright 2013-present, Facebook, Inc.
|
|
458
473
|
* All rights reserved.
|
|
@@ -465,17 +480,17 @@ module.exports = ReactChildren;
|
|
|
465
480
|
|
|
466
481
|
'use strict';
|
|
467
482
|
|
|
468
|
-
var _prodInvariant = _dereq_(
|
|
469
|
-
_assign = _dereq_(
|
|
483
|
+
var _prodInvariant = _dereq_(25),
|
|
484
|
+
_assign = _dereq_(31);
|
|
470
485
|
|
|
471
486
|
var ReactComponent = _dereq_(6);
|
|
472
487
|
var ReactElement = _dereq_(10);
|
|
473
488
|
var ReactPropTypeLocationNames = _dereq_(14);
|
|
474
489
|
var ReactNoopUpdateQueue = _dereq_(13);
|
|
475
490
|
|
|
476
|
-
var emptyObject = _dereq_(
|
|
477
|
-
var invariant = _dereq_(
|
|
478
|
-
var warning = _dereq_(
|
|
491
|
+
var emptyObject = _dereq_(28);
|
|
492
|
+
var invariant = _dereq_(29);
|
|
493
|
+
var warning = _dereq_(30);
|
|
479
494
|
|
|
480
495
|
var MIXINS_KEY = 'mixins';
|
|
481
496
|
|
|
@@ -606,7 +621,6 @@ var ReactClassInterface = {
|
|
|
606
621
|
* }
|
|
607
622
|
*
|
|
608
623
|
* @return {ReactComponent}
|
|
609
|
-
* @nosideeffects
|
|
610
624
|
* @required
|
|
611
625
|
*/
|
|
612
626
|
render: 'DEFINE_ONCE',
|
|
@@ -1062,6 +1076,8 @@ var ReactClassMixin = {
|
|
|
1062
1076
|
var ReactClassComponent = function () {};
|
|
1063
1077
|
_assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin);
|
|
1064
1078
|
|
|
1079
|
+
var didWarnDeprecated = false;
|
|
1080
|
+
|
|
1065
1081
|
/**
|
|
1066
1082
|
* Module for creating composite components.
|
|
1067
1083
|
*
|
|
@@ -1078,6 +1094,11 @@ var ReactClass = {
|
|
|
1078
1094
|
* @public
|
|
1079
1095
|
*/
|
|
1080
1096
|
createClass: function (spec) {
|
|
1097
|
+
if ("development" !== 'production') {
|
|
1098
|
+
"development" !== 'production' ? warning(didWarnDeprecated, '%s: React.createClass is deprecated and will be removed in version 16. ' + 'Use plain JavaScript classes instead. If you\'re not yet ready to ' + 'migrate, create-react-class is available on npm as a ' + 'drop-in replacement.', spec && spec.displayName || 'A Component') : void 0;
|
|
1099
|
+
didWarnDeprecated = true;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1081
1102
|
// To keep our warnings more understandable, we'll use a little hack here to
|
|
1082
1103
|
// ensure that Constructor.name !== 'Constructor'. This makes sure we don't
|
|
1083
1104
|
// unnecessarily identify a class without displayName as 'Constructor'.
|
|
@@ -1169,7 +1190,7 @@ var ReactClass = {
|
|
|
1169
1190
|
};
|
|
1170
1191
|
|
|
1171
1192
|
module.exports = ReactClass;
|
|
1172
|
-
},{"10":10,"13":13,"14":14,"
|
|
1193
|
+
},{"10":10,"13":13,"14":14,"25":25,"28":28,"29":29,"30":30,"31":31,"6":6}],6:[function(_dereq_,module,exports){
|
|
1173
1194
|
/**
|
|
1174
1195
|
* Copyright 2013-present, Facebook, Inc.
|
|
1175
1196
|
* All rights reserved.
|
|
@@ -1182,14 +1203,14 @@ module.exports = ReactClass;
|
|
|
1182
1203
|
|
|
1183
1204
|
'use strict';
|
|
1184
1205
|
|
|
1185
|
-
var _prodInvariant = _dereq_(
|
|
1206
|
+
var _prodInvariant = _dereq_(25);
|
|
1186
1207
|
|
|
1187
1208
|
var ReactNoopUpdateQueue = _dereq_(13);
|
|
1188
1209
|
|
|
1189
1210
|
var canDefineProperty = _dereq_(20);
|
|
1190
|
-
var emptyObject = _dereq_(
|
|
1191
|
-
var invariant = _dereq_(
|
|
1192
|
-
var warning = _dereq_(
|
|
1211
|
+
var emptyObject = _dereq_(28);
|
|
1212
|
+
var invariant = _dereq_(29);
|
|
1213
|
+
var warning = _dereq_(30);
|
|
1193
1214
|
|
|
1194
1215
|
/**
|
|
1195
1216
|
* Base class helpers for the updating state of a component.
|
|
@@ -1287,7 +1308,7 @@ if ("development" !== 'production') {
|
|
|
1287
1308
|
}
|
|
1288
1309
|
|
|
1289
1310
|
module.exports = ReactComponent;
|
|
1290
|
-
},{"13":13,"20":20,"
|
|
1311
|
+
},{"13":13,"20":20,"25":25,"28":28,"29":29,"30":30}],7:[function(_dereq_,module,exports){
|
|
1291
1312
|
/**
|
|
1292
1313
|
* Copyright 2016-present, Facebook, Inc.
|
|
1293
1314
|
* All rights reserved.
|
|
@@ -1301,12 +1322,12 @@ module.exports = ReactComponent;
|
|
|
1301
1322
|
|
|
1302
1323
|
'use strict';
|
|
1303
1324
|
|
|
1304
|
-
var _prodInvariant = _dereq_(
|
|
1325
|
+
var _prodInvariant = _dereq_(25);
|
|
1305
1326
|
|
|
1306
1327
|
var ReactCurrentOwner = _dereq_(8);
|
|
1307
1328
|
|
|
1308
|
-
var invariant = _dereq_(
|
|
1309
|
-
var warning = _dereq_(
|
|
1329
|
+
var invariant = _dereq_(29);
|
|
1330
|
+
var warning = _dereq_(30);
|
|
1310
1331
|
|
|
1311
1332
|
function isNative(fn) {
|
|
1312
1333
|
// Based on isNative() from Lodash
|
|
@@ -1621,7 +1642,7 @@ var ReactComponentTreeHook = {
|
|
|
1621
1642
|
};
|
|
1622
1643
|
|
|
1623
1644
|
module.exports = ReactComponentTreeHook;
|
|
1624
|
-
},{"
|
|
1645
|
+
},{"25":25,"29":29,"30":30,"8":8}],8:[function(_dereq_,module,exports){
|
|
1625
1646
|
/**
|
|
1626
1647
|
* Copyright 2013-present, Facebook, Inc.
|
|
1627
1648
|
* All rights reserved.
|
|
@@ -1835,11 +1856,11 @@ module.exports = ReactDOMFactories;
|
|
|
1835
1856
|
|
|
1836
1857
|
'use strict';
|
|
1837
1858
|
|
|
1838
|
-
var _assign = _dereq_(
|
|
1859
|
+
var _assign = _dereq_(31);
|
|
1839
1860
|
|
|
1840
1861
|
var ReactCurrentOwner = _dereq_(8);
|
|
1841
1862
|
|
|
1842
|
-
var warning = _dereq_(
|
|
1863
|
+
var warning = _dereq_(30);
|
|
1843
1864
|
var canDefineProperty = _dereq_(20);
|
|
1844
1865
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1845
1866
|
|
|
@@ -2163,7 +2184,7 @@ ReactElement.isValidElement = function (object) {
|
|
|
2163
2184
|
};
|
|
2164
2185
|
|
|
2165
2186
|
module.exports = ReactElement;
|
|
2166
|
-
},{"11":11,"20":20,"
|
|
2187
|
+
},{"11":11,"20":20,"30":30,"31":31,"8":8}],11:[function(_dereq_,module,exports){
|
|
2167
2188
|
/**
|
|
2168
2189
|
* Copyright 2014-present, Facebook, Inc.
|
|
2169
2190
|
* All rights reserved.
|
|
@@ -2211,7 +2232,7 @@ var checkReactTypeSpec = _dereq_(21);
|
|
|
2211
2232
|
|
|
2212
2233
|
var canDefineProperty = _dereq_(20);
|
|
2213
2234
|
var getIteratorFn = _dereq_(22);
|
|
2214
|
-
var warning = _dereq_(
|
|
2235
|
+
var warning = _dereq_(30);
|
|
2215
2236
|
|
|
2216
2237
|
function getDeclarationErrorAddendum() {
|
|
2217
2238
|
if (ReactCurrentOwner.current) {
|
|
@@ -2223,6 +2244,16 @@ function getDeclarationErrorAddendum() {
|
|
|
2223
2244
|
return '';
|
|
2224
2245
|
}
|
|
2225
2246
|
|
|
2247
|
+
function getSourceInfoErrorAddendum(elementProps) {
|
|
2248
|
+
if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
|
|
2249
|
+
var source = elementProps.__source;
|
|
2250
|
+
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
|
2251
|
+
var lineNumber = source.lineNumber;
|
|
2252
|
+
return ' Check your code at ' + fileName + ':' + lineNumber + '.';
|
|
2253
|
+
}
|
|
2254
|
+
return '';
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2226
2257
|
/**
|
|
2227
2258
|
* Warn if there's no key explicitly set on dynamic arrays of children or
|
|
2228
2259
|
* object keys are not valid. This allows us to keep track of children between
|
|
@@ -2353,7 +2384,16 @@ var ReactElementValidator = {
|
|
|
2353
2384
|
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
2354
2385
|
info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
|
|
2355
2386
|
}
|
|
2356
|
-
|
|
2387
|
+
|
|
2388
|
+
var sourceInfo = getSourceInfoErrorAddendum(props);
|
|
2389
|
+
if (sourceInfo) {
|
|
2390
|
+
info += sourceInfo;
|
|
2391
|
+
} else {
|
|
2392
|
+
info += getDeclarationErrorAddendum();
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
info += ReactComponentTreeHook.getCurrentStackAddendum();
|
|
2396
|
+
|
|
2357
2397
|
"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;
|
|
2358
2398
|
}
|
|
2359
2399
|
}
|
|
@@ -2417,7 +2457,7 @@ var ReactElementValidator = {
|
|
|
2417
2457
|
};
|
|
2418
2458
|
|
|
2419
2459
|
module.exports = ReactElementValidator;
|
|
2420
|
-
},{"10":10,"20":20,"21":21,"22":22,"
|
|
2460
|
+
},{"10":10,"20":20,"21":21,"22":22,"30":30,"7":7,"8":8}],13:[function(_dereq_,module,exports){
|
|
2421
2461
|
/**
|
|
2422
2462
|
* Copyright 2015-present, Facebook, Inc.
|
|
2423
2463
|
* All rights reserved.
|
|
@@ -2430,7 +2470,7 @@ module.exports = ReactElementValidator;
|
|
|
2430
2470
|
|
|
2431
2471
|
'use strict';
|
|
2432
2472
|
|
|
2433
|
-
var warning = _dereq_(
|
|
2473
|
+
var warning = _dereq_(30);
|
|
2434
2474
|
|
|
2435
2475
|
function warnNoop(publicInstance, callerName) {
|
|
2436
2476
|
if ("development" !== 'production') {
|
|
@@ -2513,7 +2553,7 @@ var ReactNoopUpdateQueue = {
|
|
|
2513
2553
|
};
|
|
2514
2554
|
|
|
2515
2555
|
module.exports = ReactNoopUpdateQueue;
|
|
2516
|
-
},{"
|
|
2556
|
+
},{"30":30}],14:[function(_dereq_,module,exports){
|
|
2517
2557
|
/**
|
|
2518
2558
|
* Copyright 2013-present, Facebook, Inc.
|
|
2519
2559
|
* All rights reserved.
|
|
@@ -2551,428 +2591,13 @@ module.exports = ReactPropTypeLocationNames;
|
|
|
2551
2591
|
|
|
2552
2592
|
'use strict';
|
|
2553
2593
|
|
|
2554
|
-
var
|
|
2555
|
-
|
|
2556
|
-
var ReactPropTypesSecret = _dereq_(16);
|
|
2557
|
-
|
|
2558
|
-
var emptyFunction = _dereq_(26);
|
|
2559
|
-
var getIteratorFn = _dereq_(22);
|
|
2560
|
-
var warning = _dereq_(29);
|
|
2561
|
-
|
|
2562
|
-
/**
|
|
2563
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
2564
|
-
* supplied to React components. Example usage:
|
|
2565
|
-
*
|
|
2566
|
-
* var Props = require('ReactPropTypes');
|
|
2567
|
-
* var MyArticle = React.createClass({
|
|
2568
|
-
* propTypes: {
|
|
2569
|
-
* // An optional string prop named "description".
|
|
2570
|
-
* description: Props.string,
|
|
2571
|
-
*
|
|
2572
|
-
* // A required enum prop named "category".
|
|
2573
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
2574
|
-
*
|
|
2575
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
2576
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
2577
|
-
* },
|
|
2578
|
-
* render: function() { ... }
|
|
2579
|
-
* });
|
|
2580
|
-
*
|
|
2581
|
-
* A more formal specification of how these methods are used:
|
|
2582
|
-
*
|
|
2583
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
2584
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
2585
|
-
*
|
|
2586
|
-
* Each and every declaration produces a function with the same signature. This
|
|
2587
|
-
* allows the creation of custom validation functions. For example:
|
|
2588
|
-
*
|
|
2589
|
-
* var MyLink = React.createClass({
|
|
2590
|
-
* propTypes: {
|
|
2591
|
-
* // An optional string or URI prop named "href".
|
|
2592
|
-
* href: function(props, propName, componentName) {
|
|
2593
|
-
* var propValue = props[propName];
|
|
2594
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
2595
|
-
* !(propValue instanceof URI)) {
|
|
2596
|
-
* return new Error(
|
|
2597
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
2598
|
-
* componentName
|
|
2599
|
-
* );
|
|
2600
|
-
* }
|
|
2601
|
-
* }
|
|
2602
|
-
* },
|
|
2603
|
-
* render: function() {...}
|
|
2604
|
-
* });
|
|
2605
|
-
*
|
|
2606
|
-
* @internal
|
|
2607
|
-
*/
|
|
2608
|
-
|
|
2609
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
2610
|
-
|
|
2611
|
-
var ReactPropTypes = {
|
|
2612
|
-
array: createPrimitiveTypeChecker('array'),
|
|
2613
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
2614
|
-
func: createPrimitiveTypeChecker('function'),
|
|
2615
|
-
number: createPrimitiveTypeChecker('number'),
|
|
2616
|
-
object: createPrimitiveTypeChecker('object'),
|
|
2617
|
-
string: createPrimitiveTypeChecker('string'),
|
|
2618
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
2619
|
-
|
|
2620
|
-
any: createAnyTypeChecker(),
|
|
2621
|
-
arrayOf: createArrayOfTypeChecker,
|
|
2622
|
-
element: createElementTypeChecker(),
|
|
2623
|
-
instanceOf: createInstanceTypeChecker,
|
|
2624
|
-
node: createNodeChecker(),
|
|
2625
|
-
objectOf: createObjectOfTypeChecker,
|
|
2626
|
-
oneOf: createEnumTypeChecker,
|
|
2627
|
-
oneOfType: createUnionTypeChecker,
|
|
2628
|
-
shape: createShapeTypeChecker
|
|
2629
|
-
};
|
|
2594
|
+
var _require = _dereq_(10),
|
|
2595
|
+
isValidElement = _require.isValidElement;
|
|
2630
2596
|
|
|
2631
|
-
|
|
2632
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
2633
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
2634
|
-
*/
|
|
2635
|
-
/*eslint-disable no-self-compare*/
|
|
2636
|
-
function is(x, y) {
|
|
2637
|
-
// SameValue algorithm
|
|
2638
|
-
if (x === y) {
|
|
2639
|
-
// Steps 1-5, 7-10
|
|
2640
|
-
// Steps 6.b-6.e: +0 != -0
|
|
2641
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
2642
|
-
} else {
|
|
2643
|
-
// Step 6.a: NaN == NaN
|
|
2644
|
-
return x !== x && y !== y;
|
|
2645
|
-
}
|
|
2646
|
-
}
|
|
2647
|
-
/*eslint-enable no-self-compare*/
|
|
2597
|
+
var factory = _dereq_(33);
|
|
2648
2598
|
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
* PropTypes directly and inspect their output. However we don't use real
|
|
2652
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
2653
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
2654
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
2655
|
-
*/
|
|
2656
|
-
function PropTypeError(message) {
|
|
2657
|
-
this.message = message;
|
|
2658
|
-
this.stack = '';
|
|
2659
|
-
}
|
|
2660
|
-
// Make `instanceof Error` still work for returned errors.
|
|
2661
|
-
PropTypeError.prototype = Error.prototype;
|
|
2662
|
-
|
|
2663
|
-
function createChainableTypeChecker(validate) {
|
|
2664
|
-
if ("development" !== 'production') {
|
|
2665
|
-
var manualPropTypeCallCache = {};
|
|
2666
|
-
}
|
|
2667
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
2668
|
-
componentName = componentName || ANONYMOUS;
|
|
2669
|
-
propFullName = propFullName || propName;
|
|
2670
|
-
if ("development" !== 'production') {
|
|
2671
|
-
if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') {
|
|
2672
|
-
var cacheKey = componentName + ':' + propName;
|
|
2673
|
-
if (!manualPropTypeCallCache[cacheKey]) {
|
|
2674
|
-
"development" !== 'production' ? warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will not work in production with the next major version. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.', propFullName, componentName) : void 0;
|
|
2675
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
2676
|
-
}
|
|
2677
|
-
}
|
|
2678
|
-
}
|
|
2679
|
-
if (props[propName] == null) {
|
|
2680
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2681
|
-
if (isRequired) {
|
|
2682
|
-
if (props[propName] === null) {
|
|
2683
|
-
return new PropTypeError('The ' + locationName + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
2684
|
-
}
|
|
2685
|
-
return new PropTypeError('The ' + locationName + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
2686
|
-
}
|
|
2687
|
-
return null;
|
|
2688
|
-
} else {
|
|
2689
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
2690
|
-
}
|
|
2691
|
-
}
|
|
2692
|
-
|
|
2693
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
2694
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
2695
|
-
|
|
2696
|
-
return chainedCheckType;
|
|
2697
|
-
}
|
|
2698
|
-
|
|
2699
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
2700
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
2701
|
-
var propValue = props[propName];
|
|
2702
|
-
var propType = getPropType(propValue);
|
|
2703
|
-
if (propType !== expectedType) {
|
|
2704
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2705
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
2706
|
-
// check, but we can offer a more precise error message here rather than
|
|
2707
|
-
// 'of type `object`'.
|
|
2708
|
-
var preciseType = getPreciseType(propValue);
|
|
2709
|
-
|
|
2710
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
2711
|
-
}
|
|
2712
|
-
return null;
|
|
2713
|
-
}
|
|
2714
|
-
return createChainableTypeChecker(validate);
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
|
-
function createAnyTypeChecker() {
|
|
2718
|
-
return createChainableTypeChecker(emptyFunction.thatReturns(null));
|
|
2719
|
-
}
|
|
2720
|
-
|
|
2721
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
2722
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2723
|
-
if (typeof typeChecker !== 'function') {
|
|
2724
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
2725
|
-
}
|
|
2726
|
-
var propValue = props[propName];
|
|
2727
|
-
if (!Array.isArray(propValue)) {
|
|
2728
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2729
|
-
var propType = getPropType(propValue);
|
|
2730
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
2731
|
-
}
|
|
2732
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
2733
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
2734
|
-
if (error instanceof Error) {
|
|
2735
|
-
return error;
|
|
2736
|
-
}
|
|
2737
|
-
}
|
|
2738
|
-
return null;
|
|
2739
|
-
}
|
|
2740
|
-
return createChainableTypeChecker(validate);
|
|
2741
|
-
}
|
|
2742
|
-
|
|
2743
|
-
function createElementTypeChecker() {
|
|
2744
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2745
|
-
var propValue = props[propName];
|
|
2746
|
-
if (!ReactElement.isValidElement(propValue)) {
|
|
2747
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2748
|
-
var propType = getPropType(propValue);
|
|
2749
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
2750
|
-
}
|
|
2751
|
-
return null;
|
|
2752
|
-
}
|
|
2753
|
-
return createChainableTypeChecker(validate);
|
|
2754
|
-
}
|
|
2755
|
-
|
|
2756
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
2757
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2758
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
2759
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2760
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
2761
|
-
var actualClassName = getClassName(props[propName]);
|
|
2762
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
2763
|
-
}
|
|
2764
|
-
return null;
|
|
2765
|
-
}
|
|
2766
|
-
return createChainableTypeChecker(validate);
|
|
2767
|
-
}
|
|
2768
|
-
|
|
2769
|
-
function createEnumTypeChecker(expectedValues) {
|
|
2770
|
-
if (!Array.isArray(expectedValues)) {
|
|
2771
|
-
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
|
|
2772
|
-
return emptyFunction.thatReturnsNull;
|
|
2773
|
-
}
|
|
2774
|
-
|
|
2775
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2776
|
-
var propValue = props[propName];
|
|
2777
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
2778
|
-
if (is(propValue, expectedValues[i])) {
|
|
2779
|
-
return null;
|
|
2780
|
-
}
|
|
2781
|
-
}
|
|
2782
|
-
|
|
2783
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2784
|
-
var valuesString = JSON.stringify(expectedValues);
|
|
2785
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
2786
|
-
}
|
|
2787
|
-
return createChainableTypeChecker(validate);
|
|
2788
|
-
}
|
|
2789
|
-
|
|
2790
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
2791
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2792
|
-
if (typeof typeChecker !== 'function') {
|
|
2793
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
2794
|
-
}
|
|
2795
|
-
var propValue = props[propName];
|
|
2796
|
-
var propType = getPropType(propValue);
|
|
2797
|
-
if (propType !== 'object') {
|
|
2798
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2799
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
2800
|
-
}
|
|
2801
|
-
for (var key in propValue) {
|
|
2802
|
-
if (propValue.hasOwnProperty(key)) {
|
|
2803
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
2804
|
-
if (error instanceof Error) {
|
|
2805
|
-
return error;
|
|
2806
|
-
}
|
|
2807
|
-
}
|
|
2808
|
-
}
|
|
2809
|
-
return null;
|
|
2810
|
-
}
|
|
2811
|
-
return createChainableTypeChecker(validate);
|
|
2812
|
-
}
|
|
2813
|
-
|
|
2814
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
2815
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
2816
|
-
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
2817
|
-
return emptyFunction.thatReturnsNull;
|
|
2818
|
-
}
|
|
2819
|
-
|
|
2820
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2821
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
2822
|
-
var checker = arrayOfTypeCheckers[i];
|
|
2823
|
-
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
|
2824
|
-
return null;
|
|
2825
|
-
}
|
|
2826
|
-
}
|
|
2827
|
-
|
|
2828
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2829
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
2830
|
-
}
|
|
2831
|
-
return createChainableTypeChecker(validate);
|
|
2832
|
-
}
|
|
2833
|
-
|
|
2834
|
-
function createNodeChecker() {
|
|
2835
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2836
|
-
if (!isNode(props[propName])) {
|
|
2837
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2838
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
2839
|
-
}
|
|
2840
|
-
return null;
|
|
2841
|
-
}
|
|
2842
|
-
return createChainableTypeChecker(validate);
|
|
2843
|
-
}
|
|
2844
|
-
|
|
2845
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
2846
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2847
|
-
var propValue = props[propName];
|
|
2848
|
-
var propType = getPropType(propValue);
|
|
2849
|
-
if (propType !== 'object') {
|
|
2850
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2851
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
2852
|
-
}
|
|
2853
|
-
for (var key in shapeTypes) {
|
|
2854
|
-
var checker = shapeTypes[key];
|
|
2855
|
-
if (!checker) {
|
|
2856
|
-
continue;
|
|
2857
|
-
}
|
|
2858
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
2859
|
-
if (error) {
|
|
2860
|
-
return error;
|
|
2861
|
-
}
|
|
2862
|
-
}
|
|
2863
|
-
return null;
|
|
2864
|
-
}
|
|
2865
|
-
return createChainableTypeChecker(validate);
|
|
2866
|
-
}
|
|
2867
|
-
|
|
2868
|
-
function isNode(propValue) {
|
|
2869
|
-
switch (typeof propValue) {
|
|
2870
|
-
case 'number':
|
|
2871
|
-
case 'string':
|
|
2872
|
-
case 'undefined':
|
|
2873
|
-
return true;
|
|
2874
|
-
case 'boolean':
|
|
2875
|
-
return !propValue;
|
|
2876
|
-
case 'object':
|
|
2877
|
-
if (Array.isArray(propValue)) {
|
|
2878
|
-
return propValue.every(isNode);
|
|
2879
|
-
}
|
|
2880
|
-
if (propValue === null || ReactElement.isValidElement(propValue)) {
|
|
2881
|
-
return true;
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
2885
|
-
if (iteratorFn) {
|
|
2886
|
-
var iterator = iteratorFn.call(propValue);
|
|
2887
|
-
var step;
|
|
2888
|
-
if (iteratorFn !== propValue.entries) {
|
|
2889
|
-
while (!(step = iterator.next()).done) {
|
|
2890
|
-
if (!isNode(step.value)) {
|
|
2891
|
-
return false;
|
|
2892
|
-
}
|
|
2893
|
-
}
|
|
2894
|
-
} else {
|
|
2895
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
2896
|
-
while (!(step = iterator.next()).done) {
|
|
2897
|
-
var entry = step.value;
|
|
2898
|
-
if (entry) {
|
|
2899
|
-
if (!isNode(entry[1])) {
|
|
2900
|
-
return false;
|
|
2901
|
-
}
|
|
2902
|
-
}
|
|
2903
|
-
}
|
|
2904
|
-
}
|
|
2905
|
-
} else {
|
|
2906
|
-
return false;
|
|
2907
|
-
}
|
|
2908
|
-
|
|
2909
|
-
return true;
|
|
2910
|
-
default:
|
|
2911
|
-
return false;
|
|
2912
|
-
}
|
|
2913
|
-
}
|
|
2914
|
-
|
|
2915
|
-
function isSymbol(propType, propValue) {
|
|
2916
|
-
// Native Symbol.
|
|
2917
|
-
if (propType === 'symbol') {
|
|
2918
|
-
return true;
|
|
2919
|
-
}
|
|
2920
|
-
|
|
2921
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
2922
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
2923
|
-
return true;
|
|
2924
|
-
}
|
|
2925
|
-
|
|
2926
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
2927
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
2928
|
-
return true;
|
|
2929
|
-
}
|
|
2930
|
-
|
|
2931
|
-
return false;
|
|
2932
|
-
}
|
|
2933
|
-
|
|
2934
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
2935
|
-
function getPropType(propValue) {
|
|
2936
|
-
var propType = typeof propValue;
|
|
2937
|
-
if (Array.isArray(propValue)) {
|
|
2938
|
-
return 'array';
|
|
2939
|
-
}
|
|
2940
|
-
if (propValue instanceof RegExp) {
|
|
2941
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
2942
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
2943
|
-
// passes PropTypes.object.
|
|
2944
|
-
return 'object';
|
|
2945
|
-
}
|
|
2946
|
-
if (isSymbol(propType, propValue)) {
|
|
2947
|
-
return 'symbol';
|
|
2948
|
-
}
|
|
2949
|
-
return propType;
|
|
2950
|
-
}
|
|
2951
|
-
|
|
2952
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
2953
|
-
// See `createPrimitiveTypeChecker`.
|
|
2954
|
-
function getPreciseType(propValue) {
|
|
2955
|
-
var propType = getPropType(propValue);
|
|
2956
|
-
if (propType === 'object') {
|
|
2957
|
-
if (propValue instanceof Date) {
|
|
2958
|
-
return 'date';
|
|
2959
|
-
} else if (propValue instanceof RegExp) {
|
|
2960
|
-
return 'regexp';
|
|
2961
|
-
}
|
|
2962
|
-
}
|
|
2963
|
-
return propType;
|
|
2964
|
-
}
|
|
2965
|
-
|
|
2966
|
-
// Returns class name of the object, if any.
|
|
2967
|
-
function getClassName(propValue) {
|
|
2968
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
2969
|
-
return ANONYMOUS;
|
|
2970
|
-
}
|
|
2971
|
-
return propValue.constructor.name;
|
|
2972
|
-
}
|
|
2973
|
-
|
|
2974
|
-
module.exports = ReactPropTypes;
|
|
2975
|
-
},{"10":10,"14":14,"16":16,"22":22,"26":26,"29":29}],16:[function(_dereq_,module,exports){
|
|
2599
|
+
module.exports = factory(isValidElement);
|
|
2600
|
+
},{"10":10,"33":33}],16:[function(_dereq_,module,exports){
|
|
2976
2601
|
/**
|
|
2977
2602
|
* Copyright 2013-present, Facebook, Inc.
|
|
2978
2603
|
* All rights reserved.
|
|
@@ -3002,12 +2627,12 @@ module.exports = ReactPropTypesSecret;
|
|
|
3002
2627
|
|
|
3003
2628
|
'use strict';
|
|
3004
2629
|
|
|
3005
|
-
var _assign = _dereq_(
|
|
2630
|
+
var _assign = _dereq_(31);
|
|
3006
2631
|
|
|
3007
2632
|
var ReactComponent = _dereq_(6);
|
|
3008
2633
|
var ReactNoopUpdateQueue = _dereq_(13);
|
|
3009
2634
|
|
|
3010
|
-
var emptyObject = _dereq_(
|
|
2635
|
+
var emptyObject = _dereq_(28);
|
|
3011
2636
|
|
|
3012
2637
|
/**
|
|
3013
2638
|
* Base class helpers for the updating state of a component.
|
|
@@ -3031,7 +2656,7 @@ _assign(ReactPureComponent.prototype, ReactComponent.prototype);
|
|
|
3031
2656
|
ReactPureComponent.prototype.isPureReactComponent = true;
|
|
3032
2657
|
|
|
3033
2658
|
module.exports = ReactPureComponent;
|
|
3034
|
-
},{"13":13,"
|
|
2659
|
+
},{"13":13,"28":28,"31":31,"6":6}],18:[function(_dereq_,module,exports){
|
|
3035
2660
|
/**
|
|
3036
2661
|
* Copyright 2013-present, Facebook, Inc.
|
|
3037
2662
|
* All rights reserved.
|
|
@@ -3044,26 +2669,27 @@ module.exports = ReactPureComponent;
|
|
|
3044
2669
|
|
|
3045
2670
|
'use strict';
|
|
3046
2671
|
|
|
3047
|
-
var _assign = _dereq_(
|
|
2672
|
+
var _assign = _dereq_(31);
|
|
3048
2673
|
|
|
3049
2674
|
var React = _dereq_(3);
|
|
3050
2675
|
|
|
3051
2676
|
// `version` will be added here by the React module.
|
|
3052
|
-
var ReactUMDEntry = _assign({
|
|
2677
|
+
var ReactUMDEntry = _assign(React, {
|
|
3053
2678
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
|
3054
2679
|
ReactCurrentOwner: _dereq_(8)
|
|
3055
2680
|
}
|
|
3056
|
-
}
|
|
2681
|
+
});
|
|
3057
2682
|
|
|
3058
2683
|
if ("development" !== 'production') {
|
|
3059
2684
|
_assign(ReactUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
|
|
3060
2685
|
// ReactComponentTreeHook should not be included in production.
|
|
3061
|
-
ReactComponentTreeHook: _dereq_(7)
|
|
2686
|
+
ReactComponentTreeHook: _dereq_(7),
|
|
2687
|
+
getNextDebugID: _dereq_(23)
|
|
3062
2688
|
});
|
|
3063
2689
|
}
|
|
3064
2690
|
|
|
3065
2691
|
module.exports = ReactUMDEntry;
|
|
3066
|
-
},{"3":3,"
|
|
2692
|
+
},{"23":23,"3":3,"31":31,"7":7,"8":8}],19:[function(_dereq_,module,exports){
|
|
3067
2693
|
/**
|
|
3068
2694
|
* Copyright 2013-present, Facebook, Inc.
|
|
3069
2695
|
* All rights reserved.
|
|
@@ -3076,7 +2702,7 @@ module.exports = ReactUMDEntry;
|
|
|
3076
2702
|
|
|
3077
2703
|
'use strict';
|
|
3078
2704
|
|
|
3079
|
-
module.exports = '15.
|
|
2705
|
+
module.exports = '15.5.1';
|
|
3080
2706
|
},{}],20:[function(_dereq_,module,exports){
|
|
3081
2707
|
/**
|
|
3082
2708
|
* Copyright 2013-present, Facebook, Inc.
|
|
@@ -3117,13 +2743,13 @@ module.exports = canDefineProperty;
|
|
|
3117
2743
|
|
|
3118
2744
|
'use strict';
|
|
3119
2745
|
|
|
3120
|
-
var _prodInvariant = _dereq_(
|
|
2746
|
+
var _prodInvariant = _dereq_(25);
|
|
3121
2747
|
|
|
3122
2748
|
var ReactPropTypeLocationNames = _dereq_(14);
|
|
3123
2749
|
var ReactPropTypesSecret = _dereq_(16);
|
|
3124
2750
|
|
|
3125
|
-
var invariant = _dereq_(
|
|
3126
|
-
var warning = _dereq_(
|
|
2751
|
+
var invariant = _dereq_(29);
|
|
2752
|
+
var warning = _dereq_(30);
|
|
3127
2753
|
|
|
3128
2754
|
var ReactComponentTreeHook;
|
|
3129
2755
|
|
|
@@ -3192,7 +2818,7 @@ function checkReactTypeSpec(typeSpecs, values, location, componentName, element,
|
|
|
3192
2818
|
|
|
3193
2819
|
module.exports = checkReactTypeSpec;
|
|
3194
2820
|
}).call(this,undefined)
|
|
3195
|
-
},{"14":14,"16":16,"
|
|
2821
|
+
},{"14":14,"16":16,"25":25,"29":29,"30":30,"7":7}],22:[function(_dereq_,module,exports){
|
|
3196
2822
|
/**
|
|
3197
2823
|
* Copyright 2013-present, Facebook, Inc.
|
|
3198
2824
|
* All rights reserved.
|
|
@@ -3242,14 +2868,35 @@ module.exports = getIteratorFn;
|
|
|
3242
2868
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
3243
2869
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
3244
2870
|
*
|
|
2871
|
+
*
|
|
3245
2872
|
*/
|
|
2873
|
+
|
|
3246
2874
|
'use strict';
|
|
3247
2875
|
|
|
3248
|
-
var
|
|
2876
|
+
var nextDebugID = 1;
|
|
2877
|
+
|
|
2878
|
+
function getNextDebugID() {
|
|
2879
|
+
return nextDebugID++;
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
module.exports = getNextDebugID;
|
|
2883
|
+
},{}],24:[function(_dereq_,module,exports){
|
|
2884
|
+
/**
|
|
2885
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
2886
|
+
* All rights reserved.
|
|
2887
|
+
*
|
|
2888
|
+
* This source code is licensed under the BSD-style license found in the
|
|
2889
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
2890
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
2891
|
+
*
|
|
2892
|
+
*/
|
|
2893
|
+
'use strict';
|
|
2894
|
+
|
|
2895
|
+
var _prodInvariant = _dereq_(25);
|
|
3249
2896
|
|
|
3250
2897
|
var ReactElement = _dereq_(10);
|
|
3251
2898
|
|
|
3252
|
-
var invariant = _dereq_(
|
|
2899
|
+
var invariant = _dereq_(29);
|
|
3253
2900
|
|
|
3254
2901
|
/**
|
|
3255
2902
|
* Returns the first child in a collection of children and verifies that there
|
|
@@ -3271,7 +2918,7 @@ function onlyChild(children) {
|
|
|
3271
2918
|
}
|
|
3272
2919
|
|
|
3273
2920
|
module.exports = onlyChild;
|
|
3274
|
-
},{"10":10,"
|
|
2921
|
+
},{"10":10,"25":25,"29":29}],25:[function(_dereq_,module,exports){
|
|
3275
2922
|
/**
|
|
3276
2923
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3277
2924
|
* All rights reserved.
|
|
@@ -3310,7 +2957,7 @@ function reactProdInvariant(code) {
|
|
|
3310
2957
|
}
|
|
3311
2958
|
|
|
3312
2959
|
module.exports = reactProdInvariant;
|
|
3313
|
-
},{}],
|
|
2960
|
+
},{}],26:[function(_dereq_,module,exports){
|
|
3314
2961
|
/**
|
|
3315
2962
|
* Copyright 2013-present, Facebook, Inc.
|
|
3316
2963
|
* All rights reserved.
|
|
@@ -3323,15 +2970,15 @@ module.exports = reactProdInvariant;
|
|
|
3323
2970
|
|
|
3324
2971
|
'use strict';
|
|
3325
2972
|
|
|
3326
|
-
var _prodInvariant = _dereq_(
|
|
2973
|
+
var _prodInvariant = _dereq_(25);
|
|
3327
2974
|
|
|
3328
2975
|
var ReactCurrentOwner = _dereq_(8);
|
|
3329
2976
|
var REACT_ELEMENT_TYPE = _dereq_(11);
|
|
3330
2977
|
|
|
3331
2978
|
var getIteratorFn = _dereq_(22);
|
|
3332
|
-
var invariant = _dereq_(
|
|
2979
|
+
var invariant = _dereq_(29);
|
|
3333
2980
|
var KeyEscapeUtils = _dereq_(1);
|
|
3334
|
-
var warning = _dereq_(
|
|
2981
|
+
var warning = _dereq_(30);
|
|
3335
2982
|
|
|
3336
2983
|
var SEPARATOR = '.';
|
|
3337
2984
|
var SUBSEPARATOR = ':';
|
|
@@ -3486,7 +3133,7 @@ function traverseAllChildren(children, callback, traverseContext) {
|
|
|
3486
3133
|
}
|
|
3487
3134
|
|
|
3488
3135
|
module.exports = traverseAllChildren;
|
|
3489
|
-
},{"1":1,"11":11,"22":22,"
|
|
3136
|
+
},{"1":1,"11":11,"22":22,"25":25,"29":29,"30":30,"8":8}],27:[function(_dereq_,module,exports){
|
|
3490
3137
|
"use strict";
|
|
3491
3138
|
|
|
3492
3139
|
/**
|
|
@@ -3525,7 +3172,7 @@ emptyFunction.thatReturnsArgument = function (arg) {
|
|
|
3525
3172
|
};
|
|
3526
3173
|
|
|
3527
3174
|
module.exports = emptyFunction;
|
|
3528
|
-
},{}],
|
|
3175
|
+
},{}],28:[function(_dereq_,module,exports){
|
|
3529
3176
|
/**
|
|
3530
3177
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3531
3178
|
* All rights reserved.
|
|
@@ -3545,7 +3192,7 @@ if ("development" !== 'production') {
|
|
|
3545
3192
|
}
|
|
3546
3193
|
|
|
3547
3194
|
module.exports = emptyObject;
|
|
3548
|
-
},{}],
|
|
3195
|
+
},{}],29:[function(_dereq_,module,exports){
|
|
3549
3196
|
/**
|
|
3550
3197
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3551
3198
|
* All rights reserved.
|
|
@@ -3601,7 +3248,7 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
3601
3248
|
}
|
|
3602
3249
|
|
|
3603
3250
|
module.exports = invariant;
|
|
3604
|
-
},{}],
|
|
3251
|
+
},{}],30:[function(_dereq_,module,exports){
|
|
3605
3252
|
/**
|
|
3606
3253
|
* Copyright 2014-2015, Facebook, Inc.
|
|
3607
3254
|
* All rights reserved.
|
|
@@ -3614,7 +3261,7 @@ module.exports = invariant;
|
|
|
3614
3261
|
|
|
3615
3262
|
'use strict';
|
|
3616
3263
|
|
|
3617
|
-
var emptyFunction = _dereq_(
|
|
3264
|
+
var emptyFunction = _dereq_(27);
|
|
3618
3265
|
|
|
3619
3266
|
/**
|
|
3620
3267
|
* Similar to invariant but only logs a warning if the condition is not met.
|
|
@@ -3668,9 +3315,16 @@ if ("development" !== 'production') {
|
|
|
3668
3315
|
}
|
|
3669
3316
|
|
|
3670
3317
|
module.exports = warning;
|
|
3671
|
-
},{"
|
|
3318
|
+
},{"27":27}],31:[function(_dereq_,module,exports){
|
|
3319
|
+
/*
|
|
3320
|
+
object-assign
|
|
3321
|
+
(c) Sindre Sorhus
|
|
3322
|
+
@license MIT
|
|
3323
|
+
*/
|
|
3324
|
+
|
|
3672
3325
|
'use strict';
|
|
3673
3326
|
/* eslint-disable no-unused-vars */
|
|
3327
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
3674
3328
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3675
3329
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
3676
3330
|
|
|
@@ -3691,7 +3345,7 @@ function shouldUseNative() {
|
|
|
3691
3345
|
// Detect buggy property enumeration order in older V8 versions.
|
|
3692
3346
|
|
|
3693
3347
|
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
3694
|
-
var test1 = new String('abc'); // eslint-disable-line
|
|
3348
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
3695
3349
|
test1[5] = 'de';
|
|
3696
3350
|
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
3697
3351
|
return false;
|
|
@@ -3720,7 +3374,7 @@ function shouldUseNative() {
|
|
|
3720
3374
|
}
|
|
3721
3375
|
|
|
3722
3376
|
return true;
|
|
3723
|
-
} catch (
|
|
3377
|
+
} catch (err) {
|
|
3724
3378
|
// We don't expect any of the above to throw, but better to be safe.
|
|
3725
3379
|
return false;
|
|
3726
3380
|
}
|
|
@@ -3740,8 +3394,8 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
3740
3394
|
}
|
|
3741
3395
|
}
|
|
3742
3396
|
|
|
3743
|
-
if (
|
|
3744
|
-
symbols =
|
|
3397
|
+
if (getOwnPropertySymbols) {
|
|
3398
|
+
symbols = getOwnPropertySymbols(from);
|
|
3745
3399
|
for (var i = 0; i < symbols.length; i++) {
|
|
3746
3400
|
if (propIsEnumerable.call(from, symbols[i])) {
|
|
3747
3401
|
to[symbols[i]] = from[symbols[i]];
|
|
@@ -3753,5 +3407,570 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
3753
3407
|
return to;
|
|
3754
3408
|
};
|
|
3755
3409
|
|
|
3410
|
+
},{}],32:[function(_dereq_,module,exports){
|
|
3411
|
+
/**
|
|
3412
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
3413
|
+
* All rights reserved.
|
|
3414
|
+
*
|
|
3415
|
+
* This source code is licensed under the BSD-style license found in the
|
|
3416
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
3417
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
3418
|
+
*/
|
|
3419
|
+
|
|
3420
|
+
'use strict';
|
|
3421
|
+
|
|
3422
|
+
var invariant = _dereq_(29);
|
|
3423
|
+
var warning = _dereq_(30);
|
|
3424
|
+
|
|
3425
|
+
var ReactPropTypesSecret = _dereq_(34);
|
|
3426
|
+
|
|
3427
|
+
var loggedTypeFailures = {};
|
|
3428
|
+
|
|
3429
|
+
/**
|
|
3430
|
+
* Assert that the values match with the type specs.
|
|
3431
|
+
* Error messages are memorized and will only be shown once.
|
|
3432
|
+
*
|
|
3433
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
3434
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
3435
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
3436
|
+
* @param {string} componentName Name of the component for error messages.
|
|
3437
|
+
* @param {?Function} getStack Returns the component stack.
|
|
3438
|
+
* @private
|
|
3439
|
+
*/
|
|
3440
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
3441
|
+
if ("development" !== 'production') {
|
|
3442
|
+
for (var typeSpecName in typeSpecs) {
|
|
3443
|
+
if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
|
3444
|
+
var error;
|
|
3445
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
3446
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
3447
|
+
// After these have been cleaned up, we'll let them throw.
|
|
3448
|
+
try {
|
|
3449
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
3450
|
+
// behavior as without this statement except with a better message.
|
|
3451
|
+
invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);
|
|
3452
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
3453
|
+
} catch (ex) {
|
|
3454
|
+
error = ex;
|
|
3455
|
+
}
|
|
3456
|
+
"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;
|
|
3457
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
3458
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
3459
|
+
// same error.
|
|
3460
|
+
loggedTypeFailures[error.message] = true;
|
|
3461
|
+
|
|
3462
|
+
var stack = getStack ? getStack() : '';
|
|
3463
|
+
|
|
3464
|
+
"development" !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '') : void 0;
|
|
3465
|
+
}
|
|
3466
|
+
}
|
|
3467
|
+
}
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
module.exports = checkPropTypes;
|
|
3472
|
+
|
|
3473
|
+
},{"29":29,"30":30,"34":34}],33:[function(_dereq_,module,exports){
|
|
3474
|
+
/**
|
|
3475
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
3476
|
+
* All rights reserved.
|
|
3477
|
+
*
|
|
3478
|
+
* This source code is licensed under the BSD-style license found in the
|
|
3479
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
3480
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
3481
|
+
*/
|
|
3482
|
+
|
|
3483
|
+
'use strict';
|
|
3484
|
+
|
|
3485
|
+
var emptyFunction = _dereq_(27);
|
|
3486
|
+
var invariant = _dereq_(29);
|
|
3487
|
+
var warning = _dereq_(30);
|
|
3488
|
+
|
|
3489
|
+
var ReactPropTypesSecret = _dereq_(34);
|
|
3490
|
+
var checkPropTypes = _dereq_(32);
|
|
3491
|
+
|
|
3492
|
+
module.exports = function (isValidElement) {
|
|
3493
|
+
/* global Symbol */
|
|
3494
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
3495
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
3496
|
+
|
|
3497
|
+
/**
|
|
3498
|
+
* Returns the iterator method function contained on the iterable object.
|
|
3499
|
+
*
|
|
3500
|
+
* Be sure to invoke the function with the iterable as context:
|
|
3501
|
+
*
|
|
3502
|
+
* var iteratorFn = getIteratorFn(myIterable);
|
|
3503
|
+
* if (iteratorFn) {
|
|
3504
|
+
* var iterator = iteratorFn.call(myIterable);
|
|
3505
|
+
* ...
|
|
3506
|
+
* }
|
|
3507
|
+
*
|
|
3508
|
+
* @param {?object} maybeIterable
|
|
3509
|
+
* @return {?function}
|
|
3510
|
+
*/
|
|
3511
|
+
function getIteratorFn(maybeIterable) {
|
|
3512
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
3513
|
+
if (typeof iteratorFn === 'function') {
|
|
3514
|
+
return iteratorFn;
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3518
|
+
/**
|
|
3519
|
+
* Collection of methods that allow declaration and validation of props that are
|
|
3520
|
+
* supplied to React components. Example usage:
|
|
3521
|
+
*
|
|
3522
|
+
* var Props = require('ReactPropTypes');
|
|
3523
|
+
* var MyArticle = React.createClass({
|
|
3524
|
+
* propTypes: {
|
|
3525
|
+
* // An optional string prop named "description".
|
|
3526
|
+
* description: Props.string,
|
|
3527
|
+
*
|
|
3528
|
+
* // A required enum prop named "category".
|
|
3529
|
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
3530
|
+
*
|
|
3531
|
+
* // A prop named "dialog" that requires an instance of Dialog.
|
|
3532
|
+
* dialog: Props.instanceOf(Dialog).isRequired
|
|
3533
|
+
* },
|
|
3534
|
+
* render: function() { ... }
|
|
3535
|
+
* });
|
|
3536
|
+
*
|
|
3537
|
+
* A more formal specification of how these methods are used:
|
|
3538
|
+
*
|
|
3539
|
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
3540
|
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
3541
|
+
*
|
|
3542
|
+
* Each and every declaration produces a function with the same signature. This
|
|
3543
|
+
* allows the creation of custom validation functions. For example:
|
|
3544
|
+
*
|
|
3545
|
+
* var MyLink = React.createClass({
|
|
3546
|
+
* propTypes: {
|
|
3547
|
+
* // An optional string or URI prop named "href".
|
|
3548
|
+
* href: function(props, propName, componentName) {
|
|
3549
|
+
* var propValue = props[propName];
|
|
3550
|
+
* if (propValue != null && typeof propValue !== 'string' &&
|
|
3551
|
+
* !(propValue instanceof URI)) {
|
|
3552
|
+
* return new Error(
|
|
3553
|
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
3554
|
+
* componentName
|
|
3555
|
+
* );
|
|
3556
|
+
* }
|
|
3557
|
+
* }
|
|
3558
|
+
* },
|
|
3559
|
+
* render: function() {...}
|
|
3560
|
+
* });
|
|
3561
|
+
*
|
|
3562
|
+
* @internal
|
|
3563
|
+
*/
|
|
3564
|
+
|
|
3565
|
+
var ANONYMOUS = '<<anonymous>>';
|
|
3566
|
+
|
|
3567
|
+
var ReactPropTypes;
|
|
3568
|
+
|
|
3569
|
+
if ("development" !== 'production') {
|
|
3570
|
+
// Keep in sync with production version below
|
|
3571
|
+
ReactPropTypes = {
|
|
3572
|
+
array: createPrimitiveTypeChecker('array'),
|
|
3573
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
|
3574
|
+
func: createPrimitiveTypeChecker('function'),
|
|
3575
|
+
number: createPrimitiveTypeChecker('number'),
|
|
3576
|
+
object: createPrimitiveTypeChecker('object'),
|
|
3577
|
+
string: createPrimitiveTypeChecker('string'),
|
|
3578
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
|
3579
|
+
|
|
3580
|
+
any: createAnyTypeChecker(),
|
|
3581
|
+
arrayOf: createArrayOfTypeChecker,
|
|
3582
|
+
element: createElementTypeChecker(),
|
|
3583
|
+
instanceOf: createInstanceTypeChecker,
|
|
3584
|
+
node: createNodeChecker(),
|
|
3585
|
+
objectOf: createObjectOfTypeChecker,
|
|
3586
|
+
oneOf: createEnumTypeChecker,
|
|
3587
|
+
oneOfType: createUnionTypeChecker,
|
|
3588
|
+
shape: createShapeTypeChecker
|
|
3589
|
+
};
|
|
3590
|
+
} else {
|
|
3591
|
+
var productionTypeChecker = function () {
|
|
3592
|
+
invariant(false, 'React.PropTypes type checking code is stripped in production.');
|
|
3593
|
+
};
|
|
3594
|
+
productionTypeChecker.isRequired = productionTypeChecker;
|
|
3595
|
+
var getProductionTypeChecker = function () {
|
|
3596
|
+
return productionTypeChecker;
|
|
3597
|
+
};
|
|
3598
|
+
// Keep in sync with development version above
|
|
3599
|
+
ReactPropTypes = {
|
|
3600
|
+
array: productionTypeChecker,
|
|
3601
|
+
bool: productionTypeChecker,
|
|
3602
|
+
func: productionTypeChecker,
|
|
3603
|
+
number: productionTypeChecker,
|
|
3604
|
+
object: productionTypeChecker,
|
|
3605
|
+
string: productionTypeChecker,
|
|
3606
|
+
symbol: productionTypeChecker,
|
|
3607
|
+
|
|
3608
|
+
any: productionTypeChecker,
|
|
3609
|
+
arrayOf: getProductionTypeChecker,
|
|
3610
|
+
element: productionTypeChecker,
|
|
3611
|
+
instanceOf: getProductionTypeChecker,
|
|
3612
|
+
node: productionTypeChecker,
|
|
3613
|
+
objectOf: getProductionTypeChecker,
|
|
3614
|
+
oneOf: getProductionTypeChecker,
|
|
3615
|
+
oneOfType: getProductionTypeChecker,
|
|
3616
|
+
shape: getProductionTypeChecker
|
|
3617
|
+
};
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
/**
|
|
3621
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
3622
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
3623
|
+
*/
|
|
3624
|
+
/*eslint-disable no-self-compare*/
|
|
3625
|
+
function is(x, y) {
|
|
3626
|
+
// SameValue algorithm
|
|
3627
|
+
if (x === y) {
|
|
3628
|
+
// Steps 1-5, 7-10
|
|
3629
|
+
// Steps 6.b-6.e: +0 != -0
|
|
3630
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
3631
|
+
} else {
|
|
3632
|
+
// Step 6.a: NaN == NaN
|
|
3633
|
+
return x !== x && y !== y;
|
|
3634
|
+
}
|
|
3635
|
+
}
|
|
3636
|
+
/*eslint-enable no-self-compare*/
|
|
3637
|
+
|
|
3638
|
+
/**
|
|
3639
|
+
* We use an Error-like object for backward compatibility as people may call
|
|
3640
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
|
3641
|
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
3642
|
+
* is prohibitively expensive if they are created too often, such as what
|
|
3643
|
+
* happens in oneOfType() for any type before the one that matched.
|
|
3644
|
+
*/
|
|
3645
|
+
function PropTypeError(message) {
|
|
3646
|
+
this.message = message;
|
|
3647
|
+
this.stack = '';
|
|
3648
|
+
}
|
|
3649
|
+
// Make `instanceof Error` still work for returned errors.
|
|
3650
|
+
PropTypeError.prototype = Error.prototype;
|
|
3651
|
+
|
|
3652
|
+
function createChainableTypeChecker(validate) {
|
|
3653
|
+
if ("development" !== 'production') {
|
|
3654
|
+
var manualPropTypeCallCache = {};
|
|
3655
|
+
}
|
|
3656
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
3657
|
+
componentName = componentName || ANONYMOUS;
|
|
3658
|
+
propFullName = propFullName || propName;
|
|
3659
|
+
if ("development" !== 'production') {
|
|
3660
|
+
if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') {
|
|
3661
|
+
var cacheKey = componentName + ':' + propName;
|
|
3662
|
+
if (!manualPropTypeCallCache[cacheKey]) {
|
|
3663
|
+
"development" !== 'production' ? warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will not work in production with the next major version. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.', propFullName, componentName) : void 0;
|
|
3664
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
3665
|
+
}
|
|
3666
|
+
}
|
|
3667
|
+
}
|
|
3668
|
+
if (props[propName] == null) {
|
|
3669
|
+
if (isRequired) {
|
|
3670
|
+
if (props[propName] === null) {
|
|
3671
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
3672
|
+
}
|
|
3673
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
3674
|
+
}
|
|
3675
|
+
return null;
|
|
3676
|
+
} else {
|
|
3677
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
3678
|
+
}
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3681
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
3682
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
3683
|
+
|
|
3684
|
+
return chainedCheckType;
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3687
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
3688
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
3689
|
+
var propValue = props[propName];
|
|
3690
|
+
var propType = getPropType(propValue);
|
|
3691
|
+
if (propType !== expectedType) {
|
|
3692
|
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
3693
|
+
// check, but we can offer a more precise error message here rather than
|
|
3694
|
+
// 'of type `object`'.
|
|
3695
|
+
var preciseType = getPreciseType(propValue);
|
|
3696
|
+
|
|
3697
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
3698
|
+
}
|
|
3699
|
+
return null;
|
|
3700
|
+
}
|
|
3701
|
+
return createChainableTypeChecker(validate);
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3704
|
+
function createAnyTypeChecker() {
|
|
3705
|
+
return createChainableTypeChecker(emptyFunction.thatReturnsNull);
|
|
3706
|
+
}
|
|
3707
|
+
|
|
3708
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
3709
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3710
|
+
if (typeof typeChecker !== 'function') {
|
|
3711
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
3712
|
+
}
|
|
3713
|
+
var propValue = props[propName];
|
|
3714
|
+
if (!Array.isArray(propValue)) {
|
|
3715
|
+
var propType = getPropType(propValue);
|
|
3716
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
3717
|
+
}
|
|
3718
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
3719
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
3720
|
+
if (error instanceof Error) {
|
|
3721
|
+
return error;
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
return null;
|
|
3725
|
+
}
|
|
3726
|
+
return createChainableTypeChecker(validate);
|
|
3727
|
+
}
|
|
3728
|
+
|
|
3729
|
+
function createElementTypeChecker() {
|
|
3730
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3731
|
+
var propValue = props[propName];
|
|
3732
|
+
if (!isValidElement(propValue)) {
|
|
3733
|
+
var propType = getPropType(propValue);
|
|
3734
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
3735
|
+
}
|
|
3736
|
+
return null;
|
|
3737
|
+
}
|
|
3738
|
+
return createChainableTypeChecker(validate);
|
|
3739
|
+
}
|
|
3740
|
+
|
|
3741
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
3742
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3743
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
3744
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
3745
|
+
var actualClassName = getClassName(props[propName]);
|
|
3746
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
3747
|
+
}
|
|
3748
|
+
return null;
|
|
3749
|
+
}
|
|
3750
|
+
return createChainableTypeChecker(validate);
|
|
3751
|
+
}
|
|
3752
|
+
|
|
3753
|
+
function createEnumTypeChecker(expectedValues) {
|
|
3754
|
+
if (!Array.isArray(expectedValues)) {
|
|
3755
|
+
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
|
|
3756
|
+
return emptyFunction.thatReturnsNull;
|
|
3757
|
+
}
|
|
3758
|
+
|
|
3759
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3760
|
+
var propValue = props[propName];
|
|
3761
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
3762
|
+
if (is(propValue, expectedValues[i])) {
|
|
3763
|
+
return null;
|
|
3764
|
+
}
|
|
3765
|
+
}
|
|
3766
|
+
|
|
3767
|
+
var valuesString = JSON.stringify(expectedValues);
|
|
3768
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
3769
|
+
}
|
|
3770
|
+
return createChainableTypeChecker(validate);
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
3774
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3775
|
+
if (typeof typeChecker !== 'function') {
|
|
3776
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
3777
|
+
}
|
|
3778
|
+
var propValue = props[propName];
|
|
3779
|
+
var propType = getPropType(propValue);
|
|
3780
|
+
if (propType !== 'object') {
|
|
3781
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
3782
|
+
}
|
|
3783
|
+
for (var key in propValue) {
|
|
3784
|
+
if (propValue.hasOwnProperty(key)) {
|
|
3785
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
3786
|
+
if (error instanceof Error) {
|
|
3787
|
+
return error;
|
|
3788
|
+
}
|
|
3789
|
+
}
|
|
3790
|
+
}
|
|
3791
|
+
return null;
|
|
3792
|
+
}
|
|
3793
|
+
return createChainableTypeChecker(validate);
|
|
3794
|
+
}
|
|
3795
|
+
|
|
3796
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
3797
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
3798
|
+
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
3799
|
+
return emptyFunction.thatReturnsNull;
|
|
3800
|
+
}
|
|
3801
|
+
|
|
3802
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3803
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
3804
|
+
var checker = arrayOfTypeCheckers[i];
|
|
3805
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
|
3806
|
+
return null;
|
|
3807
|
+
}
|
|
3808
|
+
}
|
|
3809
|
+
|
|
3810
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
3811
|
+
}
|
|
3812
|
+
return createChainableTypeChecker(validate);
|
|
3813
|
+
}
|
|
3814
|
+
|
|
3815
|
+
function createNodeChecker() {
|
|
3816
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3817
|
+
if (!isNode(props[propName])) {
|
|
3818
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
3819
|
+
}
|
|
3820
|
+
return null;
|
|
3821
|
+
}
|
|
3822
|
+
return createChainableTypeChecker(validate);
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3825
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
3826
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3827
|
+
var propValue = props[propName];
|
|
3828
|
+
var propType = getPropType(propValue);
|
|
3829
|
+
if (propType !== 'object') {
|
|
3830
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
3831
|
+
}
|
|
3832
|
+
for (var key in shapeTypes) {
|
|
3833
|
+
var checker = shapeTypes[key];
|
|
3834
|
+
if (!checker) {
|
|
3835
|
+
continue;
|
|
3836
|
+
}
|
|
3837
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
3838
|
+
if (error) {
|
|
3839
|
+
return error;
|
|
3840
|
+
}
|
|
3841
|
+
}
|
|
3842
|
+
return null;
|
|
3843
|
+
}
|
|
3844
|
+
return createChainableTypeChecker(validate);
|
|
3845
|
+
}
|
|
3846
|
+
|
|
3847
|
+
function isNode(propValue) {
|
|
3848
|
+
switch (typeof propValue) {
|
|
3849
|
+
case 'number':
|
|
3850
|
+
case 'string':
|
|
3851
|
+
case 'undefined':
|
|
3852
|
+
return true;
|
|
3853
|
+
case 'boolean':
|
|
3854
|
+
return !propValue;
|
|
3855
|
+
case 'object':
|
|
3856
|
+
if (Array.isArray(propValue)) {
|
|
3857
|
+
return propValue.every(isNode);
|
|
3858
|
+
}
|
|
3859
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
3860
|
+
return true;
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
3864
|
+
if (iteratorFn) {
|
|
3865
|
+
var iterator = iteratorFn.call(propValue);
|
|
3866
|
+
var step;
|
|
3867
|
+
if (iteratorFn !== propValue.entries) {
|
|
3868
|
+
while (!(step = iterator.next()).done) {
|
|
3869
|
+
if (!isNode(step.value)) {
|
|
3870
|
+
return false;
|
|
3871
|
+
}
|
|
3872
|
+
}
|
|
3873
|
+
} else {
|
|
3874
|
+
// Iterator will provide entry [k,v] tuples rather than values.
|
|
3875
|
+
while (!(step = iterator.next()).done) {
|
|
3876
|
+
var entry = step.value;
|
|
3877
|
+
if (entry) {
|
|
3878
|
+
if (!isNode(entry[1])) {
|
|
3879
|
+
return false;
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3882
|
+
}
|
|
3883
|
+
}
|
|
3884
|
+
} else {
|
|
3885
|
+
return false;
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
return true;
|
|
3889
|
+
default:
|
|
3890
|
+
return false;
|
|
3891
|
+
}
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3894
|
+
function isSymbol(propType, propValue) {
|
|
3895
|
+
// Native Symbol.
|
|
3896
|
+
if (propType === 'symbol') {
|
|
3897
|
+
return true;
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
3901
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
3902
|
+
return true;
|
|
3903
|
+
}
|
|
3904
|
+
|
|
3905
|
+
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
3906
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
3907
|
+
return true;
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
return false;
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3913
|
+
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
3914
|
+
function getPropType(propValue) {
|
|
3915
|
+
var propType = typeof propValue;
|
|
3916
|
+
if (Array.isArray(propValue)) {
|
|
3917
|
+
return 'array';
|
|
3918
|
+
}
|
|
3919
|
+
if (propValue instanceof RegExp) {
|
|
3920
|
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
3921
|
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
3922
|
+
// passes PropTypes.object.
|
|
3923
|
+
return 'object';
|
|
3924
|
+
}
|
|
3925
|
+
if (isSymbol(propType, propValue)) {
|
|
3926
|
+
return 'symbol';
|
|
3927
|
+
}
|
|
3928
|
+
return propType;
|
|
3929
|
+
}
|
|
3930
|
+
|
|
3931
|
+
// This handles more types than `getPropType`. Only used for error messages.
|
|
3932
|
+
// See `createPrimitiveTypeChecker`.
|
|
3933
|
+
function getPreciseType(propValue) {
|
|
3934
|
+
var propType = getPropType(propValue);
|
|
3935
|
+
if (propType === 'object') {
|
|
3936
|
+
if (propValue instanceof Date) {
|
|
3937
|
+
return 'date';
|
|
3938
|
+
} else if (propValue instanceof RegExp) {
|
|
3939
|
+
return 'regexp';
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
return propType;
|
|
3943
|
+
}
|
|
3944
|
+
|
|
3945
|
+
// Returns class name of the object, if any.
|
|
3946
|
+
function getClassName(propValue) {
|
|
3947
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
3948
|
+
return ANONYMOUS;
|
|
3949
|
+
}
|
|
3950
|
+
return propValue.constructor.name;
|
|
3951
|
+
}
|
|
3952
|
+
|
|
3953
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
3954
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
3955
|
+
|
|
3956
|
+
return ReactPropTypes;
|
|
3957
|
+
};
|
|
3958
|
+
|
|
3959
|
+
},{"27":27,"29":29,"30":30,"32":32,"34":34}],34:[function(_dereq_,module,exports){
|
|
3960
|
+
/**
|
|
3961
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
3962
|
+
* All rights reserved.
|
|
3963
|
+
*
|
|
3964
|
+
* This source code is licensed under the BSD-style license found in the
|
|
3965
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
3966
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
3967
|
+
*/
|
|
3968
|
+
|
|
3969
|
+
'use strict';
|
|
3970
|
+
|
|
3971
|
+
const ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
3972
|
+
|
|
3973
|
+
module.exports = ReactPropTypesSecret;
|
|
3974
|
+
|
|
3756
3975
|
},{}]},{},[18])(18)
|
|
3757
3976
|
});
|