mon/features",function(){}); /*! intercom.js | https://github.com/diy/intercom.js | Apache License (v2) */ var Intercom=function(){var e=function(){};e.createInterface=function(e){var t={on:function(t,n){void 0===this[e]&&(this[e]={}),this[e].hasOwnProperty(t)||(this[e][t]=[]),this[e][t].push(n)},off:function(t,n){void 0!==this[e]&&this[e].hasOwnProperty(t)&&o.removeItem(n,this[e][t])},trigger:function(t){if(void 0!==this[e]&&this[e].hasOwnProperty(t))for(var n=Array.prototype.slice.call(arguments,1),i=0;ie&&(n=i,t.apply(this,arguments))}},o.extend=function(e,t){if(void 0!==e&&e||(e={}),"object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},o.removeItem=function(e,t){for(var n=t.length-1;n>=0;n--)t[n]===e&&t.splice(n,1);return t};var a=function(){var e=this,t=(new Date).getTime();this.origin=o.guid(),this.lastMessage=t,this.bindings=[],this.receivedIDs={},this.previousValues={};var n=function(){e._onStorageEvent.apply(e,arguments)};window.attachEvent?document.attachEvent("onstorage",n):window.addEventListener("storage",n,!1)};a.prototype._transaction=function(e){var t=this,i=!1,r=!1,o=null,a=function(){if(!i){var u=(new Date).getTime(),c=parseInt(n.getItem(l)||0);if(c&&u-c<1e3)return r||(t._on("storage",a),r=!0),void(o=window.setTimeout(a,20));i=!0,n.setItem(l,u),e(),s()}},s=function(){r&&t._off("storage",a),o&&window.clearTimeout(o),n.removeItem(l)};a()},a.prototype._cleanup_emit=o.throttle(100,function(){this._transaction(function(){for(var e=(new Date).getTime()-d,t=0,i=JSON.parse(n.getItem(u)||"[]"),r=i.length-1;r>=0;r--)i[r].timestamp0&&n.setItem(u,JSON.stringify(i))})}),a.prototype._cleanup_once=o.throttle(100,function(){var e=this;this._transaction(function(){var t,i=JSON.parse(n.getItem(c)||"{}"),r=((new Date).getTime(),0);for(t in i)e._once_expired(t,i)&&(delete i[t],r++);r>0&&n.setItem(c,JSON.stringify(i))})}),a.prototype._once_expired=function(e,t){if(!t)return!0;if(!t.hasOwnProperty(e))return!0;if("object"!=typeof t[e])return!0;var n=t[e].ttl||f,i=(new Date).getTime();return t[e].timestamp{clearInterval(t)},1e4),t=setInterval(()=>{window.vtg.ts&&(clearInterval(t),clearTimeout(e),this.intercom=Intercom.getInstance(),this.intercom.emit("utag-loaded"),window.vtg=vtg)},10)}])}),define("fly/utils/string-helper-2.0",[],function(){return{capitalize:function(e){return e.replace(/\b[a-z]/g,function(e){return e.toUpperCase()})},lowerFirst:function(e){return e.charAt(0).toLowerCase()+e.slice(1)},toBool:function(e){return!0===e||"true"===e||"1"===e},toCleanArray:function(e,t){return t=t||",",e=(e="string"==typeof e?e.split(t).map(function(e){return e.trim()}):Array.prototype.slice.call(e)).filter(function(e){return e})},toCamelCase:function(e,t){return t=t||"-",e.replace(new RegExp("(\\"+t+"[a-z])","g"),function(e){return e.toUpperCase().replace(t,"")})},fromCamelCase:function(e,t){return t=t||"-",e.replace(/[A-Z]/g,function(e){return t+e.toLowerCase()})},toEventName:function(e){return e.replace(/^on([A-Z])/,function(e){return e.charAt(2).toLowerCase()})},isEventOption:function(e){return/^on([A-Z])/.test(e)}}}),define("fly/utils/url-helper-2.0",[],function(){return{buildUrl:function(e,t,n,i){var r=e+t;return(n=this._stringifyObject(n))&&(r+="?"+n),(i=this._stringifyObject(i))&&(r+="#"+i),r},getParam:function(e,t){var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t||window.location);return n?n[1]:null},getParamAsArray:function(e){var t=this.getParam(e);return t?t.split(","):null},getAllParams:function(e){var t=(e?this._getParsableUrl(e):window.location).search.substring(1),n=t.split("&"),i={};if(""===t)return{};for(var r=0;r-1||o.indexOf("all")>-1)&&(i.set(u.cookie.name,!0,{path:"/",domain:u.cookie.domain}),c=!0),(r=function(e){this.name=e,this.color="hsl("+l(0,360)+","+l(35,80)+"%,"+l(20,45)+"%)",(!0===a||Array.isArray(o)&&o.indexOf(this.name)>-1||Array.isArray(a)&&a.indexOf(this.name)>-1)&&this.enable()}).prototype={constructor:r,enabled:!1,_call:function(e,t){if(window.console&&(this.enabled||c)){t.callee=t.callee.caller;var n=[].slice.call(t);-1<["error","info","log","trace","warn"].indexOf(e)&&n.unshift("%c "+this.name+" ","color:#fff;border-radius:3px;background-color:"+this.color+";"),"object"==typeof window.console&&"function"==typeof window.console[e]&&window.console[e].apply(window.console,n)}return this},disable:function(){return this.enabled=!1,this},enable:function(){return this.enabled=!0,this},error:function(){return this._call("error",arguments)},info:function(){return this._call("info",arguments)},log:function(){return this._call("log",arguments)},profile:function(){return this._call("profile",arguments)},profileEnd:function(){return this._call("profileEnd",arguments)},timeStamp:function(){return this._call("timeStamp",arguments)},trace:function(){return this._call("trace",arguments)},warn:function(){return this._call("warn",arguments)}},{init:function(e){var t=new r(e);return s[e]=t,t},get:function(e){return s[e]||this.init(e)}}}),require(["version!fly/managers/debug"],function(e){var t=e.init("optimizelyExp");if(CBSNEWS.frameElement)return Object.defineProperty(CBSNEWS.tracking,"optimizelyExp",{get:function(){return window.parent.CBSNEWS.tracking.optimizelyExp},set:function(){},configurable:!0,enumerable:!0}),void t.log("from parent",CBSNEWS.tracking.optimizelyExp);function n(e){return e.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_")}function i(e){let i=CBSNEWS.features.weightedFeatures.filter((e,t,n)=>""!==e&&n.indexOf(e)===t).map(e=>e+"="+CBSNEWS.features.getFeatureValue(e)).sort();if(e){let e=window.optimizely.get("state").getExperimentStates();for(let t in e){let r=e[t];r.isActive&&!r.isInExperimentHoldback&&i.push(`${n(r.experimentName)}(${r.id}):${n(r.variation.name)}(${r.variation.id})`)}}CBSNEWS.tracking.optimizelyExp=i.join("|");let r={type:"trackingDataUpdate",data:{optimizelyExp:CBSNEWS.tracking.optimizelyExp,pageViewGuid:CBSNEWS.tracking.pageViewGuid}};t.log("message",r),window.webkit&&!navigator.userAgent.match("CriOS")?window.webkit.messageHandlers.jsHandler.postMessage(r):window.Android?Android.postMessage(JSON.stringify(r)):window!==window.parent&&window.parent.postMessage(r,"*")}window.optimizely=window.optimizely||[],window.optimizely.push({type:"addListener",filter:{type:"lifecycle",name:"initialized"},handler:i}),i(!1)}),define("utils/optimizely-exp",function(){}),define("third-party/optimizely",["utils/optimizely-exp"],function(){CBSNEWS.features.executeWithConsent(["optimizely"],"performance",function(){require(["https://cdn.optimizely.com/js/2628570003.js#"])},this)}),window.addEventListener("message",function(e){if(e.origin===window.location.origin&&e.data){var t=e.source.frameElement;if("resize"===e.data.event&&t){var n=e.source.frameElement.closest(".embed");if(0===e.data.height)n.classList.add("is-hidden");else{var i=n.querySelector(".embed__resizer");i.style.paddingTop=e.data.height+"px",i.setAttribute("data-resized",""),n.classList.remove("is-hidden")}}}},!1),define("common/iframe-resizer",function(){}),define("libs/hls-video",["version!fly/managers/debug"],function(e){return function(t){var n=e.init("hls-wrapper");n.log("Prepare to initialize");var i,r,o,a=null,s=function(e,t,i){return n.log("togglePlayback",t?"pause":"play",i),t&&e.paused?void n.log("Video is already paused",i):t?(n.log("PAUSE video",i),e.pause(),a&&a.stopLoad(),!0):e.paused?(n.log("PLAY video",i),e.play(),a&&a.startLoad(-1),!0):void n.log("Video IS not paused",i)},u=function(e,t,i,r){if(void 0!==document.hidden||void 0!==document.webkitHidden){document.addEventListener(i,function(){n.log("onPageVisibilityChange","Page is",document[r]?"hidden":"visible"),s(e,document[r],t,a)},!1)}},c=function(){var e=window.MediaSource=window.MediaSource||window.WebKitMediaSource,t=window.SourceBuffer=window.SourceBuffer||window.WebKitSourceBuffer,n=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),i=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;return n&&i},l=function(e){return e.defaultPrevented||"VIDEO"!=e.nodeName||!e.hasAttribute("data-hls-wrapper")}(t)?null:function(e){var t=e;return t.muted=t.hasAttribute("muted"),t.autoplay=t.hasAttribute("autoplay"),t.disableRemotePlayback=!0,t.onerror=function(e){n.error("Error "+t.error.code+"; details: "+t.error.message),t.getAttribute("data-poster")&&t.setAttribute("poster",t.getAttribute("data-poster"))},t}(t),d=l?function(e){var t=e.getAttribute("src"),i=e.getAttribute("data-src"),r=e.querySelector("source"),o=r&&r.getAttribute("data-src");return t=t||i||(r&&r.src?r.src:o||null),n.log("Found video source",t),t}(l):null;return function(e){if(!e)return n.error("No video source available"),!0}(d)?null:(i=function(){var e,t;return void 0!==document.hidden?(e="hidden",t="visibilitychange"):void 0!==document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange",pageVisibilitySupported=!0),[e,t]}(),r=i[0],o=i[1],u(l,d,o,r),l.hasAttribute("data-hls-wrapper-no-observer")?n.log("IntersectionObserver is disabled on this video"):function(e,t){try{new IntersectionObserver(function(i){n.log("intersectionObserver",i[0].intersectionRatio,e),setTimeout(s,10,e,0==i[0].intersectionRatio,t)}).observe(e)}catch(e){n.error(e)}}(l,d),void(function(e){var t=e.querySelector("source");return!(t&&e.canPlayType(t.type)||e.canPlayType("application/vnd.apple.mpegURL")||!c())||(n.log("native playback is supported or HLS.js is not supported"),!1)}(l)&&(a=function(e,t){require(["polyfill!hls.min"],function(i){return window.Hls=window.Hls||i,(a=new window.Hls({capLevelToPlayerSize:!0,enableWebVTT:!1,enableCEA708Captions:!1,autoLevelCapping:2})).attachMedia(e),a.on(i.Events.MEDIA_ATTACHED,function(){a.loadSource(t),a.on(i.Events.MANIFEST_PARSED,function(){s(e,!e.hasAttribute("autoplay"),t)})}),a.on(i.Events.ERROR,function(e,t){if(t.fatal)switch(t.type){case i.ErrorTypes.NETWORK_ERROR:n.error("fatal network error encountered, try to recover",t),a.startLoad();break;case i.ErrorTypes.MEDIA_ERROR:n.error("fatal media error encountered, try to recover",t),a.recoverMediaError();break;default:n.error("cannot recover, destroy",t),a.destroy()}}),a})}(l,d))))}}),define("components/smart-banner",["version!fly/managers/debug"],function(e){function t(t,n){if(this.debug=e.init("smart-banner"),this.element=t,this.options=n,this.deviceName=null,this.isHidden=null,this.featureName=n.featureName||"smart-banner-"+n.cookieName,this.debug.log("init",this.featureName,"with options",n),CBSNEWS.features.isFeatureDisabled("smart-banner")||CBSNEWS.features.isFeatureDisabled(this.featureName))return this.debug.log("Diabled by feature flag"),void this.toggleVisibleClass(!0);if(!this.isTargetDevice())return this.debug.log("Not the target device"),void this.toggleVisibleClass(!0);var i=this.url(this.deviceName);(this.debug.log("set click url to ",i),n.bannerAnchorSelector)&&Array.prototype.slice.call(t.querySelectorAll(n.bannerAnchorSelector)).forEach(function(e){e.setAttribute("href",i),e.addEventListener("click",function(){this.triggerEvent("open",e)}.bind(this),!1)}.bind(this));n.bannerCloseSelector&&Array.prototype.slice.call(t.querySelectorAll(n.bannerCloseSelector)).forEach(function(e){e.addEventListener("click",function(){this.toggleHide(n.hideDays),this.triggerEvent("close",e)}.bind(this),!1)}.bind(this));setTimeout(function(){this.isHidden||"number"!=typeof n.retryDays?this.debug.log("timeout reached, but banner is hidden or retryDays is not set",n.retryDays):n.hideOnTimeout?(this.debug.log("hide on timeout"),this.toggleHide(n.retryDays)):(this.debug.log("hide on next page"),this.setCookie(n.retryDays))}.bind(this),3e4),this.isHidden="hidden"===CBSNEWS.features.getFeatureValue(this.featureName),this.debug.log("banner is ",this.isHidden?"hidden":"visible"),this.toggleVisibleClass()}return t.prototype.toggleHide=function(e){this.debug.log((this.isHidden?"show":"hide")+" component for "+e),this.isHidden=!this.isHidden,this.setCookie(e),this.toggleVisibleClass()},t.prototype.setCookie=function(e){this.debug.log("set cookie for "+e+" days"),CBSNEWS.features.setFeatureValue(this.featureName,this.isHidden?"hidden":"visible",{type:"cookie",maxAge:86400*parseFloat(e)})},t.prototype.isTargetDevice=function(){var e=navigator.userAgent.toLowerCase(),t=this.options.url,n=t&&"object"==typeof t&&Object.keys(t).join("|"),i=new RegExp("("+n+")"),r=e.match(i);return n?r?(this.debug.log("detected device as ",r[0]),this.deviceName=r[0],document.documentElement.classList.add("device-is--"+this.deviceName)):this.debug.log("device does not match the rule ",r):(this.debug.log("no devices provided, default to true",r),r=!0),!!r},t.prototype.toggleVisibleClass=function(e){e=e||this.isHidden,this.debug.log("toggle state to "+(e?"hidden":"visible")),this.toggleClass(e),this.triggerEvent(e?"hide":"show"),this.toggleAccessibilityLabels(e)},t.prototype.toggleClass=function(e){var t=document.documentElement.classList;this.element.getAttribute("id");e?(t.add(this.options.bannerHiddenClass),t.remove(this.options.bannerVisibleClass),this.debug.log("toogle hide",t)):(t.add(this.options.bannerVisibleClass),t.remove(this.options.bannerHiddenClass),this.debug.log("toogle add",t))},t.prototype.toggleAccessibilityLabels=function(e){e=e||this.isHidden,this.debug.log("toggle labels to "+(e?"hidden":"visible"));var t=this.element.querySelectorAll("[aria-controls]");for(i=0;i=0&&o.push("splice"),CBSNEWS.features.executeIfEnabled(o,function(t){n.target.setAttribute("src",t),e(n.target)},window,[i])),i=n.target.getAttribute("data-poster"),"VIDEO"==n.target.nodeName&&i&&CBSNEWS.features.executeIfDisabled(o,function(e){n.target.setAttribute("poster",i)},window,[i]),"IFRAME"==n.target.nodeName){var a=n.target,s=a.parentElement.querySelector(".embed__resizer"),u=(a.getAttribute("data-width")||"").replace("px",""),c=(a.getAttribute("data-height")||"").replace("px","");s&&s.hasAttribute("data-resized")||(s&&c>0&&u>0?s.setAttribute("style","padding-top:"+c/u*100+"%"):(u&&a.setAttribute("width",u),c&&a.setAttribute("height",c),s&&c&&s.setAttribute("style","padding-top:"+c+"px"))),/^\/embed\/video\//.test(a.getAttribute("src")||a.getAttribute("data-src"))&&!document.body.classList.contains("has__video-player")&&document.body.classList.add("has__video-player")}if(i=n.target.getAttribute("href"),"LINK"==n.target.nodeName&&i){var l=new XMLHttpRequest;l.open("GET",i,!0),l.send(),l.onload=function(){if(l.responseXML&&"image/svg+xml"===l.responseXML.contentType)document.head.insertAdjacentHTML("beforeend",l.responseText);else if("application/json"===l.getResponseHeader("Content-Type")){var e=JSON.parse(l.responseText);n.target.insertAdjacentHTML("afterend",e.html)}else n.target.insertAdjacentHTML("afterend",l.responseText)}}if((i=n.target.getAttribute("data-require"))&&window.require){var d=n.target.getAttribute("data-require-callback"),f=JSON.parse(n.target.getAttribute("data-require-arguments"));require([i],function(e,t){return function(){e&&"function"==typeof window[e]&&window[e].apply(window,t||arguments)}}(d,f))}if((i=n.target.getAttribute("data-lazy-taboola"))&&n.target.setAttribute("data-taboola",i),(i=n.target.getAttribute("data-taboola"))&&window.CBSNEWS.taboola&&window.CBSNEWS.taboola.push(n.target,!0),i=n.target.getAttribute("data-ad-unit")){var p=JSON.parse(i),h=document.querySelectorAll('[id="'+n.target.id+'"]').length;Array.isArray(p)&&h>1&&(p[1]+=document.querySelectorAll('[id^="'+p[0]+'"]').length-h+1,n.target.setAttribute("id",p.join("")),n.target.setAttribute("data-ad-unit",JSON.stringify(p)),console.log("ADS: incremental ad",p,"is clashing with another, updated id to",n.target.id)),console.log("ADS: queuing to lazyload",n.target.getAttribute("id")),window.cbsiGptDivIds=window.cbsiGptDivIds||[],cbsiGptDivIds.push(p)}}},!1)}),function(e){var t=function(e,t,n){"use strict";var i,r;if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in r=e.lazySizesConfig||e.lazysizesConfig||{},n)t in r||(r[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var o=t.documentElement,a=e.HTMLPictureElement,s="addEventListener",u="getAttribute",c=e[s].bind(e),l=e.setTimeout,d=e.requestAnimationFrame||l,f=e.requestIdleCallback,p=/^picture$/i,h=["load","error","lazyincluded","_lazyloaded"],m={},g=Array.prototype.forEach,v=function(e,t){return m[t]||(m[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),m[t].test(e[u]("class")||"")&&m[t]},y=function(e,t){v(e,t)||e.setAttribute("class",(e[u]("class")||"").trim()+" "+t)},w=function(e,t){var n;(n=v(e,t))&&e.setAttribute("class",(e[u]("class")||"").replace(n," "))},b=function(e,t,n){var i=n?s:"removeEventListener";n&&b(e,t),h.forEach(function(n){e[i](n,t)})},S=function(e,n,r,o,a){var s=t.createEvent("Event");return r||(r={}),r.instance=i,s.initEvent(n,!o,!a),s.detail=r,e.dispatchEvent(s),s},E=function(t,n){var i;!a&&(i=e.picturefill||r.pf)?(n&&n.src&&!t[u]("srcset")&&t.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},C=function(e,t){return(getComputedStyle(e,null)||{})[t]},N=function(e,t,n){for(n=n||e.offsetWidth;n49?function(){f(s,{timeout:a}),a!==r.ricTimeout&&(a=r.ricTimeout)}:A(function(){l(s)},!0);return function(e){var r;(e=!0===e)&&(a=33),t||(t=!0,(r=o-(n.now()-i))<0&&(r=0),e||r<9?u():l(u,r))}},B=function(e){var t,i,r=function(){t=null,e()},o=function(){var e=n.now()-i;e<99?l(o,99-e):(f||r)(r)};return function(){i=n.now(),t||(t=l(o,99))}},W=function(){var a,f,h,m,N,W,O,z,_,I,T,D,M=/^img$/i,P=/^iframe$/i,L="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),j=0,R=0,F=-1,U=function(e){R--,(!e||R<0||!e.target)&&(R=0)},V=function(e){return null==D&&(D="hidden"==C(t.body,"visibility")),D||!("hidden"==C(e.parentNode,"visibility")&&"hidden"==C(e,"visibility"))},H=function(e,n){var i,r=e,a=V(e);for(z-=n,T+=n,_-=n,I+=n;a&&(r=r.offsetParent)&&r!=t.body&&r!=o;)(a=(C(r,"opacity")||1)>0)&&"visible"!=C(r,"overflow")&&(i=r.getBoundingClientRect(),a=I>i.left&&_i.top-1&&z500&&o.clientWidth>500?500:370:r.expand,i._defEx=v,y=v*r.expFactor,w=r.hFac,D=null,j2&&m>2&&!t.hidden?(j=y,F=0):j=m>1&&F>1&&R<6?v:0),g!==d&&(W=innerWidth+d*w,O=innerHeight+d,p=-1*d,g=d),s=b[n].getBoundingClientRect(),(T=s.bottom)>=p&&(z=s.top)<=O&&(I=s.right)>=p*w&&(_=s.left)<=W&&(T||I||_||z)&&(r.loadHidden||V(b[n]))&&(f&&R<3&&!h&&(m<3||F<4)||H(b[n],d))){if(Y(b[n]),l=!0,R>9)break}else!l&&f&&!c&&R<4&&F<4&&m>2&&(a[0]||r.preloadAfterLoad)&&(a[0]||!h&&(T||I||_||z||"auto"!=b[n][u](r.sizesAttr)))&&(c=a[0]||b[n]);c&&!l&&Y(c)}},$=k(J),Q=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(U(e),y(t,r.loadedClass),w(t,r.loadingClass),b(t,K),S(t,"lazyloaded"))},G=A(Q),K=function(e){G({target:e.target})},Z=function(e){var t,n=e[u](r.srcsetAttr);(t=r.customMedia[e[u]("data-media")||e[u]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},X=A(function(e,t,n,i,o){var a,s,c,d,f,m;(f=S(e,"lazybeforeunveil",t)).defaultPrevented||(i&&(n?y(e,r.autosizesClass):e.setAttribute("sizes",i)),s=e[u](r.srcsetAttr),a=e[u](r.srcAttr),o&&(d=(c=e.parentNode)&&p.test(c.nodeName||"")),m=t.firesLoad||"src"in e&&(s||a||d),f={target:e},y(e,r.loadingClass),m&&(clearTimeout(h),h=l(U,2500),b(e,K,!0)),d&&g.call(c.getElementsByTagName("source"),Z),s?e.setAttribute("srcset",s):a&&!d&&(P.test(e.nodeName)?function(e,t){var n=e.getAttribute("data-load-mode")||r.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)}(e,a):e.src=a),o&&(s||d)&&E(e,{src:a})),e._lazyRace&&delete e._lazyRace,w(e,r.lazyClass),x(function(){var t=e.complete&&e.naturalWidth>1;m&&!t||(t&&y(e,r.fastLoadedClass),Q(f),e._lazyCache=!0,l(function(){"_lazyCache"in e&&delete e._lazyCache},9)),"lazy"==e.loading&&R--},!0)}),Y=function(e){if(!e._lazyRace){var t,n=M.test(e.nodeName),i=n&&(e[u](r.sizesAttr)||e[u]("sizes")),o="auto"==i;(!o&&f||!n||!e[u]("src")&&!e.srcset||e.complete||v(e,r.errorClass)||!v(e,r.lazyClass))&&(t=S(e,"lazyunveilread").detail,o&&q.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,R++,X(e,t,o,i,n))}},ee=B(function(){r.loadMode=3,$()}),te=function(){3==r.loadMode&&(r.loadMode=2),ee()},ne=function(){f||(n.now()-N<999?l(ne,999):(f=!0,r.loadMode=3,$(),c("scroll",te,!0)))};return{_:function(){N=n.now(),i.elements=t.getElementsByClassName(r.lazyClass),a=t.getElementsByClassName(r.lazyClass+" "+r.preloadClass),c("scroll",$,!0),c("resize",$,!0),c("pageshow",function(e){if(e.persisted){var n=t.querySelectorAll("."+r.loadingClass);n.length&&n.forEach&&d(function(){n.forEach(function(e){e.complete&&Y(e)})})}}),e.MutationObserver?new MutationObserver($).observe(o,{childList:!0,subtree:!0,attributes:!0}):(o[s]("DOMNodeInserted",$,!0),o[s]("DOMAttrModified",$,!0),setInterval($,999)),c("hashchange",$,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){t[s](e,$,!0)}),/d$|^c/.test(t.readyState)?ne():(c("load",ne),t[s]("DOMContentLoaded",$),l(ne,2e4)),i.elements.length?(J(),x._lsFlush()):$()},checkElems:$,unveil:Y,_aLSL:te}}(),q=function(){var e,n=A(function(e,t,n,i){var r,o,a;if(e._lazysizesWidth=i,i+="px",e.setAttribute("sizes",i),p.test(t.nodeName||""))for(o=0,a=(r=t.getElementsByTagName("source")).length;o>>1^r:n>>>=1;e[t]=n}return e}());for(var n,i=(n=e,"undefined"!=typeof TextEncoder?new TextEncoder("utf-8").encode(n):t(unescape(encodeURIComponent(n)))),a=-1>>>0,s=0;s>>8^o[u]}return(-1^a)>>>0}var s="*",u=/^[a-zA-Z0-9\-_.]+$/,c=1,l=1,d="amp-analytics/linker";function f(e,t){var n,i,r=t||0;return a([(n=(new Date).getTimezoneOffset(),i=window.navigator.userLanguage||window.navigator.language,[window.navigator.userAgent,n,i].join(s)),Math.floor(Date.now()/6e4)-r,e].join(s)).toString(36)}function p(e){return i(String(e))}return function(e){var t=function(e){var t=e.split(s),n=t.length%2==0;if(t.length<4||!n)return console.error(d,"Invalid linker_param value "+e),null;var i=parseInt(t.shift());if(i!==l)return console.error(d,"Invalid version number "+i),null;var r=t.shift(),o=t.join(s);return{checksum:r,serializedIds:o}}(e);if(!t)return null;var n=t.checksum,i=t.serializedIds;return function(e,t){for(var n=0;n<=c;n++){var i=f(e,n);if(i==t)return!0}return!1}(i,n)?function(e){for(var t={},n=e.split(s),i=0;i0&&void 0!==arguments[0]?arguments[0]:"keyval-store",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keyval";_classCallCheck(this,e),this.storeName=n,this._dbp=new Promise(function(e,i){var r=indexedDB.open(t,1);r.onerror=function(){return i(r.error)},r.onsuccess=function(){return e(r.result)},r.onupgradeneeded=function(){r.result.createObjectStore(n)}})}return _createClass(e,[{key:"_withIDBStore",value:function(e,t){var n=this;return this._dbp.then(function(i){return new Promise(function(r,o){var a=i.transaction(n.storeName,e);a.oncomplete=function(){return r()},a.onabort=a.onerror=function(){return o(a.error)},t(a.objectStore(n.storeName))})})}}]),e}(),n=void 0;function i(){return n||(n=new t),n}return e.Store=t,e.get=function(e){var t=void 0;return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:i())._withIDBStore("readonly",function(n){t=n.get(e)}).then(function(){return t.result})},e.set=function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:i())._withIDBStore("readwrite",function(n){n.put(t,e)})},e.del=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:i())._withIDBStore("readwrite",function(t){t.delete(e)})},e.clear=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:i())._withIDBStore("readwrite",function(e){e.clear()})},e.keys=function(){var e=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:i())._withIDBStore("readonly",function(t){(t.openKeyCursor||t.openCursor).call(t).onsuccess=function(){this.result&&(e.push(this.result.key),this.result.continue())}}).then(function(){return e})},e}({});define("libs/idb-keyval",function(){}),function(){"use strict";var e={"hls.min":function(){return!!window.Hls||document.createElement("video").canPlayType("application/vnd.apple.mpegURL")},"window.CustomEvent":function(){return!(!window.CustomEvent||"object"==typeof window.CustomEvent)}};define("polyfill",{version:"1.0",load:function(t,n,i,r){if(!e)throw new Error("A polyfill config has not been setup");if(!e[t])throw new Error("A polyfill for "+t+" was not specified");r.isBuild||!0===e[t]()?i():n(["polyfills/"+t],function(e){i(e)})}})}(),define("third-party/queryly",[],function(){const e=CBSNEWS.features.getFeatureValue("infinite-scroll-allowed-topics");if(e){if(new Set(e.replace(/\s+/g,"").split(",")).has(CBSNEWS.tracking.siteSection))return}const t=CBSNEWS.features.getFeatureValue("queryly-allowed-topics");if(t){if(new Set(t.replace(/\s+/g,"").split(",")).has(CBSNEWS.tracking.siteSection)){new Promise((e,t)=>{const n=document.createElement("script");n.src="https://www.queryly.com/js/queryly.v4.js",n.onload=function(){e()},document.body.appendChild(n)}).then(()=>{queryly.urlOverwrite=CBSNEWS.tracking.articleId,queryly.init("4690eece66c6499f",document.querySelectorAll("header, #header, #footer, .site-footer, .super-nav, .container"),{pageservice:1})})}}}),function(e){"use strict";CBSNEWS.originalUrl={href:window.location.href,search:window.location.search,hash:window.location.hash};var t=/[^a-z0-9-_]/gi;t.test(e.location.hash)&&(e.location.hash=e.location.hash.replace(t,""))}(window),require(["requireLib"]),require(["common/features"]),require(["third-party/tealium"]),require(["third-party/optimizely"]),require(["common/iframe-resizer"]),require(["common/lazysizes"]),require(["common/dynamic-css-classes"]),require(["common/init-serviceworker"]),require(["common/scroll-fragment-into-view"]),require(["fly/libs/uuid.v4"],function(){CBSNEWS.tracking.pageViewGuid=uuid.v4()}),require(["common/s-vid-override","common/s-vid"]),require(["video/embed-events"]),require(["components/smart-banner"]),require(["libs/idb-keyval"],function(){CBSNEWS.pushNotificationsStore=new idbKeyval.Store("CBSNEWS","pushNotifications"),idbKeyval.get(CBSNEWS.originalUrl.href,CBSNEWS.pushNotificationsStore).then(function(e){var t=e.data;t&&t.extra&&(idbKeyval.del(CBSNEWS.originalUrl.href,CBSNEWS.pushNotificationsStore),CBSNEWS.tracking.pushBody=e.body,CBSNEWS.tracking.pushCampaignName=t.extra.campaign_name,CBSNEWS.tracking.pushCampaignId=t.extra.campaign_id,CBSNEWS.tracking.pushSegmentName=t.extra.segment_name,CBSNEWS.tracking.pushSegmentId=t.extra.segment_id,CBSNEWS.tracking.pushNotificationId=t.extra.brazeid)}).catch(function(e){})}),require(["polyfill!window.CustomEvent"],function(){window.CBSNEWS&&CBSNEWS.requireMain&&require([CBSNEWS.requireMain])}),require(["third-party/queryly"]),define("main",function(){});ØA —Eoúô