UNPKG

rc-slider

Version:
7 lines 88 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-dom"),require("react")):"function"==typeof define&&define.amd?define(["react-dom","react"],t):"object"==typeof exports?exports["rc-slider"]=t(require("react-dom"),require("react")):e["rc-slider"]=t(e.ReactDOM,e.React)}(this,function(e,t){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){n(1),e.exports=n(2)},function(e,t){},function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(){}function i(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function s(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function a(e,t){return e?t.clientY:t.pageX}function u(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:n.left+.5*n.width}function l(e){e.stopPropagation(),e.preventDefault()}Object.defineProperty(t,"__esModule",{value:!0});var f=n(4),p=o(f),c=n(23),d=o(c),h=n(62),m=o(h),v=n(69),y=o(v),g=n(70),b=o(g),T=n(93),P=o(T),w=n(101),x=n(102),O=o(x),E=n(103),C=o(E),_=n(108),M=o(_),A=n(109),S=o(A),k=n(110),j=o(k),N=n(144),L=o(N),D=n(146),V=o(D),F=n(145),W=(o(F),function(e){function t(n){(0,y.default)(this,t);var o=(0,b.default)(this,e.call(this,n)),r=n.range,i=n.min,s=n.max,a=(n.step,r?Array.apply(null,Array(r+1)).map(function(){return i}):i),u="defaultValue"in n?n.defaultValue:a,l=void 0!==n.value?n.value:u,f=(r?l:[i,l]).map(function(e){return o.trimAlignValue(e)}),p=void 0;return p=r&&f[0]===f[f.length-1]&&f[0]===s?0:f.length-1,o.state={handle:null,recent:p,bounds:f},o}return(0,P.default)(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this;if("value"in e||"min"in e||"max"in e){var n=this.state.bounds;if(e.range){var o=e.value||n,r=o.map(function(n){return t.trimAlignValue(n,e)});if(r.every(function(e,t){return e===n[t]}))return;this.setState({bounds:r}),n.some(function(n){return t.isValueOutOfBounds(n,e)})&&this.props.onChange(r)}else{var i=void 0!==e.value?e.value:n[1],s=this.trimAlignValue(i,e);if(s===n[1]&&n[0]===e.min)return;this.setState({bounds:[e.min,s]}),this.isValueOutOfBounds(n[1],e)&&this.props.onChange(s)}}},t.prototype.onChange=function(e){var t=this.props,n=!("value"in t);n?this.setState(e):void 0!==e.handle&&this.setState({handle:e.handle});var o=(0,m.default)({},this.state,e),r=t.range?o.bounds:o.bounds[1];t.onChange(r)},t.prototype.onMouseDown=function(e){if(0===e.button){var t=a(this.props.vertical,e);if(this.isEventFromHandle(e)){var n=u(this.props.vertical,e.target);this.dragOffset=t-n,t=n}else this.dragOffset=0;this.onStart(t),this.addDocumentEvents("mouse"),l(e)}},t.prototype.onMouseMove=function(e){var t=a(this.props.vertical,e);this.onMove(e,t-this.dragOffset)},t.prototype.onMove=function(e,t){l(e);var n=this.props,o=this.state,r=t-this.startPosition;r=this.props.vertical?-r:r;var i=r/this.getSliderLength()*(n.max-n.min),s=this.trimAlignValue(this.startValue+i),a=o.bounds[o.handle];if(s!==a){var u=[].concat((0,d.default)(o.bounds));u[o.handle]=s;var f=o.handle;if(n.pushable!==!1){var p=o.bounds[f];this.pushSurroundingHandles(u,f,p)}else n.allowCross&&(u.sort(function(e,t){return e-t}),f=u.indexOf(s));this.onChange({handle:f,bounds:u})}},t.prototype.onStart=function(e){var t=this.props;t.onBeforeChange(this.getValue());var n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;var o=this.state,r=o.bounds,i=1;if(this.props.range){for(var s=0,a=1;a<r.length-1;++a)n>r[a]&&(s=a);Math.abs(r[s+1]-n)<Math.abs(r[s]-n)&&(s+=1),i=s;var u=r[s+1]===r[s];u&&(i=o.recent),u&&n!==r[s+1]&&(i=n<r[s+1]?s:s+1)}this.setState({handle:i,recent:i});var l=o.bounds[i];if(n!==l){var f=[].concat((0,d.default)(o.bounds));f[i]=n,this.onChange({bounds:f})}},t.prototype.onTouchMove=function(e){if(i(e))return void this.end("touch");var t=s(this.props.vertical,e);this.onMove(e,t-this.dragOffset)},t.prototype.onTouchStart=function(e){if(!i(e)){var t=s(this.props.vertical,e);if(this.isEventFromHandle(e)){var n=u(this.props.vertical,e.target);this.dragOffset=t-n,t=n}else this.dragOffset=0;this.onStart(t),this.addDocumentEvents("touch"),l(e)}},t.prototype.getPoints=function(){var e=this.props,t=e.marks,n=e.step,o=e.min,r=e.max,i=this._getPointsCache;if(!i||i.marks!==t||i.step!==n){var s=(0,m.default)({},t);if(null!==n)for(var a=o;a<=r;a+=n)s[a]=a;var u=Object.keys(s).map(parseFloat);u.sort(function(e,t){return e-t}),this._getPointsCache={marks:t,step:n,points:u}}return this._getPointsCache.points},t.prototype.getPrecision=function(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n},t.prototype.getSliderLength=function(){var e=this.refs.slider;return e?this.props.vertical?e.clientHeight:e.clientWidth:0},t.prototype.getSliderStart=function(){var e=this.refs.slider,t=e.getBoundingClientRect();return this.props.vertical?t.top:t.left},t.prototype.getValue=function(){var e=this.state.bounds;return this.props.range?e:e[1]},t.prototype.addDocumentEvents=function(e){"touch"===e?(this.onTouchMoveListener=(0,C.default)(document,"touchmove",this.onTouchMove.bind(this)),this.onTouchUpListener=(0,C.default)(document,"touchend",this.end.bind(this,"touch"))):"mouse"===e&&(this.onMouseMoveListener=(0,C.default)(document,"mousemove",this.onMouseMove.bind(this)),this.onMouseUpListener=(0,C.default)(document,"mouseup",this.end.bind(this,"mouse")))},t.prototype.calcOffset=function(e){var t=this.props,n=t.min,o=t.max,r=(e-n)/(o-n);return 100*r},t.prototype.calcValue=function(e){var t=this.props,n=t.vertical,o=t.min,r=t.max,i=Math.abs(e/this.getSliderLength()),s=n?(1-i)*(r-o)+o:i*(r-o)+o;return s},t.prototype.calcValueByPos=function(e){var t=e-this.getSliderStart(),n=this.trimAlignValue(this.calcValue(t));return n},t.prototype.end=function(e){this.removeEvents(e),this.props.onAfterChange(this.getValue()),this.setState({handle:null})},t.prototype.isEventFromHandle=function(e){var t=this;return this.state.bounds.some(function(n,o){return t.refs["handle-"+o]&&e.target===(0,w.findDOMNode)(t.refs["handle-"+o])})},t.prototype.isValueOutOfBounds=function(e,t){return e<t.min||e>t.max},t.prototype.pushHandle=function(e,t,n,o){for(var r=e[t],i=e[t];n*(i-r)<o;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=r,!1;i=e[t]}return!0},t.prototype.pushHandleOnePoint=function(e,t,n){var o=this.getPoints(),r=o.indexOf(e[t]),i=r+n;if(i>=o.length||i<0)return!1;var s=t+n,a=o[i],u=this.props.pushable,l=n*(e[s]-a);return!!this.pushHandle(e,s,n,u-l)&&(e[t]=a,!0)},t.prototype.pushSurroundingHandles=function(e,t,n){var o=this.props.pushable,r=e[t],i=0;if(e[t+1]-r<o?i=1:r-e[t-1]<o&&(i=-1),0!==i){var s=t+i,a=i*(e[s]-r);this.pushHandle(e,s,i,o-a)||(e[t]=n)}},t.prototype.removeEvents=function(e){"touch"===e?(this.onTouchMoveListener.remove(),this.onTouchUpListener.remove()):"mouse"===e&&(this.onMouseMoveListener.remove(),this.onMouseUpListener.remove())},t.prototype.trimAlignValue=function(e,t){var n=this.state||{},o=n.handle,r=n.bounds,i=(0,m.default)({},this.props,t||{}),s=i.marks,a=i.step,u=i.min,l=i.max,f=i.allowCross,p=e;p<=u&&(p=u),p>=l&&(p=l),!f&&null!=o&&o>0&&p<=r[o-1]&&(p=r[o-1]),!f&&null!=o&&o<r.length-1&&p>=r[o+1]&&(p=r[o+1]);var c=Object.keys(s).map(parseFloat);if(null!==a){var d=Math.round((p-u)/a)*a+u;c.push(d)}var h=c.map(function(e){return Math.abs(p-e)}),v=c[h.indexOf(Math.min.apply(Math,h))];return null!==a?parseFloat(v.toFixed(this.getPrecision(a))):v},t.prototype.render=function(){var e,t=this,n=this.state,o=n.handle,i=n.bounds,s=this.props,a=s.className,u=s.prefixCls,l=s.tooltipPrefixCls,f=s.disabled,c=s.vertical,d=s.dots,h=s.included,v=s.range,y=s.step,g=s.marks,b=s.max,T=s.min,P=s.tipTransitionName,w=s.tipFormatter,E=s.children,C=this.props.handle,_=i.map(function(e){return t.calcOffset(e)}),A=u+"-handle",k=i.map(function(e,t){var n;return(0,M.default)((n={},(0,p.default)(n,A,!0),(0,p.default)(n,A+"-"+(t+1),!0),(0,p.default)(n,A+"-lower",0===t),(0,p.default)(n,A+"-upper",t===i.length-1),n))}),j=null===y||null===w,N={prefixCls:u,tooltipPrefixCls:l,noTip:j,tipTransitionName:P,tipFormatter:w,vertical:c},D=i.map(function(e,t){return(0,x.cloneElement)(C,(0,m.default)({},N,{className:k[t],value:e,offset:_[t],dragging:o===t,index:t,key:t,ref:"handle-"+t}))});v||D.shift();for(var F=h||v,W=[],H=1;H<i.length;++H){var B,I=(0,M.default)((B={},(0,p.default)(B,u+"-track",!0),(0,p.default)(B,u+"-track-"+H,!0),B));W.push(O.default.createElement(S.default,{className:I,vertical:c,included:F,offset:_[H-1],length:_[H]-_[H-1],key:H}))}var R=(0,M.default)((e={},(0,p.default)(e,u,!0),(0,p.default)(e,u+"-with-marks",Object.keys(g).length),(0,p.default)(e,u+"-disabled",f),(0,p.default)(e,u+"-vertical",this.props.vertical),(0,p.default)(e,a,!!a),e));return O.default.createElement("div",{ref:"slider",className:R,onTouchStart:f?r:this.onTouchStart.bind(this),onMouseDown:f?r:this.onMouseDown.bind(this)},O.default.createElement("div",{className:u+"-rail"}),W,O.default.createElement(L.default,{prefixCls:u,vertical:c,marks:g,dots:d,step:y,included:F,lowerBound:i[0],upperBound:i[i.length-1],max:b,min:T}),D,O.default.createElement(V.default,{className:u+"-mark",vertical:c,marks:g,included:F,lowerBound:i[0],upperBound:i[i.length-1],max:b,min:T}),E)},t}(O.default.Component));W.propTypes={min:O.default.PropTypes.number,max:O.default.PropTypes.number,step:O.default.PropTypes.number,defaultValue:O.default.PropTypes.oneOfType([O.default.PropTypes.number,O.default.PropTypes.arrayOf(O.default.PropTypes.number)]),value:O.default.PropTypes.oneOfType([O.default.PropTypes.number,O.default.PropTypes.arrayOf(O.default.PropTypes.number)]),marks:O.default.PropTypes.object,included:O.default.PropTypes.bool,className:O.default.PropTypes.string,prefixCls:O.default.PropTypes.string,tooltipPrefixCls:O.default.PropTypes.string,disabled:O.default.PropTypes.bool,children:O.default.PropTypes.any,onBeforeChange:O.default.PropTypes.func,onChange:O.default.PropTypes.func,onAfterChange:O.default.PropTypes.func,handle:O.default.PropTypes.element,tipTransitionName:O.default.PropTypes.string,tipFormatter:O.default.PropTypes.func,dots:O.default.PropTypes.bool,range:O.default.PropTypes.oneOfType([O.default.PropTypes.bool,O.default.PropTypes.number]),vertical:O.default.PropTypes.bool,allowCross:O.default.PropTypes.bool,pushable:O.default.PropTypes.oneOfType([O.default.PropTypes.bool,O.default.PropTypes.number])},W.defaultProps={prefixCls:"rc-slider",className:"",tipTransitionName:"",min:0,max:100,step:1,marks:{},handle:O.default.createElement(j.default,null),onBeforeChange:r,onChange:r,onAfterChange:r,tipFormatter:function(e){return e},included:!0,disabled:!1,dots:!1,range:!1,vertical:!1,allowCross:!0,pushable:!1},t.default=W,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),i=o(r);t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){e.exports={default:n(6),__esModule:!0}},function(e,t,n){n(7);var o=n(10).Object;e.exports=function(e,t,n){return o.defineProperty(e,t,n)}},function(e,t,n){var o=n(8);o(o.S+o.F*!n(18),"Object",{defineProperty:n(14).f})},function(e,t,n){var o=n(9),r=n(10),i=n(11),s=n(13),a="prototype",u=function(e,t,n){var l,f,p,c=e&u.F,d=e&u.G,h=e&u.S,m=e&u.P,v=e&u.B,y=e&u.W,g=d?r:r[t]||(r[t]={}),b=g[a],T=d?o:h?o[t]:(o[t]||{})[a];d&&(n=t);for(l in n)f=!c&&T&&void 0!==T[l],f&&l in g||(p=f?T[l]:n[l],g[l]=d&&"function"!=typeof T[l]?n[l]:v&&f?i(p,o):y&&T[l]==p?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t[a]=e[a],t}(p):m&&"function"==typeof p?i(Function.call,p):p,m&&((g.virtual||(g.virtual={}))[l]=p,e&u.R&&b&&!b[l]&&s(b,l,p)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var o=n(12);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var o=n(14),r=n(22);e.exports=n(18)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(15),r=n(17),i=n(21),s=Object.defineProperty;t.f=n(18)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var o=n(16);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(18)&&!n(19)(function(){return 7!=Object.defineProperty(n(20)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(16),r=n(9).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){var o=n(16);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(24),i=o(r);t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,i.default)(e)}},function(e,t,n){e.exports={default:n(25),__esModule:!0}},function(e,t,n){n(26),n(55),e.exports=n(10).Array.from},function(e,t,n){"use strict";var o=n(27)(!0);n(30)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var o=n(28),r=n(29);e.exports=function(e){return function(t,n){var i,s,a=String(r(t)),u=o(n),l=a.length;return u<0||u>=l?e?"":void 0:(i=a.charCodeAt(u),i<55296||i>56319||u+1===l||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):i:e?a.slice(u,u+2):(i-55296<<10)+(s-56320)+65536)}}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var o=n(31),r=n(8),i=n(32),s=n(13),a=n(33),u=n(34),l=n(35),f=n(51),p=n(53),c=n(52)("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",m="keys",v="values",y=function(){return this};e.exports=function(e,t,n,g,b,T,P){l(n,t,g);var w,x,O,E=function(e){if(!d&&e in A)return A[e];switch(e){case m:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",_=b==v,M=!1,A=e.prototype,S=A[c]||A[h]||b&&A[b],k=S||E(b),j=b?_?E("entries"):k:void 0,N="Array"==t?A.entries||S:S;if(N&&(O=p(N.call(new e)),O!==Object.prototype&&(f(O,C,!0),o||a(O,c)||s(O,c,y))),_&&S&&S.name!==v&&(M=!0,k=function(){return S.call(this)}),o&&!P||!d&&!M&&A[c]||s(A,c,k),u[t]=k,u[C]=y,b)if(w={values:_?k:E(v),keys:T?k:E(m),entries:j},P)for(x in w)x in A||i(A,x,w[x]);else r(r.P+r.F*(d||M),t,w);return w}},function(e,t){e.exports=!0},function(e,t,n){e.exports=n(13)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports={}},function(e,t,n){"use strict";var o=n(36),r=n(22),i=n(51),s={};n(13)(s,n(52)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(s,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var o=n(15),r=n(37),i=n(49),s=n(46)("IE_PROTO"),a=function(){},u="prototype",l=function(){var e,t=n(20)("iframe"),o=i.length,r="<",s=">";for(t.style.display="none",n(50).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+s+"document.F=Object"+r+"/script"+s),e.close(),l=e.F;o--;)delete l[u][i[o]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[u]=o(e),n=new a,a[u]=null,n[s]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(14),r=n(15),i=n(38);e.exports=n(18)?Object.defineProperties:function(e,t){r(e);for(var n,s=i(t),a=s.length,u=0;a>u;)o.f(e,n=s[u++],t[n]);return e}},function(e,t,n){var o=n(39),r=n(49);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){var o=n(33),r=n(40),i=n(43)(!1),s=n(46)("IE_PROTO");e.exports=function(e,t){var n,a=r(e),u=0,l=[];for(n in a)n!=s&&o(a,n)&&l.push(n);for(;t.length>u;)o(a,n=t[u++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var o=n(41),r=n(29);e.exports=function(e){return o(r(e))}},function(e,t,n){var o=n(42);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(40),r=n(44),i=n(45);e.exports=function(e){return function(t,n,s){var a,u=o(t),l=r(u.length),f=i(s,l);if(e&&n!=n){for(;l>f;)if(a=u[f++],a!=a)return!0}else for(;l>f;f++)if((e||f in u)&&u[f]===n)return e||f||0;return!e&&-1}}},function(e,t,n){var o=n(28),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){var o=n(28),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(47)("keys"),r=n(48);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(9),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){e.exports=n(9).document&&document.documentElement},function(e,t,n){var o=n(14).f,r=n(33),i=n(52)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(47)("wks"),r=n(48),i=n(9).Symbol,s="function"==typeof i,a=e.exports=function(e){return o[e]||(o[e]=s&&i[e]||(s?i:r)("Symbol."+e))};a.store=o},function(e,t,n){var o=n(33),r=n(54),i=n(46)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var o=n(29);e.exports=function(e){return Object(o(e))}},function(e,t,n){"use strict";var o=n(11),r=n(8),i=n(54),s=n(56),a=n(57),u=n(44),l=n(58),f=n(59);r(r.S+r.F*!n(61)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,r,p,c=i(e),d="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,y=0,g=f(c);if(v&&(m=o(m,h>2?arguments[2]:void 0,2)),void 0==g||d==Array&&a(g))for(t=u(c.length),n=new d(t);t>y;y++)l(n,y,v?m(c[y],y):c[y]);else for(p=g.call(c),n=new d;!(r=p.next()).done;y++)l(n,y,v?s(p,m,[r.value,y],!0):r.value);return n.length=y,n}})},function(e,t,n){var o=n(15);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&o(i.call(e)),t}}},function(e,t,n){var o=n(34),r=n(52)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[r]===e)}},function(e,t,n){"use strict";var o=n(14),r=n(22);e.exports=function(e,t,n){t in e?o.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var o=n(60),r=n(52)("iterator"),i=n(34);e.exports=n(10).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t,n){var o=n(42),r=n(52)("toStringTag"),i="Arguments"==o(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),r))?n:i?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var o=n(52)("iterator"),r=!1;try{var i=[7][o]();i.return=function(){r=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i=[7],s=i[o]();s.next=function(){return{done:n=!0}},i[o]=function(){return s},e(i)}catch(e){}return n}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(63),i=o(r);t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}},function(e,t,n){e.exports={default:n(64),__esModule:!0}},function(e,t,n){n(65),e.exports=n(10).Object.assign},function(e,t,n){var o=n(8);o(o.S+o.F,"Object",{assign:n(66)})},function(e,t,n){"use strict";var o=n(38),r=n(67),i=n(68),s=n(54),a=n(41),u=Object.assign;e.exports=!u||n(19)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=o})?function(e,t){for(var n=s(e),u=arguments.length,l=1,f=r.f,p=i.f;u>l;)for(var c,d=a(arguments[l++]),h=f?o(d).concat(f(d)):o(d),m=h.length,v=0;m>v;)p.call(d,c=h[v++])&&(n[c]=d[c]);return n}:u},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(71),i=o(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(72),i=o(r),s=n(79),a=o(s),u="function"==typeof a.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};t.default="function"==typeof a.default&&"symbol"===u(i.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)}},function(e,t,n){e.exports={default:n(73),__esModule:!0}},function(e,t,n){n(26),n(74),e.exports=n(78).f("iterator")},function(e,t,n){n(75);for(var o=n(9),r=n(13),i=n(34),s=n(52)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var l=a[u],f=o[l],p=f&&f.prototype;p&&!p[s]&&r(p,s,l),i[l]=i.Array}},function(e,t,n){"use strict";var o=n(76),r=n(77),i=n(34),s=n(40);e.exports=n(30)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){t.f=n(52)},function(e,t,n){e.exports={default:n(80),__esModule:!0}},function(e,t,n){n(81),n(90),n(91),n(92),e.exports=n(10).Symbol},function(e,t,n){"use strict";var o=n(9),r=n(33),i=n(18),s=n(8),a=n(32),u=n(82).KEY,l=n(19),f=n(47),p=n(51),c=n(48),d=n(52),h=n(78),m=n(83),v=n(84),y=n(85),g=n(86),b=n(15),T=n(40),P=n(21),w=n(22),x=n(36),O=n(87),E=n(89),C=n(14),_=n(38),M=E.f,A=C.f,S=O.f,k=o.Symbol,j=o.JSON,N=j&&j.stringify,L="prototype",D=d("_hidden"),V=d("toPrimitive"),F={}.propertyIsEnumerable,W=f("symbol-registry"),H=f("symbols"),B=f("op-symbols"),I=Object[L],R="function"==typeof k,z=o.QObject,K=!z||!z[L]||!z[L].findChild,X=i&&l(function(){return 7!=x(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=M(I,t);o&&delete I[t],A(e,t,n),o&&e!==I&&A(I,t,o)}:A,Y=function(e){var t=H[e]=x(k[L]);return t._k=e,t},U=R&&"symbol"==typeof k.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof k},q=function(e,t,n){return e===I&&q(B,t,n),b(e),t=P(t,!0),b(n),r(H,t)?(n.enumerable?(r(e,D)&&e[D][t]&&(e[D][t]=!1),n=x(n,{enumerable:w(0,!1)})):(r(e,D)||A(e,D,w(1,{})),e[D][t]=!0),X(e,t,n)):A(e,t,n)},$=function(e,t){b(e);for(var n,o=y(t=T(t)),r=0,i=o.length;i>r;)q(e,n=o[r++],t[n]);return e},Z=function(e,t){return void 0===t?x(e):$(x(e),t)},J=function(e){var t=F.call(this,e=P(e,!0));return!(this===I&&r(H,e)&&!r(B,e))&&(!(t||!r(this,e)||!r(H,e)||r(this,D)&&this[D][e])||t)},G=function(e,t){if(e=T(e),t=P(t,!0),e!==I||!r(H,t)||r(B,t)){var n=M(e,t);return!n||!r(H,t)||r(e,D)&&e[D][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=S(T(e)),o=[],i=0;n.length>i;)r(H,t=n[i++])||t==D||t==u||o.push(t);return o},ee=function(e){for(var t,n=e===I,o=S(n?B:T(e)),i=[],s=0;o.length>s;)!r(H,t=o[s++])||n&&!r(I,t)||i.push(H[t]);return i};R||(k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var e=c(arguments.length>0?arguments[0]:void 0),t=function(n){this===I&&t.call(B,n),r(this,D)&&r(this[D],e)&&(this[D][e]=!1),X(this,e,w(1,n))};return i&&K&&X(I,e,{configurable:!0,set:t}),Y(e)},a(k[L],"toString",function(){return this._k}),E.f=G,C.f=q,n(88).f=O.f=Q,n(68).f=J,n(67).f=ee,i&&!n(31)&&a(I,"propertyIsEnumerable",J,!0),h.f=function(e){return Y(d(e))}),s(s.G+s.W+s.F*!R,{Symbol:k});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var te=_(d.store),ne=0;te.length>ne;)m(te[ne++]);s(s.S+s.F*!R,"Symbol",{for:function(e){return r(W,e+="")?W[e]:W[e]=k(e)},keyFor:function(e){if(U(e))return v(W,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){K=!0},useSimple:function(){K=!1}}),s(s.S+s.F*!R,"Object",{create:Z,defineProperty:q,defineProperties:$,getOwnPropertyDescriptor:G,getOwnPropertyNames:Q,getOwnPropertySymbols:ee}),j&&s(s.S+s.F*(!R||l(function(){var e=k();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!U(e)){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);return t=o[1],"function"==typeof t&&(n=t),!n&&g(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!U(t))return t}),o[1]=t,N.apply(j,o)}}}),k[L][V]||n(13)(k[L],V,k[L].valueOf),p(k,"Symbol"),p(Math,"Math",!0),p(o.JSON,"JSON",!0)},function(e,t,n){var o=n(48)("meta"),r=n(16),i=n(33),s=n(14).f,a=0,u=Object.isExtensible||function(){return!0},l=!n(19)(function(){return u(Object.preventExtensions({}))}),f=function(e){s(e,o,{value:{i:"O"+ ++a,w:{}}})},p=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!u(e))return"F";if(!t)return"E";f(e)}return e[o].i},c=function(e,t){if(!i(e,o)){if(!u(e))return!0;if(!t)return!1;f(e)}return e[o].w},d=function(e){return l&&h.NEED&&u(e)&&!i(e,o)&&f(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:p,getWeak:c,onFreeze:d}},function(e,t,n){var o=n(9),r=n(10),i=n(31),s=n(78),a=n(14).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},function(e,t,n){var o=n(38),r=n(40);e.exports=function(e,t){for(var n,i=r(e),s=o(i),a=s.length,u=0;a>u;)if(i[n=s[u++]]===t)return n}},function(e,t,n){var o=n(38),r=n(67),i=n(68);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var s,a=n(e),u=i.f,l=0;a.length>l;)u.call(e,s=a[l++])&&t.push(s);return t}},function(e,t,n){var o=n(42);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(40),r=n(88).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return r(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==i.call(e)?a(e):r(o(e))}},function(e,t,n){var o=n(39),r=n(49).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(68),r=n(22),i=n(40),s=n(21),a=n(33),u=n(17),l=Object.getOwnPropertyDescriptor;t.f=n(18)?l:function(e,t){if(e=i(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(a(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(83)("asyncIterator")},function(e,t,n){n(83)("observable")},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(94),i=o(r),s=n(98),a=o(s),u=n(71),l=o(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,l.default)(t)));e.prototype=(0,a.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(95),__esModule:!0}},function(e,t,n){n(96),e.exports=n(10).Object.setPrototypeOf},function(e,t,n){var o=n(8);o(o.S,"Object",{setPrototypeOf:n(97).set})},function(e,t,n){var o=n(16),r=n(15),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(11)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){e.exports={default:n(99),__esModule:!0}},function(e,t,n){n(100);var o=n(10).Object;e.exports=function(e,t){return o.create(e,t)}},function(e,t,n){var o=n(8);o(o.S,"Object",{create:n(36)})},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var o=u.default.unstable_batchedUpdates?function(e){u.default.unstable_batchedUpdates(n,e)}:n;return(0,s.default)(e,t,o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(104),s=o(i),a=n(101),u=o(a);e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){function o(t){var o=new s.default(t);n.call(e,o)}return e.addEventListener?(e.addEventListener(t,o,!1),{remove:function(){e.removeEventListener(t,o,!1)}}):e.attachEvent?(e.attachEvent("on"+t,o),{remove:function(){e.detachEvent("on"+t,o)}}):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(105),s=o(i);e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){return null===e||void 0===e}function i(){return c}function s(){return d}function a(e){var t=e.type,n="function"==typeof e.stopPropagation||"boolean"==typeof e.cancelBubble;l.default.call(this),this.nativeEvent=e;var o=s;"defaultPrevented"in e?o=e.defaultPrevented?i:s:"getPreventDefault"in e?o=e.getPreventDefault()?i:s:"returnValue"in e&&(o=e.returnValue===d?i:s),this.isDefaultPrevented=o;var r=[],a=void 0,u=void 0,f=void 0,p=h.concat();for(m.forEach(function(e){t.match(e.reg)&&(p=p.concat(e.props),e.fix&&r.push(e.fix)); }),u=p.length;u;)f=p[--u],this[f]=e[f];for(!this.target&&n&&(this.target=e.srcElement||document),this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),u=r.length;u;)(a=r[--u])(this,e);this.timeStamp=e.timeStamp||Date.now()}Object.defineProperty(t,"__esModule",{value:!0});var u=n(106),l=o(u),f=n(107),p=o(f),c=!0,d=!1,h=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"],m=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(e,t){r(e.which)&&(e.which=r(t.charCode)?t.keyCode:t.charCode),void 0===e.metaKey&&(e.metaKey=e.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(e,t){var n=void 0,o=void 0,r=void 0,i=t.wheelDelta,s=t.axis,a=t.wheelDeltaY,u=t.wheelDeltaX,l=t.detail;i&&(r=i/120),l&&(r=0-(l%3===0?l/3:l)),void 0!==s&&(s===e.HORIZONTAL_AXIS?(o=0,n=0-r):s===e.VERTICAL_AXIS&&(n=0,o=r)),void 0!==a&&(o=a/120),void 0!==u&&(n=-1*u/120),n||o||(o=r),void 0!==n&&(e.deltaX=n),void 0!==o&&(e.deltaY=o),void 0!==r&&(e.delta=r)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(e,t){var n=void 0,o=void 0,i=void 0,s=e.target,a=t.button;return s&&r(e.pageX)&&!r(t.clientX)&&(n=s.ownerDocument||document,o=n.documentElement,i=n.body,e.pageX=t.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)),e.which||void 0===a||(1&a?e.which=1:2&a?e.which=3:4&a?e.which=2:e.which=0),!e.relatedTarget&&e.fromElement&&(e.relatedTarget=e.fromElement===s?e.toElement:e.fromElement),e}}],v=l.default.prototype;(0,p.default)(a.prototype,v,{constructor:a,preventDefault:function(){var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=d,v.preventDefault.call(this)},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=c,v.stopPropagation.call(this)}}),t.default=a,e.exports=t.default},function(e,t){"use strict";function n(){return!1}function o(){return!0}function r(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}Object.defineProperty(t,"__esModule",{value:!0}),r.prototype={isEventObject:1,constructor:r,isDefaultPrevented:n,isPropagationStopped:n,isImmediatePropagationStopped:n,preventDefault:function(){this.isDefaultPrevented=o},stopPropagation:function(){this.isPropagationStopped=o},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=o,this.stopPropagation()},halt:function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},t.default=r,e.exports=t.default},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==o.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}var r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=o()?Object.assign:function(e,t){for(var o,s,a=n(e),u=1;u<arguments.length;u++){o=Object(arguments[u]);for(var l in o)r.call(o,l)&&(a[l]=o[l]);if(Object.getOwnPropertySymbols){s=Object.getOwnPropertySymbols(o);for(var f=0;f<s.length;f++)i.call(o,s[f])&&(a[s[f]]=o[s[f]])}}return a}},function(e,t,n){var o,r;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var r=typeof o;if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o))e.push(n.apply(null,o));else if("object"===r)for(var s in o)i.call(o,s)&&o[s]&&e.push(s)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=n:(o=[],r=function(){return n}.apply(t,o),!(void 0!==r&&(e.exports=r)))}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(102),i=o(r),s=function(e){var t=e.className,n=e.included,o=e.vertical,r=e.offset,s=e.length,a={visibility:n?"visible":"hidden"};return o?(a.bottom=r+"%",a.height=s+"%"):(a.left=r+"%",a.width=s+"%"),i.default.createElement("div",{className:t,style:a})};t.default=s,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(69),i=o(r),s=n(70),a=o(s),u=n(93),l=o(u),f=n(102),p=o(f),c=n(111),d=o(c),h=function(e){function t(n){(0,i.default)(this,t);var o=(0,a.default)(this,e.call(this,n));return o.state={isTooltipVisible:!1},o}return(0,l.default)(t,e),t.prototype.hideTooltip=function(){this.setState({isTooltipVisible:!1})},t.prototype.showTooltip=function(){this.setState({isTooltipVisible:!0})},t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.tooltipPrefixCls,o=e.className,r=e.tipTransitionName,i=e.tipFormatter,s=e.vertical,a=e.offset,u=e.value,l=e.dragging,f=e.noTip,c=e.index,h=s?{bottom:a+"%"}:{left:a+"%"},m=p.default.createElement("div",{className:o,style:h,onMouseUp:this.showTooltip.bind(this),onMouseEnter:this.showTooltip.bind(this),onMouseLeave:this.hideTooltip.bind(this)});if(f)return m;var v=l||this.state.isTooltipVisible;return p.default.createElement(d.default,{prefixCls:n||t+"-tooltip",placement:"top",visible:v,overlay:p.default.createElement("span",null,i(u,c)),delay:0,transitionName:r},m)},t}(p.default.Component);t.default=h,h.propTypes={prefixCls:p.default.PropTypes.string,tooltipPrefixCls:p.default.PropTypes.string,className:p.default.PropTypes.string,vertical:p.default.PropTypes.bool,offset:p.default.PropTypes.number,tipTransitionName:p.default.PropTypes.string,tipFormatter:p.default.PropTypes.func,value:p.default.PropTypes.number,dragging:p.default.PropTypes.bool,noTip:p.default.PropTypes.bool,index:p.default.PropTypes.number},e.exports=t.default},function(e,t,n){"use strict";e.exports=n(112)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s=n(102),a=o(s),u=n(113),l=n(114),f=o(l),p=a.default.createClass({displayName:"Tooltip",propTypes:{trigger:s.PropTypes.any,children:s.PropTypes.any,defaultVisible:s.PropTypes.bool,visible:s.PropTypes.bool,placement:s.PropTypes.string,transitionName:s.PropTypes.string,animation:s.PropTypes.any,onVisibleChange:s.PropTypes.func,afterVisibleChange:s.PropTypes.func,overlay:s.PropTypes.oneOfType([a.default.PropTypes.node,a.default.PropTypes.func]).isRequired,overlayStyle:s.PropTypes.object,overlayClassName:s.PropTypes.string,prefixCls:s.PropTypes.string,mouseEnterDelay:s.PropTypes.number,mouseLeaveDelay:s.PropTypes.number,getTooltipContainer:s.PropTypes.func,destroyTooltipOnHide:s.PropTypes.bool,align:s.PropTypes.object,arrowContent:s.PropTypes.any},getDefaultProps:function(){return{prefixCls:"rc-tooltip",mouseEnterDelay:0,destroyTooltipOnHide:!1,mouseLeaveDelay:.1,align:{},placement:"right",trigger:["hover"],arrowContent:null}},getPopupElement:function(){var e=this.props,t=e.arrowContent,n=e.overlay,o=e.prefixCls;return[a.default.createElement("div",{className:o+"-arrow",key:"arrow"},t),a.default.createElement("div",{className:o+"-inner",key:"content"},"function"==typeof n?n():n)]},getPopupDomNode:function(){return this.refs.trigger.getPopupDomNode()},render:function(){var e=this.props,t=e.overlayClassName,n=e.trigger,o=e.mouseEnterDelay,s=e.mouseLeaveDelay,l=e.overlayStyle,p=e.prefixCls,c=e.children,d=e.onVisibleChange,h=e.transitionName,m=e.animation,v=e.placement,y=e.align,g=e.destroyTooltipOnHide,b=e.defaultVisible,T=e.getTooltipContainer,P=r(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer"]),w=i({},P);return"visible"in this.props&&(w.popupVisible=this.props.visible),a.default.createElement(f.default,i({popupClassName:t,ref:"trigger",prefixCls:p,popup:this.getPopupElement,action:n,builtinPlacements:u.placements,popupPlacement:v,popupAlign:y,getPopupContainer:T,onPopupVisibleChange:d,popupTransitionName:h,popupAnimation:m,defaultPopupVisible:b,destroyPopupOnHide:g,mouseLeaveDelay:s,popupStyle:l,mouseEnterDelay:o},w),c)}});t.default=p,e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={adjustX:1,adjustY:1},o=[0,0],r=t.placements={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:o}};t.default=r},function(e,t,n){"use strict";e.exports=n(115)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(){}function i(){return""}Object.defineProperty(t,"__esModule",{value:!0});var s=n(62),a=o(s),u=n(102),l=o(u),f=n(101),p=o(f),c=n(116),d=o(c),h=n(103),m=o(h),v=n(117),y=o(v),g=n(142),b=n(143),T=o(b),P=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"],w=l.default.createClass({displayName:"Trigger",propTypes:{children:u.PropTypes.any,action:u.PropTypes.oneOfType([u.PropTypes.string,u.PropTypes.arrayOf(u.PropTypes.string)]),showAction:u.PropTypes.any,hideAction:u.PropTypes.any,getPopupClassNameFromAlign:u.PropTypes.any,onPopupVisibleChange:u.PropTypes.func,afterPopupVisibleChange:u.PropTypes.func,popup:u.PropTypes.oneOfType([u.PropTypes.node,u.PropTypes.func]).isRequired,popupStyle:u.PropTypes.object,prefixCls:u.PropTypes.string,popupClassName:u.PropTypes.string,popupPlacement:u.PropTypes.string,builtinPlacements:u.PropTypes.object,popupTransitionName:u.PropTypes.string,popupAnimation:u.PropTypes.any,mouseEnterDelay:u.PropTypes.number,mouseLeaveDelay:u.PropTypes.number,zIndex:u.PropTypes.number,focusDelay:u.PropTypes.number,blurDelay:u.PropTypes.number,getPopupContainer:u.PropTypes.func,destroyPopupOnHide:u.PropTypes.bool,mask:u.PropTypes.bool,maskClosable:u.PropTypes.bool,onPopupAlign:u.PropTypes.func,popupAlign:u.PropTypes.object,popupVisible:u.PropTypes.bool,maskTransitionName:u.PropTypes.string,maskAnimation:u.PropTypes.string},mixins:[(0,T.default)({autoMount:!1,isVisible:function(e){return e.state.popupVisible},getContainer:function(e){var t=document.createElement("div"),n=e.props.getPopupContainer?e.props.getPopupContainer((0,f.findDOMNode)(e)):document.body;return n.appendChild(t),t},getComponent:function(e){var t=e.props,n=e.state,o={};return e.isMouseEnterToShow()&&(o.onMouseEnter=e.onPopupMouseEnter),e.isMouseLeaveToHide()&&(o.onMouseLeave=e.onPopupMouseLeave),l.default.createElement(y.default,(0,a.default)({prefixCls:t.prefixCls,destroyPopupOnHide:t.destroyPopupOnHide,visible:n.popupVisible,className:t.popupClassName,action:t.action,align:e.getPopupAlign(),onAlign:t.onPopupAlign,animation:t.popupAnimation,getClassNameFromAlign:e.getPopupClassNameFromAlign},o,{getRootDomNode:e.getRootDomNode,style:t.popupStyle,mask:t.mask,zIndex:t.zIndex,transitionName:t.popupTransitionName,maskAnimation:t.maskAnimation,maskTransitionName:t.maskTransitionName}),"function"==typeof t.popup?t.popup():t.popup)}})],getDefaultProps:function(){return{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:i,onPopupVisibleChange:r,afterPopupVisibleChange:r,onPopupAlign:r,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]}},getInitialState:function(){var e=this.props,t=void 0;return t="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,{popupVisible:t}},componentWillMount:function(){var e=this;P.forEach(function(t){e["fire"+t]=function(n){e.fireEvents(t,n)}})},componentDidMount:function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},componentWillReceiveProps:function(e){var t=e.popupVisible;void 0!==t&&this.setState({popupVisible:t})},componentDidUpdate:function(e,t){var n=this.props,o=this.state;return this.renderComponent(null,function(){t.popupVisible!==o.popupVisible&&n.afterPopupVisibleChange(o.popupVisible)}),this.isClickToHide()&&o.popupVisible?void(this.clickOutsideHandler||(this.clickOutsideHandler=(0,m.default)(document,"mousedown",this.onDocumentClick),this.touchOutsideHandler=(0,m.default)(document,"touchstart",this.onDocumentClick))):void(this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.touchOutsideHandler.remove(),this.clickOutsideHandler=null,this.touchOutsideHandler=null))},componentWillUnmount:function(){this.clearDelayTimer(),this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.touchOutsideHandler.remove(),this.clickOutsideHandler=null,this.touchOutsideHandler=null)},onMouseEnter:function(e){this.fireEvents("onMouseEnter",e),this.delaySetPopupVisible(!0,this.props.mouseEnterDelay)},onMouseLeave:function(e){this.fireEvents("onMouseLeave",e),this.delaySetPopupVisible(!1,this.props.mouseLeaveDelay)},onPopupMouseEnter:function(){this.clearDelayTimer()},onPopupMouseLeave:function(e){e.relatedTarget&&!e.relatedTarget.setTimeout&&this._component&&(0,d.default)(this._component.getPopupDomNode(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.props.focusDelay))},onMouseDown:function(e){this.fireEvents("onMouseDown",e),this.preClickTime=Date.now()},onTouchStart:function(e){this.fireEvents("onTouchStart",e),this.preTouchTime=Date.now()},onBlur:function(e){this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.props.blurDelay)},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var t=void 0;if(this.preClickTime&&this.preTouchTime?t=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?t=this.preClickTime:this.preTouchTime&&(t=this.preTouchTime),Math.abs(t-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,e.preventDefault();var n=!this.state.popupVisible;(this.isClickToHide()&&!n||n&&this.isClickToShow())&&this.setPopupVisible(!this.state.popupVisible)},onDocumentClick:function(e){if(!this.props.mask||this.props.maskClosable){var t=e.target,n=(0,f.findDOMNode)(this),o=this.getPopupDomNode();(0,d.default)(n,t)||(0,d.default)(o,t)||this.close()}},getPopupDomNode:function(){return this._component&&this._component.isMounted()?this._component.getPopupDomNode():null},getRootDomNode:function(){return p.default.findDOMNode(this)},getPopupClassNameFromAlign:function(e){var t=[],n=this.props,o=n.popupPlacement,r=n.builtinPlacements,i=n.prefixCls;return o&&r&&t.push((0,g.getPopupClassNameFromAlign)(r,i,e)),n.getPopupClassNameFromAlign&&t.push(n.getPopupClassNameFromAlign(e)),t.join(" ")},getPopupAlign:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?(0,g.getAlignFromPlacement)(o,t,n):n},setPopupVisible:function(e){this.clearDelayTimer(),this.state.popupVisible!==e&&("popupVisible"in this.props||this.setState({popupVisible:e}),this.props.onPopupVisibleChange(e))},delaySetPopupVisible:function(e,t){var n=this,o=1e3*t;this.clearDelayTimer(),o?this.delayTimer=setTimeout(function(){n.setPopupVisible(e),n.clearDelayTimer()},o):this.setPopupVisible(e)},clearDelayTimer:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},createTwoChains:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire"+e]:t[e]||n[e]},isClickToShow:function(){var e=this.props,t=e.action,n=e.showAction;return t.indexOf("click")!==-1||n.indexOf("click")!==-1},isClickToHide:function(){var e=this.props,t=e.action,n=e.hideAction;return t.indexOf("click")!==-1||n.indexOf("click")!==-1},isMouseEnterToShow:function(){var e=this.props,t=e.action,n=e.showAction;return t.indexOf("hover")!==-1||n.indexOf("mouseEnter")!==-1},isMouseLeaveToHide:function(){var e=this.props,t=e.action,n=e.hideAction;return t.indexOf("hover")!==-1||n.indexOf("mouseLeave")!==-1},isFocusToShow:function(){var e=this.props,t=e.action,n=e.showAction;return t.indexOf("focus")!==-1||n.indexOf("focus")!==-1},isBlurToHide:function(){v