(window.webpackJsonp=window.webpackJsonp||[]).push([["b71d"],{"1nFJ":function(t,n){angular.module("fr.fixedHeader",[]).directive("frFixedHeader",["$window",function(t){return{restrict:"A",link:function(n,e){var a=angular.element(t),o=$(".sidebar"),i=0,r=0,c=!1;$(".up-anchor").click(function(){$("html, body").animate({scrollTop:0},100)}),a.on("scroll",function(t){r=a.scrollTop(),i5||r<10?c&&(o.removeClass("mini-visible"),c=!1):!c&&i-r>10&&r>e.offset().top&&(o.addClass("mini-visible"),c=!0),i=r})}}}])},BABk:function(t,n,e){"use strict";e.r(n);e("ls82");var a=e("TnM4"),o=e.n(a);e("oqG6"),e("Army"),e("Wqh7"),e("s51g"),e("kz4j"),e("1nFJ"),e("QZJb"),e("BruS");angular.module("fr.infiniteScroll",["fr.infiniteScrollCtrl","infinite-scroll"]).directive("frInfiniteScroll",["$compile","infiniteScrollCtrl",function(t,n){return{restrict:"A",priority:1e3,terminal:!0,compile:function(e,a){return e.removeAttr("fr-infinite-scroll"),e.attr("infinite-scroll","infiniteScroll()"),e.attr("infinite-scroll-disabled","infiniteScrollDisabled"),function(e,a){n(e,a),t(a)(e)}}}}]);e("R7QU");angular.module("fr.searchCtrl",["fr.search"]).service("searchCtrl",["search",function(t){return function(n){var e=0,a=0;n.openSearch=function(){n.isSearchBarActive=!0,n.searchResult&&n.searchQuery.trim()&&(n.showSearchResult=!0)},n.closeSearch=function(){n.showSearchResult=!1},n.search=function(){if(n.searchQuery.trim()){var o=e++;t(n.searchQuery).then(function(t){a>o||(a=o,n.searchResult=t,n.showSearchResult=!0)})}else n.showSearchResult=!1},n.activateSearch=function(){n.isSearchBarActive=!0,setTimeout(function(){$(".search-field").focus()},0)}}}]);e("zWnA"),e("BHLf"),e("A+5J");angular.module("fr.litelay",[]).directive("frLitelay",function(){return{link:function(t,n,e){var a;t.$watch(e.frLitelay,function(t){t!==a&&(a=t,t?n.litelay({off:!1,spinner:!0}):n.litelay({off:!0}))})}}});e("ePHq"),e("MqjG"),e("USXK"),e("UyR6");var i=function(t,n){t.loginOrigin=window.location,t.fbLogin=function(){t.fbLoginError=null,FB.login(function(e){!function(e){var a=null;"connected"===e.status&&(a=e.authResponse.accessToken,n.post("/fblogin",{token:a}).then(function(n){"authorized"===n.data?window.location="/":"not_found"===n.data?window.location="/signup/?fbtoken="+a:t.fbLoginError=n.data}))}(e)},{scope:"public_profile,email"})}};i.$inject=["$scope","$http"];var r=i;function c(t){$(t.menuEl).each(function(){var n=!0,e=$(this).data("menu"),a=t.contentEl+'[data-menu="'+e+'"]',o=t.menuEl+'[data-menu="'+e+'"]';function i(t){0!==$(t.target).closest(o).length&&27!==t.keyCode||r()}function r(){$(a).off("click touchend"),$("html").off("click touchend keyup",i),$(a).css({opacity:0}),setTimeout(function(){$(a).css({display:"none"})},0),$(o).removeClass("is-active"),$("html").removeClass("is-"+e+"-open"),n=!0}void 0!==e&&$(o).on("click",function(t){n?($("html").on("click touchend keyup",i),$(a).on("click touchend",function(t){t.stopPropagation()}),$(".js-close-dropdown",a).one("click",r),$(a).show(),setTimeout(function(){$(a).css({opacity:1})},0),$(o).addClass("is-active"),$("html").addClass("is-"+e+"-open"),n=!1):r()})})}window._=o.a,"function"!=typeof window.Promise&&(window.Promise=angular.injector(["ng"]).get("$q")),$.ajaxSetup({beforeSend:function(t,n){"GET"===n.type||this.crossDomain||t.setRequestHeader("X-XSRF-TOKEN",$.cookie("XSRF-TOKEN"))}}),$.expr[":"].econtains=function(t,n,e){return(t.textContent||t.innerText||$(t).text()||"").toLowerCase()===e[3].toLowerCase()},o.a.templateSettings={interpolate:/\{\{(.+?)\}\}/g,evaluate:/\<\@(.+?)\@\>/gim},$(document).ready(function(){c({menuEl:".bar-nav li",contentEl:".dropdown-nav"}),c({menuEl:".main-nav li",contentEl:".dropdown-nav"})}),jQuery.QueryString=function(t){if(""==t)return{};for(var n={},e=0;ee.meta.startDate||!a.meta.startDate)&&(o=!0,a.meta.startDate=e.meta.startDate),(a.meta.endDate')})},e(t)}]),angular.module("footyroom").controller("UserBarController",["$scope","$element",function(t,n){var e=this;e.isUserBarOpen=!1,e.open=function(){e.isUserBarOpen=!0},e.close=function(){e.isUserBarOpen=!1}}]),o.a.mixin({path:function(t,n){var e=t;return o.a.each(n.split("."),function(t){e=e[t]}),e}}),angular.module("footyroom").factory("cookie",function(){return $.cookie}),angular.module("footyroom").service("geoip",["$http",function(t){return{get:function(n){return t.get("https://freegeoip.app/json/"+(n||"")).then(function(t){return t.data})}}}]),angular.module("footyroom").directive("dropdownToggle",["$document",function(t){return{link:function(n,e,a){function o(){e.parent().removeClass("open")}e.bind("click",function(n){n.stopPropagation(),t.one("click",o),e.parent().toggleClass("open")}),e.parent().find("form").on("click",function(t){t.stopPropagation()})}}}]);var s=e("0ljh"),l=e.n(s);angular.module("footyroom").factory("livescores",["$filter","$rootScope",function(t,n){var e,a,o,i,r,c,s,u,d,m,f=0,p=0;return{connect:function(){e||((e=io(window.SITEURL,{path:"/livescores/socket.io/ws"})).on("full-data",g),e.on("match-report",v),e.on("update",w));return e},subMatch:function(t,n,a){o=n,i=a,c=t,e.emit("subscribe-match",{matchId:t})},subDay:function(n,o,i,c){a=i,r=c,m=n,d=o,e.emit("subscribe-day",{date:t("date")(n,"yyyy-MM-dd"),timezone:d})}};function h(t){_(t).each(function(t){void 0===t.incidents&&(t.incidents=[]),void 0===t.lineup&&(t.lineup=[])})}function g(t){u=t,f=t.version,h(u.matchesById),a(u),n.$apply()}function v(t){c===t.match.matchId&&(s=t.match,p=t.version,o&&o(s),n.$broadcast("formation-update"),n.$apply())}function w(a){a.matches?function(a){a.version!==f+1?e.emit("subscribe-day",{date:t("date")(m,"yyyy-MM-dd"),timezone:d}):f++;var o=u.matchesById.length;l.a.apply(u.matchesById,a.matches),u.matchesById.length!=o&&h(u.matchesById);r&&r(u,a),n.$apply()}(a):s&&function(t){"undefined"!==t.version&&t.version!==p+1?e.emit("subscribe-match",{matchId:s.matchId}):p++;l.a.apply(s,t.patches),i&&i(s,t.patches),n.$broadcast("formation-update"),n.$apply()}(a)}}]),angular.module("footyroom").component("topMatches",{controller:["livescores","$rootScope",function(t,n){var e=this;function a(t){e.matchesById=t.matchesById,i()}function o(t){l.a.apply(e.matchesById,t.patches),i()}function i(){e.matches=_.sortBy(e.matchesById,function(t){return t.datetime}),e.show=e.matches.length>0,n.$apply()}e.$onInit=function(){var n=t.connect();n.on("top-matches",a),n.on("top-matches-patches",o),n.on("connect",function(){n.emit("subscribe-top")})}}],templateUrl:"/views/ng/topMatches/topMatches.html?3"});var u=e("a1yh"),d=e.n(u);e("mxFJ"),e("QlAx"),e("opNK");angular.module("footyroom").requires.push("fr.matchViewHelper","fr.formations"),angular.module("footyroom").directive("frLsMatch",[function(){return{restrict:"A",scope:!0,template:d.a,controller:["$scope","$element","matchViewHelper","$rootScope",function(t,n,e,a){var o;t.incidentIdToName=a.incidentIdToName,e.setScore(t.match),o=e.startMinutesJob(t.match),t.$watchCollection("match.incidents",function(n,a){n!==a&&e.setMainIncidents(t.match)}),e.setMainIncidents(t.match),t.$on("$destroy",function(){e.stopMinutesJob(o)}),t.onClick=function(){t.openedMatch===t.match?t.openedMatch=null:t.openedMatch=t.match},t.clickMatchCenter=function(e){t.isMatchCenterOpen()&&(t.joinMatch(t.match.matchId),n.find("ls-join-match").litelay({spinner:!0}))},t.isMatchCenterOpen=function(){return new Date(t.match.datetime)-new Date<=18e5},t.$watch("match._subscribed",function(e,a){!0===e?(t.incidents=t.match.incidents,n.find("ls-join-match").litelay({off:!0}),setTimeout(function(){$("body").scrollTo(n,400,{offset:-65})},10)):t.incidents=t.mainIncidents})}]}}]);e("oDci")},BHLf:function(t,n){angular.module("fr.frEasyTimeAgo",[]).directive("frEasyTimeAgo",[function(){return{template:function(t,n){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return function(t){if(isNaN(Date.parse(t)))return t;var n=new Date(t),a=new Date,o=Math.ceil((a.getTime()-n.getTime())/6e4),i=Math.round(o/60);n.setHours(0,0,0,0),a.setHours(0,0,0,0);var r=Math.floor((a.getTime()-n.getTime())/864e5);return 0===r&&i<1&&o>0?"".concat(o," minute").concat(o>1?"s":""," ago"):0===r&&i<24&&o>0?"".concat(i," hour").concat(i>1?"s":""," ago"):r<4&&o>0?"".concat(r," day").concat(r>1?"s":""," ago"):n.getDate()+" "+e[n.getMonth()]+", "+n.getFullYear()}(n.date)}}}])},MqjG:function(t,n){angular.module("dragScroll",[]).directive("dragScroll",function(){return{restrict:"A",link:function(t,n){var e,a=0,o=0,i=!1;function r(t){i=!1,e=Date.now(),window.requestAnimationFrame&&window.requestAnimationFrame(c)}function c(){var t=Date.now()-e,a=o*Math.exp(-t/250);n.scrollLeft+=a,(a>1||a<-1)&&window.requestAnimationFrame(c)}(n=n[0]).addEventListener("mousemove",function(t){!0===i&&(n.scrollLeft+=o=a-(a=t.pageX))}),n.addEventListener("mousedown",function(t){i=!0,a=t.pageX,o=0,t.preventDefault()}),n.addEventListener("mouseup",r),n.addEventListener("mouseleave",r),n.addEventListener("click",function(t){o&&t.preventDefault()})}}})},QZJb:function(t,n){angular.module("fr.infiniteScrollCtrl",[]).service("infiniteScrollCtrl",["$window","$http","$compile",function(t,n,e){return function(a,o){try{a.currentPage=parseInt(t.location.href.match(/\/page\/(\d+)/)[1],10)}catch(t){a.currentPage=1}a.loadMoreEnabled=!0,a.infiniteScrollDisabled=!0,a.pagesScrolled=0,a.enableInfiniteScroll=function(){a.infiniteScrollDisabled=!1},a.infiniteScroll=function(){a.infiniteScrollDisabled=!0,a.postsLoading=!0,a.infiniteScrollError=null,n.get(DataStore.postsEndpointUrl+"?page="+(a.currentPage+1)+(DataStore.currentStage?"&stageTree="+DataStore.currentStage.tree:"")+(DataStore.legendary?"&legendary=1":"")+(DataStore.search?"&q="+encodeURIComponent(DataStore.search):"")).then(function(n){a.currentPage++,a.pagesScrolled++,o.append(e(n.data)(a)),a.pagesScrolled<15?(a.infiniteScrollDisabled=!1,a.loadMoreEnabled=!1):(a.loadMoreEnabled=!0,a.pagesScrolled=0),a.postsLoading=!1,ga("send","event","InfiniteScroll","Loaded",t.location.href,a.currentPage)}).catch(function(t){a.postsLoading=!1,404===t.status&&(a.loadMoreEnabled=!1),429===t.status&&(a.infiniteScrollError=t.data.errors[0])})}}}])},R7QU:function(t,n){angular.module("fr.search",[]).service("search",["$http",function(t){return function(n){return t.post("/search.json?q="+encodeURIComponent(n)).then(function(t){return t.data}).catch(function(t){return t.data})}}])},USXK:function(t,n){angular.module("scrollTo",[]).directive("scrollTo",function(){return{scope:{scrollTo:"="},link:function(t,n){setTimeout(function(){$(n).scrollTo('[scroll-point="'+t.scrollTo+'"]',{offset:-120})},0)}}})},UyR6:function(t,n){angular.module("fr.dateFormat",[]).service("dateFormat",["$filter",function(t){return function(n,e){$(n).find("[data-datetime]").each(function(){$(this).text(t("date")($(this).attr("data-datetime"),$(this).attr("data-datetime-format"),e))})}}])},Wqh7:function(t,n){angular.module("fr.hasError",[]).directive("frHasError",["$compile",function(t){return{restrict:"A",priority:1e3,terminal:!0,compile:function(n,e){n.removeAttr("fr-has-error");var a=void 0!==e.onDirty?"$dirty":"$touched",o=e.frHasError.substr(0,e.frHasError.lastIndexOf("."));return n.attr("ng-class","{ 'has-error': "+e.frHasError+".$invalid && ("+e.frHasError+"."+a+" || "+o+".$submitted ) }"),{post:function(n,e){t(e)(n)}}}}}])},a1yh:function(t,n){t.exports='
\n\t
\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\tPost.\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\n\t\t\t\n\n\t\t\tCanceled\n\t\t\tAbandoned\n\t\t\t - \n\t\t\n\t\t\n\t\t\n\t\t\t{{ match.homeTeam.name }}*\n\t\t\t{{ match.homeRedCards }}\n\t\t\n\t\t\n\t\t\n\n\t\t\tvs\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t{{ match.homeScore }} : {{ match.awayScore }}\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t \n\t\t\t\t
\n\t\t\t
\n\n\t\t
\n\n\t\t\n\t\t\t*{{ match.awayTeam.name }}\n\t\t\t{{ match.awayRedCards }}\n\t\t\n\t\t\n\t\t\t{{ stagesById[match.stageId].groupName }}\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t
\n\t\n\t
\n\n\t\t
Lineups Confirmed
\n\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t{{ incident.player.name }} \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
{{ incident.elapsed }}
\n\t\t\t\t
\n\t\t\t\t\t{{ incident.player.name }} \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\n\t\t
\n\n\t\t\t
*This match has only basic coverage
\n\n\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\n\t\t
\n\n\t\t\n\t
\n
\n'},ePHq:function(t,n){angular.module("mediaEmbedder",[]).service("mediaEmbedder",[function(){function t(t,n){if(/^