text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports["rc-input-number"]=e(require("react"),require("react-dom")):t["rc-input-number"]=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=106)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var o=n(9),r=n(40),i=n(28),s=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var o=n(0),r=n(1),i=n(38),s=n(6),a=function(t,e,n){var u,c,l,f=t&a.F,p=t&a.G,E=t&a.S,h=t&a.P,d=t&a.B,R=t&a.W,_=p?r:r[e]||(r[e]={}),v=_.prototype,S=p?o:E?o[e]:(o[e]||{}).prototype;p&&(n=e);for(u in n)(c=!f&&S&&void 0!==S[u])&&u in _||(l=c?S[u]:n[u],_[u]=p&&"function"!=typeof S[u]?n[u]:d&&c?i(l,o):R&&S[u]==l?function(t){var e=function(e,n,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((_.virtual||(_.virtual={}))[u]=l,t&a.R&&v&&!v[u]&&s(v,u,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var o=n(4),r=n(14);t.exports=n(2)?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var o=n(41),r=n(18);t.exports=function(t){return o(r(t))}},function(t,e,n){var o=n(26)("wks"),r=n(15),i=n(0).Symbol,s="function"==typeof i;(t.exports=function(t){return o[t]||(o[t]=s&&i[t]||(s?i:r)("Symbol."+t))}).store=o},function(t,e,n){var o=n(11);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var o=n(45),r=n(19);t.exports=Object.keys||function(t){return o(t,r)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},function(e,n){e.exports=t},function(t,e,n){"use strict";e.__esModule=!0;var o=n(54),r=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports={}},function(t,e){t.exports=!0},function(t,e,n){var o=n(9),r=n(78),i=n(19),s=n(25)("IE_PROTO"),a=function(){},u=function(){var t,e=n(39)("iframe"),o=i.length;for(e.style.display="none",n(72).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;o--;)delete u.prototype[i[o]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=o(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:r(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var o=n(4).f,r=n(3),i=n(8)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},function(t,e,n){var o=n(26)("keys"),r=n(15);t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e,n){var o=n(0),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});t.exports=function(t){return r[t]||(r[t]={})}},function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(t,e,n){var o=n(11);t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var o=n(0),r=n(1),i=n(21),s=n(30),a=n(4).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,n){e.f=n(8)},function(t,e,n){t.exports={default:n(64),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var o=n(31),r=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,r.default)(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}()},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(56),i=o(r),s=n(55),a=o(s),u=n(36),c=o(u);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,c.default)(e)));t.prototype=(0,a.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";e.__esModule=!0;var o=n(36),r=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,r.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(58),i=o(r),s=n(57),a=o(s),u="function"==typeof a.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};e.default="function"==typeof a.default&&"symbol"===u(i.default)?function(t){return void 0===t?"undefined":u(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":void 0===t?"undefined":u(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var o=n(68);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var o=n(11),r=n(0).document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},function(t,e,n){t.exports=!n(2)&&!n(10)(function(){return 7!=Object.defineProperty(n(39)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var o=n(37);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var o=n(21),r=n(5),i=n(46),s=n(6),a=n(3),u=n(20),c=n(74),l=n(24),f=n(80),p=n(8)("iterator"),E=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,d,R,_,v){c(n,e,d);var S,y,m,O=function(t){if(!E&&t in b)return b[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},N=e+" Iterator",P="values"==R,T=!1,b=t.prototype,g=b[p]||b["@@iterator"]||R&&b[R],D=g||O(R),I=R?P?O("entries"):D:void 0,A="Array"==e?b.entries||g:g;if(A&&(m=f(A.call(new t)))!==Object.prototype&&m.next&&(l(m,N,!0),o||a(m,p)||s(m,p,h)),P&&g&&"values"!==g.name&&(T=!0,D=function(){return g.call(this)}),o&&!v||!E&&!T&&b[p]||s(b,p,D),u[e]=D,u[N]=h,R)if(S={values:P?D:O("values"),keys:_?D:O("keys"),entries:I},v)for(y in S)y in b||i(b,y,S[y]);else r(r.P+r.F*(E||T),e,S);return S}},function(t,e,n){var o=n(13),r=n(14),i=n(7),s=n(28),a=n(3),u=n(40),c=Object.getOwnPropertyDescriptor;e.f=n(2)?c:function(t,e){if(t=i(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return r(!o.f.call(t,e),t[e])}},function(t,e,n){var o=n(45),r=n(19).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},function(t,e,n){var o=n(3),r=n(7),i=n(70)(!1),s=n(25)("IE_PROTO");t.exports=function(t,e){var n,a=r(t),u=0,c=[];for(n in a)n!=s&&o(a,n)&&c.push(n);for(;e.length>u;)o(a,n=e[u++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){t.exports=n(6)},function(t,e,n){var o=n(18);t.exports=function(t){return Object(o(t))}},function(t,e,n){"use strict";function o(t,e,n,o,i,s,a,u){if(r(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,s,a,u],f=0;c=new Error(e.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(t){};t.exports=o},function(t,e,n){t.exports=n(101)()},function(t,e,n){"use strict";function o(){}function r(t){t.preventDefault()}Object.defineProperty(e,"__esModule",{value:!0});var i=n(59),s=n.n(i),a=n(17),u=n.n(a),c=n(16),l=n.n(c),f=n(49),p=n.n(f),E=n(97),h=n.n(E),d=n(61),R=n.n(d),_=n(53),v=n(52),S=h()({displayName:"InputNumber",propTypes:{focusOnUpDown:p.a.bool,onChange:p.a.func,onKeyDown:p.a.func,onKeyUp:p.a.func,prefixCls:p.a.string,tabIndex:p.a.string,disabled:p.a.bool,onFocus:p.a.func,onBlur:p.a.func,readOnly:p.a.bool,max:p.a.number,min:p.a.number,step:p.a.oneOfType([p.a.number,p.a.string]),upHandler:p.a.node,downHandler:p.a.node,useTouch:p.a.bool,formatter:p.a.func,parser:p.a.func,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onMouseOver:p.a.func,onMouseOut:p.a.func,precision:p.a.number},mixins:[_.a],getDefaultProps:function(){return{focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number"}},componentDidMount:function(){this.componentDidUpdate()},componentWillUpdate:function(){try{this.start=this.refs.input.selectionStart,this.end=this.refs.input.selectionEnd}catch(t){}},componentDidUpdate:function(){if(this.props.focusOnUpDown&&this.state.focused){var t=this.refs.input.setSelectionRange;t&&"function"==typeof t&&void 0!==this.start&&void 0!==this.end&&this.start!==this.end?this.refs.input.setSelectionRange(this.start,this.end):this.focus()}},onKeyDown:function(t){if(38===t.keyCode){var e=this.getRatio(t);this.up(t,e),this.stop()}else if(40===t.keyCode){var n=this.getRatio(t);this.down(t,n),this.stop()}var o=this.props.onKeyDown;if(o){for(var r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];o.apply(void 0,[t].concat(i))}},onKeyUp:function(t){this.stop();var e=this.props.onKeyUp;if(e){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.apply(void 0,[t].concat(o))}},getRatio:function(t){var e=1;return t.metaKey||t.ctrlKey?e=.1:t.shiftKey&&(e=10),e},getValueFromEvent:function(t){return t.target.value},focus:function(){this.refs.input.focus()},formatWrapper:function(t){return this.props.formatter?this.props.formatter(t):t},render:function(){var t,e=u()({},this.props),n=e.prefixCls,i=e.disabled,a=e.readOnly,c=e.useTouch,f=R()((t={},s()(t,n,!0),s()(t,e.className,!!e.className),s()(t,n+"-disabled",i),s()(t,n+"-focused",this.state.focused),t)),p="",E="",h=this.state.value;if(h)if(isNaN(h))p=n+"-handler-up-disabled",E=n+"-handler-down-disabled";else{var d=Number(h);d>=e.max&&(p=n+"-handler-up-disabled"),d<=e.min&&(E=n+"-handler-down-disabled")}var _=!e.readOnly&&!e.disabled,S=void 0;void 0!==(S=this.state.focused?this.state.inputValue:this.toPrecisionAsStep(this.state.value))&&null!==S||(S="");var y=void 0,m=void 0;c?(y={onTouchStart:_&&!p?this.up:o,onTouchEnd:this.stop},m={onTouchStart:_&&!E?this.down:o,onTouchEnd:this.stop}):(y={onMouseDown:_&&!p?this.up:o,onMouseUp:this.stop,onMouseLeave:this.stop},m={onMouseDown:_&&!E?this.down:o,onMouseUp:this.stop,onMouseLeave:this.stop});var O=this.formatWrapper(S),N=!!p||i||a,P=!!E||i||a;return l.a.createElement("div",{className:f,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onMouseOver:e.onMouseOver,onMouseOut:e.onMouseOut},l.a.createElement("div",{className:n+"-handler-wrap"},l.a.createElement(v.a,u()({ref:"up",disabled:N,prefixCls:n,unselectable:"unselectable"},y,{role:"button","aria-label":"Increase Value","aria-disabled":!!N,className:n+"-handler "+n+"-handler-up "+p}),this.props.upHandler||l.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:r})),l.a.createElement(v.a,u()({ref:"down",disabled:P,prefixCls:n,unselectable:"unselectable"},m,{role:"button","aria-label":"Decrease Value","aria-disabled":!!P,className:n+"-handler "+n+"-handler-down "+E}),this.props.downHandler||l.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:r}))),l.a.createElement("div",{className:n+"-input-wrap",role:"spinbutton","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":h},l.a.createElement("input",{type:e.type,placeholder:e.placeholder,onClick:e.onClick,className:n+"-input",tabIndex:e.tabIndex,autoComplete:"off",onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:_?this.onKeyDown:o,onKeyUp:_?this.onKeyUp:o,autoFocus:e.autoFocus,maxLength:e.maxLength,readOnly:e.readOnly,disabled:e.disabled,max:e.max,min:e.min,step:e.step,name:e.name,id:e.id,onChange:this.onChange,ref:"input",value:O})))}});e.default=S},function(t,e){},function(t,e,n){"use strict";var o=n(60),r=n.n(o),i=n(32),s=n.n(i),a=n(33),u=n.n(a),c=n(35),l=n.n(c),f=n(34),p=n.n(f),E=n(16),h=n.n(E),d=n(49),R=n.n(d),_=n(104),v=function(t){function e(){return s()(this,e),l()(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p()(e,t),u()(e,[{key:"render",value:function(){var t=this.props,e=t.prefixCls,n=t.disabled,o=r()(t,["prefixCls","disabled"]);return h.a.createElement(_.a,{disabled:n,activeClassName:e+"-handler-active"},h.a.createElement("span",o))}}]),e}(E.Component);v.propTypes={prefixCls:R.a.string,disabled:R.a.bool},e.a=v},function(t,e,n){"use strict";function o(){}function r(t){return t.replace(/[^\w\.-]+/g,"")}var i=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;e.a={getDefaultProps:function(){return{max:i,min:-i,step:1,style:{},onChange:o,onKeyDown:o,onFocus:o,onBlur:o,parser:r}},getInitialState:function(){var t=void 0,e=this.props;return t="value"in e?e.value:e.defaultValue,t=this.toNumber(t),{inputValue:this.toPrecisionAsStep(t),value:t,focused:e.autoFocus}},componentWillReceiveProps:function(t){if("value"in t){var e=this.state.focused?t.value:this.getValidValue(t.value);this.setState({value:e,inputValue:this.inputting?e:this.toPrecisionAsStep(e)})}},componentWillUnmount:function(){this.stop()},onChange:function(t){this.state.focused&&(this.inputting=!0);var e=this.props.parser(this.getValueFromEvent(t).trim());this.setState({inputValue:e}),this.props.onChange(this.toNumberWhenUserInput(e))},onFocus:function(){var t;this.setState({focused:!0}),(t=this.props).onFocus.apply(t,arguments)},onBlur:function(t){for(var e=this,n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this.inputting=!1,this.setState({focused:!1});var i=this.getCurrentValidValue(this.state.inputValue);t.persist(),this.setValue(i,function(){var n;(n=e.props).onBlur.apply(n,[t].concat(o))})},getCurrentValidValue:function(t){var e=t;return e=""===e?"":this.isNotCompleteNumber(e)?this.state.value:this.getValidValue(e),this.toNumber(e)},getValidValue:function(t){var e=parseFloat(t,10);return isNaN(e)?t:(e<this.props.min&&(e=this.props.min),e>this.props.max&&(e=this.props.max),e)},setValue:function(t,e){var n=this.isNotCompleteNumber(parseFloat(t,10))?void 0:parseFloat(t,10),o=n!==this.state.value||""+n!=""+this.state.inputValue;"value"in this.props?this.setState({inputValue:this.toPrecisionAsStep(this.state.value)},e):this.setState({value:n,inputValue:this.toPrecisionAsStep(t)},e),o&&this.props.onChange(n)},getPrecision:function(t){if("precision"in this.props)return this.props.precision;var e=t.toString();if(e.indexOf("e-")>=0)return parseInt(e.slice(e.indexOf("e-")+2),10);var n=0;return e.indexOf(".")>=0&&(n=e.length-e.indexOf(".")-1),n},getMaxPrecision:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if("precision"in this.props)return this.props.precision;var n=this.props.step,o=this.getPrecision(e),r=this.getPrecision(n),i=this.getPrecision(t);return t?Math.max(i,o+r):o+r},getPrecisionFactor:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getMaxPrecision(t,e);return Math.pow(10,n)},toPrecisionAsStep:function(t){if(this.isNotCompleteNumber(t)||""===t)return t;var e=Math.abs(this.getMaxPrecision(t));return 0===e?t.toString():isNaN(e)?t.toString():Number(t).toFixed(e)},isNotCompleteNumber:function(t){return isNaN(t)||""===t||null===t||t&&t.toString().indexOf(".")===t.toString().length-1},toNumber:function(t){return this.isNotCompleteNumber(t)?t:"precision"in this.props?Number(Number(t).toFixed(this.props.precision)):Number(t)},toNumberWhenUserInput:function(t){return(/\.\d*0$/.test(t)||t.length>16)&&this.state.focused?t:this.toNumber(t)},upStep:function(t,e){var n=this.props,o=n.step,r=n.min,i=this.getPrecisionFactor(t,e),s=Math.abs(this.getMaxPrecision(t,e)),a=void 0;return a="number"==typeof t?((i*t+i*o*e)/i).toFixed(s):r===-1/0?o:r,this.toNumber(a)},downStep:function(t,e){var n=this.props,o=n.step,r=n.min,i=this.getPrecisionFactor(t,e),s=Math.abs(this.getMaxPrecision(t,e)),a=void 0;return a="number"==typeof t?((i*t-i*o*e)/i).toFixed(s):r===-1/0?-o:r,this.toNumber(a)},step:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;e&&e.preventDefault();var o=this.props;if(!o.disabled){var r=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(r)){var i=this[t+"Step"](r,n);i>o.max?i=o.max:i<o.min&&(i=o.min),this.setValue(i),this.setState({focused:!0})}}},stop:function(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)},down:function(t,e,n){var o=this;t.persist&&t.persist(),this.stop(),this.step("down",t,e),this.autoStepTimer=setTimeout(function(){o.down(t,e,!0)},n?200:600)},up:function(t,e,n){var o=this;t.persist&&t.persist(),this.stop(),this.step("up",t,e),this.autoStepTimer=setTimeout(function(){o.up(t,e,!0)},n?200:600)}}},function(t,e,n){t.exports={default:n(62),__esModule:!0}},function(t,e,n){t.exports={default:n(63),__esModule:!0}},function(t,e,n){t.exports={default:n(65),__esModule:!0}},function(t,e,n){t.exports={default:n(66),__esModule:!0}},function(t,e,n){t.exports={default:n(67),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var o=n(31),r=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default=function(t,e,n){return e in t?(0,r.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}},function(t,e,n){var o,r;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var r=typeof o;if("string"===r||"number"===r)t.push(o);else if(Array.isArray(o))t.push(n.apply(null,o));else if("object"===r)for(var s in o)i.call(o,s)&&o[s]&&t.push(s)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?t.exports=n:(o=[],void 0!==(r=function(){return n}.apply(e,o))&&(t.exports=r))}()},function(t,e,n){n(86),t.exports=n(1).Object.assign},function(t,e,n){n(87);var o=n(1).Object;t.exports=function(t,e){return o.create(t,e)}},function(t,e,n){n(88);var o=n(1).Object;t.exports=function(t,e,n){return o.defineProperty(t,e,n)}},function(t,e,n){n(89),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){n(92),n(90),n(93),n(94),t.exports=n(1).Symbol},function(t,e,n){n(91),n(95),t.exports=n(30).f("iterator")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,n){var o=n(7),r=n(84),i=n(83);t.exports=function(t){return function(e,n,s){var a,u=o(e),c=r(u.length),l=i(s,c);if(t&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var o=n(12),r=n(23),i=n(13);t.exports=function(t){var e=o(t),n=r.f;if(n)for(var s,a=n(t),u=i.f,c=0;a.length>c;)u.call(t,s=a[c++])&&e.push(s);return e}},function(t,e,n){var o=n(0).document;t.exports=o&&o.documentElement},function(t,e,n){var o=n(37);t.exports=Array.isArray||function(t){return"Array"==o(t)}},function(t,e,n){"use strict";var o=n(22),r=n(14),i=n(24),s={};n(6)(s,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=o(s,{next:r(1,n)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var o=n(15)("meta"),r=n(11),i=n(3),s=n(4).f,a=0,u=Object.isExtensible||function(){return!0},c=!n(10)(function(){return u(Object.preventExtensions({}))}),l=function(t){s(t,o,{value:{i:"O"+ ++a,w:{}}})},f=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,o)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[o].i},p=function(t,e){if(!i(t,o)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[o].w},E=function(t){return c&&h.NEED&&u(t)&&!i(t,o)&&l(t),t},h=t.exports={KEY:o,NEED:!1,fastKey:f,getWeak:p,onFreeze:E}},function(t,e,n){"use strict";var o=n(12),r=n(23),i=n(13),s=n(47),a=n(41),u=Object.assign;t.exports=!u||n(10)(function(){var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=o})?function(t,e){for(var n=s(t),u=arguments.length,c=1,l=r.f,f=i.f;u>c;)for(var p,E=a(arguments[c++]),h=l?o(E).concat(l(E)):o(E),d=h.length,R=0;d>R;)f.call(E,p=h[R++])&&(n[p]=E[p]);return n}:u},function(t,e,n){var o=n(4),r=n(9),i=n(12);t.exports=n(2)?Object.defineProperties:function(t,e){r(t);for(var n,s=i(e),a=s.length,u=0;a>u;)o.f(t,n=s[u++],e[n]);return t}},function(t,e,n){var o=n(7),r=n(44).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return r(t)}catch(t){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==i.call(t)?a(t):r(o(t))}},function(t,e,n){var o=n(3),r=n(47),i=n(25)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),o(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var o=n(11),r=n(9),i=function(t,e){if(r(t),!o(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,o){try{o=n(38)(Function.call,n(43).f(Object.prototype,"__proto__").set,2),o(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:o(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var o=n(27),r=n(18);t.exports=function(t){return function(e,n){var i,s,a=String(r(e)),u=o(n),c=a.length;return u<0||u>=c?t?"":void 0:(i=a.charCodeAt(u),i<55296||i>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):i:t?a.slice(u,u+2):s-56320+(i-55296<<10)+65536)}}},function(t,e,n){var o=n(27),r=Math.max,i=Math.min;t.exports=function(t,e){return t=o(t),t<0?r(t+e,0):i(t,e)}},function(t,e,n){var o=n(27),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},function(t,e,n){"use strict";var o=n(69),r=n(75),i=n(20),s=n(7);t.exports=n(42)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var o=n(5);o(o.S+o.F,"Object",{assign:n(77)})},function(t,e,n){var o=n(5);o(o.S,"Object",{create:n(22)})},function(t,e,n){var o=n(5);o(o.S+o.F*!n(2),"Object",{defineProperty:n(4).f})},function(t,e,n){var o=n(5);o(o.S,"Object",{setPrototypeOf:n(81).set})},function(t,e){},function(t,e,n){"use strict";var o=n(82)(!0);n(42)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=o(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var o=n(0),r=n(3),i=n(2),s=n(5),a=n(46),u=n(76).KEY,c=n(10),l=n(26),f=n(24),p=n(15),E=n(8),h=n(30),d=n(29),R=n(71),_=n(73),v=n(9),S=n(7),y=n(28),m=n(14),O=n(22),N=n(79),P=n(43),T=n(4),b=n(12),g=P.f,D=T.f,I=N.f,A=o.Symbol,C=o.JSON,x=C&&C.stringify,M=E("_hidden"),w=E("toPrimitive"),L={}.propertyIsEnumerable,j=l("symbol-registry"),V=l("symbols"),k=l("op-symbols"),F=Object.prototype,G="function"==typeof A,Y=o.QObject,U=!Y||!Y.prototype||!Y.prototype.findChild,H=i&&c(function(){return 7!=O(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(t,e,n){var o=g(F,e);o&&delete F[e],D(t,e,n),o&&t!==F&&D(F,e,o)}:D,W=function(t){var e=V[t]=O(A.prototype);return e._k=t,e},q=G&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},B=function(t,e,n){return t===F&&B(k,e,n),v(t),e=y(e,!0),v(n),r(V,e)?(n.enumerable?(r(t,M)&&t[M][e]&&(t[M][e]=!1),n=O(n,{enumerable:m(0,!1)})):(r(t,M)||D(t,M,m(1,{})),t[M][e]=!0),H(t,e,n)):D(t,e,n)},K=function(t,e){v(t);for(var n,o=R(e=S(e)),r=0,i=o.length;i>r;)B(t,n=o[r++],e[n]);return t},$=function(t,e){return void 0===e?O(t):K(O(t),e)},X=function(t){var e=L.call(this,t=y(t,!0));return!(this===F&&r(V,t)&&!r(k,t))&&(!(e||!r(this,t)||!r(V,t)||r(this,M)&&this[M][t])||e)},J=function(t,e){if(t=S(t),e=y(e,!0),t!==F||!r(V,e)||r(k,e)){var n=g(t,e);return!n||!r(V,e)||r(t,M)&&t[M][e]||(n.enumerable=!0),n}},z=function(t){for(var e,n=I(S(t)),o=[],i=0;n.length>i;)r(V,e=n[i++])||e==M||e==u||o.push(e);return o},Q=function(t){for(var e,n=t===F,o=I(n?k:S(t)),i=[],s=0;o.length>s;)!r(V,e=o[s++])||n&&!r(F,e)||i.push(V[e]);return i};G||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===F&&e.call(k,n),r(this,M)&&r(this[M],t)&&(this[M][t]=!1),H(this,t,m(1,n))};return i&&U&&H(F,t,{configurable:!0,set:e}),W(t)},a(A.prototype,"toString",function(){return this._k}),P.f=J,T.f=B,n(44).f=N.f=z,n(13).f=X,n(23).f=Q,i&&!n(21)&&a(F,"propertyIsEnumerable",X,!0),h.f=function(t){return W(E(t))}),s(s.G+s.W+s.F*!G,{Symbol:A});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)E(Z[tt++]);for(var et=b(E.store),nt=0;et.length>nt;)d(et[nt++]);s(s.S+s.F*!G,"Symbol",{for:function(t){return r(j,t+="")?j[t]:j[t]=A(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in j)if(j[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),s(s.S+s.F*!G,"Object",{create:$,defineProperty:B,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:z,getOwnPropertySymbols:Q}),C&&s(s.S+s.F*(!G||c(function(){var t=A();return"[null]"!=x([t])||"{}"!=x({a:t})||"{}"!=x(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!q(t)){for(var e,n,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);return e=o[1],"function"==typeof e&&(n=e),!n&&_(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!q(e))return e}),o[1]=e,x.apply(C,o)}}}),A.prototype[w]||n(6)(A.prototype,w,A.prototype.valueOf),f(A,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(t,e,n){n(29)("asyncIterator")},function(t,e,n){n(29)("observable")},function(t,e,n){n(85);for(var o=n(0),r=n(6),i=n(20),s=n(8)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],l=o[c],f=l&&l.prototype;f&&!f[s]&&r(f,s,c),i[c]=i.Array}},function(t,e,n){"use strict";function o(t){return t}function r(t,e,n){function r(t,e){var n=v.hasOwnProperty(e)?v[e]:null;O.hasOwnProperty(e)&&a("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&a("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function c(t,n){if(n){a("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),a(!e(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=t.prototype,i=o.__reactAutoBindPairs;n.hasOwnProperty(u)&&S.mixins(t,n.mixins);for(var s in n)if(n.hasOwnProperty(s)&&s!==u){var c=n[s],l=o.hasOwnProperty(s);if(r(l,s),S.hasOwnProperty(s))S[s](t,c);else{var f=v.hasOwnProperty(s),h="function"==typeof c,d=h&&!f&&!l&&!1!==n.autobind;if(d)i.push(s,c),o[s]=c;else if(l){var R=v[s];a(f&&("DEFINE_MANY_MERGED"===R||"DEFINE_MANY"===R),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",R,s),"DEFINE_MANY_MERGED"===R?o[s]=p(o[s],c):"DEFINE_MANY"===R&&(o[s]=E(o[s],c))}else o[s]=c}}}else;}function l(t,e){if(e)for(var n in e){var o=e[n];if(e.hasOwnProperty(n)){var r=n in S;a(!r,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in t;a(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),t[n]=o}}}function f(t,e){a(t&&e&&"object"==typeof t&&"object"==typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in e)e.hasOwnProperty(n)&&(a(void 0===t[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),t[n]=e[n]);return t}function p(t,e){return function(){var n=t.apply(this,arguments),o=e.apply(this,arguments);if(null==n)return o;if(null==o)return n;var r={};return f(r,n),f(r,o),r}}function E(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function h(t,e){var n=e.bind(t);return n}function d(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var o=e[n],r=e[n+1];t[o]=h(t,r)}}function R(t){var e=o(function(t,o,r){this.__reactAutoBindPairs.length&&d(this),this.props=t,this.context=o,this.refs=s,this.updater=r||n,this.state=null;var i=this.getInitialState?this.getInitialState():null;a("object"==typeof i&&!Array.isArray(i),"%s.getInitialState(): must return an object or null",e.displayName||"ReactCompositeComponent"),this.state=i});e.prototype=new N,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],_.forEach(c.bind(null,e)),c(e,y),c(e,t),c(e,m),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),a(e.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var r in v)e.prototype[r]||(e.prototype[r]=null);return e}var _=[],v={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"},S={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)c(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=i({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=i({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=p(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=i({},t.propTypes,e)},statics:function(t,e){l(t,e)},autobind:function(){}},y={componentDidMount:function(){this.__isMounted=!0}},m={componentWillUnmount:function(){this.__isMounted=!1}},O={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return!!this.__isMounted}},N=function(){};return i(N.prototype,t.prototype,O),R}var i=n(100),s=n(99),a=n(48),u="mixins";t.exports=r},function(t,e,n){"use strict";var o=n(16),r=n(96);if(void 0===o)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new o.Component).updater;t.exports=r(o.Component,o.isValidElement,i)},function(t,e,n){"use strict";function o(t){return function(){return t}}var r=function(){};r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";var o={};t.exports=o},function(t,e,n){"use strict";function o(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,u=o(t),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)i.call(n,l)&&(u[l]=n[l]);if(r){a=r(n);for(var f=0;f<a.length;f++)s.call(n,a[f])&&(u[a[f]]=n[a[f]])}}return u}},function(t,e,n){"use strict";var o=n(98),r=n(48),i=n(102);t.exports=function(){function t(t,e,n,o,s,a){a!==i&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=o,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";function o(t){var e=this;this.nativeEvent=t,["type","currentTarget","target","touches","changedTouches"].forEach(function(n){e[n]=t[n]}),t.$pressSeq?t.$pressSeq+=1:t.$pressSeq=1,this.$pressSeq=t.$pressSeq}function r(t){var e=t.nativeEvent,n=t.$pressSeq;return!e.$stopPressSeq||e.$stopPressSeq>=n}e.b=r;var i=n(17),s=n.n(i);o.prototype=s()({},o.prototype,{preventDefault:function(){this.nativeEvent.preventDefault()},stopPropagation:function(){var t=this.nativeEvent,e=this.$pressSeq;t.$stopPressSeq||(t.$stopPressSeq=e)}}),e.a=o},function(t,e,n){"use strict";function o(t){return Object.keys(t).forEach(function(e){return t[e]=e}),t}function r(t,e){var n={};return e.forEach(function(e){n[e]=t[e]}),n}function i(t){var e=t;e.nativeEvent&&(e=e.nativeEvent);var n=e.touches,o=e.changedTouches,r=n&&n.length>0,i=o&&o.length>0;return!r&&i?o[0]:r?n[0]:e}function s(){return Date.now()-I>=A}var a=n(17),u=n.n(a),c=n(32),l=n.n(c),f=n(33),p=n.n(f),E=n(35),h=n.n(E),d=n(34),R=n.n(d),_=n(16),v=n.n(_),S=n(105),y=n.n(S),m=n(103),O=o({NOT_RESPONDER:null,RESPONDER_INACTIVE_PRESS_IN:null,RESPONDER_INACTIVE_PRESS_OUT:null,RESPONDER_ACTIVE_PRESS_IN:null,RESPONDER_ACTIVE_PRESS_OUT:null,RESPONDER_ACTIVE_LONG_PRESS_IN:null,RESPONDER_ACTIVE_LONG_PRESS_OUT:null,ERROR:null}),N={RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0},P={RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0},T={RESPONDER_ACTIVE_LONG_PRESS_IN:!0},b=o({DELAY:null,RESPONDER_GRANT:null,RESPONDER_RELEASE:null,RESPONDER_TERMINATED:null,ENTER_PRESS_RECT:null,LEAVE_PRESS_RECT:null,LONG_PRESS_DETECTED:null}),g={NOT_RESPONDER:{DELAY:O.ERROR,RESPONDER_GRANT:O.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:O.ERROR,RESPONDER_TERMINATED:O.ERROR,ENTER_PRESS_RECT:O.ERROR,LEAVE_PRESS_RECT:O.ERROR,LONG_PRESS_DETECTED:O.ERROR},RESPONDER_INACTIVE_PRESS_IN:{DELAY:O.RESPONDER_ACTIVE_PRESS_IN,RESPONDER_GRANT:O.ERROR,RESPONDER_RELEASE:O.NOT_RESPONDER,RESPONDER_TERMINATED:O.NOT_RESPONDER,ENTER_PRESS_RECT:O.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:O.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:O.ERROR},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:O.RESPONDER_ACTIVE_PRESS_OUT,RESPONDER_GRANT:O.ERROR,RESPONDER_RELEASE:O.NOT_RESPONDER,RESPONDER_TERMINATED:O.NOT_RESPONDER,ENTER_PRESS_RECT:O.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:O.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:O.ERROR},RESPONDER_ACTIVE_PRESS_IN:{DELAY:O.ERROR,RESPONDER_GRANT:O.ERROR,RESPONDER_RELEASE:O.NOT_RESPONDER,RESPONDER_TERMINATED:O.NOT_RESPONDER,ENTER_PRESS_RECT:O.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:O.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:O.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:O.ERROR,RESPONDER_GRANT:O.ERROR,RESPONDER_RELEASE:O.NOT_RESPONDER,RESPONDER_TERMINATED:O.NOT_RESPONDER,ENTER_PRESS_RECT:O.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:O.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:O.ERROR},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:O.ERROR,RESPONDER_GRANT:O.ERROR,RESPONDER_RELEASE:O.NOT_RESPONDER,RESPONDER_TERMINATED:O.NOT_RESPONDER,ENTER_PRESS_RECT:O.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:O.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:O.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:O.ERROR,RESPONDER_GRANT:O.ERROR,RESPONDER_RELEASE:O.NOT_RESPONDER,RESPONDER_TERMINATED:O.NOT_RESPONDER,ENTER_PRESS_RECT:O.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:O.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:O.ERROR},error:{DELAY:O.NOT_RESPONDER,RESPONDER_GRANT:O.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:O.NOT_RESPONDER,RESPONDER_TERMINATED:O.NOT_RESPONDER,ENTER_PRESS_RECT:O.NOT_RESPONDER,LEAVE_PRESS_RECT:O.NOT_RESPONDER,LONG_PRESS_DETECTED:O.NOT_RESPONDER}},D=10,I=0,A=200,C=function(t){function e(){l()(this,e);var t=h()(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return t.state={active:!1},t.onTouchStart=function(e){t.callChildEvent("onTouchStart",e),t.lockMouse=!0,t.releaseLockTimer&&clearTimeout(t.releaseLockTimer),t.touchableHandleResponderGrant(e.nativeEvent)},t.onTouchMove=function(e){t.callChildEvent("onTouchMove",e),t.touchableHandleResponderMove(e.nativeEvent)},t.onTouchEnd=function(e){t.callChildEvent("onTouchEnd",e),t.releaseLockTimer=setTimeout(function(){t.lockMouse=!1},300),t.touchableHandleResponderRelease(new m.a(e.nativeEvent))},t.onTouchCancel=function(e){t.callChildEvent("onTouchCancel",e),t.releaseLockTimer=setTimeout(function(){t.lockMouse=!1},300),t.touchableHandleResponderTerminate(e.nativeEvent)},t.onMouseDown=function(e){t.callChildEvent("onMouseDown",e),t.lockMouse||(t.touchableHandleResponderGrant(e.nativeEvent),document.addEventListener("mousemove",t.touchableHandleResponderMove,!1),document.addEventListener("mouseup",t.onMouseUp,!1))},t.onMouseUp=function(e){document.removeEventListener("mousemove",t.touchableHandleResponderMove,!1),document.removeEventListener("mouseup",t.onMouseUp,!1),t.touchableHandleResponderRelease(new m.a(e))},t.touchableHandleResponderMove=function(e){if(t.touchable.startMouse&&t.touchable.dimensionsOnActivate&&t.touchable.touchState!==O.NOT_RESPONDER&&t.touchable.touchState!==O.RESPONDER_INACTIVE_PRESS_IN){var n=i(e),o=n&&n.pageX,r=n&&n.pageY;if(t.pressInLocation){t._getDistanceBetweenPoints(o,r,t.pressInLocation.pageX,t.pressInLocation.pageY)>D&&t._cancelLongPressDelayTimeout()}if(t.checkTouchWithinActive(e)){t._receiveSignal(b.ENTER_PRESS_RECT,e);t.touchable.touchState===O.RESPONDER_INACTIVE_PRESS_IN&&t._cancelLongPressDelayTimeout()}else t._cancelLongPressDelayTimeout(),t._receiveSignal(b.LEAVE_PRESS_RECT,e)}},t}return R()(e,t),p()(e,[{key:"componentWillMount",value:function(){this.touchable={touchState:void 0}}},{key:"componentDidMount",value:function(){this.root=y.a.findDOMNode(this)}},{key:"componentDidUpdate",value:function(){this.root=y.a.findDOMNode(this),this.props.disabled&&this.state.active&&this.setState({active:!1})}},{key:"componentWillUnmount",value:function(){this.releaseLockTimer&&clearTimeout(this.releaseLockTimer),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout)}},{key:"callChildEvent",value:function(t,e){var n=v.a.Children.only(this.props.children).props[t];n&&n(e)}},{key:"_remeasureMetricsOnInit",value:function(t){var e=this.root,n=i(t),o=e.getBoundingClientRect();this.touchable={touchState:this.touchable.touchState,startMouse:{pageX:n.pageX,pageY:n.pageY},positionOnGrant:{left:o.left+window.pageXOffset,top:o.top+window.pageYOffset,width:o.width,height:o.height,clientLeft:o.left,clientTop:o.top}}}},{key:"touchableHandleResponderGrant",value:function(t){var e=this;if(this.touchable.touchState=O.NOT_RESPONDER,this.pressOutDelayTimeout&&(clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null),!this.props.fixClickPenetration||s()){this._remeasureMetricsOnInit(t),this._receiveSignal(b.RESPONDER_GRANT,t);var n=this.props,o=n.delayPressIn,r=n.delayLongPress;o?this.touchableDelayTimeout=setTimeout(function(){e._handleDelay(t)},o):this._handleDelay(t);var i=new m.a(t);this.longPressDelayTimeout=setTimeout(function(){e._handleLongDelay(i)},r+o)}}},{key:"checkScroll",value:function(t){var e=this.touchable.positionOnGrant,n=this.root.getBoundingClientRect();if(n.left!==e.clientLeft||n.top!==e.clientTop)return this._receiveSignal(b.RESPONDER_TERMINATED,t),!1}},{key:"touchableHandleResponderRelease",value:function(t){if(this.touchable.startMouse){var e=i(t);if(Math.abs(e.pageX-this.touchable.startMouse.pageX)>30||Math.abs(e.pageY-this.touchable.startMouse.pageY)>30)return void this._receiveSignal(b.RESPONDER_TERMINATED,t);!1!==this.checkScroll(t)&&this._receiveSignal(b.RESPONDER_RELEASE,t)}}},{key:"touchableHandleResponderTerminate",value:function(t){this.touchable.startMouse&&this._receiveSignal(b.RESPONDER_TERMINATED,t)}},{key:"checkTouchWithinActive",value:function(t){var e=this.touchable.positionOnGrant,n=this.props,o=n.pressRetentionOffset,r=void 0===o?{}:o,s=n.hitSlop,a=r.left,u=r.top,c=r.right,l=r.bottom;s&&(a+=s.left,u+=s.top,c+=s.right,l+=s.bottom);var f=i(t),p=f&&f.pageX,E=f&&f.pageY;return p>e.left-a&&E>e.top-u&&p<e.left+e.width+c&&E<e.top+e.height+l}},{key:"callProp",value:function(t,e){this.props[t]&&!this.props.disabled&&this.props[t](e)}},{key:"touchableHandleActivePressIn",value:function(t){this.setActive(!0),this.callProp("onPressIn",t)}},{key:"touchableHandleActivePressOut",value:function(t){this.setActive(!1),this.callProp("onPressOut",t)}},{key:"touchableHandlePress",value:function(t){n.i(m.b)(t)&&this.callProp("onPress",t),I=Date.now()}},{key:"touchableHandleLongPress",value:function(t){n.i(m.b)(t)&&this.callProp("onLongPress",t)}},{key:"setActive",value:function(t){(this.props.activeClassName||this.props.activeStyle)&&this.setState({active:t})}},{key:"_remeasureMetricsOnActivation",value:function(){this.touchable.dimensionsOnActivate=this.touchable.positionOnGrant}},{key:"_handleDelay",value:function(t){this.touchableDelayTimeout=null,this._receiveSignal(b.DELAY,t)}},{key:"_handleLongDelay",value:function(t){this.longPressDelayTimeout=null;var e=this.touchable.touchState;e!==O.RESPONDER_ACTIVE_PRESS_IN&&e!==O.RESPONDER_ACTIVE_LONG_PRESS_IN?console.error("Attempted to transition from state `"+e+"` to `"+O.RESPONDER_ACTIVE_LONG_PRESS_IN+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal(b.LONG_PRESS_DETECTED,t)}},{key:"_receiveSignal",value:function(t,e){var n=this.touchable.touchState,o=g[n]&&g[n][t];o&&o!==O.ERROR&&n!==o&&(this._performSideEffectsForTransition(n,o,t,e),this.touchable.touchState=o)}},{key:"_cancelLongPressDelayTimeout",value:function(){this.longPressDelayTimeout&&(clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null)}},{key:"_isHighlight",value:function(t){return t===O.RESPONDER_ACTIVE_PRESS_IN||t===O.RESPONDER_ACTIVE_LONG_PRESS_IN}},{key:"_savePressInLocation",value:function(t){var e=i(t),n=e&&e.pageX,o=e&&e.pageY;this.pressInLocation={pageX:n,pageY:o}}},{key:"_getDistanceBetweenPoints",value:function(t,e,n,o){var r=t-n,i=e-o;return Math.sqrt(r*r+i*i)}},{key:"_performSideEffectsForTransition",value:function(t,e,n,o){var r=this._isHighlight(t),i=this._isHighlight(e);if((n===b.RESPONDER_TERMINATED||n===b.RESPONDER_RELEASE)&&this._cancelLongPressDelayTimeout(),!N[t]&&N[e]&&this._remeasureMetricsOnActivation(),P[t]&&n===b.LONG_PRESS_DETECTED&&this.touchableHandleLongPress(o),i&&!r?this._startHighlight(o):!i&&r&&this._endHighlight(o),P[t]&&n===b.RESPONDER_RELEASE){var s=!!this.props.onLongPress,a=T[t]&&(!s||!this.props.longPressCancelsPress);(!T[t]||a)&&(i||r||(this._startHighlight(o),this._endHighlight(o)),this.touchableHandlePress(o))}this.touchableDelayTimeout&&(clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null)}},{key:"_startHighlight",value:function(t){this._savePressInLocation(t),this.touchableHandleActivePressIn(t)}},{key:"_endHighlight",value:function(t){var e=this;this.props.delayPressOut?this.pressOutDelayTimeout=setTimeout(function(){e.touchableHandleActivePressOut(t)},this.props.delayPressOut):this.touchableHandleActivePressOut(t)}},{key:"render",value:function(){var t=this.props,e=t.children,n=t.disabled,o=t.activeStyle,i=t.activeClassName,s=n?void 0:r(this,["onTouchStart","onTouchMove","onTouchEnd","onTouchCancel","onMouseDown"]),a=v.a.Children.only(e);if(!n&&this.state.active){var c=a.props,l=c.style,f=c.className;return o&&(l=u()({},l,o)),i&&(f?f+=" "+i:f=i),v.a.cloneElement(a,u()({className:f,style:l},s))}return v.a.cloneElement(a,s)}}]),e}(v.a.Component);e.a=C,C.defaultProps={fixClickPenetration:!1,disabled:!1,delayPressIn:130,delayLongPress:370,delayPressOut:100,pressRetentionOffset:{left:20,right:20,top:20,bottom:20},hitSlop:void 0,longPressCancelsPress:!0}},function(t,n){t.exports=e},function(t,e,n){n(50),t.exports=n(51)}])});