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Q6N,EAAS7N,GACjB,IAAIsO,EAAWN,EAAWhM,KAAKhC,GAC/B,OAAQsO,GAAYL,EAAUjM,KAAKhC,GAC/BkO,EAAalO,EAAM6J,MAAM,GAAIyE,EAAW,EAAI,GAC3CP,EAAW/L,KAAKhC,GAvDb,KAuD6BA,CACvC,C,8EC5De,SAAS2C,EAAgB4L,EAAKxO,EAAKC,GAYhD,OAXAD,GAAM,OAAcA,MACTwO,EACT9E,OAAO+E,eAAeD,EAAKxO,EAAK,CAC9BC,MAAOA,EACPyO,YAAY,EACZC,cAAc,EACdC,UAAU,IAGZJ,EAAIxO,GAAOC,EAENuO,CACT,C","sources":["webpack://@template/frontend/./scripts/libraries/_helpers/events.js","webpack://@template/frontend/./scripts/libraries/_helpers/index.js","webpack://@template/frontend/./scripts/libraries/_plugins/schedule-sort.js","webpack://@template/frontend/./node_modules/lodash/_Symbol.js","webpack://@template/frontend/./node_modules/lodash/_baseGetTag.js","webpack://@template/frontend/./node_modules/lodash/_baseTrim.js","webpack://@template/frontend/./node_modules/lodash/_freeGlobal.js","webpack://@template/frontend/./node_modules/lodash/_getRawTag.js","webpack://@template/frontend/./node_modules/lodash/_objectToString.js","webpack://@template/frontend/./node_modules/lodash/_root.js","webpack://@template/frontend/./node_modules/lodash/_trimmedEndIndex.js","webpack://@template/frontend/./node_modules/lodash/debounce.js","webpack://@template/frontend/./node_modules/lodash/isObject.js","webpack://@template/frontend/./node_modules/lodash/isObjectLike.js","webpack://@template/frontend/./node_modules/lodash/isSymbol.js","webpack://@template/frontend/./node_modules/lodash/now.js","webpack://@template/frontend/./node_modules/lodash/throttle.js","webpack://@template/frontend/./node_modules/lodash/toNumber.js","webpack://@template/frontend/./node_modules/@babel/runtime/helpers/esm/defineProperty.js"],"sourcesContent":["\nclass EventsHelper {\n Trigger(eventName, data) {\n const event = new CustomEvent(eventName, { detail: data });\n document.dispatchEvent(event);\n }\n\n On(eventName, callback) {\n if (!callback) { return; }\n document.addEventListener(eventName, callback);\n }\n\n AjaxModuleLoaded() {\n let event = new Event('ajax-module-loaded');\n document.dispatchEvent(event);\n }\n\n OnAjaxModuleLoaded(callback) {\n if (!callback) { return; }\n document.addEventListener(\"ajax-module-loaded\", callback);\n }\n\n ReloadCarousels() {\n let event = new Event('reload-carousels');\n document.dispatchEvent(event);\n }\n\n OnReloadCarousels(callback) {\n if (!callback) { return; }\n document.addEventListener(\"reload-carousels\", callback);\n }\n\n BeforeMatchDay() {\n let event = new Event('before-match-day');\n document.dispatchEvent(event);\n }\n\n OnBeforeMatchDay(callback) {\n if (!callback) { return; }\n document.addEventListener(\"before-match-day\", callback);\n }\n\n AfterMatchDay() {\n let event = new Event('after-match-day');\n document.dispatchEvent(event);\n }\n\n OnAfterMatchDay(callback) {\n if (!callback) { return; }\n document.addEventListener(\"after-match-day\", callback);\n }\n\n GlobalScheduleWeeklyNavChange(fromDate, toDate) {\n let event = new CustomEvent('gs-calendar-nav-date-changed', {\n \"detail\": { \"fromDate\": fromDate, \"toDate\": toDate }\n });\n document.dispatchEvent(event);\n }\n\n OnGlobalScheduleWeeklyNavChange(callback) {\n if (!callback) { return; }\n document.addEventListener(\"gs-calendar-nav-date-changed\", callback);\n }\n\n ContentReload() {\n let event = new Event('content-reload');\n document.dispatchEvent(event);\n }\n\n OnContentReload(callback) {\n if (!callback) { return; }\n document.addEventListener(\"content-reload\", callback);\n }\n}\n\nEventsHelper = new EventsHelper();\nexport default EventsHelper;\n","export const x = (selector, context = document) => context.querySelectorAll(selector);\n\nexport const x0 = (selector, context = document) => context.querySelector(selector);\n\nexport const isTouch = (() =>\n 'ontouchstart' in window || navigator.MaxTouchPoints > 0 || navigator.msMaxTouchPoints > 0)();\n\nexport const getOffsetTop = (elem) => {\n let offsetTop = 0;\n do {\n if (!isNaN(elem.offsetTop)) {\n offsetTop += elem.offsetTop;\n }\n } while ((elem = elem.offsetParent));\n return offsetTop;\n};\n\nexport const getScrollTop = () => {\n if (typeof pageYOffset != 'undefined') {\n return pageYOffset;\n } else {\n let doc = document,\n B = doc.body,\n D = doc.documentElement;\n\n D = D.clientHeight ? D : B;\n return D.scrollTop;\n }\n};\n\nexport const encodeURLComponent = (str) => {\n return encodeURIComponent(str).replace(/[!'()*]/g, escape);\n};\n\nexport const getParametersFromURL = () => {\n let re = /(?:\\?|&(?:amp;)?)([^=&#]+)(?:=?([^&#]*))/g,\n match,\n params = {},\n url = document.location.href,\n decode = (s) => decodeURIComponent(s.replace(/\\+/g, ' '));\n\n while ((match = re.exec(url))) {\n if (!params[decode(match[1])]) {\n params[decode(match[1])] = [];\n }\n params[decode(match[1])].push(decode(match[2]));\n }\n\n return params;\n};\n\nexport const closest = (el, parentClass) => {\n do {\n if (el.classList && el.classList.contains(parentClass)) {\n return el;\n }\n } while ((el = el.parentNode));\n\n return null;\n};\n\nexport const minmax = (value, min, max) => {\n if (parseInt(value) < min || isNaN(parseInt(value))) return min;\n else if (parseInt(value) > max) return max;\n else return value;\n};\n\nexport const setScrollTop = (offset = 0) => {\n document.documentElement.scrollTop = document.body.scrollTop = offset;\n};\n\nexport const getSiblings = (elem) => {\n const siblings = [];\n let sibling = elem.parentNode.firstChild;\n while (sibling) {\n if (sibling.nodeType === 1) {\n siblings.push(sibling);\n }\n sibling = sibling.nextSibling;\n }\n return siblings;\n};\n\nexport const capitalize = (string) => {\n return string.charAt(0).toUpperCase() + string.toLowerCase().slice(1);\n};\n\nexport const isDarkMode = () => window.matchMedia('(prefers-color-scheme: light)').matches;\n\nexport const isDesktop = () => window.innerWidth >= 1024;\nexport const isLargeDesktop = () => window.innerWidth >= 1440;\nexport const isSmallDesktop = () => window.innerWidth >= 1024 && window.innerWidth < 1440;\nexport const isMobile = () => window.innerWidth <= 768;\nexport const isSmallMobile = () => window.innerWidth <= 430;\nexport const isTablet = () => window.innerWidth <= 1024 && window.innerWidth > 768;\nexport const isIOS = (() => /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream)();\nexport const isIE11 = !!(\n navigator.userAgent.match(/Trident/) && navigator.userAgent.match(/rv[ :]11/)\n);\nexport const localLangVal = () => x0('html').lang;\n\nexport const horizontalScrollTo = (element, left, behavior = 'smooth') => document.querySelector(element).scrollTo({ left: left, behavior: behavior });\nexport const verticalScrollTo = (top) => window.scrollTo({ top: top, behavior: 'smooth' });\n\nexport const yieldToMain = () => {\n return new Promise(resolve => {\n setTimeout(resolve, 0);\n });\n}\n","import { isTouch, localLangVal, horizontalScrollTo } from '../_helpers';\nimport EventsHelper from '../_helpers/events';\nimport { throttle } from \"lodash\";\n\nexport default class ScheduleSort {\n scrollOffset = 0;\n\n init() {\n const _this = this;\n\n _this.matchesWrap = $('[js-matches-sort]');\n _this.matchesFiltersWrap = $('[js-matches-sort-filters]');\n _this.matchDateGroups = $('.vbw-matches-day-group');\n _this.matchGroups = _this.matchesWrap.find('.vbw-matches-bydate');\n\n if (_this.matchesWrap.length) {\n _this.sortMatchesByLocalTime();\n _this.updateEmptyDates();\n _this.sortByLocalDates();\n _this.scrollOffset += $('.vbw-main-nav').innerHeight() || 0;\n _this.scrollOffset += $('.vbw-secondary-nav').innerHeight() || 0;\n _this.scrollToLatestMatch();\n\n EventsHelper.On('MatchListDataUpdate', throttle((data) => {\n // Check if live match present\n if (data?.detail?.filter(d => d.status === 1).length > 0) {\n _this.scrollToLatestMatchCarousel(false)\n }\n }, 60000\n ));\n }\n }\n\n sortMatchesByLocalTime() {\n const _this = this;\n\n _this.matchDateGroups.each(function () {\n const $matchesGrp = $(this);\n const $matchesInGrp = $(this).find('.vbw-mu--match');\n\n $matchesInGrp.each(function () {\n const matchTime = new Date($(this).attr('data-matchday-utc'));\n const matchTbd = $(this).attr('data-sort-tbd') === 'TBD';\n const utcDate = matchTime.getUTCDate();\n const localDate = matchTime.getDate();\n\n // set local time on each match for Ref\n $(this).attr('data-visitor-time', matchTime);\n\n // If local date and UTC date values are different\n if (utcDate != localDate && !matchTbd) {\n const $utcDateId =\n matchTime.getUTCFullYear() +\n '-' +\n (matchTime.getUTCMonth() < 9\n ? '0' + (matchTime.getUTCMonth() + 1)\n : matchTime.getUTCMonth() + 1) +\n '-' +\n (matchTime.getUTCDate() < 10 ? '0' + matchTime.getUTCDate() : matchTime.getUTCDate());\n const $localDateId =\n matchTime.getFullYear() +\n '-' +\n (matchTime.getMonth() < 9\n ? '0' + (matchTime.getMonth() + 1)\n : matchTime.getMonth() + 1) +\n '-' +\n (matchTime.getDate() < 10 ? '0' + matchTime.getDate() : matchTime.getDate());\n const $targetMatchesWrap = _this.matchesWrap.find(\n `[data-matchday-wrap='${$localDateId}']`\n );\n\n // Update filter attribute\n $(this).attr('data-matchdate', $localDateId);\n\n // If we found a container with target date\n if ($targetMatchesWrap.length > 0) {\n $targetMatchesWrap.append($(this));\n } else {\n const displayDate =\n matchTime.toLocaleString(localLangVal(), { month: 'long' }) +\n ' ' +\n matchTime.toLocaleString(localLangVal(), { day: 'numeric' }) +\n ', ' +\n matchTime.toLocaleString(localLangVal(), { year: 'numeric' });\n const contentVal = `<div class=\"vbw-matches-day-group\" data-day-wrap=\"${$localDateId}\">\n <div class=\"vbw-matches--data--day\" id=\"${$localDateId}\">${displayDate}</div>\n <div class=\"vbw-matches-bydate\" data-matchday-wrap=\"${$localDateId}\"></div>\n <div>`;\n\n if (matchTime.getTimezoneOffset() < 0) {\n $matchesGrp.after(contentVal);\n } else {\n _this.matchesWrap.find(`#${$utcDateId}.vbw-matches--data--day`).before(contentVal);\n }\n _this.matchesWrap.find(`[data-matchday-wrap='${$localDateId}']`).append($(this));\n\n // update matches filter by date section for new date elements add\n if (_this.matchesFiltersWrap.length > 0) {\n _this.matchesFiltersWrap.find(`[data-matchdate='${$localDateId}']`).each(function () {\n $(this).addClass('has-matches');\n });\n }\n }\n }\n });\n });\n }\n\n updateEmptyDates() {\n const _this = this;\n const newMatchesWrap = $('[js-matches-sort]');\n\n newMatchesWrap.find('.vbw-matches-bydate').each(function () {\n if ($(this).children().length == 0) {\n const oldDateToRemove = $(this).attr('data-matchday-wrap');\n\n _this.matchesWrap.find(`[data-day-wrap='${oldDateToRemove}']`).remove();\n\n // update matches filter by date section for groups those became empty after sort\n if (_this.matchesFiltersWrap.length > 0) {\n _this.matchesFiltersWrap.find(`[data-matchdate='${oldDateToRemove}']`).each(function () {\n $(this).removeClass('has-matches');\n if ($(this).hasClass('active')) {\n $(this).removeClass('active');\n $(this).next('.has-matches').addClass('active');\n }\n });\n }\n } else {\n const dateWithMatches = $(this).attr('data-matchday-wrap');\n\n // re-update matches filter for dates with matches\n if (_this.matchesFiltersWrap.length > 0) {\n _this.matchesFiltersWrap.find(`[data-matchdate='${dateWithMatches}']`).each(function () {\n $(this).addClass('has-matches');\n });\n }\n }\n });\n }\n\n sortByLocalDates() {\n const _this = this;\n\n $('.vbw-matches-bydate').each(function () {\n if ($(this).children().length > 1) {\n $(this).children().sort(_this.sortAscendingByDate).appendTo($(this));\n }\n });\n }\n\n scrollToLatestMatch() {\n const _this = this;\n\n if (_this.matchesWrap.hasClass('vbw-matches-carousel-wrap')) {\n const endDate = _this.matchesWrap.attr(\"data-end-date\");\n const isCompetitionCompleted = new Date() > new Date(endDate);\n if (isCompetitionCompleted) {\n _this.matchesWrap.addClass(\"vbw-competition-completed\");\n }\n _this.scrollToLatestMatchCarousel(isCompetitionCompleted);\n }\n else {\n const matchDateFilter = document.querySelector('.vbw-matches-filters--calendar');\n const matchDateFilterMobile = document.querySelector('.vbw-matches-filters-overlay');\n if (!matchDateFilter) {\n return;\n }\n\n _this.matchGroups = _this.matchesWrap.find('.vbw-matches-bydate');\n\n for (const matchGroup of _this.matchGroups) {\n const scheduleMatch = matchGroup.querySelector('.vbw-mu-scheduled');\n const liveMatch = matchGroup.querySelector('.vbw-mu-live');\n if (liveMatch || scheduleMatch) {\n const matchDate = matchGroup.getAttribute('data-matchday-wrap');\n const matchDateMonth = matchDate.substring(0, 7);\n const matchId = liveMatch\n ? liveMatch.getAttribute('matchid')\n : scheduleMatch.getAttribute('matchid');\n if (!isTouch) {\n const matchMonthOption = matchDateFilter.querySelector(\n 'li[value=\"' + matchDateMonth + '\"]'\n );\n matchMonthOption.click();\n const monthCarousel = matchDateFilter.querySelector(\n '.vbw-matches--monthcarousel.active'\n );\n const matchDateOption = monthCarousel.querySelector(\n '.day-anchor[data-matchdate=\"' + matchDate + '\"]'\n );\n matchDateOption.click();\n $([document.documentElement, document.body]).animate(\n {\n scrollTop: $(`[matchid=${matchId}]`).offset().top - _this.scrollOffset,\n },\n 1000\n );\n } else {\n matchDateFilter.querySelector('.vbw-matches-filters--month').click();\n const matchMonthMobileOption = matchDateFilterMobile.querySelector(\n 'li[value=\"' + matchDateMonth + '\"]'\n );\n matchMonthMobileOption.click();\n $([document.documentElement, document.body]).animate(\n {\n scrollTop: $(`[matchid=${matchId}]`).offset().top - _this.scrollOffset,\n },\n 1000\n );\n }\n\n break;\n }\n }\n }\n }\n\n sortAscendingByDate(a, b) {\n const dateA = new Date($(a).attr('data-matchday-utc'));\n const dateB = new Date($(b).attr('data-matchday-utc'));\n\n if ($(a).attr('data-sort-tbd') === 'TBD') return 1;\n if ($(b).attr('data-sort-tbd') === 'TBD') return -1;\n\n return dateA > dateB ? 1 : -1;\n }\n\n scrollToLatestMatchCarousel(isCompetitionCompleted = false) {\n let scrollToDist = 100000; // Set big value to make scroll to end\n\n if (!isCompetitionCompleted) {\n const matches = $('.vbw-mu--match.vbw-mu-live, .vbw-mu--match.vbw-mu-scheduled');\n\n if (matches.length) {\n const correctionWidth = (screen.width - document.querySelector('.vbw-matches-carousel-wrap').clientWidth) / 2;\n const matchSelector = $(matches[0]).attr('matchid'); // matches are already sorted by dateTime so first match is a expected match\n const scrollPosition = document.querySelector('.vbw-matches-carousel-wrap').scrollLeft;\n const matchCardPosition = document.querySelector(`[matchid=\"${matchSelector}\"]`).getBoundingClientRect();\n scrollToDist = matchCardPosition.left - correctionWidth + scrollPosition;\n }\n }\n\n horizontalScrollTo('.vbw-matches-carousel-wrap', scrollToDist);\n }\n}\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\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\nmodule.exports = baseTrim;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\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\nmodule.exports = trimmedEndIndex;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\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\nmodule.exports = debounce;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var root = require('./_root');\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\nmodule.exports = now;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` 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 throttled 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 `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\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\nmodule.exports = toNumber;\n","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}"],"names":["EventsHelper","_classCallCheck","_createClass","key","value","eventName","data","event","CustomEvent","detail","document","dispatchEvent","callback","addEventListener","Event","fromDate","toDate","x","selector","arguments","length","undefined","querySelectorAll","x0","querySelector","isTouch","window","navigator","MaxTouchPoints","msMaxTouchPoints","isDesktop","innerWidth","isMobile","isSmallMobile","isTablet","localLangVal","test","userAgent","MSStream","match","lang","horizontalScrollTo","element","left","behavior","scrollTo","ScheduleSort","_defineProperty","_this","this","matchesWrap","$","matchesFiltersWrap","matchDateGroups","matchGroups","find","sortMatchesByLocalTime","updateEmptyDates","sortByLocalDates","scrollOffset","innerHeight","scrollToLatestMatch","On","_throttle","_data$detail","filter","d","status","scrollToLatestMatchCarousel","each","$matchesGrp","matchTime","Date","attr","matchTbd","utcDate","getUTCDate","localDate","getDate","$utcDateId","getUTCFullYear","getUTCMonth","$localDateId","getFullYear","getMonth","$targetMatchesWrap","concat","append","displayDate","toLocaleString","month","day","year","contentVal","getTimezoneOffset","after","before","addClass","children","oldDateToRemove","remove","removeClass","hasClass","next","dateWithMatches","sort","sortAscendingByDate","appendTo","endDate","isCompetitionCompleted","matchDateFilter","matchDateFilterMobile","_step","_iterator","_createForOfIteratorHelper","s","n","done","matchGroup","scheduleMatch","liveMatch","matchDate","getAttribute","matchDateMonth","substring","matchId","click","documentElement","body","animate","scrollTop","offset","top","err","e","f","a","b","dateA","dateB","scrollToDist","matches","correctionWidth","screen","width","clientWidth","matchSelector","scrollPosition","scrollLeft","getBoundingClientRect","Symbol","module","exports","getRawTag","objectToString","symToStringTag","toStringTag","Object","trimmedEndIndex","reTrimStart","string","slice","replace","freeGlobal","g","objectProto","prototype","hasOwnProperty","nativeObjectToString","toString","isOwn","call","tag","unmasked","result","freeSelf","self","root","Function","reWhitespace","index","charAt","isObject","now","toNumber","nativeMax","Math","max","nativeMin","min","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","apply","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","setTimeout","timeWaiting","remainingWait","debounced","isInvoking","leadingEdge","clearTimeout","cancel","flush","type","baseGetTag","isObjectLike","debounce","baseTrim","isSymbol","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","other","valueOf","isBinary","obj","defineProperty","enumerable","configurable","writable"],"sourceRoot":""}