windows 10 product key  |  windows 10 product key  |  windows 10 product key  |  windows 10 product key  |  windows 10 product key  |  windows 10 product key  |  windows 10 product key  |  windows 10 product key  |  windows 10 product key  |var Tech=window.Tech||{};Tech.breakpoints={bpSmall:"29em",bpSmall2:"35em",bpMed:"45em",bpMed2:"54em",bpHeightLarge:"58em",bpLarge:"65em",bpXl:"78em"};window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){return d(x.join(a+";")+(b||""))}function f(a,b){return typeof a===b}function g(a,b){return!!~(""+a).indexOf(b)}function h(a,b){for(var d in a){var e=a[d];if(!g(e,"-")&&t[e]!==c)return"pfx"!=b||e}return!1}function i(a,b,d){for(var e in a){var g=b[a[e]];if(g!==c)return d===!1?a[e]:f(g,"function")?g.bind(d||b):g}return!1}function j(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+z.join(d+" ")+d).split(" ");return f(b,"string")||f(b,"undefined")?h(e,b):(e=(a+" "+A.join(d+" ")+d).split(" "),i(e,b,c))}function k(){o.input=function(c){for(var d=0,e=c.length;d',a,""].join(""),j.id=r,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background="",l.style.overflow="hidden",i=q.style.overflow,q.style.overflow="hidden",q.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),q.style.overflow=i),!!g},I=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return H("@media "+b+" { #"+r+" { position: absolute; } }",function(b){d="absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position}),d},J=function(){function a(a,e){e=e||b.createElement(d[a]||"div"),a="on"+a;var g=a in e;return g||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(a,""),g=f(e[a],"function"),f(e[a],"undefined")||(e[a]=c),e.removeAttribute(a))),e=null,g}var d={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return a}(),K={}.hasOwnProperty;m=f(K,"undefined")||f(K.call,"undefined")?function(a,b){return b in a&&f(a.constructor.prototype[b],"undefined")}:function(a,b){return K.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=G.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(G.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(G.call(arguments)))};return d}),C.flexbox=function(){return j("flexWrap")},C.flexboxlegacy=function(){return j("boxDirection")},C.canvas=function(){var a=b.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))},C.canvastext=function(){return!(!o.canvas||!f(b.createElement("canvas").getContext("2d").fillText,"function"))},C.webgl=function(){return!!a.WebGLRenderingContext},C.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:H(["@media (",x.join("touch-enabled),("),r,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=9===a.offsetTop}),c},C.geolocation=function(){return"geolocation"in navigator},C.postmessage=function(){return!!a.postMessage},C.websqldatabase=function(){return!!a.openDatabase},C.indexedDB=function(){return!!j("indexedDB",a)},C.hashchange=function(){return J("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},C.history=function(){return!(!a.history||!history.pushState)},C.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},C.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},C.rgba=function(){return d("background-color:rgba(150,255,150,.5)"),g(t.backgroundColor,"rgba")},C.hsla=function(){return d("background-color:hsla(120,40%,100%,.5)"),g(t.backgroundColor,"rgba")||g(t.backgroundColor,"hsla")},C.multiplebgs=function(){return d("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(t.background)},C.backgroundsize=function(){return j("backgroundSize")},C.borderimage=function(){return j("borderImage")},C.borderradius=function(){return j("borderRadius")},C.boxshadow=function(){return j("boxShadow")},C.textshadow=function(){return""===b.createElement("div").style.textShadow},C.opacity=function(){return e("opacity:.55"),/^0.55$/.test(t.opacity)},C.cssanimations=function(){return j("animationName")},C.csscolumns=function(){return j("columnCount")},C.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return d((a+"-webkit- ".split(" ").join(b+a)+x.join(c+a)).slice(0,-a.length)),g(t.backgroundImage,"gradient")},C.cssreflections=function(){return j("boxReflect")},C.csstransforms=function(){return!!j("transform")},C.csstransforms3d=function(){var a=!!j("perspective");return a&&"webkitPerspective"in q.style&&H("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=9===b.offsetLeft&&3===b.offsetHeight}),a},C.csstransitions=function(){return j("transition")},C.fontface=function(){var a;return H('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&0===g.indexOf(d.split(" ")[0])}),a},C.generatedcontent=function(){var a;return H(["#",r,"{font:0/0 a}#",r,':after{content:"',v,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},C.video=function(){var a=b.createElement("video"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(d){}return c},C.audio=function(){var a=b.createElement("audio"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(d){}return c},C.localstorage=function(){try{return localStorage.setItem(r,r),localStorage.removeItem(r),!0}catch(a){return!1}},C.sessionstorage=function(){try{return sessionStorage.setItem(r,r),sessionStorage.removeItem(r),!0}catch(a){return!1}},C.webworkers=function(){return!!a.Worker},C.applicationcache=function(){return!!a.applicationCache},C.svg=function(){return!!b.createElementNS&&!!b.createElementNS(B.svg,"svg").createSVGRect},C.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="",(a.firstChild&&a.firstChild.namespaceURI)==B.svg},C.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(w.call(b.createElementNS(B.svg,"animate")))},C.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(w.call(b.createElementNS(B.svg,"clipPath")))};for(var L in C)m(C,L)&&(l=L.toLowerCase(),o[l]=C[L](),F.push((o[l]?"":"no-")+l));return o.input||k(),o.addTest=function(a,b){if("object"==typeof a)for(var d in a)m(a,d)&&o.addTest(d,a[d]);else{if(a=a.toLowerCase(),o[a]!==c)return o;b="function"==typeof b?b():b,"undefined"!=typeof p&&p&&(q.className+=" "+(b?"":"no-")+a),o[a]=b}return o},d(""),s=u=null,function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=s.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=r[a[p]];return b||(b={},q++,a[p]=q,r[q]=b),b}function f(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():o.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||n.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;g",j="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){j=!0,k=!0}}();var s={elements:m.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:l,shivCSS:m.shivCSS!==!1,supportsUnknownElements:k,shivMethods:m.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=s,i(b)}(this,b),o._version=n,o._prefixes=x,o._domPrefixes=A,o._cssomPrefixes=z,o.mq=I,o.hasEvent=J,o.testProp=function(a){return h([a])},o.testAllProps=j,o.testStyles=H,o.prefixed=function(a,b,c){return b?j(a,b,c):j(a,"pfx")},q.className=q.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(p?" js "+F.join(" "):""),o}(this,this.document);!function(){Modernizr.addTest("is-ie",function(){if(void 0!==navigator&&void 0!==navigator.userAgent){var a=navigator.userAgent.toLowerCase();if(a.indexOf("msie")>-1||a.indexOf("trident")>-1)return!0}})}();var docCookies={getItem:function(a){return a?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(a).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},setItem:function(a,b,c,d,e,f){if(!a||/^(?:expires|max\-age|path|domain|secure)$/i.test(a))return!1;var g="";if(c)switch(c.constructor){case Number:g=c===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+c;break;case String:g="; expires="+c;break;case Date:g="; expires="+c.toUTCString()}return document.cookie=encodeURIComponent(a)+"="+encodeURIComponent(b)+g+(e?"; domain="+e:"")+(d?"; path="+d:"")+(f?"; secure":""),!0},removeItem:function(a,b,c){return!!this.hasItem(a)&&(document.cookie=encodeURIComponent(a)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(c?"; domain="+c:"")+(b?"; path="+b:""),!0)},hasItem:function(a){return!!a&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(a).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){for(var a=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),b=a.length,c=0;c0){"?"===a[0]&&(a=a.substring(1)),a=a.split("&");for(var c=0,d=a.length;c=0?(e=g.substr(0,h),f=g.substr(h+1)):(e=g,f=""),f=decodeURIComponent(f),void 0===b[e]?b[e]=f:b[e]instanceof Array?b[e].push(f):b[e]=[b[e],f]}}return b},stringify:function(a){var b=[];if(a&&a.constructor===Object)for(var c in a)if(a[c]instanceof Array)for(var d=0,e=a[c].length;d=c?a.apply(null,b):function(){return d.apply(null,b.concat(Array.prototype.slice.call(arguments)))}}}function f(a,b){var c;for(c in b)b[c]&&b[c].constructor&&b[c].constructor===Object?(a[c]=a[c]||{},f(a[c],b[c])):a[c]=b[c];return a}function g(a){var b=Array.prototype.slice.call(arguments,1);return b.reduce(function(a,b){return"undefined"!=typeof a?null===a?void 0:a[b]:a},a)}function h(){var a=window.location.hostname;return a.substring(a.lastIndexOf(".",a.lastIndexOf(".")-1)+1)}function i(a){var b=querystring.parse(a);return o(b,function(a,b){a[b]instanceof Array&&(a[b]=a[b][0])}),b}function j(){return[window.location.protocol,"//",window.location.host].join("")}function k(){return["/static/",A()].join("")}function l(){var a,b,c,d=window.breakpoints,e=!1;for(b in d)"undefined"!=typeof d[b].arg&&(c=d[b].altKey||b,a=["(",d[b].arg,": ",d[c].width,")"].join(""),window.matchMedia(a).matches&&(e=b));return e}function m(a){return a}function n(a){var b;return b=a.indexOf("://")>-1?a.split("/")[2]:a.split("/")[0],b=b.split(":")[0],b.indexOf(h())>-1}function o(a,b){var c;for(c in a)a.hasOwnProperty(c)&&b(a,c)}function p(a,b){var c,d=document.createElement("script");d.type="text/javascript";for(c in a)d.setAttribute(c,a[c]);b&&Mntl.utilities.scriptOnLoad(d,b),document.getElementsByTagName("head")[0].appendChild(d)}function q(a,b,c){var d=b||m,e=c||m;return Object.keys(a).reduce(function(b,c){return b[d(c)]=e(a[c]),b},{})}function r(a,b){var c,d=b||{};try{c=new MouseEvent(a,d),c.detail=d.detail||{}}catch(e){c=document.createEvent("MouseEvent"),c.initMouseEvent(a,d.bubbles||!1,d.cancelable||!1,window,d.detail||{},0,0,0,0,!1,!1,!1,!1,0,null)}return c}function s(a){return H(arguments,1).reduce(function(a,b){return Object.keys(b).forEach(function(c){a[c]=b[c]}),a},a)}function t(a){var b=!1;return function(){return b?void 0:(b=!0,a.apply(this,arguments))}}function u(a,b){function c(){var b=document.fonts.status,c="loaded"===b||"error"===b;(c||Date.now()>e)&&(clearInterval(d),window.debug.log(b),a())}var d,e=Date.now()+(b||3e3);document.fonts?d=setInterval(c,200):(window.debug.log("onFontLoad browser unsupported"),a())}function v(a,b){"complete"===document.readyState&&a(),window.addEventListener("load",a,b||!1)}function w(a){var b=835,c=500,d="yes",e=screen.width/2-b/2,f=screen.height/2-c/2;return window.open(a,"shareWindow","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars="+d+", resizable=yes, copyhistory=no, width="+b+", height="+c+", top="+f+", left="+e)}function x(a){var b=window.getComputedStyle(a);return Math.ceil(["height","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth","marginTop","marginBottom"].reduce(function(a,c){return a+parseFloat(b[c])},0))}function y(){var a=H(arguments),b=a.reduce(function(a,b){return a&&"function"==typeof b},!0);if(!b)throw new TypeError("All arguments provided to Mntl.utilities.pipe must be functions");return function(b){return a.reduce(function(a,b){return b(a)},b)}}function z(a){return function(b){dataLayer.push(s({},a,b))}}function A(a){var b=(a?"data-"+a+"-":"data-")+"resource-version";return document.querySelector("HTML").getAttribute(b)}function B(a){var b;try{b=JSON.parse(a)}catch(c){b=null}return b}function C(a,b,c){return c=c||[],a||b?(a.readyState?a.onreadystatechange=function(){"scriptAvailable"!==a.readyState&&"complete"!==a.readyState&&"loaded"!==a.readyState||(a.onreadystatechange=null,b.apply(a,c))}:a.onload=function(){b.apply(a,c)},!1):(window.debug.error("Mntl.utilities.scriptOnLoad() needs script and callback arguments"),!1)}function D(a,b,c){var d,f;return!!a.length&&(d=e(C,2),f=Array.prototype.map.call(a,function(a){return d(a)}),J(f,function(){b.apply(a,c||[])}),!0)}function E(a,b){var c;for(c in a)try{b.dataset[c]=a[c]}catch(d){window.debug.error("Mntl.utilities.setDataAttrs: "+c+" is a bad key. Pass keys in camelCase")}}function F(a,b,c){"className"===a?c.className=b:c.setAttribute(a,b)}function G(a,b){Object.keys(b).forEach(function(c){F(c,b[c],a)})}function H(a,b){var c=b||0;return Array.prototype.slice.call(a,c)}function I(a){return a?a.trim().replace(/\n/g," "):""}function J(a,b){var c=a.length;a.forEach(function(a){a(function(){0===--c&&b()})})}!function(){function a(){}var b;window.debug||(Mntl.DEBUG=location.search.indexOf("jsdebug=true")!==-1,Mntl.DEBUG&&window.console?(b=location.search.indexOf("ie8=true")!==-1,b?window.debug={log:window.console.log("Mntl: %s")}:window.debug={log:window.console.log.bind(window.console,"Mntl: %s"),error:window.console.error.bind(window.console,"Mntl: error: %s"),info:window.console.info.bind(window.console,"Mntl: info: %s"),warn:window.console.warn.bind(window.console,"Mntl: warn: %s")}):window.debug={log:a,error:a,info:a,warn:a},window.debug.info("debug loaded from Mantle utilities.js"))}();var K=e(function(a,b){var c=b.dataset?b.dataset[a]:b.getAttribute(["data-",a.replace(/([A-Z])/g,function(a){return["-",a.toLowerCase()].join("")})].join(""));return"undefined"==typeof c?c:"null"===c?null:null===B(c)?c:B(c)});return v(function(){document.documentElement.classList.add("is-window-loaded"),window.ElementQueries&&!window.ElementQueries.instance&&window.ElementQueries.init()}),{all:J,closest:a,createEl:c,closestPreviousSibling:b,customEvent:d,curry:e,deepExtend:f,getData:K,getDeepValue:g,getDomain:h,getQueryParams:i,getResourceRootUrl:j,getStaticPath:k,getW:l,isCurrentDomain:n,iterate:o,loadExternalJS:p,mapObject:q,mouseEvent:r,objectAssign:s,once:t,onFontLoad:u,onLoad:v,openWindow:w,outerHeight:x,pipe:y,pushToDataLayer:z,resourceVersion:A,safeJsonParse:B,scriptOnLoad:C,scriptsOnLoad:D,setDataAttrs:E,setProp:F,setProps:G,toArray:H,trimAllWhitespace:I}}();var Tech=window.Tech||{},Mntl=window.Mntl||{},dataLayer=window.dataLayer||[];Tech.utilities=function(){function a(){var a="";return window.matchMedia("(max-width: "+Tech.breakpoints.bpSmall2+")").matches&&(a="small"),window.matchMedia("(min-width: "+Tech.breakpoints.bpSmall2+")").matches&&(a="small2"),window.matchMedia("(min-width: "+Tech.breakpoints.bpMed+")").matches&&(a="med"),window.matchMedia("(min-width: "+Tech.breakpoints.bpMed2+")").matches&&(a="med2"),window.matchMedia("(min-width: "+Tech.breakpoints.bpLarge+")").matches&&(a="large"),window.matchMedia("(min-width: "+Tech.breakpoints.bpXl+")").matches&&(a="xl"),a}function b(a,b){var c,d,e;for(c=0;cb.targeting.priority?1:b.targeting.priority>a.targeting.priority?-1:0:0}),window.debug.log("Sorted slots:",b),window.debug.log("Filtering slots..."),d=0,e=b.length;d0)for(b=0,c=g.fn.length;b-1?(b=a.replace("*","(?:(?:.+)|^|$)"),d(b),Mntl.utilities.iterate(D,function(a,d){e=d.match(new RegExp(b)),null!==e&&e.length&&c(d)})):(D.hasOwnProperty(a)||k(D,a),c(a))})}function u(){return G.isMobile}function v(a){var b,c=[];for(b in a)c.push(b+"="+encodeURIComponent(a[b]));return encodeURIComponent(c.join("&"))}function w(){return v(G.pageTargeting)}function x(){return v(G.baseSlotTargeting)}function y(){return G.singleRequest}function z(){return G.utils}function A(){return G.dfpId}function B(a){var c,d,e,f=[];for(G=Mntl.utilities.deepExtend(G,a),window.debug.log("Mntl.GPT initialized with config",G),document.domain=G.domain,googletag.cmd.push(function(){Mntl.utilities.iterate(G.pageTargeting,function(a,b){j(a[b])&&(window.debug.log("Setting page targeting key "+b+" to "+a[b].toString()),googletag.pubads().setTargeting(b,a[b].toString()))})}),d=0,e=G.initialSlots.length;d0})}},lotame:function(){var a={};return{preload:function(){return!1},src:function(){var a=".crwdcntrl.net",b=window.docCookies.getItem("_cc_id");return"//ad"+a+"/5/c="+this.id+"/pe=y/var=ccauds"+(b?"/pid="+b:"")},setup:function(b,c){return window.ccauds?(Object.keys(a).length||(a={ccaud:window.ccauds.Profile.Audiences.Audience.map(function(a){return a.abbr}),lpid:window.ccauds.Profile.pid}),debug.log("Mntl.RTB.lotame.setup: adding: ",a," to ",b),b.forEach(function(b){b.updateTargeting(a)}),r.publish("onAfterSetup",{instigator:"lotame"}),c(),!0):(debug.log("Mntl.RTB.lotame.setup: Expected global `ccauds` not found in window"),c(),!1)}}}(),lotameCollection:function(){var a=!1;return{preload:function(){this.scriptId="LOTCC_"+this.id},src:function(){return"//tags.crwdcntrl.net/c/"+this.id+"/cc.js?ns=_cc"+this.id},setup:function(b,c){var d;return a?(r.publish("onAfterSetup",{instigator:"lotameCollection"}),void c()):(d="_cc"+this.id,window[d]&&window[d].bcp(),a=!0,r.publish("onAfterSetup",{instigator:"lotameCollection"}),void c())}}}(),ias:{preload:function(){return!1},src:function(){return"//cdn.adsafeprotected.com/iasPET.1.js"},setup:function(a,b){var c=window.__iasPET||{},d=this.parseSlots(a),e=this.handleResponse.bind(this,a,b);window.__iasPET&&(c.queue=c.queue||[],c.pubId=this.id,debug.log("Mntl.RTB.ias: initialized with ",d),window.__iasPET.queue.push({adSlots:d,dataHandler:e,pubId:this.id,timeout:u[1]}))},parseSlots:function(a){return a.map(function(a){return{adSlotId:a.config.id,size:a.config.sizes.filter(Array.isArray),adUnitPath:a.gptSlot.getAdUnitPath()}})},handleResponse:function(a,b,c){var d=Mntl.utilities.safeJsonParse(c)||{},e=d.slots?Object.keys(d.slots):[];debug.log("Mntl.RTB.ias: demand returned ",c),e.length&&a.forEach(function(a){e.indexOf(a.config.id)>-1&&a.updateTargeting(Mntl.utilities.objectAssign({fr:d.fr},d.brandSafety,Mntl.utilities.mapObject(d.slots[a.config.id],function(a){return"id"===a?"iasid":a})))}),r.publish("onAfterSetup",{instigator:"ias"}),b()}}},o=b.once(function(){function c(c){t[1].push(c),0===--e&&(clearTimeout(d),t[0]=!0,p.go(),debug.log("Mntl.RTB: triggering RTBPluginsLoaded event"),a.dispatchEvent(b.customEvent("RTBPluginsLoaded",{bubbles:!0})))}var d,e=s.size;s.keys.forEach(function(d){var e=s[d].src();s[d].preload(),e?(r.publish("onBeforeLoad",{instigator:s[d].type}),debug.log("Mntl.RTB.Plugins.",s[d].type," load start",Date.now()),Mntl.utilities.loadExternalJS({id:s[d].scriptId||null,async:!0,src:e},function(){r.publish("onAfterLoad",{instigator:s[d].type}),debug.log("Mntl.RTB.Plugins.",s[d].type," loaded",Date.now()),a.dispatchEvent(b.customEvent("RTBPluginLoad:"+s[d].type,{bubbles:!0})),c(s[d].type)})):(debug.log("Mntl.RTB.Plugins.",s[d].type," loaded(no src)",Date.now()),c(s[d].type))}),debug.log("Mntl.RTB.Plugins: library load timeout",u[0],Date.now()),d=setTimeout(function(){clearTimeout(d),t[0]=!0,p.go()},u[0])}),p={_queue:[],push:function(a){this._queue.push(a),this.go()},go:function(){var a;t[0]&&this._queue.length>0&&(a=this._queue.shift(),debug.log("Mntl.RTB: requesting bids ",t[1]," for ",a.gptSlots,Date.now()),s.keys.forEach(function(b){debug.log("Mntl.RTB.Plugins.",s[b].type,".setup (",a.caller,")",s[b],Date.now()),r.publish("onBeforeSetup",{instigator:s[b].type}),s[b].setup.call(s[b],a.gptSlots,c(a))}),debug.log("Mntl.RTB:",a.caller," RTB wait for ",u[1],Date.now()),a.timeout=window.setTimeout(c(a,!0),u[1]))}},e.prototype.reset=function(){this.count=0,clearTimeout(this.timeout)},e.prototype.decrementCount=function(){this.count=this.count-1},b.onLoad(function(){s.size&&o()}),{init:g,initBidders:f,refresh:h,Plugins:q,subscribe:r.subscribe.bind(r),getTimeoutLength:i,setTimeoutLength:j,setRtbConfig:k,setAmazonSection:l,setAmazonSlotName:m,setGDPR:n}}(window.document,window.Mntl.utilities||{});var Mntl=window.Mntl||{};Mntl.RTBTracking=function(){"use strict";function a(a){var b=/load$/i.test(a.type)?"lib":"bid",c=/before/i.test(a.type)?0:1;f.eventLabel[a.instigator][b][c]=Date.now(),0===--d&&(f.eventLabel=JSON.stringify(f.eventLabel),dataLayer.push(f))}function b(a){a.detail.slots.indexOf("leaderboard")>-1&&0!==d&&(document.removeEventListener("RTBSlotsBidded",b),d=-1,dataLayer.push(f))}function c(c){d=c.length*e.length,c.forEach(function(b){f.eventLabel[b]={lib:[-1,-1],bid:[-1,-1]},e.forEach(function(c){Mntl.RTB.subscribe(c,b,a,"once")})}),document.addEventListener("RTBSlotsBidded",b)}var d,e=["onBeforeLoad","onAfterLoad","onBeforeSetup","onAfterSetup"],f={event:"analyticsEvent",eventCategory:"Ad Timing Metrics",eventAction:"Load",eventLabel:{},nonInteraction:!0};return{init:c}}();var Mntl=window.Mntl||{};Mntl.Maybe=function(){function a(a){this._v=a}return a.of=function(b){return new a(b)},a.prototype.isNothing=function(){return null===this._v||"undefined"==typeof this._v},a.prototype.map=function(b){return this.isNothing()?a.of(null):a.of(b(this._v))},a.prototype.flatMap=function(a){return this.isNothing()?null:a(this._v)},a.prototype.orElse=function(a){return this.isNothing()?a:this._v},a}();var Tech=window.Tech||{},Mntl=window.Mntl||{};Tech.GPT=function(){function a(a){var b=document.documentElement.getAttribute("data-ab");b=b?b.split(","):[],docCookies.setItem("ds_ab",JSON.stringify(b),0,"/",".lifewire.com"),a.ab=b,a.bts=b}function b(a){return 0===a.chapter&&a.index>=0?a.id:a.type+"-"+a.chapter+"-"+a.index+"-d"}function c(a,b){var c="/479/lifewire"+(Mntl.GPT.isMobile()?".mob":""),d="/",e=a.id.indexOf("dynamic-inline")>=0?"/dynamic-inline":a.id?"/"+a.id:"",f=b.tax2?b.tax2:b.tax1?b.tax1:"lw_homepage";return c+d+f+e}function d(a){var b,c,d;null!==a.size&&1!==a.size[0]&&1!==a.size[1]||(a.id.indexOf("leaderboard")!==-1?b="leaderboard":a.id.indexOf("billboard")!==-1&&(b="billboard"),c=document.getElementById(a.id),d=Tech.utilities.closest(c,"."+b),d.className+=" collapsed")}function e(a){var b,c,d,e,f,g,h=0,i=window.matchMedia("(min-width: "+Tech.breakpoints.bpMed2+")");null!==a.size&&1!==a.size[0]&&1!==a.size[1]&&(b=document.getElementById(a.id).parentNode,c=Tech.utilities.closest(b,".article"),null!==c?(f=c.querySelector(".article-content"),d=c.querySelector(".article-meta"),null!==d&&(h=Tech.utilities.outerHeight(d)),e=c.querySelector(".figure-article"),null!==e&&(e.classList.contains("figure-landscape")||e.classList.contains("video-player"))&&(h+=Tech.utilities.outerHeight(e))):f=document.querySelector(".bio-content-inner"),null!==f&&i.matches&&(g=Tech.utilities.outerHeight(b),g>f.offsetHeight+h&&(f.style.minHeight=g-h+"px")))}return Mntl.GPT.registerCallback(["leaderboard*","billboard*"],d),Mntl.GPT.registerCallback(["billboard"],e),{testIds:a,generateSlotId:b,buildGptUrl:c,collapseAd:d,extendPageLength:e}}();var Mntl=window.Mntl||{},dataLayer=window.dataLayer||[];Mntl.PageView=function(a){function b(a){var b=a;return Mntl.utilities.iterate(a,function(a,c){typeof g[c]==typeof a[c]||""===a[c]||""===g[c]&&"number"==typeof a[c]||("string"==typeof g[c]&&(b[c]+=""),"number"==typeof g[c]&&(b[c]=parseInt(a[c],10)))}),b}function c(a){Object.keys(g).forEach(function(b){a.hasOwnProperty(b)&&(g[b]=a[b])})}function d(a){return i?(a&&c(b(a)),dataLayer.push(Mntl.utilities.deepExtend({},g))):(debug.warn("Mntl.PageView not initialized with default values. Cannot push data."),!1)}function e(b){a.setItem("pageEntryType",b,null,"/",h)}function f(a){return!i&&(g=Mntl.utilities.deepExtend(g,a),i=!0,dataLayer.push(Mntl.utilities.deepExtend({},g)))}var g={event:"unifiedPageview"},h=window.location.href.substring(window.location.href.indexOf("."),window.location.href.indexOf(".com"))+".com",i=!1;return Mntl.utilities.onLoad(function(){a.removeItem("pageEntryType","/",h)}),{pushToDataLayer:d,setEntryType:e,init:f}}(window.docCookies);var Mntl=window.Mntl||{},dataLayer=window.dataLayer||[];!function(a,b){function c(a){return a.getAttribute("id")}function d(a){return a.dataset.ordinal||""}function e(a){var b="";return"true"===a.dataset.trackingContainer&&(b=a.dataset.trackingId||a.getAttribute("id")),b}function f(a,b){var c=[window.location.protocol,"//",window.location.hostname].join("");return!(0===b.indexOf(c)&&!/blank/.test(a.getAttribute("target")))}function g(a,b){var c=b;return Array.prototype.forEach.call(a.attributes,function(a){var b,d;0===a.name.indexOf("data-")&&(b=a.value,d=a.name.replace(/-([a-z])/g,function(a){return a[1].toUpperCase()}),c[d]=b)}),c}function h(a,b){return a.getAttribute(b)||""}function i(a){var b=h(a,"href");return 0===b.indexOf("//")?b=window.location.protocol+b:0===b.indexOf("/")&&(b=window.location.protocol+"//"+window.location.host+b),b}function j(a){return b.of(a.querySelector(a.dataset.useChildUrl)).map(i).orElse("")}function k(a,b){return b.target===a||""===Mntl.utilities.trimAllWhitespace(b.target.innerText)&&""===Mntl.utilities.trimAllWhitespace(b.target.textContent)?a?Mntl.utilities.trimAllWhitespace(a.innerText||a.textContent||""):"":Mntl.utilities.trimAllWhitespace(b.target.innerText||b.target.textContent)}Mntl.clickTracking={getPixelsFromContent:function(a){var b,c=document.querySelector("main")||document.getElementById("main");return c?(b=Mntl.clickTracking.getAbsoluteCoordinates(c),b.top=window.scrollY,{top:a.top-b.top,left:a.left-b.left}):{top:"",left:""}},getAbsoluteCoordinates:function(a){var b=a.getBoundingClientRect(),c=window.scrollY,d=window.scrollX;return{left:b.left+d,top:b.top+c}},trackClick:function(a,b,c,d,e){var f={event:"linkClick",linkId:h(b,"id"),linkText:k(b,a),pageWidth:document.body.clientWidth,pageHeight:document.body.clientHeight},l=Mntl.clickTracking.getAbsoluteCoordinates(b),m=Mntl.clickTracking.getPixelsFromContent(l);return"#"===b.getAttribute("href")?(f.linkTargetURL="#",f.linkTargetType="onpage"):b.dataset.useChildUrl?(f.linkTargetURL=j(b),f.linkTargetType=""!==f.linkTargetURL?"offpage":""):"button"===b.nodeName.toLowerCase()||"true"===b.getAttribute("data-click-tracked")?(f.linkTargetURL="",f.linkTargetType=""):(f.linkTargetURL=i(b),f.linkTargetType="offpage"),f.dataOrdinal=c,f.linkContainerId=d,f.domAncestorIds=e.reverse(),f.pixelsFromTopOfPage=l.top,f.pixelsFromLeftOfPage=l.left,f.pixelsFromTopOfMainContainer=m.top,f.pixelsFromLeftOfMainContainer=m.left,f=g(b,f),Mntl.clickTracking.fireEvent(f,a,b)},searchDom:function(a){function b(a){return"false"===a.dataset.clickTracked}function f(a){return!b(a)&&(a.hasAttribute&&(""===l&&(l=d(a)),""===m&&(m=e(a)),a.hasAttribute("id")&&k.push(c(a)),"A"!==a.nodeName&&"BUTTON"!==a.nodeName&&"true"!==a.getAttribute("data-click-tracked")||null!==j||(j=a)),!0)}var g,h=a.path||null,i=a.target,j=null,k=[],l="",m="";if(a.target.wasTracked)return!0;if(Modernizr.touchevents&&Mntl.clickTracking.dragging===!0)return!0;if(b(i))return!1;if(h&&h.length>2){for(g=0;g-1}function e(a){a.filter(d).length>0&&(h.length?f=h[0].getBoundingClientRect().top+window.pageYOffset-(window.innerHeight+c):(f=!1,g.disconnect()))}var f,g,h=document.getElementsByClassName(n),i={attributes:!0,attributeOldValue:!0,subtree:!0,attributeFilter:["class"]};return null===b?window.debug.error("Failed attempt to use Mntl.SCAds. .mntl-sc-page element required."):(g=new MutationObserver(e),g.observe(b,i),{first:function(b){return b?a.toArray(h).slice(0,b):h[0]?[h[0]]:[]},getTopOffset:function(){return f}})}function f(a){var b=a.getElementsByClassName("mntl-sc-block-adslot");return b.length?b:null}function g(a){return c.of(a.getElementsByClassName("js-scads-inline-content")[0]).map(function(a){return a.children}).flatMap(function(a){return a.length?a:null})}function h(a){return a.reduce(function(a,c){return c.classList.remove(n),a.concat(Array.prototype.map.call(c.querySelectorAll(".mntl-gpt-adunit .wrapper[data-sizes]"),function(a){return(new b.Slot).byElement(a)}))},[])}function i(a){var b=a.getElementsByClassName("scads-to-load");return b.length?b:null}function j(a,b,d,e,f){var g,h;if([a,b,d].indexOf(null)>-1)return window.debug.error("Failed attempt to use Mntl.SCAds.");for(;b.length&&a.length&&d.length;)g=b.shift(),q(g.offsetTop,a[0])&&(a.shift(),h=c.of(i(d[0])),e&&(h=h.map(function(a){return Array.prototype.filter.call(a,function(a){return!a.classList.contains("right-rail__item")||f.set(a)})})),g.insertAdjacentElement("afterbegin",d[0]),h.flatMap(function(a){Array.prototype.forEach.call(a,function(a){a.classList.add(p),a.classList.add(n)})}));return!0}function k(a,b){var c=b(),d=document.getElementsByClassName(p),e=Mntl.utilities.customEvent("mntl.rightrail.lock");return function(){c&&!b()?(c=!1,Array.prototype.forEach.call(d,function(a){a.style.top="auto",a.classList.remove("is-hidden")})):!c&&b()&&(c=!0,a.reset(),Array.prototype.forEach.call(d,function(b){b.classList.contains("right-rail__item")&&a.set(b)}),document.body.dispatchEvent(e))}}function l(a){a.getTopOffset()||$(window).off("mntl.scroll",l),window.pageYOffset>a.getTopOffset()&&m(a.first())}var m,n="scads-ad-placed-slot-unloaded",o="scads-stick-in-parent",p="scads-ad-placed",q=function(){function a(a,b){return a>=b-50}function b(b,c){return b>=c&&(q=a,!0)}return b}();m=a.pipe(h,b.displaySlots),a.onLoad(function(){var b=c.of(document.getElementsByClassName("mntl-sc-page")[0]),h=d(b.map(a.getData("scMinTrackHeight")).orElse(250),b.map(a.getData("scMaxTrackHeight")).orElse(0),b.map(a.getData("scAdTrackSpacing")).orElse(100),b.map(a.getData("scAdLabelHeight")).orElse(0)),i=e(b.orElse(null),b.map(a.getData("scOffset")).orElse(200)),n=function(a){return function(){return window.matchMedia(["(min-width: ",a,")"].join("")).matches}}(b.flatMap(a.getData("scBreakpoint")));j(b.flatMap(a.getData("scContentPositions")),b.map(f).flatMap(a.toArray),b.flatMap(g),n(),h),m(i.first(b.map(a.getData("scLoadImmediate")).orElse(!1))),b.map(a.getData("bindScrollOnStart")).orElse(!1)?$(window).on("mntl.scroll",l.bind(null,i)):window.addEventListener("mntl.scads.scrollon",function(){$(window).on("mntl.scroll",l.bind(null,i))},{once:!0}),document.body.addEventListener("mntl.scads.get",function(b){m(i.first(Number(a.getDeepValue(b,"data","getScads"))||0))}),window.addEventListener("resize",Mntl.throttle(k(h,n),50))})}(window.Mntl.utilities||{},window.Mntl.GPT||{},window.Mntl.Maybe||{});