Socket
Socket
Sign inDemoInstall

rc-input-number

Package Overview
Dependencies
Maintainers
7
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-input-number - npm Package Compare versions

Comparing version 4.5.8-beta.2 to 4.5.8

2

dist/rc-input-number.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports["rc-input-number"]=e(require("react")):t["rc-input-number"]=e(t.React)}("undefined"!=typeof self?self:this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},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=44)}([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.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(10),o=n(34),i=n(18),u=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(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){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(0),o=n(1),i=n(33),u=n(6),a=n(4),s=function(t,e,n){var c,f,p,l=t&s.F,h=t&s.G,d=t&s.S,v=t&s.P,y=t&s.B,m=t&s.W,b=h?o:o[e]||(o[e]={}),g=b.prototype,E=h?r:d?r[e]:(r[e]||{}).prototype;h&&(n=e);for(c in n)(f=!l&&E&&void 0!==E[c])&&a(b,c)||(p=f?E[c]:n[c],b[c]=h&&"function"!=typeof E[c]?n[c]:y&&f?i(p,r):m&&E[c]==p?function(t){var e=function(e,n,r){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,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(p):v&&"function"==typeof p?i(Function.call,p):p,v&&((b.virtual||(b.virtual={}))[c]=p,t&s.R&&g&&!g[c]&&u(g,c,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(3),o=n(12);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(37),o=n(19);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(22)("wks"),o=n(15),i=n(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(7);t.exports=function(t){if(!r(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,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(36),o=n(23);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(e,n){e.exports=t},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(22)("keys"),o=n(15);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(19);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(10),o=n(72),i=n(23),u=n(21)("IE_PROTO"),a=function(){},s=function(){var t,e=n(35)("iframe"),r=i.length;for(e.style.display="none",n(73).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[u]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(3).f,o=n(4),i=n(9)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(9)},function(t,e,n){var r=n(0),o=n(1),i=n(14),u=n(29),a=n(3).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,n){t.exports=n(46)()},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var u=n.apply(null,r);u&&t.push(u)}else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&t.push(a)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){var r=n(56);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){t.exports=!n(2)&&!n(11)(function(){return 7!=Object.defineProperty(n(35)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(7),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(4),o=n(8),i=n(58)(!1),u=n(21)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),s=0,c=[];for(n in a)n!=u&&r(a,n)&&c.push(n);for(;e.length>s;)r(a,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(38);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(67),i=r(o),u=n(79),a=r(u),s="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"===s(i.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,n){"use strict";var r=n(14),o=n(5),i=n(41),u=n(6),a=n(26),s=n(71),c=n(28),f=n(74),p=n(9)("iterator"),l=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,d,v,y,m){s(n,e,d);var b,g,E,O=function(t){if(!l&&t in x)return x[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",_="values"==v,M=!1,x=t.prototype,N=x[p]||x["@@iterator"]||v&&x[v],T=N||O(v),w=v?_?O("entries"):T:void 0,C="Array"==e?x.entries||N:N;if(C&&(E=f(C.call(new t)))!==Object.prototype&&E.next&&(c(E,S,!0),r||"function"==typeof E[p]||u(E,p,h)),_&&N&&"values"!==N.name&&(M=!0,T=function(){return N.call(this)}),r&&!m||!l&&!M&&x[p]||u(x,p,T),a[e]=T,a[S]=h,v)if(b={values:_?T:O("values"),keys:y?T:O("keys"),entries:w},m)for(g in b)g in x||i(x,g,b[g]);else o(o.P+o.F*(l||M),e,b);return b}},function(t,e,n){t.exports=n(6)},function(t,e,n){var r=n(36),o=n(23).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(16),o=n(12),i=n(8),u=n(18),a=n(4),s=n(34),c=Object.getOwnPropertyDescriptor;e.f=n(2)?c:function(t,e){if(t=i(t),e=u(e,!0),s)try{return c(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){n(45),t.exports=n(97)},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(){}function s(t){t.preventDefault()}function c(t){return t.replace(/[^\w\.-]+/g,"")}Object.defineProperty(e,"__esModule",{value:!0});var f=n(17),p=n.n(f),l=n(31),h=n.n(l),d=n(32),v=n.n(d),y=n(48),m=n(49),b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,E=function(t){return void 0!==t&&null!==t},O=function(t,e){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},S=function(t){function e(n){o(this,e);var r=i(this,t.call(this,n));_.call(r);var u=void 0;u="value"in n?n.value:n.defaultValue,r.state={focused:n.autoFocus};var a=r.getValidValue(r.toNumber(u));return r.state=b({},r.state,{inputValue:r.toPrecisionAsStep(a),value:a}),r}return u(e,t),e.prototype.componentDidMount=function(){this.componentDidUpdate()},e.prototype.componentDidUpdate=function(t){var e=this.props,n=e.value,r=e.onChange,o=e.max,i=e.min,u=this.state.focused;if(t){if(!O(t.value,n)||!O(t.max,o)||!O(t.min,i)){var a=u?n:this.getValidValue(n),s=void 0;s=this.pressingUpOrDown?a:this.inputting?this.rawInput:this.toPrecisionAsStep(a),this.setState({value:a,inputValue:s})}var c="value"in this.props?n:this.state.value;"max"in this.props&&t.max!==o&&"number"==typeof c&&c>o&&r&&r(o),"min"in this.props&&t.min!==i&&"number"==typeof c&&c<i&&r&&r(i)}try{if(void 0!==this.cursorStart&&this.state.focused)if(this.partRestoreByAfter(this.cursorAfter)||this.state.value===this.props.value){if(this.currentValue===this.input.value)switch(this.lastKeyCode){case y.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case y.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1)}}else{var f=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===y.a.BACKSPACE?f=this.cursorStart-1:this.lastKeyCode===y.a.DELETE&&(f=this.cursorStart):f=this.input.value.length,this.fixCaret(f,f)}}catch(t){}this.lastKeyCode=null,this.pressingUpOrDown&&(this.props.focusOnUpDown&&this.state.focused&&document.activeElement!==this.input&&this.focus(),this.pressingUpOrDown=!1)},e.prototype.componentWillUnmount=function(){this.stop()},e.prototype.getCurrentValidValue=function(t){var e=t;return e=""===e?"":this.isNotCompleteNumber(parseFloat(e,10))?this.state.value:this.getValidValue(e),this.toNumber(e)},e.prototype.getRatio=function(t){var e=1;return t.metaKey||t.ctrlKey?e=.1:t.shiftKey&&(e=10),e},e.prototype.getValueFromEvent=function(t){var e=t.target.value.trim().replace(/。/g,".");return E(this.props.decimalSeparator)&&(e=e.replace(this.props.decimalSeparator,".")),e},e.prototype.getValidValue=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.min,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.max,r=parseFloat(t,10);return isNaN(r)?t:(r<e&&(r=e),r>n&&(r=n),r)},e.prototype.setValue=function(t,e){var n=this.props.precision,r=this.isNotCompleteNumber(parseFloat(t,10))?null:parseFloat(t,10),o=this.state,i=o.value,u=void 0===i?null:i,a=o.inputValue,s=void 0===a?null:a,c="number"==typeof r?r.toFixed(n):""+r,f=r!==u||c!==""+s;return"value"in this.props?this.setState({inputValue:this.toPrecisionAsStep(this.state.value)},e):this.setState({value:r,inputValue:this.toPrecisionAsStep(t)},e),f&&this.props.onChange(r),r},e.prototype.getPrecision=function(t){if(E(this.props.precision))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},e.prototype.getMaxPrecision=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.props,r=n.precision,o=n.step;if(E(r))return r;var i=this.getPrecision(e),u=this.getPrecision(o),a=this.getPrecision(t);return t?Math.max(a,i+u):i+u},e.prototype.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)},e.prototype.fixCaret=function(t,e){if(void 0!==t&&void 0!==e&&this.input&&this.input.value)try{var n=this.input.selectionStart,r=this.input.selectionEnd;t===n&&e===r||this.input.setSelectionRange(t,e)}catch(t){}},e.prototype.focus=function(){this.input.focus(),this.recordCursorPosition()},e.prototype.blur=function(){this.input.blur()},e.prototype.select=function(){this.input.select()},e.prototype.formatWrapper=function(t){return this.props.formatter?this.props.formatter(t):t},e.prototype.toPrecisionAsStep=function(t){if(this.isNotCompleteNumber(t)||""===t)return t;var e=Math.abs(this.getMaxPrecision(t));return isNaN(e)?t.toString():Number(t).toFixed(e)},e.prototype.isNotCompleteNumber=function(t){return isNaN(t)||""===t||null===t||t&&t.toString().indexOf(".")===t.toString().length-1},e.prototype.toNumber=function(t){var e=this.props.precision,n=this.state.focused,r=t&&t.length>16&&n;return this.isNotCompleteNumber(t)||r?t:E(e)?Math.round(t*Math.pow(10,e))/Math.pow(10,e):Number(t)},e.prototype.upStep=function(t,e){var n=this.props.step,r=this.getPrecisionFactor(t,e),o=Math.abs(this.getMaxPrecision(t,e)),i=((r*t+r*n*e)/r).toFixed(o);return this.toNumber(i)},e.prototype.downStep=function(t,e){var n=this.props.step,r=this.getPrecisionFactor(t,e),o=Math.abs(this.getMaxPrecision(t,e)),i=((r*t-r*n*e)/r).toFixed(o);return this.toNumber(i)},e.prototype.step=function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments[3];this.stop(),e&&(e.persist(),e.preventDefault());var i=this.props;if(!i.disabled){var u=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(u)){var a=this[t+"Step"](u,r),s=a>i.max||a<i.min;a>i.max?a=i.max:a<i.min&&(a=i.min),this.setValue(a),this.setState({focused:!0}),s||(this.autoStepTimer=setTimeout(function(){n[t](e,r,!0)},o?200:600))}}},e.prototype.render=function(){var t,e=b({},this.props),n=e.prefixCls,o=e.disabled,i=e.readOnly,u=e.useTouch,c=e.autoComplete,f=e.upHandler,l=e.downHandler,h=(r(e,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler"]),v()((t={},t[n]=!0,t[e.className]=!!e.className,t[n+"-disabled"]=o,t[n+"-focused"]=this.state.focused,t))),d="",y="",g=this.state,E=g.value,O=g.inputValue;if(E||0===E)if(isNaN(E))d=n+"-handler-up-disabled",y=n+"-handler-down-disabled";else{var S=Number(E);S>=e.max&&(d=n+"-handler-up-disabled"),S<=e.min&&(y=n+"-handler-down-disabled")}var _={};for(var M in e)!e.hasOwnProperty(M)||"data-"!==M.substr(0,5)&&"aria-"!==M.substr(0,5)&&"role"!==M||(_[M]=e[M]);var x=!e.readOnly&&!e.disabled,N=this.composing?O:this.getInputDisplayValue(),T=void 0,w=void 0;u?(T={onTouchStart:x&&!d?this.up:a,onTouchEnd:this.stop},w={onTouchStart:x&&!y?this.down:a,onTouchEnd:this.stop}):(T={onMouseDown:x&&!d?this.up:a,onMouseUp:this.stop,onMouseLeave:this.stop},w={onMouseDown:x&&!y?this.down:a,onMouseUp:this.stop,onMouseLeave:this.stop});var C=!!d||o||i,P=!!y||o||i;return p.a.createElement("div",{className:h,style:e.style,title:e.title,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onMouseOver:e.onMouseOver,onMouseOut:e.onMouseOut,onCompositionStart:this.onComposition,onCompositionEnd:this.onComposition},p.a.createElement("div",{className:n+"-handler-wrap"},p.a.createElement(m.a,b({ref:this.saveUp,disabled:C,prefixCls:n,unselectable:"unselectable"},T,{role:"button","aria-label":"Increase Value","aria-disabled":!!C,className:n+"-handler "+n+"-handler-up "+d}),f||p.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:s})),p.a.createElement(m.a,b({ref:this.saveDown,disabled:P,prefixCls:n,unselectable:"unselectable"},w,{role:"button","aria-label":"Decrease Value","aria-disabled":!!P,className:n+"-handler "+n+"-handler-down "+y}),l||p.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:s}))),p.a.createElement("div",{className:n+"-input-wrap"},p.a.createElement("input",b({role:"spinbutton","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":E,required:e.required,type:e.type,placeholder:e.placeholder,onClick:e.onClick,onMouseUp:this.onMouseUp,className:n+"-input",tabIndex:e.tabIndex,autoComplete:c,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:x?this.onKeyDown:a,onKeyUp:x?this.onKeyUp:a,autoFocus:e.autoFocus,maxLength:e.maxLength,readOnly:e.readOnly,disabled:e.disabled,max:e.max,min:e.min,step:e.step,name:e.name,title:e.title,id:e.id,onChange:this.onChange,ref:this.saveInput,value:N,pattern:e.pattern,inputMode:e.inputMode},_))))},e}(p.a.Component);S.propTypes={value:h.a.oneOfType([h.a.number,h.a.string]),defaultValue:h.a.oneOfType([h.a.number,h.a.string]),focusOnUpDown:h.a.bool,autoFocus:h.a.bool,onChange:h.a.func,onPressEnter:h.a.func,onKeyDown:h.a.func,onKeyUp:h.a.func,prefixCls:h.a.string,tabIndex:h.a.oneOfType([h.a.string,h.a.number]),disabled:h.a.bool,onFocus:h.a.func,onBlur:h.a.func,readOnly:h.a.bool,max:h.a.number,min:h.a.number,step:h.a.oneOfType([h.a.number,h.a.string]),upHandler:h.a.node,downHandler:h.a.node,useTouch:h.a.bool,formatter:h.a.func,parser:h.a.func,onMouseEnter:h.a.func,onMouseLeave:h.a.func,onMouseOver:h.a.func,onMouseOut:h.a.func,onMouseUp:h.a.func,precision:h.a.number,required:h.a.bool,pattern:h.a.string,decimalSeparator:h.a.string,inputMode:h.a.string},S.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",min:-g,step:1,style:{},onChange:a,onKeyDown:a,onPressEnter:a,onFocus:a,onBlur:a,parser:c,required:!1,autoComplete:"off"};var _=function(){var t=this;this.onKeyDown=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t.props,u=i.onKeyDown,a=i.onPressEnter;if(e.keyCode===y.a.UP){var s=t.getRatio(e);t.up(e,s),t.stop()}else if(e.keyCode===y.a.DOWN){var c=t.getRatio(e);t.down(e,c),t.stop()}else e.keyCode===y.a.ENTER&&a&&a(e);t.recordCursorPosition(),t.lastKeyCode=e.keyCode,u&&u.apply(void 0,[e].concat(r))},this.onKeyUp=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t.props.onKeyUp;t.stop(),t.recordCursorPosition(),i&&i.apply(void 0,[e].concat(r))},this.onChange=function(e){var n=t.props.onChange;t.state.focused&&(t.inputting=!0),t.rawInput=t.props.parser(t.getValueFromEvent(e)),t.composing?t.setState({inputValue:t.getValueFromEvent(e)}):(t.setState({inputValue:t.rawInput}),n(t.toNumber(t.rawInput)))},this.onMouseUp=function(){var e=t.props.onMouseUp;t.recordCursorPosition(),e&&e.apply(void 0,arguments)},this.onFocus=function(){var e;t.setState({focused:!0}),(e=t.props).onFocus.apply(e,arguments)},this.onBlur=function(){var e=t.props.onBlur;t.inputting=!1,t.setState({focused:!1});var n=t.getCurrentValidValue(t.state.inputValue),r=t.setValue(n);if(e){var o=t.input.value,i=t.getInputDisplayValue({focus:!1,value:r});t.input.value=i,e.apply(void 0,arguments),t.input.value=o}},this.onComposition=function(e){"compositionstart"===e.type?t.composing=!0:"compositionend"===e.type&&(t.composing=!1,t.onChange(e))},this.getInputDisplayValue=function(e){var n=e||t.state,r=n.focused,o=n.inputValue,i=n.value,u=void 0;void 0!==(u=r?o:t.toPrecisionAsStep(i))&&null!==u||(u="");var a=t.formatWrapper(u);return E(t.props.decimalSeparator)&&(a=a.toString().replace(".",t.props.decimalSeparator)),a},this.recordCursorPosition=function(){try{t.cursorStart=t.input.selectionStart,t.cursorEnd=t.input.selectionEnd,t.currentValue=t.input.value,t.cursorBefore=t.input.value.substring(0,t.cursorStart),t.cursorAfter=t.input.value.substring(t.cursorEnd)}catch(t){}},this.restoreByAfter=function(e){if(void 0===e)return!1;var n=t.input.value,r=n.lastIndexOf(e);if(-1===r)return!1;var o=t.cursorBefore.length;return t.lastKeyCode===y.a.DELETE&&t.cursorBefore.charAt(o-1)===e[0]?(t.fixCaret(o,o),!0):r+e.length===n.length&&(t.fixCaret(r,r),!0)},this.partRestoreByAfter=function(e){return void 0!==e&&Array.prototype.some.call(e,function(n,r){var o=e.substring(r);return t.restoreByAfter(o)})},this.stop=function(){t.autoStepTimer&&clearTimeout(t.autoStepTimer)},this.down=function(e,n,r){t.pressingUpOrDown=!0,t.step("down",e,n,r)},this.up=function(e,n,r){t.pressingUpOrDown=!0,t.step("up",e,n,r)},this.saveUp=function(e){t.upHandler=e},this.saveDown=function(e){t.downHandler=e},this.saveInput=function(e){t.input=e}};e.default=S},function(t,e,n){"use strict";function r(){}function o(){}var i=n(47);o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,u){if(u!==i){var a=new Error("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");throw a.name="Invariant Violation",a}}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,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return 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";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=r.F1&&e<=r.F12)return!1;switch(e){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=r.ZERO&&t<=r.NINE)return!0;if(t>=r.NUM_ZERO&&t<=r.NUM_MULTIPLY)return!0;if(t>=r.A&&t<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};e.a=r},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(17),s=n.n(a),c=n(31),f=n.n(c),p=n(50),l=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return u(e,t),e.prototype.render=function(){var t=this.props,e=t.prefixCls,n=t.disabled,o=r(t,["prefixCls","disabled"]);return s.a.createElement(p.a,{disabled:n,activeClassName:e+"-handler-active"},s.a.createElement("span",o))},e}(a.Component);l.propTypes={prefixCls:f.a.string,disabled:f.a.bool,onTouchStart:f.a.func,onTouchEnd:f.a.func,onMouseDown:f.a.func,onMouseUp:f.a.func,onMouseLeave:f.a.func},e.a=l},function(t,e,n){"use strict";var r=n(51);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";var r=n(52),o=n.n(r),i=n(61),u=n.n(i),a=n(62),s=n.n(a),c=n(66),f=n.n(c),p=n(89),l=n.n(p),h=n(17),d=n.n(h),v=n(32),y=n.n(v),m=function(t){function e(){u()(this,e);var t=f()(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return t.state={active:!1},t.onTouchStart=function(e){t.triggerEvent("TouchStart",!0,e)},t.onTouchMove=function(e){t.triggerEvent("TouchMove",!1,e)},t.onTouchEnd=function(e){t.triggerEvent("TouchEnd",!1,e)},t.onTouchCancel=function(e){t.triggerEvent("TouchCancel",!1,e)},t.onMouseDown=function(e){t.triggerEvent("MouseDown",!0,e)},t.onMouseUp=function(e){t.triggerEvent("MouseUp",!1,e)},t.onMouseLeave=function(e){t.triggerEvent("MouseLeave",!1,e)},t}return l()(e,t),s()(e,[{key:"componentDidUpdate",value:function(){this.props.disabled&&this.state.active&&this.setState({active:!1})}},{key:"triggerEvent",value:function(t,e,n){var r="on"+t,o=this.props.children;o.props[r]&&o.props[r](n),e!==this.state.active&&this.setState({active:e})}},{key:"render",value:function(){var t=this.props,e=t.children,n=t.disabled,r=t.activeClassName,i=t.activeStyle,u=n?void 0:{onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd,onTouchCancel:this.onTouchCancel,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseLeave},a=d.a.Children.only(e);if(!n&&this.state.active){var s=a.props,c=s.style,f=s.className;return!1!==i&&(i&&(c=o()({},c,i)),f=y()(f,r)),d.a.cloneElement(a,o()({className:f,style:c},u))}return d.a.cloneElement(a,u)}}]),e}(d.a.Component);e.a=m,m.defaultProps={disabled:!1}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(53),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){t.exports={default:n(54),__esModule:!0}},function(t,e,n){n(55),t.exports=n(1).Object.assign},function(t,e,n){var r=n(5);r(r.S+r.F,"Object",{assign:n(57)})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(2),o=n(13),i=n(24),u=n(16),a=n(25),s=n(37),c=Object.assign;t.exports=!c||n(11)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=a(t),c=arguments.length,f=1,p=i.f,l=u.f;c>f;)for(var h,d=s(arguments[f++]),v=p?o(d).concat(p(d)):o(d),y=v.length,m=0;y>m;)h=v[m++],r&&!l.call(d,h)||(n[h]=d[h]);return n}:c},function(t,e,n){var r=n(8),o=n(59),i=n(60);t.exports=function(t){return function(e,n,u){var a,s=r(e),c=o(s.length),f=i(u,c);if(t&&n!=n){for(;c>f;)if((a=s[f++])!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(20),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},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 r=n(63),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){t.exports={default:n(64),__esModule:!0}},function(t,e,n){n(65);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(5);r(r.S+r.F*!n(2),"Object",{defineProperty:n(3).f})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(39),o=function(t){return t&&t.__esModule?t:{default:t}}(r);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,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){t.exports={default:n(68),__esModule:!0}},function(t,e,n){n(69),n(75),t.exports=n(29).f("iterator")},function(t,e,n){"use strict";var r=n(70)(!0);n(40)(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=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(20),o=n(19);t.exports=function(t){return function(e,n){var i,u,a=String(o(e)),s=r(n),c=a.length;return s<0||s>=c?t?"":void 0:(i=a.charCodeAt(s),i<55296||i>56319||s+1===c||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):i:t?a.slice(s,s+2):u-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(27),o=n(12),i=n(28),u={};n(6)(u,n(9)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(3),o=n(10),i=n(13);t.exports=n(2)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),a=u.length,s=0;a>s;)r.f(t,n=u[s++],e[n]);return t}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(25),i=n(21)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){n(76);for(var r=n(0),o=n(6),i=n(26),u=n(9)("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(","),s=0;s<a.length;s++){var c=a[s],f=r[c],p=f&&f.prototype;p&&!p[u]&&o(p,u,c),i[c]=i.Array}},function(t,e,n){"use strict";var r=n(77),o=n(78),i=n(26),u=n(8);t.exports=n(40)(Array,"Array",function(t,e){this._t=u(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,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(80),__esModule:!0}},function(t,e,n){n(81),n(86),n(87),n(88),t.exports=n(1).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(2),u=n(5),a=n(41),s=n(82).KEY,c=n(11),f=n(22),p=n(28),l=n(15),h=n(9),d=n(29),v=n(30),y=n(83),m=n(84),b=n(10),g=n(7),E=n(25),O=n(8),S=n(18),_=n(12),M=n(27),x=n(85),N=n(43),T=n(24),w=n(3),C=n(13),P=N.f,A=w.f,U=x.f,I=r.Symbol,j=r.JSON,L=j&&j.stringify,F=h("_hidden"),R=h("toPrimitive"),D={}.propertyIsEnumerable,V=f("symbol-registry"),K=f("symbols"),k=f("op-symbols"),H=Object.prototype,B="function"==typeof I&&!!T.f,W=r.QObject,G=!W||!W.prototype||!W.prototype.findChild,Q=i&&c(function(){return 7!=M(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(H,e);r&&delete H[e],A(t,e,n),r&&t!==H&&A(H,e,r)}:A,Y=function(t){var e=K[t]=M(I.prototype);return e._k=t,e},q=B&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},X=function(t,e,n){return t===H&&X(k,e,n),b(t),e=S(e,!0),b(n),o(K,e)?(n.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),n=M(n,{enumerable:_(0,!1)})):(o(t,F)||A(t,F,_(1,{})),t[F][e]=!0),Q(t,e,n)):A(t,e,n)},Z=function(t,e){b(t);for(var n,r=y(e=O(e)),o=0,i=r.length;i>o;)X(t,n=r[o++],e[n]);return t},J=function(t,e){return void 0===e?M(t):Z(M(t),e)},z=function(t){var e=D.call(this,t=S(t,!0));return!(this===H&&o(K,t)&&!o(k,t))&&(!(e||!o(this,t)||!o(K,t)||o(this,F)&&this[F][t])||e)},$=function(t,e){if(t=O(t),e=S(e,!0),t!==H||!o(K,e)||o(k,e)){var n=P(t,e);return!n||!o(K,e)||o(t,F)&&t[F][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=U(O(t)),r=[],i=0;n.length>i;)o(K,e=n[i++])||e==F||e==s||r.push(e);return r},et=function(t){for(var e,n=t===H,r=U(n?k:O(t)),i=[],u=0;r.length>u;)!o(K,e=r[u++])||n&&!o(H,e)||i.push(K[e]);return i};B||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(k,n),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),Q(this,t,_(1,n))};return i&&G&&Q(H,t,{configurable:!0,set:e}),Y(t)},a(I.prototype,"toString",function(){return this._k}),N.f=$,w.f=X,n(42).f=x.f=tt,n(16).f=z,T.f=et,i&&!n(14)&&a(H,"propertyIsEnumerable",z,!0),d.f=function(t){return Y(h(t))}),u(u.G+u.W+u.F*!B,{Symbol:I});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)h(nt[rt++]);for(var ot=C(h.store),it=0;ot.length>it;)v(ot[it++]);u(u.S+u.F*!B,"Symbol",{for:function(t){return o(V,t+="")?V[t]:V[t]=I(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in V)if(V[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),u(u.S+u.F*!B,"Object",{create:J,defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var ut=c(function(){T.f(1)});u(u.S+u.F*ut,"Object",{getOwnPropertySymbols:function(t){return T.f(E(t))}}),j&&u(u.S+u.F*(!B||c(function(){var t=I();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(g(e)||void 0!==t)&&!q(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,L.apply(j,r)}}),I.prototype[R]||n(6)(I.prototype,R,I.prototype.valueOf),p(I,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,e,n){var r=n(15)("meta"),o=n(7),i=n(4),u=n(3).f,a=0,s=Object.isExtensible||function(){return!0},c=!n(11)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},p=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[r].i},l=function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return c&&d.NEED&&s(t)&&!i(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:p,getWeak:l,onFreeze:h}},function(t,e,n){var r=n(13),o=n(24),i=n(16);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,a=n(t),s=i.f,c=0;a.length>c;)s.call(t,u=a[c++])&&e.push(u);return e}},function(t,e,n){var r=n(38);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(8),o=n(42).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?a(t):o(r(t))}},function(t,e){},function(t,e,n){n(30)("asyncIterator")},function(t,e,n){n(30)("observable")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(90),i=r(o),u=n(94),a=r(u),s=n(39),c=r(s);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){t.exports={default:n(91),__esModule:!0}},function(t,e,n){n(92),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(93).set})},function(t,e,n){var r=n(7),o=n(10),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(33)(Function.call,n(43).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){t.exports={default:n(95),__esModule:!0}},function(t,e,n){n(96);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(5);r(r.S,"Object",{create:n(27)})},function(t,e){}]).default});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports["rc-input-number"]=e(require("react")):t["rc-input-number"]=e(t.React)}("undefined"!=typeof self?self:this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},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=49)}([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.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(10),o=n(37),i=n(17),u=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(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){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(0),o=n(1),i=n(36),u=n(6),a=n(4),s=function(t,e,n){var c,f,p,l=t&s.F,h=t&s.G,d=t&s.S,v=t&s.P,y=t&s.B,m=t&s.W,b=h?o:o[e]||(o[e]={}),g=b.prototype,E=h?r:d?r[e]:(r[e]||{}).prototype;h&&(n=e);for(c in n)(f=!l&&E&&void 0!==E[c])&&a(b,c)||(p=f?E[c]:n[c],b[c]=h&&"function"!=typeof E[c]?n[c]:y&&f?i(p,r):m&&E[c]==p?function(t){var e=function(e,n,r){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,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(p):v&&"function"==typeof p?i(Function.call,p):p,v&&((b.virtual||(b.virtual={}))[c]=p,t&s.R&&g&&!g[c]&&u(g,c,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(3),o=n(12);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(40),o=n(18);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(21)("wks"),o=n(15),i=n(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(7);t.exports=function(t){if(!r(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,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(39),o=n(22);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(21)("keys"),o=n(15);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(18);t.exports=function(t){return Object(r(t))}},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 r=n(42),o=function(t){return t&&t.__esModule?t:{default:t}}(r);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,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e){t.exports={}},function(t,e,n){var r=n(10),o=n(64),i=n(22),u=n(20)("IE_PROTO"),a=function(){},s=function(){var t,e=n(38)("iframe"),r=i.length;for(e.style.display="none",n(65).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[u]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(3).f,o=n(4),i=n(9)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(9)},function(t,e,n){var r=n(0),o=n(1),i=n(14),u=n(30),a=n(3).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(81),i=r(o),u=n(85),a=r(u),s=n(42),c=r(s);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(e,n){e.exports=t},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(51),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){var r=n(54);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){t.exports=!n(2)&&!n(11)(function(){return 7!=Object.defineProperty(n(38)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(7),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(4),o=n(8),i=n(56)(!1),u=n(20)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),s=0,c=[];for(n in a)n!=u&&r(a,n)&&c.push(n);for(;e.length>s;)r(a,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(41);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(59),i=r(o),u=n(71),a=r(u),s="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"===s(i.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,n){"use strict";var r=n(14),o=n(5),i=n(44),u=n(6),a=n(27),s=n(63),c=n(29),f=n(66),p=n(9)("iterator"),l=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,d,v,y,m){s(n,e,d);var b,g,E,S=function(t){if(!l&&t in x)return x[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",_="values"==v,M=!1,x=t.prototype,N=x[p]||x["@@iterator"]||v&&x[v],C=N||S(v),T=v?_?S("entries"):C:void 0,w="Array"==e?x.entries||N:N;if(w&&(E=f(w.call(new t)))!==Object.prototype&&E.next&&(c(E,O,!0),r||"function"==typeof E[p]||u(E,p,h)),_&&N&&"values"!==N.name&&(M=!0,C=function(){return N.call(this)}),r&&!m||!l&&!M&&x[p]||u(x,p,C),a[e]=C,a[O]=h,v)if(b={values:_?C:S("values"),keys:y?C:S("keys"),entries:T},m)for(g in b)g in x||i(x,g,b[g]);else o(o.P+o.F*(l||M),e,b);return b}},function(t,e,n){t.exports=n(6)},function(t,e,n){var r=n(39),o=n(22).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(16),o=n(12),i=n(8),u=n(17),a=n(4),s=n(37),c=Object.getOwnPropertyDescriptor;e.f=n(2)?c:function(t,e){if(t=i(t),e=u(e,!0),s)try{return c(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){t.exports=n(88)()},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var u=n.apply(null,r);u&&t.push(u)}else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&t.push(a)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){n(50),t.exports=n(98)},function(t,e,n){"use strict";function r(){}function o(t){t.preventDefault()}function i(t){return t.replace(/[^\w\.-]+/g,"")}Object.defineProperty(e,"__esModule",{value:!0});var u=n(34),a=n.n(u),s=n(35),c=n.n(s),f=n(25),p=n.n(f),l=n(26),h=n.n(l),d=n(32),v=n.n(d),y=n(33),m=n.n(y),b=n(47),g=n.n(b),E=n(48),S=n.n(E),O=n(90),_=n(91),M=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,x=function(t){return void 0!==t&&null!==t},N=function(t,e){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},C=function(t){function e(n){p()(this,e);var r=h()(this,t.call(this,n));T.call(r);var o=void 0;o="value"in n?n.value:n.defaultValue,r.state={focused:n.autoFocus};var i=r.getValidValue(r.toNumber(o));return r.state=c()({},r.state,{inputValue:r.toPrecisionAsStep(i),value:i}),r}return v()(e,t),e.prototype.componentDidMount=function(){this.componentDidUpdate()},e.prototype.componentDidUpdate=function(t){var e=this.props,n=e.value,r=e.onChange,o=e.max,i=e.min,u=this.state.focused;if(t){if(!N(t.value,n)||!N(t.max,o)||!N(t.min,i)){var a=u?n:this.getValidValue(n),s=void 0;s=this.pressingUpOrDown?a:this.inputting?this.rawInput:this.toPrecisionAsStep(a),this.setState({value:a,inputValue:s})}var c="value"in this.props?n:this.state.value;"max"in this.props&&t.max!==o&&"number"==typeof c&&c>o&&r&&r(o),"min"in this.props&&t.min!==i&&"number"==typeof c&&c<i&&r&&r(i)}try{if(void 0!==this.cursorStart&&this.state.focused)if(this.partRestoreByAfter(this.cursorAfter)||this.state.value===this.props.value){if(this.currentValue===this.input.value)switch(this.lastKeyCode){case O.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case O.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1)}}else{var f=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===O.a.BACKSPACE?f=this.cursorStart-1:this.lastKeyCode===O.a.DELETE&&(f=this.cursorStart):f=this.input.value.length,this.fixCaret(f,f)}}catch(t){}this.lastKeyCode=null,this.pressingUpOrDown&&(this.props.focusOnUpDown&&this.state.focused&&document.activeElement!==this.input&&this.focus(),this.pressingUpOrDown=!1)},e.prototype.componentWillUnmount=function(){this.stop()},e.prototype.getCurrentValidValue=function(t){var e=t;return e=""===e?"":this.isNotCompleteNumber(parseFloat(e,10))?this.state.value:this.getValidValue(e),this.toNumber(e)},e.prototype.getRatio=function(t){var e=1;return t.metaKey||t.ctrlKey?e=.1:t.shiftKey&&(e=10),e},e.prototype.getValueFromEvent=function(t){var e=t.target.value.trim().replace(/。/g,".");return x(this.props.decimalSeparator)&&(e=e.replace(this.props.decimalSeparator,".")),e},e.prototype.getValidValue=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.min,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.max,r=parseFloat(t,10);return isNaN(r)?t:(r<e&&(r=e),r>n&&(r=n),r)},e.prototype.setValue=function(t,e){var n=this.props.precision,r=this.isNotCompleteNumber(parseFloat(t,10))?null:parseFloat(t,10),o=this.state,i=o.value,u=void 0===i?null:i,a=o.inputValue,s=void 0===a?null:a,c="number"==typeof r?r.toFixed(n):""+r,f=r!==u||c!==""+s;return"value"in this.props?this.setState({inputValue:this.toPrecisionAsStep(this.state.value)},e):this.setState({value:r,inputValue:this.toPrecisionAsStep(t)},e),f&&this.props.onChange(r),r},e.prototype.getPrecision=function(t){if(x(this.props.precision))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},e.prototype.getMaxPrecision=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.props,r=n.precision,o=n.step;if(x(r))return r;var i=this.getPrecision(e),u=this.getPrecision(o),a=this.getPrecision(t);return t?Math.max(a,i+u):i+u},e.prototype.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)},e.prototype.fixCaret=function(t,e){if(void 0!==t&&void 0!==e&&this.input&&this.input.value)try{var n=this.input.selectionStart,r=this.input.selectionEnd;t===n&&e===r||this.input.setSelectionRange(t,e)}catch(t){}},e.prototype.focus=function(){this.input.focus(),this.recordCursorPosition()},e.prototype.blur=function(){this.input.blur()},e.prototype.select=function(){this.input.select()},e.prototype.formatWrapper=function(t){return this.props.formatter?this.props.formatter(t):t},e.prototype.toPrecisionAsStep=function(t){if(this.isNotCompleteNumber(t)||""===t)return t;var e=Math.abs(this.getMaxPrecision(t));return isNaN(e)?t.toString():Number(t).toFixed(e)},e.prototype.isNotCompleteNumber=function(t){return isNaN(t)||""===t||null===t||t&&t.toString().indexOf(".")===t.toString().length-1},e.prototype.toNumber=function(t){var e=this.props.precision,n=this.state.focused,r=t&&t.length>16&&n;return this.isNotCompleteNumber(t)||r?t:x(e)?Math.round(t*Math.pow(10,e))/Math.pow(10,e):Number(t)},e.prototype.upStep=function(t,e){var n=this.props.step,r=this.getPrecisionFactor(t,e),o=Math.abs(this.getMaxPrecision(t,e)),i=((r*t+r*n*e)/r).toFixed(o);return this.toNumber(i)},e.prototype.downStep=function(t,e){var n=this.props.step,r=this.getPrecisionFactor(t,e),o=Math.abs(this.getMaxPrecision(t,e)),i=((r*t-r*n*e)/r).toFixed(o);return this.toNumber(i)},e.prototype.step=function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments[3];this.stop(),e&&(e.persist(),e.preventDefault());var i=this.props;if(!i.disabled){var u=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(u)){var a=this[t+"Step"](u,r),s=a>i.max||a<i.min;a>i.max?a=i.max:a<i.min&&(a=i.min),this.setValue(a),this.setState({focused:!0}),s||(this.autoStepTimer=setTimeout(function(){n[t](e,r,!0)},o?200:600))}}},e.prototype.render=function(){var t,e=c()({},this.props),n=e.prefixCls,i=e.disabled,u=e.readOnly,s=e.useTouch,f=e.autoComplete,p=e.upHandler,l=e.downHandler,h=(a()(e,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler"]),S()((t={},t[n]=!0,t[e.className]=!!e.className,t[n+"-disabled"]=i,t[n+"-focused"]=this.state.focused,t))),d="",v="",y=this.state,b=y.value,g=y.inputValue;if(b||0===b)if(isNaN(b))d=n+"-handler-up-disabled",v=n+"-handler-down-disabled";else{var E=Number(b);E>=e.max&&(d=n+"-handler-up-disabled"),E<=e.min&&(v=n+"-handler-down-disabled")}var O={};for(var M in e)!e.hasOwnProperty(M)||"data-"!==M.substr(0,5)&&"aria-"!==M.substr(0,5)&&"role"!==M||(O[M]=e[M]);var x=!e.readOnly&&!e.disabled,N=this.composing?g:this.getInputDisplayValue(),C=void 0,T=void 0;s?(C={onTouchStart:x&&!d?this.up:r,onTouchEnd:this.stop},T={onTouchStart:x&&!v?this.down:r,onTouchEnd:this.stop}):(C={onMouseDown:x&&!d?this.up:r,onMouseUp:this.stop,onMouseLeave:this.stop},T={onMouseDown:x&&!v?this.down:r,onMouseUp:this.stop,onMouseLeave:this.stop});var w=!!d||i||u,P=!!v||i||u;return m.a.createElement("div",{className:h,style:e.style,title:e.title,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onMouseOver:e.onMouseOver,onMouseOut:e.onMouseOut,onCompositionStart:this.onComposition,onCompositionEnd:this.onComposition},m.a.createElement("div",{className:n+"-handler-wrap"},m.a.createElement(_.a,c()({ref:this.saveUp,disabled:w,prefixCls:n,unselectable:"unselectable"},C,{role:"button","aria-label":"Increase Value","aria-disabled":!!w,className:n+"-handler "+n+"-handler-up "+d}),p||m.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:o})),m.a.createElement(_.a,c()({ref:this.saveDown,disabled:P,prefixCls:n,unselectable:"unselectable"},T,{role:"button","aria-label":"Decrease Value","aria-disabled":!!P,className:n+"-handler "+n+"-handler-down "+v}),l||m.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:o}))),m.a.createElement("div",{className:n+"-input-wrap"},m.a.createElement("input",c()({role:"spinbutton","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":b,required:e.required,type:e.type,placeholder:e.placeholder,onClick:e.onClick,onMouseUp:this.onMouseUp,className:n+"-input",tabIndex:e.tabIndex,autoComplete:f,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:x?this.onKeyDown:r,onKeyUp:x?this.onKeyUp:r,autoFocus:e.autoFocus,maxLength:e.maxLength,readOnly:e.readOnly,disabled:e.disabled,max:e.max,min:e.min,step:e.step,name:e.name,title:e.title,id:e.id,onChange:this.onChange,ref:this.saveInput,value:N,pattern:e.pattern,inputMode:e.inputMode},O))))},e}(m.a.Component);C.propTypes={value:g.a.oneOfType([g.a.number,g.a.string]),defaultValue:g.a.oneOfType([g.a.number,g.a.string]),focusOnUpDown:g.a.bool,autoFocus:g.a.bool,onChange:g.a.func,onPressEnter:g.a.func,onKeyDown:g.a.func,onKeyUp:g.a.func,prefixCls:g.a.string,tabIndex:g.a.oneOfType([g.a.string,g.a.number]),disabled:g.a.bool,onFocus:g.a.func,onBlur:g.a.func,readOnly:g.a.bool,max:g.a.number,min:g.a.number,step:g.a.oneOfType([g.a.number,g.a.string]),upHandler:g.a.node,downHandler:g.a.node,useTouch:g.a.bool,formatter:g.a.func,parser:g.a.func,onMouseEnter:g.a.func,onMouseLeave:g.a.func,onMouseOver:g.a.func,onMouseOut:g.a.func,onMouseUp:g.a.func,precision:g.a.number,required:g.a.bool,pattern:g.a.string,decimalSeparator:g.a.string,inputMode:g.a.string},C.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",min:-M,step:1,style:{},onChange:r,onKeyDown:r,onPressEnter:r,onFocus:r,onBlur:r,parser:i,required:!1,autoComplete:"off"};var T=function(){var t=this;this.onKeyDown=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t.props,u=i.onKeyDown,a=i.onPressEnter;if(e.keyCode===O.a.UP){var s=t.getRatio(e);t.up(e,s),t.stop()}else if(e.keyCode===O.a.DOWN){var c=t.getRatio(e);t.down(e,c),t.stop()}else e.keyCode===O.a.ENTER&&a&&a(e);t.recordCursorPosition(),t.lastKeyCode=e.keyCode,u&&u.apply(void 0,[e].concat(r))},this.onKeyUp=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t.props.onKeyUp;t.stop(),t.recordCursorPosition(),i&&i.apply(void 0,[e].concat(r))},this.onChange=function(e){var n=t.props.onChange;t.state.focused&&(t.inputting=!0),t.rawInput=t.props.parser(t.getValueFromEvent(e)),t.composing?t.setState({inputValue:t.getValueFromEvent(e)}):(t.setState({inputValue:t.rawInput}),n(t.toNumber(t.rawInput)))},this.onMouseUp=function(){var e=t.props.onMouseUp;t.recordCursorPosition(),e&&e.apply(void 0,arguments)},this.onFocus=function(){var e;t.setState({focused:!0}),(e=t.props).onFocus.apply(e,arguments)},this.onBlur=function(){var e=t.props.onBlur;t.inputting=!1,t.setState({focused:!1});var n=t.getCurrentValidValue(t.state.inputValue),r=t.setValue(n);if(e){var o=t.input.value,i=t.getInputDisplayValue({focus:!1,value:r});t.input.value=i,e.apply(void 0,arguments),t.input.value=o}},this.onComposition=function(e){"compositionstart"===e.type?t.composing=!0:"compositionend"===e.type&&(t.composing=!1,t.onChange(e))},this.getInputDisplayValue=function(e){var n=e||t.state,r=n.focused,o=n.inputValue,i=n.value,u=void 0;void 0!==(u=r?o:t.toPrecisionAsStep(i))&&null!==u||(u="");var a=t.formatWrapper(u);return x(t.props.decimalSeparator)&&(a=a.toString().replace(".",t.props.decimalSeparator)),a},this.recordCursorPosition=function(){try{t.cursorStart=t.input.selectionStart,t.cursorEnd=t.input.selectionEnd,t.currentValue=t.input.value,t.cursorBefore=t.input.value.substring(0,t.cursorStart),t.cursorAfter=t.input.value.substring(t.cursorEnd)}catch(t){}},this.restoreByAfter=function(e){if(void 0===e)return!1;var n=t.input.value,r=n.lastIndexOf(e);if(-1===r)return!1;var o=t.cursorBefore.length;return t.lastKeyCode===O.a.DELETE&&t.cursorBefore.charAt(o-1)===e[0]?(t.fixCaret(o,o),!0):r+e.length===n.length&&(t.fixCaret(r,r),!0)},this.partRestoreByAfter=function(e){return void 0!==e&&Array.prototype.some.call(e,function(n,r){var o=e.substring(r);return t.restoreByAfter(o)})},this.stop=function(){t.autoStepTimer&&clearTimeout(t.autoStepTimer)},this.down=function(e,n,r){t.pressingUpOrDown=!0,t.step("down",e,n,r)},this.up=function(e,n,r){t.pressingUpOrDown=!0,t.step("up",e,n,r)},this.saveUp=function(e){t.upHandler=e},this.saveDown=function(e){t.downHandler=e},this.saveInput=function(e){t.input=e}};e.default=C},function(t,e,n){t.exports={default:n(52),__esModule:!0}},function(t,e,n){n(53),t.exports=n(1).Object.assign},function(t,e,n){var r=n(5);r(r.S+r.F,"Object",{assign:n(55)})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(2),o=n(13),i=n(23),u=n(16),a=n(24),s=n(40),c=Object.assign;t.exports=!c||n(11)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=a(t),c=arguments.length,f=1,p=i.f,l=u.f;c>f;)for(var h,d=s(arguments[f++]),v=p?o(d).concat(p(d)):o(d),y=v.length,m=0;y>m;)h=v[m++],r&&!l.call(d,h)||(n[h]=d[h]);return n}:c},function(t,e,n){var r=n(8),o=n(57),i=n(58);t.exports=function(t){return function(e,n,u){var a,s=r(e),c=o(s.length),f=i(u,c);if(t&&n!=n){for(;c>f;)if((a=s[f++])!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(19),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(19),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){t.exports={default:n(60),__esModule:!0}},function(t,e,n){n(61),n(67),t.exports=n(30).f("iterator")},function(t,e,n){"use strict";var r=n(62)(!0);n(43)(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=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(19),o=n(18);t.exports=function(t){return function(e,n){var i,u,a=String(o(e)),s=r(n),c=a.length;return s<0||s>=c?t?"":void 0:(i=a.charCodeAt(s),i<55296||i>56319||s+1===c||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):i:t?a.slice(s,s+2):u-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(28),o=n(12),i=n(29),u={};n(6)(u,n(9)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(3),o=n(10),i=n(13);t.exports=n(2)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),a=u.length,s=0;a>s;)r.f(t,n=u[s++],e[n]);return t}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(24),i=n(20)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){n(68);for(var r=n(0),o=n(6),i=n(27),u=n(9)("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(","),s=0;s<a.length;s++){var c=a[s],f=r[c],p=f&&f.prototype;p&&!p[u]&&o(p,u,c),i[c]=i.Array}},function(t,e,n){"use strict";var r=n(69),o=n(70),i=n(27),u=n(8);t.exports=n(43)(Array,"Array",function(t,e){this._t=u(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,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(72),__esModule:!0}},function(t,e,n){n(73),n(78),n(79),n(80),t.exports=n(1).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(2),u=n(5),a=n(44),s=n(74).KEY,c=n(11),f=n(21),p=n(29),l=n(15),h=n(9),d=n(30),v=n(31),y=n(75),m=n(76),b=n(10),g=n(7),E=n(24),S=n(8),O=n(17),_=n(12),M=n(28),x=n(77),N=n(46),C=n(23),T=n(3),w=n(13),P=N.f,A=T.f,U=x.f,I=r.Symbol,L=r.JSON,F=L&&L.stringify,D=h("_hidden"),R=h("toPrimitive"),j={}.propertyIsEnumerable,V=f("symbol-registry"),K=f("symbols"),k=f("op-symbols"),H=Object.prototype,B="function"==typeof I&&!!C.f,W=r.QObject,G=!W||!W.prototype||!W.prototype.findChild,Q=i&&c(function(){return 7!=M(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(H,e);r&&delete H[e],A(t,e,n),r&&t!==H&&A(H,e,r)}:A,Y=function(t){var e=K[t]=M(I.prototype);return e._k=t,e},q=B&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},X=function(t,e,n){return t===H&&X(k,e,n),b(t),e=O(e,!0),b(n),o(K,e)?(n.enumerable?(o(t,D)&&t[D][e]&&(t[D][e]=!1),n=M(n,{enumerable:_(0,!1)})):(o(t,D)||A(t,D,_(1,{})),t[D][e]=!0),Q(t,e,n)):A(t,e,n)},Z=function(t,e){b(t);for(var n,r=y(e=S(e)),o=0,i=r.length;i>o;)X(t,n=r[o++],e[n]);return t},J=function(t,e){return void 0===e?M(t):Z(M(t),e)},z=function(t){var e=j.call(this,t=O(t,!0));return!(this===H&&o(K,t)&&!o(k,t))&&(!(e||!o(this,t)||!o(K,t)||o(this,D)&&this[D][t])||e)},$=function(t,e){if(t=S(t),e=O(e,!0),t!==H||!o(K,e)||o(k,e)){var n=P(t,e);return!n||!o(K,e)||o(t,D)&&t[D][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=U(S(t)),r=[],i=0;n.length>i;)o(K,e=n[i++])||e==D||e==s||r.push(e);return r},et=function(t){for(var e,n=t===H,r=U(n?k:S(t)),i=[],u=0;r.length>u;)!o(K,e=r[u++])||n&&!o(H,e)||i.push(K[e]);return i};B||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(k,n),o(this,D)&&o(this[D],t)&&(this[D][t]=!1),Q(this,t,_(1,n))};return i&&G&&Q(H,t,{configurable:!0,set:e}),Y(t)},a(I.prototype,"toString",function(){return this._k}),N.f=$,T.f=X,n(45).f=x.f=tt,n(16).f=z,C.f=et,i&&!n(14)&&a(H,"propertyIsEnumerable",z,!0),d.f=function(t){return Y(h(t))}),u(u.G+u.W+u.F*!B,{Symbol:I});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)h(nt[rt++]);for(var ot=w(h.store),it=0;ot.length>it;)v(ot[it++]);u(u.S+u.F*!B,"Symbol",{for:function(t){return o(V,t+="")?V[t]:V[t]=I(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in V)if(V[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),u(u.S+u.F*!B,"Object",{create:J,defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var ut=c(function(){C.f(1)});u(u.S+u.F*ut,"Object",{getOwnPropertySymbols:function(t){return C.f(E(t))}}),L&&u(u.S+u.F*(!B||c(function(){var t=I();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(g(e)||void 0!==t)&&!q(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,F.apply(L,r)}}),I.prototype[R]||n(6)(I.prototype,R,I.prototype.valueOf),p(I,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,e,n){var r=n(15)("meta"),o=n(7),i=n(4),u=n(3).f,a=0,s=Object.isExtensible||function(){return!0},c=!n(11)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},p=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[r].i},l=function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return c&&d.NEED&&s(t)&&!i(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:p,getWeak:l,onFreeze:h}},function(t,e,n){var r=n(13),o=n(23),i=n(16);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,a=n(t),s=i.f,c=0;a.length>c;)s.call(t,u=a[c++])&&e.push(u);return e}},function(t,e,n){var r=n(41);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(8),o=n(45).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?a(t):o(r(t))}},function(t,e){},function(t,e,n){n(31)("asyncIterator")},function(t,e,n){n(31)("observable")},function(t,e,n){t.exports={default:n(82),__esModule:!0}},function(t,e,n){n(83),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(84).set})},function(t,e,n){var r=n(7),o=n(10),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(36)(Function.call,n(46).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){t.exports={default:n(86),__esModule:!0}},function(t,e,n){n(87);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(5);r(r.S,"Object",{create:n(28)})},function(t,e,n){"use strict";function r(){}function o(){}var i=n(89);o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,u){if(u!==i){var a=new Error("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");throw a.name="Invariant Violation",a}}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,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return 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";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=r.F1&&e<=r.F12)return!1;switch(e){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=r.ZERO&&t<=r.NINE)return!0;if(t>=r.NUM_ZERO&&t<=r.NUM_MULTIPLY)return!0;if(t>=r.A&&t<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};e.a=r},function(t,e,n){"use strict";var r=n(34),o=n.n(r),i=n(25),u=n.n(i),a=n(26),s=n.n(a),c=n(32),f=n.n(c),p=n(33),l=n.n(p),h=n(47),d=n.n(h),v=n(92),y=function(t){function e(){return u()(this,e),s()(this,t.apply(this,arguments))}return f()(e,t),e.prototype.render=function(){var t=this.props,e=t.prefixCls,n=t.disabled,r=o()(t,["prefixCls","disabled"]);return l.a.createElement(v.a,{disabled:n,activeClassName:e+"-handler-active"},l.a.createElement("span",r))},e}(p.Component);y.propTypes={prefixCls:d.a.string,disabled:d.a.bool,onTouchStart:d.a.func,onTouchEnd:d.a.func,onMouseDown:d.a.func,onMouseUp:d.a.func,onMouseLeave:d.a.func},e.a=y},function(t,e,n){"use strict";var r=n(93);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";var r=n(35),o=n.n(r),i=n(25),u=n.n(i),a=n(94),s=n.n(a),c=n(26),f=n.n(c),p=n(32),l=n.n(p),h=n(33),d=n.n(h),v=n(48),y=n.n(v),m=function(t){function e(){u()(this,e);var t=f()(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return t.state={active:!1},t.onTouchStart=function(e){t.triggerEvent("TouchStart",!0,e)},t.onTouchMove=function(e){t.triggerEvent("TouchMove",!1,e)},t.onTouchEnd=function(e){t.triggerEvent("TouchEnd",!1,e)},t.onTouchCancel=function(e){t.triggerEvent("TouchCancel",!1,e)},t.onMouseDown=function(e){t.triggerEvent("MouseDown",!0,e)},t.onMouseUp=function(e){t.triggerEvent("MouseUp",!1,e)},t.onMouseLeave=function(e){t.triggerEvent("MouseLeave",!1,e)},t}return l()(e,t),s()(e,[{key:"componentDidUpdate",value:function(){this.props.disabled&&this.state.active&&this.setState({active:!1})}},{key:"triggerEvent",value:function(t,e,n){var r="on"+t,o=this.props.children;o.props[r]&&o.props[r](n),e!==this.state.active&&this.setState({active:e})}},{key:"render",value:function(){var t=this.props,e=t.children,n=t.disabled,r=t.activeClassName,i=t.activeStyle,u=n?void 0:{onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd,onTouchCancel:this.onTouchCancel,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseLeave},a=d.a.Children.only(e);if(!n&&this.state.active){var s=a.props,c=s.style,f=s.className;return!1!==i&&(i&&(c=o()({},c,i)),f=y()(f,r)),d.a.cloneElement(a,o()({className:f,style:c},u))}return d.a.cloneElement(a,u)}}]),e}(d.a.Component);e.a=m,m.defaultProps={disabled:!1}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(95),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){t.exports={default:n(96),__esModule:!0}},function(t,e,n){n(97);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(5);r(r.S+r.F*!n(2),"Object",{defineProperty:n(3).f})},function(t,e){}]).default});
{
"name": "rc-input-number",
"version": "4.5.8-beta.2",
"version": "4.5.8",
"description": "React input-number component",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc