{"version":3,"sources":["webpack:///./node_modules/date-fns/parse/index.js","webpack:///./node_modules/date-fns/format/index.js","webpack:///./node_modules/recompose/createHelper.js","webpack:///./node_modules/recompose/createEagerFactory.js","webpack:///./node_modules/recompose/withPropsOnChange.js","webpack:///./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///./node_modules/date-fns/is_before/index.js","webpack:///./node_modules/date-fns/start_of_day/index.js","webpack:///./node_modules/recompose/withState.js","webpack:///./node_modules/recompose/withProps.js","webpack:///./node_modules/recompose/compose.js","webpack:///./node_modules/dom-helpers/util/inDOM.js","webpack:///./node_modules/date-fns/is_after/index.js","webpack:///./node_modules/date-fns/start_of_iso_week/index.js","webpack:///./node_modules/date-fns/is_date/index.js","webpack:///./node_modules/date-fns/get_day/index.js","webpack:///./node_modules/react-transition-group/CSSTransitionGroup.js","webpack:///./node_modules/react-transition-group/utils/PropTypes.js","webpack:///./node_modules/date-fns/get_iso_year/index.js","webpack:///./node_modules/recompose/defaultProps.js","webpack:///./node_modules/recompose/utils/createEagerElementUtil.js","webpack:///./node_modules/recompose/isReferentiallyTransparentFunctionComponent.js","webpack:///./node_modules/recompose/isClassComponent.js","webpack:///./node_modules/recompose/utils/pick.js","webpack:///./node_modules/recompose/shallowEqual.js","webpack:///./node_modules/fbjs/lib/shallowEqual.js","webpack:///./node_modules/dom-helpers/util/scrollbarSize.js","webpack:///./node_modules/date-fns/get_days_in_month/index.js","webpack:///./node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js","webpack:///./node_modules/date-fns/is_same_day/index.js","webpack:///./node_modules/date-fns/end_of_day/index.js","webpack:///./node_modules/react-infinite-calendar/es/utils/defaultDisplayOptions.js","webpack:///./node_modules/react-infinite-calendar/es/utils/defaultLocale.js","webpack:///./node_modules/react-infinite-calendar/es/utils/defaultTheme.js","webpack:///./node_modules/react-transition-group/TransitionGroup.js","webpack:///./node_modules/chain-function/index.js","webpack:///./node_modules/warning/browser.js","webpack:///./node_modules/react-transition-group/utils/ChildMapping.js","webpack:///./node_modules/react-transition-group/CSSTransitionGroupChild.js","webpack:///./node_modules/dom-helpers/class/addClass.js","webpack:///./node_modules/dom-helpers/class/hasClass.js","webpack:///./node_modules/dom-helpers/class/removeClass.js","webpack:///./node_modules/dom-helpers/util/requestAnimationFrame.js","webpack:///./node_modules/dom-helpers/transition/properties.js","webpack:///./node_modules/date-fns/get_day_of_year/index.js","webpack:///./node_modules/date-fns/start_of_year/index.js","webpack:///./node_modules/date-fns/difference_in_calendar_days/index.js","webpack:///./node_modules/date-fns/get_iso_week/index.js","webpack:///./node_modules/date-fns/start_of_week/index.js","webpack:///./node_modules/date-fns/start_of_iso_year/index.js","webpack:///./node_modules/date-fns/is_valid/index.js","webpack:///./node_modules/date-fns/locale/en/index.js","webpack:///./node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js","webpack:///./node_modules/date-fns/locale/en/build_format_locale/index.js","webpack:///./node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js","webpack:///./node_modules/date-fns/start_of_month/index.js","webpack:///./node_modules/date-fns/is_same_year/index.js","webpack:///./node_modules/date-fns/is_same_month/index.js","webpack:///./node_modules/recompose/mapProps.js","webpack:///./node_modules/recompose/withHandlers.js","webpack:///./node_modules/date-fns/add_days/index.js","webpack:///./node_modules/react-infinite-calendar/es/utils/index.js","webpack:///./node_modules/react-infinite-calendar/es/Today/index.js","webpack:///./node_modules/react-infinite-calendar/es/Header/index.js","webpack:///./node_modules/react-infinite-calendar/es/Header/defaultSelectionRenderer.js","webpack:///./node_modules/react-tiny-virtual-list/build/react-tiny-virtual-list.es.js","webpack:///./node_modules/react-infinite-calendar/es/Month/index.js","webpack:///./node_modules/react-infinite-calendar/es/MonthList/index.js","webpack:///./node_modules/react-infinite-calendar/es/utils/animate.js","webpack:///./node_modules/react-infinite-calendar/es/Weekdays/index.js","webpack:///./node_modules/react-infinite-calendar/es/Years/index.js","webpack:///./node_modules/react-infinite-calendar/es/Day/index.js","webpack:///./node_modules/react-infinite-calendar/es/Calendar/index.js","webpack:///./node_modules/react-infinite-calendar/es/Calendar/withDateSelection.js","webpack:///./node_modules/react-infinite-calendar/es/Calendar/withKeyboardSupport.js","webpack:///./node_modules/react-infinite-calendar/es/Header/Slider/index.js","webpack:///./node_modules/react-infinite-calendar/es/Header/withMultipleDates.js","webpack:///./node_modules/react-infinite-calendar/es/Calendar/withMultipleDates.js","webpack:///./node_modules/react-infinite-calendar/es/Header/withRange.js","webpack:///./node_modules/react-infinite-calendar/es/Calendar/withRange.js","webpack:///./node_modules/react-infinite-calendar/es/index.js"],"names":["getTimezoneOffsetInMilliseconds","isDate","MILLISECONDS_IN_HOUR","MILLISECONDS_IN_MINUTE","parseTokenDateTimeDelimeter","parseTokenPlainTime","parseTokenYY","parseTokensYYY","parseTokenYYYY","parseTokensYYYYY","parseTokenMM","parseTokenDDD","parseTokenMMDD","parseTokenWww","parseTokenWwwD","parseTokenHH","parseTokenHHMM","parseTokenHHMMSS","parseTokenTimezone","parseTokenTimezoneZ","parseTokenTimezoneHH","parseTokenTimezoneHHMM","dayOfISOYear","isoYear","week","day","date","Date","setUTCFullYear","diff","getUTCDay","setUTCDate","getUTCDate","module","exports","argument","dirtyOptions","getTime","additionalDigits","Number","dateStrings","dateString","timeString","array","split","test","token","exec","time","replace","timezone","splitDateString","parseYearResult","parseTokenYYY","parseTokenYYYYY","yearString","year","parseInt","restDateString","slice","length","centuryString","parseYear","month","dayOfYear","parseDate","offset","timestamp","hours","minutes","parseFloat","seconds","parseTime","timezoneString","absoluteOffset","parseTimezone","fullTime","fullTimeDate","fullTimeDateNextDay","setDate","getDate","offsetDiff","getDayOfYear","getISOWeek","getISOYear","parse","isValid","enLocale","formatters","getMonth","addLeadingZeros","Math","ceil","getDay","getFullYear","substr","String","getHours","getMinutes","getSeconds","floor","getMilliseconds","formatTimezone","getTimezoneOffset","removeFormattingTokens","input","match","delimeter","sign","absOffset","abs","number","targetLength","output","toString","dirtyDate","dirtyFormatStr","formatStr","locale","localeFormatters","format","formattingTokensRegExp","i","formatter","Function","buildFormatFn","formatFn","__esModule","default","func","helperName","_createEagerElementUtil2","_interopRequireDefault","_isReferentiallyTransparentFunctionComponent2","obj","type","isReferentiallyTransparent","p","c","_extends","Object","assign","target","arguments","source","key","prototype","hasOwnProperty","call","_react","_pick2","_shallowEqual2","_createHelper2","_createEagerFactory2","_possibleConstructorReturn","self","ReferenceError","shouldMapOrKeys","propsMapper","BaseComponent","factory","shouldMap","props","nextProps","_Component","_class2","_temp","_this","instance","Constructor","TypeError","_classCallCheck","this","_len","args","Array","_key","apply","concat","computedProps","subClass","superClass","create","constructor","value","enumerable","writable","configurable","setPrototypeOf","__proto__","_inherits","componentWillReceiveProps","render","Component","e","dirtyDateToCompare","dateToCompare","setHours","stateName","stateUpdaterName","initialState","state","stateValue","updateStateValue","updateFn","callback","setState","_ref","_extends2","_mapProps2","funcs","arg","reduce","a","b","undefined","_default","window","document","createElement","startOfWeek","weekStartsOn","_react2","_propTypes2","_TransitionGroup2","_CSSTransitionGroupChild2","_PropTypes","nameShape","isRequired","bool","transitionTimeout","CSSTransitionGroup","_React$Component","_wrapChild","child","name","transitionName","appear","transitionAppear","enter","transitionEnter","leave","transitionLeave","appearTimeout","transitionAppearTimeout","enterTimeout","transitionEnterTimeout","leaveTimeout","transitionLeaveTimeout","childFactory","displayName","propTypes","defaultProps","transitionType","timeoutPropName","enabledPropName","Error","oneOfType","string","shape","active","enterActive","leaveActive","appearActive","startOfISOWeek","fourthOfJanuaryOfNextYear","setFullYear","startOfNextYear","fourthOfJanuaryOfThisYear","startOfThisYear","DefaultProps","ownerProps","hasKey","children","_isClassComponent","_isClassComponent2","Boolean","contextTypes","isReactComponent","keys","result","_shallowEqual","is","x","y","objA","objB","keysA","keysB","recalc","size","_inDOM","scrollDiv","style","position","top","width","height","overflow","body","appendChild","offsetWidth","clientWidth","removeChild","monthIndex","lastDayOfMonth","baseTimezoneOffset","setSeconds","startOfDay","dirtyDateLeft","dirtyDateRight","dateLeftStartOfDay","dateRightStartOfDay","hideYearsOnSelect","layout","overscanMonthCount","shouldHeaderAnimate","showHeader","showMonthsForYears","showOverlay","showTodayHelper","showWeekdays","todayHelperRowOffset","blank","headerFormat","todayLabel","long","weekdays","accentColor","floatingNav","background","chevron","color","headerColor","selectionColor","textColor","todayColor","weekdayColor","_chainFunction2","_ChildMapping","any","node","TransitionGroup","context","performAppear","component","currentlyTransitioningKeys","componentWillAppear","_handleDoneAppearing","bind","componentDidAppear","currentChildMapping","getChildMapping","performLeave","performEnter","componentWillEnter","_handleDoneEntering","componentDidEnter","componentWillLeave","_handleDoneLeaving","componentDidLeave","keysToEnter","push","newChildren","childRefs","componentWillMount","keysToLeave","componentDidMount","initialChildMapping","nextChildMapping","prevChildMapping","mergeChildMappings","hasPrev","hasNext","componentDidUpdate","_this2","forEach","_this3","childrenToRender","_loop","isCallbackRef","ref","factoryChild","r","cloneElement","len","filter","fn","current","next","Children","map","prev","getValueForKey","nextKeysPending","pendingKeys","prevKey","childMapping","nextKey","pendingNextKey","_addClass2","_removeClass2","_requestAnimationFrame2","_properties","_reactDom","events","transitionEnd","animationEnd","CSSTransitionGroupChild","done","transition","classNameAndNodeQueue","transitionTimeouts","componentWillUnmount","unmounted","timeout","clearTimeout","animationType","finishCallback","findDOMNode","className","activeClassName","timer","removeListeners","queueClassAndNode","finish","setTimeout","listener","addEventListener","removeEventListener","addEndListener","rafHandle","flushClassNameAndNodeQueue","scrollTop","only","element","classList","add","_hasClass","setAttribute","baseVal","contains","indexOf","replaceClassName","origClass","classToRemove","RegExp","remove","compatRaf","cancel","raf","curr","ms","max","req","getKey","vendor","k","toUpperCase","some","rafKey","cb","id","animationDelay","animationTiming","animationDuration","animationName","transitionDuration","transitionDelay","transitionTiming","transitionProperty","transform","prefix","_getTransitionPropert","vendorMap","O","toLowerCase","Moz","Webkit","vendors","getTransitionProperties","end","property","timing","delay","duration","startOfYear","differenceInCalendarDays","cleanDate","startOfDayLeft","startOfDayRight","timestampLeft","timestampRight","round","startOfISOYear","fourthOfJanuary","isNaN","buildDistanceInWordsLocale","buildFormatLocale","distanceInWords","distanceInWordsLocale","lessThanXSeconds","one","other","xSeconds","halfAMinute","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","localize","count","options","addSuffix","comparison","buildFormattingTokensRegExp","months3char","monthsFull","weekdays2char","weekdays3char","weekdaysFull","meridiemUppercase","meridiemLowercase","meridiemFull","formatterToken","rem100","ordinal","commonFormatterKeys","formatterKeys","formattingTokens","sort","reverse","join","dateLeft","dateRight","handlers","_temp2","_initialiseProps","_class","cachedHandlers","mapValues","createHandler","handlerName","cachedHandler","handler","dirtyAmount","amount","keyCodes","command","control","down","escape","left","right","shift","up","getWeek","yearStart","yearStartDate","getEndOfWeekIndex","ScrollSpeed","clear","lastPosition","delta","getScrollSpeed","scrollOffset","_timeout","emptyFn","sanitizeDate","_ref$disabledDates","disabledDates","_ref$disabledDays","disabledDays","minDate","maxDate","disabledDate","getDateString","range","start","stop","step","styles","_PureComponent","Today","scrollToToday","scrollToDate","_classNames","_props","show","theme","backgroundColor","onClick","viewBox","fill","d","animation","defaultSelectionRenderer","display","dateFormat","onYearClick","setDisplay","shouldAnimate","values","handleClick","item","title","wrapper","_ref2","dateWrapper","Header","selected","renderSelection","extendStatics","ALIGNMENT","DIRECTION","SCROLL_CHANGE_REASON","__assign","t","s","n","scrollProp","VERTICAL","HORIZONTAL","sizeProp","positionProp","marginProp","oppositeMarginProp","SizeAndPositionManager","_a","itemCount","itemSizeGetter","estimatedItemSize","itemSizeAndPositionData","lastMeasuredIndex","updateConfig","getLastMeasuredIndex","getSizeAndPositionForIndex","index","lastMeasuredSizeAndPosition","getSizeAndPositionOfLastMeasuredItem","getTotalSize","getUpdatedOffsetForIndex","_b","align","START","containerSize","currentOffset","targetIndex","idealOffset","datum","maxOffset","minOffset","END","CENTER","min","totalSize","getVisibleRange","overscanCount","findNearestItem","resetItem","binarySearch","high","low","exponentialSearch","middle","interval","STYLE_WRAPPER","willChange","WebkitOverflowScrolling","STYLE_INNER","minHeight","STYLE_ITEM","STYLE_STICKY_ITEM","_super","VirtualList","itemSize","getSize","sizeAndPositionManager","getEstimatedItemSize","scrollToIndex","getOffsetForIndex","scrollChangeReason","REQUESTED","styleCache","getRef","rootNode","handleScroll","event","onScroll","getNodeOffset","OBSERVED","__","__extends","passive","scrollTo","scrollToAlignment","scrollPropsHaveChanged","itemPropsHaveChanged","recomputeSizes","_","prevState","scrollDirection","startIndex","_e","renderItem","onItemsRendered","_c","stickyIndices","getOwnPropertySymbols","__rest","_d","items","wrapperStyle","innerStyle","getStyle","includes","stopIndex","isArray","sticky","zIndex","AUTO","Month","renderRows","DayComponent","monthDate","rowHeight","rows","today","passThrough","currentYear","monthShort","monthRows","isDisabled","isToday","days","dow","row","_today","_minDate","_maxDate","Day","partial","role","_classNames2","_props2","root","lineHeight","label","partialFirstRow","overlayColor","MonthList","getDateOffset","scrollDate","cache","memoize","param","_param$split","daysInMonth","weekEndsOn","monthHeights","_getRef","getMonthHeight","_this$props","months","_months$index","weeks","isLastDisplayedMonth","firstWeekNumber","lastOfMonth","rowCount","getWeeksInMonth","_len2","rest","_key2","offsetTop","onScrollEnd","onComplete","scrollEl","overflowY","fromValue","toValue","onUpdate","_ref$duration","startTime","performance","now","tick","elapsed","requestAnimationFrame","getValue","animate","renderMonth","_this$props2","_months$index2","_this$memoize","isScrolling","Weekdays","orderedWeekdays","paddingRight","val","Years","hideOnSelect","onSelect","renderMonths","getMonthsForYear","isSelected","isCurrentMonth","borderColor","stopPropagation","currentMonth","disabled","_props3","showMonths","years","selectedYearIndex","heights","containerHeight","list","isActive","withMonths","first","last","setYear","selectionStyle","short","isHighlighted","_props2$theme","withDefaultProps","autoFocus","displayOptions","HeaderComponent","keyboardSupport","onHighlightedDateChange","tabIndex","YearsComponent","Calendar","_displayOptions","_locale","_theme","getCurrentOffset","_MonthList","_this$getDisplayOptio","getDisplayOptions","scrollSpeed","updateTodayHelperPosition","handleScrollEnd","wait","callbackArgs","later","debounce","showToday","newState","_todayOffset","updateYears","focus","componentWillUpdate","nextState","_min","_max","minMonth","maxMonth","getDisabledDates","getLocale","getTheme","displayDate","_getDisplayOptions","_state","landscape","listWrapper","_Years","enhanceDay","enhanceYear","withDateSelection","setScrollDate","_ref3","_onSelect","_objectWithoutProperties","_ref4","newDate","handleYearSelect","highlightedDate","onKeyDown","setHighlight","getInitialDate","keyCode","preventDefault","newHighlightedDate","handleKeyDown","DIRECTIONS","direction","_onClick","Slider","onChange","setDisplayDate","dates","enhanceYears","handleSelect","_ref5","defaultMultipleDateInterpolation","selectedMap","isTouchDevice","EVENT_TYPE","isStart","isEnd","isRange","displayKey","setDisplayKey","selectionStart","setSelectionStart","eventType","getSortedSelection","onMouseOver","_ref6","dateStr","getAttribute","handleMouseOver","_ref7","_Object$assign","_ref8","onTouch","DefaultCalendar","interpolateSelection"],"mappings":"6EAAA,IAAIA,EAAkC,EAAQ,KAC1CC,EAAS,EAAQ,KAEjBC,EAAuB,KACvBC,EAAyB,IAGzBC,EAA8B,OAC9BC,EAAsB,IAGtBC,EAAe,YACfC,EAAiB,CACnB,gBACA,gBACA,iBAGEC,EAAiB,WACjBC,EAAmB,CACrB,eACA,eACA,gBAIEC,EAAe,aACfC,EAAgB,cAChBC,EAAiB,uBACjBC,EAAgB,eAChBC,EAAiB,wBAGjBC,EAAe,sBACfC,EAAiB,+BACjBC,EAAmB,wCAGnBC,EAAqB,aACrBC,EAAsB,QACtBC,EAAuB,kBACvBC,EAAyB,2BAuR7B,SAASC,EAAcC,EAASC,EAAMC,GACpCD,EAAOA,GAAQ,EACfC,EAAMA,GAAO,EACb,IAAIC,EAAO,IAAIC,KAAK,GACpBD,EAAKE,eAAeL,EAAS,EAAG,GAChC,IACIM,EAAc,EAAPL,EAAWC,EAAM,GADHC,EAAKI,aAAe,GAG7C,OADAJ,EAAKK,WAAWL,EAAKM,aAAeH,GAC7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,MAAOJ,EAAUK,YAAY,EAAOC,UAAU,EAAMC,cAAc,KAAeN,IAAYzC,OAAOgD,eAAiBhD,OAAOgD,eAAeR,EAAUC,GAAcD,EAASS,UAAYR,EAAY,CAiB3e,CAAU0uB,EAAiB3vB,GA2B3B2vB,EAAgB7wB,UAAU6C,0BAA4B,SAAmCgB,GACvF,IAAI0Z,EAAW1Z,EAAK0Z,SAEhBA,IAAa7b,KAAKV,MAAMuc,UAC1B7b,KAAKkC,SAAS,CAAE2Z,SAAUA,GAE9B,EAEAsT,EAAgB7wB,UAAU8C,OAAS,WAEjC,IAAIkZ,EAASta,KAAKV,MACd+B,EAAYiZ,EAAOjZ,UAEnB/B,GADuBgb,EAAO8U,qBA9DtC,SAAkC1xB,EAAKiJ,GAAQ,IAAIzI,EAAS,CAAC,EAAG,IAAK,IAAIpB,KAAKY,EAAWiJ,EAAKmK,QAAQhU,IAAM,GAAkBkB,OAAOM,UAAUC,eAAeC,KAAKd,EAAKZ,KAAcoB,EAAOpB,GAAKY,EAAIZ,IAAM,OAAOoB,CAAQ,CA+D3M,CAAyBoc,EAAQ,CAAC,YAAa,0BAE3D,OAAO,IAAMvX,cAAc1B,EAAW,GAAS,CAAC,EAAG/B,EAAO,CACxDuoB,SAAU7nB,KAAK2tB,aACf9R,SAAU7b,KAAK6B,MAAMga,WAEzB,EAEOsT,CACT,CAlDyC,CAkDvC,aAAY,GAAOnqB,aAAe,CAClC3D,UAAW8qB,GAAkB,IAC7BiD,qBAAsB,SAA8BvT,GAClD,OAAOA,CACT,GACC1E,G","file":"js/2-36efea32c000f1faba02.chunk.js","sourcesContent":["var getTimezoneOffsetInMilliseconds = require('../_lib/getTimezoneOffsetInMilliseconds/index.js')\nvar isDate = require('../is_date/index.js')\n\nvar MILLISECONDS_IN_HOUR = 3600000\nvar MILLISECONDS_IN_MINUTE = 60000\nvar DEFAULT_ADDITIONAL_DIGITS = 2\n\nvar parseTokenDateTimeDelimeter = /[T ]/\nvar parseTokenPlainTime = /:/\n\n// year tokens\nvar parseTokenYY = /^(\\d{2})$/\nvar parseTokensYYY = [\n /^([+-]\\d{2})$/, // 0 additional digits\n /^([+-]\\d{3})$/, // 1 additional digit\n /^([+-]\\d{4})$/ // 2 additional digits\n]\n\nvar parseTokenYYYY = /^(\\d{4})/\nvar parseTokensYYYYY = [\n /^([+-]\\d{4})/, // 0 additional digits\n /^([+-]\\d{5})/, // 1 additional digit\n /^([+-]\\d{6})/ // 2 additional digits\n]\n\n// date tokens\nvar parseTokenMM = /^-(\\d{2})$/\nvar parseTokenDDD = /^-?(\\d{3})$/\nvar parseTokenMMDD = /^-?(\\d{2})-?(\\d{2})$/\nvar parseTokenWww = /^-?W(\\d{2})$/\nvar parseTokenWwwD = /^-?W(\\d{2})-?(\\d{1})$/\n\n// time tokens\nvar parseTokenHH = /^(\\d{2}([.,]\\d*)?)$/\nvar parseTokenHHMM = /^(\\d{2}):?(\\d{2}([.,]\\d*)?)$/\nvar parseTokenHHMMSS = /^(\\d{2}):?(\\d{2}):?(\\d{2}([.,]\\d*)?)$/\n\n// timezone tokens\nvar parseTokenTimezone = /([Z+-].*)$/\nvar parseTokenTimezoneZ = /^(Z)$/\nvar parseTokenTimezoneHH = /^([+-])(\\d{2})$/\nvar parseTokenTimezoneHHMM = /^([+-])(\\d{2}):?(\\d{2})$/\n\n/**\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If an argument is a string, the function tries to parse it.\n * Function accepts complete ISO 8601 formats as well as partial implementations.\n * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601\n *\n * If all above fails, the function passes the given argument to Date constructor.\n *\n * @param {Date|String|Number} argument - the value to convert\n * @param {Object} [options] - the object with options\n * @param {0 | 1 | 2} [options.additionalDigits=2] - the additional number of digits in the extended year format\n * @returns {Date} the parsed date in the local time zone\n *\n * @example\n * // Convert string '2014-02-11T11:30:30' to date:\n * var result = parse('2014-02-11T11:30:30')\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Parse string '+02014101',\n * // if the additional number of digits in the extended year format is 1:\n * var result = parse('+02014101', {additionalDigits: 1})\n * //=> Fri Apr 11 2014 00:00:00\n */\nfunction parse (argument, dirtyOptions) {\n if (isDate(argument)) {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime())\n } else if (typeof argument !== 'string') {\n return new Date(argument)\n }\n\n var options = dirtyOptions || {}\n var additionalDigits = options.additionalDigits\n if (additionalDigits == null) {\n additionalDigits = DEFAULT_ADDITIONAL_DIGITS\n } else {\n additionalDigits = Number(additionalDigits)\n }\n\n var dateStrings = splitDateString(argument)\n\n var parseYearResult = parseYear(dateStrings.date, additionalDigits)\n var year = parseYearResult.year\n var restDateString = parseYearResult.restDateString\n\n var date = parseDate(restDateString, year)\n\n if (date) {\n var timestamp = date.getTime()\n var time = 0\n var offset\n\n if (dateStrings.time) {\n time = parseTime(dateStrings.time)\n }\n\n if (dateStrings.timezone) {\n offset = parseTimezone(dateStrings.timezone) * MILLISECONDS_IN_MINUTE\n } else {\n var fullTime = timestamp + time\n var fullTimeDate = new Date(fullTime)\n\n offset = getTimezoneOffsetInMilliseconds(fullTimeDate)\n\n // Adjust time when it's coming from DST\n var fullTimeDateNextDay = new Date(fullTime)\n fullTimeDateNextDay.setDate(fullTimeDate.getDate() + 1)\n var offsetDiff =\n getTimezoneOffsetInMilliseconds(fullTimeDateNextDay) -\n getTimezoneOffsetInMilliseconds(fullTimeDate)\n if (offsetDiff > 0) {\n offset += offsetDiff\n }\n }\n\n return new Date(timestamp + time + offset)\n } else {\n return new Date(argument)\n }\n}\n\nfunction splitDateString (dateString) {\n var dateStrings = {}\n var array = dateString.split(parseTokenDateTimeDelimeter)\n var timeString\n\n if (parseTokenPlainTime.test(array[0])) {\n dateStrings.date = null\n timeString = array[0]\n } else {\n dateStrings.date = array[0]\n timeString = array[1]\n }\n\n if (timeString) {\n var token = parseTokenTimezone.exec(timeString)\n if (token) {\n dateStrings.time = timeString.replace(token[1], '')\n dateStrings.timezone = token[1]\n } else {\n dateStrings.time = timeString\n }\n }\n\n return dateStrings\n}\n\nfunction parseYear (dateString, additionalDigits) {\n var parseTokenYYY = parseTokensYYY[additionalDigits]\n var parseTokenYYYYY = parseTokensYYYYY[additionalDigits]\n\n var token\n\n // YYYY or ±YYYYY\n token = parseTokenYYYY.exec(dateString) || parseTokenYYYYY.exec(dateString)\n if (token) {\n var yearString = token[1]\n return {\n year: parseInt(yearString, 10),\n restDateString: dateString.slice(yearString.length)\n }\n }\n\n // YY or ±YYY\n token = parseTokenYY.exec(dateString) || parseTokenYYY.exec(dateString)\n if (token) {\n var centuryString = token[1]\n return {\n year: parseInt(centuryString, 10) * 100,\n restDateString: dateString.slice(centuryString.length)\n }\n }\n\n // Invalid ISO-formatted year\n return {\n year: null\n }\n}\n\nfunction parseDate (dateString, year) {\n // Invalid ISO-formatted year\n if (year === null) {\n return null\n }\n\n var token\n var date\n var month\n var week\n\n // YYYY\n if (dateString.length === 0) {\n date = new Date(0)\n date.setUTCFullYear(year)\n return date\n }\n\n // YYYY-MM\n token = parseTokenMM.exec(dateString)\n if (token) {\n date = new Date(0)\n month = parseInt(token[1], 10) - 1\n date.setUTCFullYear(year, month)\n return date\n }\n\n // YYYY-DDD or YYYYDDD\n token = parseTokenDDD.exec(dateString)\n if (token) {\n date = new Date(0)\n var dayOfYear = parseInt(token[1], 10)\n date.setUTCFullYear(year, 0, dayOfYear)\n return date\n }\n\n // YYYY-MM-DD or YYYYMMDD\n token = parseTokenMMDD.exec(dateString)\n if (token) {\n date = new Date(0)\n month = parseInt(token[1], 10) - 1\n var day = parseInt(token[2], 10)\n date.setUTCFullYear(year, month, day)\n return date\n }\n\n // YYYY-Www or YYYYWww\n token = parseTokenWww.exec(dateString)\n if (token) {\n week = parseInt(token[1], 10) - 1\n return dayOfISOYear(year, week)\n }\n\n // YYYY-Www-D or YYYYWwwD\n token = parseTokenWwwD.exec(dateString)\n if (token) {\n week = parseInt(token[1], 10) - 1\n var dayOfWeek = parseInt(token[2], 10) - 1\n return dayOfISOYear(year, week, dayOfWeek)\n }\n\n // Invalid ISO-formatted date\n return null\n}\n\nfunction parseTime (timeString) {\n var token\n var hours\n var minutes\n\n // hh\n token = parseTokenHH.exec(timeString)\n if (token) {\n hours = parseFloat(token[1].replace(',', '.'))\n return (hours % 24) * MILLISECONDS_IN_HOUR\n }\n\n // hh:mm or hhmm\n token = parseTokenHHMM.exec(timeString)\n if (token) {\n hours = parseInt(token[1], 10)\n minutes = parseFloat(token[2].replace(',', '.'))\n return (hours % 24) * MILLISECONDS_IN_HOUR +\n minutes * MILLISECONDS_IN_MINUTE\n }\n\n // hh:mm:ss or hhmmss\n token = parseTokenHHMMSS.exec(timeString)\n if (token) {\n hours = parseInt(token[1], 10)\n minutes = parseInt(token[2], 10)\n var seconds = parseFloat(token[3].replace(',', '.'))\n return (hours % 24) * MILLISECONDS_IN_HOUR +\n minutes * MILLISECONDS_IN_MINUTE +\n seconds * 1000\n }\n\n // Invalid ISO-formatted time\n return null\n}\n\nfunction parseTimezone (timezoneString) {\n var token\n var absoluteOffset\n\n // Z\n token = parseTokenTimezoneZ.exec(timezoneString)\n if (token) {\n return 0\n }\n\n // ±hh\n token = parseTokenTimezoneHH.exec(timezoneString)\n if (token) {\n absoluteOffset = parseInt(token[2], 10) * 60\n return (token[1] === '+') ? -absoluteOffset : absoluteOffset\n }\n\n // ±hh:mm or ±hhmm\n token = parseTokenTimezoneHHMM.exec(timezoneString)\n if (token) {\n absoluteOffset = parseInt(token[2], 10) * 60 + parseInt(token[3], 10)\n return (token[1] === '+') ? -absoluteOffset : absoluteOffset\n }\n\n return 0\n}\n\nfunction dayOfISOYear (isoYear, week, day) {\n week = week || 0\n day = day || 0\n var date = new Date(0)\n date.setUTCFullYear(isoYear, 0, 4)\n var fourthOfJanuaryDay = date.getUTCDay() || 7\n var diff = week * 7 + day + 1 - fourthOfJanuaryDay\n date.setUTCDate(date.getUTCDate() + diff)\n return date\n}\n\nmodule.exports = parse\n","var getDayOfYear = require('../get_day_of_year/index.js')\nvar getISOWeek = require('../get_iso_week/index.js')\nvar getISOYear = require('../get_iso_year/index.js')\nvar parse = require('../parse/index.js')\nvar isValid = require('../is_valid/index.js')\nvar enLocale = require('../locale/en/index.js')\n\n/**\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format.\n *\n * Accepted tokens:\n * | Unit | Token | Result examples |\n * |-------------------------|-------|----------------------------------|\n * | Month | M | 1, 2, ..., 12 |\n * | | Mo | 1st, 2nd, ..., 12th |\n * | | MM | 01, 02, ..., 12 |\n * | | MMM | Jan, Feb, ..., Dec |\n * | | MMMM | January, February, ..., December |\n * | Quarter | Q | 1, 2, 3, 4 |\n * | | Qo | 1st, 2nd, 3rd, 4th |\n * | Day of month | D | 1, 2, ..., 31 |\n * | | Do | 1st, 2nd, ..., 31st |\n * | | DD | 01, 02, ..., 31 |\n * | Day of year | DDD | 1, 2, ..., 366 |\n * | | DDDo | 1st, 2nd, ..., 366th |\n * | | DDDD | 001, 002, ..., 366 |\n * | Day of week | d | 0, 1, ..., 6 |\n * | | do | 0th, 1st, ..., 6th |\n * | | dd | Su, Mo, ..., Sa |\n * | | ddd | Sun, Mon, ..., Sat |\n * | | dddd | Sunday, Monday, ..., Saturday |\n * | Day of ISO week | E | 1, 2, ..., 7 |\n * | ISO week | W | 1, 2, ..., 53 |\n * | | Wo | 1st, 2nd, ..., 53rd |\n * | | WW | 01, 02, ..., 53 |\n * | Year | YY | 00, 01, ..., 99 |\n * | | YYYY | 1900, 1901, ..., 2099 |\n * | ISO week-numbering year | GG | 00, 01, ..., 99 |\n * | | GGGG | 1900, 1901, ..., 2099 |\n * | AM/PM | A | AM, PM |\n * | | a | am, pm |\n * | | aa | a.m., p.m. |\n * | Hour | H | 0, 1, ... 23 |\n * | | HH | 00, 01, ... 23 |\n * | | h | 1, 2, ..., 12 |\n * | | hh | 01, 02, ..., 12 |\n * | Minute | m | 0, 1, ..., 59 |\n * | | mm | 00, 01, ..., 59 |\n * | Second | s | 0, 1, ..., 59 |\n * | | ss | 00, 01, ..., 59 |\n * | 1/10 of second | S | 0, 1, ..., 9 |\n * | 1/100 of second | SS | 00, 01, ..., 99 |\n * | Millisecond | SSS | 000, 001, ..., 999 |\n * | Timezone | Z | -01:00, +00:00, ... +12:00 |\n * | | ZZ | -0100, +0000, ..., +1200 |\n * | Seconds timestamp | X | 512969520 |\n * | Milliseconds timestamp | x | 512969520900 |\n *\n * The characters wrapped in square brackets are escaped.\n *\n * The result may vary by locale.\n *\n * @param {Date|String|Number} date - the original date\n * @param {String} [format='YYYY-MM-DDTHH:mm:ss.SSSZ'] - the string of tokens\n * @param {Object} [options] - the object with options\n * @param {Object} [options.locale=enLocale] - the locale object\n * @returns {String} the formatted date string\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * var result = format(\n * new Date(2014, 1, 11),\n * 'MM/DD/YYYY'\n * )\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * var eoLocale = require('date-fns/locale/eo')\n * var result = format(\n * new Date(2014, 6, 2),\n * 'Do [de] MMMM YYYY',\n * {locale: eoLocale}\n * )\n * //=> '2-a de julio 2014'\n */\nfunction format (dirtyDate, dirtyFormatStr, dirtyOptions) {\n var formatStr = dirtyFormatStr ? String(dirtyFormatStr) : 'YYYY-MM-DDTHH:mm:ss.SSSZ'\n var options = dirtyOptions || {}\n\n var locale = options.locale\n var localeFormatters = enLocale.format.formatters\n var formattingTokensRegExp = enLocale.format.formattingTokensRegExp\n if (locale && locale.format && locale.format.formatters) {\n localeFormatters = locale.format.formatters\n\n if (locale.format.formattingTokensRegExp) {\n formattingTokensRegExp = locale.format.formattingTokensRegExp\n }\n }\n\n var date = parse(dirtyDate)\n\n if (!isValid(date)) {\n return 'Invalid Date'\n }\n\n var formatFn = buildFormatFn(formatStr, localeFormatters, formattingTokensRegExp)\n\n return formatFn(date)\n}\n\nvar formatters = {\n // Month: 1, 2, ..., 12\n 'M': function (date) {\n return date.getMonth() + 1\n },\n\n // Month: 01, 02, ..., 12\n 'MM': function (date) {\n return addLeadingZeros(date.getMonth() + 1, 2)\n },\n\n // Quarter: 1, 2, 3, 4\n 'Q': function (date) {\n return Math.ceil((date.getMonth() + 1) / 3)\n },\n\n // Day of month: 1, 2, ..., 31\n 'D': function (date) {\n return date.getDate()\n },\n\n // Day of month: 01, 02, ..., 31\n 'DD': function (date) {\n return addLeadingZeros(date.getDate(), 2)\n },\n\n // Day of year: 1, 2, ..., 366\n 'DDD': function (date) {\n return getDayOfYear(date)\n },\n\n // Day of year: 001, 002, ..., 366\n 'DDDD': function (date) {\n return addLeadingZeros(getDayOfYear(date), 3)\n },\n\n // Day of week: 0, 1, ..., 6\n 'd': function (date) {\n return date.getDay()\n },\n\n // Day of ISO week: 1, 2, ..., 7\n 'E': function (date) {\n return date.getDay() || 7\n },\n\n // ISO week: 1, 2, ..., 53\n 'W': function (date) {\n return getISOWeek(date)\n },\n\n // ISO week: 01, 02, ..., 53\n 'WW': function (date) {\n return addLeadingZeros(getISOWeek(date), 2)\n },\n\n // Year: 00, 01, ..., 99\n 'YY': function (date) {\n return addLeadingZeros(date.getFullYear(), 4).substr(2)\n },\n\n // Year: 1900, 1901, ..., 2099\n 'YYYY': function (date) {\n return addLeadingZeros(date.getFullYear(), 4)\n },\n\n // ISO week-numbering year: 00, 01, ..., 99\n 'GG': function (date) {\n return String(getISOYear(date)).substr(2)\n },\n\n // ISO week-numbering year: 1900, 1901, ..., 2099\n 'GGGG': function (date) {\n return getISOYear(date)\n },\n\n // Hour: 0, 1, ... 23\n 'H': function (date) {\n return date.getHours()\n },\n\n // Hour: 00, 01, ..., 23\n 'HH': function (date) {\n return addLeadingZeros(date.getHours(), 2)\n },\n\n // Hour: 1, 2, ..., 12\n 'h': function (date) {\n var hours = date.getHours()\n if (hours === 0) {\n return 12\n } else if (hours > 12) {\n return hours % 12\n } else {\n return hours\n }\n },\n\n // Hour: 01, 02, ..., 12\n 'hh': function (date) {\n return addLeadingZeros(formatters['h'](date), 2)\n },\n\n // Minute: 0, 1, ..., 59\n 'm': function (date) {\n return date.getMinutes()\n },\n\n // Minute: 00, 01, ..., 59\n 'mm': function (date) {\n return addLeadingZeros(date.getMinutes(), 2)\n },\n\n // Second: 0, 1, ..., 59\n 's': function (date) {\n return date.getSeconds()\n },\n\n // Second: 00, 01, ..., 59\n 'ss': function (date) {\n return addLeadingZeros(date.getSeconds(), 2)\n },\n\n // 1/10 of second: 0, 1, ..., 9\n 'S': function (date) {\n return Math.floor(date.getMilliseconds() / 100)\n },\n\n // 1/100 of second: 00, 01, ..., 99\n 'SS': function (date) {\n return addLeadingZeros(Math.floor(date.getMilliseconds() / 10), 2)\n },\n\n // Millisecond: 000, 001, ..., 999\n 'SSS': function (date) {\n return addLeadingZeros(date.getMilliseconds(), 3)\n },\n\n // Timezone: -01:00, +00:00, ... +12:00\n 'Z': function (date) {\n return formatTimezone(date.getTimezoneOffset(), ':')\n },\n\n // Timezone: -0100, +0000, ... +1200\n 'ZZ': function (date) {\n return formatTimezone(date.getTimezoneOffset())\n },\n\n // Seconds timestamp: 512969520\n 'X': function (date) {\n return Math.floor(date.getTime() / 1000)\n },\n\n // Milliseconds timestamp: 512969520900\n 'x': function (date) {\n return date.getTime()\n }\n}\n\nfunction buildFormatFn (formatStr, localeFormatters, formattingTokensRegExp) {\n var array = formatStr.match(formattingTokensRegExp)\n var length = array.length\n\n var i\n var formatter\n for (i = 0; i < length; i++) {\n formatter = localeFormatters[array[i]] || formatters[array[i]]\n if (formatter) {\n array[i] = formatter\n } else {\n array[i] = removeFormattingTokens(array[i])\n }\n }\n\n return function (date) {\n var output = ''\n for (var i = 0; i < length; i++) {\n if (array[i] instanceof Function) {\n output += array[i](date, formatters)\n } else {\n output += array[i]\n }\n }\n return output\n }\n}\n\nfunction removeFormattingTokens (input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|]$/g, '')\n }\n return input.replace(/\\\\/g, '')\n}\n\nfunction formatTimezone (offset, delimeter) {\n delimeter = delimeter || ''\n var sign = offset > 0 ? '-' : '+'\n var absOffset = Math.abs(offset)\n var hours = Math.floor(absOffset / 60)\n var minutes = absOffset % 60\n return sign + addLeadingZeros(hours, 2) + delimeter + addLeadingZeros(minutes, 2)\n}\n\nfunction addLeadingZeros (number, targetLength) {\n var output = Math.abs(number).toString()\n while (output.length < targetLength) {\n output = '0' + output\n }\n return output\n}\n\nmodule.exports = format\n","'use strict';\n\nexports.__esModule = true;\nvar createHelper = function createHelper(func, helperName) {\n var setDisplayName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var noArgs = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n if (process.env.NODE_ENV !== 'production' && setDisplayName) {\n var _ret = function () {\n /* eslint-disable global-require */\n var wrapDisplayName = require('./wrapDisplayName').default;\n /* eslint-enable global-require */\n\n if (noArgs) {\n return {\n v: function v(BaseComponent) {\n var Component = func(BaseComponent);\n Component.displayName = wrapDisplayName(BaseComponent, helperName);\n return Component;\n }\n };\n }\n\n return {\n v: function v() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return function (BaseComponent) {\n var Component = func.apply(undefined, args)(BaseComponent);\n Component.displayName = wrapDisplayName(BaseComponent, helperName);\n return Component;\n };\n }\n };\n }();\n\n if (typeof _ret === \"object\") return _ret.v;\n }\n\n return func;\n};\n\nexports.default = createHelper;","'use strict';\n\nexports.__esModule = true;\n\nvar _createEagerElementUtil = require('./utils/createEagerElementUtil');\n\nvar _createEagerElementUtil2 = _interopRequireDefault(_createEagerElementUtil);\n\nvar _isReferentiallyTransparentFunctionComponent = require('./isReferentiallyTransparentFunctionComponent');\n\nvar _isReferentiallyTransparentFunctionComponent2 = _interopRequireDefault(_isReferentiallyTransparentFunctionComponent);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar createFactory = function createFactory(type) {\n var isReferentiallyTransparent = (0, _isReferentiallyTransparentFunctionComponent2.default)(type);\n return function (p, c) {\n return (0, _createEagerElementUtil2.default)(false, isReferentiallyTransparent, type, p, c);\n };\n};\n\nexports.default = createFactory;","'use strict';\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _pick = require('./utils/pick');\n\nvar _pick2 = _interopRequireDefault(_pick);\n\nvar _shallowEqual = require('./shallowEqual');\n\nvar _shallowEqual2 = _interopRequireDefault(_shallowEqual);\n\nvar _createHelper = require('./createHelper');\n\nvar _createHelper2 = _interopRequireDefault(_createHelper);\n\nvar _createEagerFactory = require('./createEagerFactory');\n\nvar _createEagerFactory2 = _interopRequireDefault(_createEagerFactory);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar withPropsOnChange = function withPropsOnChange(shouldMapOrKeys, propsMapper) {\n return function (BaseComponent) {\n var factory = (0, _createEagerFactory2.default)(BaseComponent);\n var shouldMap = typeof shouldMapOrKeys === 'function' ? shouldMapOrKeys : function (props, nextProps) {\n return !(0, _shallowEqual2.default)((0, _pick2.default)(props, shouldMapOrKeys), (0, _pick2.default)(nextProps, shouldMapOrKeys));\n };\n\n return function (_Component) {\n _inherits(_class2, _Component);\n\n function _class2() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, _class2);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.computedProps = propsMapper(_this.props), _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _class2.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (shouldMap(this.props, nextProps)) {\n this.computedProps = propsMapper(nextProps);\n }\n };\n\n _class2.prototype.render = function render() {\n return factory(_extends({}, this.props, this.computedProps));\n };\n\n return _class2;\n }(_react.Component);\n };\n};\n\nexports.default = (0, _createHelper2.default)(withPropsOnChange, 'withPropsOnChange');","function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var parse = require('../parse/index.js')\n\n/**\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * @param {Date|String|Number} date - the date that should be before the other one to return true\n * @param {Date|String|Number} dateToCompare - the date to compare with\n * @returns {Boolean} the first date is before the second date\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\nfunction isBefore (dirtyDate, dirtyDateToCompare) {\n var date = parse(dirtyDate)\n var dateToCompare = parse(dirtyDateToCompare)\n return date.getTime() < dateToCompare.getTime()\n}\n\nmodule.exports = isBefore\n","var parse = require('../parse/index.js')\n\n/**\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|String|Number} date - the original date\n * @returns {Date} the start of a day\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * var result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\nfunction startOfDay (dirtyDate) {\n var date = parse(dirtyDate)\n date.setHours(0, 0, 0, 0)\n return date\n}\n\nmodule.exports = startOfDay\n","'use strict';\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _createHelper = require('./createHelper');\n\nvar _createHelper2 = _interopRequireDefault(_createHelper);\n\nvar _createEagerFactory = require('./createEagerFactory');\n\nvar _createEagerFactory2 = _interopRequireDefault(_createEagerFactory);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar withState = function withState(stateName, stateUpdaterName, initialState) {\n return function (BaseComponent) {\n var factory = (0, _createEagerFactory2.default)(BaseComponent);\n return function (_Component) {\n _inherits(_class2, _Component);\n\n function _class2() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, _class2);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = {\n stateValue: typeof initialState === 'function' ? initialState(_this.props) : initialState\n }, _this.updateStateValue = function (updateFn, callback) {\n return _this.setState(function (_ref) {\n var stateValue = _ref.stateValue;\n return {\n stateValue: typeof updateFn === 'function' ? updateFn(stateValue) : updateFn\n };\n }, callback);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _class2.prototype.render = function render() {\n var _extends2;\n\n return factory(_extends({}, this.props, (_extends2 = {}, _extends2[stateName] = this.state.stateValue, _extends2[stateUpdaterName] = this.updateStateValue, _extends2)));\n };\n\n return _class2;\n }(_react.Component);\n };\n};\n\nexports.default = (0, _createHelper2.default)(withState, 'withState');","'use strict';\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createHelper = require('./createHelper');\n\nvar _createHelper2 = _interopRequireDefault(_createHelper);\n\nvar _mapProps = require('./mapProps');\n\nvar _mapProps2 = _interopRequireDefault(_mapProps);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar withProps = function withProps(input) {\n return (0, _mapProps2.default)(function (props) {\n return _extends({}, props, typeof input === 'function' ? input(props) : input);\n });\n};\n\nexports.default = (0, _createHelper2.default)(withProps, 'withProps');","\"use strict\";\n\nexports.__esModule = true;\nexports.default = compose;\nfunction compose() {\n for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(undefined, arguments));\n };\n });\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\nexports.default = _default;\nmodule.exports = exports[\"default\"];","var parse = require('../parse/index.js')\n\n/**\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * @param {Date|String|Number} date - the date that should be after the other one to return true\n * @param {Date|String|Number} dateToCompare - the date to compare with\n * @returns {Boolean} the first date is after the second date\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\nfunction isAfter (dirtyDate, dirtyDateToCompare) {\n var date = parse(dirtyDate)\n var dateToCompare = parse(dirtyDateToCompare)\n return date.getTime() > dateToCompare.getTime()\n}\n\nmodule.exports = isAfter\n","var startOfWeek = require('../start_of_week/index.js')\n\n/**\n * @category ISO Week Helpers\n * @summary Return the start of an ISO week for the given date.\n *\n * @description\n * Return the start of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|String|Number} date - the original date\n * @returns {Date} the start of an ISO week\n *\n * @example\n * // The start of an ISO week for 2 September 2014 11:55:00:\n * var result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nfunction startOfISOWeek (dirtyDate) {\n return startOfWeek(dirtyDate, {weekStartsOn: 1})\n}\n\nmodule.exports = startOfISOWeek\n","/**\n * @category Common Helpers\n * @summary Is the given argument an instance of Date?\n *\n * @description\n * Is the given argument an instance of Date?\n *\n * @param {*} argument - the argument to check\n * @returns {Boolean} the given argument is an instance of Date\n *\n * @example\n * // Is 'mayonnaise' a Date?\n * var result = isDate('mayonnaise')\n * //=> false\n */\nfunction isDate (argument) {\n return argument instanceof Date\n}\n\nmodule.exports = isDate\n","var parse = require('../parse/index.js')\n\n/**\n * @category Weekday Helpers\n * @summary Get the day of the week of the given date.\n *\n * @description\n * Get the day of the week of the given date.\n *\n * @param {Date|String|Number} date - the given date\n * @returns {Number} the day of week\n *\n * @example\n * // Which day of the week is 29 February 2012?\n * var result = getDay(new Date(2012, 1, 29))\n * //=> 3\n */\nfunction getDay (dirtyDate) {\n var date = parse(dirtyDate)\n var day = date.getDay()\n return day\n}\n\nmodule.exports = getDay\n","'use strict';\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _TransitionGroup = require('./TransitionGroup');\n\nvar _TransitionGroup2 = _interopRequireDefault(_TransitionGroup);\n\nvar _CSSTransitionGroupChild = require('./CSSTransitionGroupChild');\n\nvar _CSSTransitionGroupChild2 = _interopRequireDefault(_CSSTransitionGroupChild);\n\nvar _PropTypes = require('./utils/PropTypes');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar propTypes = {\n transitionName: _PropTypes.nameShape.isRequired,\n\n transitionAppear: _propTypes2.default.bool,\n transitionEnter: _propTypes2.default.bool,\n transitionLeave: _propTypes2.default.bool,\n transitionAppearTimeout: (0, _PropTypes.transitionTimeout)('Appear'),\n transitionEnterTimeout: (0, _PropTypes.transitionTimeout)('Enter'),\n transitionLeaveTimeout: (0, _PropTypes.transitionTimeout)('Leave')\n};\n\nvar defaultProps = {\n transitionAppear: false,\n transitionEnter: true,\n transitionLeave: true\n};\n\nvar CSSTransitionGroup = function (_React$Component) {\n _inherits(CSSTransitionGroup, _React$Component);\n\n function CSSTransitionGroup() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, CSSTransitionGroup);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._wrapChild = function (child) {\n return _react2.default.createElement(_CSSTransitionGroupChild2.default, {\n name: _this.props.transitionName,\n appear: _this.props.transitionAppear,\n enter: _this.props.transitionEnter,\n leave: _this.props.transitionLeave,\n appearTimeout: _this.props.transitionAppearTimeout,\n enterTimeout: _this.props.transitionEnterTimeout,\n leaveTimeout: _this.props.transitionLeaveTimeout\n }, child);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n // We need to provide this childFactory so that\n // ReactCSSTransitionGroupChild can receive updates to name, enter, and\n // leave while it is leaving.\n\n\n CSSTransitionGroup.prototype.render = function render() {\n return _react2.default.createElement(_TransitionGroup2.default, _extends({}, this.props, { childFactory: this._wrapChild }));\n };\n\n return CSSTransitionGroup;\n}(_react2.default.Component);\n\nCSSTransitionGroup.displayName = 'CSSTransitionGroup';\n\n\nCSSTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nCSSTransitionGroup.defaultProps = defaultProps;\n\nexports.default = CSSTransitionGroup;\nmodule.exports = exports['default'];","'use strict';\n\nexports.__esModule = true;\nexports.nameShape = undefined;\nexports.transitionTimeout = transitionTimeout;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction transitionTimeout(transitionType) {\n var timeoutPropName = 'transition' + transitionType + 'Timeout';\n var enabledPropName = 'transition' + transitionType;\n\n return function (props) {\n // If the transition is enabled\n if (props[enabledPropName]) {\n // If no timeout duration is provided\n if (props[timeoutPropName] == null) {\n return new Error(timeoutPropName + ' wasn\\'t supplied to CSSTransitionGroup: ' + 'this can cause unreliable animations and won\\'t be supported in ' + 'a future version of React. See ' + 'https://fb.me/react-animation-transition-group-timeout for more ' + 'information.');\n\n // If the duration isn't a number\n } else if (typeof props[timeoutPropName] !== 'number') {\n return new Error(timeoutPropName + ' must be a number (in milliseconds)');\n }\n }\n\n return null;\n };\n}\n\nvar nameShape = exports.nameShape = _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({\n enter: _propTypes2.default.string,\n leave: _propTypes2.default.string,\n active: _propTypes2.default.string\n}), _propTypes2.default.shape({\n enter: _propTypes2.default.string,\n enterActive: _propTypes2.default.string,\n leave: _propTypes2.default.string,\n leaveActive: _propTypes2.default.string,\n appear: _propTypes2.default.string,\n appearActive: _propTypes2.default.string\n})]);","var parse = require('../parse/index.js')\nvar startOfISOWeek = require('../start_of_iso_week/index.js')\n\n/**\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|String|Number} date - the given date\n * @returns {Number} the ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * var result = getISOYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nfunction getISOYear (dirtyDate) {\n var date = parse(dirtyDate)\n var year = date.getFullYear()\n\n var fourthOfJanuaryOfNextYear = new Date(0)\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4)\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0)\n var startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear)\n\n var fourthOfJanuaryOfThisYear = new Date(0)\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4)\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0)\n var startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear)\n\n if (date.getTime() >= startOfNextYear.getTime()) {\n return year + 1\n } else if (date.getTime() >= startOfThisYear.getTime()) {\n return year\n } else {\n return year - 1\n }\n}\n\nmodule.exports = getISOYear\n","'use strict';\n\nexports.__esModule = true;\n\nvar _createHelper = require('./createHelper');\n\nvar _createHelper2 = _interopRequireDefault(_createHelper);\n\nvar _createEagerFactory = require('./createEagerFactory');\n\nvar _createEagerFactory2 = _interopRequireDefault(_createEagerFactory);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar defaultProps = function defaultProps(props) {\n return function (BaseComponent) {\n var factory = (0, _createEagerFactory2.default)(BaseComponent);\n var DefaultProps = function DefaultProps(ownerProps) {\n return factory(ownerProps);\n };\n DefaultProps.defaultProps = props;\n return DefaultProps;\n };\n};\n\nexports.default = (0, _createHelper2.default)(defaultProps, 'defaultProps');","'use strict';\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar createEagerElementUtil = function createEagerElementUtil(hasKey, isReferentiallyTransparent, type, props, children) {\n if (!hasKey && isReferentiallyTransparent) {\n if (children) {\n return type(_extends({}, props, { children: children }));\n }\n return type(props);\n }\n\n var Component = type;\n\n if (children) {\n return _react2.default.createElement(\n Component,\n props,\n children\n );\n }\n\n return _react2.default.createElement(Component, props);\n};\n\nexports.default = createEagerElementUtil;","'use strict';\n\nexports.__esModule = true;\n\nvar _isClassComponent = require('./isClassComponent.js');\n\nvar _isClassComponent2 = _interopRequireDefault(_isClassComponent);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar isReferentiallyTransparentFunctionComponent = function isReferentiallyTransparentFunctionComponent(Component) {\n return Boolean(typeof Component === 'function' && !(0, _isClassComponent2.default)(Component) && !Component.defaultProps && !Component.contextTypes && (process.env.NODE_ENV === 'production' || !Component.propTypes));\n};\n\nexports.default = isReferentiallyTransparentFunctionComponent;","'use strict';\n\nexports.__esModule = true;\nvar isClassComponent = function isClassComponent(Component) {\n return Boolean(Component && Component.prototype && typeof Component.prototype.isReactComponent === 'object');\n};\n\nexports.default = isClassComponent;","\"use strict\";\n\nexports.__esModule = true;\nvar pick = function pick(obj, keys) {\n var result = {};\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (obj.hasOwnProperty(key)) {\n result[key] = obj[key];\n }\n }\n return result;\n};\n\nexports.default = pick;","'use strict';\n\nexports.__esModule = true;\n\nvar _shallowEqual = require('fbjs/lib/shallowEqual');\n\nvar _shallowEqual2 = _interopRequireDefault(_shallowEqual);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _shallowEqual2.default;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n * \n */\n\n/*eslint-disable no-self-compare */\n\n'use strict';\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n // Added the nonzero y check to make Flow happy, but it is redundant\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n}\n\n/**\n * Performs equality by iterating through keys on an object and returning false\n * when any key has values which are not strictly equal between the arguments.\n * Returns true when the values of all keys are strictly equal.\n */\nfunction shallowEqual(objA, objB) {\n if (is(objA, objB)) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n // Test for A's keys different from B.\n for (var i = 0; i < keysA.length; i++) {\n if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n\n return true;\n}\n\nmodule.exports = shallowEqual;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = scrollbarSize;\n\nvar _inDOM = _interopRequireDefault(require(\"./inDOM\"));\n\nvar size;\n\nfunction scrollbarSize(recalc) {\n if (!size && size !== 0 || recalc) {\n if (_inDOM.default) {\n var scrollDiv = document.createElement('div');\n scrollDiv.style.position = 'absolute';\n scrollDiv.style.top = '-9999px';\n scrollDiv.style.width = '50px';\n scrollDiv.style.height = '50px';\n scrollDiv.style.overflow = 'scroll';\n document.body.appendChild(scrollDiv);\n size = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n }\n }\n\n return size;\n}\n\nmodule.exports = exports[\"default\"];","var parse = require('../parse/index.js')\n\n/**\n * @category Month Helpers\n * @summary Get the number of days in a month of the given date.\n *\n * @description\n * Get the number of days in a month of the given date.\n *\n * @param {Date|String|Number} date - the given date\n * @returns {Number} the number of days in a month\n *\n * @example\n * // How many days are in February 2000?\n * var result = getDaysInMonth(new Date(2000, 1))\n * //=> 29\n */\nfunction getDaysInMonth (dirtyDate) {\n var date = parse(dirtyDate)\n var year = date.getFullYear()\n var monthIndex = date.getMonth()\n var lastDayOfMonth = new Date(0)\n lastDayOfMonth.setFullYear(year, monthIndex + 1, 0)\n lastDayOfMonth.setHours(0, 0, 0, 0)\n return lastDayOfMonth.getDate()\n}\n\nmodule.exports = getDaysInMonth\n","var MILLISECONDS_IN_MINUTE = 60000\n\n/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nmodule.exports = function getTimezoneOffsetInMilliseconds (dirtyDate) {\n var date = new Date(dirtyDate.getTime())\n var baseTimezoneOffset = date.getTimezoneOffset()\n date.setSeconds(0, 0)\n var millisecondsPartOfTimezoneOffset = date.getTime() % MILLISECONDS_IN_MINUTE\n\n return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset\n}\n","var startOfDay = require('../start_of_day/index.js')\n\n/**\n * @category Day Helpers\n * @summary Are the given dates in the same day?\n *\n * @description\n * Are the given dates in the same day?\n *\n * @param {Date|String|Number} dateLeft - the first date to check\n * @param {Date|String|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same day\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * var result = isSameDay(\n * new Date(2014, 8, 4, 6, 0),\n * new Date(2014, 8, 4, 18, 0)\n * )\n * //=> true\n */\nfunction isSameDay (dirtyDateLeft, dirtyDateRight) {\n var dateLeftStartOfDay = startOfDay(dirtyDateLeft)\n var dateRightStartOfDay = startOfDay(dirtyDateRight)\n\n return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime()\n}\n\nmodule.exports = isSameDay\n","var parse = require('../parse/index.js')\n\n/**\n * @category Day Helpers\n * @summary Return the end of a day for the given date.\n *\n * @description\n * Return the end of a day for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|String|Number} date - the original date\n * @returns {Date} the end of a day\n *\n * @example\n * // The end of a day for 2 September 2014 11:55:00:\n * var result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 23:59:59.999\n */\nfunction endOfDay (dirtyDate) {\n var date = parse(dirtyDate)\n date.setHours(23, 59, 59, 999)\n return date\n}\n\nmodule.exports = endOfDay\n","module.exports = {\n hideYearsOnSelect: true,\n layout: 'portrait',\n overscanMonthCount: 2,\n shouldHeaderAnimate: true,\n showHeader: true,\n showMonthsForYears: true,\n showOverlay: true,\n showTodayHelper: true,\n showWeekdays: true,\n todayHelperRowOffset: 4\n};","module.exports = {\n blank: 'Select a date...',\n headerFormat: 'ddd, MMM Do',\n todayLabel: {\n long: 'Today'\n },\n weekdays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n weekStartsOn: 0\n};","module.exports = {\n accentColor: '#448AFF',\n floatingNav: {\n background: 'rgba(56, 87, 138, 0.94)',\n chevron: '#FFA726',\n color: '#FFF'\n },\n headerColor: '#448AFF',\n selectionColor: '#559FFF',\n textColor: {\n active: '#FFF',\n default: '#333'\n },\n todayColor: '#FFA726',\n weekdayColor: '#559FFF'\n};","'use strict';\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _chainFunction = require('chain-function');\n\nvar _chainFunction2 = _interopRequireDefault(_chainFunction);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _warning = require('warning');\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nvar _ChildMapping = require('./utils/ChildMapping');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar propTypes = {\n component: _propTypes2.default.any,\n childFactory: _propTypes2.default.func,\n children: _propTypes2.default.node\n};\n\nvar defaultProps = {\n component: 'span',\n childFactory: function childFactory(child) {\n return child;\n }\n};\n\nvar TransitionGroup = function (_React$Component) {\n _inherits(TransitionGroup, _React$Component);\n\n function TransitionGroup(props, context) {\n _classCallCheck(this, TransitionGroup);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));\n\n _this.performAppear = function (key, component) {\n _this.currentlyTransitioningKeys[key] = true;\n\n if (component.componentWillAppear) {\n component.componentWillAppear(_this._handleDoneAppearing.bind(_this, key, component));\n } else {\n _this._handleDoneAppearing(key, component);\n }\n };\n\n _this._handleDoneAppearing = function (key, component) {\n if (component.componentDidAppear) {\n component.componentDidAppear();\n }\n\n delete _this.currentlyTransitioningKeys[key];\n\n var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children);\n\n if (!currentChildMapping || !currentChildMapping.hasOwnProperty(key)) {\n // This was removed before it had fully appeared. Remove it.\n _this.performLeave(key, component);\n }\n };\n\n _this.performEnter = function (key, component) {\n _this.currentlyTransitioningKeys[key] = true;\n\n if (component.componentWillEnter) {\n component.componentWillEnter(_this._handleDoneEntering.bind(_this, key, component));\n } else {\n _this._handleDoneEntering(key, component);\n }\n };\n\n _this._handleDoneEntering = function (key, component) {\n if (component.componentDidEnter) {\n component.componentDidEnter();\n }\n\n delete _this.currentlyTransitioningKeys[key];\n\n var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children);\n\n if (!currentChildMapping || !currentChildMapping.hasOwnProperty(key)) {\n // This was removed before it had fully entered. Remove it.\n _this.performLeave(key, component);\n }\n };\n\n _this.performLeave = function (key, component) {\n _this.currentlyTransitioningKeys[key] = true;\n\n if (component.componentWillLeave) {\n component.componentWillLeave(_this._handleDoneLeaving.bind(_this, key, component));\n } else {\n // Note that this is somewhat dangerous b/c it calls setState()\n // again, effectively mutating the component before all the work\n // is done.\n _this._handleDoneLeaving(key, component);\n }\n };\n\n _this._handleDoneLeaving = function (key, component) {\n if (component.componentDidLeave) {\n component.componentDidLeave();\n }\n\n delete _this.currentlyTransitioningKeys[key];\n\n var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children);\n\n if (currentChildMapping && currentChildMapping.hasOwnProperty(key)) {\n // This entered again before it fully left. Add it again.\n _this.keysToEnter.push(key);\n } else {\n _this.setState(function (state) {\n var newChildren = _extends({}, state.children);\n delete newChildren[key];\n return { children: newChildren };\n });\n }\n };\n\n _this.childRefs = Object.create(null);\n\n _this.state = {\n children: (0, _ChildMapping.getChildMapping)(props.children)\n };\n return _this;\n }\n\n TransitionGroup.prototype.componentWillMount = function componentWillMount() {\n this.currentlyTransitioningKeys = {};\n this.keysToEnter = [];\n this.keysToLeave = [];\n };\n\n TransitionGroup.prototype.componentDidMount = function componentDidMount() {\n var initialChildMapping = this.state.children;\n for (var key in initialChildMapping) {\n if (initialChildMapping[key]) {\n this.performAppear(key, this.childRefs[key]);\n }\n }\n };\n\n TransitionGroup.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var nextChildMapping = (0, _ChildMapping.getChildMapping)(nextProps.children);\n var prevChildMapping = this.state.children;\n\n this.setState({\n children: (0, _ChildMapping.mergeChildMappings)(prevChildMapping, nextChildMapping)\n });\n\n for (var key in nextChildMapping) {\n var hasPrev = prevChildMapping && prevChildMapping.hasOwnProperty(key);\n if (nextChildMapping[key] && !hasPrev && !this.currentlyTransitioningKeys[key]) {\n this.keysToEnter.push(key);\n }\n }\n\n for (var _key in prevChildMapping) {\n var hasNext = nextChildMapping && nextChildMapping.hasOwnProperty(_key);\n if (prevChildMapping[_key] && !hasNext && !this.currentlyTransitioningKeys[_key]) {\n this.keysToLeave.push(_key);\n }\n }\n\n // If we want to someday check for reordering, we could do it here.\n };\n\n TransitionGroup.prototype.componentDidUpdate = function componentDidUpdate() {\n var _this2 = this;\n\n var keysToEnter = this.keysToEnter;\n this.keysToEnter = [];\n keysToEnter.forEach(function (key) {\n return _this2.performEnter(key, _this2.childRefs[key]);\n });\n\n var keysToLeave = this.keysToLeave;\n this.keysToLeave = [];\n keysToLeave.forEach(function (key) {\n return _this2.performLeave(key, _this2.childRefs[key]);\n });\n };\n\n TransitionGroup.prototype.render = function render() {\n var _this3 = this;\n\n // TODO: we could get rid of the need for the wrapper node\n // by cloning a single child\n var childrenToRender = [];\n\n var _loop = function _loop(key) {\n var child = _this3.state.children[key];\n if (child) {\n var isCallbackRef = typeof child.ref !== 'string';\n var factoryChild = _this3.props.childFactory(child);\n var ref = function ref(r) {\n _this3.childRefs[key] = r;\n };\n\n process.env.NODE_ENV !== 'production' ? (0, _warning2.default)(isCallbackRef, 'string refs are not supported on children of TransitionGroup and will be ignored. ' + 'Please use a callback ref instead: https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute') : void 0;\n\n // Always chaining the refs leads to problems when the childFactory\n // wraps the child. The child ref callback gets called twice with the\n // wrapper and the child. So we only need to chain the ref if the\n // factoryChild is not different from child.\n if (factoryChild === child && isCallbackRef) {\n ref = (0, _chainFunction2.default)(child.ref, ref);\n }\n\n // You may need to apply reactive updates to a child as it is leaving.\n // The normal React way to do it won't work since the child will have\n // already been removed. In case you need this behavior you can provide\n // a childFactory function to wrap every child, even the ones that are\n // leaving.\n childrenToRender.push(_react2.default.cloneElement(factoryChild, {\n key: key,\n ref: ref\n }));\n }\n };\n\n for (var key in this.state.children) {\n _loop(key);\n }\n\n // Do not forward TransitionGroup props to primitive DOM nodes\n var props = _extends({}, this.props);\n delete props.transitionLeave;\n delete props.transitionName;\n delete props.transitionAppear;\n delete props.transitionEnter;\n delete props.childFactory;\n delete props.transitionLeaveTimeout;\n delete props.transitionEnterTimeout;\n delete props.transitionAppearTimeout;\n delete props.component;\n\n return _react2.default.createElement(this.props.component, props, childrenToRender);\n };\n\n return TransitionGroup;\n}(_react2.default.Component);\n\nTransitionGroup.displayName = 'TransitionGroup';\n\n\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nTransitionGroup.defaultProps = defaultProps;\n\nexports.default = TransitionGroup;\nmodule.exports = exports['default'];","\nmodule.exports = function chain(){\n var len = arguments.length\n var args = [];\n\n for (var i = 0; i < len; i++)\n args[i] = arguments[i]\n\n args = args.filter(function(fn){ return fn != null })\n\n if (args.length === 0) return undefined\n if (args.length === 1) return args[0]\n\n return args.reduce(function(current, next){\n return function chainedFunction() {\n current.apply(this, arguments);\n next.apply(this, arguments);\n };\n })\n}\n","/**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n\n if (format.length < 10 || (/^[s\\W]*$/).test(format)) {\n throw new Error(\n 'The warning format should be able to uniquely identify this ' +\n 'warning. Please, use a more descriptive format than: ' + format\n );\n }\n\n if (!condition) {\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch(x) {}\n }\n };\n}\n\nmodule.exports = warning;\n","'use strict';\n\nexports.__esModule = true;\nexports.getChildMapping = getChildMapping;\nexports.mergeChildMappings = mergeChildMappings;\n\nvar _react = require('react');\n\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\nfunction getChildMapping(children) {\n if (!children) {\n return children;\n }\n var result = {};\n _react.Children.map(children, function (child) {\n return child;\n }).forEach(function (child) {\n result[child.key] = child;\n });\n return result;\n}\n\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\nfunction mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n\n function getValueForKey(key) {\n if (next.hasOwnProperty(key)) {\n return next[key];\n }\n\n return prev[key];\n }\n\n // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n var nextKeysPending = {};\n\n var pendingKeys = [];\n for (var prevKey in prev) {\n if (next.hasOwnProperty(prevKey)) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n\n var i = void 0;\n var childMapping = {};\n for (var nextKey in next) {\n if (nextKeysPending.hasOwnProperty(nextKey)) {\n for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n var pendingNextKey = nextKeysPending[nextKey][i];\n childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n }\n }\n childMapping[nextKey] = getValueForKey(nextKey);\n }\n\n // Finally, add the keys which didn't appear before any key in `next`\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n\n return childMapping;\n}","'use strict';\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _addClass = require('dom-helpers/class/addClass');\n\nvar _addClass2 = _interopRequireDefault(_addClass);\n\nvar _removeClass = require('dom-helpers/class/removeClass');\n\nvar _removeClass2 = _interopRequireDefault(_removeClass);\n\nvar _requestAnimationFrame = require('dom-helpers/util/requestAnimationFrame');\n\nvar _requestAnimationFrame2 = _interopRequireDefault(_requestAnimationFrame);\n\nvar _properties = require('dom-helpers/transition/properties');\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactDom = require('react-dom');\n\nvar _PropTypes = require('./utils/PropTypes');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar events = [];\nif (_properties.transitionEnd) events.push(_properties.transitionEnd);\nif (_properties.animationEnd) events.push(_properties.animationEnd);\n\nfunction addEndListener(node, listener) {\n if (events.length) {\n events.forEach(function (e) {\n return node.addEventListener(e, listener, false);\n });\n } else {\n setTimeout(listener, 0);\n }\n\n return function () {\n if (!events.length) return;\n events.forEach(function (e) {\n return node.removeEventListener(e, listener, false);\n });\n };\n}\n\nvar propTypes = {\n children: _propTypes2.default.node,\n name: _PropTypes.nameShape.isRequired,\n\n // Once we require timeouts to be specified, we can remove the\n // boolean flags (appear etc.) and just accept a number\n // or a bool for the timeout flags (appearTimeout etc.)\n appear: _propTypes2.default.bool,\n enter: _propTypes2.default.bool,\n leave: _propTypes2.default.bool,\n appearTimeout: _propTypes2.default.number,\n enterTimeout: _propTypes2.default.number,\n leaveTimeout: _propTypes2.default.number\n};\n\nvar CSSTransitionGroupChild = function (_React$Component) {\n _inherits(CSSTransitionGroupChild, _React$Component);\n\n function CSSTransitionGroupChild() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, CSSTransitionGroupChild);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.componentWillAppear = function (done) {\n if (_this.props.appear) {\n _this.transition('appear', done, _this.props.appearTimeout);\n } else {\n done();\n }\n }, _this.componentWillEnter = function (done) {\n if (_this.props.enter) {\n _this.transition('enter', done, _this.props.enterTimeout);\n } else {\n done();\n }\n }, _this.componentWillLeave = function (done) {\n if (_this.props.leave) {\n _this.transition('leave', done, _this.props.leaveTimeout);\n } else {\n done();\n }\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n CSSTransitionGroupChild.prototype.componentWillMount = function componentWillMount() {\n this.classNameAndNodeQueue = [];\n this.transitionTimeouts = [];\n };\n\n CSSTransitionGroupChild.prototype.componentWillUnmount = function componentWillUnmount() {\n this.unmounted = true;\n\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n this.transitionTimeouts.forEach(function (timeout) {\n clearTimeout(timeout);\n });\n\n this.classNameAndNodeQueue.length = 0;\n };\n\n CSSTransitionGroupChild.prototype.transition = function transition(animationType, finishCallback, timeout) {\n var node = (0, _reactDom.findDOMNode)(this);\n\n if (!node) {\n if (finishCallback) {\n finishCallback();\n }\n return;\n }\n\n var className = this.props.name[animationType] || this.props.name + '-' + animationType;\n var activeClassName = this.props.name[animationType + 'Active'] || className + '-active';\n var timer = null;\n var removeListeners = void 0;\n\n (0, _addClass2.default)(node, className);\n\n // Need to do this to actually trigger a transition.\n this.queueClassAndNode(activeClassName, node);\n\n // Clean-up the animation after the specified delay\n var finish = function finish(e) {\n if (e && e.target !== node) {\n return;\n }\n\n clearTimeout(timer);\n if (removeListeners) removeListeners();\n\n (0, _removeClass2.default)(node, className);\n (0, _removeClass2.default)(node, activeClassName);\n\n if (removeListeners) removeListeners();\n\n // Usually this optional callback is used for informing an owner of\n // a leave animation and telling it to remove the child.\n if (finishCallback) {\n finishCallback();\n }\n };\n\n if (timeout) {\n timer = setTimeout(finish, timeout);\n this.transitionTimeouts.push(timer);\n } else if (_properties.transitionEnd) {\n removeListeners = addEndListener(node, finish);\n }\n };\n\n CSSTransitionGroupChild.prototype.queueClassAndNode = function queueClassAndNode(className, node) {\n var _this2 = this;\n\n this.classNameAndNodeQueue.push({\n className: className,\n node: node\n });\n\n if (!this.rafHandle) {\n this.rafHandle = (0, _requestAnimationFrame2.default)(function () {\n return _this2.flushClassNameAndNodeQueue();\n });\n }\n };\n\n CSSTransitionGroupChild.prototype.flushClassNameAndNodeQueue = function flushClassNameAndNodeQueue() {\n if (!this.unmounted) {\n this.classNameAndNodeQueue.forEach(function (obj) {\n // This is for to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n /* eslint-disable no-unused-expressions */\n obj.node.scrollTop;\n /* eslint-enable no-unused-expressions */\n (0, _addClass2.default)(obj.node, obj.className);\n });\n }\n this.classNameAndNodeQueue.length = 0;\n this.rafHandle = null;\n };\n\n CSSTransitionGroupChild.prototype.render = function render() {\n var props = _extends({}, this.props);\n delete props.name;\n delete props.appear;\n delete props.enter;\n delete props.leave;\n delete props.appearTimeout;\n delete props.enterTimeout;\n delete props.leaveTimeout;\n delete props.children;\n return _react2.default.cloneElement(_react2.default.Children.only(this.props.children), props);\n };\n\n return CSSTransitionGroupChild;\n}(_react2.default.Component);\n\nCSSTransitionGroupChild.displayName = 'CSSTransitionGroupChild';\n\n\nCSSTransitionGroupChild.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\n\nexports.default = CSSTransitionGroupChild;\nmodule.exports = exports['default'];","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = addClass;\n\nvar _hasClass = _interopRequireDefault(require(\"./hasClass\"));\n\nfunction addClass(element, className) {\n if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);\n}\n\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nexports.__esModule = true;\nexports.default = hasClass;\n\nfunction hasClass(element, className) {\n if (element.classList) return !!className && element.classList.contains(className);else return (\" \" + (element.className.baseVal || element.className) + \" \").indexOf(\" \" + className + \" \") !== -1;\n}\n\nmodule.exports = exports[\"default\"];","'use strict';\n\nfunction replaceClassName(origClass, classToRemove) {\n return origClass.replace(new RegExp('(^|\\\\s)' + classToRemove + '(?:\\\\s|$)', 'g'), '$1').replace(/\\s+/g, ' ').replace(/^\\s*|\\s*$/g, '');\n}\n\nmodule.exports = function removeClass(element, className) {\n if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _inDOM = _interopRequireDefault(require(\"./inDOM\"));\n\nvar vendors = ['', 'webkit', 'moz', 'o', 'ms'];\nvar cancel = 'clearTimeout';\nvar raf = fallback;\nvar compatRaf;\n\nvar getKey = function getKey(vendor, k) {\n return vendor + (!vendor ? k : k[0].toUpperCase() + k.substr(1)) + 'AnimationFrame';\n};\n\nif (_inDOM.default) {\n vendors.some(function (vendor) {\n var rafKey = getKey(vendor, 'request');\n\n if (rafKey in window) {\n cancel = getKey(vendor, 'cancel');\n return raf = function raf(cb) {\n return window[rafKey](cb);\n };\n }\n });\n}\n/* https://github.com/component/raf */\n\n\nvar prev = new Date().getTime();\n\nfunction fallback(fn) {\n var curr = new Date().getTime(),\n ms = Math.max(0, 16 - (curr - prev)),\n req = setTimeout(fn, ms);\n prev = curr;\n return req;\n}\n\ncompatRaf = function compatRaf(cb) {\n return raf(cb);\n};\n\ncompatRaf.cancel = function (id) {\n window[cancel] && typeof window[cancel] === 'function' && window[cancel](id);\n};\n\nvar _default = compatRaf;\nexports.default = _default;\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = void 0;\n\nvar _inDOM = _interopRequireDefault(require(\"../util/inDOM\"));\n\nvar transform = 'transform';\nexports.transform = transform;\nvar prefix, transitionEnd, animationEnd;\nexports.animationEnd = animationEnd;\nexports.transitionEnd = transitionEnd;\nvar transitionProperty, transitionDuration, transitionTiming, transitionDelay;\nexports.transitionDelay = transitionDelay;\nexports.transitionTiming = transitionTiming;\nexports.transitionDuration = transitionDuration;\nexports.transitionProperty = transitionProperty;\nvar animationName, animationDuration, animationTiming, animationDelay;\nexports.animationDelay = animationDelay;\nexports.animationTiming = animationTiming;\nexports.animationDuration = animationDuration;\nexports.animationName = animationName;\n\nif (_inDOM.default) {\n var _getTransitionPropert = getTransitionProperties();\n\n prefix = _getTransitionPropert.prefix;\n exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd;\n exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd;\n exports.transform = transform = prefix + \"-\" + transform;\n exports.transitionProperty = transitionProperty = prefix + \"-transition-property\";\n exports.transitionDuration = transitionDuration = prefix + \"-transition-duration\";\n exports.transitionDelay = transitionDelay = prefix + \"-transition-delay\";\n exports.transitionTiming = transitionTiming = prefix + \"-transition-timing-function\";\n exports.animationName = animationName = prefix + \"-animation-name\";\n exports.animationDuration = animationDuration = prefix + \"-animation-duration\";\n exports.animationTiming = animationTiming = prefix + \"-animation-delay\";\n exports.animationDelay = animationDelay = prefix + \"-animation-timing-function\";\n}\n\nvar _default = {\n transform: transform,\n end: transitionEnd,\n property: transitionProperty,\n timing: transitionTiming,\n delay: transitionDelay,\n duration: transitionDuration\n};\nexports.default = _default;\n\nfunction getTransitionProperties() {\n var style = document.createElement('div').style;\n var vendorMap = {\n O: function O(e) {\n return \"o\" + e.toLowerCase();\n },\n Moz: function Moz(e) {\n return e.toLowerCase();\n },\n Webkit: function Webkit(e) {\n return \"webkit\" + e;\n },\n ms: function ms(e) {\n return \"MS\" + e;\n }\n };\n var vendors = Object.keys(vendorMap);\n var transitionEnd, animationEnd;\n var prefix = '';\n\n for (var i = 0; i < vendors.length; i++) {\n var vendor = vendors[i];\n\n if (vendor + \"TransitionProperty\" in style) {\n prefix = \"-\" + vendor.toLowerCase();\n transitionEnd = vendorMap[vendor]('TransitionEnd');\n animationEnd = vendorMap[vendor]('AnimationEnd');\n break;\n }\n }\n\n if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend';\n if (!animationEnd && 'animationName' in style) animationEnd = 'animationend';\n style = null;\n return {\n animationEnd: animationEnd,\n transitionEnd: transitionEnd,\n prefix: prefix\n };\n}","var parse = require('../parse/index.js')\nvar startOfYear = require('../start_of_year/index.js')\nvar differenceInCalendarDays = require('../difference_in_calendar_days/index.js')\n\n/**\n * @category Day Helpers\n * @summary Get the day of the year of the given date.\n *\n * @description\n * Get the day of the year of the given date.\n *\n * @param {Date|String|Number} date - the given date\n * @returns {Number} the day of year\n *\n * @example\n * // Which day of the year is 2 July 2014?\n * var result = getDayOfYear(new Date(2014, 6, 2))\n * //=> 183\n */\nfunction getDayOfYear (dirtyDate) {\n var date = parse(dirtyDate)\n var diff = differenceInCalendarDays(date, startOfYear(date))\n var dayOfYear = diff + 1\n return dayOfYear\n}\n\nmodule.exports = getDayOfYear\n","var parse = require('../parse/index.js')\n\n/**\n * @category Year Helpers\n * @summary Return the start of a year for the given date.\n *\n * @description\n * Return the start of a year for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|String|Number} date - the original date\n * @returns {Date} the start of a year\n *\n * @example\n * // The start of a year for 2 September 2014 11:55:00:\n * var result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Jan 01 2014 00:00:00\n */\nfunction startOfYear (dirtyDate) {\n var cleanDate = parse(dirtyDate)\n var date = new Date(0)\n date.setFullYear(cleanDate.getFullYear(), 0, 1)\n date.setHours(0, 0, 0, 0)\n return date\n}\n\nmodule.exports = startOfYear\n","var startOfDay = require('../start_of_day/index.js')\n\nvar MILLISECONDS_IN_MINUTE = 60000\nvar MILLISECONDS_IN_DAY = 86400000\n\n/**\n * @category Day Helpers\n * @summary Get the number of calendar days between the given dates.\n *\n * @description\n * Get the number of calendar days between the given dates.\n *\n * @param {Date|String|Number} dateLeft - the later date\n * @param {Date|String|Number} dateRight - the earlier date\n * @returns {Number} the number of calendar days\n *\n * @example\n * // How many calendar days are between\n * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?\n * var result = differenceInCalendarDays(\n * new Date(2012, 6, 2, 0, 0),\n * new Date(2011, 6, 2, 23, 0)\n * )\n * //=> 366\n */\nfunction differenceInCalendarDays (dirtyDateLeft, dirtyDateRight) {\n var startOfDayLeft = startOfDay(dirtyDateLeft)\n var startOfDayRight = startOfDay(dirtyDateRight)\n\n var timestampLeft = startOfDayLeft.getTime() -\n startOfDayLeft.getTimezoneOffset() * MILLISECONDS_IN_MINUTE\n var timestampRight = startOfDayRight.getTime() -\n startOfDayRight.getTimezoneOffset() * MILLISECONDS_IN_MINUTE\n\n // Round the number of days to the nearest integer\n // because the number of milliseconds in a day is not constant\n // (e.g. it's different in the day of the daylight saving time clock shift)\n return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY)\n}\n\nmodule.exports = differenceInCalendarDays\n","var parse = require('../parse/index.js')\nvar startOfISOWeek = require('../start_of_iso_week/index.js')\nvar startOfISOYear = require('../start_of_iso_year/index.js')\n\nvar MILLISECONDS_IN_WEEK = 604800000\n\n/**\n * @category ISO Week Helpers\n * @summary Get the ISO week of the given date.\n *\n * @description\n * Get the ISO week of the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|String|Number} date - the given date\n * @returns {Number} the ISO week\n *\n * @example\n * // Which week of the ISO-week numbering year is 2 January 2005?\n * var result = getISOWeek(new Date(2005, 0, 2))\n * //=> 53\n */\nfunction getISOWeek (dirtyDate) {\n var date = parse(dirtyDate)\n var diff = startOfISOWeek(date).getTime() - startOfISOYear(date).getTime()\n\n // Round the number of days to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n return Math.round(diff / MILLISECONDS_IN_WEEK) + 1\n}\n\nmodule.exports = getISOWeek\n","var parse = require('../parse/index.js')\n\n/**\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|String|Number} date - the original date\n * @param {Object} [options] - the object with options\n * @param {Number} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Date} the start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), {weekStartsOn: 1})\n * //=> Mon Sep 01 2014 00:00:00\n */\nfunction startOfWeek (dirtyDate, dirtyOptions) {\n var weekStartsOn = dirtyOptions ? (Number(dirtyOptions.weekStartsOn) || 0) : 0\n\n var date = parse(dirtyDate)\n var day = date.getDay()\n var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn\n\n date.setDate(date.getDate() - diff)\n date.setHours(0, 0, 0, 0)\n return date\n}\n\nmodule.exports = startOfWeek\n","var getISOYear = require('../get_iso_year/index.js')\nvar startOfISOWeek = require('../start_of_iso_week/index.js')\n\n/**\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the start of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the start of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|String|Number} date - the original date\n * @returns {Date} the start of an ISO year\n *\n * @example\n * // The start of an ISO week-numbering year for 2 July 2005:\n * var result = startOfISOYear(new Date(2005, 6, 2))\n * //=> Mon Jan 03 2005 00:00:00\n */\nfunction startOfISOYear (dirtyDate) {\n var year = getISOYear(dirtyDate)\n var fourthOfJanuary = new Date(0)\n fourthOfJanuary.setFullYear(year, 0, 4)\n fourthOfJanuary.setHours(0, 0, 0, 0)\n var date = startOfISOWeek(fourthOfJanuary)\n return date\n}\n\nmodule.exports = startOfISOYear\n","var isDate = require('../is_date/index.js')\n\n/**\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param {Date} date - the date to check\n * @returns {Boolean} the date is valid\n * @throws {TypeError} argument must be an instance of Date\n *\n * @example\n * // For the valid date:\n * var result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the invalid date:\n * var result = isValid(new Date(''))\n * //=> false\n */\nfunction isValid (dirtyDate) {\n if (isDate(dirtyDate)) {\n return !isNaN(dirtyDate)\n } else {\n throw new TypeError(toString.call(dirtyDate) + ' is not an instance of Date')\n }\n}\n\nmodule.exports = isValid\n","var buildDistanceInWordsLocale = require('./build_distance_in_words_locale/index.js')\nvar buildFormatLocale = require('./build_format_locale/index.js')\n\n/**\n * @category Locales\n * @summary English locale.\n */\nmodule.exports = {\n distanceInWords: buildDistanceInWordsLocale(),\n format: buildFormatLocale()\n}\n","function buildDistanceInWordsLocale () {\n var distanceInWordsLocale = {\n lessThanXSeconds: {\n one: 'less than a second',\n other: 'less than {{count}} seconds'\n },\n\n xSeconds: {\n one: '1 second',\n other: '{{count}} seconds'\n },\n\n halfAMinute: 'half a minute',\n\n lessThanXMinutes: {\n one: 'less than a minute',\n other: 'less than {{count}} minutes'\n },\n\n xMinutes: {\n one: '1 minute',\n other: '{{count}} minutes'\n },\n\n aboutXHours: {\n one: 'about 1 hour',\n other: 'about {{count}} hours'\n },\n\n xHours: {\n one: '1 hour',\n other: '{{count}} hours'\n },\n\n xDays: {\n one: '1 day',\n other: '{{count}} days'\n },\n\n aboutXMonths: {\n one: 'about 1 month',\n other: 'about {{count}} months'\n },\n\n xMonths: {\n one: '1 month',\n other: '{{count}} months'\n },\n\n aboutXYears: {\n one: 'about 1 year',\n other: 'about {{count}} years'\n },\n\n xYears: {\n one: '1 year',\n other: '{{count}} years'\n },\n\n overXYears: {\n one: 'over 1 year',\n other: 'over {{count}} years'\n },\n\n almostXYears: {\n one: 'almost 1 year',\n other: 'almost {{count}} years'\n }\n }\n\n function localize (token, count, options) {\n options = options || {}\n\n var result\n if (typeof distanceInWordsLocale[token] === 'string') {\n result = distanceInWordsLocale[token]\n } else if (count === 1) {\n result = distanceInWordsLocale[token].one\n } else {\n result = distanceInWordsLocale[token].other.replace('{{count}}', count)\n }\n\n if (options.addSuffix) {\n if (options.comparison > 0) {\n return 'in ' + result\n } else {\n return result + ' ago'\n }\n }\n\n return result\n }\n\n return {\n localize: localize\n }\n}\n\nmodule.exports = buildDistanceInWordsLocale\n","var buildFormattingTokensRegExp = require('../../_lib/build_formatting_tokens_reg_exp/index.js')\n\nfunction buildFormatLocale () {\n // Note: in English, the names of days of the week and months are capitalized.\n // If you are making a new locale based on this one, check if the same is true for the language you're working on.\n // Generally, formatted dates should look like they are in the middle of a sentence,\n // e.g. in Spanish language the weekdays and months should be in the lowercase.\n var months3char = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']\n var monthsFull = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']\n var weekdays2char = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']\n var weekdays3char = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n var weekdaysFull = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']\n var meridiemUppercase = ['AM', 'PM']\n var meridiemLowercase = ['am', 'pm']\n var meridiemFull = ['a.m.', 'p.m.']\n\n var formatters = {\n // Month: Jan, Feb, ..., Dec\n 'MMM': function (date) {\n return months3char[date.getMonth()]\n },\n\n // Month: January, February, ..., December\n 'MMMM': function (date) {\n return monthsFull[date.getMonth()]\n },\n\n // Day of week: Su, Mo, ..., Sa\n 'dd': function (date) {\n return weekdays2char[date.getDay()]\n },\n\n // Day of week: Sun, Mon, ..., Sat\n 'ddd': function (date) {\n return weekdays3char[date.getDay()]\n },\n\n // Day of week: Sunday, Monday, ..., Saturday\n 'dddd': function (date) {\n return weekdaysFull[date.getDay()]\n },\n\n // AM, PM\n 'A': function (date) {\n return (date.getHours() / 12) >= 1 ? meridiemUppercase[1] : meridiemUppercase[0]\n },\n\n // am, pm\n 'a': function (date) {\n return (date.getHours() / 12) >= 1 ? meridiemLowercase[1] : meridiemLowercase[0]\n },\n\n // a.m., p.m.\n 'aa': function (date) {\n return (date.getHours() / 12) >= 1 ? meridiemFull[1] : meridiemFull[0]\n }\n }\n\n // Generate ordinal version of formatters: M -> Mo, D -> Do, etc.\n var ordinalFormatters = ['M', 'D', 'DDD', 'd', 'Q', 'W']\n ordinalFormatters.forEach(function (formatterToken) {\n formatters[formatterToken + 'o'] = function (date, formatters) {\n return ordinal(formatters[formatterToken](date))\n }\n })\n\n return {\n formatters: formatters,\n formattingTokensRegExp: buildFormattingTokensRegExp(formatters)\n }\n}\n\nfunction ordinal (number) {\n var rem100 = number % 100\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + 'st'\n case 2:\n return number + 'nd'\n case 3:\n return number + 'rd'\n }\n }\n return number + 'th'\n}\n\nmodule.exports = buildFormatLocale\n","var commonFormatterKeys = [\n 'M', 'MM', 'Q', 'D', 'DD', 'DDD', 'DDDD', 'd',\n 'E', 'W', 'WW', 'YY', 'YYYY', 'GG', 'GGGG',\n 'H', 'HH', 'h', 'hh', 'm', 'mm',\n 's', 'ss', 'S', 'SS', 'SSS',\n 'Z', 'ZZ', 'X', 'x'\n]\n\nfunction buildFormattingTokensRegExp (formatters) {\n var formatterKeys = []\n for (var key in formatters) {\n if (formatters.hasOwnProperty(key)) {\n formatterKeys.push(key)\n }\n }\n\n var formattingTokens = commonFormatterKeys\n .concat(formatterKeys)\n .sort()\n .reverse()\n var formattingTokensRegExp = new RegExp(\n '(\\\\[[^\\\\[]*\\\\])|(\\\\\\\\)?' + '(' + formattingTokens.join('|') + '|.)', 'g'\n )\n\n return formattingTokensRegExp\n}\n\nmodule.exports = buildFormattingTokensRegExp\n","var parse = require('../parse/index.js')\n\n/**\n * @category Month Helpers\n * @summary Return the start of a month for the given date.\n *\n * @description\n * Return the start of a month for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|String|Number} date - the original date\n * @returns {Date} the start of a month\n *\n * @example\n * // The start of a month for 2 September 2014 11:55:00:\n * var result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nfunction startOfMonth (dirtyDate) {\n var date = parse(dirtyDate)\n date.setDate(1)\n date.setHours(0, 0, 0, 0)\n return date\n}\n\nmodule.exports = startOfMonth\n","var parse = require('../parse/index.js')\n\n/**\n * @category Year Helpers\n * @summary Are the given dates in the same year?\n *\n * @description\n * Are the given dates in the same year?\n *\n * @param {Date|String|Number} dateLeft - the first date to check\n * @param {Date|String|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same year\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same year?\n * var result = isSameYear(\n * new Date(2014, 8, 2),\n * new Date(2014, 8, 25)\n * )\n * //=> true\n */\nfunction isSameYear (dirtyDateLeft, dirtyDateRight) {\n var dateLeft = parse(dirtyDateLeft)\n var dateRight = parse(dirtyDateRight)\n return dateLeft.getFullYear() === dateRight.getFullYear()\n}\n\nmodule.exports = isSameYear\n","var parse = require('../parse/index.js')\n\n/**\n * @category Month Helpers\n * @summary Are the given dates in the same month?\n *\n * @description\n * Are the given dates in the same month?\n *\n * @param {Date|String|Number} dateLeft - the first date to check\n * @param {Date|String|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same month\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same month?\n * var result = isSameMonth(\n * new Date(2014, 8, 2),\n * new Date(2014, 8, 25)\n * )\n * //=> true\n */\nfunction isSameMonth (dirtyDateLeft, dirtyDateRight) {\n var dateLeft = parse(dirtyDateLeft)\n var dateRight = parse(dirtyDateRight)\n return dateLeft.getFullYear() === dateRight.getFullYear() &&\n dateLeft.getMonth() === dateRight.getMonth()\n}\n\nmodule.exports = isSameMonth\n","'use strict';\n\nexports.__esModule = true;\n\nvar _createHelper = require('./createHelper');\n\nvar _createHelper2 = _interopRequireDefault(_createHelper);\n\nvar _createEagerFactory = require('./createEagerFactory');\n\nvar _createEagerFactory2 = _interopRequireDefault(_createEagerFactory);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar mapProps = function mapProps(propsMapper) {\n return function (BaseComponent) {\n var factory = (0, _createEagerFactory2.default)(BaseComponent);\n return function (props) {\n return factory(propsMapper(props));\n };\n };\n};\n\nexports.default = (0, _createHelper2.default)(mapProps, 'mapProps');","'use strict';\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _createEagerFactory = require('./createEagerFactory');\n\nvar _createEagerFactory2 = _interopRequireDefault(_createEagerFactory);\n\nvar _createHelper = require('./createHelper');\n\nvar _createHelper2 = _interopRequireDefault(_createHelper);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar mapValues = function mapValues(obj, func) {\n var result = {};\n /* eslint-disable no-restricted-syntax */\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n result[key] = func(obj[key], key);\n }\n }\n /* eslint-enable no-restricted-syntax */\n return result;\n};\n\nvar withHandlers = function withHandlers(handlers) {\n return function (BaseComponent) {\n var _class, _temp2, _initialiseProps;\n\n var factory = (0, _createEagerFactory2.default)(BaseComponent);\n return _temp2 = _class = function (_Component) {\n _inherits(_class, _Component);\n\n function _class() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, _class);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _class.prototype.componentWillReceiveProps = function componentWillReceiveProps() {\n this.cachedHandlers = {};\n };\n\n _class.prototype.render = function render() {\n return factory(_extends({}, this.props, this.handlers));\n };\n\n return _class;\n }(_react.Component), _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.cachedHandlers = {};\n this.handlers = mapValues(typeof handlers === 'function' ? handlers(this.props) : handlers, function (createHandler, handlerName) {\n return function () {\n var cachedHandler = _this2.cachedHandlers[handlerName];\n if (cachedHandler) {\n return cachedHandler.apply(undefined, arguments);\n }\n\n var handler = createHandler(_this2.props);\n _this2.cachedHandlers[handlerName] = handler;\n\n if (process.env.NODE_ENV !== 'production' && typeof handler !== 'function') {\n console.error( // eslint-disable-line no-console\n 'withHandlers(): Expected a map of higher-order functions. ' + 'Refer to the docs for more info.');\n }\n\n return handler.apply(undefined, arguments);\n };\n });\n }, _temp2;\n };\n};\n\nexports.default = (0, _createHelper2.default)(withHandlers, 'withHandlers');","var parse = require('../parse/index.js')\n\n/**\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * @param {Date|String|Number} date - the date to be changed\n * @param {Number} amount - the amount of days to be added\n * @returns {Date} the new date with the days added\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * var result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\nfunction addDays (dirtyDate, dirtyAmount) {\n var date = parse(dirtyDate)\n var amount = Number(dirtyAmount)\n date.setDate(date.getDate() + amount)\n return date\n}\n\nmodule.exports = addDays\n","import _withPropsOnChange from 'recompose/withPropsOnChange';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nimport getScrollbarSize from 'dom-helpers/util/scrollbarSize';\nimport getDaysInMonth from 'date-fns/get_days_in_month';\nimport getDay from 'date-fns/get_day';\nimport isAfter from 'date-fns/is_after';\nimport isBefore from 'date-fns/is_before';\nimport isSameDay from 'date-fns/is_same_day';\nimport endOfDay from 'date-fns/end_of_day';\nimport startOfDay from 'date-fns/start_of_day';\n\n\nexport var keyCodes = {\n command: 91,\n control: 17,\n down: 40,\n enter: 13,\n escape: 27,\n left: 37,\n right: 39,\n shift: 16,\n up: 38\n};\n\n/**\n * Given a year and a month, returns the rows for that month to be iterated over\n * @param {Number} year - the year number\n * @param {Number} month - the index of the month\n * @param {Number} weekStartsOn - the index of the first day of the week (from 0 to 6)\n * @return {Object} - Returns the first day of the month and the rows of that month\n */\nexport function getMonth(year, month, weekStartsOn) {\n var rows = [];\n var monthDate = new Date(year, month, 1);\n var daysInMonth = getDaysInMonth(monthDate);\n var weekEndsOn = getEndOfWeekIndex(weekStartsOn);\n\n var dow = getDay(new Date(year, month, 1));\n var week = 0;\n\n for (var day = 1; day <= daysInMonth; day++) {\n if (!rows[week]) {\n rows[week] = [];\n }\n\n rows[week].push(day);\n\n if (dow === weekEndsOn) {\n week++;\n }\n\n dow = dow < 6 ? dow + 1 : 0;\n }\n\n return {\n date: monthDate,\n rows: rows\n };\n}\n\nexport function getWeek(yearStart, date, weekStartsOn) {\n var yearStartDate = typeof yearStart === 'number' ? new Date(yearStart, 0, 1) // 1st Jan of the Year\n : yearStart;\n\n return Math.ceil((Math.round((date - yearStartDate) / (60 * 60 * 24 * 1000)) + yearStartDate.getDay() + 1 - weekStartsOn) / 7);\n}\n\n/**\n * Get the number of weeks in a given month to be able to calculate the height of that month\n * @param {Number} year - the year number\n * @param {Number} month - the index of the month\n * @param {Number} weekStartsOn - the index of the first day of the week (from 0 to 6)\n * @return {Number} - Returns the number of weeks for the given month\n */\nexport function getWeeksInMonth(month) {\n var year = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Date().getFullYear();\n var weekStartsOn = arguments[2];\n var isLastDisplayedMonth = arguments[3];\n\n var weekEndsOn = getEndOfWeekIndex(weekStartsOn);\n\n var firstOfMonth = new Date(year, month, 1);\n var firstWeekNumber = getWeek(year, firstOfMonth, weekStartsOn);\n\n var lastOfMonth = new Date(year, month + 1, 0); // Last date of the Month\n var lastWeekNumber = getWeek(year, lastOfMonth, weekStartsOn);\n\n var rowCount = lastWeekNumber - firstWeekNumber;\n\n // If the last week contains 7 days, we need to add an extra row\n if (lastOfMonth.getDay() === weekEndsOn || isLastDisplayedMonth) {\n rowCount++;\n }\n\n return rowCount;\n}\n\n/**\n * Helper to find out what day the week ends on given the localized start of the week\n * @param {Number} weekStartsOn - the index of the first day of the week (from 0 to 6)\n * @return {Number} - Returns the index of the day the week ends on\n */\nfunction getEndOfWeekIndex(weekStartsOn) {\n var weekEndsOn = weekStartsOn === 0 ? 6 : weekStartsOn - 1;\n\n return weekEndsOn;\n}\n\nexport var ScrollSpeed = function () {\n function ScrollSpeed() {\n var _this = this;\n\n _classCallCheck(this, ScrollSpeed);\n\n this.clear = function () {\n _this.lastPosition = null;\n _this.delta = 0;\n };\n }\n\n ScrollSpeed.prototype.getScrollSpeed = function getScrollSpeed(scrollOffset) {\n if (this.lastPosition != null) {\n this.delta = scrollOffset - this.lastPosition;\n }\n this.lastPosition = scrollOffset;\n\n clearTimeout(this._timeout);\n this._timeout = setTimeout(this.clear, 50);\n\n return this.delta;\n };\n\n return ScrollSpeed;\n}();\n\nexport var scrollbarSize = getScrollbarSize();\n\nexport function emptyFn() {\n /* no-op */\n}\n\nexport function sanitizeDate(date, _ref) {\n var _ref$disabledDates = _ref.disabledDates,\n disabledDates = _ref$disabledDates === undefined ? [] : _ref$disabledDates,\n _ref$disabledDays = _ref.disabledDays,\n disabledDays = _ref$disabledDays === undefined ? [] : _ref$disabledDays,\n minDate = _ref.minDate,\n maxDate = _ref.maxDate;\n\n // Selected date should not be disabled or outside the selectable range\n if (!date || disabledDates.some(function (disabledDate) {\n return isSameDay(disabledDate, date);\n }) || disabledDays && disabledDays.indexOf(getDay(date)) !== -1 || minDate && isBefore(date, startOfDay(minDate)) || maxDate && isAfter(date, endOfDay(maxDate))) {\n return null;\n }\n\n return date;\n}\n\nexport function getDateString(year, month, date) {\n return year + '-' + ('0' + (month + 1)).slice(-2) + '-' + ('0' + date).slice(-2);\n}\n\nexport function getMonthsForYear(year) {\n var day = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n\n return Array.apply(null, Array(12)).map(function (val, index) {\n return new Date(year, index, day);\n });\n}\n\nexport var withImmutableProps = function withImmutableProps(props) {\n return _withPropsOnChange(function () {\n return false;\n }, props);\n};\n\nexport function debounce(callback, wait) {\n var _this2 = this;\n\n var timeout = null;\n var callbackArgs = null;\n\n var later = function later() {\n return callback.apply(_this2, callbackArgs);\n };\n\n return function () {\n callbackArgs = arguments;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n };\n}\n\nexport function range(start, stop) {\n var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n\n var length = Math.max(Math.ceil((stop - start) / step), 0);\n var range = Array(length);\n\n for (var i = 0; i < length; i++, start += step) {\n range[i] = start;\n }\n\n return range;\n};\n\nexport { default as animate } from './animate';","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nvar styles = {\n 'root': 'Cal__Today__root',\n 'show': 'Cal__Today__show',\n 'chevron': 'Cal__Today__chevron',\n 'chevronUp': 'Cal__Today__chevronUp',\n 'chevronDown': 'Cal__Today__chevronDown'\n};\n\n\nexport var DIRECTION_UP = 1;\nexport var DIRECTION_DOWN = -1;\nvar CHEVRON = 'M256,298.3L256,298.3L256,298.3l174.2-167.2c4.3-4.2,11.4-4.1,15.8,0.2l30.6,29.9c4.4,4.3,4.5,11.3,0.2,15.5L264.1,380.9 c-2.2,2.2-5.2,3.2-8.1,3c-3,0.1-5.9-0.9-8.1-3L35.2,176.7c-4.3-4.2-4.2-11.2,0.2-15.5L66,131.3c4.4-4.3,11.5-4.4,15.8-0.2L256,298.3 z';\n\nvar Today = function (_PureComponent) {\n _inherits(Today, _PureComponent);\n\n function Today() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, Today);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _PureComponent.call.apply(_PureComponent, [this].concat(args))), _this), _this.scrollToToday = function () {\n var scrollToDate = _this.props.scrollToDate;\n\n\n scrollToDate(new Date(), -40, true);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n Today.prototype.render = function render() {\n var _classNames;\n\n var _props = this.props,\n todayLabel = _props.todayLabel,\n show = _props.show,\n theme = _props.theme;\n\n return React.createElement(\n 'div',\n {\n className: classNames(styles.root, (_classNames = {}, _classNames[styles.show] = show, _classNames[styles.chevronUp] = show === DIRECTION_UP, _classNames[styles.chevronDown] = show === DIRECTION_DOWN, _classNames)),\n style: {\n backgroundColor: theme.floatingNav.background,\n color: theme.floatingNav.color\n },\n onClick: this.scrollToToday,\n ref: 'node'\n },\n todayLabel,\n React.createElement(\n 'svg',\n {\n className: styles.chevron,\n x: '0px',\n y: '0px',\n width: '14px',\n height: '14px',\n viewBox: '0 0 512 512'\n },\n React.createElement('path', {\n fill: theme.floatingNav.chevron || theme.floatingNav.color,\n d: CHEVRON\n })\n )\n );\n };\n\n return Today;\n}(PureComponent);\n\nexport { Today as default };\nprocess.env.NODE_ENV !== \"production\" ? Today.propTypes = {\n scrollToDate: PropTypes.func,\n show: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),\n theme: PropTypes.object,\n todayLabel: PropTypes.string\n} : void 0;","var _class, _temp;\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport { emptyFn } from '../utils';\nimport defaultSelectionRenderer from './defaultSelectionRenderer';\nimport classNames from 'classnames';\nvar styles = {\n 'root': 'Cal__Header__root',\n 'landscape': 'Cal__Header__landscape',\n 'dateWrapper': 'Cal__Header__dateWrapper',\n 'day': 'Cal__Header__day',\n 'wrapper': 'Cal__Header__wrapper',\n 'blank': 'Cal__Header__blank',\n 'active': 'Cal__Header__active',\n 'year': 'Cal__Header__year',\n 'date': 'Cal__Header__date',\n 'range': 'Cal__Header__range'\n};\nvar Header = (_temp = _class = function (_PureComponent) {\n _inherits(Header, _PureComponent);\n\n function Header() {\n _classCallCheck(this, Header);\n\n return _possibleConstructorReturn(this, _PureComponent.apply(this, arguments));\n }\n\n Header.prototype.render = function render() {\n var _classNames;\n\n var _props = this.props,\n layout = _props.layout,\n blank = _props.locale.blank,\n selected = _props.selected,\n renderSelection = _props.renderSelection,\n theme = _props.theme;\n\n\n return React.createElement(\n 'div',\n {\n className: classNames(styles.root, (_classNames = {}, _classNames[styles.landscape] = layout === 'landscape', _classNames)),\n style: {\n backgroundColor: theme.headerColor,\n color: theme.textColor.active\n }\n },\n selected && renderSelection(selected, this.props) || React.createElement(\n 'div',\n { className: classNames(styles.wrapper, styles.blank) },\n blank\n )\n );\n };\n\n return Header;\n}(PureComponent), _class.defaultProps = {\n onYearClick: emptyFn,\n renderSelection: defaultSelectionRenderer\n}, _temp);\nexport { Header as default };\nprocess.env.NODE_ENV !== \"production\" ? Header.propTypes = {\n dateFormat: PropTypes.string,\n display: PropTypes.string,\n layout: PropTypes.string,\n locale: PropTypes.object,\n onYearClick: PropTypes.func,\n selected: PropTypes.any,\n shouldAnimate: PropTypes.bool,\n theme: PropTypes.object\n} : void 0;","import React from 'react';\nimport CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup';\nimport classNames from 'classnames';\nimport parse from 'date-fns/parse';\nimport format from 'date-fns/format';\nvar styles = {\n 'root': 'Cal__Header__root',\n 'landscape': 'Cal__Header__landscape',\n 'dateWrapper': 'Cal__Header__dateWrapper',\n 'day': 'Cal__Header__day',\n 'wrapper': 'Cal__Header__wrapper',\n 'blank': 'Cal__Header__blank',\n 'active': 'Cal__Header__active',\n 'year': 'Cal__Header__year',\n 'date': 'Cal__Header__date',\n 'range': 'Cal__Header__range'\n};\nvar animation = {\n 'enter': 'Cal__Animation__enter',\n 'enterActive': 'Cal__Animation__enterActive',\n 'leave': 'Cal__Animation__leave',\n 'leaveActive': 'Cal__Animation__leaveActive'\n};\n\n\nexport default function defaultSelectionRenderer(value, _ref) {\n var display = _ref.display,\n key = _ref.key,\n locale = _ref.locale.locale,\n dateFormat = _ref.dateFormat,\n onYearClick = _ref.onYearClick,\n scrollToDate = _ref.scrollToDate,\n setDisplay = _ref.setDisplay,\n shouldAnimate = _ref.shouldAnimate;\n\n var date = parse(value);\n var values = date && [{\n active: display === 'years',\n handleClick: function handleClick(e) {\n onYearClick(date, e, key);\n setDisplay('years');\n },\n item: 'year',\n title: display === 'days' ? 'Change year' : null,\n value: date.getFullYear()\n }, {\n active: display === 'days',\n handleClick: function handleClick(e) {\n if (display !== 'days') {\n setDisplay('days');\n } else if (date) {\n scrollToDate(date, -40, true);\n }\n },\n item: 'day',\n title: display === 'days' ? 'Scroll to ' + format(date, dateFormat, { locale: locale }) : null,\n value: format(date, dateFormat, { locale: locale })\n }];\n\n return React.createElement(\n 'div',\n {\n key: key,\n className: styles.wrapper,\n 'aria-label': format(date, dateFormat + ' YYYY', { locale: locale })\n },\n values.map(function (_ref2) {\n var _classNames;\n\n var handleClick = _ref2.handleClick,\n item = _ref2.item,\n key = _ref2.key,\n value = _ref2.value,\n active = _ref2.active,\n title = _ref2.title;\n\n return React.createElement(\n 'div',\n {\n key: item,\n className: classNames(styles.dateWrapper, styles[item], (_classNames = {}, _classNames[styles.active] = active, _classNames)),\n title: title\n },\n React.createElement(\n CSSTransitionGroup,\n {\n transitionName: animation,\n transitionEnterTimeout: 250,\n transitionLeaveTimeout: 250,\n transitionEnter: shouldAnimate,\n transitionLeave: shouldAnimate\n },\n React.createElement(\n 'span',\n {\n key: item + '-' + value,\n className: styles.date,\n 'aria-hidden': true,\n onClick: handleClick\n },\n value\n )\n )\n );\n })\n );\n}","import { PureComponent, createElement } from 'react';\nimport { array, arrayOf, func, number, object, oneOf, oneOfType, string } from 'prop-types';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\n\nvar ALIGNMENT;\n(function (ALIGNMENT) {\n ALIGNMENT[\"AUTO\"] = \"auto\";\n ALIGNMENT[\"START\"] = \"start\";\n ALIGNMENT[\"CENTER\"] = \"center\";\n ALIGNMENT[\"END\"] = \"end\";\n})(ALIGNMENT || (ALIGNMENT = {}));\nvar DIRECTION;\n(function (DIRECTION) {\n DIRECTION[\"HORIZONTAL\"] = \"horizontal\";\n DIRECTION[\"VERTICAL\"] = \"vertical\";\n})(DIRECTION || (DIRECTION = {}));\nvar SCROLL_CHANGE_REASON;\n(function (SCROLL_CHANGE_REASON) {\n SCROLL_CHANGE_REASON[\"OBSERVED\"] = \"observed\";\n SCROLL_CHANGE_REASON[\"REQUESTED\"] = \"requested\";\n})(SCROLL_CHANGE_REASON || (SCROLL_CHANGE_REASON = {}));\nvar scrollProp = (_a = {}, _a[DIRECTION.VERTICAL] = 'scrollTop', _a[DIRECTION.HORIZONTAL] = 'scrollLeft', _a);\nvar sizeProp = (_b = {}, _b[DIRECTION.VERTICAL] = 'height', _b[DIRECTION.HORIZONTAL] = 'width', _b);\nvar positionProp = (_c = {}, _c[DIRECTION.VERTICAL] = 'top', _c[DIRECTION.HORIZONTAL] = 'left', _c);\nvar marginProp = (_d = {}, _d[DIRECTION.VERTICAL] = 'marginTop', _d[DIRECTION.HORIZONTAL] = 'marginLeft', _d);\nvar oppositeMarginProp = (_e = {}, _e[DIRECTION.VERTICAL] = 'marginBottom', _e[DIRECTION.HORIZONTAL] = 'marginRight', _e);\nvar _a;\nvar _b;\nvar _c;\nvar _d;\nvar _e;\n\n/* Forked from react-virtualized 💖 */\nvar SizeAndPositionManager = /** @class */function () {\n function SizeAndPositionManager(_a) {\n var itemCount = _a.itemCount,\n itemSizeGetter = _a.itemSizeGetter,\n estimatedItemSize = _a.estimatedItemSize;\n this.itemSizeGetter = itemSizeGetter;\n this.itemCount = itemCount;\n this.estimatedItemSize = estimatedItemSize;\n // Cache of size and position data for items, mapped by item index.\n this.itemSizeAndPositionData = {};\n // Measurements for items up to this index can be trusted; items afterward should be estimated.\n this.lastMeasuredIndex = -1;\n }\n SizeAndPositionManager.prototype.updateConfig = function (_a) {\n var itemCount = _a.itemCount,\n itemSizeGetter = _a.itemSizeGetter,\n estimatedItemSize = _a.estimatedItemSize;\n if (itemCount != null) {\n this.itemCount = itemCount;\n }\n if (estimatedItemSize != null) {\n this.estimatedItemSize = estimatedItemSize;\n }\n if (itemSizeGetter != null) {\n this.itemSizeGetter = itemSizeGetter;\n }\n };\n SizeAndPositionManager.prototype.getLastMeasuredIndex = function () {\n return this.lastMeasuredIndex;\n };\n /**\n * This method returns the size and position for the item at the specified index.\n * It just-in-time calculates (or used cached values) for items leading up to the index.\n */\n SizeAndPositionManager.prototype.getSizeAndPositionForIndex = function (index) {\n if (index < 0 || index >= this.itemCount) {\n throw Error(\"Requested index \" + index + \" is outside of range 0..\" + this.itemCount);\n }\n if (index > this.lastMeasuredIndex) {\n var lastMeasuredSizeAndPosition = this.getSizeAndPositionOfLastMeasuredItem();\n var offset = lastMeasuredSizeAndPosition.offset + lastMeasuredSizeAndPosition.size;\n for (var i = this.lastMeasuredIndex + 1; i <= index; i++) {\n var size = this.itemSizeGetter(i);\n if (size == null || isNaN(size)) {\n throw Error(\"Invalid size returned for index \" + i + \" of value \" + size);\n }\n this.itemSizeAndPositionData[i] = {\n offset: offset,\n size: size\n };\n offset += size;\n }\n this.lastMeasuredIndex = index;\n }\n return this.itemSizeAndPositionData[index];\n };\n SizeAndPositionManager.prototype.getSizeAndPositionOfLastMeasuredItem = function () {\n return this.lastMeasuredIndex >= 0 ? this.itemSizeAndPositionData[this.lastMeasuredIndex] : { offset: 0, size: 0 };\n };\n /**\n * Total size of all items being measured.\n * This value will be completedly estimated initially.\n * As items as measured the estimate will be updated.\n */\n SizeAndPositionManager.prototype.getTotalSize = function () {\n var lastMeasuredSizeAndPosition = this.getSizeAndPositionOfLastMeasuredItem();\n return lastMeasuredSizeAndPosition.offset + lastMeasuredSizeAndPosition.size + (this.itemCount - this.lastMeasuredIndex - 1) * this.estimatedItemSize;\n };\n /**\n * Determines a new offset that ensures a certain item is visible, given the alignment.\n *\n * @param align Desired alignment within container; one of \"start\" (default), \"center\", or \"end\"\n * @param containerSize Size (width or height) of the container viewport\n * @return Offset to use to ensure the specified item is visible\n */\n SizeAndPositionManager.prototype.getUpdatedOffsetForIndex = function (_a) {\n var _b = _a.align,\n align = _b === void 0 ? ALIGNMENT.START : _b,\n containerSize = _a.containerSize,\n currentOffset = _a.currentOffset,\n targetIndex = _a.targetIndex;\n if (containerSize <= 0) {\n return 0;\n }\n var datum = this.getSizeAndPositionForIndex(targetIndex);\n var maxOffset = datum.offset;\n var minOffset = maxOffset - containerSize + datum.size;\n var idealOffset;\n switch (align) {\n case ALIGNMENT.END:\n idealOffset = minOffset;\n break;\n case ALIGNMENT.CENTER:\n idealOffset = maxOffset - (containerSize - datum.size) / 2;\n break;\n case ALIGNMENT.START:\n idealOffset = maxOffset;\n break;\n default:\n idealOffset = Math.max(minOffset, Math.min(maxOffset, currentOffset));\n }\n var totalSize = this.getTotalSize();\n return Math.max(0, Math.min(totalSize - containerSize, idealOffset));\n };\n SizeAndPositionManager.prototype.getVisibleRange = function (_a) {\n var containerSize = _a.containerSize,\n offset = _a.offset,\n overscanCount = _a.overscanCount;\n var totalSize = this.getTotalSize();\n if (totalSize === 0) {\n return {};\n }\n var maxOffset = offset + containerSize;\n var start = this.findNearestItem(offset);\n if (typeof start === 'undefined') {\n throw Error(\"Invalid offset \" + offset + \" specified\");\n }\n var datum = this.getSizeAndPositionForIndex(start);\n offset = datum.offset + datum.size;\n var stop = start;\n while (offset < maxOffset && stop < this.itemCount - 1) {\n stop++;\n offset += this.getSizeAndPositionForIndex(stop).size;\n }\n if (overscanCount) {\n start = Math.max(0, start - overscanCount);\n stop = Math.min(stop + overscanCount, this.itemCount - 1);\n }\n return {\n start: start,\n stop: stop\n };\n };\n /**\n * Clear all cached values for items after the specified index.\n * This method should be called for any item that has changed its size.\n * It will not immediately perform any calculations; they'll be performed the next time getSizeAndPositionForIndex() is called.\n */\n SizeAndPositionManager.prototype.resetItem = function (index) {\n this.lastMeasuredIndex = Math.min(this.lastMeasuredIndex, index - 1);\n };\n /**\n * Searches for the item (index) nearest the specified offset.\n *\n * If no exact match is found the next lowest item index will be returned.\n * This allows partially visible items (with offsets just before/above the fold) to be visible.\n */\n SizeAndPositionManager.prototype.findNearestItem = function (offset) {\n if (isNaN(offset)) {\n throw Error(\"Invalid offset \" + offset + \" specified\");\n }\n // Our search algorithms find the nearest match at or below the specified offset.\n // So make sure the offset is at least 0 or no match will be found.\n offset = Math.max(0, offset);\n var lastMeasuredSizeAndPosition = this.getSizeAndPositionOfLastMeasuredItem();\n var lastMeasuredIndex = Math.max(0, this.lastMeasuredIndex);\n if (lastMeasuredSizeAndPosition.offset >= offset) {\n // If we've already measured items within this range just use a binary search as it's faster.\n return this.binarySearch({\n high: lastMeasuredIndex,\n low: 0,\n offset: offset\n });\n } else {\n // If we haven't yet measured this high, fallback to an exponential search with an inner binary search.\n // The exponential search avoids pre-computing sizes for the full set of items as a binary search would.\n // The overall complexity for this approach is O(log n).\n return this.exponentialSearch({\n index: lastMeasuredIndex,\n offset: offset\n });\n }\n };\n SizeAndPositionManager.prototype.binarySearch = function (_a) {\n var low = _a.low,\n high = _a.high,\n offset = _a.offset;\n var middle = 0;\n var currentOffset = 0;\n while (low <= high) {\n middle = low + Math.floor((high - low) / 2);\n currentOffset = this.getSizeAndPositionForIndex(middle).offset;\n if (currentOffset === offset) {\n return middle;\n } else if (currentOffset < offset) {\n low = middle + 1;\n } else if (currentOffset > offset) {\n high = middle - 1;\n }\n }\n if (low > 0) {\n return low - 1;\n }\n return 0;\n };\n SizeAndPositionManager.prototype.exponentialSearch = function (_a) {\n var index = _a.index,\n offset = _a.offset;\n var interval = 1;\n while (index < this.itemCount && this.getSizeAndPositionForIndex(index).offset < offset) {\n index += interval;\n interval *= 2;\n }\n return this.binarySearch({\n high: Math.min(index, this.itemCount - 1),\n low: Math.floor(index / 2),\n offset: offset\n });\n };\n return SizeAndPositionManager;\n}();\n\nvar STYLE_WRAPPER = {\n overflow: 'auto',\n willChange: 'transform',\n WebkitOverflowScrolling: 'touch'\n};\nvar STYLE_INNER = {\n position: 'relative',\n width: '100%',\n minHeight: '100%'\n};\nvar STYLE_ITEM = {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%'\n};\nvar STYLE_STICKY_ITEM = __assign({}, STYLE_ITEM, { position: 'sticky' });\nvar VirtualList = /** @class */function (_super) {\n __extends(VirtualList, _super);\n function VirtualList() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.itemSizeGetter = function (itemSize) {\n return function (index) {\n return _this.getSize(index, itemSize);\n };\n };\n _this.sizeAndPositionManager = new SizeAndPositionManager({\n itemCount: _this.props.itemCount,\n itemSizeGetter: _this.itemSizeGetter(_this.props.itemSize),\n estimatedItemSize: _this.getEstimatedItemSize()\n });\n _this.state = {\n offset: _this.props.scrollOffset || _this.props.scrollToIndex != null && _this.getOffsetForIndex(_this.props.scrollToIndex) || 0,\n scrollChangeReason: SCROLL_CHANGE_REASON.REQUESTED\n };\n _this.styleCache = {};\n _this.getRef = function (node) {\n _this.rootNode = node;\n };\n _this.handleScroll = function (event) {\n var onScroll = _this.props.onScroll;\n var offset = _this.getNodeOffset();\n if (offset < 0 || _this.state.offset === offset || event.target !== _this.rootNode) {\n return;\n }\n _this.setState({\n offset: offset,\n scrollChangeReason: SCROLL_CHANGE_REASON.OBSERVED\n });\n if (typeof onScroll === 'function') {\n onScroll(offset, event);\n }\n };\n return _this;\n }\n VirtualList.prototype.componentDidMount = function () {\n var _a = this.props,\n scrollOffset = _a.scrollOffset,\n scrollToIndex = _a.scrollToIndex;\n this.rootNode.addEventListener('scroll', this.handleScroll, {\n passive: true\n });\n if (scrollOffset != null) {\n this.scrollTo(scrollOffset);\n } else if (scrollToIndex != null) {\n this.scrollTo(this.getOffsetForIndex(scrollToIndex));\n }\n };\n VirtualList.prototype.componentWillReceiveProps = function (nextProps) {\n var _a = this.props,\n estimatedItemSize = _a.estimatedItemSize,\n itemCount = _a.itemCount,\n itemSize = _a.itemSize,\n scrollOffset = _a.scrollOffset,\n scrollToAlignment = _a.scrollToAlignment,\n scrollToIndex = _a.scrollToIndex;\n var scrollPropsHaveChanged = nextProps.scrollToIndex !== scrollToIndex || nextProps.scrollToAlignment !== scrollToAlignment;\n var itemPropsHaveChanged = nextProps.itemCount !== itemCount || nextProps.itemSize !== itemSize || nextProps.estimatedItemSize !== estimatedItemSize;\n if (nextProps.itemSize !== itemSize) {\n this.sizeAndPositionManager.updateConfig({\n itemSizeGetter: this.itemSizeGetter(nextProps.itemSize)\n });\n }\n if (nextProps.itemCount !== itemCount || nextProps.estimatedItemSize !== estimatedItemSize) {\n this.sizeAndPositionManager.updateConfig({\n itemCount: nextProps.itemCount,\n estimatedItemSize: this.getEstimatedItemSize(nextProps)\n });\n }\n if (itemPropsHaveChanged) {\n this.recomputeSizes();\n }\n if (nextProps.scrollOffset !== scrollOffset) {\n this.setState({\n offset: nextProps.scrollOffset || 0,\n scrollChangeReason: SCROLL_CHANGE_REASON.REQUESTED\n });\n } else if (typeof nextProps.scrollToIndex === 'number' && (scrollPropsHaveChanged || itemPropsHaveChanged)) {\n this.setState({\n offset: this.getOffsetForIndex(nextProps.scrollToIndex, nextProps.scrollToAlignment, nextProps.itemCount),\n scrollChangeReason: SCROLL_CHANGE_REASON.REQUESTED\n });\n }\n };\n VirtualList.prototype.componentDidUpdate = function (_, prevState) {\n var _a = this.state,\n offset = _a.offset,\n scrollChangeReason = _a.scrollChangeReason;\n if (prevState.offset !== offset && scrollChangeReason === SCROLL_CHANGE_REASON.REQUESTED) {\n this.scrollTo(offset);\n }\n };\n VirtualList.prototype.componentWillUnmount = function () {\n this.rootNode.removeEventListener('scroll', this.handleScroll);\n };\n VirtualList.prototype.scrollTo = function (value) {\n var _a = this.props.scrollDirection,\n scrollDirection = _a === void 0 ? DIRECTION.VERTICAL : _a;\n this.rootNode[scrollProp[scrollDirection]] = value;\n };\n VirtualList.prototype.getOffsetForIndex = function (index, scrollToAlignment, itemCount) {\n if (scrollToAlignment === void 0) {\n scrollToAlignment = this.props.scrollToAlignment;\n }\n if (itemCount === void 0) {\n itemCount = this.props.itemCount;\n }\n var _a = this.props.scrollDirection,\n scrollDirection = _a === void 0 ? DIRECTION.VERTICAL : _a;\n if (index < 0 || index >= itemCount) {\n index = 0;\n }\n return this.sizeAndPositionManager.getUpdatedOffsetForIndex({\n align: scrollToAlignment,\n containerSize: this.props[sizeProp[scrollDirection]],\n currentOffset: this.state && this.state.offset || 0,\n targetIndex: index\n });\n };\n VirtualList.prototype.recomputeSizes = function (startIndex) {\n if (startIndex === void 0) {\n startIndex = 0;\n }\n this.styleCache = {};\n this.sizeAndPositionManager.resetItem(startIndex);\n };\n VirtualList.prototype.render = function () {\n var _this = this;\n var _a = this.props,\n estimatedItemSize = _a.estimatedItemSize,\n height = _a.height,\n _b = _a.overscanCount,\n overscanCount = _b === void 0 ? 3 : _b,\n renderItem = _a.renderItem,\n itemCount = _a.itemCount,\n itemSize = _a.itemSize,\n onItemsRendered = _a.onItemsRendered,\n onScroll = _a.onScroll,\n _c = _a.scrollDirection,\n scrollDirection = _c === void 0 ? DIRECTION.VERTICAL : _c,\n scrollOffset = _a.scrollOffset,\n scrollToIndex = _a.scrollToIndex,\n scrollToAlignment = _a.scrollToAlignment,\n stickyIndices = _a.stickyIndices,\n style = _a.style,\n width = _a.width,\n props = __rest(_a, [\"estimatedItemSize\", \"height\", \"overscanCount\", \"renderItem\", \"itemCount\", \"itemSize\", \"onItemsRendered\", \"onScroll\", \"scrollDirection\", \"scrollOffset\", \"scrollToIndex\", \"scrollToAlignment\", \"stickyIndices\", \"style\", \"width\"]);\n var offset = this.state.offset;\n var _d = this.sizeAndPositionManager.getVisibleRange({\n containerSize: this.props[sizeProp[scrollDirection]] || 0,\n offset: offset,\n overscanCount: overscanCount\n }),\n start = _d.start,\n stop = _d.stop;\n var items = [];\n var wrapperStyle = __assign({}, STYLE_WRAPPER, style, { height: height, width: width });\n var innerStyle = __assign({}, STYLE_INNER, (_e = {}, _e[sizeProp[scrollDirection]] = this.sizeAndPositionManager.getTotalSize(), _e));\n if (stickyIndices != null && stickyIndices.length !== 0) {\n stickyIndices.forEach(function (index) {\n return items.push(renderItem({\n index: index,\n style: _this.getStyle(index, true)\n }));\n });\n if (scrollDirection === DIRECTION.HORIZONTAL) {\n innerStyle.display = 'flex';\n }\n }\n if (typeof start !== 'undefined' && typeof stop !== 'undefined') {\n for (var index = start; index <= stop; index++) {\n if (stickyIndices != null && stickyIndices.includes(index)) {\n continue;\n }\n items.push(renderItem({\n index: index,\n style: this.getStyle(index, false)\n }));\n }\n if (typeof onItemsRendered === 'function') {\n onItemsRendered({\n startIndex: start,\n stopIndex: stop\n });\n }\n }\n return createElement(\"div\", __assign({ ref: this.getRef }, props, { style: wrapperStyle }), createElement(\"div\", { style: innerStyle }, items));\n var _e;\n };\n VirtualList.prototype.getNodeOffset = function () {\n var _a = this.props.scrollDirection,\n scrollDirection = _a === void 0 ? DIRECTION.VERTICAL : _a;\n return this.rootNode[scrollProp[scrollDirection]];\n };\n VirtualList.prototype.getEstimatedItemSize = function (props) {\n if (props === void 0) {\n props = this.props;\n }\n return props.estimatedItemSize || typeof props.itemSize === 'number' && props.itemSize || 50;\n };\n VirtualList.prototype.getSize = function (index, itemSize) {\n if (typeof itemSize === 'function') {\n return itemSize(index);\n }\n return Array.isArray(itemSize) ? itemSize[index] : itemSize;\n };\n VirtualList.prototype.getStyle = function (index, sticky) {\n var style = this.styleCache[index];\n if (style) {\n return style;\n }\n var _a = this.props.scrollDirection,\n scrollDirection = _a === void 0 ? DIRECTION.VERTICAL : _a;\n var _b = this.sizeAndPositionManager.getSizeAndPositionForIndex(index),\n size = _b.size,\n offset = _b.offset;\n return this.styleCache[index] = sticky ? __assign({}, STYLE_STICKY_ITEM, (_c = {}, _c[sizeProp[scrollDirection]] = size, _c[marginProp[scrollDirection]] = offset, _c[oppositeMarginProp[scrollDirection]] = -(offset + size), _c.zIndex = 1, _c)) : __assign({}, STYLE_ITEM, (_d = {}, _d[sizeProp[scrollDirection]] = size, _d[positionProp[scrollDirection]] = offset, _d));\n var _c, _d;\n };\n VirtualList.defaultProps = {\n overscanCount: 3,\n scrollDirection: DIRECTION.VERTICAL,\n width: '100%'\n };\n VirtualList.propTypes = {\n estimatedItemSize: number,\n height: oneOfType([number, string]).isRequired,\n itemCount: number.isRequired,\n itemSize: oneOfType([number, array, func]).isRequired,\n onScroll: func,\n onItemsRendered: func,\n overscanCount: number,\n renderItem: func.isRequired,\n scrollOffset: number,\n scrollToIndex: number,\n scrollToAlignment: oneOf([ALIGNMENT.AUTO, ALIGNMENT.START, ALIGNMENT.CENTER, ALIGNMENT.END]),\n scrollDirection: oneOf([DIRECTION.HORIZONTAL, DIRECTION.VERTICAL]),\n stickyIndices: arrayOf(number),\n style: object,\n width: oneOfType([number, string])\n };\n return VirtualList;\n}(PureComponent);\n\nexport { DIRECTION as ScrollDirection };\nexport default VirtualList;\n","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { PureComponent } from 'react';\nimport classNames from 'classnames';\nimport { getDateString } from '../utils';\nimport format from 'date-fns/format';\nimport getDay from 'date-fns/get_day';\nimport isSameYear from 'date-fns/is_same_year';\nvar styles = {\n 'rows': 'Cal__Month__rows',\n 'row': 'Cal__Month__row',\n 'partial': 'Cal__Month__partial',\n 'label': 'Cal__Month__label',\n 'partialFirstRow': 'Cal__Month__partialFirstRow'\n};\n\nvar Month = function (_PureComponent) {\n _inherits(Month, _PureComponent);\n\n function Month() {\n _classCallCheck(this, Month);\n\n return _possibleConstructorReturn(this, _PureComponent.apply(this, arguments));\n }\n\n Month.prototype.renderRows = function renderRows() {\n var _props = this.props,\n DayComponent = _props.DayComponent,\n disabledDates = _props.disabledDates,\n disabledDays = _props.disabledDays,\n monthDate = _props.monthDate,\n locale = _props.locale,\n maxDate = _props.maxDate,\n minDate = _props.minDate,\n rowHeight = _props.rowHeight,\n rows = _props.rows,\n selected = _props.selected,\n today = _props.today,\n theme = _props.theme,\n passThrough = _props.passThrough;\n\n var currentYear = today.getFullYear();\n var year = monthDate.getFullYear();\n var month = monthDate.getMonth();\n var monthShort = format(monthDate, 'MMM', { locale: locale.locale });\n var monthRows = [];\n var day = 0;\n var isDisabled = false;\n var isToday = false;\n var date = void 0,\n days = void 0,\n dow = void 0,\n row = void 0;\n\n // Used for faster comparisons\n var _today = format(today, 'YYYY-MM-DD');\n var _minDate = format(minDate, 'YYYY-MM-DD');\n var _maxDate = format(maxDate, 'YYYY-MM-DD');\n\n // Oh the things we do in the name of performance...\n for (var i = 0, len = rows.length; i < len; i++) {\n var _classNames;\n\n row = rows[i];\n days = [];\n dow = getDay(new Date(year, month, row[0]));\n\n for (var k = 0, _len = row.length; k < _len; k++) {\n day = row[k];\n\n date = getDateString(year, month, day);\n isToday = date === _today;\n\n isDisabled = minDate && date < _minDate || maxDate && date > _maxDate || disabledDays && disabledDays.length && disabledDays.indexOf(dow) !== -1 || disabledDates && disabledDates.length && disabledDates.indexOf(date) !== -1;\n\n days[k] = React.createElement(DayComponent, _extends({\n key: 'day-' + day,\n currentYear: currentYear,\n date: date,\n day: day,\n selected: selected,\n isDisabled: isDisabled,\n isToday: isToday,\n locale: locale,\n month: month,\n monthShort: monthShort,\n theme: theme,\n year: year\n }, passThrough.Day));\n\n dow += 1;\n }\n monthRows[i] = React.createElement(\n 'ul',\n {\n key: 'Row-' + i,\n className: classNames(styles.row, (_classNames = {}, _classNames[styles.partial] = row.length !== 7, _classNames)),\n style: { height: rowHeight },\n role: 'row',\n 'aria-label': 'Week ' + (i + 1)\n },\n days\n );\n }\n\n return monthRows;\n };\n\n Month.prototype.render = function render() {\n var _classNames2;\n\n var _props2 = this.props,\n locale = _props2.locale.locale,\n monthDate = _props2.monthDate,\n today = _props2.today,\n rows = _props2.rows,\n rowHeight = _props2.rowHeight,\n showOverlay = _props2.showOverlay,\n style = _props2.style,\n theme = _props2.theme;\n\n var dateFormat = isSameYear(monthDate, today) ? 'MMMM' : 'MMMM YYYY';\n\n return React.createElement(\n 'div',\n { className: styles.root, style: _extends({}, style, { lineHeight: rowHeight + 'px' }) },\n React.createElement(\n 'div',\n { className: styles.rows },\n this.renderRows(),\n showOverlay && React.createElement(\n 'label',\n {\n className: classNames(styles.label, (_classNames2 = {}, _classNames2[styles.partialFirstRow] = rows[0].length !== 7, _classNames2)),\n style: { backgroundColor: theme.overlayColor }\n },\n React.createElement(\n 'span',\n null,\n format(monthDate, dateFormat, { locale: locale })\n )\n )\n )\n );\n };\n\n return Month;\n}(PureComponent);\n\nexport { Month as default };","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport VirtualList from 'react-tiny-virtual-list';\nimport classNames from 'classnames';\nimport { emptyFn, getMonth, getWeek, getWeeksInMonth, animate } from '../utils';\nimport parse from 'date-fns/parse';\nimport startOfMonth from 'date-fns/start_of_month';\nimport Month from '../Month';\nvar styles = {\n 'root': 'Cal__MonthList__root',\n 'scrolling': 'Cal__MonthList__scrolling'\n};\n\n\nvar AVERAGE_ROWS_PER_MONTH = 5;\n\nvar MonthList = function (_Component) {\n _inherits(MonthList, _Component);\n\n function MonthList() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, MonthList);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = {\n scrollTop: _this.getDateOffset(_this.props.scrollDate)\n }, _this.cache = {}, _this.memoize = function (param) {\n if (!this.cache[param]) {\n var weekStartsOn = this.props.locale.weekStartsOn;\n\n var _param$split = param.split(':'),\n year = _param$split[0],\n month = _param$split[1];\n\n var result = getMonth(year, month, weekStartsOn);\n this.cache[param] = result;\n }\n return this.cache[param];\n }, _this.monthHeights = [], _this._getRef = function (instance) {\n _this.VirtualList = instance;\n }, _this.getMonthHeight = function (index) {\n if (!_this.monthHeights[index]) {\n var _this$props = _this.props,\n weekStartsOn = _this$props.locale.weekStartsOn,\n months = _this$props.months,\n rowHeight = _this$props.rowHeight;\n var _months$index = months[index],\n month = _months$index.month,\n year = _months$index.year;\n\n var weeks = getWeeksInMonth(month, year, weekStartsOn, index === months.length - 1);\n var height = weeks * rowHeight;\n _this.monthHeights[index] = height;\n }\n\n return _this.monthHeights[index];\n }, _this.scrollToDate = function (date) {\n for (var _len2 = arguments.length, rest = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n rest[_key2 - 2] = arguments[_key2];\n }\n\n var _this2;\n\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n var offsetTop = _this.getDateOffset(date);\n (_this2 = _this).scrollTo.apply(_this2, [offsetTop + offset].concat(rest));\n }, _this.scrollTo = function () {\n var scrollTop = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var shouldAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var onScrollEnd = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : emptyFn;\n\n var onComplete = function onComplete() {\n return setTimeout(function () {\n _this.scrollEl.style.overflowY = 'auto';\n onScrollEnd();\n });\n };\n\n // Interrupt iOS Momentum scroll\n _this.scrollEl.style.overflowY = 'hidden';\n\n if (shouldAnimate) {\n /* eslint-disable sort-keys */\n animate({\n fromValue: _this.scrollEl.scrollTop,\n toValue: scrollTop,\n onUpdate: function onUpdate(scrollTop, callback) {\n return _this.setState({ scrollTop: scrollTop }, callback);\n },\n onComplete: onComplete\n });\n } else {\n window.requestAnimationFrame(function () {\n _this.scrollEl.scrollTop = scrollTop;\n onComplete();\n });\n }\n }, _this.renderMonth = function (_ref) {\n var index = _ref.index,\n style = _ref.style;\n var _this$props2 = _this.props,\n DayComponent = _this$props2.DayComponent,\n disabledDates = _this$props2.disabledDates,\n disabledDays = _this$props2.disabledDays,\n locale = _this$props2.locale,\n maxDate = _this$props2.maxDate,\n minDate = _this$props2.minDate,\n months = _this$props2.months,\n passThrough = _this$props2.passThrough,\n rowHeight = _this$props2.rowHeight,\n selected = _this$props2.selected,\n showOverlay = _this$props2.showOverlay,\n theme = _this$props2.theme,\n today = _this$props2.today;\n var _months$index2 = months[index],\n month = _months$index2.month,\n year = _months$index2.year;\n\n var key = year + ':' + month;\n\n var _this$memoize = _this.memoize(key),\n date = _this$memoize.date,\n rows = _this$memoize.rows;\n\n return React.createElement(Month, _extends({\n key: key,\n selected: selected,\n DayComponent: DayComponent,\n monthDate: date,\n disabledDates: disabledDates,\n disabledDays: disabledDays,\n maxDate: maxDate,\n minDate: minDate,\n rows: rows,\n rowHeight: rowHeight,\n isScrolling: false,\n showOverlay: showOverlay,\n today: today,\n theme: theme,\n style: style,\n locale: locale,\n passThrough: passThrough\n }, passThrough.Month));\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n MonthList.prototype.componentDidMount = function componentDidMount() {\n this.scrollEl = this.VirtualList.rootNode;\n };\n\n MonthList.prototype.componentWillReceiveProps = function componentWillReceiveProps(_ref2) {\n var scrollDate = _ref2.scrollDate;\n\n if (scrollDate !== this.props.scrollDate) {\n this.setState({\n scrollTop: this.getDateOffset(scrollDate)\n });\n }\n };\n\n MonthList.prototype.getDateOffset = function getDateOffset(date) {\n var _props = this.props,\n min = _props.min,\n rowHeight = _props.rowHeight,\n weekStartsOn = _props.locale.weekStartsOn,\n height = _props.height;\n\n var weeks = getWeek(startOfMonth(min), parse(date), weekStartsOn);\n\n return weeks * rowHeight - (height - rowHeight / 2) / 2;\n };\n\n MonthList.prototype.render = function render() {\n var _classNames;\n\n var _props2 = this.props,\n height = _props2.height,\n isScrolling = _props2.isScrolling,\n onScroll = _props2.onScroll,\n overscanMonthCount = _props2.overscanMonthCount,\n months = _props2.months,\n rowHeight = _props2.rowHeight,\n width = _props2.width;\n var scrollTop = this.state.scrollTop;\n\n\n return React.createElement(VirtualList, {\n ref: this._getRef,\n width: width,\n height: height,\n itemCount: months.length,\n itemSize: this.getMonthHeight,\n estimatedItemSize: rowHeight * AVERAGE_ROWS_PER_MONTH,\n renderItem: this.renderMonth,\n onScroll: onScroll,\n scrollOffset: scrollTop,\n className: classNames(styles.root, (_classNames = {}, _classNames[styles.scrolling] = isScrolling, _classNames)),\n style: { lineHeight: rowHeight + 'px' },\n overscanCount: overscanMonthCount\n });\n };\n\n return MonthList;\n}(Component);\n\nexport { MonthList as default };\nprocess.env.NODE_ENV !== \"production\" ? MonthList.propTypes = {\n disabledDates: PropTypes.arrayOf(PropTypes.string),\n disabledDays: PropTypes.arrayOf(PropTypes.number),\n height: PropTypes.number,\n isScrolling: PropTypes.bool,\n locale: PropTypes.object,\n maxDate: PropTypes.instanceOf(Date),\n min: PropTypes.instanceOf(Date),\n minDate: PropTypes.instanceOf(Date),\n months: PropTypes.arrayOf(PropTypes.object),\n onDaySelect: PropTypes.func,\n onScroll: PropTypes.func,\n overscanMonthCount: PropTypes.number,\n rowHeight: PropTypes.number,\n selectedDate: PropTypes.instanceOf(Date),\n showOverlay: PropTypes.bool,\n theme: PropTypes.object,\n today: PropTypes.instanceOf(Date),\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])\n} : void 0;","function easing(time) {\n return 1 - --time * time * time * time;\n};\n\n/**\n * Given a start/end point of a scroll and time elapsed, calculate the scroll position we should be at\n * @param {Number} start - the initial value\n * @param {Number} stop - the final desired value\n * @param {Number} elapsed - the amount of time elapsed since we started animating\n * @param {Number} - duration - the duration of the animation\n * @return {Number} - The value we should use on the next tick\n */\nfunction getValue(start, end, elapsed, duration) {\n if (elapsed > duration) return end;\n return start + (end - start) * easing(elapsed / duration);\n};\n\n/**\n * Smoothly animate between two values\n * @param {Number} fromValue - the initial value\n * @param {Function} onUpdate - A function that is called on each tick\n * @param {Function} onComplete - A callback that is fired once the scroll animation ends\n * @param {Number} duration - the desired duration of the scroll animation\n */\nexport default function animate(_ref) {\n var fromValue = _ref.fromValue,\n toValue = _ref.toValue,\n onUpdate = _ref.onUpdate,\n onComplete = _ref.onComplete,\n _ref$duration = _ref.duration,\n duration = _ref$duration === undefined ? 600 : _ref$duration;\n\n var startTime = performance.now();\n\n var tick = function tick() {\n var elapsed = performance.now() - startTime;\n\n window.requestAnimationFrame(function () {\n return onUpdate(getValue(fromValue, toValue, elapsed, duration),\n // Callback\n elapsed <= duration ? tick : onComplete);\n });\n };\n\n tick();\n};","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport { scrollbarSize } from '../utils';\nvar styles = {\n 'root': 'Cal__Weekdays__root',\n 'day': 'Cal__Weekdays__day'\n};\n\nvar Weekdays = function (_PureComponent) {\n _inherits(Weekdays, _PureComponent);\n\n function Weekdays() {\n _classCallCheck(this, Weekdays);\n\n return _possibleConstructorReturn(this, _PureComponent.apply(this, arguments));\n }\n\n Weekdays.prototype.render = function render() {\n var _props = this.props,\n weekdays = _props.weekdays,\n weekStartsOn = _props.weekStartsOn,\n theme = _props.theme;\n\n var orderedWeekdays = [].concat(weekdays.slice(weekStartsOn, 7), weekdays.slice(0, weekStartsOn));\n\n return React.createElement(\n 'ul',\n {\n className: styles.root,\n style: {\n backgroundColor: theme.weekdayColor,\n color: theme.textColor.active,\n paddingRight: scrollbarSize\n },\n 'aria-hidden': true\n },\n orderedWeekdays.map(function (val, index) {\n return React.createElement(\n 'li',\n { key: 'Weekday-' + index, className: styles.day },\n val\n );\n })\n );\n };\n\n return Weekdays;\n}(PureComponent);\n\nexport { Weekdays as default };\nprocess.env.NODE_ENV !== \"production\" ? Weekdays.propTypes = {\n locale: PropTypes.object,\n theme: PropTypes.object\n} : void 0;","var _class, _temp;\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport VirtualList from 'react-tiny-virtual-list';\nimport classNames from 'classnames';\nimport { emptyFn, getMonthsForYear } from '../utils';\nimport format from 'date-fns/format';\nimport isAfter from 'date-fns/is_after';\nimport isBefore from 'date-fns/is_before';\nimport isSameMonth from 'date-fns/is_same_month';\nvar styles = {\n 'root': 'Cal__Years__root',\n 'list': 'Cal__Years__list',\n 'center': 'Cal__Years__center',\n 'year': 'Cal__Years__year',\n 'withMonths': 'Cal__Years__withMonths',\n 'currentMonth': 'Cal__Years__currentMonth',\n 'selected': 'Cal__Years__selected',\n 'disabled': 'Cal__Years__disabled',\n 'active': 'Cal__Years__active',\n 'currentYear': 'Cal__Years__currentYear',\n 'first': 'Cal__Years__first',\n 'last': 'Cal__Years__last'\n};\n\n\nvar SPACING = 40;\n\nvar Years = (_temp = _class = function (_Component) {\n _inherits(Years, _Component);\n\n function Years() {\n _classCallCheck(this, Years);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n Years.prototype.handleClick = function handleClick(date, e) {\n var _props = this.props,\n hideOnSelect = _props.hideOnSelect,\n onSelect = _props.onSelect,\n setDisplay = _props.setDisplay,\n scrollToDate = _props.scrollToDate;\n\n\n onSelect(date, e, function (date) {\n return scrollToDate(date);\n });\n\n if (hideOnSelect) {\n window.requestAnimationFrame(function () {\n return setDisplay('days');\n });\n }\n };\n\n Years.prototype.renderMonths = function renderMonths(year) {\n var _this2 = this;\n\n var _props2 = this.props,\n locale = _props2.locale.locale,\n selected = _props2.selected,\n theme = _props2.theme,\n today = _props2.today,\n min = _props2.min,\n max = _props2.max,\n minDate = _props2.minDate,\n maxDate = _props2.maxDate;\n\n var months = getMonthsForYear(year, selected.getDate());\n\n return React.createElement(\n 'ol',\n null,\n months.map(function (date, index) {\n var _classNames;\n\n var isSelected = isSameMonth(date, selected);\n var isCurrentMonth = isSameMonth(date, today);\n var isDisabled = isBefore(date, min) || isBefore(date, minDate) || isAfter(date, max) || isAfter(date, maxDate);\n var style = Object.assign({}, isSelected && {\n backgroundColor: typeof theme.selectionColor === 'function' ? theme.selectionColor(date) : theme.selectionColor\n }, isCurrentMonth && {\n borderColor: theme.todayColor\n });\n\n return React.createElement(\n 'li',\n {\n key: index,\n onClick: function onClick(e) {\n e.stopPropagation();\n\n if (!isDisabled) {\n _this2.handleClick(date, e);\n }\n },\n className: classNames(styles.month, (_classNames = {}, _classNames[styles.selected] = isSelected, _classNames[styles.currentMonth] = isCurrentMonth, _classNames[styles.disabled] = isDisabled, _classNames)),\n style: style,\n title: 'Set date to ' + format(date, 'MMMM Do, YYYY')\n },\n format(date, 'MMM', { locale: locale })\n );\n })\n );\n };\n\n Years.prototype.render = function render() {\n var _this3 = this;\n\n var _props3 = this.props,\n height = _props3.height,\n selected = _props3.selected,\n showMonths = _props3.showMonths,\n theme = _props3.theme,\n today = _props3.today,\n width = _props3.width;\n\n var currentYear = today.getFullYear();\n var years = this.props.years.slice(0, this.props.years.length);\n var selectedYearIndex = years.indexOf(selected.getFullYear());\n var rowHeight = showMonths ? 110 : 50;\n var heights = years.map(function (val, index) {\n return index === 0 || index === years.length - 1 ? rowHeight + SPACING : rowHeight;\n });\n var containerHeight = years.length * rowHeight < height + 50 ? years.length * rowHeight : height + 50;\n\n return React.createElement(\n 'div',\n {\n className: styles.root,\n style: { color: theme.selectionColor, height: height + 50 }\n },\n React.createElement(VirtualList, {\n ref: 'List',\n className: styles.list,\n width: width,\n height: containerHeight,\n itemCount: years.length,\n estimatedItemSize: rowHeight,\n itemSize: function itemSize(index) {\n return heights[index];\n },\n scrollToIndex: selectedYearIndex !== -1 ? selectedYearIndex : null,\n scrollToAlignment: 'center',\n renderItem: function renderItem(_ref) {\n var _classNames2;\n\n var index = _ref.index,\n style = _ref.style;\n\n var year = years[index];\n var isActive = index === selectedYearIndex;\n\n return React.createElement(\n 'div',\n {\n key: index,\n className: classNames(styles.year, (_classNames2 = {}, _classNames2[styles.active] = !showMonths && isActive, _classNames2[styles.currentYear] = !showMonths && year === currentYear, _classNames2[styles.withMonths] = showMonths, _classNames2[styles.first] = index === 0, _classNames2[styles.last] = index === years.length - 1, _classNames2)),\n onClick: function onClick() {\n return _this3.handleClick(new Date(selected).setYear(year));\n },\n title: 'Set year to ' + year,\n 'data-year': year,\n style: Object.assign({}, style, {\n color: typeof theme.selectionColor === 'function' ? theme.selectionColor(new Date(year, 0, 1)) : theme.selectionColor\n })\n },\n React.createElement(\n 'label',\n null,\n React.createElement(\n 'span',\n {\n style: !showMonths && year === currentYear ? { borderColor: theme.todayColor } : null\n },\n year\n )\n ),\n showMonths && _this3.renderMonths(year)\n );\n }\n })\n );\n };\n\n return Years;\n}(Component), _class.defaultProps = {\n onSelect: emptyFn,\n showMonths: true\n}, _temp);\nexport { Years as default };\nprocess.env.NODE_ENV !== \"production\" ? Years.propTypes = {\n height: PropTypes.number,\n hideOnSelect: PropTypes.bool,\n locale: PropTypes.object,\n max: PropTypes.object,\n maxDate: PropTypes.object,\n min: PropTypes.object,\n minDate: PropTypes.object,\n onSelect: PropTypes.func,\n scrollToDate: PropTypes.func,\n selectedYear: PropTypes.number,\n setDisplay: PropTypes.func,\n theme: PropTypes.object,\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n years: PropTypes.array\n} : void 0;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { PureComponent } from 'react';\nimport classNames from 'classnames';\nimport parse from 'date-fns/parse';\nvar styles = {\n 'root': 'Cal__Day__root',\n 'enabled': 'Cal__Day__enabled',\n 'highlighted': 'Cal__Day__highlighted',\n 'today': 'Cal__Day__today',\n 'disabled': 'Cal__Day__disabled',\n 'selected': 'Cal__Day__selected',\n 'month': 'Cal__Day__month',\n 'year': 'Cal__Day__year',\n 'selection': 'Cal__Day__selection',\n 'day': 'Cal__Day__day',\n 'range': 'Cal__Day__range',\n 'start': 'Cal__Day__start',\n 'end': 'Cal__Day__end',\n 'betweenRange': 'Cal__Day__betweenRange'\n};\n\nvar Day = function (_PureComponent) {\n _inherits(Day, _PureComponent);\n\n function Day() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, Day);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _PureComponent.call.apply(_PureComponent, [this].concat(args))), _this), _this.handleClick = function () {\n var _this$props = _this.props,\n date = _this$props.date,\n isDisabled = _this$props.isDisabled,\n onClick = _this$props.onClick;\n\n\n if (!isDisabled && typeof onClick === 'function') {\n onClick(parse(date));\n }\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n Day.prototype.renderSelection = function renderSelection(selectionColor) {\n var _props = this.props,\n day = _props.day,\n date = _props.date,\n isToday = _props.isToday,\n todayLabel = _props.locale.todayLabel,\n monthShort = _props.monthShort,\n textColor = _props.theme.textColor,\n selectionStyle = _props.selectionStyle;\n\n\n return React.createElement(\n 'div',\n {\n className: styles.selection,\n 'data-date': date,\n style: _extends({\n backgroundColor: this.selectionColor,\n color: textColor.active\n }, selectionStyle)\n },\n React.createElement(\n 'span',\n { className: styles.month },\n isToday ? todayLabel.short || todayLabel.long : monthShort\n ),\n React.createElement(\n 'span',\n { className: styles.day },\n day\n )\n );\n };\n\n Day.prototype.render = function render() {\n var _classNames;\n\n var _props2 = this.props,\n className = _props2.className,\n currentYear = _props2.currentYear,\n date = _props2.date,\n day = _props2.day,\n handlers = _props2.handlers,\n isDisabled = _props2.isDisabled,\n isHighlighted = _props2.isHighlighted,\n isToday = _props2.isToday,\n isSelected = _props2.isSelected,\n monthShort = _props2.monthShort,\n _props2$theme = _props2.theme,\n selectionColor = _props2$theme.selectionColor,\n todayColor = _props2$theme.todayColor,\n year = _props2.year;\n\n var color = void 0;\n\n if (isSelected) {\n color = this.selectionColor = typeof selectionColor === 'function' ? selectionColor(date) : selectionColor;\n } else if (isToday) {\n color = todayColor;\n }\n\n return React.createElement(\n 'li',\n _extends({\n style: color ? { color: color } : null,\n className: classNames(styles.root, (_classNames = {}, _classNames[styles.today] = isToday, _classNames[styles.highlighted] = isHighlighted, _classNames[styles.selected] = isSelected, _classNames[styles.disabled] = isDisabled, _classNames[styles.enabled] = !isDisabled, _classNames), className),\n onClick: this.handleClick,\n 'data-date': date\n }, handlers),\n day === 1 && React.createElement(\n 'span',\n { className: styles.month },\n monthShort\n ),\n isToday ? React.createElement(\n 'span',\n null,\n day\n ) : day,\n day === 1 && currentYear !== year && React.createElement(\n 'span',\n { className: styles.year },\n year\n ),\n isSelected && this.renderSelection()\n );\n };\n\n return Day;\n}(PureComponent);\n\nexport { Day as default };","import _defaultProps from 'recompose/defaultProps';\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { debounce, emptyFn, range, ScrollSpeed } from '../utils';\n\nimport defaultDisplayOptions from '../utils/defaultDisplayOptions';\nimport defaultLocale from '../utils/defaultLocale';\nimport defaultTheme from '../utils/defaultTheme';\nimport Today, { DIRECTION_UP, DIRECTION_DOWN } from '../Today';\nimport Header from '../Header';\nimport MonthList from '../MonthList';\nimport Weekdays from '../Weekdays';\nimport Years from '../Years';\nimport Day from '../Day';\nimport parse from 'date-fns/parse';\nimport format from 'date-fns/format';\nimport startOfDay from 'date-fns/start_of_day';\n\nvar styles = {\n container: {\n 'root': 'Cal__Container__root',\n 'landscape': 'Cal__Container__landscape',\n 'wrapper': 'Cal__Container__wrapper',\n 'listWrapper': 'Cal__Container__listWrapper'\n },\n day: {\n 'root': 'Cal__Day__root',\n 'enabled': 'Cal__Day__enabled',\n 'highlighted': 'Cal__Day__highlighted',\n 'today': 'Cal__Day__today',\n 'disabled': 'Cal__Day__disabled',\n 'selected': 'Cal__Day__selected',\n 'month': 'Cal__Day__month',\n 'year': 'Cal__Day__year',\n 'selection': 'Cal__Day__selection',\n 'day': 'Cal__Day__day',\n 'range': 'Cal__Day__range',\n 'start': 'Cal__Day__start',\n 'end': 'Cal__Day__end',\n 'betweenRange': 'Cal__Day__betweenRange'\n }\n};\n\nexport var withDefaultProps = _defaultProps({\n autoFocus: true,\n DayComponent: Day,\n display: 'days',\n displayOptions: {},\n HeaderComponent: Header,\n height: 500,\n keyboardSupport: true,\n max: new Date(2050, 11, 31),\n maxDate: new Date(2050, 11, 31),\n min: new Date(1980, 0, 1),\n minDate: new Date(1980, 0, 1),\n onHighlightedDateChange: emptyFn,\n onScroll: emptyFn,\n onScrollEnd: emptyFn,\n onSelect: emptyFn,\n passThrough: {},\n rowHeight: 56,\n tabIndex: 1,\n width: 400,\n YearsComponent: Years\n});\n\nvar Calendar = function (_Component) {\n _inherits(Calendar, _Component);\n\n function Calendar(props) {\n _classCallCheck(this, Calendar);\n\n var _this = _possibleConstructorReturn(this, _Component.apply(this, arguments));\n\n _this._displayOptions = {};\n _this._locale = {};\n _this._theme = {};\n\n _this.getCurrentOffset = function () {\n return _this.scrollTop;\n };\n\n _this.getDateOffset = function (date) {\n return _this._MonthList && _this._MonthList.getDateOffset(date);\n };\n\n _this.scrollTo = function (offset) {\n return _this._MonthList && _this._MonthList.scrollTo(offset);\n };\n\n _this.scrollToDate = function () {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();\n var offset = arguments[1];\n var shouldAnimate = arguments[2];\n var display = _this.props.display;\n\n\n return _this._MonthList && _this._MonthList.scrollToDate(date, offset, shouldAnimate && display === 'days', function () {\n return _this.setState({ isScrolling: false });\n });\n };\n\n _this.getScrollSpeed = new ScrollSpeed().getScrollSpeed;\n\n _this.handleScroll = function (scrollTop, e) {\n var _this$props = _this.props,\n onScroll = _this$props.onScroll,\n rowHeight = _this$props.rowHeight;\n var isScrolling = _this.state.isScrolling;\n\n var _this$getDisplayOptio = _this.getDisplayOptions(),\n showTodayHelper = _this$getDisplayOptio.showTodayHelper,\n showOverlay = _this$getDisplayOptio.showOverlay;\n\n var scrollSpeed = _this.scrollSpeed = Math.abs(_this.getScrollSpeed(scrollTop));\n _this.scrollTop = scrollTop;\n\n // We only want to display the months overlay if the user is rapidly scrolling\n if (showOverlay && scrollSpeed > rowHeight && !isScrolling) {\n _this.setState({\n isScrolling: true\n });\n }\n\n if (showTodayHelper) {\n _this.updateTodayHelperPosition(scrollSpeed);\n }\n\n onScroll(scrollTop, e);\n _this.handleScrollEnd();\n };\n\n _this.handleScrollEnd = debounce(function () {\n var onScrollEnd = _this.props.onScrollEnd;\n var isScrolling = _this.state.isScrolling;\n\n var _this$getDisplayOptio2 = _this.getDisplayOptions(),\n showTodayHelper = _this$getDisplayOptio2.showTodayHelper;\n\n if (isScrolling) {\n _this.setState({ isScrolling: false });\n }\n\n if (showTodayHelper) {\n _this.updateTodayHelperPosition(0);\n }\n\n onScrollEnd(_this.scrollTop);\n }, 150);\n\n _this.updateTodayHelperPosition = function (scrollSpeed) {\n var today = _this.today;\n var scrollTop = _this.scrollTop;\n var showToday = _this.state.showToday;\n var _this$props2 = _this.props,\n height = _this$props2.height,\n rowHeight = _this$props2.rowHeight;\n\n var _this$getDisplayOptio3 = _this.getDisplayOptions(),\n todayHelperRowOffset = _this$getDisplayOptio3.todayHelperRowOffset;\n\n var newState = void 0;\n\n if (!_this._todayOffset) {\n _this._todayOffset = _this.getDateOffset(today);\n }\n\n // Today is above the fold\n if (scrollTop >= _this._todayOffset + (height - rowHeight) / 2 + rowHeight * todayHelperRowOffset) {\n if (showToday !== DIRECTION_UP) newState = DIRECTION_UP;\n }\n // Today is below the fold\n else if (scrollTop <= _this._todayOffset - height / 2 - rowHeight * (todayHelperRowOffset + 1)) {\n if (showToday !== DIRECTION_DOWN) newState = DIRECTION_DOWN;\n } else if (showToday && scrollSpeed <= 1) {\n newState = false;\n }\n\n if (scrollTop === 0) {\n newState = false;\n }\n\n if (newState != null) {\n _this.setState({ showToday: newState });\n }\n };\n\n _this.setDisplay = function (display) {\n _this.setState({ display: display });\n };\n\n _this.updateYears(props);\n\n _this.state = {\n display: props.display\n };\n return _this;\n }\n\n Calendar.prototype.componentDidMount = function componentDidMount() {\n var autoFocus = this.props.autoFocus;\n\n\n if (autoFocus) {\n this.node.focus();\n }\n };\n\n Calendar.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {\n var _props = this.props,\n min = _props.min,\n minDate = _props.minDate,\n max = _props.max,\n maxDate = _props.maxDate;\n\n\n if (nextProps.min !== min || nextProps.minDate !== minDate || nextProps.max !== max || nextProps.maxDate !== maxDate) {\n this.updateYears(nextProps);\n }\n\n if (nextProps.display !== this.props.display) {\n this.setState({ display: nextProps.display });\n }\n };\n\n Calendar.prototype.updateYears = function updateYears() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;\n\n this._min = parse(props.min);\n this._max = parse(props.max);\n this._minDate = parse(props.minDate);\n this._maxDate = parse(props.maxDate);\n\n var min = this._min.getFullYear();\n var minMonth = this._min.getMonth();\n var max = this._max.getFullYear();\n var maxMonth = this._max.getMonth();\n\n var months = [];\n var year = void 0,\n month = void 0;\n for (year = min; year <= max; year++) {\n for (month = 0; month < 12; month++) {\n if (year === min && month < minMonth || year === max && month > maxMonth) {\n continue;\n }\n\n months.push({ month: month, year: year });\n }\n }\n\n this.months = months;\n };\n\n Calendar.prototype.getDisabledDates = function getDisabledDates(disabledDates) {\n return disabledDates && disabledDates.map(function (date) {\n return format(parse(date), 'YYYY-MM-DD');\n });\n };\n\n Calendar.prototype.getDisplayOptions = function getDisplayOptions() {\n var displayOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props.displayOptions;\n\n return Object.assign(this._displayOptions, defaultDisplayOptions, displayOptions);\n };\n\n Calendar.prototype.getLocale = function getLocale() {\n return Object.assign(this._locale, defaultLocale, this.props.locale);\n };\n\n Calendar.prototype.getTheme = function getTheme() {\n return Object.assign(this._theme, defaultTheme, this.props.theme);\n };\n\n Calendar.prototype.render = function render() {\n var _classNames,\n _this2 = this;\n\n var _props2 = this.props,\n className = _props2.className,\n passThrough = _props2.passThrough,\n DayComponent = _props2.DayComponent,\n disabledDays = _props2.disabledDays,\n displayDate = _props2.displayDate,\n height = _props2.height,\n HeaderComponent = _props2.HeaderComponent,\n rowHeight = _props2.rowHeight,\n scrollDate = _props2.scrollDate,\n selected = _props2.selected,\n tabIndex = _props2.tabIndex,\n width = _props2.width,\n YearsComponent = _props2.YearsComponent;\n\n var _getDisplayOptions = this.getDisplayOptions(),\n hideYearsOnSelect = _getDisplayOptions.hideYearsOnSelect,\n layout = _getDisplayOptions.layout,\n overscanMonthCount = _getDisplayOptions.overscanMonthCount,\n shouldHeaderAnimate = _getDisplayOptions.shouldHeaderAnimate,\n showHeader = _getDisplayOptions.showHeader,\n showMonthsForYears = _getDisplayOptions.showMonthsForYears,\n showOverlay = _getDisplayOptions.showOverlay,\n showTodayHelper = _getDisplayOptions.showTodayHelper,\n showWeekdays = _getDisplayOptions.showWeekdays;\n\n var _state = this.state,\n display = _state.display,\n isScrolling = _state.isScrolling,\n showToday = _state.showToday;\n\n var disabledDates = this.getDisabledDates(this.props.disabledDates);\n var locale = this.getLocale();\n var theme = this.getTheme();\n var today = this.today = startOfDay(new Date());\n\n return React.createElement(\n 'div',\n _extends({\n tabIndex: tabIndex,\n className: classNames(className, styles.container.root, (_classNames = {}, _classNames[styles.container.landscape] = layout === 'landscape', _classNames)),\n style: { color: theme.textColor.default, width: width },\n 'aria-label': 'Calendar',\n ref: function ref(node) {\n _this2.node = node;\n }\n }, passThrough.rootNode),\n showHeader && React.createElement(HeaderComponent, _extends({\n selected: selected,\n shouldAnimate: Boolean(shouldHeaderAnimate && display !== 'years'),\n layout: layout,\n theme: theme,\n locale: locale,\n scrollToDate: this.scrollToDate,\n setDisplay: this.setDisplay,\n dateFormat: locale.headerFormat,\n display: display,\n displayDate: displayDate\n }, passThrough.Header)),\n React.createElement(\n 'div',\n { className: styles.container.wrapper },\n showWeekdays && React.createElement(Weekdays, { weekdays: locale.weekdays, weekStartsOn: locale.weekStartsOn, theme: theme }),\n React.createElement(\n 'div',\n { className: styles.container.listWrapper },\n showTodayHelper && React.createElement(Today, {\n scrollToDate: this.scrollToDate,\n show: showToday,\n today: today,\n theme: theme,\n todayLabel: locale.todayLabel.long\n }),\n React.createElement(MonthList, {\n ref: function ref(instance) {\n _this2._MonthList = instance;\n },\n DayComponent: DayComponent,\n disabledDates: disabledDates,\n disabledDays: disabledDays,\n height: height,\n isScrolling: isScrolling,\n locale: locale,\n maxDate: this._maxDate,\n min: this._min,\n minDate: this._minDate,\n months: this.months,\n onScroll: this.handleScroll,\n overscanMonthCount: overscanMonthCount,\n passThrough: passThrough,\n theme: theme,\n today: today,\n rowHeight: rowHeight,\n selected: selected,\n scrollDate: scrollDate,\n showOverlay: showOverlay,\n width: width\n })\n ),\n display === 'years' && React.createElement(YearsComponent, _extends({\n ref: function ref(instance) {\n _this2._Years = instance;\n },\n height: height,\n hideOnSelect: hideYearsOnSelect,\n locale: locale,\n max: this._max,\n maxDate: this._maxDate,\n min: this._min,\n minDate: this._minDate,\n scrollToDate: this.scrollToDate,\n selected: selected,\n setDisplay: this.setDisplay,\n showMonths: showMonthsForYears,\n theme: theme,\n today: today,\n width: width,\n years: range(this._min.getFullYear(), this._max.getFullYear() + 1)\n }, passThrough.Years))\n )\n );\n };\n\n return Calendar;\n}(Component);\n\nexport { Calendar as default };\nprocess.env.NODE_ENV !== \"production\" ? Calendar.propTypes = {\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n DayComponent: PropTypes.func,\n disabledDates: PropTypes.arrayOf(PropTypes.instanceOf(Date)),\n disabledDays: PropTypes.arrayOf(PropTypes.number),\n display: PropTypes.oneOf(['years', 'days']),\n displayOptions: PropTypes.shape({\n hideYearsOnSelect: PropTypes.bool,\n layout: PropTypes.oneOf(['portrait', 'landscape']),\n overscanMonthCount: PropTypes.number,\n shouldHeaderAnimate: PropTypes.bool,\n showHeader: PropTypes.bool,\n showMonthsForYears: PropTypes.bool,\n showOverlay: PropTypes.bool,\n showTodayHelper: PropTypes.bool,\n showWeekdays: PropTypes.bool,\n todayHelperRowOffset: PropTypes.number\n }),\n height: PropTypes.number,\n keyboardSupport: PropTypes.bool,\n locale: PropTypes.shape({\n blank: PropTypes.string,\n headerFormat: PropTypes.string,\n todayLabel: PropTypes.shape({\n long: PropTypes.string,\n short: PropTypes.string\n }),\n weekdays: PropTypes.arrayOf(PropTypes.string),\n weekStartsOn: PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6])\n }),\n max: PropTypes.instanceOf(Date),\n maxDate: PropTypes.instanceOf(Date),\n min: PropTypes.instanceOf(Date),\n minDate: PropTypes.instanceOf(Date),\n onScroll: PropTypes.func,\n onScrollEnd: PropTypes.func,\n onSelect: PropTypes.func,\n rowHeight: PropTypes.number,\n tabIndex: PropTypes.number,\n theme: PropTypes.shape({\n floatingNav: PropTypes.shape({\n background: PropTypes.string,\n chevron: PropTypes.string,\n color: PropTypes.string\n }),\n headerColor: PropTypes.string,\n selectionColor: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n textColor: PropTypes.shape({\n active: PropTypes.string,\n default: PropTypes.string\n }),\n todayColor: PropTypes.string,\n weekdayColor: PropTypes.string\n }),\n width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n YearsComponent: PropTypes.func\n} : void 0;\n;","import _withState from 'recompose/withState';\nimport _withPropsOnChange from 'recompose/withPropsOnChange';\nimport _withProps from 'recompose/withProps';\nimport _compose from 'recompose/compose';\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport { withDefaultProps } from './';\nimport { sanitizeDate, withImmutableProps } from '../utils';\nimport format from 'date-fns/format';\nimport parse from 'date-fns/parse';\n\nexport var enhanceDay = _withPropsOnChange(['selected'], function (props) {\n return {\n isSelected: props.selected === props.date\n };\n});\n\nvar enhanceYear = _withPropsOnChange(['selected'], function (_ref) {\n var selected = _ref.selected;\n return {\n selected: parse(selected)\n };\n});\n\n// Enhancer to handle selecting and displaying a single date\nvar withDateSelection = _compose(withDefaultProps, withImmutableProps(function (_ref2) {\n var DayComponent = _ref2.DayComponent,\n onSelect = _ref2.onSelect,\n setScrollDate = _ref2.setScrollDate,\n YearsComponent = _ref2.YearsComponent;\n return {\n DayComponent: enhanceDay(DayComponent),\n YearsComponent: enhanceYear(YearsComponent)\n };\n}), _withState('scrollDate', 'setScrollDate', function (props) {\n return props.selected || new Date();\n}), _withProps(function (_ref3) {\n var _onSelect = _ref3.onSelect,\n setScrollDate = _ref3.setScrollDate,\n props = _objectWithoutProperties(_ref3, ['onSelect', 'setScrollDate']);\n\n var selected = sanitizeDate(props.selected, props);\n\n return {\n passThrough: {\n Day: {\n onClick: _onSelect\n },\n Years: {\n onSelect: function onSelect(year) {\n return handleYearSelect(year, { onSelect: _onSelect, selected: selected, setScrollDate: setScrollDate });\n }\n }\n },\n selected: selected && format(selected, 'YYYY-MM-DD')\n };\n}));\n\nexport { withDateSelection };\nfunction handleYearSelect(date, _ref4) {\n var setScrollDate = _ref4.setScrollDate,\n selected = _ref4.selected,\n onSelect = _ref4.onSelect;\n\n var newDate = parse(date);\n\n onSelect(newDate);\n setScrollDate(newDate);\n}","import _withState from 'recompose/withState';\nimport _withProps from 'recompose/withProps';\nimport _withHandlers from 'recompose/withHandlers';\nimport _compose from 'recompose/compose';\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nimport addDays from 'date-fns/add_days';\nimport format from 'date-fns/format';\nimport isAfter from 'date-fns/is_after';\nimport isBefore from 'date-fns/is_before';\nimport { keyCodes, withImmutableProps } from '../utils';\n\nvar enhanceDay = _withProps(function (props) {\n return {\n isHighlighted: props.highlightedDate === props.date\n };\n});\n\nexport var withKeyboardSupport = _compose(_withState('highlightedDate', 'setHighlight'), withImmutableProps(function (_ref) {\n var DayComponent = _ref.DayComponent;\n return {\n DayComponent: enhanceDay(DayComponent)\n };\n}), _withHandlers({\n onKeyDown: function onKeyDown(props) {\n return function (e) {\n return handleKeyDown(e, props);\n };\n }\n}), _withProps(function (_ref2) {\n var highlightedDate = _ref2.highlightedDate,\n onKeyDown = _ref2.onKeyDown,\n onSelect = _ref2.onSelect,\n passThrough = _ref2.passThrough,\n setHighlight = _ref2.setHighlight;\n return {\n passThrough: _extends({}, passThrough, {\n Day: _extends({}, passThrough.Day, {\n highlightedDate: format(highlightedDate, 'YYYY-MM-DD'),\n onClick: function onClick(date) {\n setHighlight(null);\n passThrough.Day.onClick(date);\n }\n }),\n rootNode: { onKeyDown: onKeyDown }\n })\n };\n}));\n\nfunction handleKeyDown(e, props) {\n var minDate = props.minDate,\n maxDate = props.maxDate,\n onClick = props.passThrough.Day.onClick,\n setScrollDate = props.setScrollDate,\n setHighlight = props.setHighlight;\n\n var highlightedDate = getInitialDate(props);\n var delta = 0;\n\n if ([keyCodes.left, keyCodes.up, keyCodes.right, keyCodes.down].indexOf(e.keyCode) > -1 && typeof e.preventDefault === 'function') {\n e.preventDefault();\n }\n\n switch (e.keyCode) {\n case keyCodes.enter:\n onClick && onClick(highlightedDate);\n return;\n case keyCodes.left:\n delta = -1;\n break;\n case keyCodes.right:\n delta = +1;\n break;\n case keyCodes.down:\n delta = +7;\n break;\n case keyCodes.up:\n delta = -7;\n break;\n default:\n delta = 0;\n }\n\n if (delta) {\n var newHighlightedDate = addDays(highlightedDate, delta);\n\n // Make sure the new highlighted date isn't before min / max\n if (isBefore(newHighlightedDate, minDate)) {\n newHighlightedDate = new Date(minDate);\n } else if (isAfter(newHighlightedDate, maxDate)) {\n newHighlightedDate = new Date(maxDate);\n }\n\n setScrollDate(newHighlightedDate);\n setHighlight(newHighlightedDate);\n }\n}\n\nfunction getInitialDate(_ref3) {\n var highlightedDate = _ref3.highlightedDate,\n selected = _ref3.selected,\n displayDate = _ref3.displayDate;\n\n return highlightedDate || selected.start || displayDate || selected || new Date();\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { Children, PureComponent } from 'react';\nimport CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup';\nimport classNames from 'classnames';\nvar styles = {\n 'root': 'Cal__Slider__root',\n 'slide': 'Cal__Slider__slide',\n 'wrapper': 'Cal__Slider__wrapper',\n 'arrow': 'Cal__Slider__arrow',\n 'arrowRight': 'Cal__Slider__arrowRight',\n 'arrowLeft': 'Cal__Slider__arrowLeft'\n};\nvar transition = {\n 'enter': 'Cal__transition__enter',\n 'enterActive': 'Cal__transition__enterActive',\n 'leave': 'Cal__transition__leave',\n 'leaveActive': 'Cal__transition__leaveActive'\n};\n\n\nvar DIRECTIONS = {\n LEFT: 0,\n RIGHT: 1\n};\n\nvar Arrow = function Arrow(_ref) {\n var _classNames;\n\n var direction = _ref.direction,\n _onClick = _ref.onClick;\n return React.createElement(\n 'div',\n {\n className: classNames(styles.arrow, (_classNames = {}, _classNames[styles.arrowLeft] = direction === DIRECTIONS.LEFT, _classNames[styles.arrowRight] = direction === DIRECTIONS.RIGHT, _classNames)),\n onClick: function onClick() {\n return _onClick(direction);\n }\n },\n React.createElement(\n 'svg',\n {\n x: '0px',\n y: '0px',\n viewBox: '0 0 26 46'\n },\n React.createElement('path', { d: 'M31.232233,34.767767 C32.2085438,35.7440777 33.7914562,35.7440777 34.767767,34.767767 C35.7440777,33.7914562 35.7440777,32.2085438 34.767767,31.232233 L14.767767,11.232233 C13.7914562,10.2559223 12.2085438,10.2559223 11.232233,11.232233 L-8.767767,31.232233 C-9.7440777,32.2085438 -9.7440777,33.7914562 -8.767767,34.767767 C-7.7914562,35.7440777 -6.2085438,35.7440777 -5.232233,34.767767 L12.9997921,16.5357418 L31.232233,34.767767 Z', id: 'Shape', fill: '#FFF', transform: 'translate(13.000000, 23.000000) rotate(90.000000) translate(-13.000000, -23.000000) ' })\n )\n );\n};\n\nvar Slider = function (_PureComponent) {\n _inherits(Slider, _PureComponent);\n\n function Slider() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, Slider);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _PureComponent.call.apply(_PureComponent, [this].concat(args))), _this), _this.handleClick = function (direction) {\n var _this$props = _this.props,\n children = _this$props.children,\n index = _this$props.index,\n onChange = _this$props.onChange;\n\n\n switch (direction) {\n case DIRECTIONS.LEFT:\n index = Math.max(0, index - 1);\n break;\n case DIRECTIONS.RIGHT:\n index = Math.min(index + 1, children.length);\n break;\n default:\n return;\n }\n\n onChange(index);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n Slider.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n index = _props.index;\n\n\n return React.createElement(\n 'div',\n { className: styles.root },\n index !== 0 && React.createElement(Arrow, { onClick: this.handleClick, direction: DIRECTIONS.LEFT }),\n React.createElement(\n CSSTransitionGroup,\n {\n className: styles.wrapper,\n component: 'div',\n style: {\n transform: 'translate3d(-' + 100 * index + '%, 0, 0)'\n },\n transitionName: transition,\n transitionEnterTimeout: 300,\n transitionLeaveTimeout: 300\n },\n Children.map(children, function (child, i) {\n return React.createElement(\n 'div',\n {\n key: i,\n className: styles.slide,\n style: { transform: 'translateX(' + 100 * i + '%)' }\n },\n child\n );\n })\n ),\n index !== children.length - 1 && React.createElement(Arrow, { onClick: this.handleClick, direction: DIRECTIONS.RIGHT })\n );\n };\n\n return Slider;\n}(PureComponent);\n\nexport { Slider as default };","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport React from 'react';\nimport { withImmutableProps } from '../utils';\nimport defaultSelectionRenderer from './defaultSelectionRenderer';\nimport Slider from './Slider';\nimport parse from 'date-fns/parse';\nimport format from 'date-fns/format';\n\nexport default withImmutableProps(function (_ref) {\n var renderSelection = _ref.renderSelection,\n setDisplayDate = _ref.setDisplayDate;\n return {\n renderSelection: function renderSelection(values, _ref2) {\n var scrollToDate = _ref2.scrollToDate,\n displayDate = _ref2.displayDate,\n props = _objectWithoutProperties(_ref2, ['scrollToDate', 'displayDate']);\n\n if (!values.length) {\n return null;\n }\n\n var dates = values.sort();\n var index = values.indexOf(format(parse(displayDate), 'YYYY-MM-DD'));\n\n return React.createElement(\n Slider,\n {\n index: index !== -1 ? index : dates.length - 1,\n onChange: function onChange(index) {\n return setDisplayDate(dates[index], function () {\n return setTimeout(function () {\n return scrollToDate(dates[index], 0, true);\n }, 50);\n });\n }\n },\n dates.map(function (value) {\n return defaultSelectionRenderer(value, _extends({}, props, {\n key: index,\n scrollToDate: scrollToDate,\n shouldAnimate: false\n }));\n })\n );\n }\n };\n});","import _withState from 'recompose/withState';\nimport _withPropsOnChange from 'recompose/withPropsOnChange';\nimport _withProps from 'recompose/withProps';\nimport _compose from 'recompose/compose';\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport { withDefaultProps } from './';\nimport { sanitizeDate, withImmutableProps } from '../utils';\nimport enhanceHeader from '../Header/withMultipleDates';\nimport format from 'date-fns/format';\nimport parse from 'date-fns/parse';\n\n// Enhance Day component to display selected state based on an array of selected dates\nexport var enhanceDay = _withPropsOnChange(['selected'], function (props) {\n return {\n isSelected: props.selected.indexOf(props.date) !== -1\n };\n});\n\n// Enhance year component\nvar enhanceYears = _withProps(function (_ref) {\n var displayDate = _ref.displayDate;\n return {\n selected: displayDate ? parse(displayDate) : null\n };\n});\n\n// Enhancer to handle selecting and displaying multiple dates\nvar withMultipleDates = _compose(withDefaultProps, _withState('scrollDate', 'setScrollDate', getInitialDate), _withState('displayDate', 'setDisplayDate', getInitialDate), withImmutableProps(function (_ref2) {\n var DayComponent = _ref2.DayComponent,\n HeaderComponent = _ref2.HeaderComponent,\n YearsComponent = _ref2.YearsComponent;\n return {\n DayComponent: enhanceDay(DayComponent),\n HeaderComponent: enhanceHeader(HeaderComponent),\n YearsComponent: enhanceYears(YearsComponent)\n };\n}), _withProps(function (_ref3) {\n var displayDate = _ref3.displayDate,\n onSelect = _ref3.onSelect,\n setDisplayDate = _ref3.setDisplayDate,\n scrollToDate = _ref3.scrollToDate,\n props = _objectWithoutProperties(_ref3, ['displayDate', 'onSelect', 'setDisplayDate', 'scrollToDate']);\n\n return {\n passThrough: {\n Day: {\n onClick: function onClick(date) {\n return handleSelect(date, { onSelect: onSelect, setDisplayDate: setDisplayDate });\n }\n },\n Header: {\n setDisplayDate: setDisplayDate\n },\n Years: {\n displayDate: displayDate,\n onSelect: function onSelect(year, e, callback) {\n return handleYearSelect(year, callback);\n },\n selected: displayDate\n }\n },\n selected: props.selected.filter(function (date) {\n return sanitizeDate(date, props);\n }).map(function (date) {\n return format(date, 'YYYY-MM-DD');\n })\n };\n}));\n\nexport { withMultipleDates };\nfunction handleSelect(date, _ref4) {\n var onSelect = _ref4.onSelect,\n setDisplayDate = _ref4.setDisplayDate;\n\n onSelect(date);\n setDisplayDate(date);\n}\n\nfunction handleYearSelect(date, callback) {\n callback(parse(date));\n}\n\nfunction getInitialDate(_ref5) {\n var selected = _ref5.selected;\n\n return selected.length ? selected[0] : new Date();\n}\n\nexport function defaultMultipleDateInterpolation(date, selected) {\n var selectedMap = selected.map(function (date) {\n return format(date, 'YYYY-MM-DD');\n });\n var index = selectedMap.indexOf(format(date, 'YYYY-MM-DD'));\n\n return index === -1 ? [].concat(selected, [date]) : [].concat(selected.slice(0, index), selected.slice(index + 1));\n}","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nimport React from 'react';\nimport { withImmutableProps } from '../utils';\nimport defaultSelectionRenderer from './defaultSelectionRenderer';\nvar styles = {\n 'root': 'Cal__Header__root',\n 'landscape': 'Cal__Header__landscape',\n 'dateWrapper': 'Cal__Header__dateWrapper',\n 'day': 'Cal__Header__day',\n 'wrapper': 'Cal__Header__wrapper',\n 'blank': 'Cal__Header__blank',\n 'active': 'Cal__Header__active',\n 'year': 'Cal__Header__year',\n 'date': 'Cal__Header__date',\n 'range': 'Cal__Header__range'\n};\n\n\nexport default withImmutableProps(function (_ref) {\n var renderSelection = _ref.renderSelection;\n return {\n renderSelection: function renderSelection(values, props) {\n if (!values || !values.start && !values.end) {\n return null;\n }\n if (values.start === values.end) {\n return defaultSelectionRenderer(values.start, props);\n }\n\n var dateFormat = props.locale && props.locale.headerFormat || 'MMM Do';\n\n return React.createElement(\n 'div',\n { className: styles.range, style: { color: props.theme.headerColor } },\n defaultSelectionRenderer(values.start, _extends({}, props, { dateFormat: dateFormat, key: 'start', shouldAnimate: false })),\n defaultSelectionRenderer(values.end, _extends({}, props, { dateFormat: dateFormat, key: 'end', shouldAnimate: false }))\n );\n }\n };\n});","import _withState from 'recompose/withState';\nimport _withPropsOnChange from 'recompose/withPropsOnChange';\nimport _withProps from 'recompose/withProps';\nimport _compose from 'recompose/compose';\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport classNames from 'classnames';\nimport { withDefaultProps } from './';\nimport { withImmutableProps } from '../utils';\nimport isBefore from 'date-fns/is_before';\nimport enhanceHeader from '../Header/withRange';\nimport format from 'date-fns/format';\nimport parse from 'date-fns/parse';\nvar styles = {\n 'root': 'Cal__Day__root',\n 'enabled': 'Cal__Day__enabled',\n 'highlighted': 'Cal__Day__highlighted',\n 'today': 'Cal__Day__today',\n 'disabled': 'Cal__Day__disabled',\n 'selected': 'Cal__Day__selected',\n 'month': 'Cal__Day__month',\n 'year': 'Cal__Day__year',\n 'selection': 'Cal__Day__selection',\n 'day': 'Cal__Day__day',\n 'range': 'Cal__Day__range',\n 'start': 'Cal__Day__start',\n 'end': 'Cal__Day__end',\n 'betweenRange': 'Cal__Day__betweenRange'\n};\n\n\nvar isTouchDevice = false;\n\nexport var EVENT_TYPE = {\n END: 3,\n HOVER: 2,\n START: 1\n};\n\n// Enhance Day component to display selected state based on an array of selected dates\nexport var enhanceDay = _withPropsOnChange(['selected'], function (_ref) {\n var _classNames;\n\n var date = _ref.date,\n selected = _ref.selected,\n theme = _ref.theme;\n\n var isSelected = date >= selected.start && date <= selected.end;\n var isStart = date === selected.start;\n var isEnd = date === selected.end;\n var isRange = !(isStart && isEnd);\n var style = isRange && (isStart && { backgroundColor: theme.accentColor } || isEnd && { borderColor: theme.accentColor });\n\n return {\n className: isSelected && isRange && classNames(styles.range, (_classNames = {}, _classNames[styles.start] = isStart, _classNames[styles.betweenRange] = !isStart && !isEnd, _classNames[styles.end] = isEnd, _classNames)),\n isSelected: isSelected,\n selectionStyle: style\n };\n});\n\n// Enhancer to handle selecting and displaying multiple dates\nvar withRange = _compose(withDefaultProps, _withState('scrollDate', 'setScrollDate', getInitialDate), _withState('displayKey', 'setDisplayKey', getInitialDate), _withState('selectionStart', 'setSelectionStart', null), withImmutableProps(function (_ref2) {\n var DayComponent = _ref2.DayComponent,\n HeaderComponent = _ref2.HeaderComponent,\n YearsComponent = _ref2.YearsComponent;\n return {\n DayComponent: enhanceDay(DayComponent),\n HeaderComponent: enhanceHeader(HeaderComponent)\n };\n}), _withProps(function (_ref3) {\n var displayKey = _ref3.displayKey,\n passThrough = _ref3.passThrough,\n selected = _ref3.selected,\n setDisplayKey = _ref3.setDisplayKey,\n props = _objectWithoutProperties(_ref3, ['displayKey', 'passThrough', 'selected', 'setDisplayKey']);\n\n return {\n /* eslint-disable sort-keys */\n passThrough: _extends({}, passThrough, {\n Day: {\n onClick: function onClick(date) {\n return handleSelect(date, _extends({ selected: selected }, props));\n },\n handlers: {\n onMouseOver: !isTouchDevice && props.selectionStart ? function (e) {\n return handleMouseOver(e, _extends({ selected: selected }, props));\n } : null\n }\n },\n Years: {\n selected: selected && selected[displayKey],\n onSelect: function onSelect(date) {\n return handleYearSelect(date, _extends({ displayKey: displayKey, selected: selected }, props));\n }\n },\n Header: {\n onYearClick: function onYearClick(date, e, key) {\n return setDisplayKey(key || 'start');\n }\n }\n }),\n selected: {\n start: selected && format(selected.start, 'YYYY-MM-DD'),\n end: selected && format(selected.end, 'YYYY-MM-DD')\n }\n };\n}));\n\nexport { withRange };\nfunction getSortedSelection(_ref4) {\n var start = _ref4.start,\n end = _ref4.end;\n\n return isBefore(start, end) ? { start: start, end: end } : { start: end, end: start };\n}\n\nfunction handleSelect(date, _ref5) {\n var onSelect = _ref5.onSelect,\n selected = _ref5.selected,\n selectionStart = _ref5.selectionStart,\n setSelectionStart = _ref5.setSelectionStart;\n\n if (selectionStart) {\n onSelect(_extends({\n eventType: EVENT_TYPE.END\n }, getSortedSelection({\n start: selectionStart,\n end: date\n })));\n setSelectionStart(null);\n } else {\n onSelect({ eventType: EVENT_TYPE.START, start: date, end: date });\n setSelectionStart(date);\n }\n}\n\nfunction handleMouseOver(e, _ref6) {\n var onSelect = _ref6.onSelect,\n selectionStart = _ref6.selectionStart;\n\n var dateStr = e.target.getAttribute('data-date');\n var date = dateStr && parse(dateStr);\n\n if (!date) {\n return;\n }\n\n onSelect(_extends({\n eventType: EVENT_TYPE.HOVER\n }, getSortedSelection({\n start: selectionStart,\n end: date\n })));\n}\n\nfunction handleYearSelect(date, _ref7) {\n var _Object$assign;\n\n var displayKey = _ref7.displayKey,\n onSelect = _ref7.onSelect,\n selected = _ref7.selected,\n setScrollDate = _ref7.setScrollDate;\n\n\n setScrollDate(date);\n onSelect(getSortedSelection(Object.assign({}, selected, (_Object$assign = {}, _Object$assign[displayKey] = parse(date), _Object$assign))));\n}\n\nfunction getInitialDate(_ref8) {\n var selected = _ref8.selected;\n\n return selected && selected.start || new Date();\n}\n\nif (typeof window !== 'undefined') {\n window.addEventListener('touchstart', function onTouch() {\n isTouchDevice = true;\n\n window.removeEventListener('touchstart', onTouch, false);\n });\n}","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _class, _temp2;\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { Component } from 'react';\nimport Calendar from './Calendar';\nimport { withDateSelection } from './Calendar/withDateSelection';\n\nexport { default as Calendar } from './Calendar';\nexport { withDateSelection } from './Calendar/withDateSelection';\nexport { withKeyboardSupport } from './Calendar/withKeyboardSupport';\nexport { withMultipleDates, defaultMultipleDateInterpolation } from './Calendar/withMultipleDates';\nexport { withRange, EVENT_TYPE } from './Calendar/withRange';\n\n/*\n * By default, Calendar is a controlled component.\n * Export a sensible default for minimal setup\n */\nvar DefaultCalendar = (_temp2 = _class = function (_Component) {\n _inherits(DefaultCalendar, _Component);\n\n function DefaultCalendar() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, DefaultCalendar);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = {\n selected: typeof _this.props.selected !== 'undefined' ? _this.props.selected : new Date()\n }, _this.handleSelect = function (selected) {\n var _this$props = _this.props,\n onSelect = _this$props.onSelect,\n interpolateSelection = _this$props.interpolateSelection;\n\n\n if (typeof onSelect === 'function') {\n onSelect(selected);\n }\n\n _this.setState({ selected: interpolateSelection(selected, _this.state.selected) });\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n DefaultCalendar.prototype.componentWillReceiveProps = function componentWillReceiveProps(_ref) {\n var selected = _ref.selected;\n\n if (selected !== this.props.selected) {\n this.setState({ selected: selected });\n }\n };\n\n DefaultCalendar.prototype.render = function render() {\n // eslint-disable-next-line no-unused-vars\n var _props = this.props,\n Component = _props.Component,\n interpolateSelection = _props.interpolateSelection,\n props = _objectWithoutProperties(_props, ['Component', 'interpolateSelection']);\n\n return React.createElement(Component, _extends({}, props, {\n onSelect: this.handleSelect,\n selected: this.state.selected\n }));\n };\n\n return DefaultCalendar;\n}(Component), _class.defaultProps = {\n Component: withDateSelection(Calendar),\n interpolateSelection: function interpolateSelection(selected) {\n return selected;\n }\n}, _temp2);\nexport { DefaultCalendar as default };"],"sourceRoot":""}