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,IAAAS,EAAAT,CADAA,EAAA,MAAAA,EAAAL,IAAA,IAAAK,EAAAC,QAAA,CAAAL,EAAAI,GAAAA,CAAAA,EACA,OAAAU,EAAAV,EAAA,MAGA,OAFAS,EAAA,mBAAAA,EAAAA,EAAAvD,IAAA,CAAA8C,GAAAS,EAEAC,CADAA,EAAA,mBAAAA,EAAAA,EAAAxD,IAAA,CAAA8C,GAAAU,CAAAA,EACAD,CACA,EAUAtB,EAAA,aAAAU,CAAA,CAAAC,CAAA,EACA,IAAAa,EAAAf,EAAAC,EAAAC,GACA,QAAAa,GAAAA,EAAAC,KAAA,KAAAD,EAAAE,IAAA,EAAA5C,GACA,EASAkB,EAAA,aAAAU,CAAA,CAAAC,CAAA,EACA,IAAAa,EAAAf,EAAAC,EAAAC,GACA,QAAAa,GAAAA,EAAAG,MAAA,KAAAH,EAAAI,GAAA,EAAA/C,GACA,EASAmB,EAAA,oBAAAU,CAAA,CAAAC,CAAA,EAGA,IAAAa,EAAAf,EAAAC,EAAAC,GACA,QAAAa,GAAAA,EAAAG,MAAA,KAAAH,EAAAC,KAAA,KAAAD,EAAAI,GAAA,EAAA/C,KAAA2C,EAAAE,IAAA,EAAA5C,GACA,EAEAkB,CACA,EAzJkC6B,EAAA,QAAAA,EAAA,QAAA9B,IAClCvH,IACC,MADD,CAAAuH","sources":["webpack://_N_E/./js/config/state.js","webpack://_N_E/./node_modules/lodash-es/now.js","webpack://_N_E/./node_modules/lodash-es/_trimmedEndIndex.js","webpack://_N_E/./node_modules/lodash-es/_baseTrim.js","webpack://_N_E/./node_modules/lodash-es/toNumber.js","webpack://_N_E/./node_modules/lodash-es/debounce.js","webpack://_N_E/./js/utils/tests.js","webpack://_N_E/./js/utils/dom/apply-browser-classes.js","webpack://_N_E/./js/config/options.js","webpack://_N_E/./js/core/viewport-dims.js","webpack://_N_E/./js/core/resize.js","webpack://_N_E/./js/main.js","webpack://_N_E/./node_modules/verge/verge.js"],"sourcesContent":["/**\n * @module Viewport State\n * @description Device screen\n */\nexport const state = {\n desktop_initialized: false,\n is_desktop: false,\n is_small_desktop: false,\n is_tablet: false,\n is_mobile: false,\n mobile_initialized: false,\n v_height: 0,\n v_width: 0\n};\n\nexport default state;\n","import root from './_root.js';\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nexport default now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nexport default trimmedEndIndex;\n","import trimmedEndIndex from './_trimmedEndIndex.js';\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nexport default baseTrim;\n","import baseTrim from './_baseTrim.js';\nimport isObject from './isObject.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nexport default toNumber;\n","import isObject from './isObject.js';\nimport now from './now.js';\nimport toNumber from './toNumber.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nexport default debounce;\n","/**\n * @module Tests\n * @description Some handy test for common issues.\n */\n\n/**\n * @function isJSON\n * @description\n */\nconst isJSON = ( str ) => {\n try {\n JSON.parse( str );\n } catch ( e ) {\n if ( process.env.NEXT_PUBLIC_ENVIRONMENT === 'local' ) {\n console.error( 'JSON parsing failed:', e );\n }\n return false;\n }\n\n return true;\n};\n\n\n/**\n * @function isEmail\n * @description\n */\nconst isEmail = ( str ) => {\n const re = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n return re.test( String( str ).toLowerCase() );\n};\n\n\n/**\n * @function canLocalStore\n * @description\n */\nconst canLocalStore = () => {\n let mod;\n let result = false;\n\n try {\n mod = new Date();\n localStorage.setItem( mod, mod.toString() );\n\n result = localStorage.getItem( mod ) === mod.toString();\n localStorage.removeItem( mod );\n return result;\n } catch ( error ) {\n if ( process.env.NEXT_PUBLIC_ENVIRONMENT === 'local' ) {\n console.error( 'JSON parsing failed:', error );\n }\n return result;\n }\n};\n\nconst android = /(android)/i.test( navigator.userAgent );\nconst chrome = !! window.chrome;\nconst firefox = typeof InstallTrigger !== 'undefined';\nconst ie = /* @cc_on!@ */ false || document.documentMode || false;\nconst edge = ! ie && !! window.StyleMedia;\nconst ios = !! navigator.userAgent.match( /(iPod|iPhone|iPad)/i );\nconst iosMobile = !! navigator.userAgent.match( /(iPod|iPhone)/i );\nconst opera = !! window.opera || navigator.userAgent.indexOf( ' OPR/' ) >= 0;\nconst safari = Object.prototype.toString.call( window.HTMLElement ).indexOf( 'Constructor' ) > 0 || ! chrome && ! opera && window.webkitAudioContext !== 'undefined'; /* eslint-disable-line no-mixed-operators */\nconst os = navigator.platform;\n\n/**\n * @function browserTests\n * @description\n */\nconst browserTests = () => ( {\n android,\n chrome,\n edge,\n firefox,\n ie,\n ios,\n iosMobile,\n opera,\n safari,\n os\n} );\n\nexport {\n isJSON,\n isEmail,\n canLocalStore,\n browserTests\n};\n","/**\n * @module Browser Classes\n * @description sets up browser classes on body without using user agent strings where possible.\n */\nimport { browserTests } from '@/js/utils/tests';\n\n/**\n * @function applybrowserClasses\n * @description sets up browser classes on body without using user agent strings where possible.\n */\nconst applyBrowserClasses = () => {\n const browser = browserTests();\n const classes = document.body.classList;\n\n if ( browser.android ) {\n classes.add( 'device-android' );\n } else if ( browser.ios ) {\n classes.add( 'device-ios' );\n }\n\n if ( browser.edge ) {\n classes.add( 'browser-edge' );\n } else if ( browser.chrome ) {\n classes.add( 'browser-chrome' );\n } else if ( browser.firefox ) {\n classes.add( 'browser-firefox' );\n } else if ( browser.ie ) {\n classes.add( 'browser-ie' );\n } else if ( browser.opera ) {\n classes.add( 'browser-opera' );\n } else if ( browser.safari ) {\n classes.add( 'browser-safari' );\n }\n};\n\nexport default applyBrowserClasses;\n","/**\n * @module Options\n * @description Breakpoint settings\n */\nexport const MOBILE_BREAKPOINT = 768;\n\nexport const TABLET_BREAKPOINT = 1024;\n\nexport const SMALL_DESKTOP_BREAKPOINT = 1440;\n","/**\n * @module Viewport Dims\n * @description Sets viewport dimensions using verge on shared state\n * and detects mobile or desktop state.\n */\nimport { viewportH, viewportW } from 'verge';\nimport state from '@/js/config/state';\nimport { MOBILE_BREAKPOINT, TABLET_BREAKPOINT, SMALL_DESKTOP_BREAKPOINT } from '@/js/config/options';\n\n/**\n * @function viewportDims\n * @description\n */\nconst viewportDims = () => {\n state.v_height = viewportH();\n state.v_width = viewportW();\n\n if ( state.v_width < MOBILE_BREAKPOINT ) {\n state.is_mobile = true;\n state.is_tablet = false;\n state.is_desktop = false;\n state.is_small_desktop = false;\n state.is_large_desktop = false;\n } else if ( state.v_width >= MOBILE_BREAKPOINT && state.v_width < TABLET_BREAKPOINT ) {\n state.is_mobile = false;\n state.is_tablet = true;\n state.is_desktop = false;\n state.is_small_desktop = false;\n state.is_large_desktop = false;\n } else if ( state.v_width >= TABLET_BREAKPOINT && state.v_width < SMALL_DESKTOP_BREAKPOINT ) {\n state.is_mobile = false;\n state.is_tablet = false;\n state.is_desktop = true;\n state.is_small_desktop = true;\n state.is_large_desktop = false;\n } else {\n state.is_mobile = false;\n state.is_tablet = false;\n state.is_desktop = true;\n state.is_small_desktop = false;\n state.is_large_desktop = true;\n }\n};\n\nexport default viewportDims;\n","/**\n * @module Resize\n * @description Kicks in any third party plugins that operate on a sitewide basis.\n */\nimport { trigger } from '@/js/utils/events';\nimport viewportDims from '@/js/core/viewport-dims';\n\n/**\n * @function resize\n * @description code for resize events can go here\n */\nconst resize = () => {\n viewportDims();\n\n trigger( { event: 'redventures/resize_executed', native: false } );\n};\n\nexport default resize;\n","/**\n * @module Main\n * @description Our Main JS file\n */\nimport debounce from 'lodash-es/debounce';\nimport applyBrowserClasses from '@/js/utils/dom/apply-browser-classes';\nimport resize from '@/js/core/resize';\nimport { setCookie } from './utils/cookie';\nimport { persistData } from './utils/session-storage';\n\n/**\n * @function bindEvents\n * @description Bind global event listeners here,\n */\nconst bindEvents = () => window.addEventListener( 'resize', debounce( resize, 200, false ) );\n\n/**\n * @function init\n * @description Kick off this modules functions\n */\nconst init = () => {\n // Set session cookie with inital query string for use in cart's Preamp audiences. Expires in 30 minutes\n setCookie( 'queryString', window.location.search, 30 );\n persistData( 'queryString', window.location.search );\n\n // Apply browser classes\n applyBrowserClasses();\n\n // Set initial states\n resize();\n\n // Initialize global events\n bindEvents();\n\n document.body.classList.add( 'browser-ready' );\n};\n\nexport default init;\n","/*!\r\n * verge 1.10.2+201705300050\r\n * http://npm.im/verge\r\n * MIT Ryan Van Etten\r\n */\r\n\r\n!function(root, name, make) {\n if (typeof module != 'undefined' && module['exports']) module['exports'] = make();\r\n else root[name] = make();\r\n}(this, 'verge', function() {\r\n\r\n var xports = {}\r\n , win = typeof window != 'undefined' && window\r\n , doc = typeof document != 'undefined' && document\r\n , docElem = doc && doc.documentElement\r\n , matchMedia = win['matchMedia'] || win['msMatchMedia']\r\n , mq = matchMedia ? function(q) {\r\n return !!matchMedia.call(win, q).matches;\r\n } : function() {\r\n return false;\r\n }\r\n , viewportW = xports['viewportW'] = function() {\r\n var a = docElem['clientWidth'], b = win['innerWidth'];\r\n return a < b ? b : a;\r\n }\r\n , viewportH = xports['viewportH'] = function() {\r\n var a = docElem['clientHeight'], b = win['innerHeight'];\r\n return a < b ? b : a;\r\n };\r\n\n /**\n * Test if a media query is active. Like Modernizr.mq\r\n * @since 1.6.0\r\n * @return {boolean}\r\n */\n xports['mq'] = mq;\r\n\r\n /**\n * Normalized matchMedia\r\n * @since 1.6.0\r\n * @return {MediaQueryList|Object}\r\n */\n xports['matchMedia'] = matchMedia ? function() {\r\n // matchMedia must be binded to window\r\n return matchMedia.apply(win, arguments);\r\n } : function() {\r\n // Gracefully degrade to plain object\r\n return {};\r\n };\r\n\r\n /**\r\n * @since 1.8.0\r\n * @return {{width:number, height:number}}\r\n */\r\n function viewport() {\r\n return {'width':viewportW(), 'height':viewportH()};\r\n }\r\n xports['viewport'] = viewport;\r\n\n /**\n * Cross-browser window.scrollX\r\n * @since 1.0.0\r\n * @return {number}\r\n */\r\n xports['scrollX'] = function() {\r\n return win.pageXOffset || docElem.scrollLeft;\n };\r\n\r\n /**\n * Cross-browser window.scrollY\r\n * @since 1.0.0\r\n * @return {number}\r\n */\r\n xports['scrollY'] = function() {\r\n return win.pageYOffset || docElem.scrollTop;\n };\r\n\r\n /**\r\n * @param {{top:number, right:number, bottom:number, left:number}} coords\r\n * @param {number=} cushion adjustment\r\n * @return {Object}\r\n */\r\n function calibrate(coords, cushion) {\r\n var o = {};\r\n cushion = +cushion || 0;\r\n o['width'] = (o['right'] = coords['right'] + cushion) - (o['left'] = coords['left'] - cushion);\r\n o['height'] = (o['bottom'] = coords['bottom'] + cushion) - (o['top'] = coords['top'] - cushion);\r\n return o;\r\n }\r\n\r\n /**\r\n * Cross-browser element.getBoundingClientRect plus optional cushion.\r\n * Coords are relative to the top-left corner of the viewport.\r\n * @since 1.0.0\r\n * @param {Element|Object} el element or stack (uses first item)\r\n * @param {number=} cushion +/- pixel adjustment amount\r\n * @return {Object|boolean}\r\n */\r\n function rectangle(el, cushion) {\r\n el = el && !el.nodeType ? el[0] : el;\r\n if (!el || 1 !== el.nodeType) return false;\r\n return calibrate(el.getBoundingClientRect(), cushion);\r\n }\r\n xports['rectangle'] = rectangle;\r\n\r\n /**\r\n * Get the viewport aspect ratio (or the aspect ratio of an object or element)\r\n * @since 1.7.0\r\n * @param {(Element|Object)=} o optional object with width/height props or methods\r\n * @return {number}\r\n * @link http://w3.org/TR/css3-mediaqueries/#orientation\r\n */\r\n function aspect(o) {\r\n o = null == o ? viewport() : 1 === o.nodeType ? rectangle(o) : o;\r\n var h = o['height'], w = o['width'];\r\n h = typeof h == 'function' ? h.call(o) : h;\r\n w = typeof w == 'function' ? w.call(o) : w;\r\n return w/h;\r\n }\r\n xports['aspect'] = aspect;\r\n\r\n /**\r\n * Test if an element is in the same x-axis section as the viewport.\r\n * @since 1.0.0\r\n * @param {Element|Object} el\r\n * @param {number=} cushion\r\n * @return {boolean}\r\n */\r\n xports['inX'] = function(el, cushion) {\r\n var r = rectangle(el, cushion);\r\n return !!r && r.right >= 0 && r.left <= viewportW();\r\n };\r\n\r\n /**\r\n * Test if an element is in the same y-axis section as the viewport.\r\n * @since 1.0.0\r\n * @param {Element|Object} el\r\n * @param {number=} cushion\r\n * @return {boolean}\r\n */\r\n xports['inY'] = function(el, cushion) {\r\n var r = rectangle(el, cushion);\r\n return !!r && r.bottom >= 0 && r.top <= viewportH();\r\n };\r\n\r\n /**\r\n * Test if an element is in the viewport.\r\n * @since 1.0.0\r\n * @param {Element|Object} el\r\n * @param {number=} cushion\r\n * @return {boolean}\r\n */\r\n xports['inViewport'] = function(el, cushion) {\r\n // Equiv to `inX(el, cushion) && inY(el, cushion)` but just manually do both\n // to avoid calling rectangle() twice. It gzips just as small like this.\r\n var r = rectangle(el, cushion);\r\n return !!r && r.bottom >= 0 && r.right >= 0 && r.top <= viewportH() && r.left <= viewportW();\r\n };\r\n\r\n return xports;\r\n});\n"],"names":["__webpack_exports__","Z","desktop_initialized","is_desktop","is_small_desktop","is_tablet","is_mobile","mobile_initialized","v_height","v_width","lodash_es_now","root","Date","now","reWhitespace","_trimmedEndIndex","string","index","length","test","charAt","reTrimStart","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","lodash_es_toNumber","value","isSymbol","isObject","other","valueOf","slice","trimmedEndIndex","replace","isBinary","nativeMax","Math","max","nativeMin","min","lodash_es_debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","args","thisArg","undefined","apply","shouldInvoke","timeSinceLastCall","timeSinceLastInvoke","timerExpired","timeWaiting","trailingEdge","setTimeout","debounced","isInvoking","arguments","clearTimeout","toNumber","cancel","flush","android","navigator","userAgent","chrome","window","firefox","InstallTrigger","ie","document","documentMode","edge","StyleMedia","ios","match","iosMobile","opera","indexOf","safari","Object","prototype","toString","call","HTMLElement","webkitAudioContext","os","platform","browserTests","apply_browser_classes","browser","classes","body","classList","add","viewport_dims","state","viewportH","viewportW","is_large_desktop","core_resize","viewportDims","trigger","event","native","bindEvents","addEventListener","debounce","resize","main","setCookie","location","search","persistData","applyBrowserClasses","make","xports","win","doc","docElem","documentElement","matchMedia","a","b","viewport","rectangle","el","cushion","coords","o","nodeType","getBoundingClientRect","q","matches","pageXOffset","scrollLeft","pageYOffset","scrollTop","h","w","r","right","left","bottom","top","module"],"sourceRoot":""}