var Yu=Object.defineProperty,Ju=Object.defineProperties;var Ku=Object.getOwnPropertyDescriptors;var ia=Object.getOwnPropertySymbols;var Qu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable;var oa=(ue,te,X)=>te in ue?Yu(ue,te,{enumerable:!0,configurable:!0,writable:!0,value:X}):ue[te]=X,K=(ue,te)=>{for(var X in te||(te={}))Qu.call(te,X)&&oa(ue,X,te[X]);if(ia)for(var X of ia(te))Xu.call(te,X)&&oa(ue,X,te[X]);return ue},lr=(ue,te)=>Ju(ue,Ku(te));var ne=(ue,te,X)=>new Promise((W,It)=>{var Ct=ye=>{try{ht(X.next(ye))}catch(U){It(U)}},hn=ye=>{try{ht(X.throw(ye))}catch(U){It(U)}},ht=ye=>ye.done?W(ye.value):Promise.resolve(ye.value).then(Ct,hn);ht((X=X.apply(ue,te)).next())});(function(){"use strict";var Jo,Ko,Qo,Xo,Zo,ea,ta,na,ra;const ue="modulepreload",te=function(e){return"/"+e},X={},W=function(t,n,r){let i=Promise.resolve();function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};function It(e,t,n){return(t=ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ct(Object(n),!0).forEach(function(r){It(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ht(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ye(e){var t=ht(e,"string");return typeof t=="symbol"?t:t+""}function U(e){"@babel/helpers - typeof";return U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(e)}var Pt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function aa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function sa(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var ca={exports:{}};(function(e){var t=function(n){var r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(w,m,S){w[m]=S.value},a,s=typeof Symbol=="function"?Symbol:{},c=s.iterator||"@@iterator",d=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function u(w,m,S){return Object.defineProperty(w,m,{value:S,enumerable:!0,configurable:!0,writable:!0}),w[m]}try{u({},"")}catch(w){u=function(S,I,R){return S[I]=R}}function h(w,m,S,I){var R=m&&m.prototype instanceof H?m:H,C=Object.create(R.prototype),G=new J(I||[]);return o(C,"_invoke",{value:M(w,S,G)}),C}n.wrap=h;function f(w,m,S){try{return{type:"normal",arg:w.call(m,S)}}catch(I){return{type:"throw",arg:I}}}var F="suspendedStart",B="suspendedYield",z="executing",N="completed",P={};function H(){}function Q(){}function $(){}var p={};u(p,c,function(){return this});var L=Object.getPrototypeOf,k=L&&L(L(Y([])));k&&k!==r&&i.call(k,c)&&(p=k);var _=$.prototype=H.prototype=Object.create(p);Q.prototype=$,o(_,"constructor",{value:$,configurable:!0}),o($,"constructor",{value:Q,configurable:!0}),Q.displayName=u($,l,"GeneratorFunction");function A(w){["next","throw","return"].forEach(function(m){u(w,m,function(S){return this._invoke(m,S)})})}n.isGeneratorFunction=function(w){var m=typeof w=="function"&&w.constructor;return m?m===Q||(m.displayName||m.name)==="GeneratorFunction":!1},n.mark=function(w){return Object.setPrototypeOf?Object.setPrototypeOf(w,$):(w.__proto__=$,u(w,l,"GeneratorFunction")),w.prototype=Object.create(_),w},n.awrap=function(w){return{__await:w}};function y(w,m){function S(C,G,se,le){var de=f(w[C],w,G);if(de.type==="throw")le(de.arg);else{var ft=de.arg,Ft=ft.value;return Ft&&U(Ft)==="object"&&i.call(Ft,"__await")?m.resolve(Ft.__await).then(function(Ge){S("next",Ge,se,le)},function(Ge){S("throw",Ge,se,le)}):m.resolve(Ft).then(function(Ge){ft.value=Ge,se(ft)},function(Ge){return S("throw",Ge,se,le)})}}var I;function R(C,G){function se(){return new m(function(le,de){S(C,G,le,de)})}return I=I?I.then(se,se):se()}o(this,"_invoke",{value:R})}A(y.prototype),u(y.prototype,d,function(){return this}),n.AsyncIterator=y,n.async=function(w,m,S,I,R){R===void 0&&(R=Promise);var C=new y(h(w,m,S,I),R);return n.isGeneratorFunction(m)?C:C.next().then(function(G){return G.done?G.value:C.next()})};function M(w,m,S){var I=F;return function(C,G){if(I===z)throw new Error("Generator is already running");if(I===N){if(C==="throw")throw G;return ae()}for(S.method=C,S.arg=G;;){var se=S.delegate;if(se){var le=O(se,S);if(le){if(le===P)continue;return le}}if(S.method==="next")S.sent=S._sent=S.arg;else if(S.method==="throw"){if(I===F)throw I=N,S.arg;S.dispatchException(S.arg)}else S.method==="return"&&S.abrupt("return",S.arg);I=z;var de=f(w,m,S);if(de.type==="normal"){if(I=S.done?N:B,de.arg===P)continue;return{value:de.arg,done:S.done}}else de.type==="throw"&&(I=N,S.method="throw",S.arg=de.arg)}}}function O(w,m){var S=m.method,I=w.iterator[S];if(I===a)return m.delegate=null,S==="throw"&&w.iterator.return&&(m.method="return",m.arg=a,O(w,m),m.method==="throw")||S!=="return"&&(m.method="throw",m.arg=new TypeError("The iterator does not provide a '"+S+"' method")),P;var R=f(I,w.iterator,m.arg);if(R.type==="throw")return m.method="throw",m.arg=R.arg,m.delegate=null,P;var C=R.arg;if(!C)return m.method="throw",m.arg=new TypeError("iterator result is not an object"),m.delegate=null,P;if(C.done)m[w.resultName]=C.value,m.next=w.nextLoc,m.method!=="return"&&(m.method="next",m.arg=a);else return C;return m.delegate=null,P}A(_),u(_,l,"Generator"),u(_,c,function(){return this}),u(_,"toString",function(){return"[object Generator]"});function j(w){var m={tryLoc:w[0]};1 in w&&(m.catchLoc=w[1]),2 in w&&(m.finallyLoc=w[2],m.afterLoc=w[3]),this.tryEntries.push(m)}function D(w){var m=w.completion||{};m.type="normal",delete m.arg,w.completion=m}function J(w){this.tryEntries=[{tryLoc:"root"}],w.forEach(j,this),this.reset(!0)}n.keys=function(w){var m=Object(w),S=[];for(var I in m)S.push(I);return S.reverse(),function R(){for(;S.length;){var C=S.pop();if(C in m)return R.value=C,R.done=!1,R}return R.done=!0,R}};function Y(w){if(w){var m=w[c];if(m)return m.call(w);if(typeof w.next=="function")return w;if(!isNaN(w.length)){var S=-1,I=function R(){for(;++S<w.length;)if(i.call(w,S))return R.value=w[S],R.done=!1,R;return R.value=a,R.done=!0,R};return I.next=I}}return{next:ae}}n.values=Y;function ae(){return{value:a,done:!0}}return J.prototype={constructor:J,reset:function(m){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(D),!m)for(var S in this)S.charAt(0)==="t"&&i.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=a)},stop:function(){this.done=!0;var m=this.tryEntries[0],S=m.completion;if(S.type==="throw")throw S.arg;return this.rval},dispatchException:function(m){if(this.done)throw m;var S=this;function I(de,ft){return G.type="throw",G.arg=m,S.next=de,ft&&(S.method="next",S.arg=a),!!ft}for(var R=this.tryEntries.length-1;R>=0;--R){var C=this.tryEntries[R],G=C.completion;if(C.tryLoc==="root")return I("end");if(C.tryLoc<=this.prev){var se=i.call(C,"catchLoc"),le=i.call(C,"finallyLoc");if(se&&le){if(this.prev<C.catchLoc)return I(C.catchLoc,!0);if(this.prev<C.finallyLoc)return I(C.finallyLoc)}else if(se){if(this.prev<C.catchLoc)return I(C.catchLoc,!0)}else if(le){if(this.prev<C.finallyLoc)return I(C.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(m,S){for(var I=this.tryEntries.length-1;I>=0;--I){var R=this.tryEntries[I];if(R.tryLoc<=this.prev&&i.call(R,"finallyLoc")&&this.prev<R.finallyLoc){var C=R;break}}C&&(m==="break"||m==="continue")&&C.tryLoc<=S&&S<=C.finallyLoc&&(C=null);var G=C?C.completion:{};return G.type=m,G.arg=S,C?(this.method="next",this.next=C.finallyLoc,P):this.complete(G)},complete:function(m,S){if(m.type==="throw")throw m.arg;return m.type==="break"||m.type==="continue"?this.next=m.arg:m.type==="return"?(this.rval=this.arg=m.arg,this.method="return",this.next="end"):m.type==="normal"&&S&&(this.next=S),P},finish:function(m){for(var S=this.tryEntries.length-1;S>=0;--S){var I=this.tryEntries[S];if(I.finallyLoc===m)return this.complete(I.completion,I.afterLoc),D(I),P}},catch:function(m){for(var S=this.tryEntries.length-1;S>=0;--S){var I=this.tryEntries[S];if(I.tryLoc===m){var R=I.completion;if(R.type==="throw"){var C=R.arg;D(I)}return C}}throw new Error("illegal catch attempt")},delegateYield:function(m,S,I){return this.delegate={iterator:Y(m),resultName:S,nextLoc:I},this.method==="next"&&(this.arg=a),P}},n}(e.exports);try{regeneratorRuntime=t}catch(n){(typeof globalThis=="undefined"?"undefined":U(globalThis))==="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(ca);const Rt=()=>window.document.documentElement.clientWidth||window.document.body.clientWidth||window.innerWidth,Ee=()=>Rt()<700,la=()=>{const e=Rt();return e>=700&&e<1e3},da=()=>Rt()>=1e3,Se=(e,t)=>{let n;function r(){const i=r,o=arguments,a=()=>{e.apply(i,o)};clearTimeout(n),n=window.setTimeout(a,t)}return r},Mt="reveal",re=document.getElementsByClassName("sub-menu");let Ye=0,pt=0,Dt=0,pn,Fe,mn;if(re.length>0){const e=re[0].parentElement;Dt=e!=null?e.offsetWidth:0,Fe=re[0]}const ua=e=>{Array.from(e).forEach(t=>{t.classList.remove(Mt)})},fa=(e,t)=>{Array.from(t).forEach(n=>{n!==e&&n.classList.add("hide")})},ha=e=>{Array.from(e).forEach(t=>{t.classList.remove("hide")})},pa=e=>{let t;Fe=document.createElement("li"),Fe.className="menu-item menu-item-hover-reveal has-submenu",Fe.innerHTML='More <i class="icon icon-arrow-down"></i>',t=document.createElement("ul"),t.className="sub-menu",Fe.appendChild(t),e.appendChild(Fe),Fe&&(Dt=Fe.offsetWidth)},ma=e=>{Array.from(e).forEach(t=>{t.addEventListener("click",wn)})},wn=e=>{if(!Ee())return;const t=document.getElementsByClassName("menu-item"),n=e.currentTarget;if(n.classList.contains("menu-level-1")&&n.classList.contains("has-submenu")&&!n.classList.contains(Mt)){e.preventDefault(),ua(t);const r=document.createElement("a");r.innerHTML='<i class="icon icon-arrow-left"></i> Back',r.setAttribute("class","btn menu-item-back-btn"),r.onclick=()=>{n.classList.remove(Mt),n.addEventListener("click",wn),ha(t),r.parentNode&&r.parentNode.removeChild(r)};const i=n.parentNode;i&&i.insertBefore(r,n),n.classList.add(Mt),n.removeEventListener("click",wn),fa(n,t)}},wa=e=>{if(Ee())return;let t;if(pn=re.length,re.length>1){for(pt=1;pt<re.length;pt++){t=Array.from(re[pt].getElementsByClassName("sub-menu-item")),t.forEach(i=>{re[0].appendChild(i)});const r=re[pt].parentElement;r!==null&&r.classList.add("more-hide"),pn--}const n=document.getElementsByClassName("sub-menu-title")[0];n&&(n.textContent="More")}else if(re.length===0)pa(e);else{const n=re[0].parentElement;n&&n.classList.remove("more-hide"),Dt=n!=null?n.offsetWidth:0}},va=e=>{if(Ee())return;const t=re[0].getElementsByClassName("sub-menu-item")[0];e.parentElement&&e.parentElement.classList.contains("nav-list")&&!e.classList.contains("has-submenu")&&re[0].insertBefore(e,t)},ba=e=>{const t=document.getElementsByClassName("nav-sub-set-container")[0],n=t?t.offsetWidth:0;return e.offsetWidth-n},dr=e=>{e.style.visibility="visible"},ur=(e,t,n)=>{if(Ye=0,re===null)return;mn=ba(e);let r=!1;pn!==1&&Array.from(t).forEach(i=>{Ye+=i.offsetWidth,Ye>mn&&r===!1&&(r=!0,wa(n))}),ga(mn,t)},ga=(e,t)=>{Ye=0;function n(r){Ye+=r.offsetWidth,r&&Ye>e-Dt?va(r):dr(r)}Array.from(t).forEach(r=>{n(r)}),setTimeout(()=>{[document.getElementsByClassName("menu-item-more")[0],document.getElementsByClassName("menu-item-hover-reveal")[0]].forEach(i=>{i&&dr(i)})},500)},ya=(e,t,n)=>{window.addEventListener("resize",Se(()=>{ur(e,t,n)},200))},Ea=()=>{const e=document.getElementsByClassName("menuitems")[0];if(!e)return;const t=e.getElementsByClassName("nav-list")[0];if(!t)return;const n=t.getElementsByClassName("menu-item");n&&(ma(n),Ee()||(ya(e,n,t),ur(e,n,t)),t.classList.add("component-loaded"))};window.reliableDOMContentLoaded.then(()=>{Ea()}).catch(e=>console.error("%c FTE ","background: #9306F9; color: #ffffff",e));const Sa=()=>{const e=/^(?:www\.|local\.)(.*)/.exec(window.location.hostname);return e?e[1]:null},_a=(e,t)=>{const{galleryRadios:n,galleryWrapper:r}=t;for(const i of n)i.onchange=()=>{Ta(r),document.dispatchEvent(e)}},xa=e=>{const{thumbs:t,thumbsWrapper:n,galleryRadios:r}=e;if(!t)return;const i=document.getElementsByClassName("thumbs-right")[0],o=document.getElementsByClassName("thumbs-left")[0];i.onclick=()=>{vn(-3,e)},o.onclick=()=>{vn(3,e)},n.addEventListener("click",a=>{a.preventDefault();const s=Ia(a,n);s!==null&&(_e(s,r),document.dispatchEvent(new Event("slidechanged")))}),document.addEventListener("slidechanged",()=>{Ca(e)})},La=e=>{document.onkeydown=t=>Aa(t,e)},Ta=e=>{Oa(e),ka()},Oa=e=>{const t=e.getBoundingClientRect(),n=document.body.getBoundingClientRect();t.top<0&&window.scrollTo(0,t.top-n.top)},_e=(e,t)=>{const n=t[e];n&&(n.checked=!0)},Je=e=>{let t=0,n=0;for(t=0;t<e.length;t+=1)if(e[t].checked===!0){n=t;break}return n},je=e=>e.length,ka=()=>{var t,n;const e=window.reduxStore.getState().analytics.freyrData;if((n=(t=window.vanilla.featureFlags)==null?void 0:t.freyr)!=null&&n.enabled&&e){const r=K({},e);window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"pageLoadEvent",eventObject:r})}},Aa=(e,t)=>{if(e.key=="39"){e.preventDefault();const n=Je(t)+1;n<je(t)?_e(n,t):n===je(t)&&_e(0,t)}if(e.key=="37"){e.preventDefault();const n=Je(t)-1;n>=0?_e(n,t):n<0&&_e(je(t)-1,t)}},Fa=({galleryBody:e,galleryRadios:t})=>{const n=document.createElement("span"),r=document.createElement("span");n.appendChild(document.createElement("span")),r.appendChild(document.createElement("span")),n.classList.add("image-left"),r.classList.add("image-right"),e.appendChild(n),e.appendChild(r),r.onclick=i=>{i.preventDefault();const o=Je(t)+1;o<je(t)?_e(o,t):o===je(t)&&_e(0,t)},n.onclick=i=>{i.preventDefault();const o=Je(t)-1;o>=0?_e(o,t):o<0&&_e(je(t)-1,t)}},Ia=(e,t)=>{if(!(e.target instanceof HTMLElement))return null;const n=e.target.closest("li");return n?[...t.children].indexOf(n):null},Ca=e=>{const{galleryRadios:t,thumbList:n}=e,r=Je(t);Pa(n),n[r].className+=" current ",vn(void 0,e)},Pa=e=>{for(const t of e)t.classList.remove("current")},vn=(e,t)=>{const{galleryRadios:n,thumbList:r,thumbsWrapper:i}=t;let o=Je(n),a,s=r[0],c=s.clientWidth*(je(n)-6);e===void 0?(a=s.clientWidth*o*-1+s.clientWidth*2,o<2&&(a=0),i.style.left=a+"px"):typeof e=="number"&&e!==0&&(a=s.clientWidth*e,i.style.left=Math.max(-c,Number(i.style.left.replace("px",""))+a)+"px",i.style.left=Math.min(0,Number(i.style.left.replace("px","")))+"px")},fr=(e,t)=>{const{galleryBody:n,galleryRadios:r}=e;return{setupGallery:()=>{_a(new Event("slidechanged"),e),xa(e),t&&n!==null&&(La(r),Fa(e))}}},Ra=()=>{if(Ee())return;const e={galleryRadios:document.getElementsByClassName("gallery-radio"),galleryWrapper:document.getElementById("wrapper-gallery"),thumbs:document.getElementsByClassName("thumbs"),thumbsWrapper:document.getElementsByClassName("thumbs-wrapper")[0],thumbList:document.getElementsByClassName("thumb"),galleryBody:document.getElementsByClassName("bodyCopy")[0]};if(!e.galleryRadios||!e.galleryWrapper)return;const t=["gamesradar.com","pcgamer.com"],n=Sa();n&&t.includes(n)?fr(e,!0).setupGallery():fr(e,!1).setupGallery()};window.reliableDOMContentLoaded.then(()=>{Ra()}).catch(e=>console.error("%c FTE ","background: #9306F9 color: #ffffff",e));var hr={exports:{}};(function(e){(function(t){var n=function(){},r=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(l){return setTimeout(l,16)};function i(){var l=this;l.reads=[],l.writes=[],l.raf=r.bind(t)}i.prototype={constructor:i,runTasks:function(u){for(var h;h=u.shift();)h()},measure:function(u,h){var f=h?u.bind(h):u;return this.reads.push(f),o(this),f},mutate:function(u,h){var f=h?u.bind(h):u;return this.writes.push(f),o(this),f},clear:function(u){return s(this.reads,u)||s(this.writes,u)},extend:function(u){if(U(u)!="object")throw new Error("expected object");var h=Object.create(this);return c(h,u),h.fastdom=this,h.initialize&&h.initialize(),h},catch:null};function o(l){l.scheduled||(l.scheduled=!0,l.raf(a.bind(null,l)))}function a(l){var u=l.writes,h=l.reads,f;try{n("flushing reads",h.length),l.runTasks(h),n("flushing writes",u.length),l.runTasks(u)}catch(F){f=F}if(l.scheduled=!1,(h.length||u.length)&&o(l),f)if(n("task errored",f.message),l.catch)l.catch(f);else throw f}function s(l,u){var h=l.indexOf(u);return!!~h&&!!l.splice(h,1)}function c(l,u){for(var h in u)u.hasOwnProperty(h)&&(l[h]=u[h])}var d=t.fastdom=t.fastdom||new i;e.exports=d})(typeof window!="undefined"?window:typeof Pt!="undefined"?Pt:globalThis)})(hr);var Ma=hr.exports;const T=aa(Ma);var pr={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Pt,function(){return function(n){function r(o){if(i[o])return i[o].exports;var a=i[o]={exports:{},id:o,loaded:!1};return n[o].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}var i={};return r.m=n,r.c=i,r.p="",r(0)}([function(n,r,i){function o(a){for(var s in a)r.hasOwnProperty(s)||(r[s]=a[s])}Object.defineProperty(r,"__esModule",{value:!0}),o(i(2)),o(i(3)),o(i(1)),o(i(4))},function(n,r){function i(o,a){var s=0;if(o===a)return!0;if(typeof o.equals=="function")return o.equals(a);if(o.length>0&&o.length===a.length){for(;s<o.length;s+=1)if(!i(o[s],a[s]))return!1;return!0}return!1}Object.defineProperty(r,"__esModule",{value:!0}),r.eq=i},function(n,r,i){function o(l){return l!=null}function a(l,u){if(o(l)&&o(u))throw new TypeError("Cannot construct an Either with both a left and a right");if(!o(l)&&!o(u))throw new TypeError("Cannot construct an Either with neither a left nor a right");return o(l)&&!o(u)?d.left(l):!o(l)&&o(u)?d.right(u):void 0}Object.defineProperty(r,"__esModule",{value:!0});var s,c=i(1);(function(l){l[l.Left=0]="Left",l[l.Right=1]="Right"})(s=r.EitherType||(r.EitherType={})),r.either=a;var d=function(){function l(u,h,f){this.type=u,this.l=h,this.r=f,this.of=this.unit,this.chain=this.bind,this.lift=this.fmap,this.map=this.fmap}return l.left=function(u){return new l(s.Left,u)},l.right=function(u){return new l(s.Right,null,u)},l.prototype.unit=function(u){return l.right(u)},l.prototype.bind=function(u){return this.type===s.Right?u(this.r):l.left(this.l)},l.prototype.fmap=function(u){var h=this;return this.bind(function(f){return h.unit(u(f))})},l.prototype.caseOf=function(u){return this.type===s.Right?u.right(this.r):u.left(this.l)},l.prototype.equals=function(u){return u.type===this.type&&(this.type===s.Left&&c.eq(u.l,this.l)||this.type===s.Right&&c.eq(u.r,this.r))},l.prototype.do=function(u){u===void 0&&(u={});var h={left:function(B){},right:function(B){}},f=Object.assign(h,u);return this.caseOf(f),this},l}();r.Either=d},function(n,r,i){function o(d){return c.maybe(d)}Object.defineProperty(r,"__esModule",{value:!0});var a,s=i(1);(function(d){d[d.Nothing=0]="Nothing",d[d.Just=1]="Just"})(a=r.MaybeType||(r.MaybeType={})),r.maybe=o;var c=function(){function d(l,u){this.type=l,this.value=u,this.of=this.unit,this.chain=this.bind,this.lift=this.fmap,this.map=this.fmap}return d.sequence=function(l){if(Object.keys(l).filter(function(f){return l[f].type===a.Nothing}).length)return d.nothing();var u={};for(var h in l)l.hasOwnProperty(h)&&(u[h]=l[h].value);return d.just(u)},d.maybe=function(l){return l==null?new d(a.Nothing):new d(a.Just,l)},d.just=function(l){if(l==null)throw new TypeError("Cannot Maybe.just(null)");return new d(a.Just,l)},d.nothing=function(){return new d(a.Nothing)},d.isJust=function(l){return l.type===a.Just},d.isNothing=function(l){return l.type===a.Nothing},d.prototype.unit=function(l){return d.maybe(l)},d.prototype.bind=function(l){return this.type===a.Just?l(this.value):d.nothing()},d.prototype.fmap=function(l){var u=this;return this.bind(function(h){return u.unit(l(h))})},d.prototype.caseOf=function(l){return this.type===a.Just?l.just(this.value):l.nothing()},d.prototype.defaulting=function(l){return d.just(this.valueOr(l))},d.prototype.equals=function(l){return l.type===this.type&&(this.type===a.Nothing||s.eq(l.value,this.value))},d.prototype.valueOr=function(l){return this.valueOrCompute(function(){return l})},d.prototype.valueOrCompute=function(l){return this.type===a.Just?this.value:l()},d.prototype.valueOrThrow=function(l){if(this.type===a.Just)return this.value;throw l||new Error("No value is available.")},d.prototype.do=function(l){l===void 0&&(l={});var u={just:function(F){},nothing:function(){}},h=Object.assign(u,l);return this.caseOf(h),this},d}();c.all=function(d){return c.sequence(d)},r.Maybe=c},function(n,r){function i(a,s){return o.writer(a,s)}Object.defineProperty(r,"__esModule",{value:!0}),r.writer=i;var o=function(){function a(s,c){this.story=s,this.value=c,this.of=this.unit,this.chain=this.bind,this.lift=this.fmap,this.map=this.fmap}return a.writer=function(s,c){return new a(s,c)},a.tell=function(s){return new a([s],0)},a.prototype.unit=function(s){return new a([],s)},a.prototype.bind=function(s){var c=s(this.value),d=this.story.concat(c.story);return new a(d,c.value)},a.prototype.fmap=function(s){var c=this;return this.bind(function(d){return c.unit(s(d))})},a.prototype.caseOf=function(s){return s.writer(this.story,this.value)},a.prototype.equals=function(s){var c,d=!0;for(c=0;c<this.story.length;c+=1)d=d&&this.story[c]===s.story[c];return d&&this.value===s.value},a}();r.Writer=o}])})})(pr);var Ke=pr.exports;const Da=e=>e instanceof Ke.Maybe?e:Ke.Maybe.maybe(e),{nothing:Na}=Ke.Maybe,ja=e=>e,Qe=(e,t)=>e===""?Na():Da(t).fmap(n=>n.querySelector(e)).fmap(ja),Ba=(e,t,n,r)=>{new IntersectionObserver((o,a)=>{o.forEach(s=>{s.boundingClientRect.y>200-e.offsetHeight&&(s.isIntersecting||r(),s.isIntersecting&&n())})},{rootMargin:t,threshold:[0]}).observe(e)},qa=(e,t)=>{T.mutate(()=>{e.classList.remove("sticky-navigation--off"),e.style.marginTop="260px",t.style.position="fixed"})},mr=(e,t)=>{T.mutate(()=>{e.classList.add("sticky-navigation--off"),e.style.marginTop="200px",t.style.position="relative"})},Ha=(e,t,n)=>{mr(t,e);const r=()=>{qa(t,e)},i=()=>{mr(t,e)};Ba(n,`0px 0px -${window.innerHeight-e.offsetHeight}px 0px`,r,i)},Ua=(e,t,n,r)=>{new IntersectionObserver((o,a)=>{window.stickyNavDisabled?a.disconnect():o.forEach(s=>{s.isIntersecting||r(),s.isIntersecting&&n()})},{rootMargin:t,threshold:[0]}).observe(e)},wr=e=>()=>{T.mutate(()=>{e.classList.remove("sticky-primary-nav--shrink")})},Wa=e=>()=>{T.mutate(()=>{e.classList.add("sticky-primary-nav--shrink")})},$a=e=>{const t=document.styleSheets[document.styleSheets.length-1];T.mutate(()=>{t.insertRule(`@media (max-width: 699px) { body.sticky-navigation {  margin-top: ${e.offsetHeight}px; } }`)})},za=e=>{const t=document.querySelector("body"),n=document.querySelector("#main");if(!t||!n)return;e.classList.contains("primary-nav")&&$a(e);const r=document.querySelector(".sticky-nav");r&&!window.stickyNavDisabled&&(T.mutate(()=>{document.addEventListener("stickyNavRemoved",wr(e))}),Ua(r,`-17px 0px -${window.innerHeight-19}px 0px`,Wa(e),wr(e))),window.bordeaux=window.bordeaux||{},window.bordeaux.cmd=window.bordeaux.cmd||[],window.bordeaux.cmd.push(()=>{window.bordeaux.mobileBigtop.then(i=>{i&&Ha(e,t,n)}).catch(i=>console.error("%c FTE ","background: #9306F9; color: #ffffff",i))})},Va=e=>{T.measure(()=>{Qe(e,document).caseOf({just:t=>{const n=window.vanilla.featureFlags.stickyPrimaryNav;n.enabled&&n.mobileOn&&Ee()&&za(t)},nothing:()=>console.warn("%c FTE ","background: #9306F9; color: #ffffff","no primary nav")})})};window.reliableDOMContentLoaded.then(()=>{Va("body.sticky-navigation .primary-nav")}).catch(e=>console.error("%c FTE ","background: #9306F9; color: #ffffff","initStickyPrimaryNav err",e));const Nt=e=>{const t={element:{action:"scroll",scrollDepth:`${e}%`}};window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"elementInteraction",eventObject:t})},Ga=(e,t)=>{t>=e.endOfArticle&&!e.endReached&&(Nt(100),e.endReached=!0)},Ya=(e,t)=>{t>=e.threeQuarters&&!e.threeQuartersReached&&(Nt(75),e.threeQuartersReached=!0)},Ja=(e,t)=>{t>=e.oneHalf&&!e.oneHalfReached&&(Nt(50),e.oneHalfReached=!0)},Ka=(e,t)=>{t>=e.oneQuarter&&!e.oneQuarterReached&&(Nt(25),e.oneQuarterReached=!0)},Qa=e=>{const t=()=>{const n=window.scrollY+window.innerHeight;Ka(e,n),Ja(e,n),Ya(e,n),Ga(e,n)};window.addEventListener("scroll",Se(t,500),{passive:!0})},vr=e=>{T.measure(()=>{const t=document.querySelector(e);if(!t)return;const n=t.offsetHeight,r=t.offsetTop,i=n+r,o={articleHeight:n,topOfArticle:r,endOfArticle:i,oneQuarter:r+n/4,oneHalf:r+n/2,threeQuarters:r+n*.75,oneQuarterReached:!1,oneHalfReached:!1,threeQuartersReached:!1,endReached:!1,finalHeight:!1};!o.oneQuarterReached&&!o.oneHalfReached&&!o.threeQuartersReached&&!o.endReached&&Qa(o)})};(e=>{window.reliableDOMContentLoaded.then(()=>{vr(e)}).catch(t=>console.error(t))})("article .content-wrapper");const bn=(e="")=>{var t;return(t=window.vanilla.translations[e])!=null?t:e},jt=(e,t,n)=>({element:{action:e,class:"collapsible-block-title",container:"DIV",id:"collapsible-block",text:t,name:null,label:n,url:document.URL}}),br=()=>{T.measure(()=>{const e=document.querySelectorAll(".collapsible-block-title");Array.from(e).forEach((t,n)=>{const r=t.textContent||"",i=n+1;t.addEventListener("click",()=>{var a,s;const o=(a=t.parentElement)==null?void 0:a.classList.contains("collapsed");(s=window.vanilla.featureFlags.buyingGuide3)!=null&&s.enabled&&document.querySelector(".bg3-0")!==null&&window.innerWidth<=700&&t.getAttribute("span-class-collapsible-block-text-read-more-span")===null?T.mutate(()=>{const c=t.parentElement;if(c){const d=c.querySelector(".svg-container");c!=null&&c.classList.contains("collapsed")?(c.classList.remove("collapsed"),c.style.removeProperty("height"),t.style.borderBottomWidth="0",d&&(d.style.transform="rotate(180deg)"),window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"elementInteraction",eventObject:jt("open",r,i)})):(window.innerWidth<=440&&(c.style.height="128px"),c.classList.add("collapsed"),t.style.borderBottomWidth="2px",d&&(d.style.transform="rotate(0deg)"),window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"elementInteraction",eventObject:jt("close",r,i)}))}}):T.mutate(()=>{var c,d,l;o?((c=t.parentElement)==null||c.classList.remove("collapsed"),t.innerHTML=bn("Collapse content")+" ↑",window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"elementInteraction",eventObject:jt("open",r,i)})):((d=t.parentElement)==null||d.classList.add("collapsed"),t.innerHTML=r,window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"elementInteraction",eventObject:jt("close",r,i)}),(l=t.parentElement)==null||l.scrollIntoView(),window.scroll(0,window.scrollY-60))})})})})};document.readyState==="complete"||document.readyState==="interactive"?br():document.addEventListener("DOMContentLoaded",br);const gr=window,yr=(e,t="script.sponsored-post-template")=>{const n=e.parentElement;if(!n)return null;const r=n.querySelector(`:scope>${t}`);return r?r.innerHTML:yr(n,t)},Xa=(e,t)=>{const n=Object.keys(t);n.sort((i,o)=>o.length-i.length);const r=new RegExp(n.join("|"),"gim");return e.replace(r,i=>t[i.toUpperCase()]||"")},Er=(e,t)=>{const n=e.parentElement;return n?n===t?[n]:[n,...Er(n,t)]:[]},Za=e=>{let t=0;const n=[];for(;;){if(t>1e3){console.error("%c FTE ","background: #9306F9; color: #ffffff","Too many style properties");break}const r=e.style.item(t);if(!r)break;n.push(r),t++}n.forEach(r=>{e.style.removeProperty(r)})},es=e=>[...document.getElementsByTagName("iframe")].find(n=>n.contentWindow===e),Sr=(e,{strapline:t,byline:n,imageURL:r,headline:i,postLabel:o,linkURL:a,linkMode:s,disclaimer:c})=>{const d=es(e);if(!d)throw new Error("Sponsored post iframe is not contained in the DOM");const l=d.parentElement;if(!l)throw new Error("Sponsored post is not contained in the DOM");const u=d.closest(".bordeaux-slot");if(!u)throw new Error("Sponsored post is not contained in a bordeaux slot");const h=u.closest(".sponsored-post"),f=yr(u,h?"script.sponsored-post-template":"script.sponsored-tag-template");if(!f)throw new Error("Sponsored post cannot find a suitable template");const F={SPONSORED_LABEL_CLASS:"show-label-override",SPONSORED_LABEL:"Sponsored Content",SPONSORED_STRAPLINE:t!=null?t:"",SPONSORED_BYLINE:n,SPONSORED_IMAGE_URL:r,SPONSORED_HEADLINE:i,SPONSORED:o,SPONSORED_LINK_URL:a,SPONSORED_LINK_MODE:s==="Same Window"?"":"_blank",SPONSORED_DISCLAIMER:c},B=Xa(f,F),z=Er(d,u),N=document.createElement("div");return N.innerHTML=B,d.addEventListener("mouseover",()=>{T.mutate(()=>{N.classList.add("sponsored-hover-state")})}),d.addEventListener("mouseout",()=>{T.mutate(()=>{N.classList.remove("sponsored-hover-state")})}),T.mutate(()=>{(h?z:z.slice(0,-1)).forEach(P=>{Za(P)}),d.style.position="absolute",d.style.top="0px",d.style.left="0px",d.style.right="0px",d.style.bottom="0px",d.style.width="100%",d.style.height="100%",d.style.zIndex="1",l.appendChild(N),h&&h.classList.add("sponsored-post--loaded"),gr.document.dispatchEvent(new CustomEvent("sponsoredPostLoaded"))}),B},ts=()=>{window.future_sponsoredPostVersion=2,window.addEventListener("message",e=>{if(!e.data||!e.source)return;const t=e.source;if(t.parent!==window||typeof e.data!="object"||!e.data.requestId||e.data.type!=="future-sponsored-post-data")return;t.postMessage({type:"future-sponsored-post-engaged",responseId:e.data.requestId},{targetOrigin:"*"});const{strapline:n,byline:r,imageURL:i,headline:o,postLabel:a,linkURL:s,linkMode:c,disclaimer:d}=e.data.properties,l=Sr(e.source,{strapline:n,byline:r,imageURL:i,headline:o,postLabel:a,linkURL:s,linkMode:c,disclaimer:d});t.postMessage({type:"future-sponsored-post-response",responseId:e.data.requestId,content:l},{targetOrigin:"*"})}),gr.renderSponsoredPost=(e,t,n,r,i,o,a,s,c,d)=>{console.error("%c FTE ","background: #9306F9; color: #ffffff","This method has been deprecated and should not have been called. Use 'window.postMessage' instead. Contact the Ad-Tech team.");const l=Sr(e,{strapline:a,byline:c,imageURL:r,headline:n,postLabel:s,linkURL:i,linkMode:o,disclaimer:d});t.innerHTML=l}},ns=()=>{var n,r,i;const e=window.location.search,t=new URLSearchParams(e);t&&(t.get("gclid")&&t.get("gclid")!==""?sessionStorage.setItem("gclid",(n=t.get("gclid"))!=null?n:"Invalid"):t.get("wbraid")&&t.get("wbraid")!==""?sessionStorage.setItem("gclid",(r=t.get("wbraid"))!=null?r:"Invalid"):t.get("gbraid")&&t.get("gbraid")!==""&&sessionStorage.setItem("gclid",(i=t.get("gbraid"))!=null?i:"Invalid"))},rs=()=>{ns()};var _r=-1,Bt=function(t){addEventListener("pageshow",function(n){n.persisted&&(_r=n.timeStamp,t(n))},!0)},gn=function(){var t=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},yn=function(){var t=gn();return t&&t.activationStart||0},Xe=function(t,n){var r=gn(),i="navigate";return _r>=0?i="back-forward-cache":r&&(document.prerendering||yn()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:t,value:n===void 0?-1:n,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},xr=function(t,n,r){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var i=new PerformanceObserver(function(o){Promise.resolve().then(function(){n(o.getEntries())})});return i.observe(Object.assign({type:t,buffered:!0},r||{})),i}}catch(o){}},Ze=function(t,n,r,i){var o,a;return function(s){n.value>=0&&(s||i)&&((a=n.value-(o||0))||o===void 0)&&(o=n.value,n.delta=a,n.rating=function(c,d){return c>d[1]?"poor":c>d[0]?"needs-improvement":"good"}(n.value,r),t(n))}},Lr=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},is=function(t){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t()})},os=function(t){var n=!1;return function(){n||(t(),n=!0)}},et=-1,Tr=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},qt=function(t){document.visibilityState==="hidden"&&et>-1&&(et=t.type==="visibilitychange"?t.timeStamp:0,as())},Or=function(){addEventListener("visibilitychange",qt,!0),addEventListener("prerenderingchange",qt,!0)},as=function(){removeEventListener("visibilitychange",qt,!0),removeEventListener("prerenderingchange",qt,!0)},ss=function(){return et<0&&(et=Tr(),Or(),Bt(function(){setTimeout(function(){et=Tr(),Or()},0)})),{get firstHiddenTime(){return et}}},kr=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},Ar=[1800,3e3],Fr=function(t,n){n=n||{},kr(function(){var r,i=ss(),o=Xe("FCP"),a=xr("paint",function(s){s.forEach(function(c){c.name==="first-contentful-paint"&&(a.disconnect(),c.startTime<i.firstHiddenTime&&(o.value=Math.max(c.startTime-yn(),0),o.entries.push(c),r(!0)))})});a&&(r=Ze(t,o,Ar,n.reportAllChanges),Bt(function(s){o=Xe("FCP"),r=Ze(t,o,Ar,n.reportAllChanges),Lr(function(){o.value=performance.now()-s.timeStamp,r(!0)})}))})},Ir=[.1,.25],cs=function(t,n){n=n||{},Fr(os(function(){var r,i=Xe("CLS",0),o=0,a=[],s=function(l){l.forEach(function(u){if(!u.hadRecentInput){var h=a[0],f=a[a.length-1];o&&u.startTime-f.startTime<1e3&&u.startTime-h.startTime<5e3?(o+=u.value,a.push(u)):(o=u.value,a=[u])}}),o>i.value&&(i.value=o,i.entries=a,r())},c=xr("layout-shift",s);c&&(r=Ze(t,i,Ir,n.reportAllChanges),is(function(){s(c.takeRecords()),r(!0)}),Bt(function(){o=0,i=Xe("CLS",0),r=Ze(t,i,Ir,n.reportAllChanges),Lr(function(){return r()})}),setTimeout(r,0))}))},Cr=[800,1800],ls=function e(t){document.prerendering?kr(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},ds=function(t,n){n=n||{};var r=Xe("TTFB"),i=Ze(t,r,Cr,n.reportAllChanges);ls(function(){var o=gn();o&&(r.value=Math.max(o.responseStart-yn(),0),r.entries=[o],i(!0),Bt(function(){r=Xe("TTFB",0),(i=Ze(t,r,Cr,n.reportAllChanges))(!0)}))})},En,Pr,Ht=function(){var t=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},us=function(t){if(document.readyState==="loading")return"loading";var n=Ht();if(n){if(t<n.domInteractive)return"loading";if(n.domContentLoadedEventStart===0||t<n.domContentLoadedEventStart)return"dom-interactive";if(n.domComplete===0||t<n.domComplete)return"dom-content-loaded"}return"complete"},fs=function(t){var n=t.nodeName;return t.nodeType===1?n.toLowerCase():n.toUpperCase().replace(/^#/,"")},Rr=function(t,n){var r="";try{for(;t&&t.nodeType!==9;){var i=t,o=i.id?"#"+i.id:fs(i)+(i.classList&&i.classList.value&&i.classList.value.trim()&&i.classList.value.trim().length?"."+i.classList.value.trim().replace(/\s+/g,"."):"");if(r.length+o.length>(n||100)-1)return r||o;if(r=r?o+">"+r:o,i.id)break;t=i.parentNode}}catch(a){}return r},Mr=-1,hs=function(){return Mr},Sn=function(t){addEventListener("pageshow",function(n){n.persisted&&(Mr=n.timeStamp,t(n))},!0)},Dr=function(){var t=Ht();return t&&t.activationStart||0},Ut=function(t,n){var r=Ht(),i="navigate";return hs()>=0?i="back-forward-cache":r&&(document.prerendering||Dr()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:t,value:-1,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},Wt=function(t,n,r){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var i=new PerformanceObserver(function(o){Promise.resolve().then(function(){n(o.getEntries())})});return i.observe(Object.assign({type:t,buffered:!0},r||{})),i}}catch(o){}},$t=function(t,n,r,i){var o,a;return function(s){n.value>=0&&(s||i)&&((a=n.value-(o||0))||o===void 0)&&(o=n.value,n.delta=a,n.rating=function(c,d){return c>d[1]?"poor":c>d[0]?"needs-improvement":"good"}(n.value,r),t(n))}},ps=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},_n=function(t){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t()})},Nr=function(t){var n=!1;return function(){n||(t(),n=!0)}},tt=-1,jr=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},zt=function(t){document.visibilityState==="hidden"&&tt>-1&&(tt=t.type==="visibilitychange"?t.timeStamp:0,ms())},Br=function(){addEventListener("visibilitychange",zt,!0),addEventListener("prerenderingchange",zt,!0)},ms=function(){removeEventListener("visibilitychange",zt,!0),removeEventListener("prerenderingchange",zt,!0)},ws=function(){return tt<0&&(tt=jr(),Br(),Sn(function(){setTimeout(function(){tt=jr(),Br()},0)})),{get firstHiddenTime(){return tt}}},qr=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},Hr=0,xn=1/0,Vt=0,vs=function(t){t.forEach(function(n){n.interactionId&&(xn=Math.min(xn,n.interactionId),Vt=Math.max(Vt,n.interactionId),Hr=Vt?(Vt-xn)/7+1:0)})},Ur=function(){return En?Hr:performance.interactionCount||0},bs=function(){"interactionCount"in performance||En||(En=Wt("event",vs,{type:"event",buffered:!0,durationThreshold:0}))},me=[],mt=new Map,Wr=0,gs=function(){var t=Math.min(me.length-1,Math.floor((Ur()-Wr)/50));return me[t]},$r=[],ys=function(t){if($r.forEach(function(o){return o(t)}),t.interactionId||t.entryType==="first-input"){var n=me[me.length-1],r=mt.get(t.interactionId);if(r||me.length<10||t.duration>n.latency){if(r)t.duration>r.latency?(r.entries=[t],r.latency=t.duration):t.duration===r.latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t);else{var i={id:t.interactionId,latency:t.duration,entries:[t]};mt.set(i.id,i),me.push(i)}me.sort(function(o,a){return a.latency-o.latency}),me.length>10&&me.splice(10).forEach(function(o){return mt.delete(o.id)})}}},Ln=function(t){var n=self.requestIdleCallback||self.setTimeout,r=-1;return t=Nr(t),document.visibilityState==="hidden"?t():(r=n(t),_n(t)),r},zr=[200,500],Es=function(t,n){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(n=n||{},qr(function(){var r;bs();var i,o=Ut("INP"),a=function(d){Ln(function(){d.forEach(ys);var l=gs();l&&l.latency!==o.value&&(o.value=l.latency,o.entries=l.entries,i())})},s=Wt("event",a,{durationThreshold:(r=n.durationThreshold)!==null&&r!==void 0?r:40});i=$t(t,o,zr,n.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),_n(function(){a(s.takeRecords()),i(!0)}),Sn(function(){Wr=Ur(),me.length=0,mt.clear(),o=Ut("INP"),i=$t(t,o,zr,n.reportAllChanges)}))}))},nt=[],Ie=[],Tn=0,On=new WeakMap,rt=new Map,kn=-1,Ss=function(t){nt=nt.concat(t),Vr()},Vr=function(){kn<0&&(kn=Ln(_s))},_s=function(){rt.size>10&&rt.forEach(function(s,c){mt.has(c)||rt.delete(c)});var t=me.map(function(s){return On.get(s.entries[0])}),n=Ie.length-50;Ie=Ie.filter(function(s,c){return c>=n||t.includes(s)});for(var r=new Set,i=0;i<Ie.length;i++){var o=Ie[i];Gr(o.startTime,o.processingEnd).forEach(function(s){r.add(s)})}var a=nt.length-1-50;nt=nt.filter(function(s,c){return s.startTime>Tn&&c>a||r.has(s)}),kn=-1};$r.push(function(e){e.interactionId&&e.target&&!rt.has(e.interactionId)&&rt.set(e.interactionId,e.target)},function(e){var t,n=e.startTime+e.duration;Tn=Math.max(Tn,e.processingEnd);for(var r=Ie.length-1;r>=0;r--){var i=Ie[r];if(Math.abs(n-i.renderTime)<=8){(t=i).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:[e]},Ie.push(t)),(e.interactionId||e.entryType==="first-input")&&On.set(e,t),Vr()});var Gr=function(t,n){for(var r,i=[],o=0;r=nt[o];o++)if(!(r.startTime+r.duration<t)){if(r.startTime>n)break;i.push(r)}return i},xs=function(t,n){Pr||(Pr=Wt("long-animation-frame",Ss)),Es(function(r){var i=function(o){var a=o.entries[0],s=On.get(a),c=a.processingStart,d=s.processingEnd,l=s.entries.sort(function(N,P){return N.processingStart-P.processingStart}),u=Gr(a.startTime,d),h=o.entries.find(function(N){return N.target}),f=h&&h.target||rt.get(a.interactionId),F=[a.startTime+a.duration,d].concat(u.map(function(N){return N.startTime+N.duration})),B=Math.max.apply(Math,F),z={interactionTarget:Rr(f),interactionTargetElement:f,interactionType:a.name.startsWith("key")?"keyboard":"pointer",interactionTime:a.startTime,nextPaintTime:B,processedEventEntries:l,longAnimationFrameEntries:u,inputDelay:c-a.startTime,processingDuration:d-c,presentationDelay:Math.max(B-d,0),loadState:us(a.startTime)};return Object.assign(o,{attribution:z})}(r);t(i)},n)},Yr=[2500,4e3],An={},Ls=function(t,n){(function(r,i){i=i||{},qr(function(){var o,a=ws(),s=Ut("LCP"),c=function(h){i.reportAllChanges||(h=h.slice(-1)),h.forEach(function(f){f.startTime<a.firstHiddenTime&&(s.value=Math.max(f.startTime-Dr(),0),s.entries=[f],o())})},d=Wt("largest-contentful-paint",c);if(d){o=$t(r,s,Yr,i.reportAllChanges);var l=Nr(function(){An[s.id]||(c(d.takeRecords()),d.disconnect(),An[s.id]=!0,o(!0))});["keydown","click"].forEach(function(u){addEventListener(u,function(){return Ln(l)},!0)}),_n(l),Sn(function(u){s=Ut("LCP"),o=$t(r,s,Yr,i.reportAllChanges),ps(function(){s.value=performance.now()-u.timeStamp,An[s.id]=!0,o(!0)})})}})})(function(r){var i=function(o){var a={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:o.value};if(o.entries.length){var s=Ht();if(s){var c=s.activationStart||0,d=o.entries[o.entries.length-1],l=d.url&&performance.getEntriesByType("resource").filter(function(B){return B.name===d.url})[0],u=Math.max(0,s.responseStart-c),h=Math.max(u,l?(l.requestStart||l.startTime)-c:0),f=Math.max(h,l?l.responseEnd-c:0),F=Math.max(f,d.startTime-c);a={element:Rr(d.element),timeToFirstByte:u,resourceLoadDelay:h-u,resourceLoadDuration:f-h,elementRenderDelay:F-f,navigationEntry:s,lcpEntry:d},d.url&&(a.url=d.url),l&&(a.lcpResourceEntry=l)}}return Object.assign(o,{attribution:a})}(r);t(i)},n)};function Gt(e){var t=new Error(e);return t.source="ulid",t}var Fn="0123456789ABCDEFGHJKMNPQRSTVWXYZ",wt=Fn.length,Jr=Math.pow(2,48)-1,Ts=10,Os=16;function ks(e){var t=Math.floor(e()*wt);return t===wt&&(t=wt-1),Fn.charAt(t)}function As(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>Jr)throw Gt("cannot encode time greater than "+Jr);if(e<0)throw Gt("time must be positive");if(Number.isInteger(e)===!1)throw Gt("time must be an integer");for(var n=void 0,r="";t>0;t--)n=e%wt,r=Fn.charAt(n)+r,e=(e-n)/wt;return r}function Fs(e,t){for(var n="";e>0;e--)n=ks(t)+n;return n}function Is(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window!="undefined"?window:null);var n=t&&(t.crypto||t.msCrypto);if(n)return function(){var i=new Uint8Array(1);return n.getRandomValues(i),i[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch(i){}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch(i){}return function(){return Math.random()}}throw Gt("secure crypto unusable, insecure Math.random not allowed")}function Cs(e){return e||(e=Is()),function(n){return isNaN(n)&&(n=Date.now()),As(n,Ts)+Fs(Os,e)}}var Ps=Cs(),Kr={exports:{}};const Qr=sa(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));(function(e){(function(){var t="input is invalid type",n=(typeof window=="undefined"?"undefined":U(window))==="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var i=!n&&(typeof self=="undefined"?"undefined":U(self))==="object",o=!r.JS_SHA256_NO_NODE_JS&&(typeof process=="undefined"?"undefined":U(process))==="object"&&process.versions&&process.versions.node;o?r=Pt:i&&(r=self);var a=!r.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,s=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",c="0123456789abcdef".split(""),d=[-2147483648,8388608,32768,128],l=[24,16,8,0],u=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],h=["hex","array","digest","arrayBuffer"],f=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(p){return Object.prototype.toString.call(p)==="[object Array]"}),s&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(p){return U(p)==="object"&&p.buffer&&p.buffer.constructor===ArrayBuffer});var F=function(L,k){return function(_){return new H(k,!0).update(_)[L]()}},B=function(L){var k=F("hex",L);o&&(k=z(k,L)),k.create=function(){return new H(L)},k.update=function(y){return k.create().update(y)};for(var _=0;_<h.length;++_){var A=h[_];k[A]=F(A,L)}return k},z=function(L,k){var _=Qr,A=Qr.Buffer,y=k?"sha224":"sha256",M;A.from&&!r.JS_SHA256_NO_BUFFER_FROM?M=A.from:M=function(D){return new A(D)};var O=function(D){if(typeof D=="string")return _.createHash(y).update(D,"utf8").digest("hex");if(D==null)throw new Error(t);return D.constructor===ArrayBuffer&&(D=new Uint8Array(D)),Array.isArray(D)||ArrayBuffer.isView(D)||D.constructor===A?_.createHash(y).update(M(D)).digest("hex"):L(D)};return O},N=function(L,k){return function(_,A){return new Q(_,k,!0).update(A)[L]()}},P=function(L){var k=N("hex",L);k.create=function(y){return new Q(y,L)},k.update=function(y,M){return k.create(y).update(M)};for(var _=0;_<h.length;++_){var A=h[_];k[A]=N(A,L)}return k};function H(p,L){L?(f[0]=f[16]=f[1]=f[2]=f[3]=f[4]=f[5]=f[6]=f[7]=f[8]=f[9]=f[10]=f[11]=f[12]=f[13]=f[14]=f[15]=0,this.blocks=f):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=p}H.prototype.update=function(p){if(!this.finalized){var L,k=U(p);if(k!=="string"){if(k==="object"){if(p===null)throw new Error(t);if(s&&p.constructor===ArrayBuffer)p=new Uint8Array(p);else if(!Array.isArray(p)&&(!s||!ArrayBuffer.isView(p)))throw new Error(t)}else throw new Error(t);L=!0}for(var _,A=0,y,M=p.length,O=this.blocks;A<M;){if(this.hashed&&(this.hashed=!1,O[0]=this.block,this.block=O[16]=O[1]=O[2]=O[3]=O[4]=O[5]=O[6]=O[7]=O[8]=O[9]=O[10]=O[11]=O[12]=O[13]=O[14]=O[15]=0),L)for(y=this.start;A<M&&y<64;++A)O[y>>>2]|=p[A]<<l[y++&3];else for(y=this.start;A<M&&y<64;++A)_=p.charCodeAt(A),_<128?O[y>>>2]|=_<<l[y++&3]:_<2048?(O[y>>>2]|=(192|_>>>6)<<l[y++&3],O[y>>>2]|=(128|_&63)<<l[y++&3]):_<55296||_>=57344?(O[y>>>2]|=(224|_>>>12)<<l[y++&3],O[y>>>2]|=(128|_>>>6&63)<<l[y++&3],O[y>>>2]|=(128|_&63)<<l[y++&3]):(_=65536+((_&1023)<<10|p.charCodeAt(++A)&1023),O[y>>>2]|=(240|_>>>18)<<l[y++&3],O[y>>>2]|=(128|_>>>12&63)<<l[y++&3],O[y>>>2]|=(128|_>>>6&63)<<l[y++&3],O[y>>>2]|=(128|_&63)<<l[y++&3]);this.lastByteIndex=y,this.bytes+=y-this.start,y>=64?(this.block=O[16],this.start=y-64,this.hash(),this.hashed=!0):this.start=y}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},H.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var p=this.blocks,L=this.lastByteIndex;p[16]=this.block,p[L>>>2]|=d[L&3],this.block=p[16],L>=56&&(this.hashed||this.hash(),p[0]=this.block,p[16]=p[1]=p[2]=p[3]=p[4]=p[5]=p[6]=p[7]=p[8]=p[9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=0),p[14]=this.hBytes<<3|this.bytes>>>29,p[15]=this.bytes<<3,this.hash()}},H.prototype.hash=function(){var p=this.h0,L=this.h1,k=this.h2,_=this.h3,A=this.h4,y=this.h5,M=this.h6,O=this.h7,j=this.blocks,D,J,Y,ae,w,m,S,I,R,C,G;for(D=16;D<64;++D)w=j[D-15],J=(w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3,w=j[D-2],Y=(w>>>17|w<<15)^(w>>>19|w<<13)^w>>>10,j[D]=j[D-16]+J+j[D-7]+Y<<0;for(G=L&k,D=0;D<64;D+=4)this.first?(this.is224?(I=300032,w=j[0]-1413257819,O=w-150054599<<0,_=w+24177077<<0):(I=704751109,w=j[0]-210244248,O=w-1521486534<<0,_=w+143694565<<0),this.first=!1):(J=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),Y=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),I=p&L,ae=I^p&k^G,S=A&y^~A&M,w=O+Y+S+u[D]+j[D],m=J+ae,O=_+w<<0,_=w+m<<0),J=(_>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10),Y=(O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7),R=_&p,ae=R^_&L^I,S=O&A^~O&y,w=M+Y+S+u[D+1]+j[D+1],m=J+ae,M=k+w<<0,k=w+m<<0,J=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),Y=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),C=k&_,ae=C^k&p^R,S=M&O^~M&A,w=y+Y+S+u[D+2]+j[D+2],m=J+ae,y=L+w<<0,L=w+m<<0,J=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),Y=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),G=L&k,ae=G^L&_^C,S=y&M^~y&O,w=A+Y+S+u[D+3]+j[D+3],m=J+ae,A=p+w<<0,p=w+m<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+p<<0,this.h1=this.h1+L<<0,this.h2=this.h2+k<<0,this.h3=this.h3+_<<0,this.h4=this.h4+A<<0,this.h5=this.h5+y<<0,this.h6=this.h6+M<<0,this.h7=this.h7+O<<0},H.prototype.hex=function(){this.finalize();var p=this.h0,L=this.h1,k=this.h2,_=this.h3,A=this.h4,y=this.h5,M=this.h6,O=this.h7,j=c[p>>>28&15]+c[p>>>24&15]+c[p>>>20&15]+c[p>>>16&15]+c[p>>>12&15]+c[p>>>8&15]+c[p>>>4&15]+c[p&15]+c[L>>>28&15]+c[L>>>24&15]+c[L>>>20&15]+c[L>>>16&15]+c[L>>>12&15]+c[L>>>8&15]+c[L>>>4&15]+c[L&15]+c[k>>>28&15]+c[k>>>24&15]+c[k>>>20&15]+c[k>>>16&15]+c[k>>>12&15]+c[k>>>8&15]+c[k>>>4&15]+c[k&15]+c[_>>>28&15]+c[_>>>24&15]+c[_>>>20&15]+c[_>>>16&15]+c[_>>>12&15]+c[_>>>8&15]+c[_>>>4&15]+c[_&15]+c[A>>>28&15]+c[A>>>24&15]+c[A>>>20&15]+c[A>>>16&15]+c[A>>>12&15]+c[A>>>8&15]+c[A>>>4&15]+c[A&15]+c[y>>>28&15]+c[y>>>24&15]+c[y>>>20&15]+c[y>>>16&15]+c[y>>>12&15]+c[y>>>8&15]+c[y>>>4&15]+c[y&15]+c[M>>>28&15]+c[M>>>24&15]+c[M>>>20&15]+c[M>>>16&15]+c[M>>>12&15]+c[M>>>8&15]+c[M>>>4&15]+c[M&15];return this.is224||(j+=c[O>>>28&15]+c[O>>>24&15]+c[O>>>20&15]+c[O>>>16&15]+c[O>>>12&15]+c[O>>>8&15]+c[O>>>4&15]+c[O&15]),j},H.prototype.toString=H.prototype.hex,H.prototype.digest=function(){this.finalize();var p=this.h0,L=this.h1,k=this.h2,_=this.h3,A=this.h4,y=this.h5,M=this.h6,O=this.h7,j=[p>>>24&255,p>>>16&255,p>>>8&255,p&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,k>>>24&255,k>>>16&255,k>>>8&255,k&255,_>>>24&255,_>>>16&255,_>>>8&255,_&255,A>>>24&255,A>>>16&255,A>>>8&255,A&255,y>>>24&255,y>>>16&255,y>>>8&255,y&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255];return this.is224||j.push(O>>>24&255,O>>>16&255,O>>>8&255,O&255),j},H.prototype.array=H.prototype.digest,H.prototype.arrayBuffer=function(){this.finalize();var p=new ArrayBuffer(this.is224?28:32),L=new DataView(p);return L.setUint32(0,this.h0),L.setUint32(4,this.h1),L.setUint32(8,this.h2),L.setUint32(12,this.h3),L.setUint32(16,this.h4),L.setUint32(20,this.h5),L.setUint32(24,this.h6),this.is224||L.setUint32(28,this.h7),p};function Q(p,L,k){var _,A=U(p);if(A==="string"){var y=[],M=p.length,O=0,j;for(_=0;_<M;++_)j=p.charCodeAt(_),j<128?y[O++]=j:j<2048?(y[O++]=192|j>>>6,y[O++]=128|j&63):j<55296||j>=57344?(y[O++]=224|j>>>12,y[O++]=128|j>>>6&63,y[O++]=128|j&63):(j=65536+((j&1023)<<10|p.charCodeAt(++_)&1023),y[O++]=240|j>>>18,y[O++]=128|j>>>12&63,y[O++]=128|j>>>6&63,y[O++]=128|j&63);p=y}else if(A==="object"){if(p===null)throw new Error(t);if(s&&p.constructor===ArrayBuffer)p=new Uint8Array(p);else if(!Array.isArray(p)&&(!s||!ArrayBuffer.isView(p)))throw new Error(t)}else throw new Error(t);p.length>64&&(p=new H(L,!0).update(p).array());var D=[],J=[];for(_=0;_<64;++_){var Y=p[_]||0;D[_]=92^Y,J[_]=54^Y}H.call(this,L,k),this.update(J),this.oKeyPad=D,this.inner=!0,this.sharedMemory=k}Q.prototype=new H,Q.prototype.finalize=function(){if(H.prototype.finalize.call(this),this.inner){this.inner=!1;var p=this.array();H.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(p),H.prototype.finalize.call(this)}};var $=B();$.sha256=$,$.sha224=B(!0),$.sha256.hmac=P(),$.sha224.hmac=P(!0),a?e.exports=$:(r.sha256=$.sha256,r.sha224=$.sha224)})()})(Kr);var Rs=Kr.exports,Ms="2.0.0",it="",Xr="?",Yt="function",Ce="undefined",ot="object",In="string",vt="major",E="model",b="name",v="type",x="vendor",g="version",ie="architecture",at="console",q="mobile",V="tablet",Z="smarttv",bt="wearable",Cn="xr",Pn="embedded",gt="inapp",Zr="user-agent",Rn=500,Mn="brands",Be="formFactors",Dn="fullVersionList",st="platform",Nn="platformVersion",Jt="bitness",Pe="sec-ch-ua",Ds=Pe+"-full-version-list",Ns=Pe+"-arch",js=Pe+"-"+Jt,Bs=Pe+"-form-factors",qs=Pe+"-"+q,Hs=Pe+"-"+E,ei=Pe+"-"+st,Us=ei+"-version",ti=[Mn,Dn,q,E,st,Nn,ie,Be,Jt],ce="browser",xe="cpu",be="device",Le="engine",fe="os",ct="result",Kt="Amazon",yt="Apple",ni="ASUS",ri="BlackBerry",qe="Google",ii="Huawei",oi="Lenovo",Ws="Honor",jn="LG",Qt="Microsoft",ai="Motorola",Et="Samsung",si="Sharp",Xt="Sony",Bn="Xiaomi",qn="Zebra",lt="Mobile ",St=" Browser",ci="Chrome",Re="Chromecast",$s="Edge",_t="Firefox",xt="Opera",li="Facebook",di="Sogou",Hn="Windows",zs=(typeof window=="undefined"?"undefined":U(window))!==Ce,oe=zs&&window.navigator?window.navigator:void 0,Me=oe&&oe.userAgentData?oe.userAgentData:void 0,Vs=function(t,n){var r={},i=n;if(!en(n)){i={};for(var o in n)for(var a in n[o])i[a]=n[o][a].concat(i[a]?i[a]:[])}for(var s in t)r[s]=i[s]&&i[s].length%2===0?i[s].concat(t[s]):t[s];return r},Zt=function(t){for(var n={},r=0;r<t.length;r++)n[t[r].toUpperCase()]=t[r];return n},Un=function(t,n){if(U(t)===ot&&t.length>0){for(var r in t)if(Te(t[r])==Te(n))return!0;return!1}return dt(t)?Te(n).indexOf(Te(t))!==-1:!1},en=function(t,n){for(var r in t)return/^(browser|cpu|device|engine|os)$/.test(r)||(n?en(t[r]):!1)},dt=function(t){return U(t)===In},Wn=function(t){if(t){for(var n=[],r=He(/\\?\"/g,t).split(","),i=0;i<r.length;i++)if(r[i].indexOf(";")>-1){var o=Tt(r[i]).split(";v=");n[i]={brand:o[0],version:o[1]}}else n[i]=Tt(r[i]);return n}},Te=function(t){return dt(t)?t.toLowerCase():t},$n=function(t){return dt(t)?He(/[^\d\.]/g,t).split(".")[0]:void 0},Oe=function(t){for(var n in t){var r=t[n];U(r)==ot&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this},He=function(t,n){return dt(n)?n.replace(t,it):n},Lt=function(t){return He(/\\?\"/g,t)},Tt=function(t,n){if(dt(t))return t=He(/^\s\s*/,t),U(n)===Ce?t:t.substring(0,Rn)},ui=function(t,n){if(!(!t||!n))for(var r=0,i,o,a,s,c,d;r<n.length&&!c;){var l=n[r],u=n[r+1];for(i=o=0;i<l.length&&!c&&l[i];)if(c=l[i++].exec(t),c)for(a=0;a<u.length;a++)d=c[++o],s=u[a],U(s)===ot&&s.length>0?s.length===2?U(s[1])==Yt?this[s[0]]=s[1].call(this,d):this[s[0]]=s[1]:s.length===3?U(s[1])===Yt&&!(s[1].exec&&s[1].test)?this[s[0]]=d?s[1].call(this,d,s[2]):void 0:this[s[0]]=d?d.replace(s[1],s[2]):void 0:s.length===4&&(this[s[0]]=d?s[3].call(this,d.replace(s[1],s[2])):void 0):this[s]=d||void 0;r+=2}},Ot=function(t,n){for(var r in n)if(U(n[r])===ot&&n[r].length>0){for(var i=0;i<n[r].length;i++)if(Un(n[r][i],t))return r===Xr?void 0:r}else if(Un(n[r],t))return r===Xr?void 0:r;return n.hasOwnProperty("*")?n["*"]:t},fi={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},hi={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},pi={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[b,lt+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[b,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[b,g],[/opios[\/ ]+([\w\.]+)/i],[g,[b,xt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[b,xt+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[b,xt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[b,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[g,[b,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[b,g],[/quark(?:pc)?\/([-\w\.]+)/i],[g,[b,"Quark"]],[/\bddg\/([\w\.]+)/i],[g,[b,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[b,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[b,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[b,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[b,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[b,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[b,"Smart "+oi+St]],[/(avast|avg)\/([\w\.]+)/i],[[b,/(.+)/,"$1 Secure"+St],g],[/\bfocus\/([\w\.]+)/i],[g,[b,_t+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[b,xt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[b,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[b,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[b,xt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[b,"MIUI"+St]],[/fxios\/([\w\.-]+)/i],[g,[b,lt+_t]],[/\bqihoobrowser\/?([\w\.]*)/i],[g,[b,"360"]],[/\b(qq)\/([\w\.]+)/i],[[b,/(.+)/,"$1Browser"],g],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[b,/(.+)/,"$1"+St],g],[/samsungbrowser\/([\w\.]+)/i],[g,[b,Et+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[g,[b,di+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[b,di+" Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[b,g],[/(lbbrowser|rekonq)/i],[b],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[g,b],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[b,li],g,[v,gt]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[b,g,[v,gt]],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[b,"GSA"],[v,gt]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[b,"TikTok"],[v,gt]],[/\[(linkedin)app\]/i],[b,[v,gt]],[/(chromium)[\/ ]([-\w\.]+)/i],[b,g],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[b,ci+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[b,ci+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[b,"Android"+St]],[/chrome\/([\w\.]+) mobile/i],[g,[b,lt+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[b,g],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[g,[b,lt+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[b,lt+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[g,b],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[b,[g,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[b,g],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[b,lt+_t],g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[b,"Netscape"],g],[/(wolvic|librewolf)\/([\w\.]+)/i],[b,g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[b,_t+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[b,[g,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[b,[g,/[^\d\.]+./,it]]],cpu:[[/\b(?:(amd|x|x86[-_]?|wow|win)64)\b/i],[[ie,"amd64"]],[/(ia32(?=;))/i,/((?:i[346]|x)86)[;\)]/i],[[ie,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[ie,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[ie,"armhf"]],[/windows (ce|mobile); ppc;/i],[[ie,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[ie,/ower/,it,Te]],[/(sun4\w)[;\)]/i],[[ie,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[ie,Te]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[E,[x,Et],[v,V]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[E,[x,Et],[v,q]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[E,[x,yt],[v,q]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[E,[x,yt],[v,V]],[/(macintosh);/i],[E,[x,yt]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[E,[x,si],[v,q]],[/(?:honor)([-\w ]+)[;\)]/i],[E,[x,Ws],[v,q]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[E,[x,ii],[v,V]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[E,[x,ii],[v,q]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[E,/_/g," "],[x,Bn],[v,q]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[E,/_/g," "],[x,Bn],[v,V]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[E,[x,"OPPO"],[v,q]],[/\b(opd2\d{3}a?) bui/i],[E,[x,"OPPO"],[v,V]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[E,[x,"Vivo"],[v,q]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[E,[x,"Realme"],[v,q]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[E,[x,ai],[v,q]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[E,[x,ai],[v,V]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[E,[x,jn],[v,V]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[E,[x,jn],[v,q]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[E,[x,oi],[v,V]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[E,/_/g," "],[x,"Nokia"],[v,q]],[/(pixel c)\b/i],[E,[x,qe],[v,V]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[E,[x,qe],[v,q]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[E,[x,Xt],[v,q]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[E,"Xperia Tablet"],[x,Xt],[v,V]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[E,[x,"OnePlus"],[v,q]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[E,[x,Kt],[v,V]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[E,/(.+)/g,"Fire Phone $1"],[x,Kt],[v,q]],[/(playbook);[-\w\),; ]+(rim)/i],[E,x,[v,V]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[E,[x,ri],[v,q]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[E,[x,ni],[v,V]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[E,[x,ni],[v,q]],[/(nexus 9)/i],[E,[x,"HTC"],[v,V]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[x,[E,/_/g," "],[v,q]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[E,[x,"TCL"],[v,V]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[E,[x,"TCL"],[v,q]],[/(itel) ((\w+))/i],[[x,Te],E,[v,Ot,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[E,[x,"Acer"],[v,V]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[E,[x,"Meizu"],[v,q]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[E,[x,"Ulefone"],[v,q]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[E,[x,"Energizer"],[v,q]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[E,[x,"Cat"],[v,q]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[E,[x,"Smartfren"],[v,q]],[/droid.+; (a(?:015|06[35]|142p?))/i],[E,[x,"Nothing"],[v,q]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[x,E,[v,q]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[x,E,[v,V]],[/(surface duo)/i],[E,[x,Qt],[v,V]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[E,[x,"Fairphone"],[v,q]],[/(shield[\w ]+) b/i],[E,[x,"Nvidia"],[v,V]],[/(sprint) (\w+)/i],[x,E,[v,q]],[/(kin\.[onetw]{3})/i],[[E,/\./g," "],[x,Qt],[v,q]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[E,[x,qn],[v,V]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[E,[x,qn],[v,q]],[/smart-tv.+(samsung)/i],[x,[v,Z]],[/hbbtv.+maple;(\d+)/i],[[E,/^/,"SmartTV"],[x,Et],[v,Z]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[x,jn],[v,Z]],[/(apple) ?tv/i],[x,[E,yt+" TV"],[v,Z]],[/crkey.*devicetype\/chromecast/i],[[E,Re+" Third Generation"],[x,qe],[v,Z]],[/crkey.*devicetype\/([^/]*)/i],[[E,/^/,"Chromecast "],[x,qe],[v,Z]],[/fuchsia.*crkey/i],[[E,Re+" Nest Hub"],[x,qe],[v,Z]],[/crkey/i],[[E,Re],[x,qe],[v,Z]],[/droid.+aft(\w+)( bui|\))/i],[E,[x,Kt],[v,Z]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[E,[x,si],[v,Z]],[/(bravia[\w ]+)( bui|\))/i],[E,[x,Xt],[v,Z]],[/(mitv-\w{5}) bui/i],[E,[x,Bn],[v,Z]],[/Hbbtv.*(technisat) (.*);/i],[x,E,[v,Z]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[x,Tt],[E,Tt],[v,Z]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,Z]],[/(ouya)/i,/(nintendo) (\w+)/i],[x,E,[v,at]],[/droid.+; (shield) bui/i],[E,[x,"Nvidia"],[v,at]],[/(playstation \w+)/i],[E,[x,Xt],[v,at]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[E,[x,Qt],[v,at]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[E,[x,Et],[v,bt]],[/((pebble))app/i],[x,E,[v,bt]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[E,[x,yt],[v,bt]],[/droid.+; (wt63?0{2,3})\)/i],[E,[x,qn],[v,bt]],[/droid.+; (glass) \d/i],[E,[x,qe],[v,Cn]],[/(pico) (4|neo3(?: link|pro)?)/i],[x,E,[v,Cn]],[/; (quest( \d| pro)?)/i],[E,[x,li],[v,Cn]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[x,[v,Pn]],[/(aeobc)\b/i],[E,[x,Kt],[v,Pn]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[E,[v,q]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[E,[v,V]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,V]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,q]],[/(android[-\w\. ]{0,9});.+buil/i],[E,[x,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[b,$s+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[b,g],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[b,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[b,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,b]],os:[[/microsoft (windows) (vista|xp)/i],[b,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[b,[g,Ot,fi]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,Ot,fi],[b,Hn]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[b,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[b,"macOS"],[g,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[g,[b,Re+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[g,[b,Re+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[g,[b,Re+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[g,[b,Re+" Linux"]],[/crkey\/([\d\.]+)/i],[g,[b,Re]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,b],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[b,g],[/\(bb(10);/i],[g,[b,ri]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[b,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[b,_t+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[b,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[b,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[b,"Chrome OS"],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[b,g],[/(sunos) ?([\w\.\d]*)/i],[[b,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[b,g]]},tn=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Oe.call(e.init,[[ce,[b,g,vt,v]],[xe,[ie]],[be,[v,E,x]],[Le,[b,g]],[fe,[b,g]]]),Oe.call(e.isIgnore,[[ce,[g,vt]],[Le,[g]],[fe,[g]]]),Oe.call(e.isIgnoreRgx,[[ce,/ ?browser$/i],[fe,/ ?os$/i]]),Oe.call(e.toString,[[ce,[b,g]],[xe,[ie]],[be,[x,E]],[Le,[b,g]],[fe,[b,g]]]),e}(),Gs=function(t,n){var r=tn.init[n],i=tn.isIgnore[n]||0,o=tn.isIgnoreRgx[n]||0,a=tn.toString[n]||0;function s(){Oe.call(this,r)}return s.prototype.getItem=function(){return t},s.prototype.withClientHints=function(){return Me?Me.getHighEntropyValues(ti).then(function(c){return t.setCH(new mi(c,!1)).parseCH().get()}):t.parseCH().get()},s.prototype.withFeatureCheck=function(){return t.detectFeature().get()},n!=ct&&(s.prototype.is=function(c){var d=!1;for(var l in this)if(this.hasOwnProperty(l)&&!Un(i,l)&&Te(o?He(o,this[l]):this[l])==Te(o?He(o,c):c)){if(d=!0,c!=Ce)break}else if(c==Ce&&d){d=!d;break}return d},s.prototype.toString=function(){var c=it;for(var d in a)U(this[a[d]])!==Ce&&(c+=(c?" ":it)+this[a[d]]);return c||Ce}),Me||(s.prototype.then=function(c){var d=this,l=function(){for(var f in d)d.hasOwnProperty(f)&&(this[f]=d[f])};l.prototype={is:s.prototype.is,toString:s.prototype.toString};var u=new l;return c(u),u}),new s};function mi(e,t){if(e=e||{},Oe.call(this,ti),t)Oe.call(this,[[Mn,Wn(e[Pe])],[Dn,Wn(e[Ds])],[q,/\?1/.test(e[qs])],[E,Lt(e[Hs])],[st,Lt(e[ei])],[Nn,Lt(e[Us])],[ie,Lt(e[Ns])],[Be,Wn(e[Bs])],[Jt,Lt(e[js])]]);else for(var n in e)this.hasOwnProperty(n)&&U(e[n])!==Ce&&(this[n]=e[n])}function wi(e,t,n,r){return this.get=function(i){return i?this.data.hasOwnProperty(i)?this.data[i]:void 0:this.data},this.set=function(i,o){return this.data[i]=o,this},this.setCH=function(i){return this.uaCH=i,this},this.detectFeature=function(){if(oe&&oe.userAgent==this.ua)switch(this.itemType){case ce:oe.brave&&U(oe.brave.isBrave)==Yt&&this.set(b,"Brave");break;case be:!this.get(v)&&Me&&Me[q]&&this.set(v,q),this.get(E)=="Macintosh"&&oe&&U(oe.standalone)!==Ce&&oe.maxTouchPoints&&oe.maxTouchPoints>2&&this.set(E,"iPad").set(v,V);break;case fe:!this.get(b)&&Me&&Me[st]&&this.set(b,Me[st]);break;case ct:var i=this.data,o=function(s){return i[s].getItem().detectFeature().get()};this.set(ce,o(ce)).set(xe,o(xe)).set(be,o(be)).set(Le,o(Le)).set(fe,o(fe))}return this},this.parseUA=function(){return this.itemType!=ct&&ui.call(this.data,this.ua,this.rgxMap),this.itemType==ce&&this.set(vt,$n(this.get(g))),this},this.parseCH=function(){var i=this.uaCH,o=this.rgxMap;switch(this.itemType){case ce:var a=i[Dn]||i[Mn],s;if(a)for(var c in a){var d=He(/(Google|Microsoft) /,a[c].brand||a[c]),l=a[c].version;!/not.a.brand/i.test(d)&&(!s||/chrom/i.test(s)&&!/chromi/i.test(d))&&(this.set(b,d).set(g,l).set(vt,$n(l)),s=d)}break;case xe:var u=i[ie];u&&(u&&i[Jt]=="64"&&(u+="64"),ui.call(this.data,u+";",o));break;case be:if(i[q]&&this.set(v,q),i[E]&&this.set(E,i[E]),i[E]=="Xbox"&&this.set(v,at).set(x,Qt),i[Be]){var h;if(typeof i[Be]!="string")for(var f=0;!h&&f<i[Be].length;)h=Ot(i[Be][f++],hi);else h=Ot(i[Be],hi);this.set(v,h)}break;case fe:var F=i[st];if(F){var B=i[Nn];F==Hn&&(B=parseInt($n(B),10)>=13?"11":"10"),this.set(b,F).set(g,B)}this.get(b)==Hn&&i[E]=="Xbox"&&this.set(b,"Xbox").set(g,void 0);break;case ct:var z=this.data,N=function(H){return z[H].getItem().setCH(i).parseCH().get()};this.set(ce,N(ce)).set(xe,N(xe)).set(be,N(be)).set(Le,N(Le)).set(fe,N(fe))}return this},Oe.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",n],["data",Gs(this,e)]]),this}function ke(e,t,n){if(U(e)===ot?(en(e,!0)?(U(t)===ot&&(n=t),t=e):(n=e,t=void 0),e=void 0):U(e)===In&&!en(t,!0)&&(n=t,t=void 0),n&&U(n.append)===Yt){var r={};n.forEach(function(c,d){r[d]=c}),n=r}if(!(this instanceof ke))return new ke(e,t,n).getResult();var i=U(e)===In?e:n&&n[Zr]?n[Zr]:oe&&oe.userAgent?oe.userAgent:it,o=new mi(n,!0),a=t?Vs(pi,t):pi,s=function(d){return d==ct?function(){return new wi(d,i,a,o).set("ua",i).set(ce,this.getBrowser()).set(xe,this.getCPU()).set(be,this.getDevice()).set(Le,this.getEngine()).set(fe,this.getOS()).get()}:function(){return new wi(d,i,a[d],o).parseUA().get()}};return Oe.call(this,[["getBrowser",s(ce)],["getCPU",s(xe)],["getDevice",s(be)],["getEngine",s(Le)],["getOS",s(fe)],["getResult",s(ct)],["getUA",function(){return i}],["setUA",function(c){return dt(c)&&(i=c.length>Rn?Tt(c,Rn):c),this}]]).setUA(i),this}ke.VERSION=Ms,ke.BROWSER=Zt([b,g,vt,v]),ke.CPU=Zt([ie]),ke.DEVICE=Zt([E,x,v,at,q,Z,V,bt,Pn]),ke.ENGINE=ke.OS=Zt([b,g]);const Ys=({name:e,value:t,expireDate:n,secure:r,path:i,domain:o})=>{const a=n?` Expires=${n==null?void 0:n.toUTCString()};`:"",s=i?` Path=${i};`:"",c=o?` Domain=${o};`:"",d=r===!1?"":" Secure;";document.cookie=`${e}=${t};${a}${s}${c}${d}`},Ue=e=>{if(typeof document!="undefined"){const t=document.cookie.match(`(^|;) ?${e}=([^;]*)(;|$)`);return t?t[2]:null}return null};let zn={vanillaSession:null,loggedIn:!1,hybridId:null,kiosqId:null,userGrantStatus:null,blueConicId:null,gaClientId:null,gclid:null,sha256_email_address:null,screenWidth:null,browser:{type:null,family:null,version:null,major_version:null},os:{name:null,version:null},device:{model:null,vendor:null},cpu:{architecture:null}},vi=null;const Js=()=>{var t;(((t=window==null?void 0:window.bordeaux)==null?void 0:t.hybridId)||Promise.resolve(void 0)).then(n=>{vi=n!=null?n:null}).catch(n=>{console.error("%c FTE ","background: #9306F9; color: #ffffff","hybridID promise error",n)})},Ks=()=>new ke(window.navigator.userAgent).getResult(),Qs=()=>{var r,i,o,a,s,c,d,l,u,h,f,F,B,z,N,P,H,Q,$,p,L,k,_,A,y,M,O,j;let e=Ks();const t=Ue("kiosq_user");let n=null;typeof t!="undefined"&&((o=(i=(r=window.FUTR)==null?void 0:r.Connect)==null?void 0:i.Auth)!=null&&o.parseJwt)&&(n=window.FUTR.Connect.Auth.parseJwt(t)),zn={vanillaSession:null,loggedIn:!!((s=(a=window==null?void 0:window.FUTR)==null?void 0:a.Kiosq)!=null&&s.User),hybridId:vi,kiosqId:((l=(d=(c=window==null?void 0:window.FUTR)==null?void 0:c.Kiosq)==null?void 0:d.User)==null?void 0:l.sub)||null,userGrantStatus:(n==null?void 0:n.user_grant_status)||null,blueConicId:((f=(h=(u=window.FUTR)==null?void 0:u.Connect)==null?void 0:h.Auth)==null?void 0:f.BlueconicId)||null,gaClientId:document.cookie.replace(/(?:(?:^|.*;\s*)_ga\s*\=\s*([^;]*).*$)|^.*$/,"$1")||null,gclid:sessionStorage.getItem("gclid")||null,sha256_email_address:(z=(B=(F=window==null?void 0:window.FUTR)==null?void 0:F.Kiosq)==null?void 0:B.User)!=null&&z.email?Rs.sha256((H=(P=(N=window==null?void 0:window.FUTR)==null?void 0:N.Kiosq)==null?void 0:P.User)==null?void 0:H.email):null,screenWidth:(($=(Q=window==null?void 0:window.utils)==null?void 0:Q.screenSizes)==null?void 0:$.getScreenWidth())||null,browser:{type:((p=e==null?void 0:e.browser)==null?void 0:p.name)||null,family:((L=e==null?void 0:e.engine)==null?void 0:L.name)||null,version:((k=e==null?void 0:e.browser)==null?void 0:k.version)||null,major_version:((_=e.browser)==null?void 0:_.major)||null},os:{name:((A=e==null?void 0:e.os)==null?void 0:A.name)||null,version:((y=e==null?void 0:e.os)==null?void 0:y.version)||null},device:{model:((M=e==null?void 0:e.device)==null?void 0:M.model)||null,vendor:((O=e==null?void 0:e.device)==null?void 0:O.vendor)||null},cpu:{architecture:((j=e==null?void 0:e.cpu)==null?void 0:j.architecture)||null}}},bi=()=>{let e=Zs();return Xs(e),zn.vanillaSession=e,zn},Xs=e=>{window.bordeaux.cmd.push(()=>{window.bordeaux.setTargeting({vanillaSession:e})})},Zs=()=>{const e=Ue("FTR_Vanilla_Session_ID"),t=Ue("FTR_Vanilla_User_Is_Active");if(e&&t)return e;const n=Ps();return Ys({name:"FTR_Vanilla_Session_ID",value:n,path:"/",secure:!0}),n},Ae={cls:null,fcp:null,fid:null,lcp:null,lcpElement:null,inp:null,inpEventTarget:null,ttfb:null,lt:null},ec=e=>{const t=Math.round(e.value),n=e.attribution.interactionTarget||null;Ae.inp=t,Ae.inpEventTarget=n},tc=e=>{const t=Math.round(e.value*1e6);Ae.cls=t},nc=e=>{const t=Math.round(e.value);Ae.fcp=t},rc=e=>{const t=Math.round(e.value),n=e.attribution.element||null;Ae.lcp=t,Ae.lcpElement=n},ic=e=>{const t=Math.round(e.value);Ae.ttfb=t},oc=e=>{const t=Math.round(e);Ae.lt=t};(()=>{if(xs(ec,{reportAllChanges:!0,durationThreshold:0}),cs(tc,{reportAllChanges:!0}),Fr(nc),Ls(rc,{reportAllChanges:!0}),ds(ic),PerformanceObserver){let e=0;new PerformanceObserver(t=>{t.getEntries().forEach(()=>{e++,oc(e)})}).observe({type:"longtask",buffered:!0})}window.addEventListener("beforeunload",()=>ne(this,null,function*(){const e=window.reduxStore.getState().analytics.freyrData,t=!window.disableBordeaux,n=K({page:e.page,content:e.content,site:e.site,webvitals:Ae,user:bi()},t&&window.bordeaux?{bordeauxExperimentId:yield window.bordeaux.getExperimentId()}:{});window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"beforeUnload",eventObject:n})}))})();var ac=function(t){var n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(n)},sc=function(){T.measure(function(){var t=Array.from(document.getElementsByTagName("label"));t.forEach(function(n){n.childNodes.length&&T.mutate(function(){n.onclick=function(r){r!=null&&r.forwardedTouchEvent&&r.target.nodeName!=="LABEL"&&ac(n)}})})})};sc();var cc=function(){T.measure(function(){var t=window.location.pathname,n=document.querySelectorAll(".menu-item");n.forEach(function(r){var i;((i=r.childNodes[0])===null||i===void 0?void 0:i.pathname)===t&&T.mutate(function(){r.classList.add("active")})})})};cc();var Vn=document.querySelector(".search-checkbox"),lc=Vn.parentNode.querySelector(".search-input");Vn.onchange=function(){Vn.checked&&lc.focus()};var Gn=60*1e3,Yn=Gn*60,kt=Yn*24,gi=kt*7,yi=kt*30,Ei=kt*365,Si=function(){return typeof window!="undefined"&&window.ffte&&window.ffte.lang?window.ffte.lang:"en-US"},dc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Date,i=new Date(r).setDate(r.getDate()-3);return t>i&&t<r?uc(t,n,r):_i(t,n,!1)},_i=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=r?{timeStyle:"short"}:{},o=new Intl.DateTimeFormat(n||Si(),hn({dateStyle:"long"},i));return o.format(t)},uc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Date.now(),i=r-t,o=new Intl.RelativeTimeFormat(n||Si(),{numeric:"auto"});return i<Gn?o.format(-Math.round(i/1e3),"second"):i<Yn?o.format(-Math.round(i/Gn),"minute"):i<kt?o.format(-Math.round(i/Yn),"hour"):i<gi?o.format(-Math.round(i/kt),"day"):i<yi?o.format(-Math.round(i/gi),"week"):i<Ei?o.format(-Math.round(i/yi),"month"):o.format(-Math.round(i/Ei),"year")},xi=function(t,n){Array.prototype.forEach.call(t,function(r){T.mutate(function(){r.innerHTML=n(new Date(r.getAttribute("datetime")))})})},Li=function(){xi(document.querySelectorAll("time.relative-date"),function(t){return dc(t)}),xi(document.querySelectorAll("time.live-feed-date"),function(t){return _i(t,null,!0)})};(function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0}});window.addEventListener("test",null,t)}catch(r){}var n=function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window,s=!1,c=function(){s||(s=!0,requestAnimationFrame(function(){a.dispatchEvent(new CustomEvent(o)),s=!1}))};a.addEventListener(i,c,i==="scroll"&&e?{passive:!0}:!1)};n("scroll","optimizedScroll"),n("resize","optimizedResize")})();var fc=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0};T.mutate(function(){fc()?document.body.classList.add("touch"):document.body.classList.add("no-touch")}),Li();const he=window==null?void 0:window.vanilla.featureFlags;((Ko=(Jo=window.reduxStore)==null?void 0:Jo.getState())==null?void 0:Ko.vanilla.isArticle)?(W(()=>Promise.resolve().then(()=>Xc),void 0),W(()=>Promise.resolve().then(()=>al),void 0),W(()=>Promise.resolve().then(()=>sl),void 0)):(W(()=>Promise.resolve().then(()=>cl),void 0),W(()=>Promise.resolve().then(()=>ll),void 0),W(()=>Promise.resolve().then(()=>hl),void 0)),(Qo=he==null?void 0:he.comments)!=null&&Qo.enabled&&W(()=>Promise.resolve().then(()=>ml),void 0),(Xo=he==null?void 0:he.reviewOrdering)!=null&&Xo.enabled&&W(()=>Promise.resolve().then(()=>wl),void 0),(Zo=he==null?void 0:he.gamesReviewScoreLoad)!=null&&Zo.enabled&&W(()=>Promise.resolve().then(()=>bl),void 0),(ea=he==null?void 0:he.readMore)!=null&&ea.enabled&&W(()=>Promise.resolve().then(()=>gl),void 0);const We={jwplayer:{jwplayerCarousel:{intersectionObserver:{enabled:!0,offset:"800px"},autoplay:{mobile:!0,desktop:!0}},jwplayerEditorial:{intersectionObserver:{enabled:!0,offset:"800px"},autoplay:{mobile:!0,desktop:!0}}},openAheadEmbeds:{enabled:!1,minDistance:2e3,maxDistance:5e3}},Ti=(e,t)=>({intersectionObserver:e.intersectionObserver?K(K({},t.intersectionObserver),e.intersectionObserver):t.intersectionObserver,autoplay:e.autoplay?K(K({},t.autoplay),e.autoplay):t.autoplay}),hc=e=>{var t,n;return{jwplayerCarousel:(t=e.jwplayer)!=null&&t.jwplayerCarousel?Ti(e.jwplayer.jwplayerCarousel,We.jwplayer.jwplayerCarousel):We.jwplayer.jwplayerCarousel,jwplayerEditorial:(n=e.jwplayer)!=null&&n.jwplayerEditorial?Ti(e.jwplayer.jwplayerEditorial,We.jwplayer.jwplayerEditorial):We.jwplayer.jwplayerEditorial}},pc=e=>{let t=e.openAheadEmbeds;return t||(t={}),t!=null&&t.enabled||(t.enabled=We.openAheadEmbeds.enabled),t!=null&&t.minDistance||(t.minDistance=We.openAheadEmbeds.minDistance),t!=null&&t.maxDistance||(t.maxDistance=We.openAheadEmbeds.maxDistance),t},nn=e=>{let t={};return window.featureVariables||(window.featureVariables={}),e==="jwplayer"&&(t=hc(window.featureVariables)),e==="openAheadEmbeds"&&(t=pc(window.featureVariables)),window.featureVariables[e]=t,t},ut={STICKY:"STICKY",AUTOPLAY:"AUTOPLAY"},Oi=nn("jwplayer"),mc=Oi.jwplayerCarousel.autoplay.desktop,wc=Oi.jwplayerCarousel.autoplay.mobile,vc={STICKY:{mobile:{active:!0,intervalCap:0},desktop:{active:!0,intervalCap:0}},AUTOPLAY:{mobile:{active:wc,intervalCap:0},desktop:{active:mc,intervalCap:0}}},bc=(e,t)=>Ue(`FTR_VIDEO_${e}_${t}`)!==null,gc=()=>window.innerWidth<=450;function yc(e,t,n){const r=new Date(Date.now()+n*6e4).toUTCString();document.cookie=`FTR_VIDEO_${e}_${t}=0;expires=${r};path=/`}const ki=e=>{const t=gc()?"mobile":"desktop",n=vc[e][t];if(n===void 0)return!1;const r=n.active,i=n.intervalCap!==0,o=bc(e,t);return r&&!i?!0:r&&i?o?!1:(yc(e,t,n.intervalCap),!0):!1},Ai=e=>{switch(e){case ut.STICKY:return ki(ut.STICKY);case ut.AUTOPLAY:return ki(ut.AUTOPLAY);default:return!1}};function De(e,t){var i,o,a,s,c,d,l;const n={action:e,reason:null};let r={};if(window.jwplayer){const u=window.jwplayer();if(u){const h=u.id;if(h){const f=window.jwplayer(h);if(f){const F=(o=(i=f.getPlaylistItem())==null?void 0:i.sources[0])==null?void 0:o.filesize,B=(s=(a=f.getVisualQuality())==null?void 0:a.level)==null?void 0:s.height;r={playerId:h.split("_")[2],playlistId:(l=(d=(c=f.getPlaylistItem())==null?void 0:c.feedid)!=null?d:h.split("_")[1])!=null?l:null,mediaDuration:Math.round(f.getDuration()),mediaSize:F!=null?F:null,mediaQuality:B!=null?B:null}}}}}window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"videoEvent",eventObject:{video:K(K({},n),r)}})}function Ec(){return ne(this,null,function*(){var t;const e=bi();try{e.hybridId=yield(t=window==null?void 0:window.bordeaux)==null?void 0:t.hybridId}catch(n){console.error("Error fetching hybridId",n)}window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"userEvent",eventObject:{user:K({},e)}})})}function Sc(){window.bordeaux=window.bordeaux||{},window.bordeaux.cmd=window.bordeaux.cmd||[],window.bordeaux.cmd.push(()=>Ec())}const rn="jwplayerVideoPresent",Jn="jwplayerCodeFired",Fi="jwplayerReady",Kn="jwplayerStart",Ii="jwplayerFirstAdImpression",Ci="jwSlotInView",Pi={[rn]:!1,[Fi]:!1,[Jn]:!1,[Kn]:!1,[Ii]:!1,[Ci]:!1},ge=e=>{Pi[e]||(De(e),Pi[e]=!0)},_c=e=>{const t={rootMargin:"-50% 0% -50% 0%",threshold:[0]};new IntersectionObserver((r,i)=>{r.forEach(o=>{o.isIntersecting&&(i.unobserve(e),ge(Ci))})},t).observe(e)},Qn=()=>{Array.from(document.querySelectorAll("[class*=future__jwplayer], [class*=widget-dynamic-listv2-videoplayer]")).forEach(t=>{_c(t)})},Xn=()=>{const e=navigator.userAgent.toLowerCase();return(e.indexOf("applewebkit")!==-1||e.indexOf("safari")!==-1)&&e.indexOf("chrome")===-1},xc={space:{enabled:!0,name:"Space.com",playlistID:"9wzCTV4g",style:{"text-align":"right","background-color":"black",padding:"10px",color:"white"}}},Lc=e=>{const t="àáäâãåăæąçćčđďèéěėëêęğǵḧìíïîįłḿǹńňñòóöôœøṕŕřßşśšșťțùúüûǘůűūųẃẍÿýźžż·/_,:;",n="aaaaaaaaacccddeeeeeeegghiiiiilmnnnnooooooprrsssssttuuuuuuuuuwxyyzzz------",r=new RegExp(t.split("").join("|"),"g");return e.toLowerCase().replace(/\s+/g,"-").replace(r,i=>n.charAt(t.indexOf(i))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},Ri=(e,t)=>{const n=window.ffte.site,r=xc[n];if(!r||r.enabled===!1)return;const i=document.querySelector("#"+e);if(!i)return;const o=t.playlist[0]?t.playlist[0].mediaid:null;if(!o)return;const a=t.playlist[0]?Lc(t.playlist[0].title):null;if(!a)return;const s=document.createElement("a");s.href=`https://videos.${n}.com/m/${o}/${a}?list=${r.playlistID}`,s.target="_blank",s.innerText=`Click here for more ${r.name} videos...`;const c=document.createElement("div");c.classList.add("carousel-showcase"),Object.assign(c.style,r.style),c.appendChild(s),i.parentNode&&i.parentNode.insertBefore(c,i)},Mi=e=>{ge(Fi),window.document.dispatchEvent(new CustomEvent("jwplayerInstanceLoaded",{detail:{id:e}}))},Di=({player:e})=>{const t=window.dfp_config?{source:window.dfp_config.source||"",kw:window.dfp_config.keywords.split(","),vertical:window.dfp_config.vertical.split(","),pagetype:(window.dfp_config.page_type||"").replace(",","-"),manu:window.dfp_config.product_brand,articleid:window.dfp_config.article_id,sitePlatform:window.dfp_config.site_platform,category:window.dfp_config.category||"",child_category:window.dfp_config.child_category||"",grandchild_category:window.dfp_config.grandchild_category||"",brand:window.dfp_config.product_brand||"",author:window.dfp_config.author||"",template:window.dfp_config.template||"",jwplayer:!!window.dfp_config.jwplayer,sponsored:window.dfp_config.sponsored||""}:{},n=window.ffte?K({site:window.ffte.site||""},window.ffte.properties&&window.ffte.properties.id?{futureCmsId:window.ffte.properties.id}:{}):{};let r={};if(window.FEPProcess){const o=window.FEPProcess(window.FEP_object);window.resolveFEP(o),r=window.FEPSanitise({fepPrimaryProduct:o.primaryProduct,fepSecondaryProducts:o.secondaryProducts,fepCompanies:o.companies,fepCategory:o.category,fepGroups:o.groups,fepPrimaryCompany:o.primaryCompany,primaryCategory:o.primaryCategory,secondaryCategories:o.secondaryCategories,tertiaryCategories:o.tertiaryCategories,iabCategories:o.iabCategories,iabCategoryIds:o.iabCategoryIds})}const i=K(K(K({url:window.location.href,plID:e.id},t),n),r);return window.VAN&&window.VAN.abTest&&(i.vanillaVariationID=window.VAN.abTest.variationId),window.FUTR&&(i.signedIn=!!(window.FUTR.Connect&&window.FUTR.Connect.Auth&&window.FUTR.Connect.Auth.UserId),i.paywall=!!(window.FUTR.Kiosq&&window.FUTR.Kiosq.hasBarrier)),i},Ni=()=>ne(this,null,function*(){if(yield window.reliableConsentGiven||Promise.resolve(),window.disableBordeaux===!0)throw new Error("Bordeaux is disabled");if(!(window.champagne!==void 0))throw new Error("Champagne does not exist");return window.champagne.cmd=window.champagne.cmd||[],new Promise(n=>window.champagne.cmd.push(n))}),ji=(e,t,n)=>{ge(Jn),Ni().then(()=>window.champagne.setupJWPlayer(e,n,Di)).catch(r=>{console.error("%c FTE ","background: #9306F9; color: #ffffff","Champagne setup failed:",r),e.setup(n)}).then(()=>{e.on("ready",()=>Mi(t))}).catch(r=>{console.error("%c FTE ","background: #9306F9; color: #ffffff","JWPlayer setup failed:",r)})},Tc=e=>t=>{var i;t.advertising!==void 0&&(t.advertising.vpaidcontrols=!0,t.advertising.autoplayadsmuted=!0);const n=Ai(ut.AUTOPLAY);return t.mute="true",n||(t.autostart="false"),e>0&&(t.autostart="false"),!((i=window.ffte.properties)!=null&&i.articleControlTag.includes("van-block-sticky-video"))&&(t.floating={}),t},Oc=(e,t,n,r)=>{const i=r(e);if(i===void 0)return;Ri(e,t);const o=n(t);ji(i,e,o)},kc=(e,t,n)=>{if(window.IntersectionObserver){const r={rootMargin:`0px 0px ${n.jwplayerEditorial.intersectionObserver.offset} 0px`,threshold:[0]};new IntersectionObserver((o,a)=>{o.forEach(s=>{if(s.isIntersecting){const c=s.target;a.unobserve(c),e()}})},r).observe(t)}else e()},Ac=(e,t)=>{const n=e.defaults;return Object.assign({},n,{playlist:t.playlist})},Bi=(e,t)=>new Promise(n=>{const r=t.firstElementChild;if(r===null)return;const i=e.split("_")[2],o=document.createElement("script");o.setAttribute("src",`https://content.jwplatform.com/libraries/${i}.js`),o.setAttribute("async",""),o.onload=()=>n(window.jwplayer),t.insertBefore(o,r)}),Fc=(e,t,n,r)=>()=>{const i=Ac(r,t);Oc(e,i,n,r)},Ic=e=>{const t=e.split("_")[1];return fetch(`https://cdn.jwplayer.com/v2/playlists/${t}?format=json`).then(n=>n.ok?n.json():fetch(`https://cdn.jwplayer.com/v2/media/${t}?format=json`).then(r=>r.json())).catch(n=>console.error("%c FTE ","background: #9306F9; color: #ffffff",n))},Cc=e=>{const t=document.querySelectorAll(".future__jwplayer");if(t.length===0)return;ge(rn),Qn();const n=Array.prototype.slice.call(t);n.map(i=>i.querySelector("div")).filter(i=>i!==null).map(i=>i.id).forEach((i,o)=>{Promise.all([Ic(i),Bi(i,n[o])]).then(a=>{const s=a[0],c=a[1],d=Fc(i,s,Tc(o),c),l=nn("jwplayer"),u=l.jwplayerEditorial.intersectionObserver.enabled;window.IntersectionObserver&&!Xn()&&u?kc(d,n[o],l):d()}).catch(a=>console.error("%c FTE ","background: #9306F9; color: #ffffff",`Failed to get request jwplayer assets. ${a}`))})},qi=e=>{window.jwplayerInit=()=>qi(),Cc()};window.reliableDOMContentLoaded.then(()=>{qi()}).catch(e=>console.log(e));/**
  shave - Shave is a javascript plugin that truncates multi-line text within a html element based on set max height
  @version v5.0.4
  @link https://github.com/yowainwright/shave#readme
  @author Jeff Wainwright <yowainwright@gmail.com> (jeffry.in)
  @license MIT
**/function Hi(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function Ui(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Pc(e){return typeof e=="string"?Ui([],Hi(document.querySelectorAll(e)),!1):"length"in e?Ui([],Hi(e),!1):[e]}function Rc(e,t,n){if(n===void 0&&(n={}),typeof t=="undefined"||isNaN(t))throw Error("maxHeight is required");var r=Pc(e);if(r.length)for(var i=n.character,o=i===void 0?"…":i,a=n.classname,s=a===void 0?"js-shave":a,c=n.spaces,d=c===void 0?!0:c,l=n.charclassname,u=l===void 0?"js-shave-char":l,h=n.link,f=h===void 0?{}:h,F=typeof d=="boolean"?d:!0,B=f&&JSON.stringify(f)!=="{}"&&f.href,z=B?"a":"span",N=0;N<r.length;N+=1){var P=r[N],H=P.style,Q=P.querySelector("."+s),$=P.textContent===void 0?"innerText":"textContent";Q&&(P.removeChild(P.querySelector("."+u)),P[$]=P[$]);var p=P[$],L=F?p.split(" "):p;if(!(L.length<2)){var k=H.height;H.height="auto";var _=H.maxHeight;if(H.maxHeight="none",P.offsetHeight<=t){H.height=k,H.maxHeight=_;continue}var A=B&&f.textContent?f.textContent:o,y=document.createElement(z),M={className:u,textContent:A};for(var O in M)y[O]=M[O],y.textContent=o;if(B)for(var j in f)y[j]=f[j];for(var D=L.length-1,J=0,Y=void 0;J<D;){Y=J+D+1>>1;var ae=L.slice(0,Y);P[$]=F?ae.join(" "):ae,P.insertAdjacentElement("beforeend",y),P.offsetHeight>t?D=Y-1:J=Y}var w=L.slice(0,D);P[$]=F?w.join(" "):w,P.insertAdjacentElement("beforeend",y);var m=L.slice(D),S=F?" "+m.join(" "):m,I=document.createTextNode(S),R=document.createElement("span");R.classList.add(s),R.style.display="none",R.appendChild(I),P.insertAdjacentElement("beforeend",R),H.height=k,H.maxHeight=_}}}const Mc=e=>e.map(t=>(t.image=Wi(t.image),t.file=Wi(t.video_url),t.images=Dc(t.images),t.sources=Nc(t.sources),t)),Wi=e=>(e=e.replace("http://","https://"),e),Dc=e=>e==null?void 0:e.map(t=>(t.src=t.src.replace("http://","https://"),t)),Nc=e=>e==null?void 0:e.map(t=>(t.file=t.file.replace("http://","https://"),t)),jc=(e,t,n,r,i,o,a,s,c)=>{const d=n.defaults,l=Object.assign({},d,{playlist:t});ge(Jn),Ni().then(()=>window.champagne.setupJWPlayer(e,l,Di)).catch(u=>{console.error("%c FTE ","background: #9306F9; color: #ffffff","Champagne setup failed:",u),e.setup(l)}).then(()=>{e.on("ready",()=>Mi(r));const u={};e==null||e.on("playlistItem",h=>{const f=h.item.mediaid,F=c[f],B=Object.keys(c).reduce((N,P)=>c[P]===0?P:N,"");if(f!==B){const N=t.reduce((p,L)=>L.id===B?L:p),P=t.reduce((p,L)=>L.id===f?L:p),H=t.reduce((p,L,k)=>L.id===B?k:p,0);zi(i,a,o,F,N),zi(i,a,o,0,P);const Q=s[F-1];Q.removeEventListener("click",u[F]);const $=$i(H,e,Q);Q.addEventListener("click",$),c[f]=0,c[B]=F}}),s.forEach((h,f)=>{const F=$i(f+1,e,h);u[f+1]=F})}).catch(u=>{console.error("%c FTE ","background: #9306F9; color: #ffffff","JWPlayer setup failed:",u)})},$i=(e,t,n)=>{const r=i=>{t==null||t.playlistItem(e),i.preventDefault()};return n.addEventListener("click",r),r},zi=(e,t,n,r,i)=>{e[r].innerHTML=i.title,r===0?n&&(n.innerHTML=i.dek,Vi(n,e)):(t[r-1].src=i.image,t[r-1].srcset=i.image)},Vi=(e,t)=>{const n=t[0],r=t[0].parentElement;if(r&&e){const i=r.offsetHeight-n.offsetHeight-60;e.style.maxHeight=`${i}px`,Rc(e,i,{character:"..."})}return e},Bc=()=>{document.querySelectorAll(".widget-dynamic-listv2.video-listing").forEach(e=>{const t=e.id,n=Mc(window.FLEXI_VIDEO_LISTING_PLAYLISTS[t]),r=e.querySelector("[id*=botr_]"),i=Array.prototype.slice.call(e.querySelectorAll(".wdn-listv2-item-content-title")),o=Array.prototype.slice.call(e.querySelectorAll(".wdn-listv2-item-lists .v2-listing-image-wrapper img")),a=Vi(e.querySelector(".wdn-listv2-item-hero .wdn-listv2-item-content-strapline"),i),s=r==null?void 0:r.id;s&&r!=null&&r.parentElement&&Bi(s,r.parentElement).then(c=>{const d=window.jwplayer(s);if(d&&n){ge(rn),Qn();const l=e.querySelectorAll(".wdn-listv2-item-lists a.wdn-listv2-item-link"),u={};n.forEach((h,f)=>{u[h.id]=f}),jc(d,n,c,s,i,a,o,l,u)}}).catch(c=>console.error("%c FTE ","background: #9306F9; color: #ffffff",`Failed to get request jwplayer assets. ${c}`))})},qc=()=>{Bc()};window.reliableDOMContentLoaded.then(()=>{qc()}).catch(e=>console.error("%c FTE ","background: #9306F9; color: #ffffff",e));const Zn=[],Hc=(e,t)=>{const n=e.getPlaylistIndex(),r=e.getPlaylist()[n].mediaid;Zn[t]!==r&&(Zn[t]=r)};let Gi=0;const Yi=[],Ji=(e,t)=>{if(e===void 0)return console.error("%c FTE ","background: #9306F9; color: #ffffff","jwplayer / ga is undefined -> jwplayer Google Analytics won't work"),!1;const n=s=>c=>c===s;if(Yi.some(n(t)))return;const r=e(t),i=t.split("_")[1];if(Zn.push(i),r===void 0)return;Hc(r,Gi),r.on("play",s=>{ge(Kn)}),r.on("adComplete",()=>De("adcomplete")),r.on("complete",()=>De("complete")),r.on("adImpression",()=>De("adplay"));let a=!1;return r.on("viewable",s=>{s.viewable&&!a&&(a=!0,De("viewable"))}),r.on("adImpression",()=>{ge(Kn),ge(Ii)}),document.addEventListener("stickyin",s=>{s.detail.id===t&&De("stickyin")}),document.addEventListener("stickyout",s=>{s.detail.id===t&&De("stickyout")}),document.addEventListener("stickyclose",s=>{s.detail.id===t&&De("stickyclose")}),Yi.push(t),Gi++,!0},Uc=e=>{const t={childList:!0},n=new MutationObserver(Se(r=>{r.forEach(i=>{const o=e.querySelector(".jwplayer");o&&window.jwplayer&&(Ji(window.jwplayer,o.id),n.disconnect())})},50));n.observe(e,t),window.reliablePageLoad.then(()=>{n.disconnect()}).catch(r=>console.error("%c FTE ","background: #9306F9; color: #ffffff",r))};document.addEventListener("jwplayerInstanceLoaded",e=>{const t=e,n=document.querySelector("#"+t.detail.id);n!==null&&(n?Ji(window.jwplayer,n.id):Uc(n))});const Wc=(e,t)=>{let n=!1;return function(){n||(e.apply(this,arguments),n=!0,setTimeout(()=>{n=!1},t))}};function we(e){var n;return{action:"click",id:e.getAttribute("data-analytics-id")||null||e.id||null,class:e.className||null,name:e.getAttribute("name")||null,text:((n=e.innerText)==null?void 0:n.trim())||null,label:e.getAttribute("analytics-label")||e.id||null,container:e.nodeName||null,url:Ki(e)}}function Ki(e){return e?e.hasAttribute("href")?e.getAttribute("href"):e.firstElementChild?Ki(e.firstElementChild):document.URL:document.URL}function ve(e){window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"elementInteraction",eventObject:{element:K({},e)}})}function er(e,t){var r;const n=(r=t.target)==null?void 0:r.closest("A");if(n){const i=we(n);ve(i)}}const $e={"search-submit":(e,t)=>{const n=we(e);n.action="submit",n.id="search";const r=e.querySelector('.search-input, .search__term, input[type="search"], input');r&&(n.label=r.value),ve(n)},"nav-item":(e,t)=>{var o;const r=((o=t.target)==null?void 0:o.closest("LI"))||e,i=we(r);ve(i)},"locale-flag-dropdown":(e,t)=>{const n=document.querySelector('[data-analytics-id="locale-flag-dropdown"]');if(!n)return;const r=we(n);r.id="locale-flag-dropdown",ve(r)},"sticky-nav":(e,t)=>{if(t.type==="scroll"){const n=we(e);n.action="scroll",ve(n)}else if(t.type==="click"){const n=t.target;if(n&&n.tagName==="A"){const r=we(n);r.action="clickInStickyNav",ve(r)}}},"more-about-inline":(e,t)=>{var r;const n=(r=t.target)==null?void 0:r.closest("li[data-analytics-id]");if(n){const i=we(n);ve(i);return}ve(we(e))},"news-article":er,"widget-inline-link":er,"homepage-link":er,"gallery-expand-image":(e,t)=>{const n=we(e);n.id="gallery-expand-image",n.action="open",ve(n)},"comment-thread":(e,t)=>{const n=we(e);n.action="visible",n.label="xenforo/disqus",ve(n)}};function $c(e,t){const n=we(e);ve(n)}function zc(e){const t=e.target;if(!t)return;const n=t.closest("[data-analytics-id]");if(!n)return;const r=n.getAttribute("data-analytics-id")||"",i=$e[r];i?i(n,e):$c(n)}function Vc(){document.querySelectorAll('[data-analytics-id="comment-thread"]').forEach(t=>{const n=new IntersectionObserver(r=>{r.forEach(i=>{var o;i.isIntersecting&&((o=$e["comment-thread"])==null||o.call($e,t,new Event("visible")),n.unobserve(i.target))})});n.observe(t)})}function Gc(){document.querySelectorAll('[data-analytics-id="sticky-nav"]').forEach(t=>{const n=t.querySelector(".sticky-nav__scroll-wrapper");n&&n.addEventListener("scroll",Wc(()=>{var r;(r=$e["sticky-nav"])==null||r.call($e,t,new Event("scroll"))},500),{capture:!0})})}function Yc(){document.addEventListener("click",zc,!0),Vc(),Gc()}window.reliableDOMContentLoaded.then(()=>{Js(),Qs(),Yc(),Sc()}).catch(e=>console.error("%c FTE ","background: #9306F9; color: #ffffff",e));const Qi=e=>{const t=e;t.preventDefault();const n=t.currentTarget,r=n.dataset.timestamp,i=`${r?`${r}&`:"?"}autoplay=1`,o=Object.assign(document.createElement("iframe"),{allow:"autoplay;",frameborder:"0",src:`https://www.youtube.com/embed/${n.dataset.ytVideoToken}${i}`,"data-lazy-src":`https://www.youtube.com/embed/${n.dataset.ytVideoToken}${i}`,"data-lazy-priority":"low",allowFullscreen:!0}),a=n.parentNode.parentNode;a&&T.mutate(()=>{const s=a.getElementsByClassName(`watch-on-youtube-${n.dataset.ytVideoToken}`)[0];s.style.display="none";const c=a.getElementsByClassName("play-button")[0];c.style.display="none",n.replaceWith(o)}),n.removeEventListener("click",Qi)};(()=>{window.reliableDOMContentLoaded.then(()=>{document.querySelectorAll("div[data-yt-video-token]").forEach(e=>{e.addEventListener("click",Qi)})}).catch(e=>console.error(e))})();const Xi=e=>{const t=e.parentElement;return t?t.tagName.toLowerCase()==="picture"&&t.parentElement||t:e},Jc=(e,t)=>{e.setAttribute("sizes",`${t}px`),e.classList.add("manual-image-sizes")},Zi=e=>new Promise(t=>{const n=e.offsetWidth;t(n<1?Zi(Xi(e)):n)}),eo=e=>{e.forEach(t=>{const n=Xi(t);Zi(n).then(r=>{Jc(t,r)}).catch(r=>console.error("%c FTE ","background: #9306F9; color: #ffffff",r))})},to=()=>{const e=document.querySelectorAll('.manual-image-sizes:not([data-slice-image="true"])');e.length>0&&eo(e);const t=document.querySelectorAll('[sizes="99vw"]:not([data-slice-image="true"])');t.length>0&&eo(t)},Kc=()=>{setTimeout(to,200)};window.addEventListener("resize",Se(to,200)),window.reliableDOMContentLoaded.then(()=>{Kc()}).catch(e=>console.error("%c FTE ","background: #9306F9; color: #ffffff",e));const Qc=(na=(ta=window.reduxStore)==null?void 0:ta.getState())==null?void 0:na.vanilla.isArticle;rs(),ts(),Qc?(W(()=>Promise.resolve().then(()=>El),void 0),W(()=>Promise.resolve().then(()=>Tl),void 0),W(()=>Promise.resolve().then(()=>kl),void 0),W(()=>Promise.resolve().then(()=>Il),void 0),W(()=>Promise.resolve().then(()=>wd),void 0),W(()=>Promise.resolve().then(()=>bd),void 0),W(()=>Promise.resolve().then(()=>Hd),void 0)):W(()=>Promise.resolve().then(()=>Vd),void 0);const ee=window.vanilla.featureFlags;(ee.infiniteScroll&&ee.infiniteScroll.enabled||ee.sponsoredScroll&&ee.sponsoredScroll.enabled)&&W(()=>Promise.resolve().then(()=>Lu),void 0),ee.blueconic&&ee.blueconic.enabled&&W(()=>ne(this,null,function*(){const{initBlueconic:e}=yield Promise.resolve().then(()=>ku);return{initBlueconic:e}}),void 0).then(({initBlueconic:e})=>{e()}),ee.dianomi&&ee.dianomi.enabled&&W(()=>ne(this,null,function*(){const{setDianomi:e}=yield Promise.resolve().then(()=>Fu);return{setDianomi:e}}),void 0).then(({setDianomi:e})=>{e()}),ee.stickyFooter&&ee.stickyFooter.enabled&&W(()=>Promise.resolve().then(()=>Nu),void 0),ee.reviewSpecBox&&ee.reviewSpecBox.enabled&&W(()=>Promise.resolve().then(()=>Bu),void 0),ee.navSubscribe&&ee.navSubscribe.enabled&&W(()=>Promise.resolve().then(()=>Hu),void 0),(ra=ee.chatbot)!=null&&ra.homepage&&ee.chatbot.homepage.enabled&&W(()=>Promise.resolve().then(()=>Gu),void 0);var no=function(t){return t.getAttribute("data-original-mos")},ro=function(t){window.open(t)},io=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;T.measure(function(){var n=Array.from(document.querySelectorAll("img.expandable"));n.forEach(function(r){if(r.getAttribute("data-original-mos")){var i=r.parentNode;if(i.className!=="thumb-link"&&i.className!=="center-cropped"){if(t&&T.mutate(function(){r.onclick=function(){return ro(no(r))},r.style.cursor="pointer"}),i.nodeName!=="FIGURE"){var o=document.createElement("figure"),a=r.cloneNode(!0);T.mutate(function(){o.appendChild(a),i.replaceChild(o,r),i=o})}T.mutate(function(){i.classList.add("expandable-image");var s=document.createElement("div");s.className="block absolute bottom-0 left-0 w-[32px] h-[32px] bg-neutral-800 pointer text-center text-white opacity-75 hover:opacity-100 content-center icon-expand-image icon",s.onclick=function(){return ro(no(r))},i.appendChild(s)})}}})})};document.readyState==="interactive"||document.readyState==="complete"?io(!1):document.addEventListener("DOMContentLoaded",function(){io(!1)});const Xc=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Zc=function(t){return t.offsetHeight>290},oo=function(t){T.mutate(function(){t.classList.remove("expanded-box"),t.classList.add("reduced-box"),t.style.width=""})},el=function(t,n){T.mutate(function(){t.classList.remove("reduced-box"),t.classList.add("expanded-box"),n.classList.add("fixed-height"),t.style.width="".concat(n.offsetWidth,"px")})},tl=function(){var t=document.createElement("div");t.classList.add("view-more"),t.textContent="More";var n=document.createElement("span");return n.classList.add("arrow"),n.innerHTML='<svg width="11" height="11" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M1000 100L500 900 0 100h1000z"/></svg>',t.appendChild(n),t},nl=function(){var t=document.createElement("div");t.classList.add("view-less"),t.textContent="Less";var n=document.createElement("span");return n.classList.add("arrow"),n.innerHTML='<svg width="11" height="11" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M0 900l500-800 500 800H0z"/></svg>',t.appendChild(n),t},rl=function(t,n,r,i){T.mutate(function(){t.appendChild(i),n.appendChild(r)})},il=function(t,n,r,i){T.mutate(function(){r.addEventListener("click",function(){return el(t,n)}),i.addEventListener("click",function(){return oo(t)})})},ol=function(t){var n=t.querySelector(".fancy_box_body");if(n&&Zc(n)){var r=tl(),i=nl();oo(n),rl(n,t,r,i),il(n,t,r,i)}},ao=function(){T.measure(function(){var t=document.querySelectorAll("#elk-injected-related-block");t.length&&t.forEach(ol)})};document.readyState==="complete"||document.readyState==="interactive"?ao():document.addEventListener("DOMContentLoaded",ao);const al=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));T.measure(function(){var e="concealed",t="reveal",n="tag",r=function(a,s){return function(){Array.from(s).forEach(function(d){T.mutate(function(){d.classList.remove(e)})});var c=a.parentElement;T.mutate(function(){c.classList.add(e)})}},i=function(a,s){a&&T.mutate(function(){a.addEventListener("click",r(a,s))})};i(document.querySelector(".".concat(n," .").concat(t)),document.querySelectorAll(".".concat(n,".").concat(e)))});const sl=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));T.measure(function(){var e=document.getElementsByClassName("home-tabs");if(e.length>0){var t=document.getElementsByClassName("hometab");if(t.length>0)for(var n=0;n<t.length;n++){var r=t[n];r.onclick=function(){var i=this,o=i.parentElement.getElementsByClassName("hometab"),a=i.getAttribute("data-attr-list");T.mutate(function(){for(var u=0;u<o.length;u++){var h=o[u],f=document.getElementsByClassName("listingResults ".concat(h.getAttribute("data-attr-list")));h.classList.remove("active"),f&&f[0]&&(f[0].style.display="none")}});var s=document.getElementsByClassName("listingResults ".concat(i.getAttribute("data-attr-list")));T.mutate(function(){i.classList.add("active"),s[0].style.display="block"});var c=i.parentElement.parentElement.parentElement,d=document.getElementsByClassName("listingResultsWrapper ".concat(a))[0],l=c.getElementsByClassName("listingResults ".concat(a))[0];T.mutate(function(){d.style.display="block",l&&(l.style.display="block")})}}}});const cl=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var tr=function(t,n){T.measure(function(){if(window.matchMedia(n).matches){var r=t.firstFeatured,i=t.wholeCarousel,o=t.carouselBlock,a=t.listLinks,s=t.listTitle,c=t.listLinksWrapper,d=t.moreLink,l=0,u;if(r!=null&&a!=null&&s!=null){l+=s.offsetHeight;var h=i.length-1;i[h].offsetWidth=="610"?o?u=o.offsetHeight-15:u=i[h].offsetHeight-15:u=r.offsetHeight,T.mutate(function(){c.style.height=u+"px",d&&(d.style.visibility="visible",u-=d.offsetHeight+5)}),T.mutate(function(){a.forEach(function(f){l+=f.offsetHeight,l>u?f.style.display="none":f.style.display="block"})})}}})};window.reliablePageLoad.then(function(){tr({firstFeatured:document.getElementById("Item1"),wholeCarousel:document.getElementsByClassName("mainCarousel"),carouselBlock:document.getElementById("carouselblock"),listLinks:document.querySelectorAll(".list-text-links .listingResult"),listTitle:document.querySelector(".list-text-links .list-title"),listLinksWrapper:document.querySelector(".list-text-links"),moreLink:document.querySelector(".list-text-links .list-heading-link")},"(min-width: 900px)");var e=document.querySelector(".widget-coverlist.enable-flexi-limit-list-link");if(e){var t=e.parentElement.querySelector(".widget-dynamic-fter-curated-carousel");t&&tr({firstFeatured:document.getElementById("Item1"),wholeCarousel:t.getElementsByClassName("mainCarousel"),carouselBlock:document.getElementById("carouselblock"),listLinks:e.querySelectorAll(".widget-items .wcl-item"),listTitle:e.querySelector(".widget-header"),listLinksWrapper:e,moreLink:null},"(min-width: 900px)")}}).catch(function(e){return console.error("%c FTE ","background: #9306F9; color: #ffffff",e)});const ll=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"}));function dl(e,t){var n,r=function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var c=r,d=function(){e.apply(c,a)};clearTimeout(n),n=setTimeout(d,t)};return r}var on=[];function ul(e){return T.measure(function(){var t=document.getElementById("advancedsearchsort"),n=document.getElementsByName("searchfilter"),r=document.getElementsByName("searchplatform"),i,o;{i=t.options[t.selectedIndex].value;for(var a=0;a<n.length;a++)if(n[a].checked)var o=n[a].value;if(r){for(var a=0;a<r.length;a++)if(r[a].checked)var s=r[a].value}}var c=new Object;return c.sortorder=i,c.articletype=o,s&&(c.articleplatform=s),c})}function an(e){var t=ul(),n,r="/filter/search";window.ffte.regionLink!==""&&(r="/"+window.ffte.regionLink+r),trailingSlash&&(r=r+"/"),r=r+"?searchTerm="+At("searchTerm")+"&sortBy="+t.sortorder+"&articleType="+t.articletype;var i=At("searchTerm")+t.sortorder+t.articletype;t.articleplatform&&(i=i+t.articleplatform,r=r+"&articlePlatform="+t.articleplatform),At("fcsis")!=null&&(r+="&fcsis="+At("fcsis")),on[i]?nr(i,t):T.measure(function(){var o=document.querySelector(".listingResults"),a=document.querySelector(".load-more"),s=document.querySelector("#searchloading");o&&T.mutate(function(){o.style.display="none"}),a&&T.mutate(function(){a.style.display="none"}),s&&T.mutate(function(){s.style.display="block"}),window.XMLHttpRequest?n=new XMLHttpRequest:n=new ActiveXObject("Microsoft.XMLHTTP"),n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&(n.status==200?(on[i]=n.responseText,nr(i,t)):(on[i]="No results found",nr(i,t)))},n.open("GET",r,!0),n.send()})}function At(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),r=n.exec(t);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}function nr(e,t){var n=on[e];T.measure(function(){var r=document.querySelector(".listingResults"),i=r.parentNode,o=document.querySelector("#searchloading"),a=document.querySelector(".load-more");T.mutate(function(){r.innerHTML=n,i.setAttribute("data-list","filter/search/"+At("searchTerm")+"/"+t.articletype+"/"+t.sortorder),Li(),o.style.display="none",r.style.display="block",n!="No results found"&&(a.style.display="block")})})}function fl(){T.measure(function(){if(window.matchMedia("(max-width: 575px)").matches){var e=document.querySelector(".header");if(e){var t=e.nextElementSibling,n=e.querySelector("span"),r=e.querySelector("i");T.mutate(function(){e.addEventListener("click",function(){var i=t.classList.toggle("legacy-invisible");n.innerHTML=i?"Show":"Hide",r.setAttribute("class","icon"+(i?" icon-arrow-down":" icon-arrow-up"))})})}}})}fl(),window.addEventListener("resize",function(){}),T.measure(function(){var e=document.getElementById("searchfilter");if(e){var t=document.getElementById("advancedsearchsort");t&&T.mutate(function(){t.onchange=function(){an()}});var n=document.getElementsByName("searchfilter");T.mutate(function(){for(var a=0;a<n.length;a++)n[a].onchange=function(){an()}});var r=document.getElementsByName("searchplatform");T.mutate(function(){for(var a=0;a<r.length;a++)r[a].onchange=function(){an()}}),T.mutate(function(){e.style.display="block"});var i=document.querySelector(".clear-filters"),o=document.getElementById("searchfilterform");i&&o&&T.mutate(function(){i.addEventListener("click",function(){o.reset(),an()}),o.reset()})}});const hl=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var pl=function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="//".concat(disqus_shortname,".disqus.com/embed.js"),T.measure(function(){var n=document.querySelector("head"),r=document.querySelector("body");T.mutate(function(){(n||r).appendChild(t)})})};T.measure(function(){var e=document.querySelector(".load-comments-hide"),t=window.document.querySelector(".comment-jump"),n=function(a){T.mutate(function(){a.style.display="none"}),pl()},r=function(a){return new Promise(function(s){a&&T.mutate(function(){a.onclick=s})})},i=function(a){return new Promise(function(s){if(a)if(window.IntersectionObserver){var c=0,d=new IntersectionObserver(function(l,u){l.forEach(function(h){var f=h.intersectionRatio;f>c&&(s(),u.disconnect())})},{rootMargin:"200px 200px 200px 200px",threshold:c});d.observe(a)}else s()})};Promise.race([r(e),r(t),window.innerWidth>700&&i(e)].filter(Boolean)).then(function(){return e}).then(n)});const ml=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));T.measure(function(){var e=document.getElementById("reviews_order_by_dropdown");if(e){var t="order_by",n=new RegExp("[\\?&]".concat(t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),"=([^&#]*)")),r=n.exec(location.search);r&&(r=decodeURIComponent(r[1].replace(/\+/g," "))),T.mutate(function(){for(var i=0;i<e.options.length;i++)e.options[i].value===r&&(e.options[i].selected=!0)}),T.mutate(function(){e.onchange=function(){var i=e[e.selectedIndex].value;i?window.location="".concat(window.location.pathname,"?order_by=").concat(i):window.location=window.location.pathname}})}});const wl=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var vl=function(){T.measure(function(){if(document.querySelector(".score")!==null&&document.querySelector(".verdict-boxout")!==null){let r=function(){var i=document.querySelector(".in-view");if(i.querySelector(".score-loading-dial")!==null){let d=function(u,h,f){return Math.max(h,Math.min(f,u))},l=function(u,h){var f=51,F=h*Math.PI/180,B=Math.sin(F)*f,z=Math.cos(F)*-51,N=h>180?1:0,P="M 0 0 v -%@ A %@ %@ 1 ".replace(/%@/gi,f)+N+" 1 "+B+" "+z+" z",H=i.querySelector(".score-loading-dial");T.mutate(function(){H.setAttribute("d",P),window.location.href.indexOf("pcgamer")>-1&&i.classList.remove("in-view")})};var o=0;if(i.querySelector(".review-score-generic")!==null||i.querySelector(".review-score-pcg-generic")!==null)var a=360;else var a=272;if(window.location.href.indexOf("pcgamer")>-1){var o=t,s=d(o*a,0,a);l(o,s)}else window.setTimeout(function(){var u=window.setInterval(function(){o=o+.01,o>=t&&(T.mutate(function(){i.classList.remove("in-view")}),window.clearInterval(u));var h=d(o*a,0,a);l(o,h)},1)},1e3)}else if(i.querySelector(".progress-bar")!==null){var c=i.querySelector(".progress-bar");T.mutate(function(){c.classList.add("transition"),c.style.width=t*100+"%",i.classList.remove("in-view")})}};if(document.querySelector(".out-of-score-text")!==null)if(document.querySelector(".score").textContent==5)var t=.99;else var t=document.querySelector(".score").textContent/5;else if(document.querySelector(".score").textContent==100)var t=.999;else var t=document.querySelector(".score").textContent/10/10;var n=document.querySelectorAll(".review-score-container");n.forEach(function(i){var o=i.getBoundingClientRect();if(window.innerHeight<o.top){var a=function(){var c=i.getBoundingClientRect();window.innerHeight>c.top&&(T.mutate(function(){i.classList.add("in-view"),r()}),window.removeEventListener("scroll",a))};window.addEventListener("scroll",dl(a,200),{passive:!0})}else T.mutate(function(){i.classList.add("in-view"),r()})})}})};vl();const bl=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));T.measure(function(){var e=document.querySelectorAll(".read-more-button");e.length>0&&e.forEach(function(t){t.addEventListener("click",function(){var n=this,r=this.querySelector("span"),i=this.querySelector("i");T.mutate(function(){n.classList.toggle("closed"),r.innerHTML=added?"More":"Less",i.setAttribute("class","icon"+(added?" icon-arrow-down":" icon-arrow-up"))})})})});const gl=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),sn=e=>{T.mutate(()=>{e.classList.remove("see-more--clipped")})},yl=()=>{const e=bn("See more"),t=document.createElement("div");t.className="see-more__button-container";const n=document.createElement("span");return n.className="see-more__button",n.setAttribute("role","button"),n.setAttribute("tabindex","0"),n.setAttribute("aria-label",e),n.textContent=e,t.appendChild(n),t},so=()=>{T.measure(()=>{const e=Array.from(document.getElementsByClassName("see-more"));e.length&&(window.location.search.indexOf("disable_seemore")!==-1?e.forEach(sn):e.forEach(t=>{const n=yl();t.appendChild(n),new MutationObserver(i=>{i.forEach(o=>{const a=o.target,s=a.firstChild;a.scrollHeight<=212&&s.scrollHeight>50&&sn(t)})}).observe(t,{childList:!0}),n.addEventListener("click",()=>{sn(t)})}))})};document.readyState==="interactive"||document.readyState==="complete"?so():document.addEventListener("DOMContentLoaded",so);const El=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Sl=e=>{window.addEventListener("blur",()=>{const t=document.getElementById(e.id);if(!t)return;const n=t.querySelector("iframe");if(!n||n===document.activeElement)return;e.getState()==="playing"&&e.pause()})},Ne={},_l=()=>{document.addEventListener("stickyclose",e=>{const n=e.detail.id;Ne[n]&&(Ne[n]=!1)})},xl=(e,t)=>{const n=e.getViewable(),r=e.getState();n===1&&r==="paused"&&Ne[t]===!0&&(e.play(),e.getState()==="paused"&&e.play())},Ll=(e,t)=>{Ne[t]=!0;const r=((i,o)=>Se(()=>{xl(i,o)},500))(e,t);e.on("viewable",r),e.on("pause",i=>{i.pauseReason==="interaction"&&(Ne[t]=!1)}),e.on("play",i=>{i.playReason==="interaction"&&(Ne[t]=!0)}),e.on("adPause",i=>{i.pauseReason==="interaction"&&(Ne[t]=!1)}),e.on("adPlay",i=>{i.playReason==="interaction"&&(Ne[t]=!0)}),_l()};window.innerWidth<=450||document.addEventListener("jwplayerInstanceLoaded",e=>{const n=e.detail.id,r=window.jwplayer,i=r(n);i&&(Ll(i,n),Sl(i))});const Tl=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),co=(e,t)=>{if(e){const n=document.querySelector(".jw-flag-floating .jw-wrapper");if(!n){console.warn("%c FTE ","background: #9306F9; color: #ffffff","JWplayer float - no jwplayer wrapper");return}if(window.innerWidth<992)T.mutate(()=>{n.style.maxWidth="45%",n.style.bottom="unset",n.style.top="5px",n.style.right="5px",n.style.left="unset",n.style.opacity="1"});else{let r=null;if(window.ffte.platform==="progressive"?r=document.querySelector(".article__sidebar"):r=document.getElementById("widgetArea17")||document.getElementById("sidebar"),!r){console.warn("%c FTE ","background: #9306F9; color: #ffffff","JWplayer - no siderail");return}if(r){const i=window.innerWidth-r.getBoundingClientRect().right;n.style.maxWidth="300px",r&&(n.style.right=`calc(${i}px - 1em)`),n.style.bottom="125px",n.style.opacity="1"}}}else{const n=document.querySelector(`#${t} .jw-wrapper`);T.mutate(()=>{n.style.removeProperty("opacity"),n.style.removeProperty("maxWidth"),n.style.removeProperty("bottom"),n.style.removeProperty("right"),n.style.removeProperty("top"),n.style.removeProperty("left")})}},Ol=Se(()=>{window.innerWidth>991&&document.querySelector(".jw-flag-floating .jw-wrapper")&&co(!0)},200);window.addEventListener("resize",Ol),document.addEventListener("jwplayerInstanceLoaded",e=>{var n;const t=e;if(!((n=window.ffte.properties)!=null&&n.articleControlTag.includes("van-block-sticky-video"))){const r=window.jwplayer(t.detail.id);if(!r)return;r.on("float",({floating:i})=>{co(i,t.detail.id)})}});const kl=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),pe=(e,t)=>{const n=document.createElement(e);return t.forEach(r=>n.classList.add(r)),n},{maybe:lo}=Ke.Maybe,Al=()=>{const e=pe("div",["jwplayer__unmute"]);e.textContent="PLAY SOUND";const t='<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" width="100" height="74" viewBox="0 0 100 74"><g fill="#212121"><path d="M47.535 2.916L22.708 19.791l-.002.002-2.48 1.685v29.736l7.249 4.935 20.062 13.665c1.363.928 2.479.338 2.479-1.312V4.229c0-1.65-1.117-2.24-2.48-1.313zM10.063 21.478H4c-2.2 0-4 1.8-4 4v21.736c0 2.2 1.8 4 4 4h10.074V21.478h-4.011zM74.5 11.85a3.7 3.7 0 10-5.232 5.232c5.125 5.125 7.947 11.938 7.947 19.185 0 7.246-2.822 14.058-7.947 19.182a3.7 3.7 0 105.232 5.233c6.523-6.522 10.115-15.193 10.115-24.415 0-9.224-3.592-17.895-10.115-24.417z"/><path d="M85.266 1.084a3.7 3.7 0 10-5.232 5.232c16.513 16.514 16.513 43.385 0 59.899a3.7 3.7 0 105.232 5.232c19.4-19.4 19.4-50.964 0-70.363zM64.176 22.174a3.7 3.7 0 00-5.233 5.232 12.449 12.449 0 013.67 8.86 12.44 12.44 0 01-3.67 8.856 3.701 3.701 0 005.233 5.233 19.792 19.792 0 005.837-14.088 19.8 19.8 0 00-5.837-14.093z"/></g></svg>',n=pe("div",["unmute__icon"]);return n.innerHTML=t,e.appendChild(n),e},rr=e=>e.classList.add("hidden"),uo=e=>e.classList.remove("hidden"),Fl=e=>{lo(window.jwplayer).bind(t=>lo(t(e))).bind(t=>Qe(`#${e}`,document).map(n=>({jwplayerInstance:t,jwplayerDiv:n}))).caseOf({just:({jwplayerDiv:t,jwplayerInstance:n})=>{const r=Al();r.addEventListener("click",()=>{n.setConfig({mute:!1}),rr(r)}),n.on("mute",i=>i.mute?uo(r):rr(r)),n.on("volume",i=>i.volume>0?rr(r):uo(r)),t.appendChild(r)},nothing:()=>console.warn("%c FTE ","background: #9306F9; color: #ffffff","no jwplayer present")})};document.addEventListener("jwplayerInstanceLoaded",e=>{Fl(e.detail.id)});const Il=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Cl=()=>window.ffte.hasOwnProperty("properties"),Pl=()=>{const e=window.ffte.properties;return!(e!==void 0&&(e.articleTagHandle.includes("deals")||e.articleControlTag.includes("van-disable-inbody-ads")||e.articleControlTag.includes("_van_ads_none")||e.articleControlTag.includes("van_ads_none")||e.articleControlTag.includes("van-ads-none")||e.articleControlTag.includes("deals")||e.articleControlTag.includes("no-in-article-video")))},Rl={techradar:["FR"]},Ml=()=>{if(!window.ffte.isGlobal)return!0;const e=Rl[window.ffte.site];return!(e&&e.includes(window.ffte.locale))},Dl=()=>{if(!Cl())return!1;if(window.vanilla.featureFlags.forceFeature.jwplayerCarousel)return!0;if(!Pl()||!Ml()||!window.FEP||document.querySelector(".future__jwplayer")!==null)return!1;const n=document.querySelector("#article-body");return!(!document.querySelector(".article__body")&&!n)},ze={coreGeos:["US","GB","AU","CA"],mobileCoreGeos:["US","GB","CA","ES","FR","DE"],euGeos:["BE","BG","CZ","DK","DE","EE","IE","EL","ES","FR","HR","IT","CY","LV","LT","LU","HU","MT","NL","AT","PL","PT","RO","SI","SK","FI","SE","GB"],flags:{ALL_GEOS:"ALL_GEOS",CORE_GEOS:"CORE_GEOS",NON_CORE_GEOS:"NON_CORE_GEOS",NO_EU_NO_CORE:"NO_EU_NO_CORE",GB_US_ONLY:"GB_US_ONLY",US_ONLY:"US_ONLY",MOBILE_CORE_GEOS:"MOBILE_CORE_GEOS",MOBILE_NON_CORE_GEOS:"MOBILE_NON_CORE_GEOS",NEVER:"NEVER"},mobilePlayers:{JWPLAYER_CAROUSEL_MOBILE:"JWPLAYER_CAROUSEL_MOBILE",JWPLAYER_EDITORIAL_MOBILE:"JWPLAYER_EDITORIAL_MOBILE"},desktopPlayers:{JWPLAYER_CAROUSEL_DESKTOP:"JWPLAYER_CAROUSEL_DESKTOP"}},Nl=()=>Ue("FTR_Country_Code")===null?"US":Ue("FTR_Country_Code"),fo=window.innerWidth<=450,jl=e=>e!==ze.mobilePlayers.JWPLAYER_EDITORIAL_MOBILE,ho=e=>Object.keys(ze.mobilePlayers).includes(e),Bl=e=>{const{flags:t,coreGeos:n,euGeos:r,mobileCoreGeos:i}=ze,o=Nl();switch(e){case t.ALL_GEOS:return!0;case t.CORE_GEOS:return n.includes(o);case t.NON_CORE_GEOS:return!n.includes(o);case t.NO_EU_NO_CORE:return!n.includes(o)&&!r.includes(o);case t.GB_US_ONLY:return o==="GB"||o==="US";case t.MOBILE_CORE_GEOS:return i.includes(o);case t.MOBILE_NON_CORE_GEOS:return!i.includes(o);case t.US_ONLY:return o==="US";default:return!1}},ql=e=>!!(ho(e)&&fo||!ho(e)&&!fo);function Hl(e){const t=window.vanilla.featureFlags.jwplayer.typeUsed;return t===void 0||!ql(e)||jl(e)&&!Dl()?!1:Bl(t[e])}const Ul=["marieclaireus"].includes(window.ffte.site),po=new Promise(e=>{if(Ul===!1||window.disableBordeaux===!0)return e(!0);window.bordeaux=window.bordeaux||{},window.bordeaux.cmd=window.bordeaux.cmd||[],window.bordeaux.cmd.push(()=>{window.bordeaux.getVideoBehaviourStatus().then(t=>{e(t)}).catch(t=>console.error("%c FTE ","background: #9306F9; color: #ffffff",t))})}),Wl=()=>{const e=document.querySelector(".van_vid_carousel");e&&e.classList.add("vid-absent")},$l=()=>{const e=["loudersound","pcgamer","tomshardware","whathifi"],t=window.ffte.site,n=pe("img",["logo"]);return e.includes(t)&&n.setAttribute("src",`/media/img/${t}_mobile_carousel.svg`),n.onerror=()=>{n.style.display="none"},n},zl=e=>{const t=Se(()=>{T.mutate(()=>{e.style.display=window.innerWidth<1e3?"none":"block"})},200);window.addEventListener("resize",t)},Vl=(e,t)=>{if(t===null)return;const n=t.cloneNode(!0);e.appendChild(n)},Gl=(e,t,n)=>ne(this,null,function*(){var s;e.advertising!==void 0&&(e.advertising.vpaidcontrols=!0,e.advertising.autoplayadsmuted=!0);let r=!0;try{r=yield po}catch(c){console.error("%c FTE ","background: #9306F9; color: #ffffff","failed to get bordeaux allow signal, default to true.")}const i=Ai(ut.AUTOPLAY)&&r?"viewable":"false",a=!((s=window.ffte.properties)!=null&&s.articleControlTag.includes("van-block-sticky-video"))?{}:null;return Object.assign({},e,{visualplaylist:!1,key:t.key,autostart:i,displaytitle:!0,mute:!0,floating:a})}),Yl=(e,t,n,r)=>ne(this,null,function*(){const i=r?e.fallbackDivID:e.divID,o=yield Gl(t,e),a=n(i);a!==void 0&&(Ri(i,o),console.debug("%c FTE ","background: #9306F9; color: #ffffff",`set up carousel at ${performance.now()}`),ji(a,i,o),o.autostart!=="false"&&a.on("adError",()=>{a.setup(lr(K({},o),{autostart:"false"}))}),mo()&&e.channelID&&vo(a,e))}),Jl=(e,t,n)=>{const r={rootMargin:`0px 0px ${n.jwplayerCarousel.intersectionObserver.offset} 0px`,threshold:[0]},i=new IntersectionObserver(o=>{const a=o[0];if(a.isIntersecting){const s=a.target;i.unobserve(s),t()}},r);i.observe(e)},Kl=(e,t)=>{const n=e.defaults;return Object.assign({},n,{playlist:t.playlist})},Ql=(e,t,n,r)=>()=>{const i=Kl(r,t);Yl(e,i,r,n).catch(()=>{console.error("%c FTE ","background: #9306F9; color: #ffffff","failed to setup carousel video player.")})},Xl=e=>{let t=e.length,n,r;for(;t!==0;)r=Math.floor(Math.random()*t),t-=1,n=e[t],e[t]=e[r],e[r]=n;return e},Zl=(e,t,n,r,i)=>{n.playlist=Xl(n.playlist);const o=Ql(t,n,r,i),a=nn("jwplayer"),s=a.jwplayerCarousel.intersectionObserver.enabled;window.IntersectionObserver&&!Xn()?s?Jl(e,o,a):o():setTimeout(o,2e3)},cn=e=>fetch(`https://cdn.jwplayer.com/v2/playlists/${e}`).then(t=>t.json()).then(t=>t),ed=(e,t)=>fetch(`https://cdn.jwplayer.com/v2/playlists/${e}?search=${encodeURIComponent(t)}&published=90D`).then(n=>n.json()).catch(n=>console.error("%c FTE ","background: #9306F9; color: #ffffff",n)),td=(e,t,n)=>{const r=document.querySelector(".van_vid_carousel__container");if(!r)return;ge(rn);const i=pe("div",["future__jwplayer--carousel"]);r.appendChild(i),Qn();const o=window.FEP;Promise.all([rd(e,o),id(e,i),po]).then(a=>{const s=a[0],c=a[1];if(!s||!s.playlist)return;const d=!e.useSearchPlaylist||!1;t(i,d,e,n),Zl(i,e,s,d,c)}).catch(a=>console.error(`Failed to get request jwplayer assets. ${a}`))},nd=e=>["fepPrimaryProduct","primaryCategory","fepSecondaryProducts","secondaryCategories"].map(n=>{const r=e[n];return Array.isArray(r)?r[0]:r}),rd=(e,t)=>new Promise(n=>{if(!e.useSearchPlaylist){n(cn(e.fallbackPlaylistID));return}const r=e.searchPlaylistID;nd(t).reduce((i,o)=>i.then(a=>a.playlist.length>0?a:ed(r,o)),Promise.resolve({feed_instance_id:"",title:"",kind:"",playlist:[],description:"",feedid:""})).then(i=>{i.playlist.length>0?n(i):n(cn(e.fallbackPlaylistID))}).catch(i=>console.error("%c FTE ","background: #9306F9; color: #ffffff",i))}),id=(e,t)=>new Promise(n=>{const r=document.createElement("script");r.setAttribute("src",`https://content.jwplatform.com/libraries/${e.playerID}.js`),r.setAttribute("async",""),r.onload=()=>n(window.jwplayer);const i=t.parentElement;i!==null&&T.mutate(()=>{i.insertBefore(r,t)})}),od=(e,t,n)=>{var r,i,o,a,s;if(!(!Hl(e)||!n)){if((o=(i=(r=window==null?void 0:window.FUTR)==null?void 0:r.Kiosq)==null?void 0:i.disableServices)!=null&&o.jwplayer&&((s=(a=window==null?void 0:window.FUTR)==null?void 0:a.Kiosq)!=null&&s.granted)){Wl();return}t.forEach(c=>{c()})}},mo=()=>{const e="June 16, 2021 00:00:00 GMT",t=new Date(e),r=new Date<t;return["gamesradar","pcgamer"].includes(window.ffte.site)&&r},ad=e=>{e.useSearchPlaylist=!1,e.fallbackPlaylistID="87B9MsPY?recommendations_playlist_id=X7f11WNk",e.channelID="DG99N48a";const t=window.ffte.site;return t==="gamesradar"&&(e.fallbackDivID="botr_87B9MsPY_jiAmRguh_div",e.playerID="jiAmRguh"),t==="pcgamer"&&(e.fallbackDivID="botr_87B9MsPY_3EvKJhqC_div",e.playerID="3EvKJhqC"),e};let ln,wo=!1;const sd=(e,t,n)=>{cn(t.fallbackPlaylistID).then(r=>{!r||!r.playlist||(e.load(r.playlist),e.play(),setTimeout(n,4e4))}).catch(r=>console.error("%c FTE ","background: #9306F9; color: #ffffff","Failed to get JWPlayer playlist",r))},cd=(e,t,n)=>{if(wo)return;const r=230001;e.on("error",i=>{i.code===r&&sd(e,t,n)}),wo=!0},vo=(e,t)=>{const n=t.channelID,r=()=>vo(e,t);ln||(ln=window.setInterval(r,3e4)),fetch(`https://cdn.jwplayer.com/live/channels/${n}.json`).then(i=>i.json()).then(i=>{if(i.status==="active"){window.clearInterval(ln),ln=0;const o=i.current_event,a=e.getPlaylistItem().mediaid;o!==a&&cn(o).then(s=>{e.load(s.playlist),e.play(),cd(e,t,r)}).catch(s=>console.error("%c FTE ","background: #9306F9; color: #ffffff","Failed to fetch JWPlayer live media",s))}}).catch(i=>console.error("%c FTE ","background: #9306F9; color: #ffffff","Failed to fetch JWPlayer live channel",i))},ld=(e,t)=>{const n=document.createElement(e);return n.setAttribute("id",t),n},dd=()=>window.ffte.platform==="progressive",ud=()=>window.ffte.platform==="responsive",fd=()=>window.innerWidth<=450,hd=(e,t,n,r)=>{let i,o,a,s,c,d;const l=()=>{const u=pe("div",["jw-carousel"]),h=t?n.fallbackDivID:n.divID,f=ld("div",h);let F;r===ze.mobilePlayers.JWPLAYER_CAROUSEL_MOBILE&&fd()?(i=pe("div",["mobile__carousel__title"]),o=pe("div",["floating-video-container"]),a=pe("div",["outer-container"]),s=pe("div",["middle-container"]),c=pe("div",["inner-container"]),o.appendChild(f),c.appendChild(o),s.appendChild(c),a.appendChild(s),u.appendChild(a),F=$l()):(i=pe("div",["carousel__title"]),d=pe("div",["carousel--background"]),u.appendChild(d),u.appendChild(f),zl(u),F=document.querySelector(".site-logo svg")),n.tintLogo&&i.classList.add("carousel__title--black-logo");const B=window.ffte.seoSiteName;i.textContent=`${bn("Latest Videos From")} ${B}`,Vl(i,F),u.prepend(i),e.appendChild(u)};T.mutate(()=>{l()})},pd=(e,t)=>{var n,r;if(ud()&&mo()&&(e=ad(e)),dd()&&t===ze.desktopPlayers.JWPLAYER_CAROUSEL_DESKTOP&&window.innerWidth>=1024&&((r=(n=window.vanilla.featureFlags)==null?void 0:n.jwplayer)==null?void 0:r.sidebar)===!0){const o=document.querySelector(".article__sidebar"),a=document.querySelector(".van_vid_carousel");a&&(a.style.display="block",o==null||o.appendChild(a))}td(e,hd,t)},md=()=>{const e=document.querySelector(".van_vid_carousel");e&&T.mutate(()=>{e.classList.add("vid-present")})},bo=(()=>{var n,r,i,o;const e=window.vanilla.featureFlags.jwplayer.carousel;if(!e.enabled)return null;const t=e==null?void 0:e.IDs;return!t||(r=(n=window.ffte)==null?void 0:n.properties)!=null&&r.articleType&&window.vanilla.featureFlags.jwplayer.hasOwnProperty((o=(i=window.ffte)==null?void 0:i.properties)==null?void 0:o.articleType)?!1:t})();(()=>{window.reliableDOMContentLoaded.then(()=>{[ze.desktopPlayers.JWPLAYER_CAROUSEL_DESKTOP,ze.mobilePlayers.JWPLAYER_CAROUSEL_MOBILE].forEach(e=>{od(e,[md,()=>pd(bo,e)],bo)})}).catch(e=>console.log(e))})();const wd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),vd=(e,t,n,r)=>{new IntersectionObserver((o,a)=>{o.forEach(s=>{s.isIntersecting&&(t(),a.disconnect())})},{rootMargin:`-${n+r.minDistance}px 0px ${n+r.maxDistance}px 0px`,threshold:[0]}).observe(e)},go=()=>{T.measure(()=>{const e=nn("openAheadEmbeds");if(!e.enabled)return;const t=Array.from(document.querySelectorAll(".see-more--clipped")),n=window.innerHeight;t.forEach(r=>{vd(r,()=>sn(r),n,e)})})};document.readyState==="complete"||document.readyState==="interactive"?go():document.addEventListener("DOMContentLoaded",go);const bd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),dn=e=>{const t=window.ffte.properties;return t?(t.articleControlTag||[]).some(r=>e===r||"_"+e===r):!1},gd=e=>{var r;if(!((r=window.vanilla.featureFlags.buyingGuide3)!=null&&r.enabled)&&window.innerWidth>700)return;const t=document.querySelector(".cards-background");if(!t)return;document.getElementById("article-body").insertBefore(e,t),t==null||t.querySelectorAll(".article-body__section").forEach(i=>{const o=i.id.replace("section-",""),a=document.getElementById(`nav-${o}`);a==null||a.setAttribute("data-keep-bg3","true")})},ir={"van-style-yellow":{colour:"#FF9900",retailer:"amazon"},"van-style-yellow-blue":{colour:"#ffc220|#475c68",retailer:"walmart"},"van-style-blue":{colour:"#007db8",retailer:"dell"},"van-style-red2":{colour:"#ee3224",retailer:"argos"},"van-style-black":{colour:"#141414",retailer:"johnlewis"},"van-style-orange3":{colour:"#fa9d28|#3c4a65",retailer:"newegg"},"van-style-green":{colour:"#66a919",retailer:"ao"},"van-style-pink":{colour:"#e6248a",retailer:"techradar"},"van-style-red1":{colour:"#DC191B",retailer:"pcgamer"},"van-style-orange1":{colour:"#F26722",retailer:"gamesradar"},"van-style-orange2":{colour:"#E94E1B",retailer:"creativebloq"}},yd=()=>Object.keys(ir).find(e=>dn(e)),Ed=(e,t)=>{e&&(t==="amazon"?e.classList.add("amazon-theme"):e.style.background=`url('/${window.ffte.site}/media/img/black_friday_bg_2018-${t}.jpg') no-repeat top center`)},Sd=(e,t,n)=>{e&&(e.style.background=n[0],t.insertRule(`.fancy-box .fancy_box-title::after { color: ${n[0]}!important; }`,0))},_d=(e,t)=>{e.forEach(n=>{n.style.borderBottom=`2px solid ${t[0]}`;const r=n.querySelector("span");r&&(r.style.backgroundColor=t[0])})},xd=(e,t)=>{e.style.borderTop=`2px solid ${t[0]}`,e.style.borderBottom=`2px solid ${t[0]}`},Ld=(e,t)=>{e.insertRule(`.sticky-nav:not(.left-rail-nav) li.list__title.active { border-bottom: 3px solid ${t[0]} !important }`),e.insertRule(`.sticky-nav.left-rail-nav li.list__title.active a { color: ${t[0]} !important }`)},Td=(e,t)=>{const n=yd();if(!n)return;const r=ir[n].colour.split("|"),i=ir[n].retailer,o=document.querySelector("._van_header_black_friday .byline-social"),a=document.querySelector(".fancy-box .fancy_box-title"),s=document.styleSheets.length-1,c=document.styleSheets[s];Ed(o,i),Sd(a,c,r),_d(e,r),xd(t,r),Ld(c,r)},yo={responsive:{selector:"header h1",boundingKey:"top",offset:0},progressive:{selector:".article__body",boundingKey:"top",offset:0}},un=()=>window.ffte.platform==="progressive",or=e=>e.classList.contains("sticky-nav__arrow--right")?1:-1,Eo=e=>e.scrollWidth-e.clientWidth,So=(e,t)=>{t.forEach(n=>{e.scrollLeft===0&&or(n)===-1||e.scrollLeft===Eo(e)&&or(n)===1?n.classList.add("disabled"):n.classList.remove("disabled")})},_o=(e,t)=>{e.forEach(n=>n.classList.remove("active")),t.classList.add("active")},xo=(e,t)=>{e.scrollTo({left:t,behavior:"smooth"})},Od=(e,t)=>{xo(e,t.offsetLeft-e.offsetWidth/2+t.offsetWidth/2)},kd=(e,t,n)=>{const r=e.scrollLeft+t*n,i=Eo(e);return r<0?0:r>i?i:r},Ad=(e,t)=>{e.forEach(n=>{const r=or(n);n.addEventListener("click",()=>{xo(t,kd(t,t.clientWidth/2,r))})})},Fd=(e,t,n)=>{e.addEventListener("click",r=>{const i=r.target;if(!i)return;const o=i.closest("li");o&&(_o(t,o),Od(n,o))})},Id=e=>e?yo.progressive:yo.responsive,Cd=e=>document.querySelector(e.selector),Pd=e=>{var t,n;return un()&&((n=(t=window.vanilla.featureFlags)==null?void 0:t.article)!=null&&n.progressiveSidebarEnabled)?1200:un()?e>=1280?880:750:970},Lo=(e,t)=>t>=e,Rd=(e,t,n,r,i)=>{Lo(e,t)&&(i.style.left=Math.floor((t-r)/2-n.offsetWidth)+"px")},Md=(e,t,n,r,i)=>{Lo(e,t)?(n.classList.add("left-rail-nav"),r.appendChild(n)):(n.classList.remove("left-rail-nav"),i.appendChild(n))},To=(e,t,n,r)=>{const i=window.innerWidth;Md(e,i,t,n,r),Rd(e,i,t,Pd(i),n)},Dd=e=>{const t=un()?1517:1230;if((dn("van_sticky_side_nav")||dn("van-sticky-side-nav"))&&window.innerWidth>=t){const n=document.querySelector(".left-rail-area"),r=e.parentElement;if(!n||!r)return;const i=Id(un());if(!Cd(i))return;To(t,e,n,r),n.classList.add("show-rail"),e.classList.add("show-rail"),window.addEventListener("resize",Se(()=>To(t,e,n,r),200))}},ar=e=>{e.style.display="none",window.stickyNavDisabled=!0,document.dispatchEvent(new CustomEvent("stickyNavRemoved"))},Nd=(e,t)=>e.reduce((n,r)=>r.querySelector(`a[href="#${t.id}"]`)?r:n),jd=(e,t)=>{new IntersectionObserver((r,i)=>{r.forEach(o=>{o.isIntersecting&&t()})},{rootMargin:"0px 0px -50% 0px",threshold:[0]}).observe(e)},Bd=(e,t,n)=>{e.forEach(r=>{const i=Nd(t,r);jd(r,()=>{_o(t,i)})})},qd=()=>ne(this,null,function*(){const e=document.querySelector(".sticky-nav");if(!e)return;if(dn("van_no_sticky_nav")){ar(e);return}gd(e);const t=e.querySelector(".sticky-nav__scroll-wrapper");if(!t)return;const n=t.querySelector(".scroll-wrapper__list");if(!n)return;const r=n.querySelectorAll(".list__title"),i=e.querySelectorAll(".sticky-nav__arrow");if(!r.length)return;const o=Array.from(r),a=i.length?Array.from(i):null;if(window.vanilla.featureFlags.articleSlider&&window.vanilla.featureFlags.articleSlider.present){ar(e);return}else document.addEventListener("articleSliderPresent",()=>ar(e));if(e.classList.contains("sticky-nav--sections")){const c=document.querySelectorAll(".article-body__section");if(!c.length)return;const d=Array.from(c);Bd(d,o),Dd(e),Td(d,n)}if(Fd(n,o,t),a){Ad(a,t),So(t,a);const c=Se(()=>So(t,a),50);t.addEventListener("scroll",c,{passive:!0})}});window.reliableDOMContentLoaded.then(()=>ne(this,null,function*(){yield qd()})).catch(e=>console.error("%c FTE ","background: #9306F9; color: #ffffff","stickyInit err",e));const Hd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),{sequence:Ud}=Ke.Maybe,fn=e=>["January","February","March","April","May","June","July","August","September","October","November","December"][e-1],Oo=(e,t,n,r)=>{const i=Array.prototype.slice.call(e.children);let o=!1;return i.map((a,s)=>{const c=a.value;t[r][fn(Number(c))]&&!o&&(e.selectedIndex=s,n=c,o=!0)}),n},Wd=e=>{e.innerHTML+='<span class="icon icon-arrow-right"></span>'},$d=(e,t)=>`${window.location.pathname.split("archive")[0]+"archive"}/${e.padStart(4,"0")}/${t.padStart(2,"0")}`,ko=(e,t)=>{Array.prototype.slice.call(t.children).forEach((n,r)=>{n.disabled=!e[fn(r+1)]})},zd=Ke.Maybe.maybe(window.__archiveValidMonths),Ao=()=>{Qe(".filter",document).bind(e=>Ud({yearFilter:Qe("#archiveYear",e),monthFilter:Qe("#archiveMonth",e),goButton:Qe(".filter__button",e)})).bind(e=>zd.map(t=>({elements:e,validMonths:t}))).caseOf({just:({elements:e,validMonths:t})=>{const n=e.yearFilter,r=e.monthFilter,i=e.goButton,o=n.firstElementChild,a=n.querySelector("option:checked");let s=a?a.value:o.value,c=r.getAttribute("data-initial-month");ko(t[s],r),n.addEventListener("change",d=>{s=d.target.value,ko(t[s],r),t[s][fn(Number(c))]||(c=Oo(r,t,c,s))}),r.addEventListener("change",d=>{c=d.target.value}),i.addEventListener("click",()=>{s&&c&&(window.location.href=$d(s,c))}),t[s][fn(Number(c))]||(c=Oo(r,t,c,s)),Wd(i)},nothing:()=>console.warn("%c FTE ","background: #9306F9; color: #ffffff","No archive filter present")})};document.readyState==="complete"||document.readyState==="interactive"?Ao():document.addEventListener("DOMContentLoaded",Ao);const Vd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Fo="data-lazy-src",Gd=(e,t)=>n=>{const r=n.getAttribute(e);return r&&n.setAttribute(t,r),n},Yd=e=>e.isIntersecting,Io=e=>e.querySelectorAll(`iframe[${Fo}]`),Jd=e=>{const t={threshold:.1},n=Gd(Fo,"src"),r=new IntersectionObserver((o,a)=>o.filter(Yd).map(s=>s.target).map(n).forEach(s=>a.unobserve(s)),t);Io(e||document).forEach(o=>r.observe(o))},Kd="Loading...",Qd="Recommended:",Xd="Next Article",Ve=e=>e==null?void 0:e.enabled,sr=Ee()?"mobile":la()?"tablet":da()?"desktop":null,Co=(e,t)=>t!=null&&t.allowedArticleTypes?t==null?void 0:t.allowedArticleTypes.includes(e==null?void 0:e.articleType):!0,Po=(e,t)=>t!=null&&t.allowedArticleCategories?t==null?void 0:t.allowedArticleCategories.some(n=>e==null?void 0:e.articleCategoryHandle.includes(n)):!0,Ro=e=>e!=null&&e.rateLimitPercentage?(e==null?void 0:e.rateLimitPercentage)/100:1,Zd=()=>{const e=new Event(Ee()?"touchstart":"click"),t=document.querySelectorAll('.jw-float-bar-icon.jw-float-icon.jw-icon.jw-button-color.jw-reset[role="button"]');if(t)for(const n of t)n.dispatchEvent(e)},eu=()=>{const e=document.querySelector(".left-rail-nav");e&&(e.style.visibility="hidden")},Mo=()=>{const e=window.localStorage.getItem("infiniteScrollArticleIds");return e?e.split(","):[]},tu=e=>{const t=Mo();t.push(e),window.localStorage.setItem("infiniteScrollArticleIds",t.join(","))},nu=e=>typeof e.articleId=="string";function ru(){return ne(this,null,function*(){var r;const e=(r=window.vanilla.featureFlags)==null?void 0:r.sponsoredScroll,t=(e==null?void 0:e.device)||[],n=window.ffte.properties;if(n){if(!Ve(e)){console.debug("%c FTE ","background: #9306F9; color: #ffffff","SponsoredScroll - not enabled");return}if(!sr||!t.includes(sr)){console.debug("%c FTE ","background: #9306F9; color: #ffffff",`SponsoredScroll - not enabled for ${sr}`);return}if(!Co(n,e)){console.debug("%c FTE ","background: #9306F9; color: #ffffff","SponsoredScroll - article type not allowed");return}if(!Po(n,e)){console.debug("%c FTE ","background: #9306F9; color: #ffffff","SponsoredScroll - article category not allowed");return}if(Math.random()>Ro(e)){console.debug("%c FTE ","background: #9306F9; color: #ffffff","SponsoredScroll - outside the rate limit");return}try{const a=window.reduxStore.getState().analytics.freyrData.site||{};window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"boostRequest",eventObject:{site:K({},a)}});const s=yield fetch(`https://tonnelier.futurehybrid.tech/sponsored?l=${encodeURIComponent(window.location.href)}&sw=${Rt()}${gu()}`);if(!s.ok)throw new Error(`HTTP error! status: ${s.status}`);if(s.status===204)throw new Error("No content available for sponsored scroll - status: 204");if(s.status===404)throw new Error("Resource not found for sponsored scroll - status: 404");const c=yield s.json();if(!nu(c))throw new Error("Invalid response format");return window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"boostResponse",eventObject:{site:K({},a)}}),c.articleId}catch(i){return console.error("%c FTE ","background: #9306F9; color: #ffffff",i),null}}})}const iu=(e,t)=>ne(this,null,function*(){const n=yield ru();return n&&(e.unshift(n),t[n]=!0),{articleIds:e,articleIdData:t}}),ou=e=>{const t=jo()?jo():bu();return t&&(window.localStorage.setItem("infiniteScrollArticleIds",""),e.articleIds.unshift(t),e.articleIdData[t]=!1),K({},e)};function au(){var t,n;const e=[];Ve((t=window.vanilla.featureFlags)==null?void 0:t.sponsoredScroll)&&e.push("boost-enabled"),Ve((n=window.vanilla.featureFlags)==null?void 0:n.infiniteScroll)&&e.push("infinite-scroll-enabled"),e.length>0&&window.dispatchOrQueueAction("analytics.addFreyrTags",e)}let Do=0;const su=()=>++Do,cu=()=>Do,lu=e=>{window.scrollTo({top:e,behavior:"smooth"})},du=e=>{let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},uu=(e,t=500)=>window.scrollY>e+t,cr=(e,t)=>`/infinite-scroll-${e==="review"?"review":"article"}/${t}`,fu=e=>{const t=document.createElement("link");t.setAttribute("as","fetch"),t.setAttribute("rel","prefetch"),t.setAttribute("href",e),document.head.appendChild(t)},hu=()=>{var e;if(Ve((e=window.vanilla.featureFlags)==null?void 0:e.sponsoredScroll)){const t=document.createElement("script");t.id="pressboard-script",t.type="text/javascript",t.defer=!0,t.text=`!function(p,r,e,s,b,d){p.pbq||(s=p.pbq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);
        },s.version='1.0',s.queue=[],b=r.createElement(e),b.async=!0,b.src='https://sr.studiostack.com/v3/services',
        d=r.getElementsByTagName(e)[0],d.parentNode.insertBefore(b,d))}(window,document,'script'); pbq('init', '250873');`,document.head.appendChild(t)}},pu=e=>{var t,n,r,i,o,a;if(Ve((t=window.vanilla.featureFlags)==null?void 0:t.sponsoredScroll)&&((a=(o=(i=(r=(n=window.reduxStore.getState())==null?void 0:n.analytics)==null?void 0:r.freyrData)==null?void 0:i.page)==null?void 0:o.tags)!=null&&a.includes("pressboard"))){const s=Math.floor(Math.random()*1e8),c=document.createElement("div");c.id=`pressboard-ad-sponsorship-msg_${s}`,e.appendChild(c)}},mu=e=>{var t,n,r;Ve((t=window.vanilla.featureFlags)==null?void 0:t.sponsoredScroll)&&((r=(n=e.page)==null?void 0:n.tags)!=null&&r.includes("pressboard"))&&window.pbq("set","story")},No=(e,t)=>{const n=(i,o)=>{i.forEach(a=>{a.isIntersecting&&(o.disconnect(),fu(e))})};new IntersectionObserver(n,{rootMargin:"0px 0px 3500px 0px",threshold:0}).observe(t)},wu=e=>{const t=Array.from(e.querySelectorAll("script"));t.map(r=>{const i=document.createElement("script");return r.innerHTML!==""&&(i.innerHTML=r.innerHTML),r.type&&(i.type=r.type),i.defer=r.hasAttribute("defer"),r.src&&(i.src=r.src),i}).forEach((r,i)=>{var o;(o=t[i].parentNode)==null||o.replaceChild(r,t[i])})},vu=e=>new Promise((t,n)=>{var o;const r=e.querySelector(".crow-iframe");if(!r){n(new Error("Iframe element not found"));return}const i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.2.11/iframeResizer.min.js",i.onload=()=>{var a;(a=r==null?void 0:r.classList)==null||a.add("iframe-resizer"),r.setAttribute("scrolling","no"),window.iFrameResize({log:!1},".iframe-resizer"),t()},(o=r==null?void 0:r.parentNode)==null||o.insertBefore(i,r)}),jo=()=>new URLSearchParams(window.location.search).get("SCROLL-ARTICLE-ID"),Bo=()=>new URLSearchParams(window.location.search).get("feai"),bu=()=>{const e=Bo();return e?e.split("+")[0]:null},gu=()=>{const e=Bo();return e?`&feai=${e}`:""},yu=(e,t,n,r,i,o,a,s)=>{const c=e.getAttribute("data-url"),d=e.getAttribute("data-freyr"),l=e.getAttribute("data-title");window.history.pushState({},"",c);const u=su(),h=Ue("FTR_Country_Code");l&&(document.title=l);const f=JSON.parse(d||"{}");f.page.index=u,i[o]&&f.page.tags.push("tonnelier-boosted-article"),h&&(f.page.countryCode=h,f.site.countryCode=h),window.dispatchOrQueueAction("analytics.setFreyrData",f),setTimeout(()=>{var z;(z=window.dm)==null||z.AjaxEvent("pageview",null,o)},0),window.bordeaux&&(window.disableBordeaux===void 0||window.disableBordeaux===!1)&&window.bordeaux.cmd.push(()=>{window.bordeaux.setTargeting({articleid:o})});const F=du(t);uu(F,500)&&lu(F),o!=="cqgzf6EeCBeNapWfvkNmmd"&&tu(o);const B=r[0];No(cr(a,B),n),vr(`.infinite-article-${u-1}`),mu(f),s.observe(n),u===1&&eu()},Eu=(e,t,n)=>{const r=(o,a)=>{o.forEach(s=>{var c;if(s.isIntersecting){a.disconnect(),e(),document.dispatchEvent(new CustomEvent("processArticle",{detail:{element:t}})),window.bordeaux=window.bordeaux||{},window.bordeaux.cmd=window.bordeaux.cmd||[],window.bordeaux.cmd.push(()=>{window.bordeaux.setRefreshTime(1e5),window.bordeaux.requestHandleDynamicSlots()});const d=(c=window.document.querySelector(".bordeaux-anchored-container"))!=null?c:null;d&&d.remove(),pu(t),vu(t).then(()=>{console.info("%c FTE ","background: #9306F9; color: #ffffff","Crow article processing completed successfully")}).catch(l=>{console.error("%c FTE ","background: #9306F9; color: #ffffff",`Error processing crow article: ${t}`,l)}),Zd(),window.jwplayerInit(t),n.articleControlTag.includes("van-block-sticky-video")===!1&&n.articleControlTag.push("van-block-sticky-video")}})};new IntersectionObserver(r,{rootMargin:`0px 0px -${window.innerHeight/2}px 0px`,threshold:[0]}).observe(t)},Su=()=>{var n,r,i;const e=(n=window.vanilla.featureFlags)==null?void 0:n.infiniteScroll,t=window.ffte.properties;return t?Ve(e)?!Ee()&&((i=(r=window.vanilla.featureFlags)==null?void 0:r.infiniteScroll)!=null&&i.mobileOnly)?(console.debug("%c FTE ","background: #9306F9; color: #ffffff","InfiniteScroll - infinite scroll mobile only"),[]):Co(t,e)?Po(t,e)?Math.random()>Ro(e)?(console.debug("%c FTE ","background: #9306F9; color: #ffffff","InfiniteScroll - article fell outside the rate limit"),[]):window.vanilla.infiniteArticlesData:(console.debug("%c FTE ","background: #9306F9; color: #ffffff","InfiniteScroll - article category not allowed"),[]):(console.debug("%c FTE ","background: #9306F9; color: #ffffff","InfiniteScroll - article type not allowed"),[]):(console.debug("%c FTE ","background: #9306F9; color: #ffffff","InfiniteScroll - infinite scroll not enabled"),[]):[]},qo=e=>{const t=e.shift();return t?Mo().includes(t)?qo(e):t:null},_u=e=>{const t=document.createElement("div");t.classList.add("infinite-article",`infinite-article-${e}`);const n=document.createElement("div");n.className="infinite-article__divider",t.append(n);const r=document.createElement("div");r.className="infinite-article__divider-heading",r.textContent=Qd,n.append(r);const i=document.createElement("div");i.className="infinite-article__divider-subheading",i.textContent=Xd,n.append(i);const o=document.createElement("section");return o.className="infinite-article__post article-wrapper",t.append(o),{newArticleElement:t,articlePost:o}},xu=()=>ne(this,null,function*(){const e=window.ffte.properties;if(!e)return;const t=document.querySelector(".infinite-trigger");if(!t){console.warn("%c FTE ","background: #9306F9; color: #ffffff","InfiniteScroll - no trigger for infinite scroll");return}au(),hu();const n=e.articleType,r=Su(),i=r.reduce((l,u)=>lr(K({},l),{[u]:!1}),{}),{articleIds:o,articleIdData:a}=ou(yield iu(r,i));if(!o.length)return;const s=o[0];No(cr(n,s),t);const c=(l,u)=>{l.forEach(h=>{if(h.isIntersecting){u.disconnect();const f=qo(o);if(!f)return;const{newArticleElement:F,articlePost:B}=_u(cu()),z=t.parentElement;z==null||z.insertBefore(F,t),B.innerHTML=Kd,fetch(cr(n,f),{method:"GET",credentials:"include",mode:"no-cors"}).then(N=>N.ok?N.text():"").then(N=>{if(N===""){F.parentNode&&F.parentNode.removeChild(F),u.observe(t);return}B.innerHTML=N,window.requestAnimationFrame(()=>{const P=F.querySelector(".infinite-article-data");if(!P){console.warn("%c FTE ","background: #9306F9; color: #ffffff","InfiniteScroll - no article data element found");return}window.requestAnimationFrame(()=>{wu(F),Jd(F)}),Eu(()=>yu(P,F,t,o,a,f,n,u),F,e)})}).catch(N=>console.error("%c FTE ","background: #9306F9; color: #ffffff","InfiniteScroll - error fetching article",N))}})};new IntersectionObserver(c,{rootMargin:"0px 0px 2000px 0px",threshold:0}).observe(t)});window.reliableDOMContentLoaded.then(()=>ne(this,null,function*(){yield xu()})).catch(e=>console.error("%c FTE ","background: #9306F9; color: #ffffff",e));const Lu=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Tu=()=>{var n,r;const e=(n=window.vanilla.featureFlags.blueconic)==null?void 0:n.enabled,t=(r=window.vanilla.featureFlags.blueconic)==null?void 0:r.scriptSrc;e&&t&&Ou(t)},Ou=e=>{const t=document.createElement("script");t.type="text/javascript",t.src=e,document.head.appendChild(t)},ku=Object.freeze(Object.defineProperty({__proto__:null,initBlueconic:()=>{(window.reliableConsentGiven||Promise.resolve()).then(t=>{var i,o,a;const n=((i=t==null?void 0:t.consent)==null?void 0:i.gdprApplies)||!1,r=((a=(o=t==null?void 0:t.consent)==null?void 0:o.purpose)==null?void 0:a.consents)||{};(n===!1||Object.values(r).length>0)&&Tu()}).catch(t=>{console.error("%c FTE ","background: #9306F9; color: #ffffff","Blueconic is not loaded",t)})}},Symbol.toStringTag,{value:"Module"}));function Au(){var n;document.getElementById("dianomi-head")&&((n=document.getElementById("dianomi-head"))==null||n.remove());const e=window.document.createElement("script");e.async=!0,e.src="https://www.dianomi.com/js/contextfeed.js",e.id="dianomi-head";const t=window.document.getElementsByTagName("script")[0];t.parentNode&&t.parentNode.insertBefore(e,t)}function Ho(){const e=window.innerWidth&&window.innerWidth>=700?"desktop":"mobile";console.debug("%c FTE ","background: #9306F9; color: #ffffff","dianomi device type",e);for(const t of document.getElementsByClassName("dianomi_gallery")){const n=window.vanilla.featureFlags.dianomi;e==="mobile"&&n&&n.enabled&&n.mobile&&t.setAttribute("data-dianomi-context-id",n.mobile.galleryContextId)}Au()}const Fu=Object.freeze(Object.defineProperty({__proto__:null,setDianomi:()=>{const e=window.vanilla.featureFlags.dianomi;e&&e.enabled&&(window.Promise.all([window.reliablePageLoad,window.reliableConsentGiven]).then(()=>{Ho()}).catch(t=>{console.error("%c FTE ","background: #9306F9; color: #ffffff","dianomi loading error",t)}),window.addEventListener("resize",Ho))}},Symbol.toStringTag,{value:"Module"})),Iu=e=>new Promise(t=>{window.requestAnimationFrame?window.requestAnimationFrame(()=>{t(e.getBoundingClientRect())}):t(e.getBoundingClientRect())}),Cu=e=>{e.forEach(t=>{t.style.display="none"})},Pu=(e,t)=>{const n={rootMargin:`0px 0px -${window.innerHeight/2}px 0px`,threshold:[0]};new IntersectionObserver((i,o)=>{i[0].isIntersecting&&(e.style.display="flex",o.disconnect())},n).observe(t)},Uo=()=>{const e=Array.prototype.slice.call(document.querySelectorAll("article p"));let t;return e.length>2?t=e[2]:t=e[0],t},Ru=(e,t,n,r)=>{const i=e.querySelector("img.brand__logo"),o=e.querySelector(".stickyFooter__name"),a=e.querySelector(".stickyFooter__view"),s=e.querySelector(".brand__best");if(!(!i||!o||!a||!s)){if(!t)a.setAttribute("target","_blank"),a.setAttribute("rel","nofollow"),a.setAttribute("data-action","Sticky Footer"),a.textContent="VISIT SITE",r&&(a.href=r.url,s.textContent=r.bestLabel,i.src=r.imageUrl,i.classList.add("brand__logo--border")),o.textContent=n.charAt(0).toUpperCase()+n.slice(1);else{const c=e.querySelector(".stickyFooterContent"),d=c.querySelector(".stickyFooter__brand");if(!c||!d)return;const l=document.createElement("div");l.classList.add("hawk-placeholder"),l.setAttribute("data-widget-type","review"),l.setAttribute("data-model-name",n),l.setAttribute("data-display-type","simple"),l.setAttribute("data-rows","1"),Cu([d,o,a]),c.appendChild(l)}return parent}},Mu=()=>["toptenreviews","tomsguide"].includes(window.ffte.site),Du=(e,t)=>{const n=window.ffte.properties;if(!n||!Mu())return;const r=document.querySelector(".stickyFooter");if(!r)return;Ru(r,!t,e,t);let o=!0;n.articleType!=="best-pick"&&(o=!1);let a;o?(a=document.querySelector("h3.article-body__section"),a||(a=Uo())):a=Uo();const s=window.scrollY;Iu(a).then(c=>{s<c.top+s&&window.IntersectionObserver&&!Xn()?Pu(r,a):r.style.display="flex"}).catch(c=>console.error("%c FTE ","background: #9306F9; color: #ffffff",c))};window.stickyFooterInit=Du;const Nu=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ju=e=>{const t=e.previousElementSibling;if(!t)return;const n=t.children[0];n.classList.contains("hide-extra-info")?T.mutate(()=>{n.classList.remove("hide-extra-info"),e.textContent="LESS"}):n.classList.contains("hide-extra-info")||T.mutate(()=>{n.classList.add("hide-extra-info"),e.textContent="MORE"})},Wo=()=>{T.measure(()=>{const e=document.querySelector("toggle-more-less");e&&e.addEventListener("click",()=>{ju(e)})})};document.readyState==="complete"||document.readyState==="interactive"?Wo():document.addEventListener("DOMContentLoaded",Wo);const Bu=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),$o=e=>({element:{action:e,class:"nav-subscribe",container:"DIV",id:"dropdown-subscribe",text:"Subscribe",name:null,label:null,url:document.URL}}),qu=e=>{const t=document.querySelector(`${e} .nav-subscribe .subscribe-text`);if(!t)return;const n=document.querySelector(".nav-subscribe-widget-container");if(!n||!n.firstElementChild)return;let i=!1,o=null,a="0px";const s=()=>{o===null&&i&&(o=new IntersectionObserver((u,h)=>{u.forEach(f=>{f.isIntersecting===!1&&(h.disconnect(),o=null,d())})},{root:null,rootMargin:a}),o.observe(n))},c=window.matchMedia("(max-width: 699px)");c.onchange=u=>{u.matches?a="-60px":a="0px"};const d=()=>{i=!1,n.classList.remove("visible"),window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"elementInteraction",eventObject:$o("close")})},l=()=>{i?d():(i=!0,n.classList.add("visible"),window.scrollTo(0,0),window.dispatchOrQueueAction("freyr.sendEventToFreyr",{name:"elementInteraction",eventObject:$o("open")}))};t.addEventListener("click",u=>{u.stopPropagation(),l(),setTimeout(s,200)})};window.reliableDOMContentLoaded.then(()=>{qu(".burgerbar")}).catch(e=>console.error("%c FTE ","background: #9306F9; color: #ffffff",e));const Hu=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Uu=425,Wu="chatbotHeight";let zo=!1,Vo=!1;const $u=()=>Array.from(document.querySelectorAll("iframe")),zu=e=>e.filter(t=>{const n=t.getAttribute("data-lazy-src");return!!(n!=null&&n.includes("bot")&&n.includes("tomshardware"))}),Go=(e,t,n)=>{n&&e.offsetHeight<t||(e.style.height=t+"px")},Vu=e=>{window.addEventListener("message",t=>{const n=t.data,r=n.height;n.type===Wu&&r&&e.forEach(i=>{Go(i,r),Vo=!0})})},Yo=()=>ne(this,null,function*(){const e=zu($u()),t=Uu,n={once:!0};window.focus(),e.forEach((r,i)=>{r.addEventListener("load",()=>{if(r.offsetHeight>t){const o=()=>{Vo||Go(r,t,!0)};document.addEventListener("click",o,n),document.addEventListener("keypress",o,n),window.addEventListener("blur",()=>{var a;((a=document.activeElement)==null?void 0:a.tagName)==="IFRAME"&&o()},n)}zo||(Vu(e),zo=!0)})})});document.readyState==="complete"||document.readyState==="interactive"?Yo():document.addEventListener("DOMContentLoaded",Yo);const Gu=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}))})();
