{"version":3,"sources":["webpack:///../node_modules/react-images/lib/Lightbox.js","webpack:///../node_modules/react-images/node_modules/prop-types/factoryWithThrowingShims.js","webpack:///../node_modules/react-images/node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///../node_modules/asap/browser-asap.js","webpack:///../node_modules/asap/browser-raw.js","webpack:///../node_modules/aphrodite/lib/generate.js","webpack:///../node_modules/inline-style-prefixer/static.js","webpack:///../node_modules/inline-style-prefixer/lib/static/prefixAll.js","webpack:///../node_modules/inline-style-prefixer/lib/utils/sortPrefixedStyle.js","webpack:///../node_modules/inline-style-prefixer/lib/utils/isPrefixedProperty.js","webpack:///../node_modules/inline-style-prefixer/lib/static/plugins/position.js","webpack:///../node_modules/inline-style-prefixer/lib/static/plugins/calc.js","webpack:///../node_modules/inline-style-prefixer/lib/static/plugins/cursor.js","webpack:///../node_modules/inline-style-prefixer/lib/static/plugins/flex.js","webpack:///../node_modules/inline-style-prefixer/lib/static/plugins/sizing.js","webpack:///../node_modules/inline-style-prefixer/lib/static/plugins/gradient.js","webpack:///../node_modules/inline-style-prefixer/lib/static/plugins/transition.js","webpack:///../node_modules/hyphenate-style-name/index.js","webpack:///../node_modules/inline-style-prefixer/lib/static/plugins/flexboxIE.js","webpack:///../node_modules/inline-style-prefixer/lib/static/plugins/flexboxOld.js","webpack:///../node_modules/react-scrolllock/dist/index.js","webpack:///../node_modules/react-scrolllock/dist/ScrollLock.js","webpack:///../node_modules/react-prop-toggle/dist/index.js","webpack:///../node_modules/react-prop-toggle/dist/LifeCycleProvider.js","webpack:///../node_modules/react-scrolllock/dist/withTouchListeners.js","webpack:///../node_modules/aphrodite/lib/no-important.js","webpack:///../node_modules/react-images/lib/icons/arrowLeft.js","webpack:///../node_modules/react-images/lib/icons/arrowRight.js","webpack:///../node_modules/react-images/lib/icons/close.js","webpack:///../node_modules/react-images/lib/components/Container.js","webpack:///../node_modules/react-images/lib/components/Footer.js","webpack:///../node_modules/react-images/lib/components/Header.js","webpack:///../node_modules/react-images/lib/components/PaginatedThumbnails.js","webpack:///../node_modules/react-images/lib/components/Thumbnail.js","webpack:///../node_modules/react-images/lib/components/Portal.js","webpack:///../node_modules/react-transition-group/index.js","webpack:///../node_modules/react-transition-group/CSSTransition.js","webpack:///../node_modules/react-transition-group/node_modules/prop-types/factoryWithThrowingShims.js","webpack:///../node_modules/react-transition-group/node_modules/prop-types/lib/ReactPropTypesSecret.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/react-transition-group/ReplaceTransition.js","webpack:///../node_modules/react-transition-group/utils/ChildMapping.js","webpack:///../node_modules/react-images/lib/components/PassContext.js","webpack:///../node_modules/react-images/lib/components/Spinner.js","webpack:///../node_modules/react-images/lib/utils/bindFunctions.js","webpack:///../node_modules/react-images/lib/utils/canUseDom.js","webpack:///../node_modules/detect-it/lib/index.js","webpack:///../node_modules/detect-hover/lib/index.js","webpack:///../node_modules/detect-pointer/lib/index.js","webpack:///../node_modules/detect-touch-events/lib/index.js","webpack:///../node_modules/detect-passive-events/lib/index.js","webpack:///../node_modules/react-image-magnify/node_modules/prop-types/factoryWithThrowingShims.js","webpack:///../node_modules/fbjs/lib/emptyFunction.js","webpack:///../node_modules/fbjs/lib/invariant.js","webpack:///../node_modules/react-image-magnify/node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///../node_modules/object.omit/index.js","webpack:///../node_modules/object.omit/node_modules/is-extendable/index.js","webpack:///../node_modules/is-plain-object/index.js","webpack:///../node_modules/isobject/index.js","webpack:///../node_modules/react-cursor-position/node_modules/prop-types/index.js","webpack:///../node_modules/react-cursor-position/node_modules/prop-types/factoryWithThrowingShims.js","webpack:///../node_modules/react-cursor-position/node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///../node_modules/react-required-if/index.js","webpack:///../node_modules/fast-deep-equal/index.js","webpack:///../node_modules/react-cursor-position/dist/es/lib/ElementRelativeCursorPosition.js","webpack:///../node_modules/react-cursor-position/dist/es/utils/addEventListener.js","webpack:///../node_modules/react-cursor-position/dist/es/constants.js","webpack:///../node_modules/react-cursor-position/dist/es/utils/noop.js","webpack:///../node_modules/react-cursor-position/dist/es/ReactCursorPosition.js","webpack:///../node_modules/react-image-magnify/dist/es/lib/imageRatio.js","webpack:///../node_modules/react-image-magnify/dist/es/lib/imageCoordinates.js","webpack:///../node_modules/react-image-magnify/dist/es/prop-types/Image.js","webpack:///../node_modules/react-image-magnify/dist/es/constants/index.js","webpack:///../node_modules/react-image-magnify/dist/es/prop-types/EnlargedImage.js","webpack:///../node_modules/react-image-magnify/dist/es/utils/index.js","webpack:///../node_modules/react-image-magnify/dist/es/prop-types/Point.js","webpack:///../node_modules/react-image-magnify/dist/es/lib/styles.js","webpack:///../node_modules/react-image-magnify/dist/es/EnlargedImage.js","webpack:///../node_modules/react-image-magnify/dist/es/RenderEnlargedImage.js","webpack:///../node_modules/react-image-magnify/dist/es/lens/negative-space/Lens.js","webpack:///../node_modules/react-image-magnify/dist/es/prop-types/Lens.js","webpack:///../node_modules/react-image-magnify/dist/es/lens/negative-space/LensTop.js","webpack:///../node_modules/react-image-magnify/dist/es/lens/negative-space/LensLeft.js","webpack:///../node_modules/react-image-magnify/dist/es/lens/negative-space/LensRight.js","webpack:///../node_modules/react-image-magnify/dist/es/lens/negative-space/LensBottom.js","webpack:///../node_modules/react-image-magnify/dist/es/lens/negative-space/index.js","webpack:///../node_modules/react-image-magnify/dist/es/lens/positive-space/assets/textured-lens-data-uri.js","webpack:///../node_modules/react-image-magnify/dist/es/lens/positive-space/index.js","webpack:///../node_modules/react-image-magnify/dist/es/hint/DisplayUntilActive.js","webpack:///../node_modules/react-image-magnify/dist/es/hint/DefaultHint.js","webpack:///../node_modules/react-image-magnify/dist/es/lib/lens.js","webpack:///../node_modules/react-image-magnify/dist/es/lib/dimensions.js","webpack:///../node_modules/react-image-magnify/dist/es/ReactImageMagnify.js","webpack:///../node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///../node_modules/react-images/node_modules/prop-types/index.js","webpack:///../node_modules/react-image-magnify/node_modules/prop-types/index.js","webpack:///../node_modules/react-images/lib/theme.js","webpack:///../node_modules/aphrodite/no-important.js","webpack:///../node_modules/react-images/lib/utils/deepMerge.js","webpack:///../node_modules/clamp/index.js","webpack:///../node_modules/react-transition-group/node_modules/prop-types/index.js","webpack:///../node_modules/inline-style-prefixer/lib/utils/joinPrefixedValue.js","webpack:///../node_modules/aphrodite/lib/util.js","webpack:///../node_modules/inline-style-prefixer/lib/utils/isPrefixedValue.js","webpack:///../node_modules/aphrodite/lib/index.js","webpack:///../node_modules/aphrodite/lib/inject.js","webpack:///../node_modules/inline-style-prefixer/lib/static/prefixProps.js","webpack:///../node_modules/inline-style-prefixer/lib/utils/capitalizeString.js","webpack:///../node_modules/exenv/index.js","webpack:///../node_modules/react-prop-toggle/dist/PropToggle.js","webpack:///../node_modules/react-scrolllock/dist/utils.js","webpack:///../node_modules/react-images/lib/components/Arrow.js","webpack:///../node_modules/react-images/lib/components/Icon.js","webpack:///../node_modules/react-transition-group/Transition.js","webpack:///../node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js","webpack:///../node_modules/react-transition-group/utils/PropTypes.js","webpack:///../node_modules/react-transition-group/TransitionGroup.js"],"names":["Object","defineProperty","exports","value","_createClass","defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","key","Constructor","protoProps","staticProps","prototype","_propTypes2","_interopRequireDefault","_react","_react2","_aphrodite","_reactScrolllock2","_theme2","_Arrow2","_Container2","_Footer2","_Header2","_PaginatedThumbnails2","_Portal2","_Spinner2","_bindFunctions2","_canUseDom2","_deepMerge2","obj","__esModule","default","normalizeSourceSet","data","sourceSet","srcSet","srcset","Array","isArray","join","Lightbox","_Component","instance","TypeError","_classCallCheck","this","_this","self","call","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","theme","classes","StyleSheet","create","defaultStyles","state","imageLoaded","subClass","superClass","constructor","setPrototypeOf","_inherits","isOpen","enableKeyboardInput","window","addEventListener","handleKeyboardInput","currentImage","preloadImage","handleImageLoaded","nextProps","preloadNextImage","currentIndex","nextIndex","prevIndex","preloadIndex","img","preloadImageData","images","setState","complete","removeEventListener","idx","onload","Image","onerror","src","event","_props","preventDefault","stopPropagation","onClickNext","onClickPrev","id","tagName","onClose","keyCode","gotoPrev","gotoNext","createElement","direction","icon","onClick","title","leftArrowTitle","type","rightArrowTitle","_props2","backdropClosesModal","showThumbnails","width","offsetThumbnails","thumbnail","size","container","gutter","vertical","closeBackdrop","onTouchEnd","className","css","content","style","marginBottom","maxWidth","renderHeader","renderImages","renderSpinner","renderFooter","renderThumbnails","renderArrowPrev","renderArrowNext","preventScroll","_props3","onClickImage","image","sizes","thumbnailsSize","heightOffset","header","height","footer","figure","alt","cursor","maxHeight","_props4","onClickThumbnail","thumbnailOffset","offset","_props5","closeButtonTitle","customControls","showCloseButton","_props6","imageCountSeparator","showImageCount","caption","countCurrent","countSeparator","countTotal","showCount","_props7","spinner","spinnerColor","spinnerSize","Spinner","spinnerActive","color","renderDialog","Component","propTypes","bool","string","number","arrayOf","node","shape","isRequired","oneOfType","element","func","object","defaultProps","onClickShowNextImage","childContextTypes","position","margin","display","WebkitTouchCallout","userSelect","opacity","transition","top","left","transform","pointerEvents","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","module","shim","propName","componentName","location","propFullName","secret","err","Error","name","getShim","ReactPropTypes","array","bigint","symbol","any","elementType","instanceOf","objectOf","oneOf","exact","checkPropTypes","PropTypes","rawAsap","freeTasks","pendingErrors","requestErrorThrow","makeRequestCallFromTimer","shift","asap","task","rawTask","pop","RawTask","error","push","queue","requestFlush","index","flush","scan","newLength","toggle","observer","scope","global","BrowserMutationObserver","MutationObserver","WebKitMutationObserver","callback","timeoutHandle","setTimeout","handleTimer","intervalHandle","setInterval","clearTimeout","clearInterval","document","createTextNode","observe","characterData","_slicedToArray","arr","Symbol","iterator","_arr","_n","_d","_e","undefined","_s","_i","next","done","sliceIterator","_inlineStylePrefixerStatic","_inlineStylePrefixerStatic2","_util","generateCSS","selector","styleTypes","stringHandlers","useImportant","merged","reduce","recursiveMerge","declarations","mediaQueries","pseudoStyles","keys","forEach","generateCSSRuleset","map","pseudoSelector","mediaQuery","handledDeclarations","result","hasOwnProperty","runStringHandlers","prefixedDeclarations","rules","flatten","objectToPairs","_ref","prefixedValues","unprefixedValues","_ref2","_ret","v","indexOf","sort","concat","_ref3","_ref32","stringValue","stringifyValue","ret","kebabifyStyleName","importantify","prefixAll","styles","property","_prefixProps2","prefix","_capitalizeString2","plugins","plugin","base","extend","arguments","baseValue","valueIndex","splice","assignStyles","_sortPrefixedStyle2","_position2","_calc2","_cursor2","_flex2","_sizing2","_gradient2","_transition2","_flexboxIE2","_flexboxOld2","right","_isPrefixedProperty2","sortedStyle","prop","_isPrefixedProperty","match","_isPrefixedValue2","_joinPrefixedValue2","replace","values","_joinPrefixedValue","grab","grabbing","flex","properties","columnWidth","minWidth","minHeight","outputValue","multipleValues","split","val","out","dashCasePrefix","toLowerCase","dashCaseProperty","_hyphenateStyleName2","prefixValue","webkitOutput","filter","_defineProperty","transitionProperty","WebkitTransition","WebkitTransitionProperty","uppercasePattern","msPattern","cache","toHyphenLower","hName","test","alternativeProps","alternativeValues","alignContent","alignSelf","alignItems","justifyContent","order","flexGrow","flexShrink","flexBasis","WebkitBoxOrient","WebkitBoxDirection","wrap","flexWrap","_ScrollLock","get","_extends","assign","source","_exenv","_reactPropToggle","_utils","_withTouchListeners2","LOCK_COUNT","ScrollLock","_PureComponent","apply","canUseDOM","initialHeight","innerHeight","Math","max","scrollTo","pageYOffset","scrollbarSpacer","accountForScrollbars","getPadding","getDocumentHeight","SimpleToggle","overflow","PureComponent","_LifeCycleProvider","_PropToggle","_PropToggle2","LifeCycleProvider","isActive","_objectWithoutProperties","WrappedComponent","TouchProvider","_temp","_len","args","_key","listenerOptions","capture","passive","touchScrollTarget","body","isTouchDevice","preventTouchMove","preventInertiaScroll","allowTouchMove","_inject","_indexJs","StyleSheetServer","StyleSheetTestUtils","styleDefinitions","injectAndGetClassName","fill","_noImportant","Container","contextTypes","backgroundColor","background","boxSizing","paddingBottom","paddingLeft","horizontal","paddingRight","paddingTop","zIndex","Footer","imageCount","footerCount","footerCaption","lineHeight","count","fontSize","_Icon2","Header","close","border","outline","verticalAlign","marginRight","padding","_Thumbnail2","paginatedThumbnails","bottom","textAlign","whiteSpace","arrowStyles","PaginatedThumbnails","hasCustomPage","bind","clampFirst","first","newFirst","setFirst","getFirst","totalCount","thumbnails","baseOffset","slice","active","Thumbnail","_onClick","url","thumbnail__active","e","backgroundImage","backgroundPosition","backgroundSize","borderRadius","boxShadow","activeBorderColor","_reactTransitionGroup","_reactDom","_PassContext2","Portal","portalElement","p","appendChild","componentDidUpdate","render","context","TransitionGroup","CSSTransition","timeout","enter","exit","classNames","children","unmountComponentAtNode","removeChild","_CSSTransition","_ReplaceTransition","_TransitionGroup","_Transition","Transition","ReplaceTransition","newObj","desc","getOwnPropertyDescriptor","set","_interopRequireWildcard","_addClass","_removeClass","addClass","c","removeClass","_React$Component","onEnter","appearing","getClassNames","removeClasses","onEntering","activeClassName","reflowAndAddClass","onEntered","appearClassName","doneClassName","enterClassName","onExit","onExiting","onExited","isStringClassNames","_proto","_this$getClassNames6","scrollTop","_default","classList","add","_hasClass","setAttribute","baseVal","contains","replaceClassName","origClass","classToRemove","RegExp","remove","_args","handleEnter","_len2","_key2","handleLifecycle","handleEntering","_len3","_key3","handleEntered","_len4","_key4","handleExit","_len5","_key5","handleExiting","_len6","_key6","handleExited","_len7","_key7","handler","originalArgs","_child$props","child","Children","toArray","findDOMNode","_this$props","inProp","in","excluded","sourceKeys","_objectWithoutPropertiesLoose","_React$Children$toArr","second","cloneElement","getChildMapping","mergeChildMappings","getInitialChildMapping","appear","getProp","getNextChildMapping","prevChildMapping","nextChildMapping","isValidElement","hasPrev","hasNext","prevChild","isLeaving","mapFn","mapper","prev","getValueForKey","nextKeysPending","pendingKeys","prevKey","childMapping","nextKey","pendingNextKey","_propTypes","PassContext","only","ripple","rippleKeyframes","animationName","animationDuration","animationTimingFunction","animationIterationCount","functions","f","_detectHover2","_detectPointer2","_detectTouchEvents2","_detectPassiveEvents2","detectIt","detectHover","detectPointer","detectTouchEvents","detectPassiveEvents","update","updateOnlyOwnProperties","hasTouch","anyHover","anyFine","passiveEvents","hasSupport","deviceType","every","navigator","userAgent","hasMouse","primaryInput","hover","none","parseInt","exec","matchMedia","matches","anyNone","fine","coarse","anyCoarse","browserSupportsApi","Boolean","TouchEvent","options","noop","invariant","makeEmptyFunction","arg","thatReturns","thatReturnsFalse","thatReturnsTrue","thatReturnsNull","thatReturnsThis","thatReturnsArgument","condition","format","a","b","d","argIndex","framesToPop","isObject","fn","isFunction","res","isPlainObject","isObjectObject","o","toString","ctor","prot","equal","arrA","arrB","dateA","Date","dateB","getTime","regexpA","regexpB","ElementRelativeCursorPosition","el","_rootEl$getBoundingCl","getRootOfEl","getBoundingClientRect","docLeft","docTop","_el$getBoundingClient","elLeft","elTop","x","abs","y","parentElement","documentRelativeElementOffset","lastEvent","getDocumentRelativeCursorPosition","cursorX","cursorY","offsetX","offsetY","round","pageX","pageY","getComputedElementRelativeCursorPosition","elementOffset","getDocumentRelativeElementOffset","eventName","_class","_initialiseProps","detectedEnvironment","isMouseDetected","isTouchDetected","elementDimensions","isPositionOutside","shouldGuardAgainstMouseEmulationByDevices","eventListeners","timers","onTouchStart","onTouchMove","onTouchCancel","onMouseEnter","onMouseMove","onMouseLeave","init","onTouchDetected","setShouldGuardAgainstMouseEmulationByDevices","core","getCursorPosition","getTouchEvent","setPositionState","isActivatedOnTouch","activate","initPressEventCriteria","setPressEventTimer","isCoreReady","shouldStopTouchMovePropagation","setPressEventCriteria","deactivate","unsetShouldGuardAgainstMouseEmulationByDevices","onMouseDetected","clearActivationTimers","schedulActivation","hoverDelayInMs","scheduleDeactivation","hoverOffDelayInMs","environment","onDetectedEnvironmentChanged","isEnabled","enable","willBeEnabled","disable","clearTimers","addEventListeners","removeEventListeners","setElementDimensionsState","getElementDimensions","_core","lastMouseEvent","onActivationChanged","_this2","clearTimer","_state","onPositionChanged","getIsPositionOutside","dimensions","schedule","_this3","scheduleId","_this4","_this5","pressDuration","pressMoveThreshold","currentElTop","initialElTop","_this6","timer","timerName","_state$elementDimensi","touches","reactElement","getIsReactComponent","shouldDecorateChildren","_this7","shouldDecorateChild","decorateChild","ownPropNames","_this8","mapChildProps","getPassThroughProps","ref","WebkitUserSelect","decorateChildren","displayName","_this9","getSmallToLargeElementRatio","smallElement","largeElement","getMinCoordinates","largeImage","getLensModeEnlargedImageCoordinates","containerDimensions","lensCursorOffset","cursorOffset","smallImage","adjustedPosition","getCursorPositionAdjustedForLens","ratio","getSmallToLargeImageRatio","clampImageCoordinates","getInPlaceEnlargedImageCoordinates","minCoordinates","maxCoordinates","imageCoordinates","BaseImageShape","onLoad","onError","LargeImageShape","SmallImageShape","isFluidWidth","INPUT_TYPE","ENLARGED_IMAGE_POSITION","EnlargedImagePosition","EnlargedImageContainerDimensions","ContainerDimensions","getContainerStyle","userSpecifiedStyle","isSmallImageFluidWidth","priorityContainerStyle","getSmallImageStyle","prioritySmallImageStyle","enlargedImageContainerStyleCache","getEnlargedImageContainerStyle","params","_cache$params","memoizedParams","memoizedStyle","compositStyle","containerStyle","fadeDurationInMs","isTransitionActive","primaryStyle","isInPlaceMode","isPortalRendered","baseContainerStyle","sharedPositionStyle","marginLeft","getPrimaryEnlargedImageContainerStyle","priorityStyle","getPriorityEnlargedImageContainerStyle","isTransitionEntering","isTransitionLeaving","isTransitionDone","scheduleCssTransition","timerId","willIsActiveChange","willIsPositionOutsideChange","isTrainsitionDone","containerClassName","imageClassName","isLazyLoaded","_props3$largeImage","_props3$largeImage$al","_props3$largeImage$on","_props3$largeImage$on2","component","imageStyle","isVisible","translate","WebkitTransform","msTransform","getEnlargedImageStyle","getImageCoordinates","Point","RenderEnlargedImage","isMounted","portalId","getElementById","compositProps","createPortal","EnlargedImage","isPortalEnabledForTouch","isPortalIdImplemented","parentSpecifiedStyle","computedStyle","translateX","translateY","userStyle","clearLensHeight","clearLensWidth","computedHeight","clearLensBottom","NegativeSpaceLens","inputProps","compositLensStyle","PositiveSpaceLens","_props$cursorOffset","_props$cursorOffset2","cursorOffsetX","cursorOffsetY","_props$position","positionX","positionY","_props$smallImage","imageHeight","imageWidth","_dimensions","maxTop","maxLeft","_dimensions2","_positionOffset","positionOffset","defaultStyle","DisplayUntilActive","hasShown","shouldHideAfterFirstActivation","shouldShow","setHasShown","DefaultHint","hintTextMouse","hintTextTouch","fontFamily","getLensCursorOffsetDimension","enlargedImageContainerDimension","getEnlargedImageContainerDimension","containerDimension","smallImageDimension","ReactImageMagnify","MOUSE","TOUCH","smallImageWidth","smallImageHeight","detectedInputType","isMouseDeteced","onSmallImageLoad","setSmallImageDimensionState","onDetectedInputTypeChanged","_props$smallImage$onL","_smallImageEl","smallImageEl","offsetWidth","offsetHeight","_props$smallImage$onE","lensStyle","enlargedImageContainerClassName","enlargedImageContainerStyle","enlargedImageClassName","enlargedImageStyle","enlargedImagePortalId","isEnlargedImagePortalEnabledForTouch","HintComponent","hintComponent","isHintEnabled","shouldHideHintAfterFirstActivation","enlargedImageContainerDimensions","getLargeToSmallImageRatio","getLensCursorOffset","Lens","lensComponent","ReactCursorPosition","shouldShowLens","fluidWidth","fluidHeight","userDefinedEnlargedImagePosition","enlargedImagePosition","OVER","enlargedImagePlacement","_props$enlargedImageC","containerWidth","containerHeight","_smallImage","shouldUsePositiveSpaceLens","_typeof","deepMerge","extended","min","replacer","mapObj","pairs","list","memo","UPPERCASE_RE","MS_RE","kebabify","isUnitlessNumber","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flexPositive","flexNegative","flexOrder","gridRow","gridColumn","fontWeight","lineClamp","orphans","tabSize","widows","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","prefixes","charAt","toUpperCase","substring","prefixKey","hashObject","str","l","h","k","charCodeAt","murmurhash2_32_gc","JSON","stringify","IMPORTANT_RE","_","important","sheetDefinition","_name","_definition","rehydrate","renderedClassNames","addRenderedClassNames","renderStatic","renderFunc","reset","startBuffering","html","flushToString","getRenderedClassNames","suppressStyleInjection","clearBufferAndResumeStyleInjection","_asap","_asap2","_generate","styleTag","injectStyleOnce","finalVal","injectGeneratedCSSOnce","alreadyInjected","injectionBuffer","isBuffering","generatedCSS","flushToStyleTag","definitions","generated","cssContent","cssContents","querySelector","head","getElementsByTagName","styleSheet","cssText","injectStyleTag","validDefinitions","def","s","ExecutionEnvironment","canUseWorkers","Worker","canUseEventListeners","attachEvent","canUseViewport","screen","attributes","PropToggle","originalAttributes","originalStyles","_props$target","attributeKeys","styleKeys","getPropertyValue","setProperty","getAttribute","_props$target2","removeAttribute","totalScroll","scrollHeight","currentScroll","maxTouchPoints","currentPadding","clientWidth","innerWidth","camelToKebab","getWindowHeight","multiplier","clientHeight","parse","isNaN","Arrow","arrow","arrow__size__medium","marginTop","arrow__size__small","arrow__direction__right","arrow__direction__left","_arrowLeft2","_arrowRight2","_close2","icons","arrowLeft","arrowRight","Icon","dangerouslySetInnerHTML","__html","EXITING","ENTERED","ENTERING","EXITED","UNMOUNTED","_reactLifecyclesCompat","initialStatus","parentGroup","transitionGroup","isMounting","appearStatus","unmountOnExit","mountOnEnter","status","nextCallback","getChildContext","getDerivedStateFromProps","prevState","componentDidMount","updateStatus","prevProps","nextStatus","componentWillUnmount","cancelNextCallback","getTimeouts","mounting","performEnter","performExit","timeouts","enterTimeout","safeSetState","onTransitionEnd","cancel","nextState","setNextCallback","doesNotHaveTimeoutOrListener","addEndListener","childProps","polyfill","componentWillMount","componentWillReceiveProps","componentWillUpdate","__reactInternalSnapshotFlag","__reactInternalSnapshot","getSnapshotBeforeUpdate","isReactComponent","foundWillMountName","foundWillReceivePropsName","foundWillUpdateName","UNSAFE_componentWillMount","UNSAFE_componentWillReceiveProps","UNSAFE_componentWillUpdate","newApiName","maybeSnapshot","snapshot","__suppressDeprecationWarning","classNamesShape","timeoutsShape","_ChildMapping","_assertThisInitialized","firstRender","appeared","mounted","currentChildMapping","childFactory"],"mappings":"2FAEAA,OAAOC,eAAeC,EAAS,aAAc,CAC5CC,OAAO,IAGR,IAAIC,EAAe,WAAc,SAASC,EAAiBC,EAAQC,GAAS,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CAAE,IAAIE,EAAaH,EAAMC,GAAIE,EAAWC,WAAaD,EAAWC,aAAc,EAAOD,EAAWE,cAAe,EAAU,UAAWF,IAAYA,EAAWG,UAAW,GAAMb,OAAOC,eAAeK,EAAQI,EAAWI,IAAKJ,IAAiB,OAAO,SAAUK,EAAaC,EAAYC,GAAiJ,OAA9HD,GAAYX,EAAiBU,EAAYG,UAAWF,GAAiBC,GAAaZ,EAAiBU,EAAaE,GAAqBF,GAA7gB,GAIfI,EAAcC,EAFD,EAAQ,MAIrBC,EAAS,EAAQ,GAEjBC,EAAUF,EAAuBC,GAEjCE,EAAa,EAAQ,KAIrBC,EAAoBJ,EAFD,EAAQ,OAM3BK,EAAUL,EAFD,EAAQ,MAMjBM,EAAUN,EAFD,EAAQ,MAMjBO,EAAcP,EAFD,EAAQ,OAMrBQ,EAAWR,EAFD,EAAQ,OAMlBS,EAAWT,EAFD,EAAQ,OAMlBU,EAAwBV,EAFD,EAAQ,OAM/BW,EAAWX,EAFD,EAAQ,OAMlBY,EAAYZ,EAFD,EAAQ,OAMnBa,EAAkBb,EAFD,EAAQ,OAMzBc,EAAcd,EAFD,EAAQ,OAMrBe,EAAcf,EAFD,EAAQ,MAIzB,SAASA,EAAuBgB,GAAO,OAAOA,GAAOA,EAAIC,WAAaD,EAAM,CAAEE,QAASF,GASvF,SAASG,EAAmBC,GAC3B,IAAIC,EAAYD,EAAKE,QAAUF,EA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AAV5M,EAAgB,MAAO,GAAI,IAA2D/Y,EAAKN,EAA5DF,EAAS,GAAQomB,EAAa1mB,OAAO4S,KAAKiH,GAAqB,IAAKrZ,EAAI,EAAGA,EAAIkmB,EAAWjmB,OAAQD,IAAOM,EAAM4lB,EAAWlmB,GAAQimB,EAASzS,QAAQlT,IAAQ,IAAaR,EAAOQ,GAAO+Y,EAAO/Y,IAAQ,OAAOR,EA6G1RqmB,CAA8BL,EAAa,CAAC,YAAa,iBAEjE7E,EAAW7K,EAAOxT,KAAKa,MAAMwd,UAAU1O,IAAI85B,GAK/C,cAJOtsC,EAAM2mB,cACN3mB,EAAM+gB,aACN/gB,EAAMghB,KAEK,OAAdnW,EACKqW,EAGFpgB,EAAOiB,QAAQuE,cAAcuE,EAAW7K,EAAOkhB,IAGjDN,EArFT,CAsFE9f,EAAOiB,QAAQ8I,WAEjB+V,EAAgBhV,kBAAoB,CAClCk9B,gBAAiB/gB,EAAWhmB,QAAQ0J,OAAOJ,YAE7CuV,EAAgB9V,UAyDZ,GACJ8V,EAAgBlV,aA7KG,CACjBitB,UAAW,MACX2T,aAAc,SAAsB3mB,GAClC,OAAOA,IA4KX,IAAInC,GAAW,EAAImlB,EAAuBiC,UAAUhqB,GAEpDjhB,EAAQoC,QAAUyhB,EAClB5W,EAAOjN,QAAUA,EAAiB","file":"3.e8d9c8edbe4ce139b617.js","sourcesContent":["'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _aphrodite = require('aphrodite');\n\nvar _reactScrolllock = require('react-scrolllock');\n\nvar _reactScrolllock2 = _interopRequireDefault(_reactScrolllock);\n\nvar _theme = require('./theme');\n\nvar _theme2 = _interopRequireDefault(_theme);\n\nvar _Arrow = require('./components/Arrow');\n\nvar _Arrow2 = _interopRequireDefault(_Arrow);\n\nvar _Container = require('./components/Container');\n\nvar _Container2 = _interopRequireDefault(_Container);\n\nvar _Footer = require('./components/Footer');\n\nvar _Footer2 = _interopRequireDefault(_Footer);\n\nvar _Header = require('./components/Header');\n\nvar _Header2 = _interopRequireDefault(_Header);\n\nvar _PaginatedThumbnails = require('./components/PaginatedThumbnails');\n\nvar _PaginatedThumbnails2 = _interopRequireDefault(_PaginatedThumbnails);\n\nvar _Portal = require('./components/Portal');\n\nvar _Portal2 = _interopRequireDefault(_Portal);\n\nvar _Spinner = require('./components/Spinner');\n\nvar _Spinner2 = _interopRequireDefault(_Spinner);\n\nvar _bindFunctions = require('./utils/bindFunctions');\n\nvar _bindFunctions2 = _interopRequireDefault(_bindFunctions);\n\nvar _canUseDom = require('./utils/canUseDom');\n\nvar _canUseDom2 = _interopRequireDefault(_canUseDom);\n\nvar _deepMerge = require('./utils/deepMerge');\n\nvar _deepMerge2 = _interopRequireDefault(_deepMerge);\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\n// consumers sometimes provide incorrect type or casing\nfunction normalizeSourceSet(data) {\n\tvar sourceSet = data.srcSet || data.srcset;\n\n\tif (Array.isArray(sourceSet)) {\n\t\treturn sourceSet.join();\n\t}\n\n\treturn sourceSet;\n}\n\nvar Lightbox = function (_Component) {\n\t_inherits(Lightbox, _Component);\n\n\tfunction Lightbox(props) {\n\t\t_classCallCheck(this, Lightbox);\n\n\t\tvar _this = _possibleConstructorReturn(this, (Lightbox.__proto__ || Object.getPrototypeOf(Lightbox)).call(this, props));\n\n\t\t_this.theme = (0, _deepMerge2.default)(_theme2.default, props.theme);\n\t\t_this.classes = _aphrodite.StyleSheet.create((0, _deepMerge2.default)(defaultStyles, _this.theme));\n\t\t_this.state = { imageLoaded: false };\n\n\t\t_bindFunctions2.default.call(_this, ['gotoNext', 'gotoPrev', 'closeBackdrop', 'handleKeyboardInput', 'handleImageLoaded']);\n\t\treturn _this;\n\t}\n\n\t_createClass(Lightbox, [{\n\t\tkey: 'getChildContext',\n\t\tvalue: function getChildContext() {\n\t\t\treturn {\n\t\t\t\ttheme: this.theme\n\t\t\t};\n\t\t}\n\t}, {\n\t\tkey: 'componentDidMount',\n\t\tvalue: function componentDidMount() {\n\t\t\tif (this.props.isOpen) {\n\t\t\t\tif (this.props.enableKeyboardInput) {\n\t\t\t\t\twindow.addEventListener('keydown', this.handleKeyboardInput);\n\t\t\t\t}\n\t\t\t\tif (typeof this.props.currentImage === 'number') {\n\t\t\t\t\tthis.preloadImage(this.props.currentImage, this.handleImageLoaded);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: 'componentWillReceiveProps',\n\t\tvalue: function componentWillReceiveProps(nextProps) {\n\t\t\tif (!_canUseDom2.default) return;\n\n\t\t\t// preload images\n\t\t\tif (nextProps.preloadNextImage) {\n\t\t\t\tvar currentIndex = this.props.currentImage;\n\t\t\t\tvar nextIndex = nextProps.currentImage + 1;\n\t\t\t\tvar prevIndex = nextProps.currentImage - 1;\n\t\t\t\tvar preloadIndex = void 0;\n\n\t\t\t\tif (currentIndex && nextProps.currentImage > currentIndex) {\n\t\t\t\t\tpreloadIndex = nextIndex;\n\t\t\t\t} else if (currentIndex && nextProps.currentImage < currentIndex) {\n\t\t\t\t\tpreloadIndex = prevIndex;\n\t\t\t\t}\n\n\t\t\t\t// if we know the user's direction just get one image\n\t\t\t\t// otherwise, to be safe, we need to grab one in each direction\n\t\t\t\tif (preloadIndex) {\n\t\t\t\t\tthis.preloadImage(preloadIndex);\n\t\t\t\t} else {\n\t\t\t\t\tthis.preloadImage(prevIndex);\n\t\t\t\t\tthis.preloadImage(nextIndex);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// preload current image\n\t\t\tif (this.props.currentImage !== nextProps.currentImage || !this.props.isOpen && nextProps.isOpen) {\n\t\t\t\tvar img = this.preloadImageData(nextProps.images[nextProps.currentImage], this.handleImageLoaded);\n\t\t\t\tif (img) this.setState({ imageLoaded: img.complete });\n\t\t\t}\n\n\t\t\t// add/remove event listeners\n\t\t\tif (!this.props.isOpen && nextProps.isOpen && nextProps.enableKeyboardInput) {\n\t\t\t\twindow.addEventListener('keydown', this.handleKeyboardInput);\n\t\t\t}\n\t\t\tif (!nextProps.isOpen && nextProps.enableKeyboardInput) {\n\t\t\t\twindow.removeEventListener('keydown', this.handleKeyboardInput);\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: 'componentWillUnmount',\n\t\tvalue: function componentWillUnmount() {\n\t\t\tif (this.props.enableKeyboardInput) {\n\t\t\t\twindow.removeEventListener('keydown', this.handleKeyboardInput);\n\t\t\t}\n\t\t}\n\n\t\t// ==============================\n\t\t// METHODS\n\t\t// ==============================\n\n\t}, {\n\t\tkey: 'preloadImage',\n\t\tvalue: function preloadImage(idx, onload) {\n\t\t\treturn this.preloadImageData(this.props.images[idx], onload);\n\t\t}\n\t}, {\n\t\tkey: 'preloadImageData',\n\t\tvalue: function preloadImageData(data, onload) {\n\t\t\tif (!data) return;\n\t\t\tvar img = new Image();\n\t\t\tvar sourceSet = normalizeSourceSet(data);\n\n\t\t\t// TODO: add error handling for missing images\n\t\t\timg.onerror = onload;\n\t\t\timg.onload = onload;\n\t\t\timg.src = data.src;\n\n\t\t\tif (sourceSet) img.srcset = sourceSet;\n\n\t\t\treturn img;\n\t\t}\n\t}, {\n\t\tkey: 'gotoNext',\n\t\tvalue: function gotoNext(event) {\n\t\t\tvar _props = this.props,\n\t\t\t currentImage = _props.currentImage,\n\t\t\t images = _props.images;\n\t\t\tvar imageLoaded = this.state.imageLoaded;\n\n\n\t\t\tif (!imageLoaded || currentImage === images.length - 1) return;\n\n\t\t\tif (event) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\n\t\t\tthis.props.onClickNext();\n\t\t}\n\t}, {\n\t\tkey: 'gotoPrev',\n\t\tvalue: function gotoPrev(event) {\n\t\t\tvar currentImage = this.props.currentImage;\n\t\t\tvar imageLoaded = this.state.imageLoaded;\n\n\n\t\t\tif (!imageLoaded || currentImage === 0) return;\n\n\t\t\tif (event) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\n\t\t\tthis.props.onClickPrev();\n\t\t}\n\t}, {\n\t\tkey: 'closeBackdrop',\n\t\tvalue: function closeBackdrop(event) {\n\t\t\t// make sure event only happens if they click the backdrop\n\t\t\t// and if the caption is widening the figure element let that respond too\n\t\t\tif (event.target.id === 'lightboxBackdrop' || event.target.tagName === 'FIGURE') {\n\t\t\t\tthis.props.onClose();\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: 'handleKeyboardInput',\n\t\tvalue: function handleKeyboardInput(event) {\n\t\t\tif (event.keyCode === 37) {\n\t\t\t\t// left\n\t\t\t\tthis.gotoPrev(event);\n\t\t\t\treturn true;\n\t\t\t} else if (event.keyCode === 39) {\n\t\t\t\t// right\n\t\t\t\tthis.gotoNext(event);\n\t\t\t\treturn true;\n\t\t\t} else if (event.keyCode === 27) {\n\t\t\t\t// esc\n\t\t\t\tthis.props.onClose();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}, {\n\t\tkey: 'handleImageLoaded',\n\t\tvalue: function handleImageLoaded() {\n\t\t\tthis.setState({ imageLoaded: true });\n\t\t}\n\n\t\t// ==============================\n\t\t// RENDERERS\n\t\t// ==============================\n\n\t}, {\n\t\tkey: 'renderArrowPrev',\n\t\tvalue: function renderArrowPrev() {\n\t\t\tif (this.props.currentImage === 0) return null;\n\n\t\t\treturn _react2.default.createElement(_Arrow2.default, {\n\t\t\t\tdirection: 'left',\n\t\t\t\ticon: 'arrowLeft',\n\t\t\t\tonClick: this.gotoPrev,\n\t\t\t\ttitle: this.props.leftArrowTitle,\n\t\t\t\ttype: 'button'\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: 'renderArrowNext',\n\t\tvalue: function renderArrowNext() {\n\t\t\tif (this.props.currentImage === this.props.images.length - 1) return null;\n\n\t\t\treturn _react2.default.createElement(_Arrow2.default, {\n\t\t\t\tdirection: 'right',\n\t\t\t\ticon: 'arrowRight',\n\t\t\t\tonClick: this.gotoNext,\n\t\t\t\ttitle: this.props.rightArrowTitle,\n\t\t\t\ttype: 'button'\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: 'renderDialog',\n\t\tvalue: function renderDialog() {\n\t\t\tvar _props2 = this.props,\n\t\t\t backdropClosesModal = _props2.backdropClosesModal,\n\t\t\t isOpen = _props2.isOpen,\n\t\t\t showThumbnails = _props2.showThumbnails,\n\t\t\t width = _props2.width;\n\t\t\tvar imageLoaded = this.state.imageLoaded;\n\n\n\t\t\tif (!isOpen) return _react2.default.createElement('span', { key: 'closed' });\n\n\t\t\tvar offsetThumbnails = 0;\n\t\t\tif (showThumbnails) {\n\t\t\t\toffsetThumbnails = this.theme.thumbnail.size + this.theme.container.gutter.vertical;\n\t\t\t}\n\n\t\t\treturn _react2.default.createElement(\n\t\t\t\t_Container2.default,\n\t\t\t\t{\n\t\t\t\t\tkey: 'open',\n\t\t\t\t\tonClick: backdropClosesModal && this.closeBackdrop,\n\t\t\t\t\tonTouchEnd: backdropClosesModal && this.closeBackdrop\n\t\t\t\t},\n\t\t\t\t_react2.default.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\tnull,\n\t\t\t\t\t_react2.default.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: (0, _aphrodite.css)(this.classes.content), style: { marginBottom: offsetThumbnails, maxWidth: width } },\n\t\t\t\t\t\timageLoaded && this.renderHeader(),\n\t\t\t\t\t\tthis.renderImages(),\n\t\t\t\t\t\tthis.renderSpinner(),\n\t\t\t\t\t\timageLoaded && this.renderFooter()\n\t\t\t\t\t),\n\t\t\t\t\timageLoaded && this.renderThumbnails(),\n\t\t\t\t\timageLoaded && this.renderArrowPrev(),\n\t\t\t\t\timageLoaded && this.renderArrowNext(),\n\t\t\t\t\tthis.props.preventScroll && _react2.default.createElement(_reactScrolllock2.default, null)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}, {\n\t\tkey: 'renderImages',\n\t\tvalue: function renderImages() {\n\t\t\tvar _props3 = this.props,\n\t\t\t currentImage = _props3.currentImage,\n\t\t\t images = _props3.images,\n\t\t\t onClickImage = _props3.onClickImage,\n\t\t\t showThumbnails = _props3.showThumbnails;\n\t\t\tvar imageLoaded = this.state.imageLoaded;\n\n\n\t\t\tif (!images || !images.length) return null;\n\n\t\t\tvar image = images[currentImage];\n\t\t\tvar sourceSet = normalizeSourceSet(image);\n\t\t\tvar sizes = sourceSet ? '100vw' : null;\n\n\t\t\tvar thumbnailsSize = showThumbnails ? this.theme.thumbnail.size : 0;\n\t\t\tvar heightOffset = this.theme.header.height + this.theme.footer.height + thumbnailsSize + this.theme.container.gutter.vertical + 'px';\n\n\t\t\treturn _react2.default.createElement(\n\t\t\t\t'figure',\n\t\t\t\t{ className: (0, _aphrodite.css)(this.classes.figure) },\n\t\t\t\t_react2.default.createElement('img', {\n\t\t\t\t\tclassName: (0, _aphrodite.css)(this.classes.image, imageLoaded && this.classes.imageLoaded),\n\t\t\t\t\tonClick: onClickImage,\n\t\t\t\t\tsizes: sizes,\n\t\t\t\t\talt: image.alt,\n\t\t\t\t\tsrc: image.src,\n\t\t\t\t\tsrcSet: sourceSet,\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\tcursor: onClickImage ? 'pointer' : 'auto',\n\t\t\t\t\t\tmaxHeight: 'calc(100vh - ' + heightOffset + ')'\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t);\n\t\t}\n\t}, {\n\t\tkey: 'renderThumbnails',\n\t\tvalue: function renderThumbnails() {\n\t\t\tvar _props4 = this.props,\n\t\t\t images = _props4.images,\n\t\t\t currentImage = _props4.currentImage,\n\t\t\t onClickThumbnail = _props4.onClickThumbnail,\n\t\t\t showThumbnails = _props4.showThumbnails,\n\t\t\t thumbnailOffset = _props4.thumbnailOffset;\n\n\n\t\t\tif (!showThumbnails) return;\n\n\t\t\treturn _react2.default.createElement(_PaginatedThumbnails2.default, {\n\t\t\t\tcurrentImage: currentImage,\n\t\t\t\timages: images,\n\t\t\t\toffset: thumbnailOffset,\n\t\t\t\tonClickThumbnail: onClickThumbnail\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: 'renderHeader',\n\t\tvalue: function renderHeader() {\n\t\t\tvar _props5 = this.props,\n\t\t\t closeButtonTitle = _props5.closeButtonTitle,\n\t\t\t customControls = _props5.customControls,\n\t\t\t onClose = _props5.onClose,\n\t\t\t showCloseButton = _props5.showCloseButton;\n\n\n\t\t\treturn _react2.default.createElement(_Header2.default, {\n\t\t\t\tcustomControls: customControls,\n\t\t\t\tonClose: onClose,\n\t\t\t\tshowCloseButton: showCloseButton,\n\t\t\t\tcloseButtonTitle: closeButtonTitle\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: 'renderFooter',\n\t\tvalue: function renderFooter() {\n\t\t\tvar _props6 = this.props,\n\t\t\t currentImage = _props6.currentImage,\n\t\t\t images = _props6.images,\n\t\t\t imageCountSeparator = _props6.imageCountSeparator,\n\t\t\t showImageCount = _props6.showImageCount;\n\n\n\t\t\tif (!images || !images.length) return null;\n\n\t\t\treturn _react2.default.createElement(_Footer2.default, {\n\t\t\t\tcaption: images[currentImage].caption,\n\t\t\t\tcountCurrent: currentImage + 1,\n\t\t\t\tcountSeparator: imageCountSeparator,\n\t\t\t\tcountTotal: images.length,\n\t\t\t\tshowCount: showImageCount\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: 'renderSpinner',\n\t\tvalue: function renderSpinner() {\n\t\t\tvar _props7 = this.props,\n\t\t\t spinner = _props7.spinner,\n\t\t\t spinnerColor = _props7.spinnerColor,\n\t\t\t spinnerSize = _props7.spinnerSize;\n\t\t\tvar imageLoaded = this.state.imageLoaded;\n\n\t\t\tvar Spinner = spinner;\n\n\t\t\treturn _react2.default.createElement(\n\t\t\t\t'div',\n\t\t\t\t{ className: (0, _aphrodite.css)(this.classes.spinner, !imageLoaded && this.classes.spinnerActive) },\n\t\t\t\t_react2.default.createElement(Spinner, {\n\t\t\t\t\tcolor: spinnerColor,\n\t\t\t\t\tsize: spinnerSize\n\t\t\t\t})\n\t\t\t);\n\t\t}\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\treturn _react2.default.createElement(\n\t\t\t\t_Portal2.default,\n\t\t\t\tnull,\n\t\t\t\tthis.renderDialog()\n\t\t\t);\n\t\t}\n\t}]);\n\n\treturn Lightbox;\n}(_react.Component);\n\nLightbox.propTypes = {\n\tbackdropClosesModal: _propTypes2.default.bool,\n\tcloseButtonTitle: _propTypes2.default.string,\n\tcurrentImage: _propTypes2.default.number,\n\tcustomControls: _propTypes2.default.arrayOf(_propTypes2.default.node),\n\tenableKeyboardInput: _propTypes2.default.bool,\n\timageCountSeparator: _propTypes2.default.string,\n\timages: _propTypes2.default.arrayOf(_propTypes2.default.shape({\n\t\tsrc: _propTypes2.default.string.isRequired,\n\t\tsrcSet: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.arrayOf(_propTypes2.default.string)]),\n\t\tcaption: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element]),\n\t\tthumbnail: _propTypes2.default.string\n\t})).isRequired,\n\tisOpen: _propTypes2.default.bool,\n\tleftArrowTitle: _propTypes2.default.string,\n\tonClickImage: _propTypes2.default.func,\n\tonClickNext: _propTypes2.default.func,\n\tonClickPrev: _propTypes2.default.func,\n\tonClose: _propTypes2.default.func.isRequired,\n\tpreloadNextImage: _propTypes2.default.bool,\n\tpreventScroll: _propTypes2.default.bool,\n\trightArrowTitle: _propTypes2.default.string,\n\tshowCloseButton: _propTypes2.default.bool,\n\tshowImageCount: _propTypes2.default.bool,\n\tshowThumbnails: _propTypes2.default.bool,\n\tspinner: _propTypes2.default.func,\n\tspinnerColor: _propTypes2.default.string,\n\tspinnerSize: _propTypes2.default.number,\n\ttheme: _propTypes2.default.object,\n\tthumbnailOffset: _propTypes2.default.number,\n\twidth: _propTypes2.default.number\n};\nLightbox.defaultProps = {\n\tcloseButtonTitle: 'Close (Esc)',\n\tcurrentImage: 0,\n\tenableKeyboardInput: true,\n\timageCountSeparator: ' of ',\n\tleftArrowTitle: 'Previous (Left arrow key)',\n\tonClickShowNextImage: true,\n\tpreloadNextImage: true,\n\tpreventScroll: true,\n\trightArrowTitle: 'Next (Right arrow key)',\n\tshowCloseButton: true,\n\tshowImageCount: true,\n\tspinner: _Spinner2.default,\n\tspinnerColor: 'white',\n\tspinnerSize: 100,\n\ttheme: {},\n\tthumbnailOffset: 2,\n\twidth: 1024\n};\nLightbox.childContextTypes = {\n\ttheme: _propTypes2.default.object.isRequired\n};\n\nvar defaultStyles = {\n\tcontent: {\n\t\tposition: 'relative'\n\t},\n\tfigure: {\n\t\tmargin: 0 // remove browser default\n\t},\n\timage: {\n\t\tdisplay: 'block', // removes browser default gutter\n\t\theight: 'auto',\n\t\tmargin: '0 auto', // maintain center on very short screens OR very narrow image\n\t\tmaxWidth: '100%',\n\n\t\t// disable user select\n\t\tWebkitTouchCallout: 'none',\n\t\tuserSelect: 'none',\n\n\t\t// opacity animation on image load\n\t\topacity: 0,\n\t\ttransition: 'opacity 0.3s'\n\t},\n\timageLoaded: {\n\t\topacity: 1\n\t},\n\tspinner: {\n\t\tposition: 'absolute',\n\t\ttop: '50%',\n\t\tleft: '50%',\n\t\ttransform: 'translate(-50%, -50%)',\n\n\t\t// opacity animation to make spinner appear with delay\n\t\topacity: 0,\n\t\ttransition: 'opacity 0.3s',\n\t\tpointerEvents: 'none'\n\t},\n\tspinnerActive: {\n\t\topacity: 1\n\t}\n};\n\nexports.default = Lightbox;","/**\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\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\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\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","\"use strict\";\n\n// rawAsap provides everything we need except exception management.\nvar rawAsap = require(\"./raw\");\n// RawTasks are recycled to reduce GC churn.\nvar freeTasks = [];\n// We queue errors to ensure they are thrown in right order (FIFO).\n// Array-as-queue is good enough here, since we are just dealing with exceptions.\nvar pendingErrors = [];\nvar requestErrorThrow = rawAsap.makeRequestCallFromTimer(throwFirstError);\n\nfunction throwFirstError() {\n if (pendingErrors.length) {\n throw pendingErrors.shift();\n }\n}\n\n/**\n * Calls a task as soon as possible after returning, in its own event, with priority\n * over other events like animation, reflow, and repaint. An error thrown from an\n * event will not interrupt, nor even substantially slow down the processing of\n * other events, but will be rather postponed to a lower priority event.\n * @param {{call}} task A callable object, typically a function that takes no\n * arguments.\n */\nmodule.exports = asap;\nfunction asap(task) {\n var rawTask;\n if (freeTasks.length) {\n rawTask = freeTasks.pop();\n } else {\n rawTask = new RawTask();\n }\n rawTask.task = task;\n rawAsap(rawTask);\n}\n\n// We wrap tasks with recyclable task objects. A task object implements\n// `call`, just like a function.\nfunction RawTask() {\n this.task = null;\n}\n\n// The sole purpose of wrapping the task is to catch the exception and recycle\n// the task object after its single use.\nRawTask.prototype.call = function () {\n try {\n this.task.call();\n } catch (error) {\n if (asap.onerror) {\n // This hook exists purely for testing purposes.\n // Its name will be periodically randomized to break any code that\n // depends on its existence.\n asap.onerror(error);\n } else {\n // In a web browser, exceptions are not fatal. However, to avoid\n // slowing down the queue of pending tasks, we rethrow the error in a\n // lower priority turn.\n pendingErrors.push(error);\n requestErrorThrow();\n }\n } finally {\n this.task = null;\n freeTasks[freeTasks.length] = this;\n }\n};\n","\"use strict\";\n\n// Use the fastest means possible to execute a task in its own turn, with\n// priority over other events including IO, animation, reflow, and redraw\n// events in browsers.\n//\n// An exception thrown by a task will permanently interrupt the processing of\n// subsequent tasks. The higher level `asap` function ensures that if an\n// exception is thrown by a task, that the task queue will continue flushing as\n// soon as possible, but if you use `rawAsap` directly, you are responsible to\n// either ensure that no exceptions are thrown from your task, or to manually\n// call `rawAsap.requestFlush` if an exception is thrown.\nmodule.exports = rawAsap;\nfunction rawAsap(task) {\n if (!queue.length) {\n requestFlush();\n flushing = true;\n }\n // Equivalent to push, but avoids a function call.\n queue[queue.length] = task;\n}\n\nvar queue = [];\n// Once a flush has been requested, no further calls to `requestFlush` are\n// necessary until the next `flush` completes.\nvar flushing = false;\n// `requestFlush` is an implementation-specific method that attempts to kick\n// off a `flush` event as quickly as possible. `flush` will attempt to exhaust\n// the event queue before yielding to the browser's own event loop.\nvar requestFlush;\n// The position of the next task to execute in the task queue. This is\n// preserved between calls to `flush` so that it can be resumed if\n// a task throws an exception.\nvar index = 0;\n// If a task schedules additional tasks recursively, the task queue can grow\n// unbounded. To prevent memory exhaustion, the task queue will periodically\n// truncate already-completed tasks.\nvar capacity = 1024;\n\n// The flush function processes all tasks that have been scheduled with\n// `rawAsap` unless and until one of those tasks throws an exception.\n// If a task throws an exception, `flush` ensures that its state will remain\n// consistent and will resume where it left off when called again.\n// However, `flush` does not make any arrangements to be called again if an\n// exception is thrown.\nfunction flush() {\n while (index < queue.length) {\n var currentIndex = index;\n // Advance the index before calling the task. This ensures that we will\n // begin flushing on the next task the task throws an error.\n index = index + 1;\n queue[currentIndex].call();\n // Prevent leaking memory for long chains of recursive calls to `asap`.\n // If we call `asap` within tasks scheduled by `asap`, the queue will\n // grow, but to avoid an O(n) walk for every task we execute, we don't\n // shift tasks off the queue after they have been executed.\n // Instead, we periodically shift 1024 tasks off the queue.\n if (index > capacity) {\n // Manually shift all values starting at the index back to the\n // beginning of the queue.\n for (var scan = 0, newLength = queue.length - index; scan < newLength; scan++) {\n queue[scan] = queue[scan + index];\n }\n queue.length -= index;\n index = 0;\n }\n }\n queue.length = 0;\n index = 0;\n flushing = false;\n}\n\n// `requestFlush` is implemented using a strategy based on data collected from\n// every available SauceLabs Selenium web driver worker at time of writing.\n// https://docs.google.com/spreadsheets/d/1mG-5UYGup5qxGdEMWkhP6BWCz053NUb2E1QoUTU16uA/edit#gid=783724593\n\n// Safari 6 and 6.1 for desktop, iPad, and iPhone are the only browsers that\n// have WebKitMutationObserver but not un-prefixed MutationObserver.\n// Must use `global` or `self` instead of `window` to work in both frames and web\n// workers. `global` is a provision of Browserify, Mr, Mrs, or Mop.\n\n/* globals self */\nvar scope = typeof global !== \"undefined\" ? global : self;\nvar BrowserMutationObserver = scope.MutationObserver || scope.WebKitMutationObserver;\n\n// MutationObservers are desirable because they have high priority and work\n// reliably everywhere they are implemented.\n// They are implemented in all modern browsers.\n//\n// - Android 4-4.3\n// - Chrome 26-34\n// - Firefox 14-29\n// - Internet Explorer 11\n// - iPad Safari 6-7.1\n// - iPhone Safari 7-7.1\n// - Safari 6-7\nif (typeof BrowserMutationObserver === \"function\") {\n requestFlush = makeRequestCallFromMutationObserver(flush);\n\n// MessageChannels are desirable because they give direct access to the HTML\n// task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera\n// 11-12, and in web workers in many engines.\n// Although message channels yield to any queued rendering and IO tasks, they\n// would be better than imposing the 4ms delay of timers.\n// However, they do not work reliably in Internet Explorer or Safari.\n\n// Internet Explorer 10 is the only browser that has setImmediate but does\n// not have MutationObservers.\n// Although setImmediate yields to the browser's renderer, it would be\n// preferrable to falling back to setTimeout since it does not have\n// the minimum 4ms penalty.\n// Unfortunately there appears to be a bug in Internet Explorer 10 Mobile (and\n// Desktop to a lesser extent) that renders both setImmediate and\n// MessageChannel useless for the purposes of ASAP.\n// https://github.com/kriskowal/q/issues/396\n\n// Timers are implemented universally.\n// We fall back to timers in workers in most engines, and in foreground\n// contexts in the following browsers.\n// However, note that even this simple case requires nuances to operate in a\n// broad spectrum of browsers.\n//\n// - Firefox 3-13\n// - Internet Explorer 6-9\n// - iPad Safari 4.3\n// - Lynx 2.8.7\n} else {\n requestFlush = makeRequestCallFromTimer(flush);\n}\n\n// `requestFlush` requests that the high priority event queue be flushed as\n// soon as possible.\n// This is useful to prevent an error thrown in a task from stalling the event\n// queue if the exception handled by Node.js’s\n// `process.on(\"uncaughtException\")` or by a domain.\nrawAsap.requestFlush = requestFlush;\n\n// To request a high priority event, we induce a mutation observer by toggling\n// the text of a text node between \"1\" and \"-1\".\nfunction makeRequestCallFromMutationObserver(callback) {\n var toggle = 1;\n var observer = new BrowserMutationObserver(callback);\n var node = document.createTextNode(\"\");\n observer.observe(node, {characterData: true});\n return function requestCall() {\n toggle = -toggle;\n node.data = toggle;\n };\n}\n\n// The message channel technique was discovered by Malte Ubl and was the\n// original foundation for this library.\n// http://www.nonblocking.io/2011/06/windownexttick.html\n\n// Safari 6.0.5 (at least) intermittently fails to create message ports on a\n// page's first load. Thankfully, this version of Safari supports\n// MutationObservers, so we don't need to fall back in that case.\n\n// function makeRequestCallFromMessageChannel(callback) {\n// var channel = new MessageChannel();\n// channel.port1.onmessage = callback;\n// return function requestCall() {\n// channel.port2.postMessage(0);\n// };\n// }\n\n// For reasons explained above, we are also unable to use `setImmediate`\n// under any circumstances.\n// Even if we were, there is another bug in Internet Explorer 10.\n// It is not sufficient to assign `setImmediate` to `requestFlush` because\n// `setImmediate` must be called *by name* and therefore must be wrapped in a\n// closure.\n// Never forget.\n\n// function makeRequestCallFromSetImmediate(callback) {\n// return function requestCall() {\n// setImmediate(callback);\n// };\n// }\n\n// Safari 6.0 has a problem where timers will get lost while the user is\n// scrolling. This problem does not impact ASAP because Safari 6.0 supports\n// mutation observers, so that implementation is used instead.\n// However, if we ever elect to use timers in Safari, the prevalent work-around\n// is to add a scroll event listener that calls for a flush.\n\n// `setTimeout` does not call the passed callback if the delay is less than\n// approximately 7 in web workers in Firefox 8 through 18, and sometimes not\n// even then.\n\nfunction makeRequestCallFromTimer(callback) {\n return function requestCall() {\n // We dispatch a timeout with a specified delay of 0 for engines that\n // can reliably accommodate that request. This will usually be snapped\n // to a 4 milisecond delay, but once we're flushing, there's no delay\n // between events.\n var timeoutHandle = setTimeout(handleTimer, 0);\n // However, since this timer gets frequently dropped in Firefox\n // workers, we enlist an interval handle that will try to fire\n // an event 20 times per second until it succeeds.\n var intervalHandle = setInterval(handleTimer, 50);\n\n function handleTimer() {\n // Whichever timer succeeds will cancel both timers and\n // execute the callback.\n clearTimeout(timeoutHandle);\n clearInterval(intervalHandle);\n callback();\n }\n };\n}\n\n// This is for `asap.js` only.\n// Its name will be periodically randomized to break any code that depends on\n// its existence.\nrawAsap.makeRequestCallFromTimer = makeRequestCallFromTimer;\n\n// ASAP was originally a nextTick shim included in Q. This was factored out\n// into this ASAP package. It was later adapted to RSVP which made further\n// amendments. These decisions, particularly to marginalize MessageChannel and\n// to capture the MutationObserver implementation in a closure, were integrated\n// back into ASAP proper.\n// https://github.com/tildeio/rsvp.js/blob/cddf7232546a9cf858524b75cde6f9edf72620a7/lib/rsvp/asap.js\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _inlineStylePrefixerStatic = require('inline-style-prefixer/static');\n\nvar _inlineStylePrefixerStatic2 = _interopRequireDefault(_inlineStylePrefixerStatic);\n\nvar _util = require('./util');\n\n/**\n * Generate CSS for a selector and some styles.\n *\n * This function handles the media queries, pseudo selectors, and descendant\n * styles that can be used in aphrodite styles.\n *\n * @param {string} selector: A base CSS selector for the styles to be generated\n * with.\n * @param {Object} styleTypes: A list of properties of the return type of\n * StyleSheet.create, e.g. [styles.red, styles.blue].\n * @param stringHandlers: See `generateCSSRuleset`\n * @param useImportant: See `generateCSSRuleset`\n *\n * To actually generate the CSS special-construct-less styles are passed to\n * `generateCSSRuleset`.\n *\n * For instance, a call to\n *\n * generateCSSInner(\".foo\", {\n * color: \"red\",\n * \"@media screen\": {\n * height: 20,\n * \":hover\": {\n * backgroundColor: \"black\"\n * }\n * },\n * \":active\": {\n * fontWeight: \"bold\",\n * \">>bar\": {\n * _names: { \"foo_bar\": true },\n * height: 10,\n * }\n * }\n * });\n *\n * will make 5 calls to `generateCSSRuleset`:\n *\n * generateCSSRuleset(\".foo\", { color: \"red\" }, ...)\n * generateCSSRuleset(\".foo:active\", { fontWeight: \"bold\" }, ...)\n * generateCSSRuleset(\".foo:active .foo_bar\", { height: 10 }, ...)\n * // These 2 will be wrapped in @media screen {}\n * generateCSSRuleset(\".foo\", { height: 20 }, ...)\n * generateCSSRuleset(\".foo:hover\", { backgroundColor: \"black\" }, ...)\n */\nvar generateCSS = function generateCSS(selector, styleTypes, stringHandlers, useImportant) {\n var merged = styleTypes.reduce(_util.recursiveMerge);\n\n var declarations = {};\n var mediaQueries = {};\n var pseudoStyles = {};\n\n Object.keys(merged).forEach(function (key) {\n if (key[0] === ':') {\n pseudoStyles[key] = merged[key];\n } else if (key[0] === '@') {\n mediaQueries[key] = merged[key];\n } else {\n declarations[key] = merged[key];\n }\n });\n\n return generateCSSRuleset(selector, declarations, stringHandlers, useImportant) + Object.keys(pseudoStyles).map(function (pseudoSelector) {\n return generateCSSRuleset(selector + pseudoSelector, pseudoStyles[pseudoSelector], stringHandlers, useImportant);\n }).join(\"\") + Object.keys(mediaQueries).map(function (mediaQuery) {\n var ruleset = generateCSS(selector, [mediaQueries[mediaQuery]], stringHandlers, useImportant);\n return mediaQuery + '{' + ruleset + '}';\n }).join(\"\");\n};\n\nexports.generateCSS = generateCSS;\n/**\n * Helper method of generateCSSRuleset to facilitate custom handling of certain\n * CSS properties. Used for e.g. font families.\n *\n * See generateCSSRuleset for usage and documentation of paramater types.\n */\nvar runStringHandlers = function runStringHandlers(declarations, stringHandlers) {\n var result = {};\n\n Object.keys(declarations).forEach(function (key) {\n // If a handler exists for this particular key, let it interpret\n // that value first before continuing\n if (stringHandlers && stringHandlers.hasOwnProperty(key)) {\n result[key] = stringHandlers[key](declarations[key]);\n } else {\n result[key] = declarations[key];\n }\n });\n\n return result;\n};\n\n/**\n * Generate a CSS ruleset with the selector and containing the declarations.\n *\n * This function assumes that the given declarations don't contain any special\n * children (such as media queries, pseudo-selectors, or descendant styles).\n *\n * Note that this method does not deal with nesting used for e.g.\n * psuedo-selectors or media queries. That responsibility is left to the\n * `generateCSS` function.\n *\n * @param {string} selector: the selector associated with the ruleset\n * @param {Object} declarations: a map from camelCased CSS property name to CSS\n * property value.\n * @param {Object.} stringHandlers: a map from camelCased CSS\n * property name to a function which will map the given value to the value\n * that is output.\n * @param {bool} useImportant: A boolean saying whether to append \"!important\"\n * to each of the CSS declarations.\n * @returns {string} A string of raw CSS.\n *\n * Examples:\n *\n * generateCSSRuleset(\".blah\", { color: \"red\" })\n * -> \".blah{color: red !important;}\"\n * generateCSSRuleset(\".blah\", { color: \"red\" }, {}, false)\n * -> \".blah{color: red}\"\n * generateCSSRuleset(\".blah\", { color: \"red\" }, {color: c => c.toUpperCase})\n * -> \".blah{color: RED}\"\n * generateCSSRuleset(\".blah:hover\", { color: \"red\" })\n * -> \".blah:hover{color: red}\"\n */\nvar generateCSSRuleset = function generateCSSRuleset(selector, declarations, stringHandlers, useImportant) {\n var handledDeclarations = runStringHandlers(declarations, stringHandlers);\n\n var prefixedDeclarations = (0, _inlineStylePrefixerStatic2['default'])(handledDeclarations);\n\n var prefixedRules = (0, _util.flatten)((0, _util.objectToPairs)(prefixedDeclarations).map(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2);\n\n var key = _ref2[0];\n var value = _ref2[1];\n\n if (Array.isArray(value)) {\n var _ret = (function () {\n // inline-style-prefix-all returns an array when there should be\n // multiple rules, we will flatten to single rules\n\n var prefixedValues = [];\n var unprefixedValues = [];\n\n value.forEach(function (v) {\n if (v.indexOf('-') === 0) {\n prefixedValues.push(v);\n } else {\n unprefixedValues.push(v);\n }\n });\n\n prefixedValues.sort();\n unprefixedValues.sort();\n\n return {\n v: prefixedValues.concat(unprefixedValues).map(function (v) {\n return [key, v];\n })\n };\n })();\n\n if (typeof _ret === 'object') return _ret.v;\n }\n return [[key, value]];\n }));\n\n var rules = prefixedRules.map(function (_ref3) {\n var _ref32 = _slicedToArray(_ref3, 2);\n\n var key = _ref32[0];\n var value = _ref32[1];\n\n var stringValue = (0, _util.stringifyValue)(key, value);\n var ret = (0, _util.kebabifyStyleName)(key) + ':' + stringValue + ';';\n return useImportant === false ? ret : (0, _util.importantify)(ret);\n }).join(\"\");\n\n if (rules) {\n return selector + '{' + rules + '}';\n } else {\n return \"\";\n }\n};\nexports.generateCSSRuleset = generateCSSRuleset;","module.exports = require('./lib/static/prefixAll')\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = prefixAll;\n\nvar _prefixProps = require('./prefixProps');\n\nvar _prefixProps2 = _interopRequireDefault(_prefixProps);\n\nvar _capitalizeString = require('../utils/capitalizeString');\n\nvar _capitalizeString2 = _interopRequireDefault(_capitalizeString);\n\nvar _sortPrefixedStyle = require('../utils/sortPrefixedStyle');\n\nvar _sortPrefixedStyle2 = _interopRequireDefault(_sortPrefixedStyle);\n\nvar _position = require('./plugins/position');\n\nvar _position2 = _interopRequireDefault(_position);\n\nvar _calc = require('./plugins/calc');\n\nvar _calc2 = _interopRequireDefault(_calc);\n\nvar _cursor = require('./plugins/cursor');\n\nvar _cursor2 = _interopRequireDefault(_cursor);\n\nvar _flex = require('./plugins/flex');\n\nvar _flex2 = _interopRequireDefault(_flex);\n\nvar _sizing = require('./plugins/sizing');\n\nvar _sizing2 = _interopRequireDefault(_sizing);\n\nvar _gradient = require('./plugins/gradient');\n\nvar _gradient2 = _interopRequireDefault(_gradient);\n\nvar _transition = require('./plugins/transition');\n\nvar _transition2 = _interopRequireDefault(_transition);\n\nvar _flexboxIE = require('./plugins/flexboxIE');\n\nvar _flexboxIE2 = _interopRequireDefault(_flexboxIE);\n\nvar _flexboxOld = require('./plugins/flexboxOld');\n\nvar _flexboxOld2 = _interopRequireDefault(_flexboxOld);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// special flexbox specifications\n\n\nvar plugins = [_position2.default, _calc2.default, _cursor2.default, _sizing2.default, _gradient2.default, _transition2.default, _flexboxIE2.default, _flexboxOld2.default, _flex2.default];\n\n/**\n * Returns a prefixed version of the style object using all vendor prefixes\n * @param {Object} styles - Style object that gets prefixed properties added\n * @returns {Object} - Style object with prefixed properties and values\n */\nfunction prefixAll(styles) {\n Object.keys(styles).forEach(function (property) {\n var value = styles[property];\n if (value instanceof Object && !Array.isArray(value)) {\n // recurse through nested style objects\n styles[property] = prefixAll(value);\n } else {\n Object.keys(_prefixProps2.default).forEach(function (prefix) {\n var properties = _prefixProps2.default[prefix];\n // add prefixes if needed\n if (properties[property]) {\n styles[prefix + (0, _capitalizeString2.default)(property)] = value;\n }\n });\n }\n });\n\n Object.keys(styles).forEach(function (property) {\n [].concat(styles[property]).forEach(function (value, index) {\n // resolve every special plugins\n plugins.forEach(function (plugin) {\n return assignStyles(styles, plugin(property, value));\n });\n });\n });\n\n return (0, _sortPrefixedStyle2.default)(styles);\n}\n\nfunction assignStyles(base) {\n var extend = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n Object.keys(extend).forEach(function (property) {\n var baseValue = base[property];\n if (Array.isArray(baseValue)) {\n [].concat(extend[property]).forEach(function (value) {\n var valueIndex = baseValue.indexOf(value);\n if (valueIndex > -1) {\n base[property].splice(valueIndex, 1);\n }\n base[property].push(value);\n });\n } else {\n base[property] = extend[property];\n }\n });\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = sortPrefixedStyle;\n\nvar _isPrefixedProperty = require('./isPrefixedProperty');\n\nvar _isPrefixedProperty2 = _interopRequireDefault(_isPrefixedProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction sortPrefixedStyle(style) {\n return Object.keys(style).sort(function (left, right) {\n if ((0, _isPrefixedProperty2.default)(left) && !(0, _isPrefixedProperty2.default)(right)) {\n return -1;\n } else if (!(0, _isPrefixedProperty2.default)(left) && (0, _isPrefixedProperty2.default)(right)) {\n return 1;\n }\n return 0;\n }).reduce(function (sortedStyle, prop) {\n sortedStyle[prop] = style[prop];\n return sortedStyle;\n }, {});\n}\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = function (property) {\n return property.match(/^(Webkit|Moz|O|ms)/) !== null;\n};\n\nmodule.exports = exports[\"default\"];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = position;\nfunction position(property, value) {\n if (property === 'position' && value === 'sticky') {\n return { position: ['-webkit-sticky', 'sticky'] };\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = calc;\n\nvar _joinPrefixedValue = require('../../utils/joinPrefixedValue');\n\nvar _joinPrefixedValue2 = _interopRequireDefault(_joinPrefixedValue);\n\nvar _isPrefixedValue = require('../../utils/isPrefixedValue');\n\nvar _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction calc(property, value) {\n if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('calc(') > -1) {\n return (0, _joinPrefixedValue2.default)(property, value, function (prefix, value) {\n return value.replace(/calc\\(/g, prefix + 'calc(');\n });\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = cursor;\n\nvar _joinPrefixedValue = require('../../utils/joinPrefixedValue');\n\nvar _joinPrefixedValue2 = _interopRequireDefault(_joinPrefixedValue);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar values = {\n 'zoom-in': true,\n 'zoom-out': true,\n grab: true,\n grabbing: true\n};\n\nfunction cursor(property, value) {\n if (property === 'cursor' && values[value]) {\n return (0, _joinPrefixedValue2.default)(property, value);\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = flex;\nvar values = { flex: true, 'inline-flex': true };\n\nfunction flex(property, value) {\n if (property === 'display' && values[value]) {\n return {\n display: ['-webkit-box', '-moz-box', '-ms-' + value + 'box', '-webkit-' + value, value]\n };\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = sizing;\n\nvar _joinPrefixedValue = require('../../utils/joinPrefixedValue');\n\nvar _joinPrefixedValue2 = _interopRequireDefault(_joinPrefixedValue);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar properties = {\n maxHeight: true,\n maxWidth: true,\n width: true,\n height: true,\n columnWidth: true,\n minWidth: true,\n minHeight: true\n};\nvar values = {\n 'min-content': true,\n 'max-content': true,\n 'fill-available': true,\n 'fit-content': true,\n 'contain-floats': true\n};\n\nfunction sizing(property, value) {\n if (properties[property] && values[value]) {\n return (0, _joinPrefixedValue2.default)(property, value);\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = gradient;\n\nvar _joinPrefixedValue = require('../../utils/joinPrefixedValue');\n\nvar _joinPrefixedValue2 = _interopRequireDefault(_joinPrefixedValue);\n\nvar _isPrefixedValue = require('../../utils/isPrefixedValue');\n\nvar _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;\n\nfunction gradient(property, value) {\n if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.match(values) !== null) {\n return (0, _joinPrefixedValue2.default)(property, value);\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = transition;\n\nvar _hyphenateStyleName = require('hyphenate-style-name');\n\nvar _hyphenateStyleName2 = _interopRequireDefault(_hyphenateStyleName);\n\nvar _capitalizeString = require('../../utils/capitalizeString');\n\nvar _capitalizeString2 = _interopRequireDefault(_capitalizeString);\n\nvar _isPrefixedValue = require('../../utils/isPrefixedValue');\n\nvar _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);\n\nvar _prefixProps = require('../prefixProps');\n\nvar _prefixProps2 = _interopRequireDefault(_prefixProps);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar properties = {\n transition: true,\n transitionProperty: true,\n WebkitTransition: true,\n WebkitTransitionProperty: true\n};\n\nfunction transition(property, value) {\n // also check for already prefixed transitions\n if (typeof value === 'string' && properties[property]) {\n var _ref2;\n\n var outputValue = prefixValue(value);\n var webkitOutput = outputValue.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g).filter(function (value) {\n return value.match(/-moz-|-ms-/) === null;\n }).join(',');\n\n // if the property is already prefixed\n if (property.indexOf('Webkit') > -1) {\n return _defineProperty({}, property, webkitOutput);\n }\n\n return _ref2 = {}, _defineProperty(_ref2, 'Webkit' + (0, _capitalizeString2.default)(property), webkitOutput), _defineProperty(_ref2, property, outputValue), _ref2;\n }\n}\n\nfunction prefixValue(value) {\n if ((0, _isPrefixedValue2.default)(value)) {\n return value;\n }\n\n // only split multi values, not cubic beziers\n var multipleValues = value.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g);\n\n // iterate each single value and check for transitioned properties\n // that need to be prefixed as well\n multipleValues.forEach(function (val, index) {\n multipleValues[index] = Object.keys(_prefixProps2.default).reduce(function (out, prefix) {\n var dashCasePrefix = '-' + prefix.toLowerCase() + '-';\n\n Object.keys(_prefixProps2.default[prefix]).forEach(function (prop) {\n var dashCaseProperty = (0, _hyphenateStyleName2.default)(prop);\n\n if (val.indexOf(dashCaseProperty) > -1 && dashCaseProperty !== 'order') {\n // join all prefixes and create a new value\n out = val.replace(dashCaseProperty, dashCasePrefix + dashCaseProperty) + ',' + out;\n }\n });\n return out;\n }, val);\n });\n\n return multipleValues.join(',');\n}\nmodule.exports = exports['default'];","/* eslint-disable no-var, prefer-template */\nvar uppercasePattern = /[A-Z]/g\nvar msPattern = /^ms-/\nvar cache = {}\n\nfunction toHyphenLower(match) {\n return '-' + match.toLowerCase()\n}\n\nfunction hyphenateStyleName(name) {\n if (cache.hasOwnProperty(name)) {\n return cache[name]\n }\n\n var hName = name.replace(uppercasePattern, toHyphenLower)\n return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)\n}\n\nexport default hyphenateStyleName\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = flexboxIE;\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar alternativeValues = {\n 'space-around': 'distribute',\n 'space-between': 'justify',\n 'flex-start': 'start',\n 'flex-end': 'end'\n};\nvar alternativeProps = {\n alignContent: 'msFlexLinePack',\n alignSelf: 'msFlexItemAlign',\n alignItems: 'msFlexAlign',\n justifyContent: 'msFlexPack',\n order: 'msFlexOrder',\n flexGrow: 'msFlexPositive',\n flexShrink: 'msFlexNegative',\n flexBasis: 'msPreferredSize'\n};\n\nfunction flexboxIE(property, value) {\n if (alternativeProps[property]) {\n return _defineProperty({}, alternativeProps[property], alternativeValues[value] || value);\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = flexboxOld;\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar alternativeValues = {\n 'space-around': 'justify',\n 'space-between': 'justify',\n 'flex-start': 'start',\n 'flex-end': 'end',\n 'wrap-reverse': 'multiple',\n wrap: 'multiple'\n};\n\nvar alternativeProps = {\n alignItems: 'WebkitBoxAlign',\n justifyContent: 'WebkitBoxPack',\n flexWrap: 'WebkitBoxLines'\n};\n\nfunction flexboxOld(property, value) {\n if (property === 'flexDirection' && typeof value === 'string') {\n return {\n WebkitBoxOrient: value.indexOf('column') > -1 ? 'vertical' : 'horizontal',\n WebkitBoxDirection: value.indexOf('reverse') > -1 ? 'reverse' : 'normal'\n };\n }\n if (alternativeProps[property]) {\n return _defineProperty({}, alternativeProps[property], alternativeValues[value] || value);\n }\n}\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _ScrollLock = require('./ScrollLock');\n\nObject.defineProperty(exports, 'default', {\n enumerable: true,\n get: function get() {\n return _interopRequireDefault(_ScrollLock).default;\n }\n});\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\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 _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _exenv = require('exenv');\n\nvar _reactPropToggle = require('react-prop-toggle');\n\nvar _utils = require('./utils');\n\nvar _withTouchListeners = require('./withTouchListeners');\n\nvar _withTouchListeners2 = _interopRequireDefault(_withTouchListeners);\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 LOCK_COUNT = 0;\n\nvar ScrollLock = function (_PureComponent) {\n _inherits(ScrollLock, _PureComponent);\n\n function ScrollLock() {\n _classCallCheck(this, ScrollLock);\n\n return _possibleConstructorReturn(this, (ScrollLock.__proto__ || Object.getPrototypeOf(ScrollLock)).apply(this, arguments));\n }\n\n _createClass(ScrollLock, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n LOCK_COUNT++;\n if (_exenv.canUseDOM) {\n this.initialHeight = window.innerHeight;\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n LOCK_COUNT = Math.max(LOCK_COUNT - 1, 0);\n\n if (_exenv.canUseDOM) {\n var offset = window.innerHeight - this.initialHeight;\n\n // adjust scroll if the window has been resized since the lock was engaged\n if (offset) {\n window.scrollTo(0, window.pageYOffset + offset);\n }\n }\n\n // reset the initial height in case this scroll lock is used again\n this.initialHeight = window.innerHeight;\n }\n }, {\n key: 'render',\n value: function render() {\n var accountForScrollbars = this.props.accountForScrollbars;\n\n // avoid overly incrementing padding\n\n var scrollbarSpacer = accountForScrollbars && LOCK_COUNT < 1 ? { 'padding-right': (0, _utils.getPadding)() + 'px' } : {};\n\n var height = (0, _utils.getDocumentHeight)() + 'px';\n\n return _react2.default.createElement(_reactPropToggle.SimpleToggle, {\n styles: _extends({\n 'box-sizing': 'border-box', // account for possible declaration `width: 100%;` on body\n overflow: 'hidden',\n position: 'relative',\n height: height\n }, scrollbarSpacer)\n });\n }\n }]);\n\n return ScrollLock;\n}(_react.PureComponent);\n\nScrollLock.defaultProps = {\n accountForScrollbars: true\n};\nexports.default = (0, _withTouchListeners2.default)(ScrollLock);","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _LifeCycleProvider = require('./LifeCycleProvider');\n\nObject.defineProperty(exports, 'default', {\n enumerable: true,\n get: function get() {\n return _interopRequireDefault(_LifeCycleProvider).default;\n }\n});\n\nvar _PropToggle = require('./PropToggle');\n\nObject.defineProperty(exports, 'SimpleToggle', {\n enumerable: true,\n get: function get() {\n return _interopRequireDefault(_PropToggle).default;\n }\n});\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _PropToggle = require('./PropToggle');\n\nvar _PropToggle2 = _interopRequireDefault(_PropToggle);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\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\nvar LifeCycleProvider = function LifeCycleProvider(_ref) {\n var isActive = _ref.isActive,\n props = _objectWithoutProperties(_ref, ['isActive']);\n\n return isActive ? _react2.default.createElement(_PropToggle2.default, props) : null;\n};\n\nLifeCycleProvider.defaultProps = _PropToggle.defaultProps;\n\nexports.default = LifeCycleProvider;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nexports.default = withTouchListeners;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _exenv = require('exenv');\n\nvar _utils = require('./utils');\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\nfunction withTouchListeners(WrappedComponent) {\n return function (_PureComponent) {\n _inherits(TouchProvider, _PureComponent);\n\n function TouchProvider() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, TouchProvider);\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, (_ref = TouchProvider.__proto__ || Object.getPrototypeOf(TouchProvider)).call.apply(_ref, [this].concat(args))), _this), _this.listenerOptions = {\n capture: false,\n passive: false\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(TouchProvider, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (!_exenv.canUseDOM) return;\n\n var touchScrollTarget = this.props.touchScrollTarget;\n\n var target = document.body;\n\n // account for touch devices\n if (target && (0, _utils.isTouchDevice)()) {\n // Mobile Safari ignores { overflow: hidden } declaration on the body.\n target.addEventListener('touchmove', _utils.preventTouchMove, this.listenerOptions);\n\n // Allow scroll on provided target\n if (touchScrollTarget) {\n touchScrollTarget.addEventListener('touchstart', _utils.preventInertiaScroll, this.listenerOptions);\n touchScrollTarget.addEventListener('touchmove', _utils.allowTouchMove, this.listenerOptions);\n }\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (!_exenv.canUseDOM) return;\n\n var touchScrollTarget = this.props.touchScrollTarget;\n\n var target = document.body;\n\n // remove touch listeners\n if (target && (0, _utils.isTouchDevice)()) {\n target.removeEventListener('touchmove', _utils.preventTouchMove, this.listenerOptions);\n\n if (touchScrollTarget) {\n touchScrollTarget.removeEventListener('touchstart', _utils.preventInertiaScroll, this.listenerOptions);\n touchScrollTarget.removeEventListener('touchmove', _utils.allowTouchMove, this.listenerOptions);\n }\n }\n }\n }, {\n key: 'render',\n value: function render() {\n return _react2.default.createElement(WrappedComponent, this.props);\n }\n }]);\n\n return TouchProvider;\n }(_react.PureComponent);\n}","// Module with the same interface as the core aphrodite module,\n// except that styles injected do not automatically have !important\n// appended to them.\n//\n'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _inject = require('./inject');\n\nvar _indexJs = require('./index.js');\n\nvar css = function css() {\n for (var _len = arguments.length, styleDefinitions = Array(_len), _key = 0; _key < _len; _key++) {\n styleDefinitions[_key] = arguments[_key];\n }\n\n var useImportant = false; // Don't append !important to style definitions\n return (0, _inject.injectAndGetClassName)(useImportant, styleDefinitions);\n};\n\nexports.StyleSheet = _indexJs.StyleSheet;\nexports.StyleSheetServer = _indexJs.StyleSheetServer;\nexports.StyleSheetTestUtils = _indexJs.StyleSheetTestUtils;\nexports.css = css;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nexports.default = function (fill) {\n\treturn \"\\n\\t\\t\\n\\t\";\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nexports.default = function (fill) {\n\treturn \"\\n\\t\\t\\n\\t\";\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nexports.default = function (fill) {\n\treturn \"\\n\\t\\t\\n\\t\";\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\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 _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _noImportant = require('aphrodite/no-important');\n\nvar _theme = require('../theme');\n\nvar _theme2 = _interopRequireDefault(_theme);\n\nvar _deepMerge = require('../utils/deepMerge');\n\nvar _deepMerge2 = _interopRequireDefault(_deepMerge);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\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 Container(_ref, _ref2) {\n\tvar theme = _ref2.theme;\n\n\tvar props = _objectWithoutProperties(_ref, []);\n\n\tvar classes = _noImportant.StyleSheet.create((0, _deepMerge2.default)(defaultStyles, theme));\n\n\treturn _react2.default.createElement('div', _extends({ id: 'lightboxBackdrop',\n\t\tclassName: (0, _noImportant.css)(classes.container)\n\t}, props));\n}\n\nContainer.contextTypes = {\n\ttheme: _propTypes2.default.object.isRequired\n};\n\nvar defaultStyles = {\n\tcontainer: {\n\t\talignItems: 'center',\n\t\tbackgroundColor: _theme2.default.container.background,\n\t\tboxSizing: 'border-box',\n\t\tdisplay: 'flex',\n\t\theight: '100%',\n\t\tjustifyContent: 'center',\n\t\tleft: 0,\n\t\tpaddingBottom: _theme2.default.container.gutter.vertical,\n\t\tpaddingLeft: _theme2.default.container.gutter.horizontal,\n\t\tpaddingRight: _theme2.default.container.gutter.horizontal,\n\t\tpaddingTop: _theme2.default.container.gutter.vertical,\n\t\tposition: 'fixed',\n\t\ttop: 0,\n\t\twidth: '100%',\n\t\tzIndex: _theme2.default.container.zIndex\n\t}\n};\n\nexports.default = Container;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\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 _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _noImportant = require('aphrodite/no-important');\n\nvar _theme = require('../theme');\n\nvar _theme2 = _interopRequireDefault(_theme);\n\nvar _deepMerge = require('../utils/deepMerge');\n\nvar _deepMerge2 = _interopRequireDefault(_deepMerge);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\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 Footer(_ref, _ref2) {\n\tvar theme = _ref2.theme;\n\n\tvar caption = _ref.caption,\n\t countCurrent = _ref.countCurrent,\n\t countSeparator = _ref.countSeparator,\n\t countTotal = _ref.countTotal,\n\t showCount = _ref.showCount,\n\t props = _objectWithoutProperties(_ref, ['caption', 'countCurrent', 'countSeparator', 'countTotal', 'showCount']);\n\n\tif (!caption && !showCount) return null;\n\n\tvar classes = _noImportant.StyleSheet.create((0, _deepMerge2.default)(defaultStyles, theme));\n\n\tvar imageCount = showCount ? _react2.default.createElement(\n\t\t'div',\n\t\t{ className: (0, _noImportant.css)(classes.footerCount) },\n\t\tcountCurrent,\n\t\tcountSeparator,\n\t\tcountTotal\n\t) : _react2.default.createElement('span', null);\n\n\treturn _react2.default.createElement(\n\t\t'div',\n\t\t_extends({ className: (0, _noImportant.css)(classes.footer) }, props),\n\t\tcaption ? _react2.default.createElement(\n\t\t\t'figcaption',\n\t\t\t{ className: (0, _noImportant.css)(classes.footerCaption) },\n\t\t\tcaption\n\t\t) : _react2.default.createElement('span', null),\n\t\timageCount\n\t);\n}\n\nFooter.propTypes = {\n\tcaption: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element]),\n\tcountCurrent: _propTypes2.default.number,\n\tcountSeparator: _propTypes2.default.string,\n\tcountTotal: _propTypes2.default.number,\n\tshowCount: _propTypes2.default.bool\n};\nFooter.contextTypes = {\n\ttheme: _propTypes2.default.object.isRequired\n};\n\nvar defaultStyles = {\n\tfooter: {\n\t\tboxSizing: 'border-box',\n\t\tcolor: _theme2.default.footer.color,\n\t\tcursor: 'auto',\n\t\tdisplay: 'flex',\n\t\tjustifyContent: 'space-between',\n\t\tleft: 0,\n\t\tlineHeight: 1.3,\n\t\tpaddingBottom: _theme2.default.footer.gutter.vertical,\n\t\tpaddingLeft: _theme2.default.footer.gutter.horizontal,\n\t\tpaddingRight: _theme2.default.footer.gutter.horizontal,\n\t\tpaddingTop: _theme2.default.footer.gutter.vertical\n\t},\n\tfooterCount: {\n\t\tcolor: _theme2.default.footer.count.color,\n\t\tfontSize: _theme2.default.footer.count.fontSize,\n\t\tpaddingLeft: '1em' // add a small gutter for the caption\n\t},\n\tfooterCaption: {\n\t\tflex: '1 1 0'\n\t}\n};\n\nexports.default = Footer;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\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 _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _noImportant = require('aphrodite/no-important');\n\nvar _theme = require('../theme');\n\nvar _theme2 = _interopRequireDefault(_theme);\n\nvar _deepMerge = require('../utils/deepMerge');\n\nvar _deepMerge2 = _interopRequireDefault(_deepMerge);\n\nvar _Icon = require('./Icon');\n\nvar _Icon2 = _interopRequireDefault(_Icon);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\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 Header(_ref, _ref2) {\n\tvar theme = _ref2.theme;\n\n\tvar customControls = _ref.customControls,\n\t onClose = _ref.onClose,\n\t showCloseButton = _ref.showCloseButton,\n\t closeButtonTitle = _ref.closeButtonTitle,\n\t props = _objectWithoutProperties(_ref, ['customControls', 'onClose', 'showCloseButton', 'closeButtonTitle']);\n\n\tvar classes = _noImportant.StyleSheet.create((0, _deepMerge2.default)(defaultStyles, theme));\n\n\treturn _react2.default.createElement(\n\t\t'div',\n\t\t_extends({ className: (0, _noImportant.css)(classes.header) }, props),\n\t\tcustomControls ? customControls : _react2.default.createElement('span', null),\n\t\t!!showCloseButton && _react2.default.createElement(\n\t\t\t'button',\n\t\t\t{\n\t\t\t\ttitle: closeButtonTitle,\n\t\t\t\tclassName: (0, _noImportant.css)(classes.close),\n\t\t\t\tonClick: onClose\n\t\t\t},\n\t\t\t_react2.default.createElement(_Icon2.default, { fill: !!theme.close && theme.close.fill || _theme2.default.close.fill, type: 'close' })\n\t\t)\n\t);\n}\n\nHeader.propTypes = {\n\tcustomControls: _propTypes2.default.array,\n\tonClose: _propTypes2.default.func.isRequired,\n\tshowCloseButton: _propTypes2.default.bool\n};\nHeader.contextTypes = {\n\ttheme: _propTypes2.default.object.isRequired\n};\n\nvar defaultStyles = {\n\theader: {\n\t\tdisplay: 'flex',\n\t\tjustifyContent: 'space-between',\n\t\theight: _theme2.default.header.height\n\t},\n\tclose: {\n\t\tbackground: 'none',\n\t\tborder: 'none',\n\t\tcursor: 'pointer',\n\t\toutline: 'none',\n\t\tposition: 'relative',\n\t\ttop: 0,\n\t\tverticalAlign: 'bottom',\n\t\tzIndex: 1,\n\n\t\t// increase hit area\n\t\theight: 40,\n\t\tmarginRight: -10,\n\t\tpadding: 10,\n\t\twidth: 40\n\t}\n};\n\nexports.default = Header;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\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 _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _noImportant = require('aphrodite/no-important');\n\nvar _Thumbnail = require('./Thumbnail');\n\nvar _Thumbnail2 = _interopRequireDefault(_Thumbnail);\n\nvar _Arrow = require('./Arrow');\n\nvar _Arrow2 = _interopRequireDefault(_Arrow);\n\nvar _theme = require('../theme');\n\nvar _theme2 = _interopRequireDefault(_theme);\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 classes = _noImportant.StyleSheet.create({\n\tpaginatedThumbnails: {\n\t\tbottom: _theme2.default.container.gutter.vertical,\n\t\theight: _theme2.default.thumbnail.size,\n\t\tpadding: '0 50px',\n\t\tposition: 'absolute',\n\t\ttextAlign: 'center',\n\t\twhiteSpace: 'nowrap',\n\t\tleft: '50%',\n\t\ttransform: 'translateX(-50%)'\n\t}\n});\n\nvar arrowStyles = {\n\theight: _theme2.default.thumbnail.size + _theme2.default.thumbnail.gutter * 2,\n\twidth: 40\n};\n\nvar PaginatedThumbnails = function (_Component) {\n\t_inherits(PaginatedThumbnails, _Component);\n\n\tfunction PaginatedThumbnails(props) {\n\t\t_classCallCheck(this, PaginatedThumbnails);\n\n\t\tvar _this = _possibleConstructorReturn(this, (PaginatedThumbnails.__proto__ || Object.getPrototypeOf(PaginatedThumbnails)).call(this, props));\n\n\t\t_this.state = {\n\t\t\thasCustomPage: false\n\t\t};\n\n\t\t_this.gotoPrev = _this.gotoPrev.bind(_this);\n\t\t_this.gotoNext = _this.gotoNext.bind(_this);\n\t\treturn _this;\n\t}\n\n\t_createClass(PaginatedThumbnails, [{\n\t\tkey: 'componentWillReceiveProps',\n\t\tvalue: function componentWillReceiveProps(nextProps) {\n\t\t\t// Component should be controlled, flush state when currentImage changes\n\t\t\tif (nextProps.currentImage !== this.props.currentImage) {\n\t\t\t\tthis.setState({\n\t\t\t\t\thasCustomPage: false\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\t// ==============================\n\t\t// METHODS\n\t\t// ==============================\n\n\t}, {\n\t\tkey: 'getFirst',\n\t\tvalue: function getFirst() {\n\t\t\tvar _props = this.props,\n\t\t\t currentImage = _props.currentImage,\n\t\t\t offset = _props.offset;\n\n\t\t\tif (this.state.hasCustomPage) {\n\t\t\t\treturn this.clampFirst(this.state.first);\n\t\t\t}\n\t\t\treturn this.clampFirst(currentImage - offset);\n\t\t}\n\t}, {\n\t\tkey: 'setFirst',\n\t\tvalue: function setFirst(event, newFirst) {\n\t\t\tvar first = this.state.first;\n\n\n\t\t\tif (event) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\n\t\t\tif (first === newFirst) return;\n\n\t\t\tthis.setState({\n\t\t\t\thasCustomPage: true,\n\t\t\t\tfirst: newFirst\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: 'gotoPrev',\n\t\tvalue: function gotoPrev(event) {\n\t\t\tthis.setFirst(event, this.getFirst() - this.props.offset);\n\t\t}\n\t}, {\n\t\tkey: 'gotoNext',\n\t\tvalue: function gotoNext(event) {\n\t\t\tthis.setFirst(event, this.getFirst() + this.props.offset);\n\t\t}\n\t}, {\n\t\tkey: 'clampFirst',\n\t\tvalue: function clampFirst(value) {\n\t\t\tvar _props2 = this.props,\n\t\t\t images = _props2.images,\n\t\t\t offset = _props2.offset;\n\n\n\t\t\tvar totalCount = 2 * offset + 1; // show $offset extra thumbnails on each side\n\n\t\t\tif (value < 0) {\n\t\t\t\treturn 0;\n\t\t\t} else if (value + totalCount > images.length) {\n\t\t\t\t// Too far\n\t\t\t\treturn images.length - totalCount;\n\t\t\t} else {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\n\t\t// ==============================\n\t\t// RENDERERS\n\t\t// ==============================\n\n\t}, {\n\t\tkey: 'renderArrowPrev',\n\t\tvalue: function renderArrowPrev() {\n\t\t\tif (this.getFirst() <= 0) return null;\n\n\t\t\treturn _react2.default.createElement(_Arrow2.default, {\n\t\t\t\tdirection: 'left',\n\t\t\t\tsize: 'small',\n\t\t\t\ticon: 'arrowLeft',\n\t\t\t\tonClick: this.gotoPrev,\n\t\t\t\tstyle: arrowStyles,\n\t\t\t\ttitle: 'Previous (Left arrow key)',\n\t\t\t\ttype: 'button'\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: 'renderArrowNext',\n\t\tvalue: function renderArrowNext() {\n\t\t\tvar _props3 = this.props,\n\t\t\t offset = _props3.offset,\n\t\t\t images = _props3.images;\n\n\t\t\tvar totalCount = 2 * offset + 1;\n\t\t\tif (this.getFirst() + totalCount >= images.length) return null;\n\n\t\t\treturn _react2.default.createElement(_Arrow2.default, {\n\t\t\t\tdirection: 'right',\n\t\t\t\tsize: 'small',\n\t\t\t\ticon: 'arrowRight',\n\t\t\t\tonClick: this.gotoNext,\n\t\t\t\tstyle: arrowStyles,\n\t\t\t\ttitle: 'Next (Right arrow key)',\n\t\t\t\ttype: 'button'\n\t\t\t});\n\t\t}\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\tvar _props4 = this.props,\n\t\t\t images = _props4.images,\n\t\t\t currentImage = _props4.currentImage,\n\t\t\t onClickThumbnail = _props4.onClickThumbnail,\n\t\t\t offset = _props4.offset;\n\n\n\t\t\tvar totalCount = 2 * offset + 1; // show $offset extra thumbnails on each side\n\t\t\tvar thumbnails = [];\n\t\t\tvar baseOffset = 0;\n\t\t\tif (images.length <= totalCount) {\n\t\t\t\tthumbnails = images;\n\t\t\t} else {\n\t\t\t\t// Try to center current image in list\n\t\t\t\tbaseOffset = this.getFirst();\n\t\t\t\tthumbnails = images.slice(baseOffset, baseOffset + totalCount);\n\t\t\t}\n\n\t\t\treturn _react2.default.createElement(\n\t\t\t\t'div',\n\t\t\t\t{ className: (0, _noImportant.css)(classes.paginatedThumbnails) },\n\t\t\t\tthis.renderArrowPrev(),\n\t\t\t\tthumbnails.map(function (img, idx) {\n\t\t\t\t\treturn _react2.default.createElement(_Thumbnail2.default, _extends({ key: baseOffset + idx\n\t\t\t\t\t}, img, {\n\t\t\t\t\t\tindex: baseOffset + idx,\n\t\t\t\t\t\tonClick: onClickThumbnail,\n\t\t\t\t\t\tactive: baseOffset + idx === currentImage }));\n\t\t\t\t}),\n\t\t\t\tthis.renderArrowNext()\n\t\t\t);\n\t\t}\n\t}]);\n\n\treturn PaginatedThumbnails;\n}(_react.Component);\n\nexports.default = PaginatedThumbnails;\n\n\nPaginatedThumbnails.propTypes = {\n\tcurrentImage: _propTypes2.default.number,\n\timages: _propTypes2.default.array,\n\toffset: _propTypes2.default.number,\n\tonClickThumbnail: _propTypes2.default.func.isRequired\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _noImportant = require('aphrodite/no-important');\n\nvar _theme = require('../theme');\n\nvar _theme2 = _interopRequireDefault(_theme);\n\nvar _deepMerge = require('../utils/deepMerge');\n\nvar _deepMerge2 = _interopRequireDefault(_deepMerge);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction Thumbnail(_ref, _ref2) {\n\tvar index = _ref.index,\n\t src = _ref.src,\n\t thumbnail = _ref.thumbnail,\n\t active = _ref.active,\n\t _onClick = _ref.onClick;\n\tvar theme = _ref2.theme;\n\n\tvar url = thumbnail ? thumbnail : src;\n\tvar classes = _noImportant.StyleSheet.create((0, _deepMerge2.default)(defaultStyles, theme));\n\n\treturn _react2.default.createElement('div', {\n\t\tclassName: (0, _noImportant.css)(classes.thumbnail, active && classes.thumbnail__active),\n\t\tonClick: function onClick(e) {\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\t\t\t_onClick(index);\n\t\t},\n\t\tstyle: { backgroundImage: 'url(\"' + url + '\")' }\n\t});\n}\n\nThumbnail.propTypes = {\n\tactive: _propTypes2.default.bool,\n\tindex: _propTypes2.default.number,\n\tonClick: _propTypes2.default.func.isRequired,\n\tsrc: _propTypes2.default.string,\n\tthumbnail: _propTypes2.default.string\n};\n\nThumbnail.contextTypes = {\n\ttheme: _propTypes2.default.object.isRequired\n};\n\nvar defaultStyles = {\n\tthumbnail: {\n\t\tbackgroundPosition: 'center',\n\t\tbackgroundSize: 'cover',\n\t\tborderRadius: 2,\n\t\tboxShadow: 'inset 0 0 0 1px hsla(0,0%,100%,.2)',\n\t\tcursor: 'pointer',\n\t\tdisplay: 'inline-block',\n\t\theight: _theme2.default.thumbnail.size,\n\t\tmargin: _theme2.default.thumbnail.gutter,\n\t\toverflow: 'hidden',\n\t\twidth: _theme2.default.thumbnail.size\n\t},\n\tthumbnail__active: {\n\t\tboxShadow: 'inset 0 0 0 2px ' + _theme2.default.thumbnail.activeBorderColor\n\t}\n};\n\nexports.default = Thumbnail;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactTransitionGroup = require('react-transition-group');\n\nvar _reactDom = require('react-dom');\n\nvar _PassContext = require('./PassContext');\n\nvar _PassContext2 = _interopRequireDefault(_PassContext);\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 Portal = function (_Component) {\n\t_inherits(Portal, _Component);\n\n\tfunction Portal() {\n\t\t_classCallCheck(this, Portal);\n\n\t\tvar _this = _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).call(this));\n\n\t\t_this.portalElement = null;\n\t\treturn _this;\n\t}\n\n\t_createClass(Portal, [{\n\t\tkey: 'componentDidMount',\n\t\tvalue: function componentDidMount() {\n\t\t\tvar p = document.createElement('div');\n\t\t\tdocument.body.appendChild(p);\n\t\t\tthis.portalElement = p;\n\t\t\tthis.componentDidUpdate();\n\t\t}\n\t}, {\n\t\tkey: 'componentDidUpdate',\n\t\tvalue: function componentDidUpdate() {\n\t\t\t// Animate fade on mount/unmount\n\t\t\tvar duration = 200;\n\t\t\tvar styles = '\\n\\t\\t\\t\\t.fade-enter { opacity: 0.01; }\\n\\t\\t\\t\\t.fade-enter.fade-enter-active { opacity: 1; transition: opacity ' + duration + 'ms; }\\n\\t\\t\\t\\t.fade-leave { opacity: 1; }\\n\\t\\t\\t\\t.fade-leave.fade-leave-active { opacity: 0.01; transition: opacity ' + duration + 'ms; }\\n\\t\\t';\n\n\t\t\t(0, _reactDom.render)(_react2.default.createElement(\n\t\t\t\t_PassContext2.default,\n\t\t\t\t{ context: this.context },\n\t\t\t\t_react2.default.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\tnull,\n\t\t\t\t\t_react2.default.createElement(\n\t\t\t\t\t\t'style',\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tstyles\n\t\t\t\t\t),\n\t\t\t\t\t_react2.default.createElement(\n\t\t\t\t\t\t_reactTransitionGroup.TransitionGroup,\n\t\t\t\t\t\tthis.props,\n\t\t\t\t\t\t_react2.default.createElement(\n\t\t\t\t\t\t\t_reactTransitionGroup.CSSTransition,\n\t\t\t\t\t\t\t{ timeout: { enter: duration, exit: duration }, classNames: 'fade' },\n\t\t\t\t\t\t\tthis.props.children\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t), this.portalElement);\n\t\t}\n\t}, {\n\t\tkey: 'componentWillUnmount',\n\t\tvalue: function componentWillUnmount() {\n\t\t\t(0, _reactDom.unmountComponentAtNode)(this.portalElement);\n\t\t\tdocument.body.removeChild(this.portalElement);\n\t\t}\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\treturn null;\n\t\t}\n\t}]);\n\n\treturn Portal;\n}(_react.Component);\n\nexports.default = Portal;\n\n\nPortal.contextTypes = {\n\ttheme: _propTypes2.default.object.isRequired\n};","\"use strict\";\n\nvar _CSSTransition = _interopRequireDefault(require(\"./CSSTransition\"));\n\nvar _ReplaceTransition = _interopRequireDefault(require(\"./ReplaceTransition\"));\n\nvar _TransitionGroup = _interopRequireDefault(require(\"./TransitionGroup\"));\n\nvar _Transition = _interopRequireDefault(require(\"./Transition\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = {\n Transition: _Transition.default,\n TransitionGroup: _TransitionGroup.default,\n ReplaceTransition: _ReplaceTransition.default,\n CSSTransition: _CSSTransition.default\n};","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar PropTypes = _interopRequireWildcard(require(\"prop-types\"));\n\nvar _addClass = _interopRequireDefault(require(\"dom-helpers/class/addClass\"));\n\nvar _removeClass = _interopRequireDefault(require(\"dom-helpers/class/removeClass\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _Transition = _interopRequireDefault(require(\"./Transition\"));\n\nvar _PropTypes = require(\"./utils/PropTypes\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\nfunction _extends() { _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; }; return _extends.apply(this, arguments); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar addClass = function addClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return (0, _addClass.default)(node, c);\n });\n};\n\nvar removeClass = function removeClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return (0, _removeClass.default)(node, c);\n });\n};\n/**\n * A transition component inspired by the excellent\n * [ng-animate](http://www.nganimate.org/) library, you should use it if you're\n * using CSS transitions or animations. It's built upon the\n * [`Transition`](https://reactcommunity.org/react-transition-group/transition)\n * component, so it inherits all of its props.\n *\n * `CSSTransition` applies a pair of class names during the `appear`, `enter`,\n * and `exit` states of the transition. The first class is applied and then a\n * second `*-active` class in order to activate the CSSS transition. After the\n * transition, matching `*-done` class names are applied to persist the\n * transition state.\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *
\n * \n *
\n * {\"I'll receive my-node-* classes\"}\n *
\n *
\n * \n *
\n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity: 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**.\n */\n\n\nvar CSSTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _this.onEnter = function (node, appearing) {\n var _this$getClassNames = _this.getClassNames(appearing ? 'appear' : 'enter'),\n className = _this$getClassNames.className;\n\n _this.removeClasses(node, 'exit');\n\n addClass(node, className);\n\n if (_this.props.onEnter) {\n _this.props.onEnter(node, appearing);\n }\n };\n\n _this.onEntering = function (node, appearing) {\n var _this$getClassNames2 = _this.getClassNames(appearing ? 'appear' : 'enter'),\n activeClassName = _this$getClassNames2.activeClassName;\n\n _this.reflowAndAddClass(node, activeClassName);\n\n if (_this.props.onEntering) {\n _this.props.onEntering(node, appearing);\n }\n };\n\n _this.onEntered = function (node, appearing) {\n var appearClassName = _this.getClassNames('appear').doneClassName;\n\n var enterClassName = _this.getClassNames('enter').doneClassName;\n\n var doneClassName = appearing ? appearClassName + \" \" + enterClassName : enterClassName;\n\n _this.removeClasses(node, appearing ? 'appear' : 'enter');\n\n addClass(node, doneClassName);\n\n if (_this.props.onEntered) {\n _this.props.onEntered(node, appearing);\n }\n };\n\n _this.onExit = function (node) {\n var _this$getClassNames3 = _this.getClassNames('exit'),\n className = _this$getClassNames3.className;\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n addClass(node, className);\n\n if (_this.props.onExit) {\n _this.props.onExit(node);\n }\n };\n\n _this.onExiting = function (node) {\n var _this$getClassNames4 = _this.getClassNames('exit'),\n activeClassName = _this$getClassNames4.activeClassName;\n\n _this.reflowAndAddClass(node, activeClassName);\n\n if (_this.props.onExiting) {\n _this.props.onExiting(node);\n }\n };\n\n _this.onExited = function (node) {\n var _this$getClassNames5 = _this.getClassNames('exit'),\n doneClassName = _this$getClassNames5.doneClassName;\n\n _this.removeClasses(node, 'exit');\n\n addClass(node, doneClassName);\n\n if (_this.props.onExited) {\n _this.props.onExited(node);\n }\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + '-' : '';\n var className = isStringClassNames ? prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? className + '-active' : classNames[type + 'Active'];\n var doneClassName = isStringClassNames ? className + '-done' : classNames[type + 'Done'];\n return {\n className: className,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$getClassNames6 = this.getClassNames(type),\n className = _this$getClassNames6.className,\n activeClassName = _this$getClassNames6.activeClassName,\n doneClassName = _this$getClassNames6.doneClassName;\n\n className && removeClass(node, className);\n activeClassName && removeClass(node, activeClassName);\n doneClassName && removeClass(node, doneClassName);\n };\n\n _proto.reflowAndAddClass = function reflowAndAddClass(node, className) {\n // This is for to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n if (className) {\n /* eslint-disable no-unused-expressions */\n node && node.scrollTop;\n /* eslint-enable no-unused-expressions */\n\n addClass(node, className);\n }\n };\n\n _proto.render = function render() {\n var props = _extends({}, this.props);\n\n delete props.classNames;\n return _react.default.createElement(_Transition.default, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(_react.default.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, _Transition.default.propTypes, {\n /**\n * The animation classNames applied to the component as it enters, exits or\n * has finished the transition. A single name can be provided and it will be\n * suffixed for each stage: e.g.\n *\n * `classNames=\"fade\"` applies `fade-enter`, `fade-enter-active`,\n * `fade-enter-done`, `fade-exit`, `fade-exit-active`, `fade-exit-done`,\n * `fade-appear`, `fade-appear-active`, and `fade-appear-done`.\n *\n * **Note**: `fade-appear-done` and `fade-enter-done` will _both_ be applied.\n * This allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply an\n * epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: _PropTypes.classNamesShape,\n\n /**\n * A `` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit' class is\n * applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit-active' is applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nvar _default = CSSTransition;\nexports.default = _default;\nmodule.exports = exports[\"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\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\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\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","\"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\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactDom = require(\"react-dom\");\n\nvar _TransitionGroup = _interopRequireDefault(require(\"./TransitionGroup\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\n/**\n * The `` component is a specialized `Transition` component\n * that animates between two children.\n *\n * ```jsx\n * \n *
I appear first
\n *
I replace the above
\n *
\n * ```\n */\nvar ReplaceTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(ReplaceTransition, _React$Component);\n\n function ReplaceTransition() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;\n\n _this.handleEnter = function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _this.handleLifecycle('onEnter', 0, args);\n };\n\n _this.handleEntering = function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n return _this.handleLifecycle('onEntering', 0, args);\n };\n\n _this.handleEntered = function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n return _this.handleLifecycle('onEntered', 0, args);\n };\n\n _this.handleExit = function () {\n for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n return _this.handleLifecycle('onExit', 1, args);\n };\n\n _this.handleExiting = function () {\n for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n args[_key6] = arguments[_key6];\n }\n\n return _this.handleLifecycle('onExiting', 1, args);\n };\n\n _this.handleExited = function () {\n for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n return _this.handleLifecycle('onExited', 1, args);\n };\n\n return _this;\n }\n\n var _proto = ReplaceTransition.prototype;\n\n _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {\n var _child$props;\n\n var children = this.props.children;\n\n var child = _react.default.Children.toArray(children)[idx];\n\n if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);\n if (this.props[handler]) this.props[handler]((0, _reactDom.findDOMNode)(this));\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n inProp = _this$props.in,\n props = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\"]);\n\n var _React$Children$toArr = _react.default.Children.toArray(children),\n first = _React$Children$toArr[0],\n second = _React$Children$toArr[1];\n\n delete props.onEnter;\n delete props.onEntering;\n delete props.onEntered;\n delete props.onExit;\n delete props.onExiting;\n delete props.onExited;\n return _react.default.createElement(_TransitionGroup.default, props, inProp ? _react.default.cloneElement(first, {\n key: 'first',\n onEnter: this.handleEnter,\n onEntering: this.handleEntering,\n onEntered: this.handleEntered\n }) : _react.default.cloneElement(second, {\n key: 'second',\n onEnter: this.handleExit,\n onEntering: this.handleExiting,\n onEntered: this.handleExited\n }));\n };\n\n return ReplaceTransition;\n}(_react.default.Component);\n\nReplaceTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n in: _propTypes.default.bool.isRequired,\n children: function children(props, propName) {\n if (_react.default.Children.count(props[propName]) !== 2) return new Error(\"\\\"\" + propName + \"\\\" must be exactly two transition components.\");\n return null;\n }\n} : {};\nvar _default = ReplaceTransition;\nexports.default = _default;\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nexports.__esModule = true;\nexports.getChildMapping = getChildMapping;\nexports.mergeChildMappings = mergeChildMappings;\nexports.getInitialChildMapping = getInitialChildMapping;\nexports.getNextChildMapping = getNextChildMapping;\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, mapFn) {\n var mapper = function mapper(child) {\n return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child;\n };\n\n var result = Object.create(null);\n if (children) _react.Children.map(children, function (c) {\n return c;\n }).forEach(function (child) {\n // run the map function here instead so that the key is the computed one\n result[child.key] = mapper(child);\n });\n return result;\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 */\n\n\nfunction mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n\n function getValueForKey(key) {\n return key in next ? next[key] : prev[key];\n } // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n\n\n var nextKeysPending = Object.create(null);\n var pendingKeys = [];\n\n for (var prevKey in prev) {\n if (prevKey in next) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n\n var i;\n var childMapping = {};\n\n for (var nextKey in next) {\n if (nextKeysPending[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\n childMapping[nextKey] = getValueForKey(nextKey);\n } // Finally, add the keys which didn't appear before any key in `next`\n\n\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n\n return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nfunction getInitialChildMapping(props, onExited) {\n return getChildMapping(props.children, function (child) {\n return (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: true,\n appear: getProp(child, 'appear', props),\n enter: getProp(child, 'enter', props),\n exit: getProp(child, 'exit', props)\n });\n });\n}\n\nfunction getNextChildMapping(nextProps, prevChildMapping, onExited) {\n var nextChildMapping = getChildMapping(nextProps.children);\n var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n Object.keys(children).forEach(function (key) {\n var child = children[key];\n if (!(0, _react.isValidElement)(child)) return;\n var hasPrev = key in prevChildMapping;\n var hasNext = key in nextChildMapping;\n var prevChild = prevChildMapping[key];\n var isLeaving = (0, _react.isValidElement)(prevChild) && !prevChild.props.in; // item is new (entering)\n\n if (hasNext && (!hasPrev || isLeaving)) {\n // console.log('entering', key)\n children[key] = (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: true,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n } else if (!hasNext && hasPrev && !isLeaving) {\n // item is old (exiting)\n // console.log('leaving', key)\n children[key] = (0, _react.cloneElement)(child, {\n in: false\n });\n } else if (hasNext && hasPrev && (0, _react.isValidElement)(prevChild)) {\n // item hasn't changed transition states\n // copy over the last transition props;\n // console.log('unchanged', key)\n children[key] = (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: prevChild.props.in,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n }\n });\n return children;\n}","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _react = require('react');\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\n// Pass the Lightbox context through to the Portal's descendents\n// StackOverflow discussion http://goo.gl/oclrJ9\n\nvar PassContext = function (_Component) {\n\t_inherits(PassContext, _Component);\n\n\tfunction PassContext() {\n\t\t_classCallCheck(this, PassContext);\n\n\t\treturn _possibleConstructorReturn(this, (PassContext.__proto__ || Object.getPrototypeOf(PassContext)).apply(this, arguments));\n\t}\n\n\t_createClass(PassContext, [{\n\t\tkey: 'getChildContext',\n\t\tvalue: function getChildContext() {\n\t\t\treturn this.props.context;\n\t\t}\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\treturn _react.Children.only(this.props.children);\n\t\t}\n\t}]);\n\n\treturn PassContext;\n}(_react.Component);\n\nPassContext.propTypes = {\n\tcontext: _propTypes2.default.object.isRequired\n};\nPassContext.childContextTypes = {\n\ttheme: _propTypes2.default.object\n};\n\nexports.default = PassContext;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _noImportant = require('aphrodite/no-important');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Spinner = function Spinner(props) {\n\tvar classes = _noImportant.StyleSheet.create(styles(props));\n\n\treturn _react2.default.createElement(\n\t\t'div',\n\t\t{ className: (0, _noImportant.css)(classes.spinner) },\n\t\t_react2.default.createElement('div', { className: (0, _noImportant.css)(classes.ripple) })\n\t);\n};\n\nSpinner.propTypes = {\n\tcolor: _propTypes2.default.string,\n\tsize: _propTypes2.default.number\n};\n\nvar rippleKeyframes = {\n\t'0%': {\n\t\ttop: '50%',\n\t\tleft: '50%',\n\t\twidth: 0,\n\t\theight: 0,\n\t\topacity: 1\n\t},\n\t'100%': {\n\t\ttop: 0,\n\t\tleft: 0,\n\t\twidth: '100%',\n\t\theight: '100%',\n\t\topacity: 0\n\t}\n};\n\nvar styles = function styles(_ref) {\n\tvar color = _ref.color,\n\t size = _ref.size;\n\treturn {\n\t\tspinner: {\n\t\t\tdisplay: 'inline-block',\n\t\t\tposition: 'relative',\n\t\t\twidth: size,\n\t\t\theight: size\n\t\t},\n\t\tripple: {\n\t\t\tposition: 'absolute',\n\t\t\tborder: '4px solid ' + color,\n\t\t\topacity: 1,\n\t\t\tborderRadius: '50%',\n\t\t\tanimationName: rippleKeyframes,\n\t\t\tanimationDuration: '1s',\n\t\t\tanimationTimingFunction: 'cubic-bezier(0, 0.2, 0.8, 1)',\n\t\t\tanimationIterationCount: 'infinite'\n\t\t}\n\t};\n};\n\nexports.default = Spinner;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\nexports.default = bindFunctions;\n/**\n\tBind multiple component methods:\n\n\t* @param {this} context\n\t* @param {Array} functions\n\n\tconstructor() {\n\t\t...\n\t\tbindFunctions.call(this, ['handleClick', 'handleOther']);\n\t}\n*/\n\nfunction bindFunctions(functions) {\n\tvar _this = this;\n\n\tfunctions.forEach(function (f) {\n\t\treturn _this[f] = _this[f].bind(_this);\n\t});\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n// Return true if window + document\n\nexports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _detectHover = require('detect-hover');\n\nvar _detectHover2 = _interopRequireDefault(_detectHover);\n\nvar _detectPointer = require('detect-pointer');\n\nvar _detectPointer2 = _interopRequireDefault(_detectPointer);\n\nvar _detectTouchEvents = require('detect-touch-events');\n\nvar _detectTouchEvents2 = _interopRequireDefault(_detectTouchEvents);\n\nvar _detectPassiveEvents = require('detect-passive-events');\n\nvar _detectPassiveEvents2 = _interopRequireDefault(_detectPassiveEvents);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/*\n * detectIt object structure\n * const detectIt = {\n * deviceType: 'mouseOnly' / 'touchOnly' / 'hybrid',\n * passiveEvents: boolean,\n * hasTouch: boolean,\n * hasMouse: boolean,\n * maxTouchPoints: number,\n * primaryHover: 'hover' / 'none',\n * primaryPointer: 'fine' / 'coarse' / 'none',\n * state: {\n * detectHover,\n * detectPointer,\n * detectTouchEvents,\n * detectPassiveEvents,\n * },\n * update() {...},\n * }\n */\n\nfunction determineDeviceType(hasTouch, anyHover, anyFine, state) {\n // A hybrid device is one that both hasTouch and any input device can hover\n // or has a fine pointer.\n if (hasTouch && (anyHover || anyFine)) return 'hybrid';\n\n // workaround for browsers that have the touch events api,\n // and have implemented Level 4 media queries but not the\n // hover and pointer media queries, so the tests are all false (notable Firefox)\n // if it hasTouch, no pointer and hover support, and on an android assume it's touchOnly\n // if it hasTouch, no pointer and hover support, and not on an android assume it's a hybrid\n if (hasTouch && Object.keys(state.detectHover).filter(function (key) {\n return key !== 'update';\n }).every(function (key) {\n return state.detectHover[key] === false;\n }) && Object.keys(state.detectPointer).filter(function (key) {\n return key !== 'update';\n }).every(function (key) {\n return state.detectPointer[key] === false;\n })) {\n if (window.navigator && /android/.test(window.navigator.userAgent.toLowerCase())) {\n return 'touchOnly';\n }\n return 'hybrid';\n }\n\n // In almost all cases a device that doesn’t support touch will have a mouse,\n // but there may be rare exceptions. Note that it doesn’t work to do additional tests\n // based on hover and pointer media queries as older browsers don’t support these.\n // Essentially, 'mouseOnly' is the default.\n return hasTouch ? 'touchOnly' : 'mouseOnly';\n}\n\nvar detectIt = {\n state: {\n detectHover: _detectHover2.default,\n detectPointer: _detectPointer2.default,\n detectTouchEvents: _detectTouchEvents2.default,\n detectPassiveEvents: _detectPassiveEvents2.default\n },\n update: function update() {\n detectIt.state.detectHover.update();\n detectIt.state.detectPointer.update();\n detectIt.state.detectTouchEvents.update();\n detectIt.state.detectPassiveEvents.update();\n detectIt.updateOnlyOwnProperties();\n },\n updateOnlyOwnProperties: function updateOnlyOwnProperties() {\n if (typeof window !== 'undefined') {\n detectIt.passiveEvents = detectIt.state.detectPassiveEvents.hasSupport || false;\n\n detectIt.hasTouch = detectIt.state.detectTouchEvents.hasSupport || false;\n\n detectIt.deviceType = determineDeviceType(detectIt.hasTouch, detectIt.state.detectHover.anyHover, detectIt.state.detectPointer.anyFine, detectIt.state);\n\n detectIt.hasMouse = detectIt.deviceType !== 'touchOnly';\n\n detectIt.primaryInput = detectIt.deviceType === 'mouseOnly' && 'mouse' || detectIt.deviceType === 'touchOnly' && 'touch' ||\n // deviceType is hybrid:\n detectIt.state.detectHover.hover && 'mouse' || detectIt.state.detectHover.none && 'touch' ||\n // if there's no support for hover media queries but detectIt determined it's\n // a hybrid device, then assume it's a mouse first device\n 'mouse';\n\n // issue with Windows Chrome on hybrid devices starting in version 59 where\n // media queries represent a touch only device, so if the browser is an\n // affected Windows Chrome version and hasTouch,\n // then assume it's a hybrid with primaryInput mouse\n // see https://github.com/rafrex/detect-it/issues/8\n var isAffectedWindowsChromeVersion = /windows/.test(window.navigator.userAgent.toLowerCase()) && /chrome/.test(window.navigator.userAgent.toLowerCase()) && parseInt(/Chrome\\/([0-9.]+)/.exec(navigator.userAgent)[1], 10) >= 59;\n\n if (isAffectedWindowsChromeVersion && detectIt.hasTouch) {\n detectIt.deviceType = 'hybrid';\n detectIt.hasMouse = true;\n detectIt.primaryInput = 'mouse';\n }\n }\n }\n};\n\ndetectIt.updateOnlyOwnProperties();\nexports.default = detectIt;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar detectHover = {\n update: function update() {\n if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') {\n detectHover.hover = window.matchMedia('(hover: hover)').matches;\n detectHover.none = window.matchMedia('(hover: none)').matches || window.matchMedia('(hover: on-demand)').matches;\n detectHover.anyHover = window.matchMedia('(any-hover: hover)').matches;\n detectHover.anyNone = window.matchMedia('(any-hover: none)').matches || window.matchMedia('(any-hover: on-demand)').matches;\n }\n }\n};\n\ndetectHover.update();\nexports.default = detectHover;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar detectPointer = {\n update: function update() {\n if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') {\n detectPointer.fine = window.matchMedia('(pointer: fine)').matches;\n detectPointer.coarse = window.matchMedia('(pointer: coarse)').matches;\n detectPointer.none = window.matchMedia('(pointer: none)').matches;\n detectPointer.anyFine = window.matchMedia('(any-pointer: fine)').matches;\n detectPointer.anyCoarse = window.matchMedia('(any-pointer: coarse)').matches;\n detectPointer.anyNone = window.matchMedia('(any-pointer: none)').matches;\n }\n }\n};\n\ndetectPointer.update();\nexports.default = detectPointer;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar detectTouchEvents = {\n update: function update() {\n if (typeof window !== 'undefined') {\n detectTouchEvents.hasSupport = 'ontouchstart' in window;\n detectTouchEvents.browserSupportsApi = Boolean(window.TouchEvent);\n }\n }\n};\n\ndetectTouchEvents.update();\nexports.default = detectTouchEvents;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n// adapted from https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md\nvar detectPassiveEvents = {\n update: function update() {\n if (typeof window !== 'undefined' && typeof window.addEventListener === 'function') {\n var passive = false;\n var options = Object.defineProperty({}, 'passive', {\n get: function get() {\n passive = true;\n }\n });\n // note: have to set and remove a no-op listener instead of null\n // (which was used previously), becasue Edge v15 throws an error\n // when providing a null callback.\n // https://github.com/rafgraph/detect-passive-events/pull/3\n var noop = function noop() {};\n window.addEventListener('testPassiveEventSupport', noop, options);\n window.removeEventListener('testPassiveEventSupport', noop, options);\n detectPassiveEvents.hasSupport = passive;\n }\n }\n};\n\ndetectPassiveEvents.update();\nexports.default = detectPassiveEvents;","/**\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\n'use strict';\n\nvar emptyFunction = require('fbjs/lib/emptyFunction');\nvar invariant = require('fbjs/lib/invariant');\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n invariant(\n false,\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim\n };\n\n ReactPropTypes.checkPropTypes = emptyFunction;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","\"use strict\";\n\n/**\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 * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;","/**\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 */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;","/**\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\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/*!\n * object.omit \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('is-extendable');\n\nmodule.exports = function omit(obj, props, fn) {\n if (!isObject(obj)) return {};\n\n if (typeof props === 'function') {\n fn = props;\n props = [];\n }\n\n if (typeof props === 'string') {\n props = [props];\n }\n\n var isFunction = typeof fn === 'function';\n var keys = Object.keys(obj);\n var res = {};\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var val = obj[key];\n\n if (!props || (props.indexOf(key) === -1 && (!isFunction || fn(val, key, obj)))) {\n res[key] = val;\n }\n }\n return res;\n};\n","/*!\n * is-extendable \n *\n * Copyright (c) 2015-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar isPlainObject = require('is-plain-object');\n\nmodule.exports = function isExtendable(val) {\n return isPlainObject(val) || typeof val === 'function' || Array.isArray(val);\n};\n","/*!\n * is-plain-object \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('isobject');\n\nfunction isObjectObject(o) {\n return isObject(o) === true\n && Object.prototype.toString.call(o) === '[object Object]';\n}\n\nmodule.exports = function isPlainObject(o) {\n var ctor,prot;\n\n if (isObjectObject(o) === false) return false;\n\n // If has modified constructor\n ctor = o.constructor;\n if (typeof ctor !== 'function') return false;\n\n // If has modified prototype\n prot = ctor.prototype;\n if (isObjectObject(prot) === false) return false;\n\n // If constructor does not have an Object-specific method\n if (prot.hasOwnProperty('isPrototypeOf') === false) {\n return false;\n }\n\n // Most likely a plain Object\n return true;\n};\n","/*!\n * isobject \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isObject(val) {\n return val != null && typeof val === 'object' && Array.isArray(val) === false;\n};\n","/**\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\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\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\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\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\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = function requiredIf(type, condition) {\n return function(props) {\n var test = condition(props) ? type.isRequired : type;\n return test.apply(this, arguments);\n };\n};\n","'use strict';\n\nmodule.exports = function equal(a, b) {\n if (a === b) return true;\n\n var arrA = Array.isArray(a)\n , arrB = Array.isArray(b)\n , i;\n\n if (arrA && arrB) {\n if (a.length != b.length) return false;\n for (i = 0; i < a.length; i++)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n if (arrA != arrB) return false;\n\n if (a && b && typeof a === 'object' && typeof b === 'object') {\n var keys = Object.keys(a);\n if (keys.length !== Object.keys(b).length) return false;\n\n var dateA = a instanceof Date\n , dateB = b instanceof Date;\n if (dateA && dateB) return a.getTime() == b.getTime();\n if (dateA != dateB) return false;\n\n var regexpA = a instanceof RegExp\n , regexpB = b instanceof RegExp;\n if (regexpA && regexpB) return a.toString() == b.toString();\n if (regexpA != regexpB) return false;\n\n for (i = 0; i < keys.length; i++)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n for (i = 0; i < keys.length; i++)\n if(!equal(a[keys[i]], b[keys[i]])) return false;\n\n return true;\n }\n\n return false;\n};\n","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar ElementRelativeCursorPosition = function () {\n function ElementRelativeCursorPosition(el) {\n _classCallCheck(this, ElementRelativeCursorPosition);\n\n this.el = el;\n }\n\n _createClass(ElementRelativeCursorPosition, [{\n key: \"getDocumentRelativeElementOffset\",\n value: function getDocumentRelativeElementOffset(el) {\n var rootEl = this.getRootOfEl(el);\n\n var _rootEl$getBoundingCl = rootEl.getBoundingClientRect(),\n docLeft = _rootEl$getBoundingCl.left,\n docTop = _rootEl$getBoundingCl.top;\n\n var _el$getBoundingClient = el.getBoundingClientRect(),\n elLeft = _el$getBoundingClient.left,\n elTop = _el$getBoundingClient.top;\n\n return {\n x: Math.abs(docLeft) + elLeft,\n y: Math.abs(docTop) + elTop\n };\n }\n }, {\n key: \"getRootOfEl\",\n value: function getRootOfEl(el) {\n if (el.parentElement) {\n return this.getRootOfEl(el.parentElement);\n }\n return el;\n }\n }, {\n key: \"getComputedElementRelativeCursorPosition\",\n value: function getComputedElementRelativeCursorPosition(event, documentRelativeElementOffset) {\n this.lastEvent = event;\n var position = this.getDocumentRelativeCursorPosition(event);\n var cursorX = position.x,\n cursorY = position.y;\n var offsetX = documentRelativeElementOffset.x,\n offsetY = documentRelativeElementOffset.y;\n\n\n return {\n x: Math.round(cursorX - offsetX),\n y: Math.round(cursorY - offsetY)\n };\n }\n }, {\n key: \"getDocumentRelativeCursorPosition\",\n value: function getDocumentRelativeCursorPosition(event) {\n return {\n x: event.pageX,\n y: event.pageY\n };\n }\n }, {\n key: \"getCursorPosition\",\n value: function getCursorPosition(event) {\n return this.getComputedElementRelativeCursorPosition(event, this.documentRelativeElementOffset);\n }\n }, {\n key: \"documentRelativeElementOffset\",\n get: function get() {\n if (!this.elementOffset) {\n this.elementOffset = this.getDocumentRelativeElementOffset(this.el);\n }\n\n return this.elementOffset;\n }\n }]);\n\n return ElementRelativeCursorPosition;\n}();\n\nexport default ElementRelativeCursorPosition;","export default function addEventListener(node, eventName, handler, options) {\n node.addEventListener(eventName, handler, options);\n return {\n removeEventListener: function removeEventListener() {\n node.removeEventListener(eventName, handler, options);\n }\n };\n}","export var PRESS_EVENT_TIMER_NAME = 'pressEvent';\nexport var MOUSE_EMULATION_GUARD_TIMER_NAME = 'mouseEmulation';\nexport var SET_ACTIVATION_TIMER_NAME = 'setHovering';\nexport var UNSET_ACTIVATION_TIMER_NAME = 'unsetHovering';","export default (function () {});","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\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, { Children, cloneElement } from 'react';\nimport PropTypes from 'prop-types';\nimport objectAssign from 'object-assign';\nimport omit from 'object.omit';\nimport Core from './lib/ElementRelativeCursorPosition';\nimport addEventListener from './utils/addEventListener';\nimport * as constants from './constants';\nimport noop from './utils/noop';\n\nvar _class = function (_React$Component) {\n _inherits(_class, _React$Component);\n\n function _class(props) {\n _classCallCheck(this, _class);\n\n var _this = _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).call(this, props));\n\n _initialiseProps.call(_this);\n\n _this.state = {\n detectedEnvironment: {\n isMouseDetected: false,\n isTouchDetected: false\n },\n elementDimensions: {\n width: 0,\n height: 0\n },\n isActive: false,\n isPositionOutside: true,\n position: {\n x: 0,\n y: 0\n }\n };\n\n _this.shouldGuardAgainstMouseEmulationByDevices = false;\n _this.eventListeners = [];\n _this.timers = [];\n _this.elementOffset = {\n x: 0,\n y: 0\n };\n\n _this.onTouchStart = _this.onTouchStart.bind(_this);\n _this.onTouchMove = _this.onTouchMove.bind(_this);\n _this.onTouchEnd = _this.onTouchEnd.bind(_this);\n _this.onTouchCancel = _this.onTouchCancel.bind(_this);\n _this.onMouseEnter = _this.onMouseEnter.bind(_this);\n _this.onMouseMove = _this.onMouseMove.bind(_this);\n _this.onMouseLeave = _this.onMouseLeave.bind(_this);\n return _this;\n }\n\n _createClass(_class, [{\n key: 'onTouchStart',\n value: function onTouchStart(e) {\n this.init();\n this.onTouchDetected();\n this.setShouldGuardAgainstMouseEmulationByDevices();\n\n var position = this.core.getCursorPosition(this.getTouchEvent(e));\n this.setPositionState(position);\n\n if (this.props.isActivatedOnTouch) {\n e.preventDefault();\n this.activate();\n return;\n }\n\n this.initPressEventCriteria(position);\n this.setPressEventTimer();\n }\n }, {\n key: 'onTouchMove',\n value: function onTouchMove(e) {\n if (!this.isCoreReady) {\n return;\n }\n\n var position = this.core.getCursorPosition(this.getTouchEvent(e));\n\n if (!this.state.isActive) {\n this.setPressEventCriteria(position);\n return;\n }\n\n this.setPositionState(position);\n e.preventDefault();\n\n if (this.props.shouldStopTouchMovePropagation) {\n e.stopPropagation();\n }\n }\n }, {\n key: 'onTouchEnd',\n value: function onTouchEnd() {\n this.deactivate();\n this.unsetShouldGuardAgainstMouseEmulationByDevices();\n }\n }, {\n key: 'onTouchCancel',\n value: function onTouchCancel() {\n this.deactivate();\n this.unsetShouldGuardAgainstMouseEmulationByDevices();\n }\n }, {\n key: 'onMouseEnter',\n value: function onMouseEnter(e) {\n if (this.shouldGuardAgainstMouseEmulationByDevices) {\n return;\n }\n\n this.init();\n this.onMouseDetected();\n this.setPositionState(this.core.getCursorPosition(e));\n this.clearActivationTimers();\n this.schedulActivation(this.props.hoverDelayInMs);\n }\n }, {\n key: 'onMouseMove',\n value: function onMouseMove(e) {\n if (!this.isCoreReady) {\n return;\n }\n\n this.setPositionState(this.core.getCursorPosition(e));\n }\n }, {\n key: 'onMouseLeave',\n value: function onMouseLeave() {\n this.clearActivationTimers();\n this.scheduleDeactivation(this.props.hoverOffDelayInMs);\n this.setState({ isPositionOutside: true });\n }\n }, {\n key: 'onTouchDetected',\n value: function onTouchDetected() {\n var environment = {\n isTouchDetected: true,\n isMouseDetected: false\n };\n\n this.setState({ detectedEnvironment: environment });\n this.props.onDetectedEnvironmentChanged(environment);\n }\n }, {\n key: 'onMouseDetected',\n value: function onMouseDetected() {\n var environment = {\n isTouchDetected: false,\n isMouseDetected: true\n };\n\n this.setState({ detectedEnvironment: environment });\n this.props.onDetectedEnvironmentChanged(environment);\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.props.isEnabled) {\n this.enable();\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(_ref) {\n var willBeEnabled = _ref.isEnabled;\n var isEnabled = this.props.isEnabled;\n\n var isEnabledWillChange = isEnabled !== willBeEnabled;\n\n if (!isEnabledWillChange) {\n return;\n }\n\n if (willBeEnabled) {\n this.enable();\n } else {\n this.disable();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.clearTimers();\n this.disable();\n }\n }, {\n key: 'enable',\n value: function enable() {\n this.addEventListeners();\n }\n }, {\n key: 'disable',\n value: function disable() {\n this.removeEventListeners();\n }\n }, {\n key: 'init',\n value: function init() {\n this.core = new Core(this.el);\n\n this.setElementDimensionsState(this.getElementDimensions(this.el));\n }\n }, {\n key: 'reset',\n value: function reset() {\n var _core = this.core;\n _core = _core === undefined ? {} : _core;\n var lastMouseEvent = _core.lastEvent;\n\n\n this.init();\n\n if (!lastMouseEvent) {\n return;\n }\n\n this.setPositionState(this.core.getCursorPosition(lastMouseEvent));\n }\n }, {\n key: 'activate',\n value: function activate() {\n this.setState({ isActive: true });\n this.props.onActivationChanged({ isActive: true });\n }\n }, {\n key: 'deactivate',\n value: function deactivate() {\n var _this2 = this;\n\n this.clearTimer(constants.PRESS_EVENT_TIMER_NAME);\n\n this.setState({ isActive: false }, function () {\n var _state = _this2.state,\n isPositionOutside = _state.isPositionOutside,\n position = _state.position;\n\n\n _this2.props.onPositionChanged({\n isPositionOutside: isPositionOutside,\n position: position\n });\n\n _this2.props.onActivationChanged({ isActive: false });\n });\n }\n }, {\n key: 'setPositionState',\n value: function setPositionState(position) {\n var isPositionOutside = this.getIsPositionOutside(position);\n\n this.setState({\n isPositionOutside: isPositionOutside,\n position: position\n }, this.onPositionChanged);\n }\n }, {\n key: 'setElementDimensionsState',\n value: function setElementDimensionsState(dimensions) {\n this.setState({\n elementDimensions: dimensions\n });\n }\n }, {\n key: 'schedulActivation',\n value: function schedulActivation(schedule) {\n var _this3 = this;\n\n var scheduleId = setTimeout(function () {\n _this3.activate();\n }, schedule);\n\n this.timers.push({\n id: scheduleId,\n name: constants.SET_ACTIVATION_TIMER_NAME\n });\n }\n }, {\n key: 'scheduleDeactivation',\n value: function scheduleDeactivation(schedule) {\n var _this4 = this;\n\n var scheduleId = setTimeout(function () {\n _this4.deactivate();\n }, schedule);\n\n this.timers.push({\n id: scheduleId,\n name: constants.UNSET_ACTIVATION_TIMER_NAME\n });\n }\n }, {\n key: 'clearActivationTimers',\n value: function clearActivationTimers() {\n this.clearTimer(constants.SET_ACTIVATION_TIMER_NAME);\n this.clearTimer(constants.UNSET_ACTIVATION_TIMER_NAME);\n }\n }, {\n key: 'setPressEventTimer',\n value: function setPressEventTimer() {\n var _this5 = this;\n\n var _props = this.props,\n pressDuration = _props.pressDuration,\n pressMoveThreshold = _props.pressMoveThreshold;\n\n\n this.timers.push({\n name: constants.PRESS_EVENT_TIMER_NAME,\n id: setTimeout(function () {\n if (Math.abs(_this5.currentElTop - _this5.initialElTop) < pressMoveThreshold) {\n _this5.activate();\n }\n }, pressDuration)\n });\n }\n }, {\n key: 'setPressEventCriteria',\n value: function setPressEventCriteria(position) {\n this.currentElTop = position.y;\n }\n }, {\n key: 'initPressEventCriteria',\n value: function initPressEventCriteria(position) {\n var top = position.y;\n this.initialElTop = top;\n this.currentElTop = top;\n }\n }, {\n key: 'setShouldGuardAgainstMouseEmulationByDevices',\n value: function setShouldGuardAgainstMouseEmulationByDevices() {\n this.shouldGuardAgainstMouseEmulationByDevices = true;\n }\n }, {\n key: 'unsetShouldGuardAgainstMouseEmulationByDevices',\n value: function unsetShouldGuardAgainstMouseEmulationByDevices() {\n var _this6 = this;\n\n this.timers.push({\n name: constants.MOUSE_EMULATION_GUARD_TIMER_NAME,\n id: setTimeout(function () {\n _this6.shouldGuardAgainstMouseEmulationByDevices = false;\n }, 0)\n });\n }\n }, {\n key: 'clearTimers',\n value: function clearTimers() {\n var timers = this.timers;\n while (timers.length) {\n var timer = timers.pop();\n clearTimeout(timer.id);\n }\n }\n }, {\n key: 'clearTimer',\n value: function clearTimer(timerName) {\n this.timers.forEach(function (timer) {\n if (timer.name === timerName) {\n clearTimeout(timer.id);\n }\n });\n }\n }, {\n key: 'getElementDimensions',\n value: function getElementDimensions(el) {\n var _el$getBoundingClient = el.getBoundingClientRect(),\n width = _el$getBoundingClient.width,\n height = _el$getBoundingClient.height;\n\n return {\n width: width,\n height: height\n };\n }\n }, {\n key: 'getIsPositionOutside',\n value: function getIsPositionOutside(position) {\n var x = position.x,\n y = position.y;\n var _state$elementDimensi = this.state.elementDimensions,\n width = _state$elementDimensi.width,\n height = _state$elementDimensi.height;\n\n\n var isPositionOutside = x < 0 || y < 0 || x > width || y > height;\n\n return isPositionOutside;\n }\n }, {\n key: 'getTouchEvent',\n value: function getTouchEvent(e) {\n return e.touches[0];\n }\n }, {\n key: 'getIsReactComponent',\n value: function getIsReactComponent(reactElement) {\n return typeof reactElement.type === 'function';\n }\n }, {\n key: 'shouldDecorateChild',\n value: function shouldDecorateChild(child) {\n return !!child && this.getIsReactComponent(child) && this.props.shouldDecorateChildren;\n }\n }, {\n key: 'decorateChild',\n value: function decorateChild(child, props) {\n return cloneElement(child, props);\n }\n }, {\n key: 'decorateChildren',\n value: function decorateChildren(children, props) {\n var _this7 = this;\n\n return Children.map(children, function (child) {\n return _this7.shouldDecorateChild(child) ? _this7.decorateChild(child, props) : child;\n });\n }\n }, {\n key: 'addEventListeners',\n value: function addEventListeners() {\n this.eventListeners.push(addEventListener(this.el, 'touchstart', this.onTouchStart, { passive: false }), addEventListener(this.el, 'touchmove', this.onTouchMove, { passive: false }), addEventListener(this.el, 'touchend', this.onTouchEnd), addEventListener(this.el, 'touchcancel', this.onTouchCancel), addEventListener(this.el, 'mouseenter', this.onMouseEnter), addEventListener(this.el, 'mousemove', this.onMouseMove), addEventListener(this.el, 'mouseleave', this.onMouseLeave));\n }\n }, {\n key: 'removeEventListeners',\n value: function removeEventListeners() {\n while (this.eventListeners.length) {\n this.eventListeners.pop().removeEventListener();\n }\n }\n }, {\n key: 'getPassThroughProps',\n value: function getPassThroughProps() {\n var ownPropNames = Object.keys(this.constructor.propTypes);\n return omit(this.props, ownPropNames);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this8 = this;\n\n var _props2 = this.props,\n children = _props2.children,\n className = _props2.className,\n mapChildProps = _props2.mapChildProps,\n style = _props2.style;\n\n var props = objectAssign({}, mapChildProps(this.state), this.getPassThroughProps());\n\n return React.createElement(\n 'div',\n {\n className: className,\n ref: function ref(el) {\n return _this8.el = el;\n },\n style: objectAssign({}, style, {\n WebkitUserSelect: 'none'\n })\n },\n this.decorateChildren(children, props)\n );\n }\n }, {\n key: 'isCoreReady',\n get: function get() {\n return !!this.core;\n }\n }]);\n\n return _class;\n}(React.Component);\n\n_class.displayName = 'ReactCursorPosition';\n_class.propTypes = {\n children: PropTypes.any,\n className: PropTypes.string,\n hoverDelayInMs: PropTypes.number,\n hoverOffDelayInMs: PropTypes.number,\n isActivatedOnTouch: PropTypes.bool,\n isEnabled: PropTypes.bool,\n mapChildProps: PropTypes.func,\n onActivationChanged: PropTypes.func,\n onPositionChanged: PropTypes.func,\n onDetectedEnvironmentChanged: PropTypes.func,\n pressDuration: PropTypes.number,\n pressMoveThreshold: PropTypes.number,\n shouldDecorateChildren: PropTypes.bool,\n shouldStopTouchMovePropagation: PropTypes.bool,\n style: PropTypes.object\n};\n_class.defaultProps = {\n isActivatedOnTouch: false,\n isEnabled: true,\n hoverDelayInMs: 0,\n hoverOffDelayInMs: 0,\n mapChildProps: function mapChildProps(props) {\n return props;\n },\n onActivationChanged: noop,\n onPositionChanged: noop,\n onDetectedEnvironmentChanged: noop,\n pressDuration: 500,\n pressMoveThreshold: 5,\n shouldDecorateChildren: true,\n shouldStopTouchMovePropagation: false\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this9 = this;\n\n this.onPositionChanged = function () {\n var onPositionChanged = _this9.props.onPositionChanged;\n\n onPositionChanged(_this9.state);\n };\n};\n\nexport default _class;","\nexport function getSmallToLargeImageRatio(smallImage, largeImage) {\n return getSmallToLargeElementRatio(smallImage, largeImage);\n}\n\nexport function getLargeToSmallImageRatio(smallImage, largeImage) {\n return {\n x: smallImage.width / largeImage.width,\n y: smallImage.height / largeImage.height\n };\n}\n\nexport function getContainerToImageRatio(container, image) {\n return getSmallToLargeElementRatio(container, {\n width: image.width - container.width,\n height: image.height - container.height\n });\n}\n\nfunction getSmallToLargeElementRatio(smallElement, largeElement) {\n return {\n x: largeElement.width / smallElement.width,\n y: largeElement.height / smallElement.height\n };\n}","import clamp from 'clamp';\nimport { getContainerToImageRatio, getSmallToLargeImageRatio } from './imageRatio';\n\nfunction getMinCoordinates(container, largeImage) {\n return {\n x: (largeImage.width - container.width) * -1,\n y: (largeImage.height - container.height) * -1\n };\n}\n\nfunction getMaxCoordinates() {\n return {\n x: 0,\n y: 0\n };\n}\n\nexport function getLensModeEnlargedImageCoordinates(_ref) {\n var containerDimensions = _ref.containerDimensions,\n lensCursorOffset = _ref.cursorOffset,\n largeImage = _ref.largeImage,\n position = _ref.position,\n smallImage = _ref.smallImage;\n\n var adjustedPosition = getCursorPositionAdjustedForLens(position, lensCursorOffset);\n var ratio = getSmallToLargeImageRatio(smallImage, largeImage);\n var coordinates = {\n x: Math.round(adjustedPosition.x * ratio.x) * -1,\n y: Math.round(adjustedPosition.y * ratio.y) * -1\n };\n var minCoordinates = getMinCoordinates(containerDimensions, largeImage);\n var maxCoordinates = getMaxCoordinates();\n\n return clampImageCoordinates(coordinates, minCoordinates, maxCoordinates);\n}\n\nexport function getInPlaceEnlargedImageCoordinates(_ref2) {\n var containerDimensions = _ref2.containerDimensions,\n largeImage = _ref2.largeImage,\n position = _ref2.position;\n\n var minCoordinates = getMinCoordinates(containerDimensions, largeImage);\n var maxCoordinates = getMaxCoordinates();\n var ratio = getContainerToImageRatio(containerDimensions, largeImage);\n var coordinates = {\n x: Math.round(position.x * ratio.x) * -1,\n y: Math.round(position.y * ratio.y) * -1\n };\n\n return clampImageCoordinates(coordinates, minCoordinates, maxCoordinates);\n}\n\nfunction clampImageCoordinates(imageCoordinates, minCoordinates, maxCoordinates) {\n return {\n x: clamp(imageCoordinates.x, minCoordinates.x, maxCoordinates.x),\n y: clamp(imageCoordinates.y, minCoordinates.y, maxCoordinates.y)\n };\n}\n\nfunction getCursorPositionAdjustedForLens(position, lensCursorOffset) {\n return {\n x: position.x - lensCursorOffset.x,\n y: position.y - lensCursorOffset.y\n };\n}","import PropTypes from 'prop-types';\nimport requiredIf from 'react-required-if';\nimport objectAssign from 'object-assign';\n\nvar BaseImageShape = {\n alt: PropTypes.string,\n src: PropTypes.string.isRequired,\n srcSet: PropTypes.string,\n sizes: PropTypes.string,\n onLoad: PropTypes.func,\n onError: PropTypes.func\n};\n\nexport var LargeImageShape = PropTypes.shape(objectAssign({}, BaseImageShape, {\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired\n}));\n\nexport var SmallImageShape = PropTypes.shape(objectAssign({}, BaseImageShape, {\n isFluidWidth: PropTypes.bool,\n width: requiredIf(PropTypes.number, function (props) {\n return !props.isFluidWidth;\n }),\n height: requiredIf(PropTypes.number, function (props) {\n return !props.isFluidWidth;\n })\n}));","export var INPUT_TYPE = {\n mouse: 'mouse',\n touch: 'touch'\n};\n\nexport var ENLARGED_IMAGE_POSITION = {\n over: 'over',\n beside: 'beside'\n};","import PropTypes from 'prop-types';\nimport { ENLARGED_IMAGE_POSITION } from '../constants';\n\nexport var EnlargedImagePosition = PropTypes.oneOf([ENLARGED_IMAGE_POSITION.beside, ENLARGED_IMAGE_POSITION.over]);\n\nexport var EnlargedImageContainerDimensions = PropTypes.shape({\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n height: PropTypes.oneOfType([PropTypes.number, PropTypes.string])\n});\n\nexport var ContainerDimensions = PropTypes.shape({\n width: PropTypes.number,\n height: PropTypes.number\n});","export function noop() {}","import PropTypes from 'prop-types';\n\nexport default PropTypes.shape({\n x: PropTypes.number.isRequired,\n y: PropTypes.number.isRequired\n});","import objectAssign from 'object-assign';\nimport isEqual from 'fast-deep-equal';\n\nexport function getContainerStyle(smallImage, userSpecifiedStyle) {\n var isSmallImageFluidWidth = smallImage.isFluidWidth,\n width = smallImage.width,\n height = smallImage.height;\n\n\n var fluidWidthContainerStyle = {\n width: 'auto',\n height: 'auto',\n fontSize: '0px',\n position: 'relative'\n };\n\n var fixedWidthContainerStyle = {\n width: width + 'px',\n height: height + 'px',\n position: 'relative'\n };\n\n var priorityContainerStyle = isSmallImageFluidWidth ? fluidWidthContainerStyle : fixedWidthContainerStyle;\n\n var compositContainerStyle = objectAssign({ cursor: 'crosshair' }, userSpecifiedStyle, priorityContainerStyle);\n\n return compositContainerStyle;\n}\n\nexport function getSmallImageStyle(smallImage, style) {\n var isSmallImageFluidWidth = smallImage.isFluidWidth,\n width = smallImage.width,\n height = smallImage.height;\n\n\n var fluidWidthSmallImageStyle = {\n width: '100%',\n height: 'auto',\n display: 'block',\n pointerEvents: 'none'\n };\n\n var fixedWidthSmallImageStyle = {\n width: width + 'px',\n height: height + 'px',\n pointerEvents: 'none'\n };\n\n var prioritySmallImageStyle = isSmallImageFluidWidth ? fluidWidthSmallImageStyle : fixedWidthSmallImageStyle;\n\n var compositSmallImageStyle = objectAssign({}, style, prioritySmallImageStyle);\n\n return compositSmallImageStyle;\n}\n\nfunction getPrimaryEnlargedImageContainerStyle(isInPlaceMode, isPortalRendered) {\n var baseContainerStyle = {\n overflow: 'hidden'\n };\n\n if (isPortalRendered) {\n return baseContainerStyle;\n }\n\n var sharedPositionStyle = {\n position: 'absolute',\n top: '0px'\n };\n\n if (isInPlaceMode) {\n return objectAssign(baseContainerStyle, sharedPositionStyle, { left: '0px' });\n }\n\n return objectAssign(baseContainerStyle, sharedPositionStyle, {\n left: '100%',\n marginLeft: '10px',\n border: '1px solid #d6d6d6'\n });\n}\n\nfunction getPriorityEnlargedImageContainerStyle(params) {\n var containerDimensions = params.containerDimensions,\n fadeDurationInMs = params.fadeDurationInMs,\n isTransitionActive = params.isTransitionActive;\n\n\n return {\n width: containerDimensions.width,\n height: containerDimensions.height,\n opacity: isTransitionActive ? 1 : 0,\n transition: 'opacity ' + fadeDurationInMs + 'ms ease-in',\n pointerEvents: 'none'\n };\n}\n\nvar enlargedImageContainerStyleCache = {};\n\nexport function getEnlargedImageContainerStyle(params) {\n var cache = enlargedImageContainerStyleCache;\n var _cache$params = cache.params,\n memoizedParams = _cache$params === undefined ? {} : _cache$params,\n memoizedStyle = cache.compositStyle;\n\n\n if (isEqual(memoizedParams, params)) {\n return memoizedStyle;\n }\n\n var containerDimensions = params.containerDimensions,\n userSpecifiedStyle = params.containerStyle,\n fadeDurationInMs = params.fadeDurationInMs,\n isTransitionActive = params.isTransitionActive,\n isInPlaceMode = params.isInPlaceMode,\n isPortalRendered = params.isPortalRendered;\n\n\n var primaryStyle = getPrimaryEnlargedImageContainerStyle(isInPlaceMode, isPortalRendered);\n var priorityStyle = getPriorityEnlargedImageContainerStyle({\n containerDimensions: containerDimensions,\n fadeDurationInMs: fadeDurationInMs,\n isTransitionActive: isTransitionActive\n });\n\n cache.compositStyle = objectAssign({}, primaryStyle, userSpecifiedStyle, priorityStyle);\n cache.params = params;\n\n return cache.compositStyle;\n}\n\nexport function getEnlargedImageStyle(params) {\n var imageCoordinates = params.imageCoordinates,\n userSpecifiedStyle = params.imageStyle,\n largeImage = params.largeImage;\n\n\n var translate = 'translate(' + imageCoordinates.x + 'px, ' + imageCoordinates.y + 'px)';\n\n var priorityStyle = {\n width: largeImage.width,\n height: largeImage.height,\n transform: translate,\n WebkitTransform: translate,\n msTransform: translate,\n pointerEvents: 'none'\n };\n\n var compositeImageStyle = objectAssign({}, userSpecifiedStyle, priorityStyle);\n\n return compositeImageStyle;\n}","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\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 from 'react';\nimport PropTypes from 'prop-types';\n\nimport { getLensModeEnlargedImageCoordinates, getInPlaceEnlargedImageCoordinates } from './lib/imageCoordinates';\nimport { LargeImageShape } from './prop-types/Image';\nimport { ContainerDimensions } from './prop-types/EnlargedImage';\nimport { noop } from './utils';\nimport Point from './prop-types/Point';\nimport { getEnlargedImageContainerStyle, getEnlargedImageStyle } from './lib/styles';\n\nvar _class = function (_React$Component) {\n _inherits(_class, _React$Component);\n\n function _class(props) {\n _classCallCheck(this, _class);\n\n var _this = _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).call(this, props));\n\n _this.state = {\n isTransitionEntering: false,\n isTransitionActive: false,\n isTransitionLeaving: false,\n isTransitionDone: false\n };\n\n _this.timers = [];\n return _this;\n }\n\n _createClass(_class, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n this.scheduleCssTransition(nextProps);\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.timers.forEach(function (timerId) {\n clearTimeout(timerId);\n });\n }\n }, {\n key: 'scheduleCssTransition',\n value: function scheduleCssTransition(nextProps) {\n var _this2 = this;\n\n var _props = this.props,\n fadeDurationInMs = _props.fadeDurationInMs,\n isActive = _props.isActive,\n isPositionOutside = _props.isPositionOutside;\n\n var willIsActiveChange = isActive !== nextProps.isActive;\n var willIsPositionOutsideChange = isPositionOutside !== nextProps.isPositionOutside;\n\n if (!willIsActiveChange && !willIsPositionOutsideChange) {\n return;\n }\n\n if (nextProps.isActive && !nextProps.isPositionOutside) {\n this.setState({\n isTrainsitionDone: false,\n isTransitionEntering: true\n });\n\n this.timers.push(setTimeout(function () {\n _this2.setState({\n isTransitionEntering: false,\n isTransitionActive: true\n });\n }, 0));\n } else {\n this.setState({\n isTransitionLeaving: true,\n isTransitionActive: false\n });\n\n this.timers.push(setTimeout(function () {\n _this2.setState({\n isTransitionDone: true,\n isTransitionLeaving: false\n });\n }, fadeDurationInMs));\n }\n }\n }, {\n key: 'getImageCoordinates',\n value: function getImageCoordinates() {\n var _props2 = this.props,\n cursorOffset = _props2.cursorOffset,\n largeImage = _props2.largeImage,\n containerDimensions = _props2.containerDimensions,\n position = _props2.position,\n smallImage = _props2.smallImage,\n isInPlaceMode = _props2.isInPlaceMode;\n\n\n if (isInPlaceMode) {\n return getInPlaceEnlargedImageCoordinates({\n containerDimensions: containerDimensions,\n largeImage: largeImage,\n position: position\n });\n }\n\n return getLensModeEnlargedImageCoordinates({\n containerDimensions: containerDimensions,\n cursorOffset: cursorOffset,\n largeImage: largeImage,\n position: position,\n smallImage: smallImage\n });\n }\n }, {\n key: 'render',\n value: function render() {\n var _props3 = this.props,\n containerClassName = _props3.containerClassName,\n imageClassName = _props3.imageClassName,\n isLazyLoaded = _props3.isLazyLoaded,\n largeImage = _props3.largeImage,\n _props3$largeImage = _props3.largeImage,\n _props3$largeImage$al = _props3$largeImage.alt,\n alt = _props3$largeImage$al === undefined ? '' : _props3$largeImage$al,\n _props3$largeImage$on = _props3$largeImage.onLoad,\n onLoad = _props3$largeImage$on === undefined ? noop : _props3$largeImage$on,\n _props3$largeImage$on2 = _props3$largeImage.onError,\n onError = _props3$largeImage$on2 === undefined ? noop : _props3$largeImage$on2;\n\n\n var component = React.createElement(\n 'div',\n {\n className: containerClassName,\n style: this.containerStyle\n },\n React.createElement('img', {\n alt: alt,\n className: imageClassName,\n src: largeImage.src,\n srcSet: largeImage.srcSet,\n sizes: largeImage.sizes,\n style: this.imageStyle,\n onLoad: onLoad,\n onError: onError\n })\n );\n\n if (isLazyLoaded) {\n return this.isVisible ? component : null;\n }\n\n return component;\n }\n }, {\n key: 'isVisible',\n get: function get() {\n var _state = this.state,\n isTransitionEntering = _state.isTransitionEntering,\n isTransitionActive = _state.isTransitionActive,\n isTransitionLeaving = _state.isTransitionLeaving;\n\n\n return isTransitionEntering || isTransitionActive || isTransitionLeaving;\n }\n }, {\n key: 'containerStyle',\n get: function get() {\n var _props4 = this.props,\n containerStyle = _props4.containerStyle,\n containerDimensions = _props4.containerDimensions,\n fadeDurationInMs = _props4.fadeDurationInMs,\n isPortalRendered = _props4.isPortalRendered,\n isInPlaceMode = _props4.isInPlaceMode;\n var isTransitionActive = this.state.isTransitionActive;\n\n\n return getEnlargedImageContainerStyle({\n containerDimensions: containerDimensions,\n containerStyle: containerStyle,\n fadeDurationInMs: fadeDurationInMs,\n isTransitionActive: isTransitionActive,\n isInPlaceMode: isInPlaceMode,\n isPortalRendered: isPortalRendered\n });\n }\n }, {\n key: 'imageStyle',\n get: function get() {\n var _props5 = this.props,\n imageStyle = _props5.imageStyle,\n largeImage = _props5.largeImage;\n\n\n return getEnlargedImageStyle({\n imageCoordinates: this.getImageCoordinates(),\n imageStyle: imageStyle,\n largeImage: largeImage\n });\n }\n }]);\n\n return _class;\n}(React.Component);\n\n_class.displayName = 'EnlargedImage';\n_class.defaultProps = {\n fadeDurationInMs: 0,\n isLazyLoaded: true\n};\n_class.propTypes = {\n containerClassName: PropTypes.string,\n containerStyle: PropTypes.object,\n cursorOffset: Point,\n position: Point,\n fadeDurationInMs: PropTypes.number,\n imageClassName: PropTypes.string,\n imageStyle: PropTypes.object,\n isActive: PropTypes.bool,\n isLazyLoaded: PropTypes.bool,\n largeImage: LargeImageShape,\n containerDimensions: ContainerDimensions,\n isPortalRendered: PropTypes.bool,\n isInPlaceMode: PropTypes.bool\n};\nexport default _class;","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\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 ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport objectAssign from 'object-assign';\nimport EnlargedImage from './EnlargedImage';\n\nvar RenderEnlargedImage = function (_Component) {\n _inherits(RenderEnlargedImage, _Component);\n\n function RenderEnlargedImage() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, RenderEnlargedImage);\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, (_ref = RenderEnlargedImage.__proto__ || Object.getPrototypeOf(RenderEnlargedImage)).call.apply(_ref, [this].concat(args))), _this), _this.state = { isMounted: false }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(RenderEnlargedImage, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.setState({ isMounted: true });\n\n if (this.isPortalRendered) {\n var portalId = this.props.portalId;\n\n this.portalElement = document.getElementById(portalId);\n }\n }\n }, {\n key: 'render',\n value: function render() {\n if (!this.isMounted) {\n return null;\n }\n\n var props = this.compositProps;\n\n if (this.isPortalRendered) {\n return ReactDOM.createPortal(React.createElement(EnlargedImage, props), this.portalElement);\n }\n\n return React.createElement(EnlargedImage, props);\n }\n }, {\n key: 'isPortalIdImplemented',\n get: function get() {\n return !!this.props.portalId;\n }\n }, {\n key: 'isPortalRendered',\n get: function get() {\n var _props = this.props,\n isPortalEnabledForTouch = _props.isPortalEnabledForTouch,\n isTouchDetected = _props.isTouchDetected;\n\n\n if (!this.isPortalIdImplemented) {\n return false;\n }\n\n if (!isTouchDetected) {\n return true;\n }\n\n if (isPortalEnabledForTouch) {\n return true;\n }\n\n return false;\n }\n }, {\n key: 'isMounted',\n get: function get() {\n return this.state.isMounted;\n }\n }, {\n key: 'compositProps',\n get: function get() {\n return objectAssign({}, this.props, { isPortalRendered: this.isPortalRendered });\n }\n }]);\n\n return RenderEnlargedImage;\n}(Component);\n\nRenderEnlargedImage.propTypes = {\n isPortalEnabledForTouch: PropTypes.bool.isRequired,\n isTouchDetected: PropTypes.bool.isRequired,\n portalId: PropTypes.string\n};\nexport default RenderEnlargedImage;","import React from 'react';\nimport PropTypes from 'prop-types';\nimport objectAssign from 'object-assign';\n\nvar Lens = function Lens(props) {\n var fadeDurationInMs = props.fadeDurationInMs,\n isActive = props.isActive,\n isPositionOutside = props.isPositionOutside,\n parentSpecifiedStyle = props.style;\n\n\n var defaultStyle = {\n width: 'auto',\n height: 'auto',\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto',\n display: 'block'\n };\n\n var computedStyle = {\n position: 'absolute',\n opacity: isActive && !isPositionOutside ? 1 : 0,\n transition: 'opacity ' + fadeDurationInMs + 'ms ease-in'\n };\n\n var compositStyle = objectAssign({}, defaultStyle, parentSpecifiedStyle, computedStyle);\n\n return React.createElement('div', { style: compositStyle });\n};\n\nLens.propTypes = {\n style: PropTypes.object,\n fadeDurationInMs: PropTypes.number,\n isActive: PropTypes.bool,\n translateX: PropTypes.number,\n translateY: PropTypes.number,\n userStyle: PropTypes.object\n};\n\nLens.defaultProps = {\n isActive: false,\n fadeDurationInMs: 0,\n translateX: 0,\n translateY: 0\n};\n\nexport default Lens;","import PropTypes from 'prop-types';\nimport Point from './Point';\nimport { SmallImageShape } from './Image';\n\nexport default {\n cursorOffset: Point,\n fadeDurationInMs: PropTypes.number,\n isActive: PropTypes.bool,\n isPositionOutside: PropTypes.bool,\n position: Point,\n smallImage: SmallImageShape,\n style: PropTypes.object\n};","import React from 'react';\nimport clamp from 'clamp';\nimport objectAssign from 'object-assign';\nimport Lens from './Lens';\nimport LensPropTypes from '../../prop-types/Lens';\n\nvar LensTop = function LensTop(_ref) {\n var cursorOffset = _ref.cursorOffset,\n position = _ref.position,\n fadeDurationInMs = _ref.fadeDurationInMs,\n isActive = _ref.isActive,\n isPositionOutside = _ref.isPositionOutside,\n smallImage = _ref.smallImage,\n parentSpecifiedStyle = _ref.style;\n\n var clearLensHeight = cursorOffset.y * 2;\n var maxHeight = smallImage.height - clearLensHeight;\n var height = clamp(position.y - cursorOffset.y, 0, maxHeight);\n var computedStyle = {\n height: height + 'px',\n width: '100%',\n top: '0px'\n };\n\n return React.createElement(Lens, {\n fadeDurationInMs: fadeDurationInMs,\n isActive: isActive,\n isPositionOutside: isPositionOutside,\n style: objectAssign({}, parentSpecifiedStyle, computedStyle)\n });\n};\n\nLensTop.propTypes = LensPropTypes;\n\nexport default LensTop;","import React from 'react';\nimport objectAssign from 'object-assign';\nimport clamp from 'clamp';\nimport Lens from './Lens';\nimport LensPropTypes from '../../prop-types/Lens';\n\nvar LensLeft = function LensLeft(_ref) {\n var cursorOffset = _ref.cursorOffset,\n position = _ref.position,\n fadeDurationInMs = _ref.fadeDurationInMs,\n isActive = _ref.isActive,\n isPositionOutside = _ref.isPositionOutside,\n smallImage = _ref.smallImage,\n parentSpecifiedStyle = _ref.style;\n\n var clearLensHeight = cursorOffset.y * 2;\n var clearLensWidth = cursorOffset.x * 2;\n var maxHeight = smallImage.height - clearLensHeight;\n var maxWidth = smallImage.width - clearLensWidth;\n var height = clearLensHeight;\n var width = clamp(position.x - cursorOffset.x, 0, maxWidth);\n var top = clamp(position.y - cursorOffset.y, 0, maxHeight);\n var computedStyle = {\n height: height + 'px',\n width: width + 'px',\n top: top + 'px',\n left: '0px'\n };\n\n return React.createElement(Lens, {\n fadeDurationInMs: fadeDurationInMs,\n isActive: isActive,\n isPositionOutside: isPositionOutside,\n style: objectAssign({}, parentSpecifiedStyle, computedStyle)\n });\n};\n\nLensLeft.propTypes = LensPropTypes;\n\nexport default LensLeft;","import React from 'react';\nimport objectAssign from 'object-assign';\nimport clamp from 'clamp';\nimport Lens from './Lens';\nimport LensPropTypes from '../../prop-types/Lens';\n\nvar LensRight = function LensRight(_ref) {\n var cursorOffset = _ref.cursorOffset,\n position = _ref.position,\n fadeDurationInMs = _ref.fadeDurationInMs,\n isActive = _ref.isActive,\n isPositionOutside = _ref.isPositionOutside,\n smallImage = _ref.smallImage,\n parentSpecifiedStyle = _ref.style;\n\n var clearLensHeight = cursorOffset.y * 2;\n var clearLensWidth = cursorOffset.x * 2;\n var maxHeight = smallImage.height - clearLensHeight;\n var maxWidth = smallImage.width - clearLensWidth;\n var height = clearLensHeight;\n var width = clamp(smallImage.width - position.x - cursorOffset.x, 0, maxWidth);\n var top = clamp(position.y - cursorOffset.y, 0, maxHeight);\n var computedStyle = {\n height: height + 'px',\n width: width + 'px',\n top: top + 'px',\n right: '0px'\n };\n\n return React.createElement(Lens, {\n fadeDurationInMs: fadeDurationInMs,\n isActive: isActive,\n isPositionOutside: isPositionOutside,\n style: objectAssign({}, parentSpecifiedStyle, computedStyle)\n });\n};\n\nLensRight.propTypes = LensPropTypes;\n\nexport default LensRight;","import React from 'react';\nimport objectAssign from 'object-assign';\nimport clamp from 'clamp';\nimport Lens from './Lens';\nimport LensPropTypes from '../../prop-types/Lens';\n\nvar LensBottom = function LensBottom(_ref) {\n var cursorOffset = _ref.cursorOffset,\n position = _ref.position,\n fadeDurationInMs = _ref.fadeDurationInMs,\n isActive = _ref.isActive,\n isPositionOutside = _ref.isPositionOutside,\n smallImage = _ref.smallImage,\n parentSpecifiedStyle = _ref.style;\n\n\n var clearLensHeight = cursorOffset.y * 2;\n var computedHeight = smallImage.height - position.y - cursorOffset.y;\n var maxHeight = smallImage.height - clearLensHeight;\n var height = clamp(computedHeight, 0, maxHeight);\n var clearLensBottom = position.y + cursorOffset.y;\n var top = Math.max(clearLensBottom, clearLensHeight);\n var computedStyle = {\n height: height + 'px',\n width: '100%',\n top: top + 'px'\n };\n\n return React.createElement(Lens, {\n fadeDurationInMs: fadeDurationInMs,\n isActive: isActive,\n isPositionOutside: isPositionOutside,\n style: objectAssign({}, parentSpecifiedStyle, computedStyle)\n });\n};\n\nLensBottom.propTypes = LensPropTypes;\n\nexport default LensBottom;","import React from 'react';\nimport objectAssign from 'object-assign';\n\nimport LensTop from './LensTop';\nimport LensLeft from './LensLeft';\nimport LensRight from './LensRight';\nimport LensBottom from './LensBottom';\n\nimport LensPropTypes from '../../prop-types/Lens';\n\nexport default function NegativeSpaceLens(inputProps) {\n var userSpecifiedStyle = inputProps.style;\n\n\n var compositLensStyle = objectAssign({ backgroundColor: 'rgba(0,0,0,.4)' }, userSpecifiedStyle);\n\n var props = objectAssign({}, inputProps, { style: compositLensStyle });\n\n return React.createElement(\n 'div',\n null,\n React.createElement(LensTop, props),\n React.createElement(LensLeft, props),\n React.createElement(LensRight, props),\n React.createElement(LensBottom, props)\n );\n}\n\nNegativeSpaceLens.propTypes = LensPropTypes;","export default 'data:image/gif;base64,R0lGODlhZABkAPABAHOf4fj48yH5BAEAAAEALAAAAABkAGQAAAL+jI+py+0PowOB2oqvznz7Dn5iSI7SiabqWrbj68bwTLL2jUv0Lvf8X8sJhzmg0Yc8mojM5kmZjEKPzqp1MZVqs7Cr98rdisOXr7lJHquz57YwDV8j3XRb/C7v1vcovD8PwicY8VcISDGY2GDIKKf4mNAoKQZZeXg5aQk5yRml+dgZ2vOpKGraQpp4uhqYKsgKi+H6iln7N8sXG4u7p2s7ykvnyxos/DuMWtyGfKq8fAwd5nzGHN067VUtiv2lbV3GDfY9DhQu7p1pXoU+rr5ODk/j7sSePk9Ub33PlN+4jx8v4JJ/RQQa3EDwzcGFiBLi6AfN4UOGCyXegGjIoh0fisQ0rsD4y+NHjgZFqgB5y2Qfks1UPmEZ0OVLlIcKAAA7';","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\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 objectAssign from 'object-assign';\nimport LensPropTypes from '../../prop-types/Lens';\nimport clamp from 'clamp';\nimport dataUri from './assets/textured-lens-data-uri';\n\nvar PositiveSpaceLens = function (_Component) {\n _inherits(PositiveSpaceLens, _Component);\n\n function PositiveSpaceLens() {\n _classCallCheck(this, PositiveSpaceLens);\n\n return _possibleConstructorReturn(this, (PositiveSpaceLens.__proto__ || Object.getPrototypeOf(PositiveSpaceLens)).apply(this, arguments));\n }\n\n _createClass(PositiveSpaceLens, [{\n key: 'render',\n value: function render() {\n return React.createElement('div', { style: this.compositStyle });\n }\n }, {\n key: 'dimensions',\n get: function get() {\n var _props$cursorOffset = this.props.cursorOffset,\n cursorOffsetX = _props$cursorOffset.x,\n cursorOffsetY = _props$cursorOffset.y;\n\n\n return {\n width: cursorOffsetX * 2,\n height: cursorOffsetY * 2\n };\n }\n }, {\n key: 'positionOffset',\n get: function get() {\n var _props = this.props,\n _props$cursorOffset2 = _props.cursorOffset,\n cursorOffsetX = _props$cursorOffset2.x,\n cursorOffsetY = _props$cursorOffset2.y,\n _props$position = _props.position,\n positionX = _props$position.x,\n positionY = _props$position.y,\n _props$smallImage = _props.smallImage,\n imageHeight = _props$smallImage.height,\n imageWidth = _props$smallImage.width;\n var _dimensions = this.dimensions,\n width = _dimensions.width,\n height = _dimensions.height;\n\n\n var top = positionY - cursorOffsetY;\n var left = positionX - cursorOffsetX;\n var maxTop = imageHeight - height;\n var maxLeft = imageWidth - width;\n var minOffset = 0;\n\n return {\n top: clamp(top, minOffset, maxTop),\n left: clamp(left, minOffset, maxLeft)\n };\n }\n }, {\n key: 'defaultStyle',\n get: function get() {\n var fadeDurationInMs = this.props.fadeDurationInMs;\n\n\n return {\n transition: 'opacity ' + fadeDurationInMs + 'ms ease-in',\n backgroundImage: 'url(' + dataUri + ')'\n };\n }\n }, {\n key: 'userSpecifiedStyle',\n get: function get() {\n var style = this.props.style;\n\n\n return style;\n }\n }, {\n key: 'isVisible',\n get: function get() {\n var _props2 = this.props,\n isActive = _props2.isActive,\n isPositionOutside = _props2.isPositionOutside;\n\n\n return isActive && !isPositionOutside;\n }\n }, {\n key: 'priorityStyle',\n get: function get() {\n var _dimensions2 = this.dimensions,\n width = _dimensions2.width,\n height = _dimensions2.height;\n var _positionOffset = this.positionOffset,\n top = _positionOffset.top,\n left = _positionOffset.left;\n\n\n return {\n position: 'absolute',\n top: top + 'px',\n left: left + 'px',\n width: width + 'px',\n height: height + 'px',\n opacity: this.isVisible ? 1 : 0\n };\n }\n }, {\n key: 'compositStyle',\n get: function get() {\n return objectAssign(this.defaultStyle, this.userSpecifiedStyle, this.priorityStyle);\n }\n }]);\n\n return PositiveSpaceLens;\n}(Component);\n\nPositiveSpaceLens.propTypes = LensPropTypes;\nPositiveSpaceLens.defaultProps = {\n style: {}\n};\nexport default PositiveSpaceLens;","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\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 from 'react';\nimport PropTypes from 'prop-types';\n\nvar DisplayUntilActive = function (_React$Component) {\n _inherits(DisplayUntilActive, _React$Component);\n\n function DisplayUntilActive(props) {\n _classCallCheck(this, DisplayUntilActive);\n\n var _this = _possibleConstructorReturn(this, (DisplayUntilActive.__proto__ || Object.getPrototypeOf(DisplayUntilActive)).call(this, props));\n\n _this.hasShown = false;\n return _this;\n }\n\n _createClass(DisplayUntilActive, [{\n key: 'setHasShown',\n value: function setHasShown() {\n this.hasShown = true;\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n children = _props.children,\n isActive = _props.isActive,\n shouldHideAfterFirstActivation = _props.shouldHideAfterFirstActivation,\n hasShown = this.hasShown;\n\n var shouldShow = !isActive && (!hasShown || !shouldHideAfterFirstActivation);\n\n if (isActive && !hasShown) {\n this.setHasShown();\n }\n\n return shouldShow ? children : null;\n }\n }]);\n\n return DisplayUntilActive;\n}(React.Component);\n\nDisplayUntilActive.propTypes = {\n children: PropTypes.element,\n isActive: PropTypes.bool,\n shouldHideAfterFirstActivation: PropTypes.bool\n};\nDisplayUntilActive.defaultProps = {\n shouldHideAfterFirstActivation: true\n};\nexport default DisplayUntilActive;","import React from 'react';\nimport PropTypes from 'prop-types';\n\nfunction DefaultHint(_ref) {\n var isTouchDetected = _ref.isTouchDetected,\n hintTextMouse = _ref.hintTextMouse,\n hintTextTouch = _ref.hintTextTouch;\n\n return React.createElement(\n 'div',\n { style: {\n width: '100%',\n display: 'flex',\n justifyContent: 'center',\n position: 'absolute',\n bottom: '25px'\n } },\n React.createElement(\n 'div',\n { style: {\n display: 'flex',\n alignItems: 'center',\n padding: '5px 10px',\n backgroundColor: '#333',\n borderRadius: '10px',\n opacity: '0.90'\n } },\n React.createElement('img', {\n style: {\n width: '25px',\n height: '25px'\n },\n src: 'data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQ5MC4yIDQ5MC4yIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0OTA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c+Cjwvc3ZnPgo=',\n alt: ''\n }),\n React.createElement(\n 'span',\n { style: {\n padding: '2px 0 0 5px',\n fontFamily: 'Arial, sans-serif',\n fontSize: '14px',\n color: 'white'\n } },\n isTouchDetected ? hintTextTouch : hintTextMouse\n )\n )\n );\n}\n\nDefaultHint.displayName = 'DefaultHint';\n\nDefaultHint.propTypes = {\n isTouchDetected: PropTypes.bool,\n hintTextMouse: PropTypes.string,\n hintTextTouch: PropTypes.string\n};\n\nexport default DefaultHint;","import { getLargeToSmallImageRatio } from './imageRatio';\n\nexport function getLensCursorOffset(smallImage, largeImage, enlargedImageContainerDimensions) {\n var ratio = getLargeToSmallImageRatio(smallImage, largeImage);\n return {\n x: getLensCursorOffsetDimension(enlargedImageContainerDimensions.width, ratio.x),\n y: getLensCursorOffsetDimension(enlargedImageContainerDimensions.height, ratio.y)\n };\n}\n\nfunction getLensCursorOffsetDimension(enlargedImageContainerDimension, ratio) {\n return Math.round(enlargedImageContainerDimension * ratio / 2);\n}","export function isPercentageFormat(val) {\n return typeof val === 'string' && /^\\d+%$/.test(val);\n}\n\nexport function convertPercentageToDecimal(percentage) {\n return parseInt(percentage) / 100;\n}\n\nexport function getEnlargedImageContainerDimension(_ref) {\n var containerDimension = _ref.containerDimension,\n smallImageDimension = _ref.smallImageDimension,\n isInPlaceMode = _ref.isInPlaceMode;\n\n if (isInPlaceMode) {\n return smallImageDimension;\n }\n\n if (isPercentageFormat(containerDimension)) {\n return smallImageDimension * convertPercentageToDecimal(containerDimension);\n }\n\n return containerDimension;\n}","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\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 detectIt from 'detect-it';\nimport objectAssign from 'object-assign';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactCursorPosition from 'react-cursor-position';\n\nimport RenderEnlargedImage from './RenderEnlargedImage';\nimport NegativeSpaceLens from './lens/negative-space';\nimport PositiveSpaceLens from './lens/positive-space';\nimport DisplayUntilActive from './hint/DisplayUntilActive';\nimport Hint from './hint/DefaultHint';\n\nimport { getLensCursorOffset } from './lib/lens';\nimport { getEnlargedImageContainerDimension } from './lib/dimensions';\nimport { getContainerStyle, getSmallImageStyle } from './lib/styles';\nimport { LargeImageShape, SmallImageShape } from './prop-types/Image';\nimport { EnlargedImagePosition, EnlargedImageContainerDimensions } from './prop-types/EnlargedImage';\nimport { noop } from './utils';\nimport { INPUT_TYPE, ENLARGED_IMAGE_POSITION } from './constants';\n\nvar ReactImageMagnify = function (_React$Component) {\n _inherits(ReactImageMagnify, _React$Component);\n\n function ReactImageMagnify(props) {\n _classCallCheck(this, ReactImageMagnify);\n\n var _this = _possibleConstructorReturn(this, (ReactImageMagnify.__proto__ || Object.getPrototypeOf(ReactImageMagnify)).call(this, props));\n\n var primaryInput = detectIt.primaryInput;\n var MOUSE = INPUT_TYPE.mouse,\n TOUCH = INPUT_TYPE.touch;\n\n\n _this.state = {\n smallImageWidth: 0,\n smallImageHeight: 0,\n detectedInputType: {\n isMouseDeteced: primaryInput === MOUSE,\n isTouchDetected: primaryInput === TOUCH\n }\n };\n\n _this.onSmallImageLoad = _this.onSmallImageLoad.bind(_this);\n _this.setSmallImageDimensionState = _this.setSmallImageDimensionState.bind(_this);\n _this.onDetectedInputTypeChanged = _this.onDetectedInputTypeChanged.bind(_this);\n return _this;\n }\n\n _createClass(ReactImageMagnify, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var isFluidWidth = this.props.smallImage.isFluidWidth;\n\n\n if (!isFluidWidth) {\n return;\n }\n\n this.setSmallImageDimensionState();\n window.addEventListener('resize', this.setSmallImageDimensionState);\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n window.removeEventListener('resize', this.setSmallImageDimensionState);\n }\n }, {\n key: 'onSmallImageLoad',\n value: function onSmallImageLoad(e) {\n var _props$smallImage = this.props.smallImage,\n _props$smallImage$onL = _props$smallImage.onLoad,\n onLoad = _props$smallImage$onL === undefined ? noop : _props$smallImage$onL,\n isFluidWidth = _props$smallImage.isFluidWidth;\n\n\n onLoad(e);\n\n if (!isFluidWidth) {\n return;\n }\n\n this.setSmallImageDimensionState();\n }\n }, {\n key: 'onDetectedInputTypeChanged',\n value: function onDetectedInputTypeChanged(detectedInputType) {\n this.setState({\n detectedInputType: detectedInputType\n });\n }\n }, {\n key: 'setSmallImageDimensionState',\n value: function setSmallImageDimensionState() {\n var _smallImageEl = this.smallImageEl,\n smallImageWidth = _smallImageEl.offsetWidth,\n smallImageHeight = _smallImageEl.offsetHeight;\n\n\n this.setState({\n smallImageWidth: smallImageWidth,\n smallImageHeight: smallImageHeight\n });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n className = _props.className,\n style = _props.style,\n hoverDelayInMs = _props.hoverDelayInMs,\n hoverOffDelayInMs = _props.hoverOffDelayInMs,\n isActivatedOnTouch = _props.isActivatedOnTouch,\n pressDuration = _props.pressDuration,\n pressMoveThreshold = _props.pressMoveThreshold,\n _props$smallImage$onE = _props.smallImage.onError,\n onError = _props$smallImage$onE === undefined ? noop : _props$smallImage$onE,\n imageClassName = _props.imageClassName,\n imageStyle = _props.imageStyle,\n lensStyle = _props.lensStyle,\n largeImage = _props.largeImage,\n enlargedImageContainerClassName = _props.enlargedImageContainerClassName,\n enlargedImageContainerStyle = _props.enlargedImageContainerStyle,\n enlargedImageClassName = _props.enlargedImageClassName,\n enlargedImageStyle = _props.enlargedImageStyle,\n enlargedImagePortalId = _props.enlargedImagePortalId,\n isEnlargedImagePortalEnabledForTouch = _props.isEnlargedImagePortalEnabledForTouch,\n fadeDurationInMs = _props.fadeDurationInMs,\n HintComponent = _props.hintComponent,\n isHintEnabled = _props.isHintEnabled,\n hintTextMouse = _props.hintTextMouse,\n hintTextTouch = _props.hintTextTouch,\n shouldHideHintAfterFirstActivation = _props.shouldHideHintAfterFirstActivation;\n\n\n var smallImage = this.smallImage;\n\n var isTouchDetected = this.state.detectedInputType.isTouchDetected;\n\n\n var cursorOffset = getLensCursorOffset(smallImage, largeImage, this.enlargedImageContainerDimensions);\n\n var Lens = this.lensComponent;\n\n return React.createElement(\n ReactCursorPosition,\n {\n className: className,\n hoverDelayInMs: hoverDelayInMs,\n hoverOffDelayInMs: hoverOffDelayInMs,\n isActivatedOnTouch: isActivatedOnTouch,\n onDetectedInputTypeChanged: this.onDetectedInputTypeChanged,\n pressDuration: pressDuration,\n pressMoveThreshold: pressMoveThreshold,\n shouldStopTouchMovePropagation: true,\n style: getContainerStyle(smallImage, style)\n },\n React.createElement('img', {\n src: smallImage.src,\n srcSet: smallImage.srcSet,\n sizes: smallImage.sizes,\n alt: smallImage.alt,\n className: imageClassName,\n style: getSmallImageStyle(smallImage, imageStyle),\n ref: function ref(el) {\n return _this2.smallImageEl = el;\n },\n onLoad: this.onSmallImageLoad,\n onError: onError\n }),\n isHintEnabled && React.createElement(\n DisplayUntilActive,\n {\n shouldHideAfterFirstActivation: shouldHideHintAfterFirstActivation\n },\n React.createElement(HintComponent, {\n isTouchDetected: isTouchDetected,\n hintTextMouse: hintTextMouse,\n hintTextTouch: hintTextTouch\n })\n ),\n this.shouldShowLens && React.createElement(Lens, {\n cursorOffset: cursorOffset,\n fadeDurationInMs: fadeDurationInMs,\n smallImage: smallImage,\n style: lensStyle\n }),\n React.createElement(RenderEnlargedImage, {\n containerClassName: enlargedImageContainerClassName,\n containerDimensions: this.enlargedImageContainerDimensions,\n containerStyle: enlargedImageContainerStyle,\n cursorOffset: cursorOffset,\n fadeDurationInMs: fadeDurationInMs,\n imageClassName: enlargedImageClassName,\n imageStyle: enlargedImageStyle,\n largeImage: largeImage,\n smallImage: smallImage,\n portalId: enlargedImagePortalId,\n isPortalEnabledForTouch: isEnlargedImagePortalEnabledForTouch,\n isTouchDetected: this.isTouchDetected,\n isInPlaceMode: this.isInPlaceMode\n })\n );\n }\n }, {\n key: 'smallImage',\n get: function get() {\n var _props2 = this.props,\n smallImage = _props2.smallImage,\n isFluidWidth = _props2.smallImage.isFluidWidth;\n\n\n if (!isFluidWidth) {\n return smallImage;\n }\n\n var _state = this.state,\n fluidWidth = _state.smallImageWidth,\n fluidHeight = _state.smallImageHeight;\n\n\n return objectAssign({}, smallImage, {\n width: fluidWidth,\n height: fluidHeight\n });\n }\n }, {\n key: 'enlargedImagePlacement',\n get: function get() {\n var userDefinedEnlargedImagePosition = this.props.enlargedImagePosition;\n var isTouchDetected = this.state.detectedInputType.isTouchDetected;\n\n\n var computedEnlargedImagePosition = isTouchDetected ? ENLARGED_IMAGE_POSITION.over : ENLARGED_IMAGE_POSITION.beside;\n\n return userDefinedEnlargedImagePosition || computedEnlargedImagePosition;\n }\n }, {\n key: 'isInPlaceMode',\n get: function get() {\n var OVER = ENLARGED_IMAGE_POSITION.over;\n\n return this.enlargedImagePlacement === OVER;\n }\n }, {\n key: 'enlargedImageContainerDimensions',\n get: function get() {\n var _props$enlargedImageC = this.props.enlargedImageContainerDimensions,\n containerWidth = _props$enlargedImageC.width,\n containerHeight = _props$enlargedImageC.height;\n var _smallImage = this.smallImage,\n smallImageWidth = _smallImage.width,\n smallImageHeight = _smallImage.height;\n\n var isInPlaceMode = this.isInPlaceMode;\n\n return {\n width: getEnlargedImageContainerDimension({\n containerDimension: containerWidth,\n smallImageDimension: smallImageWidth,\n isInPlaceMode: isInPlaceMode\n }),\n height: getEnlargedImageContainerDimension({\n containerDimension: containerHeight,\n smallImageDimension: smallImageHeight,\n isInPlaceMode: isInPlaceMode\n })\n };\n }\n }, {\n key: 'isTouchDetected',\n get: function get() {\n var isTouchDetected = this.state.detectedInputType.isTouchDetected;\n\n\n return isTouchDetected;\n }\n }, {\n key: 'shouldShowLens',\n get: function get() {\n return !this.isInPlaceMode && !this.isTouchDetected;\n }\n }, {\n key: 'lensComponent',\n get: function get() {\n var _props3 = this.props,\n shouldUsePositiveSpaceLens = _props3.shouldUsePositiveSpaceLens,\n lensComponent = _props3.lensComponent;\n\n\n if (lensComponent) {\n return lensComponent;\n }\n\n if (shouldUsePositiveSpaceLens) {\n return PositiveSpaceLens;\n }\n\n return NegativeSpaceLens;\n }\n }]);\n\n return ReactImageMagnify;\n}(React.Component);\n\nReactImageMagnify.propTypes = {\n className: PropTypes.string,\n style: PropTypes.object,\n hoverDelayInMs: PropTypes.number,\n hoverOffDelayInMs: PropTypes.number,\n fadeDurationInMs: PropTypes.number,\n pressDuration: PropTypes.number,\n pressMoveThreshold: PropTypes.number,\n isActivatedOnTouch: PropTypes.bool,\n imageClassName: PropTypes.string,\n imageStyle: PropTypes.object,\n lensStyle: PropTypes.object,\n lensComponent: PropTypes.func,\n shouldUsePositiveSpaceLens: PropTypes.bool,\n smallImage: SmallImageShape,\n largeImage: LargeImageShape,\n enlargedImageContainerClassName: PropTypes.string,\n enlargedImageContainerStyle: PropTypes.object,\n enlargedImageClassName: PropTypes.string,\n enlargedImageStyle: PropTypes.object,\n enlargedImageContainerDimensions: EnlargedImageContainerDimensions,\n enlargedImagePosition: EnlargedImagePosition,\n enlargedImagePortalId: PropTypes.string,\n isEnlargedImagePortalEnabledForTouch: PropTypes.bool,\n hintComponent: PropTypes.func,\n hintTextMouse: PropTypes.string,\n hintTextTouch: PropTypes.string,\n isHintEnabled: PropTypes.bool,\n shouldHideHintAfterFirstActivation: PropTypes.bool\n};\nReactImageMagnify.defaultProps = {\n enlargedImageContainerDimensions: {\n width: '100%',\n height: '100%'\n },\n isEnlargedImagePortalEnabledForTouch: false,\n fadeDurationInMs: 300,\n hintComponent: Hint,\n shouldHideHintAfterFirstActivation: true,\n isHintEnabled: false,\n hintTextMouse: 'Hover to Zoom',\n hintTextTouch: 'Long-Touch to Zoom',\n hoverDelayInMs: 250,\n hoverOffDelayInMs: 150,\n shouldUsePositiveSpaceLens: false\n};\n\n\nexport default ReactImageMagnify;","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","/**\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\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\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\nif (process.env.NODE_ENV !== 'production') {\n var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&\n Symbol.for &&\n Symbol.for('react.element')) ||\n 0xeac7;\n\n var isValidElement = function(object) {\n return typeof object === 'object' &&\n object !== null &&\n object.$$typeof === REACT_ELEMENT_TYPE;\n };\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n// ==============================\n// THEME\n// ==============================\n\nvar theme = {};\n\n// container\ntheme.container = {\n\tbackground: 'rgba(0, 0, 0, 0.8)',\n\tgutter: {\n\t\thorizontal: 10,\n\t\tvertical: 10\n\t},\n\tzIndex: 2001\n};\n\n// header\ntheme.header = {\n\theight: 40\n};\ntheme.close = {\n\tfill: 'white'\n};\n\n// footer\ntheme.footer = {\n\tcolor: 'white',\n\tcount: {\n\t\tcolor: 'rgba(255, 255, 255, 0.75)',\n\t\tfontSize: '0.85em'\n\t},\n\theight: 40,\n\tgutter: {\n\t\thorizontal: 0,\n\t\tvertical: 5\n\t}\n};\n\n// thumbnails\ntheme.thumbnail = {\n\tactiveBorderColor: 'white',\n\tsize: 50,\n\tgutter: 2\n};\n\n// arrow\ntheme.arrow = {\n\tbackground: 'none',\n\tfill: 'white',\n\theight: 120\n};\n\nexports.default = theme;","module.exports = require('./lib/no-important.js');\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\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 deepMerge(target) {\n\tvar source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n\tvar extended = _extends({}, target);\n\n\tObject.keys(source).forEach(function (key) {\n\t\tif (_typeof(source[key]) !== 'object' || !source[key]) {\n\t\t\textended[key] = source[key];\n\t\t} else {\n\t\t\tif (!target[key]) {\n\t\t\t\textended[key] = source[key];\n\t\t\t} else {\n\t\t\t\textended[key] = deepMerge(target[key], source[key]);\n\t\t\t}\n\t\t}\n\t});\n\n\treturn extended;\n}\n\nexports.default = deepMerge;","module.exports = clamp\n\nfunction clamp(value, min, max) {\n return min < max\n ? (value < min ? min : value > max ? max : value)\n : (value < max ? max : value > min ? min : value)\n}\n","/**\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\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// returns a style object with a single concated prefixed value string\n\nexports.default = function (property, value) {\n var replacer = arguments.length <= 2 || arguments[2] === undefined ? function (prefix, value) {\n return prefix + value;\n } : arguments[2];\n return _defineProperty({}, property, ['-webkit-', '-moz-', ''].map(function (prefix) {\n return replacer(prefix, value);\n }));\n};\n\nmodule.exports = exports['default'];","// {K1: V1, K2: V2, ...} -> [[K1, V1], [K2, V2]]\n'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\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 objectToPairs = function objectToPairs(obj) {\n return Object.keys(obj).map(function (key) {\n return [key, obj[key]];\n });\n};\n\nexports.objectToPairs = objectToPairs;\n// [[K1, V1], [K2, V2]] -> {K1: V1, K2: V2, ...}\nvar pairsToObject = function pairsToObject(pairs) {\n var result = {};\n pairs.forEach(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2);\n\n var key = _ref2[0];\n var val = _ref2[1];\n\n result[key] = val;\n });\n return result;\n};\n\nvar mapObj = function mapObj(obj, fn) {\n return pairsToObject(objectToPairs(obj).map(fn));\n};\n\nexports.mapObj = mapObj;\n// Flattens an array one level\n// [[A], [B, C, [D]]] -> [A, B, C, [D]]\nvar flatten = function flatten(list) {\n return list.reduce(function (memo, x) {\n return memo.concat(x);\n }, []);\n};\n\nexports.flatten = flatten;\nvar UPPERCASE_RE = /([A-Z])/g;\nvar MS_RE = /^ms-/;\n\nvar kebabify = function kebabify(string) {\n return string.replace(UPPERCASE_RE, '-$1').toLowerCase();\n};\nvar kebabifyStyleName = function kebabifyStyleName(string) {\n return kebabify(string).replace(MS_RE, '-ms-');\n};\n\nexports.kebabifyStyleName = kebabifyStyleName;\nvar recursiveMerge = function recursiveMerge(a, b) {\n // TODO(jlfwong): Handle malformed input where a and b are not the same\n // type.\n\n if (typeof a !== 'object') {\n return b;\n }\n\n var ret = _extends({}, a);\n\n Object.keys(b).forEach(function (key) {\n if (ret.hasOwnProperty(key)) {\n ret[key] = recursiveMerge(a[key], b[key]);\n } else {\n ret[key] = b[key];\n }\n });\n\n return ret;\n};\n\nexports.recursiveMerge = recursiveMerge;\n/**\n * CSS properties which accept numbers but are not in units of \"px\".\n * Taken from React's CSSProperty.js\n */\nvar isUnitlessNumber = {\n animationIterationCount: true,\n borderImageOutset: true,\n borderImageSlice: true,\n borderImageWidth: true,\n boxFlex: true,\n boxFlexGroup: true,\n boxOrdinalGroup: true,\n columnCount: true,\n flex: true,\n flexGrow: true,\n flexPositive: true,\n flexShrink: true,\n flexNegative: true,\n flexOrder: true,\n gridRow: true,\n gridColumn: true,\n fontWeight: true,\n lineClamp: true,\n lineHeight: true,\n opacity: true,\n order: true,\n orphans: true,\n tabSize: true,\n widows: true,\n zIndex: true,\n zoom: true,\n\n // SVG-related properties\n fillOpacity: true,\n floodOpacity: true,\n stopOpacity: true,\n strokeDasharray: true,\n strokeDashoffset: true,\n strokeMiterlimit: true,\n strokeOpacity: true,\n strokeWidth: true\n};\n\n/**\n * Taken from React's CSSProperty.js\n *\n * @param {string} prefix vendor-specific prefix, eg: Webkit\n * @param {string} key style name, eg: transitionDuration\n * @return {string} style name prefixed with `prefix`, properly camelCased, eg:\n * WebkitTransitionDuration\n */\nfunction prefixKey(prefix, key) {\n return prefix + key.charAt(0).toUpperCase() + key.substring(1);\n}\n\n/**\n * Support style names that may come passed in prefixed by adding permutations\n * of vendor prefixes.\n * Taken from React's CSSProperty.js\n */\nvar prefixes = ['Webkit', 'ms', 'Moz', 'O'];\n\n// Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an\n// infinite loop, because it iterates over the newly added props too.\n// Taken from React's CSSProperty.js\nObject.keys(isUnitlessNumber).forEach(function (prop) {\n prefixes.forEach(function (prefix) {\n isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];\n });\n});\n\nvar stringifyValue = function stringifyValue(key, prop) {\n if (typeof prop === \"number\") {\n if (isUnitlessNumber[key]) {\n return \"\" + prop;\n } else {\n return prop + \"px\";\n }\n } else {\n return prop;\n }\n};\n\nexports.stringifyValue = stringifyValue;\n/**\n * JS Implementation of MurmurHash2\n *\n * @author Gary Court\n * @see http://github.com/garycourt/murmurhash-js\n * @author Austin Appleby\n * @see http://sites.google.com/site/murmurhash/\n *\n * @param {string} str ASCII only\n * @return {string} Base 36 encoded hash result\n */\nfunction murmurhash2_32_gc(str) {\n var l = str.length;\n var h = l;\n var i = 0;\n var k = undefined;\n\n while (l >= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n\n k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16);\n k ^= k >>> 24;\n k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16);\n\n h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16) ^ k;\n\n l -= 4;\n ++i;\n }\n\n switch (l) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16);\n }\n\n h ^= h >>> 13;\n h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16);\n h ^= h >>> 15;\n\n return (h >>> 0).toString(36);\n}\n\n// Hash a javascript object using JSON.stringify. This is very fast, about 3\n// microseconds on my computer for a sample object:\n// http://jsperf.com/test-hashfnv32a-hash/5\n//\n// Note that this uses JSON.stringify to stringify the objects so in order for\n// this to produce consistent hashes browsers need to have a consistent\n// ordering of objects. Ben Alpert says that Facebook depends on this, so we\n// can probably depend on this too.\nvar hashObject = function hashObject(object) {\n return murmurhash2_32_gc(JSON.stringify(object));\n};\n\nexports.hashObject = hashObject;\nvar IMPORTANT_RE = /^([^:]+:.*?)( !important)?;$/;\n\n// Given a single style rule string like \"a: b;\", adds !important to generate\n// \"a: b !important;\".\nvar importantify = function importantify(string) {\n return string.replace(IMPORTANT_RE, function (_, base, important) {\n return base + \" !important;\";\n });\n};\nexports.importantify = importantify;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = function (value) {\n if (Array.isArray(value)) value = value.join(',');\n\n return value.match(/-webkit-|-moz-|-ms-/) !== null;\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nvar _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\n\nvar _util = require('./util');\n\nvar _inject = require('./inject');\n\nvar StyleSheet = {\n create: function create(sheetDefinition) {\n return (0, _util.mapObj)(sheetDefinition, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2);\n\n var key = _ref2[0];\n var val = _ref2[1];\n\n return [key, {\n // TODO(emily): Make a 'production' mode which doesn't prepend\n // the class name here, to make the generated CSS smaller.\n _name: key + '_' + (0, _util.hashObject)(val),\n _definition: val\n }];\n });\n },\n\n rehydrate: function rehydrate() {\n var renderedClassNames = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];\n\n (0, _inject.addRenderedClassNames)(renderedClassNames);\n }\n};\n\n/**\n * Utilities for using Aphrodite server-side.\n */\nvar StyleSheetServer = {\n renderStatic: function renderStatic(renderFunc) {\n (0, _inject.reset)();\n (0, _inject.startBuffering)();\n var html = renderFunc();\n var cssContent = (0, _inject.flushToString)();\n\n return {\n html: html,\n css: {\n content: cssContent,\n renderedClassNames: (0, _inject.getRenderedClassNames)()\n }\n };\n }\n};\n\n/**\n * Utilities for using Aphrodite in tests.\n *\n * Not meant to be used in production.\n */\nvar StyleSheetTestUtils = {\n /**\n * Prevent styles from being injected into the DOM.\n *\n * This is useful in situations where you'd like to test rendering UI\n * components which use Aphrodite without any of the side-effects of\n * Aphrodite happening. Particularly useful for testing the output of\n * components when you have no DOM, e.g. testing in Node without a fake DOM.\n *\n * Should be paired with a subsequent call to\n * clearBufferAndResumeStyleInjection.\n */\n suppressStyleInjection: function suppressStyleInjection() {\n (0, _inject.reset)();\n (0, _inject.startBuffering)();\n },\n\n /**\n * Opposite method of preventStyleInject.\n */\n clearBufferAndResumeStyleInjection: function clearBufferAndResumeStyleInjection() {\n (0, _inject.reset)();\n }\n};\n\nvar css = function css() {\n for (var _len = arguments.length, styleDefinitions = Array(_len), _key = 0; _key < _len; _key++) {\n styleDefinitions[_key] = arguments[_key];\n }\n\n var useImportant = true; // Append !important to all style definitions\n return (0, _inject.injectAndGetClassName)(useImportant, styleDefinitions);\n};\n\nexports['default'] = {\n StyleSheet: StyleSheet,\n StyleSheetServer: StyleSheetServer,\n StyleSheetTestUtils: StyleSheetTestUtils,\n css: css\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _asap = require('asap');\n\nvar _asap2 = _interopRequireDefault(_asap);\n\nvar _generate = require('./generate');\n\nvar _util = require('./util');\n\n// The current