UNPKG

@progress/kendo-react-dateinputs

Version:
1 lines • 243 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react"),require("@progress/kendo-react-intl"),require("react-dom"),require("react-transition-group"),require("react-dom/server")):"function"==typeof define&&define.amd?define(["prop-types","react","@progress/kendo-react-intl","react-dom","react-transition-group","react-dom/server"],t):"object"==typeof exports?exports.KendoReactDateinputs=t(require("prop-types"),require("react"),require("@progress/kendo-react-intl"),require("react-dom"),require("react-transition-group"),require("react-dom/server")):e.KendoReactDateinputs=t(e.PropTypes,e.React,e.KendoReactIntl,e.ReactDOM,e.ReactTransitionGroup,e.ReactDOMServer)}(window,function(e,t,n,i,r,o){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=36)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t);var i,r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return!0!==e&&!!e}).map(function(e){return Array.isArray(e)?r.apply(void 0,e):"object"==typeof e?Object.keys(e).map(function(t,n){return e[n]||e[t]&&t||null}).filter(function(e){return null!==e}).join(" "):e}).filter(function(e){return!!e}).join(" ")},o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},a={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},s=function(){},l=function(){return function(){}}(),u=n(1),c=n(0),p=(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={focused:!1},t.handleFocus=function(e){t.setState({focused:!0})},t.handleBlur=function(e){t.setState({focused:!1})},t}return p(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.id,i=e.className,o=e.value,a=e.placeholder,s=e.valid,l=e.style,c=r({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!(o||a),"k-state-invalid":!s&&void 0!==s},i);return u.createElement("span",{className:c,onFocus:this.handleFocus,onBlur:this.handleBlur,style:l},this.props.children,t?n?u.createElement("label",{htmlFor:n,className:"k-label"},t):u.createElement("span",{className:"k-label"},t):null)},t.propTypes={label:c.string,id:c.string,value:c.string,placeholder:c.string,valid:c.bool},t}(u.Component);function h(e,t,n,i){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,i))}}var f=function(){return"undefined"==typeof window},m=function(e,t){return function(n){return t(e(n))}},v=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},g=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},y=function(){},b=function(e){return e.preventDefault()},w=/touch/;function D(e){return e.type.match(w)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var _=function(e){var t=this,n=e.press;void 0===n&&(n=y);var i=e.drag;void 0===i&&(i=y);var r=e.release;void 0===r&&(r=y);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=m(D,n),this._dragHandler=m(D,i),this._releaseHandler=m(D,r),this._ignoreMouse=!1,this._mouseOnly=o,this._touchAction,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(v(document,"mousemove",t._mousemove),v(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){g(document,"mousemove",t._mousemove),g(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(v(document,"pointermove",t._pointermove),v(document,"pointerup",t._pointerup),v(document,"pointercancel",t._pointerup),v(document,"contextmenu",b),t._touchAction=e.target.style.touchAction,e.target.style.touchAction="none",t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(g(document,"pointermove",t._pointermove),g(document,"pointerup",t._pointerup),g(document,"pointercancel",t._pointerup),g(document,"contextmenu",b),e.target.style.touchAction=t._touchAction,t._releaseHandler(e))}};_.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},_.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},_.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?v(e,"pointerdown",this._pointerdown):(v(e,"mousedown",this._mousedown),this._mouseOnly||(v(e,"touchstart",this._touchstart),v(e,"touchmove",this._touchmove),v(e,"touchend",this._touchend)))},_.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return g(e,"pointerdown",this._pointerdown),g(document,"pointermove",this._pointermove),g(document,"pointerup",this._pointerup),g(document,"contextmenu",b),void g(document,"pointercancel",this._pointerup);g(e,"mousedown",this._mousedown),this._mouseOnly||(g(e,"touchstart",this._touchstart),g(e,"touchmove",this._touchmove),g(e,"touchend",this._touchend))},_.prototype._usePointers=function(){return!this._mouseOnly&&_.supportPointerEvent()},_.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},_.default=_;var O=_,k=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new O({press:function(e){t.element&&t.props.onPress&&t.props.onPress.call(void 0,{target:t,event:e,element:t.element})},drag:function(e){t.element&&t.props.onDrag&&t.props.onDrag.call(void 0,{target:t,event:e,element:t.element})},release:function(e){t.element&&t.props.onRelease&&t.props.onRelease.call(void 0,{target:t,event:e})}}),t.assingRef=function(e){t.element=e},t}return k(t,e),t.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},t.prototype.componentWillUnmount=function(){this.draggable.destroy()},t.prototype.render=function(){return u.cloneElement(u.Children.only(this.props.children),{ref:this.assingRef})},t.propTypes={children:c.element.isRequired},t}(u.Component);n.d(t,"classNames",function(){return r}),n.d(t,"guid",function(){return o}),n.d(t,"Keys",function(){return a}),n.d(t,"noop",function(){return s}),n.d(t,"FloatingLabel",function(){return d}),n.d(t,"FormComponent",function(){return l}),n.d(t,"dispatchEvent",function(){return h}),n.d(t,"isServerRendering",function(){return f}),n.d(t,"Draggable",function(){return x})},function(e,t,n){"use strict";n.r(t);var i,r=function(e){return e?new Date(e.getTime()):null},o=function(e,t){var n=r(e);return 0===t&&23===n.getHours()&&n.setHours(n.getHours()+2),n},a=function(e,t){var n=r(e);return n.setDate(n.getDate()+t),o(n,e.getHours())},s=function(e,t,n,i,r,a,s){void 0===i&&(i=0),void 0===r&&(r=0),void 0===a&&(a=0),void 0===s&&(s=0);var l=new Date(e,t,n,i,r,a,s);return e>-1&&e<100&&l.setFullYear(l.getFullYear()-1900),o(l,i)},l=function(e){var t=s(e.getFullYear(),e.getMonth()+1,1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return a(t,-1)},u=function(e,t){var n=r(e),i=(12+(n.getMonth()+t)%12)%12;return n.setMonth(n.getMonth()+t),function(e,t){return e.getMonth()!==t?l(u(e,-1)):e}(o(n,e.getHours()),i)},c=function(e,t){return a(e,7*t)},p=function(e,t){var n=e.getMonth(),i=s(t,n,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return i.getMonth()===n?i:l(u(i,-1))},d=function(e,t){return o(p(e,e.getFullYear()+t),e.getHours())},h=function(e,t){return d(e,10*t)},f=function(e,t){return d(e,100*t)};!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(i||(i={}));var m,v=function(e,t,n){void 0===n&&(n=i.Forward);var a=r(e),s=(t-a.getDay()+7*n)%7;return a.setDate(a.getDate()+s),o(a,e.getHours())};!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(m||(m={}));var g=function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},y=function(e,t){return t.getFullYear()-e.getFullYear()},b=function(e,t){return p(e,t(e.getFullYear()))},w=function(e){return b(e,function(e){return e-e%10})},D=function(e,t){return(w(t).getFullYear()-w(e).getFullYear())/10},_=function(e){return b(e,function(e){return e-e%100})},O=function(e,t){return(_(t).getFullYear()-_(e).getFullYear())/100},k=function(e,t){return v(e,t,i.Forward)},x=function(e,t){return v(e,t,i.Backward)},S=function(e){return s(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0)},E=function(e,t){void 0===t&&(t=m.Sunday);for(var n=r(e);n.getDay()!==t;)n.setDate(n.getDate()-1);return n},P=function(e){return s(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},C=function(e,t){var n=e.getDate(),i=s(e.getFullYear(),t,n,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return i.getDate()===n?i:l(u(i,-1))},I=function(e){return C(e,0)},T=function(e,t){return!e&&!t||e&&t&&e.getTime()===t.getTime()},M=function(e,t){return!e&&!t||e&&t&&T(S(e),S(t))},V=function(e){return C(e,11)},j=function(e){return b(e,function(e){return e-e%10+9})},N=function(e){return b(e,function(e){return e-e%100+90})},A=function(e,t){var n=s(e.getFullYear(),0,1,-6),i=function(e,t){return t!==m.Monday?a(x(e,t),4):a(e,4-(e.getDay()||7))}(e,t).getTime()-n.getTime(),r=Math.floor(i/864e5);return 1+Math.floor(r/7)},R=function(e,t){void 0===t&&(t=m.Monday);var n=a(e,-7),i=a(e,7),r=A(e,t);return 0===r?A(n,t)+1:53===r&&A(i,t)>1?1:r};n.d(t,"addDays",function(){return a}),n.d(t,"addMonths",function(){return u}),n.d(t,"addWeeks",function(){return c}),n.d(t,"addYears",function(){return d}),n.d(t,"addDecades",function(){return h}),n.d(t,"addCenturies",function(){return f}),n.d(t,"adjustDST",function(){return o}),n.d(t,"cloneDate",function(){return r}),n.d(t,"createDate",function(){return s}),n.d(t,"dayOfWeek",function(){return v}),n.d(t,"Day",function(){return m}),n.d(t,"Direction",function(){return i}),n.d(t,"durationInMonths",function(){return g}),n.d(t,"durationInYears",function(){return y}),n.d(t,"durationInDecades",function(){return D}),n.d(t,"durationInCenturies",function(){return O}),n.d(t,"nextDayOfWeek",function(){return k}),n.d(t,"prevDayOfWeek",function(){return x}),n.d(t,"getDate",function(){return S}),n.d(t,"firstDayInWeek",function(){return E}),n.d(t,"firstDayOfMonth",function(){return P}),n.d(t,"firstMonthOfYear",function(){return I}),n.d(t,"firstYearOfDecade",function(){return w}),n.d(t,"firstDecadeOfCentury",function(){return _}),n.d(t,"isEqual",function(){return T}),n.d(t,"isEqualDate",function(){return M}),n.d(t,"lastDayOfMonth",function(){return l}),n.d(t,"lastMonthOfYear",function(){return V}),n.d(t,"lastYearOfDecade",function(){return j}),n.d(t,"lastDecadeOfCentury",function(){return N}),n.d(t,"MS_PER_DAY",function(){return 864e5}),n.d(t,"weekInYear",function(){return R})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),r=n(3),o=n(12);t.isEqualRange=function(e,t){var n=e||o.EMPTY_SELECTIONRANGE,r=n.start,a=n.end,s=t||o.EMPTY_SELECTIONRANGE,l=s.start,u=s.end;return null!==r&&null!==a&&null!==l&&null!==u&&(i.isEqual(r,l)&&i.isEqual(a,u))},t.viewInRange=function(e,t,n){return void 0===t||void 0===n?e:t<=e&&e<=n?e:e<t?t:n},t.MIDNIGHT_DATE=new Date(1980,0,1),t.MIN_DATE=new Date(1900,0,1),t.MAX_DATE=new Date(2099,11,31),t.MIN_TIME=new Date(1980,0,1),t.MAX_TIME=new Date(1980,0,1,23,59,59);var a=function(e){return null!=e};t.isValidRange=function(e,t){return!a(e)||!a(t)||e<=t},t.setTime=function(e,t){var n=i.cloneDate(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},t.getToday=function(){return r.getDate(new Date)},t.isInRange=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},t.isInRangePicker=function(e,t,n){return null===e||!(t&&r.getDate(t)>r.getDate(e)||n&&r.getDate(n)<r.getDate(e))},t.isInSelectionRange=function(e,t){var n=t||o.EMPTY_SELECTIONRANGE,i=n.start,r=n.end;return!(!i||!r)&&(i<e&&e<r)},t.range=function(e,t,n){void 0===n&&(n=1);for(var i=[],r=e;r<t;r+=n)i.push(r);return i},t.shiftWeekNames=function(e,t){return e.slice(t).concat(e.slice(0,t))},t.dateInRange=function(e,t,n){return e?t&&e<t?i.cloneDate(t):n&&e>n?i.cloneDate(n):e:e},t.domContainerFactory=function(e){return function(t,n,i){void 0===n&&(n=""),void 0===i&&(i={});var r=document.createElement(e);return r.className=n,Object.keys(i).map(function(e){return r.style[e]=i[e]}),"string"==typeof t?r.innerHTML=t||"":(t||[]).forEach(function(e){return e&&r.appendChild(e)}),r}},t.isDocumentAvailable=function(){return"undefined"!=typeof document}},function(e,t){e.exports=n},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.prevView="multiviewcalendar.prevView",t.nextView="multiviewcalendar.nextView",t.increaseValue="dateinput.increment",t.decreaseValue="dateinput.decrement",t.today="calendar.today",t.toggleCalendar="datepicker.toggleCalendar",t.swapStartEnd="daterangepicker.swapStartEnd",t.start="daterangepicker.start",t.end="daterangepicker.end",t.toggleDateTimeSelector="datetimepicker.toggleDateTimeSelector",t.now="timepicker.now",t.selectNow="timepicker.selectNow",t.timePickerCancel="timepicker.cancel",t.timePickerSet="timepicker.set",t.toggleTimeSelector="timepicker.toggleTimeSelector",t.toggleClock="timepicker.toggleClock",t.date="datetimepicker.date",t.time="datetimepicker.time",t.dateTimePickerCancel="datetimepicker.cancel",t.dateTimePickerSet="datetimepicker.set",t.messages=((i={})[t.today]="TODAY",i[t.now]="NOW",i[t.timePickerSet]="Set",i[t.timePickerCancel]="Cancel",i[t.date]="Date",i[t.time]="Time",i[t.dateTimePickerCancel]="Cancel",i[t.dateTimePickerSet]="Set",i[t.start]="Start",i[t.end]="End",i[t.selectNow]="Select Now",i[t.toggleTimeSelector]="Toggle TimeSelector",i[t.toggleClock]="Toggle Clock",i[t.increaseValue]="Increase value",i[t.decreaseValue]="Decrease value",i[t.toggleCalendar]="Toggle calendar",i[t.prevView]="Navigate to previous view",i[t.nextView]="Navigate to next view",i[t.swapStartEnd]="Swap start and end values",i[t.toggleDateTimeSelector]="Toggle date-time selector",i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11);t.Action=i.Action;var r=n(18);t.CalendarViewEnum=r.CalendarViewEnum;var o=n(12);t.EMPTY_SELECTIONRANGE=o.EMPTY_SELECTIONRANGE},function(e,t,n){"use strict";n.r(t);var i,r=n(1),o=n(14),a=n(0),s=n(35),l=n(2),u=n(15),c={outerHeight:function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),i=parseFloat(t.marginBottom);return e.offsetHeight+n+i},outerWidth:function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),i=parseFloat(t.marginRight);return e.offsetWidth+n+i},styles:{"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"}},p=(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},h=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n},f=c.styles,m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.children,i=t.style,o=t.appear,a=t.enter,s=t.exit,c=t.transitionName,p=t.transitionEnterDuration,m=t.transitionExitDuration,v=t.className,g=t.onEnter,y=t.onEntering,b=t.onEntered,w=t.onExit,D=t.onExiting,_=t.onExited,O=t.mountOnEnter,k=t.unmountOnExit,x=t.animationEnteringStyle,S=t.animationEnteredStyle,E=t.animationExitingStyle,P=t.animationExitedStyle,C=h(t,["children","style","appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),I=Object(l.classNames)(v,f["child-animation-container"]),T=d({transitionDelay:"0ms"},i),M={entering:d({transitionDuration:p+"ms"},x),entered:d({},S),exiting:d({transitionDuration:m+"ms"},E),exited:d({},P)},V={in:this.props.in,appear:o,enter:a,exit:s,mountOnEnter:O,unmountOnExit:k,timeout:{enter:p,exit:m},onEnter:function(t){g&&g.call(void 0,{animatedElement:t,target:e})},onEntering:function(t){y&&y.call(void 0,{animatedElement:t,target:e})},onEntered:function(t){b&&b.call(void 0,{animatedElement:t,target:e})},onExit:function(t){w&&w.call(void 0,{animatedElement:t,target:e})},onExiting:function(t){D&&D.call(void 0,{animatedElement:t,target:e})},onExited:function(t){_&&_.call(void 0,{animatedElement:t,target:e})},classNames:{appear:f[c+"-appear"]||c+"-appear",appearActive:f[c+"-appear-active"]||c+"-appear-active",enter:f[c+"-enter"]||c+"-enter",enterActive:f[c+"-enter-active"]||c+"-enter-active",exit:f[c+"-exit"]||c+"-exit",exitActive:f[c+"-exit-active"]||c+"-exit-active"}};return r.createElement(u.CSSTransition,d({},V,C),function(t){return r.createElement("div",{style:d({},T,M[t]),className:I,ref:function(t){e._element=t}},n)})},t.propTypes={in:a.bool,children:a.oneOfType([a.arrayOf(a.node),a.node]),transitionName:a.string.isRequired,className:a.string,appear:a.bool,enter:a.bool,exit:a.bool,transitionEnterDuration:a.number.isRequired,transitionExitDuration:a.number.isRequired,mountOnEnter:a.bool,unmountOnExit:a.bool,animationEnteringStyle:a.object,animationEnteredStyle:a.object,animationExitingStyle:a.object,animationExitedStyle:a.object},t.defaultProps={mountOnEnter:!0,unmountOnExit:!1,onEnter:l.noop,onEntering:l.noop,onEntered:l.noop,onExit:l.noop,onExiting:l.noop,onExited:l.noop,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}},t}(r.Component),v=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},y=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n},b=c.styles,w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return v(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,i=e.children,o=e.component,a=e.className,s=e.childFactory,c=(e.stackChildren,e.componentChildStyle),p=e.componentChildClassName,d=y(e,["id","style","children","component","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),h={id:t,style:n,component:o,childFactory:s,className:Object(l.classNames)(b["animation-container"],b["animation-container-relative"],a)},f=r.Children.map(i,function(e){return r.createElement(m,g({},d,{style:c,className:p}),e)});return r.createElement(u.TransitionGroup,g({},h),f)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,component:a.string,id:a.string,style:a.any,transitionName:a.string.isRequired,appear:a.bool.isRequired,enter:a.bool.isRequired,exit:a.bool.isRequired,transitionEnterDuration:a.number.isRequired,transitionExitDuration:a.number.isRequired},t.defaultProps={component:"div"},t}(r.Component),D=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},O=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n},k=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}D(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=O(e,["children"]);return r.createElement(w,_({},{transitionName:"fade"},n),t)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,component:a.string,id:a.string,style:a.any},t.defaultProps={appear:!1,enter:!0,exit:!1,transitionEnterDuration:500,transitionExitDuration:500}}(r.Component),function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),x=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},S=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n},E=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}k(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,i=S(e,["direction","children"]),o={transitionName:"expand-"+t};return r.createElement(w,x({},o,i),n)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["horizontal","vertical"]),component:a.string,id:a.string,style:a.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"}}(r.Component),function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),P=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n},I={position:"absolute",top:"0",left:"0"},T=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}E(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,i=C(e,["children","direction"]);return r.createElement(w,P({},i,{transitionName:"push-"+n,animationExitingStyle:this.props.stackChildren?I:void 0}),t)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["up","down","left","right"]),component:a.string,id:a.string,style:a.any,stackChildren:a.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"right",stackChildren:!1}}(r.Component),function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),M=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},V=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n},j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return T(t,e),t.prototype.render=function(){var e=this.props,t=e.direction,n=e.children,i=V(e,["direction","children"]),o={transitionName:"slide-"+t};return r.createElement(w,M({},o,i),n)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["up","down","left","right"]),component:a.string,id:a.string,style:a.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"down"},t}(r.Component),N=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),A=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},R=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n},F={position:"absolute",top:"0",left:"0"},L=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}N(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.direction,i=R(e,["children","direction"]);return r.createElement(w,A({},i,{transitionName:"zoom-"+n,animationExitingStyle:this.props.stackChildren?F:void 0}),t)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["in","out"]),component:a.string,id:a.string,style:a.any,stackChildren:a.bool},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"out",stackChildren:!1}}(r.Component),function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),H=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},z=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]])}return n},B=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={maxHeight:void 0,maxWidth:void 0},t.componentWillEnter=function(e){var n=t.props.onEnter;t.updateContainerDimensions(e.animatedElement,function(){n&&n.call(void 0,e)})},t.componentIsEntering=function(e){var n=t.props.onEntering;t.updateContainerDimensions(e.animatedElement,function(){n&&n.call(void 0,e)})},t.componentWillExit=function(e){var n=t.props.onExit;t.updateContainerDimensions(e.animatedElement,function(){n&&n.call(void 0,e)})},t.updateContainerDimensions=function(e,n){void 0===n&&(n=l.noop);var i=e.firstChild;if(i){var r=c.outerHeight(i),o=c.outerWidth(i);t.setState({maxHeight:r,maxWidth:o},n)}},t}L(t,e),t.prototype.render=function(){var e,t=this.props,n=t.direction,i=t.children,o=t.childFactory,a=z(t,["direction","children","childFactory"]),s=this.state,l=s.maxHeight,u=s.maxWidth,c={maxHeight:(e="vertical"===n?{maxHeight:l?l+"px":null}:{maxWidth:u?u+"px":null}).maxHeight,maxWidth:e.maxWidth};return r.createElement(w,H({},a,{childFactory:o||function(t){return t.props.in?t:r.cloneElement(t,H({},t.props,{style:H({},t.props.style,{maxHeight:e.maxHeight,maxWidth:e.maxWidth})}))},onEnter:this.componentWillEnter,onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:c,transitionName:"reveal-"+n}),i)},t.propTypes={children:a.oneOfType([a.arrayOf(a.node),a.node]),childFactory:a.any,className:a.string,direction:a.oneOf(["horizontal","vertical"]),component:a.string,id:a.string,style:a.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"}}(r.Component),"bottom"),q="center",Y="middle",K="left",U="right",W="top",G=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,r=e.elementAlign,o=e.margin;void 0===o&&(o={});var a=n.horizontal,s=n.vertical,l=r.horizontal,u=r.vertical,c=o.horizontal||0,p=o.vertical||0,d=t.top,h=t.left;return s===B&&(d+=t.height),s!==q&&s!==Y||(d+=Math.round(t.height/2)),u===B&&(d-=i.height,p*=-1),u!==q&&u!==Y||(d-=Math.round(i.height/2),p*=-1),a===U&&(h+=t.width),a!==q&&a!==Y||(h+=Math.round(t.width/2)),l===U&&(h-=i.width,c*=-1),l!==q&&l!==Y||(h-=Math.round(i.width/2),c*=-1),{top:d+p,left:h+c}};function X(e){return e.ownerDocument||e.document||e}var Z=function(e){return X(e).defaultView},J=function(e){return X(e).documentElement},Q=0;function $(){if(!Q&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),Q=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return Q}function ee(e){var t=Z(e),n=J(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=$()),i}var te=function(e){if(!e.getBoundingClientRect){var t=ee(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},ne=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||J(e)},ie=function(e){return ne(e)===e.ownerDocument.body},re=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,r=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var o=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=r,o}(e)),{top:i,left:n,height:t.height,width:t.width}},oe=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function ae(e){var t=J(e),n=Z(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var se=function(e){return e===(e.ownerDocument||{}).body?ae(e):{x:e.scrollLeft,y:e.scrollTop}};var le=function(e,t){var n=Z(e),i=n.getComputedStyle(e),r=re(e),o=t||ne(e),a=e.ownerDocument,s=o!==a.body&&o!==a.documentElement,l={top:0,left:0};if("fixed"!==i.position&&s){var u=n.getComputedStyle(o);(l=re(o)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.left,height:r.height,width:r.width}},ue=function(e,t){return e?se(e):function(e){var t=ne(e);return t?se(t):{x:0,y:0}}(t)};var ce="fit",pe="flip",de=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},he=function(e){var t=e.offset,n=e.size,i=e.anchorSize,r=e.viewPortSize,o=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==o&&!(a===q||a===Y)&&!(o===q||o===Y)){var u=o===W||o===K;t<0&&u?t+(s=n+i+l)+n>r&&(s=0):t>=0&&!u&&(t+n>r&&(s+=-(i+n+l)),t+s<0&&(s=0))}return s},fe=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,r=e.elementAlign,o=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=i.top,u=i.left,c=i.height,p=i.width,d=a.height,h=a.width,f=s.horizontal||0,m=s.vertical||0,v=0,g=0,y=o.horizontal===pe,b=o.vertical===pe;o.vertical===ce&&(g+=de(l,c,d)),o.horizontal===ce&&(v+=de(u,p,h)),b&&(g+=he({margin:m,offset:l,size:c,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),y&&(v+=he({margin:f,offset:u,size:p,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var w=y&&0!==v,D=b&&0!==g;return{flipped:w||D,flip:{horizontal:w,vertical:D},offset:{left:v,top:g}}},me=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},ve=function(e,t){for(var n,i,r=oe(e),o=t;o&&(n=me(o),!(i=r.reduce(function(e,t){return e.concat(n.filter(function(e){return e===t}))},[])[0]));)o=o.parentElement;return i},ge=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},ye=function(){return"undefined"!=typeof document&&!!document.body},be=function(){return"undefined"!=typeof window},we=/auto|scroll/,De=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},_e=1e3/60,Oe=function(){if(!ye())return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t}(),ke="fit",xe="flip",Se="left",Ee="center",Pe="right",Ce="bottom",Ie="top",Te=function(e,t,n){var i,r,o,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),i=null,a=e.apply(r,o),i||(r=o=null)};return function(){var u=(new Date).getTime();s||!1!==n.leading||(s=u);var c=t-(u-s);return r=this,o=arguments,c<=0||c>t?(i&&(clearTimeout(i),i=null),s=u,a=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,c)),a}},Me=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,r=e.elementAlign,o=e.offset,a=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,o):this.relativeRect(t,n,o);return this._dom.align({anchorAlign:i,anchorRect:a,elementAlign:r,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var i=this._dom,r=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(ge(i.offset(e),n),i.stackingElementOffset(t)),o=i.stackingElementScroll(t),a=i.addScroll(r,o),s=this.elementScrollPosition(e,t),l=i.removeScroll(a,s);return l.left+=window.scrollX||window.pageXOffset,l.top+=window.scrollY||window.pageYOffset,l},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return ge(this._dom.position(e,t),n)},e}(),Ve=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return G(e)},e.prototype.boundingOffset=function(e){return te(e)},e.prototype.getWindow=function(){return be()?window:null},e.prototype.isBodyOffset=function(e){return ie(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?re(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,i=t.top;e.style.left="0px",e.style.top="0px";var r=re(e);return e.style.left=n,e.style.top=i,r},e.prototype.position=function(e,t){return e&&t?function(e,t){var n=t?ne(t):null,i=le(e,n),r=i.top,o=i.left,a=i.height,s=i.width,l=ue(n,e),u=l.x;return{top:r+l.y,left:o+u,height:a,width:s}}(e,ve(e,t)):null},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),i=t,r=this.isBodyOffset(e),o=n.top,a=n.left,r&&(a=0,o=0),{top:o+i.top,left:a+i.left,height:n.height,width:n.width};var n,i,r,o,a},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return fe(e)},e.prototype.scrollPosition=function(e){return ae(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!ye()||!be())return t;for(var n=e.parentElement;n;)we.test(De(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?re(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!Oe)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return ee(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!ye()||!be())return null;var n=ve(e,t);if(!n)return null;var i=[e].concat(oe(e,n)).reduce(function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e},0);return i?i+1:null}(e,t)},e.prototype.zoomLevel=function(){return ye()&&be()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),je=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,i=e.anchor,r=e.currentLocation,o=e.element,a=e.anchorAlign,s=e.elementAlign,l=e.collisions,u=this._dom,c=e.viewPort||u.stackingElementViewPort(o)||u.windowViewPort(o),p=ge(u.offset(i),r),d=(t=u.staticOffset(o),(n=r)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),h=this.elementRect(o,d),f=u.restrictToView({anchorAlign:a,anchorRect:p,collisions:l,elementAlign:s,elementRect:h,viewPort:c});return{flipped:f.flipped,offset:u.addOffset(d,f.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),Ne=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ae=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Re={left:-1e3,top:0},Fe="k-animation-container-shown",Le=function(e){return o.findDOMNode(e)},He=function(e){function t(t){var n=e.call(this,t)||this;return n._exitingAnimation=!1,n._prevShow=!1,n.onOpened=function(){var e=Le(n);n.props.show&&e.classList.add(Fe),n.attachRepositionHandlers(e),n.props.open&&n.props.open.call(void 0,{target:n})},n.onClosing=function(){n.props.show||Le(n).classList.remove(Fe);n.detachRepositionHandlers()},n.onClosed=function(){n._exitingAnimation&&(n._exitingAnimation=!1,n.forceUpdate()),n.props.close&&n.props.close.call(void 0,{target:n})},n.position=function(e,t,i){var r=e.anchorAlign,o=e.popupAlign,a=e.collision,s=e.offset,l=n._alignService.alignElement({anchor:i,element:t,elementAlign:o,anchorAlign:r,offset:s});return n._positionService.positionElement({anchor:i,anchorAlign:r,collisions:a,element:t,currentLocation:l,elementAlign:o})},n._flipped=!1,n._offset=n.props.offset,n._prevShow=t.show,n._domService=new Ve,n._alignService=new Me(n._domService),n._positionService=new je(n._domService),n.onOpened=n.onOpened.bind(n),n.onClosing=n.onClosing.bind(n),n.reposition=Te(n.reposition.bind(n),_e),n}return Ne(t,e),t.prototype.componentDidUpdate=function(){this._prevShow=this.props.show},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,i=e.popupClass,a=e.show,s=e.id,u=e.appendTo,c=void 0===u?be()?document.body:void 0:u;if(a){var p=this.calculatePosition(this.props,c);this._offset=p.offset,this._flipped=!!p.flipped}var d=this._flipped&&a?"up":"down",h=this.transitionDuration,f=h.transitionEnterDuration,m=h.transitionExitDuration,v=Object.assign({},{position:"absolute"},this.props.style||{},Ae({},this._offset));if(this._exitingAnimation=this._exitingAnimation||this._prevShow&&!a,(a||this._exitingAnimation)&&c){var g=r.createElement(j,{componentChildClassName:Object(l.classNames)(i,"k-popup"),className:Object(l.classNames)(n),id:s,onEntered:this.onOpened,onExiting:this.onClosing,onExited:this.onClosed,direction:d,style:v,transitionEnterDuration:f,transitionExitDuration:m,appear:!0},a?t:null);return o.createPortal(g,c)}return null},Object.defineProperty(t.prototype,"transitionDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=void 0:(t=e.openDuration,n=e.closeDuration)),{transitionEnterDuration:t,transitionExitDuration:n}},enumerable:!0,configurable:!0}),t.prototype.calculatePosition=function(e,t){if(!t||!be())return{flipped:!1,offset:e.offset};var n=document.createElement("div");t.appendChild(n);var i=Object.assign({},e.style||{},Ae({visibility:"hidden"},Re)),o={className:Object(l.classNames)(e.popupClass,"k-popup","k-child-animation-container")},a=r.createElement("div",{className:Object(l.classNames)("k-animation-container",Fe,e.className),style:i},r.Children.map(e.children,function(e,t){return r.createElement("div",Ae({key:t},o),e)}));n.innerHTML=s.renderToStaticMarkup(a);var u=this.position(e,n.firstChild,e.anchor);return n.parentNode.removeChild(n),u},t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.props.anchor||e),this._scrollableParents.map(function(e){return e.addEventListener("scroll",t.reposition)}),window.addEventListener("resize",this.reposition)},t.prototype.detachRepositionHandlers=function(){var e=this;this._scrollableParents&&(this._scrollableParents.map(function(t){return t.removeEventListener("scroll",e.reposition)}),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},t.prototype.reposition=function(){this.forceUpdate()},t.propTypes={anchor:function(e){var t=e.anchor;if(t&&"number"!=typeof t.nodeType)return new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed.