/*! For license information please see main.18ef2333180e004e24f1.js.LICENSE.txt */ (()=>{var e={442:(e,t,o)=>{"use strict";var n=o(315);e.exports={APP_BASE_PATH:n.APP_BASE_PATH,BUILD_PATH:n.BUILD_PATH,PUBLIC_PATH:n.PUBLIC_PATH,SW_FILENAME:n.SW_FILENAME,SCRIPT_FILENAME:n.SCRIPT_FILENAME,ENTRY_FILENAME:n.ENTRY_FILENAME}},315:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SW_FILENAME=t.SCRIPT_FILENAME=t.PUBLIC_PATH=t.ENTRY_FILENAME=t.BUILD_PATH=t.APP_BASE_PATH=void 0;t.APP_BASE_PATH="app";t.BUILD_PATH="_build";t.PUBLIC_PATH="public";t.SCRIPT_FILENAME="main.js";t.SW_FILENAME="sw.js";t.ENTRY_FILENAME="entry.js"},555:(e,t)=>{"use strict";t.QF=t.oY=void 0;t.oY=function(e){return e.map((function(e){return(e.firstName||" ")+" "+(e.lastName||" ")})).filter((function(e){return e.replace(/\s/g,"").length>0})).join(", ")||"No author"};t.QF=function(e){return e.map((function(e){return e.name})).map((function(e){return e.replace(/^By\s/,"")})).join(", ").toString()||void 0}},1249:(e,t)=>{"use strict";t.Rz=void 0;var o=["brightcove","youtube","jw_player","dugout-video"];t.Rz=function(e){return e.hierarchy.map((function(e){return e.name})).join(",").toString()}},7354:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,o=36e5,n="millisecond",i="second",r="minute",a="hour",s="day",c="week",l="month",d="quarter",p="year",u="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],o=e%100;return"["+e+(t[(o-20)%10]||t[o]||t[0])+"]"}},f=function(e,t,o){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(o)+e},h={s:f,z:function(e){var t=-e.utcOffset(),o=Math.abs(t),n=Math.floor(o/60),i=o%60;return(t<=0?"+":"-")+f(n,2,"0")+":"+f(i,2,"0")},m:function e(t,o){if(t.date()1)return e(a[0])}else{var s=t.name;y[s]=t,i=s}return!n&&i&&(w=i),i||!n&&w},S=function(e,t){if(v(e))return e.clone();var o="object"==typeof t?t:{};return o.date=e,o.args=arguments,new P(o)},O=h;O.l=k,O.i=v,O.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var P=function(){function g(e){this.$L=k(e.locale,null,!0),this.parse(e)}var f=g.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,o=e.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(b);if(n){var i=n[2]-1||0,r=(n[7]||"0").substring(0,3);return o?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return O},f.isValid=function(){return!(this.$d.toString()===m)},f.isSame=function(e,t){var o=S(e);return this.startOf(t)<=o&&o<=this.endOf(t)},f.isAfter=function(e,t){return S(e){var n=o(3401).Symbol;e.exports=n},7398:(e,t,o)=>{var n=o(6293),i=o(6945),r=o(1584),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):r(e)}},3897:(e,t,o)=>{var n=o(5012),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},151:(e,t,o)=>{var n="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g;e.exports=n},6945:(e,t,o)=>{var n=o(6293),i=Object.prototype,r=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=r.call(e,s),o=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=o:delete e[s]),i}},1584:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3401:(e,t,o)=>{var n=o(151),i="object"==typeof self&&self&&self.Object===Object&&self,r=n||i||Function("return this")();e.exports=r},5012:e=>{var t=/\s/;e.exports=function(e){for(var o=e.length;o--&&t.test(e.charAt(o)););return o}},9678:(e,t,o)=>{var n=o(6627),i=o(5365),r=o(7948),a=Math.max,s=Math.min;e.exports=function(e,t,o){var c,l,d,p,u,m,b=0,_=!1,g=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var o=c,n=l;return c=l=void 0,b=t,p=e.apply(n,o)}function w(e){var o=e-m;return void 0===m||o>=t||o<0||g&&e-b>=d}function y(){var e=i();if(w(e))return v(e);u=setTimeout(y,function(e){var o=t-(e-m);return g?s(o,d-(e-b)):o}(e))}function v(e){return u=void 0,f&&c?h(e):(c=l=void 0,p)}function k(){var e=i(),o=w(e);if(c=arguments,l=this,m=e,o){if(void 0===u)return function(e){return b=e,u=setTimeout(y,t),_?h(e):p}(m);if(g)return clearTimeout(u),u=setTimeout(y,t),h(m)}return void 0===u&&(u=setTimeout(y,t)),p}return t=r(t)||0,n(o)&&(_=!!o.leading,d=(g="maxWait"in o)?a(r(o.maxWait)||0,t):d,f="trailing"in o?!!o.trailing:f),k.cancel=function(){void 0!==u&&clearTimeout(u),b=0,c=m=l=u=void 0},k.flush=function(){return void 0===u?p:v(i())},k}},6627:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},9109:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},2848:(e,t,o)=>{var n=o(7398),i=o(9109);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},5365:(e,t,o)=>{var n=o(3401);e.exports=function(){return n.Date.now()}},3763:(e,t,o)=>{var n=o(9678),i=o(6627);e.exports=function(e,t,o){var r=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(o)&&(r="leading"in o?!!o.leading:r,a="trailing"in o?!!o.trailing:a),n(e,t,{leading:r,maxWait:t,trailing:a})}},7948:(e,t,o)=>{var n=o(3897),i=o(6627),r=o(2848),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var o=s.test(e);return o||c.test(e)?l(e.slice(2),o?2:8):a.test(e)?NaN:+e}},7057:function(e){function t(e,t){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.selector=t,this.elements=[],this.version="1.3.0",this.vp=this.getViewportSize(),this.body=document.querySelector("body"),this.options={wrap:o.wrap||!1,wrapWith:o.wrapWith||"",marginTop:o.marginTop||0,marginBottom:o.marginBottom||0,stickyFor:o.stickyFor||0,stickyClass:o.stickyClass||null,stickyContainer:o.stickyContainer||"body"},this.updateScrollTopPosition=this.updateScrollTopPosition.bind(this),this.updateScrollTopPosition(),window.addEventListener("load",this.updateScrollTopPosition),window.addEventListener("scroll",this.updateScrollTopPosition),this.run()}var o,n,i;return o=e,(n=[{key:"run",value:function(){var e=this,t=setInterval((function(){if("complete"===document.readyState){clearInterval(t);var o=document.querySelectorAll(e.selector);e.forEach(o,(function(t){return e.renderElement(t)}))}}),10)}},{key:"renderElement",value:function(e){var t=this;e.sticky={},e.sticky.active=!1,e.sticky.marginTop=parseInt(e.getAttribute("data-margin-top"))||this.options.marginTop,e.sticky.marginBottom=parseInt(e.getAttribute("data-margin-bottom"))||this.options.marginBottom,e.sticky.stickyFor=parseInt(e.getAttribute("data-sticky-for"))||this.options.stickyFor,e.sticky.stickyClass=e.getAttribute("data-sticky-class")||this.options.stickyClass,e.sticky.wrap=!!e.hasAttribute("data-sticky-wrap")||this.options.wrap,e.sticky.stickyContainer=this.options.stickyContainer,e.sticky.container=this.getStickyContainer(e),e.sticky.container.rect=this.getRectangle(e.sticky.container),e.sticky.rect=this.getRectangle(e),"img"===e.tagName.toLowerCase()&&(e.onload=function(){return e.sticky.rect=t.getRectangle(e)}),e.sticky.wrap&&this.wrapElement(e),this.activate(e)}},{key:"wrapElement",value:function(e){e.insertAdjacentHTML("beforebegin",e.getAttribute("data-sticky-wrapWith")||this.options.wrapWith),e.previousSibling.appendChild(e)}},{key:"activate",value:function(e){e.sticky.rect.top+e.sticky.rect.height=e.sticky.container.rect.top+e.sticky.container.rect.height||e.sticky.stickyFor>=this.vp.width&&e.sticky.active)&&(e.sticky.active=!1),this.setPosition(e)}},{key:"initScrollEvents",value:function(e){var t=this;e.sticky.scrollListener=function(){return t.onScrollEvents(e)},window.addEventListener("scroll",e.sticky.scrollListener)}},{key:"destroyScrollEvents",value:function(e){window.removeEventListener("scroll",e.sticky.scrollListener)}},{key:"onScrollEvents",value:function(e){e.sticky&&e.sticky.active&&this.setPosition(e)}},{key:"setPosition",value:function(e){this.css(e,{position:"",width:"",top:"",left:""}),this.vp.heighte.sticky.rect.top-e.sticky.marginTop?(this.css(e,{position:"fixed",width:e.sticky.rect.width+"px",left:e.sticky.rect.left+"px"}),this.scrollTop+e.sticky.rect.height+e.sticky.marginTop>e.sticky.container.rect.top+e.sticky.container.offsetHeight-e.sticky.marginBottom?(e.sticky.stickyClass&&e.classList.remove(e.sticky.stickyClass),this.css(e,{top:e.sticky.container.rect.top+e.sticky.container.offsetHeight-(this.scrollTop+e.sticky.rect.height+e.sticky.marginBottom)+"px"})):(e.sticky.stickyClass&&e.classList.add(e.sticky.stickyClass),this.css(e,{top:e.sticky.marginTop+"px"}))):(e.sticky.stickyClass&&e.classList.remove(e.sticky.stickyClass),this.css(e,{position:"",width:"",top:"",left:""}),e.sticky.wrap&&this.css(e.parentNode,{display:"",width:"",height:""})))}},{key:"update",value:function(){var e=this;this.forEach(this.elements,(function(t){t.sticky.rect=e.getRectangle(t),t.sticky.container.rect=e.getRectangle(t.sticky.container),e.activate(t),e.setPosition(t)}))}},{key:"destroy",value:function(){var e=this;window.removeEventListener("load",this.updateScrollTopPosition),window.removeEventListener("scroll",this.updateScrollTopPosition),this.forEach(this.elements,(function(t){e.destroyResizeEvents(t),e.destroyScrollEvents(t),delete t.sticky}))}},{key:"getStickyContainer",value:function(e){for(var t=e.parentNode;!t.hasAttribute("data-sticky-container")&&!t.parentNode.querySelector(e.sticky.stickyContainer)&&t!==this.body;)t=t.parentNode;return t}},{key:"getRectangle",value:function(e){this.css(e,{position:"",width:"",top:"",left:""});var t=Math.max(e.offsetWidth,e.clientWidth,e.scrollWidth),o=Math.max(e.offsetHeight,e.clientHeight,e.scrollHeight),n=0,i=0;do{n+=e.offsetTop||0,i+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:n,left:i,width:t,height:o}}},{key:"getViewportSize",value:function(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}},{key:"updateScrollTopPosition",value:function(){this.scrollTop=(window.pageYOffset||document.scrollTop)-(document.clientTop||0)||0}},{key:"forEach",value:function(e,t){for(var o=0,n=e.length;o{var n=o(7057);e.exports=n},6030:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(3537);function i(e,t,o){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}},6234:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(3007);function i(e,t){if("object"!=(0,n.Z)(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!=(0,n.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},3537:(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var n=o(3007),i=o(6234);function r(e){var t=(0,i.Z)(e,"string");return"symbol"==(0,n.Z)(t)?t:String(t)}},3007:(e,t,o)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}o.d(t,{Z:()=>n})},9022:(e,t,o)=>{"use strict";o.r(t),o.d(t,{adBreakpointHeight:()=>g,adBreakpointLarge:()=>h,adBreakpointMedium:()=>f,desktop:()=>m,desktopL:()=>u,desktopM:()=>p,desktopS:()=>d,laptop:()=>c,laptopL:()=>l,mobileL:()=>r,mobileM:()=>i,mobileS:()=>n,pdf:()=>b,tablet:()=>s,tabletS:()=>a,tideLaptop:()=>_});const n=320,i=375,r=425,a=595,s=768,c=1e3,l=1250,d=1280,p=1366,u=1440,m=2560,b=576,_=1024,g=650,f=1300,h=1600},7339:(e,t,o)=>{"use strict";o.d(t,{h:()=>S,l:()=>D});var n=o(6030),i=o(9022);function r(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function a(e){for(var t=1;ts(e,"name",{value:t,configurable:!0});function l(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}c(l,"upperFirst");const d=c(((e,t)=>{throw new Error(`Value for ${e} must be greater or equal to ${t}`)}),"handleError");function p(e){return e<1&&d("minHight",1),`(min-height: ${e}px)`}function u(e){return e<1&&d("minWidth",1),`(min-width: ${e}px)`}function m(e){return e<2&&d("maxWidth",2),`(max-width: ${e-1}px)`}function b(e){return Object.entries(e).sort((([,e],[,t])=>e>t?1:-1))}function _(e){return b(e).reduce(((e,[t,o],n,i)=>{const r=i[n+1],s=u(o),c=r&&m(r[1]),d=m(o);if(r&&o===r[1])throw new Error(`Duplicate width value of ${o} detected for ${t} and ${r[0]}`);return e=a(a({},e),{},{[t]:s,[`max${l(t)}`]:d,[`only${l(t)}`]:r?`${s} and ${c}`:s})}),{})}c(p,"minHeight"),c(u,"minWidth"),c(m,"maxWidth"),c(b,"sortSizesAscending"),c(_,"generateMediaQueryRules");const g=_({mobileS:i.mobileS,mobileM:i.mobileM,mobileL:i.mobileL,tabletS:i.tabletS,tablet:i.tablet,laptop:i.laptop,laptopL:i.laptopL,desktopS:i.desktopS,desktopM:i.desktopM,desktopL:i.desktopL,desktop:i.desktop,pdf:i.pdf,tideLaptop:i.tideLaptop,adBreakpointMedium:i.adBreakpointMedium,adBreakpointLarge:i.adBreakpointLarge}),{mobileS:f,maxMobileS:h,onlyMobileS:w,mobileM:y,maxMobileM:v,onlyMobileM:k,mobileL:S,maxMobileL:O,onlyMobileL:P,tabletS:I,maxTabletS:E,onlyTabletS:j,tablet:L,maxTablet:x,onlyTablet:A,laptop:D,maxLaptop:T,onlyLaptop:C,laptopL:$,maxLaptopL:M,onlyLaptopL:N,desktopS:B,maxDesktopS:R,onlyDesktopS:z,desktopM:U,maxDesktopM:G,onlyDesktopM:V,desktopL:J,maxDesktopL:q,onlyDesktopL:F,desktop:H,maxDesktop:W,onlyDesktop:Y,pdf:Z,maxPdf:K,onlyPdf:Q,tideLaptop:X,maxTideLaptop:ee,onlyTideLaptop:te,adBreakpointMedium:oe,maxAdBreakpointMedium:ne,onlyAdBreakpointMedium:ie,adBreakpointLarge:re,maxAdBreakpointLarge:ae,onlyAdBreakpointLarge:se}=g,ce=p(i.adBreakpointHeight);Symbol.toStringTag},2286:(e,t,o)=>{"use strict";o.d(t,{PJ:()=>n.l,w8:()=>n.h});var n=o(7339)}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,o),r.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=o(6030),t={maxInProgress:5,failFast:!1,nextCheck:function(e,t){return Promise.resolve(e.amountStarted=0||(i[o]=e[o]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}window.mockAdobeAnalyticsObject={tl:(...e)=>{var t,o;console.log('MOCK ADOBE ANALYTICS "tl" CALL',e),null===(t=(o=window).__CYPRESS__SPY__)||void 0===t||t.call(o,"tl",window.s_object)},t:()=>{var e,t;console.log('MOCK ADOBE ANALYTICS "t" CALL'),null===(e=(t=window).__CYPRESS__SPY__)||void 0===e||e.call(t,"t",window.s_object)}};var f=o(9022);const h=["subscription_length","subscription_price","subscription_package","initial_selected_package","marketing_opt_in","selling_page_variant"],w="trackRegistrationStart",y="js-comment-count-header",v="js-comment-count-footer",k="drawer-menu-temp-link",S="primary-item",O="primary-item__open",P="primary-link",I="primary-trigger",E="js-product-buy",j="related",L="js-product-comparison",x="mode-mouse",A="mode-keyboard-active",D="bookmark-button",T="bookmark-notification",C="show-notification",$="webpush-signup-button",M="esi:pianoReady",N="regWallLoaded",B="analytics-trigger",R="chartbeatLoaded",z="brazeLoaded",U="reg-wall",G=`${U}-form`,V=`${U}-form-b`,J="video_holder",q="voucher-ticker",F="top-banner-wrapper",H="main",W="drawer",Y=(e,t=null)=>{const o=`; ${document.cookie}`.split(`; ${e}=`);return 2===o.length?decodeURIComponent(o.pop().split(";").shift()):t},Z=(e,t,o)=>{const n=new Date;if(o){const e=o.days?24*o.days*60*60*1e3:60*o.hours*60*1e3;n.setTime(n.getTime()+e)}const i=[];i.push(`${e}=${encodeURIComponent(t)}`),i.push("path=/"),i.push("secure"),o&&i.push(`expires=${n.toGMTString()}`),document.cookie=i.join(";")},K=function(e){return null!==Y(e)};let Q;const X=()=>{if(void 0===Q){var e;const t=new URLSearchParams(null===(e=window)||void 0===e||null===(e=e.location)||void 0===e?void 0:e.search);Q=t.has("__DEBUG__")}return Q||"true"===Y("__DEBUG__")},ee=(...e)=>{X()&&console.log(...e)},te=(...e)=>{X()&&console.group(...e)},oe=(...e)=>{X()&&console.groupEnd(...e)},ne=(...e)=>{X()&&console.warn(...e)},ie=(...e)=>{X()&&console.error(...e)},re={current:null},ae=()=>re,se=(e,t={})=>{if(ae().current!==e)try{chartbeat(e,t),ae().current=e}catch(e){ie("Error: Failed to track chartbeat event,",e.message)}};function ce(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function le(t){for(var o=1;o(((e,t={})=>{const o=JSON.stringify(t,null,2),n=o.split("\n").reduce(((e,t)=>t.length>=e?t.length:e),0),i=e.length,r=Math.max(i,n),a=` ${e.padEnd(r)} `,s=o.split("\n").map((e=>` ${e.padEnd(r)} `)),c=s.length>1?`%c${s.slice(0,1)}\n%c${s.slice(1,-1).join("\n")}\n%c${s.slice(-1)}\n`:`%c${s[0]}\n`,l=s.length>1?["font-family:monospace; background: #333; color: #eee; padding-top: 5px;","font-family:monospace; background: #333; color: #eee;","font-family:monospace; background: #333; color: #eee; padding-bottom: 10px; border-radius: 0 0 6px 6px"]:["font-family:monospace; background: #333; color: #eee; padding-top: 5px; padding-bottom: 10px; border-radius: 0 0 6px 6px"];console.log(`%c${a}\n${c}`,"font-family:monospace; background: #333; color: #eee; border-bottom: 1px solid #666; padding: 5px 0; border-radius: 6px 6px 0 0",...l)})(`CustomEvent: ${e}`,t),new CustomEvent(B,{detail:{data:le({},t),eventName:e}})),pe=(e,t)=>{return o=de(e,t),void document.body.dispatchEvent(o);var o};function ue(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function me(t){for(var o=1;o{const e=sessionStorage.getItem(be)||"{}";return JSON.parse(e)},ge=e=>{const t=_e(),o=Object.assign({},t,e),n=JSON.stringify(o);sessionStorage.setItem(be,n)},fe=e=>{const t=_e(),o={};return e.map((e=>o[e]=t[e])),o},he=e=>{const t=_e();e.map((e=>delete t[e])),sessionStorage.setItem(be,JSON.stringify(t))},we=e=>{const t=fe(["subscription_length","subscription_price","subscription_package","initial_selected_package","selling_page_variant","auto_refresh","mostWatched_algorithm","mostWatched_paragraph_number"]);return me(me({},e),t)},ye=({subscription_length:e,subscription_price:t,subscription_package:o,selling_page_variant:n})=>{ge({subscription_length:e,subscription_price:t,subscription_package:o,selling_page_variant:n})},ve=(e={})=>pe("gallery_view",e),ke=(e={})=>pe("auto_gallery_view",e),Se=(e={})=>pe("load_more_comments",e),Oe=(e={})=>pe("liveblog_bulleted_list_click",e),Pe=(e={})=>pe("article_bulleted_list_click",e),Ie=(e={})=>pe("update_components_list",e),Ee=()=>pe("burger_menu_click"),je=(e,t,o={})=>{const n=new URLSearchParams;return n.set("__amp_source_origin",window.location.origin),Object.keys(o).forEach((e=>{n.set(e,o[e])})),fetch(`/internal-api/${e}?${n.toString()}`,t)},Le=(e,t,o)=>je(e,{method:"POST",mode:"same-origin",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)},o),xe=(e,t)=>je(e,{method:"GET"},t),Ae=(e,t)=>je(e,{method:"DELETE"},t),De="subscription-cause",Te=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Ce=(e,{async:t=!0,defer:o=document.location.search.includes("___FORCE_DEFER___"),parent:n=document.body,attributes:i}={})=>{window.JSGlobals=window.JSGlobals||{};const r=window.JSGlobals.loadedJS=[];return new Promise(((a,s)=>{const c=(e instanceof Array?e:[e]).map((e=>r.includes(e)?Promise.resolve():new Promise(((a,s)=>{const c=((e,{id:t,async:o,defer:n,ok:i,error:r,attributes:a})=>{const s=document.createElement("script");return s.onload=i,s.onerror=r,t&&"undefined"!==t&&(s.id=t),o&&!n&&s.setAttribute("async",""),n&&s.setAttribute("defer",""),a&&a.forEach((([e,t])=>{s.setAttribute(e,t)})),s.src=e,s})(e,{async:t,defer:o,ok:a,error:s,attributes:i});n.appendChild(c),r.push(e)}))));return Promise.all(c).then(a,s)}))},$e={title:"User Sync",width:1,height:1,sandbox:"allow-same-origin allow-scripts",frameborder:0},Me="homepage",Ne="category",Be=[{mode:"thumbnails-d1",container:"taboola-below-article-1",placement:"Below Article Thumbnails",target_type:"mix"},{mode:"alternating-thumbnails-d1",container:"taboola-carousel-thumbnails",placement:"Mid Article Thumbnails",target_type:"mix"},{mode:"thumbnails-k1",container:"taboola-right-rail",placement:"Right Rail Thumbnails",target_type:"mix"},{mode:"organic-thumbs-feed-01",container:"taboola-below-indy-best-feed",placement:"Below Indy Best Feed",target_type:"mix"},{mode:"rbox-tracking",container:"taboola-newsroom",placement:"Newsroom"},{mode:"thumbs-feed-hero-1sc-6sc-esi-inde",container:"taboola-ms-hero",placement:"MS Hero",target_type:"mix"},{mode:"thumbnails-mid-a",container:"taboola-mid-article-thumbnails-live-blogs",placement:"Mid Article Thumbnails Live Blogs",target_type:"mix"}],Re=[{mode:"thumbs-feed-01",container:"taboola-below-section-front-feed",placement:"Below Section Front Feed",target_type:"mix"},{mode:"thumbs-feed-01",container:"taboola-mobile-below-section-front-feed",placement:"Mobile Below Section Front Feed",target_type:"mix"}],ze=[{mode:"alternating-thumbnails-stream-1x4",container:"taboola-mid-article-thumbnails-ii",placement:"Mid Article Thumbnails II",target_type:"mix"},{mode:"alternating-thumbnails-stream-1x4-a",container:"taboola-mid-article-thumbnails-iii",placement:"Mid Article Thumbnails III",target_type:"mix"}],Ue=e=>{const t=document.getElementById(e.container);if(t){"none"!==window.getComputedStyle(t).getPropertyValue("display")&&_taboola.push(e)}},Ge=()=>{const{host:e,pathname:t}=window.location;return`//${e}${t}`},Ve=()=>{window._taboola=window._taboola||[];const{article:e,sectionName:t}=window.JSGlobals,{pageType:o,sectionValues:n}=window.JSGlobals.taboola;if(e){_taboola.push({article:"auto",url:Ge()});const t=document.getElementById("stickyFooterContainer");_taboola.push({listenTo:"visible",handler:e=>{e.detail.placement.includes("Below Article Thumbnails | Card 19")&&(t.style.display="none")}}),(e=>{const{user_status:t,uid:o}=window.digitalData;var n;window._taboola.push({unified_id:o,user_type:(n=t,{premium:"subscriber",registered:"registered",anonymous:"guest"}[n]||"other"),paywall:e.premium&&"premium"!==t})})(e),e.premium&&_taboola.push({premium:!0})}if("section"===o){const e="News"===t?Me:Ne;_taboola.push({[e]:"auto"}),n.forEach((t=>{delete t.category,(e===Me&&t.pageType===Me||e===Ne&&t.pageType===Ne)&&Ue(t)})),Re.forEach((e=>Ue(e)))}"article"===o&&ze.forEach((e=>Ue(e))),"section"!==o&&Be.forEach((e=>Ue(e))),_taboola.push({flush:!0})},Je=async()=>{var e,t;const o=(()=>{var e;const{publisherId:t,publisherIdIndyBest:o}=window.JSGlobals.taboola;return null!==(e=window.location.pathname)&&void 0!==e&&e.includes("indybest")?o:t})();await Ce([`//cdn.taboola.com/libtrc/${o}/loader.js`]),null===(e=window)||void 0===e||null===(e=e.performance)||void 0===e||null===(t=e.mark)||void 0===t||t.call(e,"tbl_ic")};function qe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}const Fe=(e={},t)=>{const o=Object.keys(e);window.tp=window.tp||[],window.tp.push(["addHandler","startCheckout",()=>((e={})=>pe("payment_form_loaded",e))(e)]),!t&&window.tp.push(["addHandler","checkoutComplete",()=>{((e={})=>{pe("payment_details_success",e)})(e),function(){const e=localStorage.getItem(De);e&&(window._tfa=window._tfa=[],window._tfa.push({notify:"subscription",name:"subscription-completed",sourceurl:e}),Ce(["//cdn.taboola.com/libtrc/unip/1018671/tfa.js"]))}(),he(o)}]),window.tp.push(["addHandler","checkoutError",()=>{he(o),((e={})=>{pe("payment_details_failed",e)})(e)}])},He=(t,o,n,i,r="")=>{Fe(n,i),window.tp=window.tp||[],window.tp.push(["init",()=>{window.tp.offer.show(function(t){for(var o=1;o{null==e||e.addEventListener(t,o,Ze({passive:!0},n),i)},Qe=e=>{const t=e.split("/"),o=t[t.length-1].replace(/\D/g,"");return t.pop(),t.shift(),`${t.join("/")}/article${o}`},Xe=()=>{document.addEventListener(M,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",e=>{var t;"donation-prompt"===e.eventName&&(((e={})=>{pe("donation_article_bottom",e)})(),window.location.href=null===(t=e.params)||void 0===t?void 0:t.url)}])}))},et=()=>{document.querySelectorAll(".social-share amp-social-share, .social-share button[type]").forEach((e=>{Ke(e,"click",(e=>{const t=e.currentTarget.getAttribute("type");"bookmark"!==t&&((e={})=>{pe("article_share",e)})({share_provider:t})}))}))},tt=()=>{window.__gcse||(window.__gcse={}),window.__gcse.searchCallbacks={web:{rendered:(e,t,o,n)=>{var i;const r=null===(i=n[0])||void 0===i||null===(i=i.closest(".gsc-results-wrapper-visible"))||void 0===i||null===(i=i.querySelector(".gsc-result-info"))||void 0===i?void 0:i.innerText,a=null==r?void 0:r.match(/([\d,]+).*\(.+\)/);((e={})=>{pe("search",e)})({search_term:t,search_results_count:a?a[1].replace(",",""):r})}}}},ot=()=>{const e=()=>{document.querySelectorAll(".drawer-menu-navlist a").forEach((e=>{Ke(e,"click",(e=>{const t=e.target.innerText,o=(e=>{const t=e.target.closest(".drawer-menu-section");return t?null==t?void 0:t.querySelector(".drawer-trigger-title").innerText:null===(o=e.target.closest(".section-list"))||void 0===o||null===(o=o.previousSibling)||void 0===o||null===(o=o.querySelector(".link"))||void 0===o?void 0:o.innerText;var o})(e);((e={})=>{pe("mega_menu_link_click",e)})({mega_menu_link_text:t,mega_menu_link_category:o})}))}))},t=document.getElementById("MegaMenuButton");null==t||t.addEventListener("click",(()=>{setTimeout(e,500)}))},nt=()=>{document.querySelectorAll(`.menu-navbar-item a, .${S} a`).forEach((e=>{Ke(e,"click",(e=>{const t=e.target.closest("ul"),o=e.target.closest("li"),n=[...t.childNodes].findIndex((e=>e===o)),i=e.target.innerText,r=((e,t)=>{const o=e.target.closest(`.${S}`);return o?null==o?void 0:o.querySelector(`.${P}`).innerText:(null===(n=e.target.closest(".menu-navbar-item > ul"))||void 0===n||null===(n=n.previousSibling)||void 0===n?void 0:n.innerText)||t;var n})(e,i);((e={})=>{pe("main_nav_link_click",e)})({main_nav_link_text:i,main_nav_link_category:r,main_nav_link_position:n+1})}))}))},it=()=>{document.querySelectorAll(".most-popular").forEach((e=>{Ke(e,"click",(e=>{e.stopPropagation();const t=e.target.closest('[role="listitem"]');if(t){var o,n,i;const e=null==t||null===(o=t.children[1])||void 0===o?void 0:o.innerText,r=null===(n=t.dataset)||void 0===n?void 0:n.articleId;((e={})=>{pe("most_popular_link_click",e)})({most_popular_link_text:e,most_popular_link_position:null===(i=t.dataset)||void 0===i?void 0:i.position,most_popular_link_article_id:r})}}))}))},rt=()=>{document.querySelectorAll(".popular-videos").forEach((e=>{Ke(e,"click",(e=>{e.stopPropagation();const t=e.target.closest('[role="listitem"]');if(t){var o,n,i;const e=null==t||null===(o=t.children[1])||void 0===o?void 0:o.innerText,r=null===(n=t.dataset)||void 0===n?void 0:n.articleId;((e={})=>{pe("popular_videos_link_click",e)})({popular_videos_link_text:e,popular_videos_link_position:null===(i=t.dataset)||void 0===i?void 0:i.position,popular_videos_link_article_id:r})}}))}))},at=()=>{document.querySelectorAll(".sponsored-features").forEach((e=>{Ke(e,"click",(e=>{e.stopPropagation();const t=e.target.closest('[role="listitem"]');if(t){var o,n,i;const e=null==t||null===(o=t.children[1])||void 0===o?void 0:o.innerText,r=null===(n=t.dataset)||void 0===n?void 0:n.articleId;((e={})=>{pe("sponsored_features_link_click",e)})({sponsored_features_link_text:e,sponsored_features_link_position:null===(i=t.dataset)||void 0===i?void 0:i.position,sponsored_features_link_article_id:r})}}))}))},st=()=>{document.querySelectorAll(".indy100-trending").forEach((e=>{Ke(e,"click",(e=>{e.stopPropagation();const t=e.target.closest('[role="listitem"]');if(t){var o,n,i;const e=null==t||null===(o=t.children[1])||void 0===o?void 0:o.innerText,r=null==t||null===(n=t.dataset)||void 0===n?void 0:n.articleId;((e={})=>{pe("indy100_trending_link_click",e)})({indy100_trending_link_text:e,indy100_trending_link_position:null==t||null===(i=t.dataset)||void 0===i?void 0:i.position,indy100_trending_link_article_id:r})}}))}))},ct=()=>{document.querySelectorAll(".taboola-below-article").forEach((e=>{Ke(e,"click",(e=>{var t,o;e.stopPropagation();((e={})=>{pe("taboola_feed_link_click",e)})({taboola_feed_link_text:null===(t=e.target.closest("[data-item-title]"))||void 0===t||null===(t=t.dataset)||void 0===t?void 0:t.itemTitle,taboola_feed_link_position:null===(o=e.target.closest(".tbl-feed-card"))||void 0===o||null===(o=o.dataset)||void 0===o?void 0:o.cardIndex})}))}))},lt=()=>{const e=document.querySelectorAll(`.${j}`);document.querySelectorAll(".related-item").forEach((t=>{Ke(t,"click",(o=>{const{autoLink:n,topicLink:i,algorithm:r,text:a,position:s}=t.dataset,c=t.closest(`.${j}`);((e={})=>{pe("related_articles_link_click",e)})({related_articles_link_text:a,related_articles_autolink:n,related_articles_topiclink:i,related_articles_algorithm:r,related_articles_link_position:s,related_embed_position:Array.prototype.indexOf.call(e,c)+1+1}),o.stopPropagation()}))}))},dt=()=>{document.querySelectorAll(".premium-menu [data-tab]").forEach((e=>{Ke(e,"click",(()=>{((e={})=>{pe("ip_tab_click",e)})({tab_url:document.location.href,tab_name:e.dataset.tab})}))}))},pt=()=>{document.querySelectorAll('section [data-tab="ebooks"] [id^="ebook"]').forEach((e=>{Ke(e,"click",(()=>{var t;((e={})=>{pe("ip_ebook_click",e)})({ebook_url:e.href,ebook_title:null===(t=e.dataset)||void 0===t?void 0:t.title})}))}))},ut=()=>{document.querySelectorAll('section [data-tab="events"] [href^="#event"]').forEach((e=>{Ke(e,"click",(()=>{var t;((e={})=>{pe("ip_event_click",e)})({event_name:null===(t=e.dataset)||void 0===t?void 0:t.title})}))}))},mt=()=>{document.querySelectorAll(".amp-live-list-item h3 a").forEach(((e,t)=>{Ke(e,"click",(o=>{((e={})=>{pe("blog_post_article_link_click",e)})({article_link_text:o.target.innerText,article_link_url:e.href,article_link_position:t+1})}))}))},bt=()=>{[{element:".comment-count",text:"Comment Counts",position:"top"},{element:".js-comment-message",text:"View Comments",position:"bottom"}].forEach((e=>{const{element:t,text:o,position:n}=e;Ke(document.querySelector(t),"click",(()=>{((e={})=>{pe("show_comments_click",e)})({show_comments_link_text:o,show_comments_link_position:n})}))}))},_t=()=>{document.addEventListener("watchMoreLoaded",(e=>{const t=document.querySelector('[id^="playinc-article-component"]');if(t){const o=t.id.replace("playinc-article-component-",""),n={mostWatched_url:e.detail.url,mostWatched_algorithm:e.detail.algorithm,mostWatched_paragraph_number:o};ge(n),((e={})=>{pe("most_watched_load",e)})({trackingData:n}),t.addEventListener("click",(()=>{((e={})=>{pe("most_watched_click",e)})({mostWatched_link_text:"Most Watched"})}))}}))},gt=()=>{document.querySelectorAll(`#${H} p a`).forEach((e=>{var t;(null===(t=e.href)||void 0===t?void 0:t.startsWith(document.location.origin))&&Ke(e,"click",(()=>((e={})=>pe("contextual_inline_click",e))()))}))},ft=()=>{document.querySelectorAll(`#${H} p a`).forEach((e=>{new RegExp(`^${document.location.origin}/topic/.*$`).test(e.href)&&Ke(e,"click",(()=>((e={})=>pe("contextual_inline_topic_click",e))()))}))},ht=()=>{document.querySelectorAll(`#${H} p a`).forEach((e=>{new RegExp(`^${document.location.origin}/(?!topic/).*$`).test(e.href)&&Ke(e,"click",(()=>((e={})=>pe("contextual_inline_non_topic_click",e))()))}))},wt=()=>{document.addEventListener(M,(()=>{window.addEventListener("message",(e=>{if("changing-subscription"===e.data.type){const{data:t}=e.data;window.tp=window.tp||[],window.tp.push(["init",()=>{((e={})=>{ye(e),pe("change_subscription_package",e)})({subscription_length:t.trackingLength,subscription_price:t.trackingPrice,subscription_package:t.trackingName})}])}}))}))},yt=()=>{window.addEventListener("message",(e=>{"premium-article-cta-premium"===e.data.type&&((e={})=>{pe("premium_article_cta_premium",e)})({})}))},vt=()=>{window.addEventListener("message",(e=>{"premium-article-cta-tide"===e.data.type&&((e={})=>{pe("premium_article_cta_tide",e)})({})}))},kt=()=>{window.addEventListener("message",(e=>{"expandable-prompt-cta-premium"===e.data.type&&((e={})=>{pe("expandable_prompt_cta_premium",e)})({})}))},St=()=>{window.addEventListener("message",(e=>{"expandable-prompt-cta-tide"===e.data.type&&((e={})=>{pe("expandable_prompt_cta_tide",e)})({})}))},Ot=()=>{window.addEventListener("message",(e=>{if(e.data&&e.data.sellingPageData){const t=e.data,{sellingPageData:{offerId:o,termId:n}}=t,i=g(t.sellingPageData,We),r={subscription_length:i.trackingLength,subscription_price:i.trackingPrice,subscription_package:i.trackingName,initial_selected_package:i.initialSelectedPackage};((e={})=>{ye(e),pe("subscription_button_click",e)})(Ze({subscribe_button_version:i.trackingCta},r));const a=new URLSearchParams;a.set("offerId",o),a.set("termId",n),Y(s)&&(window.location.href=`/subscribe/payment?${a.toString()}`),He(o,n,r)}}))},Pt=()=>{document.addEventListener(M,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",({eventName:e,params:t})=>{if("payment-option-pp"===e){const e=fe(h),o=`Subscription Funnel|Payment Method Selected|${(e=>{switch(e){case"credit":case"stripe":return"Credit Card";case"paypalbt":return"Paypal";case"applepaybt":return"Apple Pay";case"gocardless_drop_in":return"Direct Debit via GoCardless"}})(t.method)}`;((e={})=>{pe("change_payment_method",e)})(Ze(Ze({},e),{},{name_form_field:o}))}}])}))},It=()=>{document.querySelectorAll(".js-key-points a").forEach((e=>{Ke(e,"click",(e=>{const t=e.target.closest("ul"),o=e.target.closest("li"),n=[...t.childNodes].findIndex((e=>e===o));((e={})=>{pe("liveblog_key_points_click",e)})({liveblog_key_points_text:e.target.innerText,liveblog_key_points_destination:e.target.href,liveblog_key_points_position:n+1})}))}))},Et=()=>{document.querySelectorAll(".most-commented-link").forEach((e=>{Ke(e,"click",(t=>{const o=t.target.closest(".section-body"),n=t.target.closest(".article-default"),i=[...o.childNodes].findIndex((e=>e===n));((e={})=>{pe("most_commented_section_click",e)})({most_commented_section_link_pagename:Qe(e.getAttribute("href")),most_commented_section_link_position:i+1})}))}))},jt=()=>{document.querySelectorAll("nav.topics > div > a").forEach((e=>{e.addEventListener("click",(e=>{((e={})=>{pe("article_topic_tag_click",e)})({tag:e.target.innerHTML})}))}))},Lt=()=>{window.analytics=window.analytics||{},window.analytics.experienceExecuted=(e,t)=>{((e={})=>{pe("experience_executed",e)})({experience_name:e,variant:t})}},xt=()=>{document.querySelectorAll(`#${q} a`).forEach((e=>{Ke(e,"click",(e=>{((e={})=>{pe("voucher_ticker_link_click",e)})({voucher_ticker_text:"All Deals"===e.target.innerText?"All Deals":e.target.previousElementSibling.innerText})}))}))},At=()=>{document.querySelectorAll(`#${q} .carousel-prev-button,\n #${q} .carousel-next-button`).forEach((e=>{Ke(e,"click",(e=>{((e={})=>{pe("voucher_ticker_arrow_click",e)})({voucher_ticker_arrow_text:e.target.ariaLabel})}))}))},Dt=()=>{document.querySelectorAll("[data-edition]").forEach((e=>{Ke(e,"click",(e=>{((e={})=>{pe("edition_link_click",e)})({edition_link_text:e.target.innerText})}))}))},Tt=()=>{document.querySelectorAll(`.${k}, .header-menu-temp-link`).forEach((e=>{const t=e.classList.contains(k)?"Burger":"Visible";Ke(e,"click",(e=>{((e={})=>{pe("temporary_link_click",e)})({temp_link_text:`${e.target.innerText} - ${t}`})}))}))},Ct=()=>{document.querySelectorAll('a[data-affiliate="true"]').forEach((e=>{Ke(e,"click",(e=>{((e={})=>{pe("affiliate_link_click",e)})({affiliate_link_click_text:e.target.innerHTML})}))}))},$t=()=>{document.querySelectorAll(`.${$}`).forEach((e=>{Ke(e,"click",(()=>{pe("webpush_signup_click")}))}))},Mt=()=>{const e=document.querySelector(`.${L}`);null==e||e.addEventListener("click",(e=>{e.target.closest(".js-tile-review-button")?((e={})=>{pe("product_carousel_read_review_click",e)})():e.target.closest(".js-modal-review-button")?((e={})=>{pe("product_comparison_modal_read_review_click",e)})():e.target.closest(".js-tile-checkbox")?((e={})=>{pe("product_comparison_checkbox_click",e)})():e.target.closest(".js-compare-button")?((e={})=>{pe("product_comparison_modal_open",e)})():e.target.closest(`#comparison-carousel .${E}`)?((e={})=>{pe("product_carousel_buy_now_click",e)})():e.target.closest(`#comparison-table .${E}`)&&((e={})=>{pe("product_comparison_modal_buy_now_click",e)})()}))},Nt=()=>{[...document.querySelectorAll(".gallery-btn")].forEach((e=>{e.addEventListener("click",ve)})),[...document.querySelectorAll(".inline-gallery-btn")].forEach((e=>{e.addEventListener("click",ke)})),document.addEventListener(M,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",e=>{e.eventName}])})),document.addEventListener(M,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",e=>{"openLogin"===e.eventName&&document.querySelector(`header button[on="tap:${W}.open"]`).click()}])})),et(),tt(),ot(),nt(),it(),rt(),at(),st(),ct(),lt(),dt(),pt(),ut(),Xe(),(()=>{const e=document.querySelectorAll(`.main-wrapper #${H} > div > ul li a`),t=document.querySelectorAll(".article-liveblog").length>0?Oe:Pe;e.forEach((e=>{Ke(e,"click",(e=>{const o=e.target.closest("ul"),n=e.target.closest("li"),i=[...o.childNodes].findIndex((e=>e===n)),r=e.target.innerText,a=e.target.href;t({bulleted_list_text:r,bulleted_list_url:a,bulleted_list_position:i+1})}))}))})(),mt(),document.addEventListener(M,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",({eventName:e})=>{"join-to-read-click-register"===e&&localStorage.setItem("returnUrl",window.location.href)}])})),bt(),document.querySelectorAll('[data-component=NewsletterGroups] input[type="checkbox"]').forEach((e=>{e.addEventListener("change",(e=>{pe(`newsletter_prefs_${e.target.checked?"":"un"}subscribe`,{newsletter:e.target.name})}))})),document.querySelectorAll('#reg-lite-form input[type="checkbox"]').forEach((e=>{e.addEventListener("change",(e=>{var t;const o=null===(t=e.target.closest("form"))||void 0===t||null===(t=t.querySelector("input[name=regSourceNewsletter]"))||void 0===t?void 0:t.value;pe(`newsletter_prefs_${e.target.checked?"":"un"}subscribe`,{newsletter:o})}))})),document.querySelectorAll(".newsletter-component").forEach((e=>{e.querySelector("button.form-submit").addEventListener("click",(t=>{t.target.disabled||pe("newsletter_lite_reg_signup",{newsletter:e.dataset.newsletterKey})}))})),_t(),gt(),ft(),ht(),wt(),yt(),Ot(),Pt(),document.addEventListener(M,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",({eventName:e})=>{"click-confirm-subscription"===e&&window.scrollTo(0,0)}])})),It(),Et(),vt(),(()=>{let e=window.innerWidth>=f.laptop,t=window.innerWidth{window.innerWidth>=f.laptop&&!e?(e=!0,Ie({components_list:window.digitalData.desktop_components_list})):window.innerWidth{const e=document.getElementById("MegaMenuButton");Ke(e,"click",Ee)})(),Dt(),Tt(),Ct(),Mt(),document.addEventListener(M,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",e=>{const t=e.params;if(!t)return;const[,o]=Object.entries(t).find((([e])=>"chartbeat"===e))||[];o&&se("register"===o?w:"trackPaywallStart",{eventLabel:window.location.pathname,eventValue:"Piano experience"})}])})),(()=>{var e;const t="#reg-lite-form",o=document.querySelector(t),n=Y(s),i="DIV"===(null==o?void 0:o.tagName);if(n||!o||i)return;const r=document.querySelector("#reg-lite--form-email"),a=document.querySelector(`${t} div[submit-success="true"]`),c={eventLabel:window.location.pathname,eventValue:"Nsc"},l=Ze(Ze({},c),{},{eventValue:null===(e=document.querySelector(`${t} input[name="regSourceNewsletter"]`))||void 0===e?void 0:e.value}),d=()=>{se(w,c),se("trackNewsletterSignupStart",l),r.removeEventListener("focus",d)},p=()=>{"hidden"===document.visibilityState&&(se("trackRegistrationCancel",c),se("trackNewsletterSignupCancel",l))};r.addEventListener("focus",d),document.addEventListener(R,(()=>{se("trackRegistrationShown",c),se("trackNewsletterSignupShown",l)})),document.addEventListener("visibilitychange",p);const u=new MutationObserver((()=>{"block"===window.getComputedStyle(a).display&&(se("trackRegistrationComplete",c),se("trackNewsletterSignupComplete",l),document.removeEventListener("visibilitychange",p),u.disconnect())}));u.observe(a,{attributes:!0})})(),$t()};var Bt=o(7354);const Rt=["components_list","desktop_components_list","mobile_components_list"];function zt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ut(t){for(var o=1;o{var t;let{components_list:o,desktop_components_list:n,mobile_components_list:i}=e,a=g(e,Rt);const s=Ut(Ut({components_list:[...(null==o?void 0:o.split(","))||[],...(null===(t=window.innerWidth>999?n:i)||void 0===t?void 0:t.split(","))||[]].join(","),page_title:document.title,page_query:document.location.search,page_name:document.location.pathname},Gt&&{page_previous_url:`${Gt.protocol}//${Gt.host}${Gt.pathname}`,page_previous_path:Gt.pathname,page_previous_query:Gt.search}),{},{timestamp:Bt().format("YYYY:MM:DD:HH:mm:ss"),uid:Y(r),registration_date:Y("esi_registration_date")});return Ut(Ut({},a),s)},Jt=()=>{const e=document.getElementById("analytics-data").textContent;return JSON.parse(e)},qt="event7",Ft="event20",Ht="event21",Wt="event23",Yt="event24",Zt="event27",Kt="event34",Qt="event37",Xt="event68",eo="event78",to="event85",oo="event86",no="event87",io="event93",ro="event108",ao="event99",so="prop7",co="prop9",lo="prop10",po="prop11",uo="prop12",mo="prop13",bo="prop15",_o="prop16",go="prop19",fo="prop20",ho="prop22",wo="prop23",yo="prop24",vo="prop31",ko="prop36",So="prop37",Oo="prop38",Po="prop39",Io="prop41",Eo="prop42",jo="prop43",Lo="prop44",xo="prop45",Ao="prop48",Do="prop49",To="prop65",Co="prop66",$o="prop67",Mo="eVar1",No="eVar2",Bo="eVar4",Ro="eVar9",zo="eVar10",Uo="eVar11",Go="eVar13",Vo="eVar14",Jo="eVar19",qo="eVar20",Fo="eVar22",Ho="eVar23",Wo="eVar24",Yo="eVar26",Zo="eVar27",Ko="eVar31",Qo="eVar36",Xo="eVar37",en="eVar39",tn="eVar41",on="eVar42",nn="eVar43",rn="eVar44",an="eVar45",sn="eVar46",cn="eVar47",ln="eVar48",dn="eVar50",pn="eVar64",un="eVar67",mn="eVar69",bn="eVar70",_n="eVar71",gn="eVar72",fn="eVar75",hn="eVar90",wn="eVar91",yn="eVar96",vn="eVar97",kn="__ADOBE__",Sn=e=>sessionStorage.getItem(`${kn}${e}`),On=(e,t)=>sessionStorage.setItem(`${kn}${e}`,t),Pn=["subscription_package","subscription_length","subscription_price","selling_page_variant","initial_selected_package"],In="marketing_opt_in",En=e=>{let{subscription_package:t,subscription_length:o,subscription_price:n,selling_page_variant:i,initial_selected_package:r}=e,a=g(e,Pn);return Object.fromEntries([[nn,t],[rn,o],[an,n],...Object.keys(a).includes(In)?[[ln,a[In]?"Opt in":"Opt out"]]:[],[hn,r]].filter((([,e])=>void 0!==e)))},jn=e=>`D=v${e.slice(4)}`,Ln=(e,t={},o=[],n=window[JSGlobals.ADOBE_ANALYTICS_OBJECT])=>{const i=[],r={};o.length&&(i.push("events"),r.linkTrackEvents=o.join(","),r.events=r.linkTrackEvents);const a=Object.fromEntries(Object.entries(t).filter((([,e])=>void 0!==e))),s=[...i,...Object.keys(a)];s.length&&(r.linkTrackVars=s.join(",")),Object.entries(a).forEach((([e,t])=>{r[e]=t})),n.tl(!0,"o",e,r)};function xn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function An(t){for(var o=1;o{Ln("Adblock Detected",{[Qo]:"Native",[on]:"Adblock Detected",[ko]:jn(Qo),[Eo]:jn(on)},["event105"])},article_bookmark:e=>{Ln("Article Bookmark",{[fo]:e.article_id},["event17"])},article_bulleted_list_click:e=>{On("link_click_label","Article Bullet Related Link"),On("link_click_position",e.bulleted_list_position)},article_share:e=>{Ln("Article Share",{[Ro]:e.article_id,[Jo]:e.article_category,[gn]:e.share_provider,[co]:jn(Ro),[go]:jn(Jo),prop72:jn(gn)},["event10","event41"])},article_topic_tag_click:e=>{On("link_click_label","Article Topic Tag Link"),On("topic_tag",e.tag)},auto_renewal_off:()=>{Ln("Auto Renewal Off",{},["event29"])},blog_post_article_link_click:e=>{On("link_click_label","Live Blog In-line Article Link"),On("link_click_position",e.article_link_position)},burger_menu_click:()=>{Ln("Burger Menu Click",{},["event80"])},change_payment_method:e=>{Ln("Payment Method Selected",An(An({},En(e)),{},{[hn]:e.initial_selected_package,[wn]:e.name_form_field,[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an)}),["event75"])},change_subscription_package:e=>{Ln("Subscription Package Changed",An(An({},En(e)),{},{[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an)}),["event76"])},comment:e=>{Ln("Article Comment",{[co]:e.article_id},["event12"])},comment_tab_click:e=>{Ln("Article Comment Tab Click",{[tn]:"D=pageName",[on]:"Article Comment Tab",[co]:e.article_id,prop31:"Article Comment Tab",[Io]:"D=pageName",[Eo]:jn(on)},["event43"])},contextual_inline_click:()=>{On("link_click_label","Article in-line Link")},contextual_inline_topic_click:()=>{On("topic_link_click_label","Article in-line Link (Topic Page)")},contextual_inline_non_topic_click:()=>{On("topic_link_click_label","Article in-line Link (Non-Topic Page)")},donation:e=>{Ln("Donation Click",An(An({},En(e)),{},{[hn]:e.initial_selected_package,[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an)}),[Kt])},donation_apple_pay:e=>{Ln("Donation Click - Apple Pay",An(An({},En(e)),{},{[hn]:e.initial_selected_package,[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an)}),[Kt])},donation_article_bottom:()=>{Ln("Donation Click (Article Bottom)",{},["event36"])},edition_link_click:e=>{On("link_click_label","Edition Link"),On("link_click_text",e.edition_link_text)},expandable_prompt_cta_premium:()=>{Ln("Premium Article Gate CTA Click Premium",{},[Ht])},expandable_prompt_cta_tide:()=>{Ln("Premium Article Gate CTA Click Tide",{},[Ht])},focus_reg_subscription_field:(e,t=document.location.pathname)=>{Ln("Form Field details",An({[wn]:e.name_form_field},t.includes("/register")?An(An({},En(e)),{},{[hn]:e.initial_selected_package,[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an)}):{}),["event74"])},gallery_view:()=>{Ln("Gallery Image View",{prop21:"Gallery"},["event3"])},indy100_trending_link_click:e=>{Ln("RHR Indy100 Trending",{[Io]:"D=pageName",[Eo]:jn(on),[$o]:e.indy100_trending_link_position},[Ft])},ip_ebook_click:e=>{Ln("My Independent Premium eBooks Click",{[on]:e.ebook_title,[Eo]:jn(on)},["event69"])},ip_event_click:e=>{Ln("My Independent Premium Event Click",{[on]:e.event_name,[Eo]:jn(on)},["event70"])},ip_tab_click:e=>{Ln("My Independent Premium Event Click",{prop5:e.tab_name,[on]:`IP ${e.tab_name}`,[Eo]:jn(on)},["event18"])},liveblog_bulleted_list_click:e=>{On("link_click_label","Live Blog Article Bullet Related Link"),On("link_click_position",e.bulleted_list_position)},liveblog_key_points_click:e=>{Ln("Liveblog Key Points Click",{[tn]:e.liveblog_key_points_destination,[on]:"Liveblog Key Points",[un]:e.liveblog_key_points_position,[Io]:jn(tn),[Eo]:jn(on),[$o]:jn(un)},["event60"])},load_more_comments:e=>{Ln("Load More Comments",{[co]:e.article_id},["event53"])},login_success:()=>{Ln("Login Success",{},["event9"])},main_nav_link_click:e=>{On("link_click_label","Visible Nav"),On("link_click_text",`${e.main_nav_link_category}:${e.main_nav_link_text}`),On("link_click_position",e.main_nav_link_position)},marketing_opt:e=>{Ln("Marketing Opt Changed",An(An({},En(e)),{},{[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an),[Ao]:jn(ln)}),[Yt]),On("marketing_opt_in",e.marketing_opt_in)},mega_menu_link_click:e=>{On("link_click_label","Burger Nav"),On("link_click_text",`${e.mega_menu_link_category}:${e.mega_menu_link_text}`)},most_commented_section_click:e=>{Ln("Most Commented Section Click",{[tn]:e.most_commented_section_link_pagename,[on]:"Most Commented (Section Page)",[un]:e.most_commented_section_link_position,[Io]:jn(tn),[Eo]:jn(on),[$o]:jn(un)},[eo])},most_popular_link_click:e=>{On("link_click_label","RHR Most Popular"),On("link_click_position",e.most_popular_link_position)},most_watched_click:e=>{On("link_click_label",e.mostWatched_link_text),On("video_algorithm",e.mostWatched_algorithm)},newsletter_lite_reg_signup:e=>{Ln("Newsletter Inline Signup Prompt",{[Xo]:e.newsletter,[So]:jn(Xo)},["event63"])},newsletter_page_signup_button_click:e=>{Ln("Newsletter Page Signup",{[Xo]:e.newsletter,[So]:jn(Xo)},["event66"])},newsletter_prefs_subscribe:e=>{Ln("Newsletter Prefs Subscribe",{[Xo]:e.newsletter,[So]:jn(Xo)},["event64"])},newsletter_prefs_unsubscribe:e=>{Ln("Newsletter Prefs Unsubscribe",{[Xo]:e.newsletter,[So]:jn(Xo)},["event65"])},payment_details_failed:e=>{Ln("Payment Form Submit Failed",An(An({},En(e)),{},{[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an)}),["event32"])},payment_details_success:e=>{Ln("Payment Form Submit Success",An(An({},En(e)),{},{[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an)}),[Zt,"event28"])},payment_form_loaded:e=>{const t=(()=>{const e=document.referrer;if(e){const t=new URL(e);if("/subscribe"===t.pathname)return t.searchParams}if("/subscribe"===document.location.pathname)return new URL(document.location.href).searchParams})();Ln("Payment Form Loaded",An(An({},En(e)),{},{[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an)},t?{eVar51:t.get("itm_source"),eVar52:t.get("itm_medium"),eVar53:t.get("itm_campaign"),eVar54:t.get("itm_term")}:{}),["event25"])},popular_videos_link_click:e=>{On("link_click_label","RHR Popular Videos"),On("link_click_position",e.popular_videos_link_position)},premium_article_cta_premium:()=>{Ln("Premium Article Gate CTA Click Premium",{},[Ht])},premium_article_cta_tide:()=>{Ln("Premium Article Gate CTA Click Premium",{},[Ht])},premium_comment:e=>{Ln("Article Premium Comment",{[co]:e.article_id},["event16"])},read_more_articles_link_click:e=>{On("link_click_label","Related Articles"),On("link_click_position",e.read_more_link_position)},experience_executed:e=>{Ln("Piano Experience Impression",{eVar93:e.experience_name,eVar94:e.variant},["event84"])},registration_failed:()=>{},registration_success:e=>{const t=[Wt];e.marketing_opt_in&&t.push(Yt),e.promo_code_applied&&t.push("event26"),Ln("Registration Success",An(An({},En(e)),{},{[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an),[Ao]:jn(ln)}),t)},registration_success_standard:e=>{const t=[Wt];e.marketing_opt_in&&t.push(Yt),Ln("Registration Success",An({},En(e)),t)},registration_wall_click:({registration_wall_label:e,is_register_wall_with_register_form:t})=>{if("Register Now"===e){if(!t)return void On("link_click_label",e)}else if("I'll try later"!==e&&"Log In"!==e)return;Ln("Registration Gating Prompt Click",{[on]:e,[Eo]:jn(on)},[Xt])},related_articles_link_click:e=>{const t=e.related_articles_autolink?"Auto":e.related_articles_topiclink?"Audience":"Manual",o=`Related Articles - ${t}, Related Articles ${t} Embed Position ${e.related_embed_position}`;On("link_click_label",o),On("link_click_position",e.related_articles_link_position),e.related_articles_algorithm&&On("video_algorithm",`Related Articles Video ${e.related_articles_algorithm}`);const n=`Related Articles ${t} Embed Position ${e.related_embed_position}`;On("link_click_related_embed_position",n)},search:e=>{Ln("Search",{[Bo]:e.search_term,[Eo]:jn(Bo)},["event1"])},selling_page_loaded:()=>{Ln("Piano Selling Page loaded",{},["event8"])},show_comments_click:e=>{Ln("Article Show Comments",{[co]:e.article_id,[un]:e.show_comments_link_position,[$o]:jn(un)},["event42"])},sponsored_features_link_click:e=>{On("link_click_label","RHR Sponsored Features"),On("link_click_position",e.sponsored_features_link_position)},subscription_button_click:e=>{Ln("Join Premium Button Click",An(An({},En(e)),{},{[dn]:e.subscribe_button_version,[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an),prop50:jn(dn)},e.selling_page_variant_click&&{eVar100:e.selling_page_variant_click}),[Ht])},taboola_feed_link_click:()=>{},temporary_link_click:e=>{On("link_click_label","Temp Link"),On("link_click_text",e.temp_link_text)},update_components_list:e=>{Ln("Update components list",{[Wo]:e.components_list,[yo]:jn(Wo)},[])},voucher_ticker_link_click:e=>{Ln("Voucher Ticker Link Click",{[on]:e.voucher_ticker_text,[Eo]:jn(on)},["event82"])},voucher_ticker_arrow_click:()=>{Ln("Voucher Ticker Arrow Click",{},["event83"])},webpush_signup_click:()=>{Ln("Get Started Clicks (Web Push Landing Page)",{[Eo]:"Get Started",[on]:"Get Started"},["event106"])},product_buy_now_click:({name:e,price:t})=>{Ln("Product Body Buy Link Click",{[on]:"Product Body - Buy Link Click",[Eo]:jn(on),[yn]:e,[vn]:t},[io])},price_comparison_list_buy_now_click:({name:e,price:t})=>{Ln("Price Comparison Buy Link Click",{[on]:"Price Comparison - Buy Link Click",[Eo]:jn(on),[yn]:e,[vn]:t},[io])},price_comparison_buttons_buy_now_click:({isLeft:e,index:t,name:o,price:n})=>{const i=`${e?"Left":"Right"} CTA Button - Position ${t++}`;Ln("Price Comparison Buttons Buy Now Click",{[on]:i,[Eo]:jn(on),[yn]:o,[vn]:n},["event107"])},product_carousel_buy_now_click:({name:e,price:t,index:o})=>{const n="Top Picks Carousel - Buy Now - Position "+o++;Ln("Comparison Carousel Buy Link Click",{[on]:n,[Eo]:jn(on),[yn]:e,[vn]:t},[ro])},product_carousel_read_review_click:({name:e,price:t})=>{Ln("Comparison Carousel/Modal Read Review Link Click",{[on]:"Comparison Carousel - Read Review Link Click",[Eo]:jn(on),[yn]:e,[vn]:t},[ao])},product_comparison_checkbox_click:({name:e,price:t})=>{Ln("Comparison Carousel Checkbox Click",{[on]:"Comparison Carousel - Compare Checkbox Selected",[Eo]:jn(on),[yn]:e,[vn]:t},["event100"])},product_comparison_modal_open:()=>{Ln("Compare Table Pop-up",{[on]:"Compare Table Pop-up",[Eo]:jn(on)},["event101"])},product_comparison_modal_buy_now_click:({name:e,price:t})=>{Ln("Compare Modal Buy Link Click",{[on]:"Compare Modal - Buy Link Click",[Eo]:jn(on),[yn]:e,[vn]:t},[ro])},product_comparison_modal_read_review_click:({name:e,price:t})=>{Ln("Comparison Carousel/Modal Read Review Link Click",{[on]:"Comparison Carousel - Read Review Link Click",[Eo]:jn(on),[yn]:e,[vn]:t},[ao])},affiliate_link_click:e=>{Ln("Affiliate Link Click",{[on]:e.affiliate_link_click_text,[Eo]:jn(on)},["event79"])},registration_gating_show_prompt:()=>{Ln("Registration Show Prompt",{},["event62"])},registration_gating_first_visit:e=>{Ln("Registration Gating first visit",{eVar89:e.reg_gating})},account_overview_tab_my_details:()=>{Ln("Account Overview Tab - My Details",{pageName:"Account Overview Tab - My Details"},[to])},account_overview_tab_change_password:()=>{Ln("Account Overview Tab - Change Password",{pageName:"Account Overview Tab - Change Password"},[to])},account_overview_tab_payments_and_billing:()=>{Ln("Account Overview Tab - Payments & Billing",{pageName:"Account Overview Tab - Payments & Billing"},[to])},account_overview_tab_manage_subscription:()=>{Ln("Account Overview Tab - Manage Subscription",{pageName:"Account Overview Tab - Manage Subscription"},[to])},account_cancellation_barrier_1:()=>{Ln("Cancellation journey - Barrier 1",{pageName:"Cancellation journey - Barrier 1",[on]:"Cancel Subscription - Barrier 1",[Eo]:jn(on)},[oo])},account_cancellation_barrier_2:()=>{Ln("Cancellation journey - Barrier 2",{pageName:"Cancellation journey - Barrier 2",[on]:"Cancel Subscription - Barrier 2",[Eo]:jn(on)},[oo])},account_cancellation_keep_subscription:()=>{Ln("Cancellation journey - Barrier 1",{pageName:"Cancellation journey - Barrier 1",[on]:"Keep Subscription - Barrier 1",[Eo]:jn(on)},[oo])},account_cancellation_take_this_offer:()=>{Ln("Cancellation journey - Barrier 2",{pageName:"Cancellation journey - Barrier 2",[on]:"Take this Offer - Barrier 2",[Eo]:jn(on)},[oo])},account_cancellation_continue_to_payment:()=>{Ln("Cancellation journey - Thanks",{pageName:"Cancellation journey - Thanks",[on]:"Continue to Payment - Thank you",[Eo]:jn(on)},[oo])},account_cancellation_reactivate_subscription:()=>{Ln("Cancellation journey - Thanks",{pageName:"Cancellation journey - Thanks",[on]:"Reactivate Subscription",[Eo]:jn(on)},[oo])},stage_barrier_1:()=>{Ln("Cancellation journey - Barrier 1",{pageName:"Cancellation journey - Barrier 1"},[no])},stage_barrier_2:()=>{Ln("Cancellation journey - Barrier 2",{pageName:"Cancellation journey - Barrier 2"},[no])}};const Tn=({props:e={},events:t=[]})=>{t.forEach((e=>{s_object.events=s_object.apl(s_object.events,e,",",",",!1)})),Object.entries(e).forEach((([e,t])=>{s_object[e]=t}))},Cn=()=>{const e=new URLSearchParams(window.location.search),{source:t,medium:o,campaign:n,term:i,content:r}=new Proxy(e,{get:(e,t)=>e.get(`utm_${t}`)});return t?{campaign:[`S:${t}`,`M:${o}`,`Ca:${n}`,`T:${i}`,`Co:${r}`].join("|")}:{}},$n="startsWith",Mn=new Map([["/",{name:"frontpage"}],["/contact-us",{name:"Contact Us",type:$n}],["/jobs",{name:"Jobs",type:$n}],["/news/code-of-conduct",{name:"Code of conduct and complaints",type:$n}],["/service/external-contributors-policy",{name:"Code of conduct and complaints",type:$n}],["/service/cookie-policy",{name:"Cookie policies",type:$n}],["/service/privacy-policy",{name:"Privacy notice",type:$n}],["/service/user-policies",{name:"User policies",type:$n}],["/subscribe",{name:"Subscribe",featureModeName:"feat__selling_page_redesign",featureModeVariants:{control:"Subscribe","variant-1":"Subscribe - Redesign","variant-2":"Subscribe - Redesign","variant-3":"Subscribe - Redesign"}}],["/subscribe/app",{name:"Subscribe - App"}],["/subscribe/our-story",{name:"Subscribe - Our Story"}],[p,{name:"Web notification Landing Page"}],["/donations",{name:"Donations",type:$n}],["/archive",{name:"Archive",type:$n}],["/topics-list",{name:"All topics",type:$n}],["/vouchercodes",{name:"Voucher codes",type:$n}],["/login",{name:"Login",type:$n}],["/register",{name:"Register",type:$n}],["/independent-premium",{name:"Independent Premium",type:$n}],["/profile",{name:"Account Details",type:$n}]]),Nn=(e,t)=>{try{for(const[t,{name:n,type:i,featureFlagVariants:r={},featureModeVariants:a={},featureModeName:s=""}]of Mn)if(i===$n){if(e.startsWith(t))return n}else if(e===t){const e=Object.entries(r);for(const[t,o]of e)if(JSGlobals.featureFlags[t])return o;if(s){var o;const e=null===(o=JSGlobals.featureModes)||void 0===o?void 0:o[s];if(e)return a[e]}return n}return"Channel frontpage"===t.page_type&&t.site_sections||"Topic"===t.page_type&&t.site_sections?`${t.site_sections.split(":").join("/")}/home`:"Article"===t.page_type&&t.site_sections?`${t.site_sections.split(":").join("/")}/article${t.article_id.replace(/\D/g,"")}`:"Video Article"===t.page_type&&t.site_sections?`${t.site_sections.split(":").join("/")}/article${t.article_id}`:e}catch(t){return console.warn("getPageName() error",t),e}},Bn=(e=!0)=>{const t={width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight};return e?`${t.width}x${t.height}`:t};function Rn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function zn(t){for(var o=1;o{try{(e=>{const{auto_refresh:t,site_sections:o,page_domain:n,page_path:i,page_query:r,page_type:a,page_previous_url:s,section_type:c,components_list:l,commercial_campaign:d,logged_in_status:p,uid:u,registration_date:m,user_status:b,main_js_version:_}=digitalData,g=null==o?void 0:o.split(":"),f=Sn("link_click_label"),h=Sn("link_click_position");switch(Tn({events:[..."Topic"===a?["event2"]:[],...t?["event6"]:[]],props:zn(zn(zn(zn(zn({pageName:Nn(e,digitalData)},g&&{hier1:g.join(","),channel:g[0],[Mo]:g.slice(0,2).join(":"),[No]:g.slice(0,3).join(":")}),{},{eVar3:n,eVar8:a,eVar12:o,eVar16:i,eVar17:r,eVar21:s,[Wo]:l,[Ko]:Y("locale"),[Qo]:"Native",[en]:d,[mn]:p,[bn]:u,[_n]:m,[fn]:b,[pn]:_,prop1:jn(Mo),prop2:jn(No),prop3:n,prop8:a,[go]:c,[yo]:jn(Wo),[vo]:jn(Ko),[ko]:jn(Qo),[Po]:jn(en),prop40:"D=g"},f&&{[tn]:"D=pageName",[Io]:"D=pageName",[on]:f,[Eo]:jn(on),[un]:h,[$o]:jn(un)}),{},{prop69:jn(mn),prop70:jn(bn),prop71:jn(_n),prop75:jn(fn)},navigator.userAgent.indexOf("iPhone")>-1&&{eVar68:Bn()}),JSGlobals.httpStatusCode>=400&&{pageName:"",pageType:"errorPage"}),{},{prop64:jn(pn)},Cn())}),f){case"Visible Nav":Tn({events:[Qt],props:{prop6:Sn("link_click_text"),[so]:"Visible Nav"}});break;case"Burger Nav":Tn({events:[Qt],props:{prop32:Sn("link_click_text"),[so]:"Burger Nav"}});break;case"Temp Link":Tn({events:[Qt],props:{prop34:Sn("link_click_text")}});break;case"RHR Most Popular":Tn({events:["event19"]});break;case"RHR Popular Videos":Tn({events:["event30"]});break;case"RHR Sponsored Features":Tn({events:["event31"]});break;case"RHR Indy100 Trending":Tn({events:[Ft]});break;case"Article in-line Link":Tn({events:["event39"]});break;case"Article Topic Tag Link":Tn({events:["event40"],props:{[Oo]:Sn("topic_tag")}});break;case"Article Bullet Related Link":case"Live Blog Article Bullet Related Link":Tn({events:["event57"]});break;case"Live Blog In-line Article Link":Tn({events:["event58"]});break;case"Most Commented Section Click":Tn({events:[eo]});break;case"Register Now":Tn({events:[Xt]});break;case"Most Watched":Tn({events:["event51"],props:{[cn]:Sn("video_algorithm"),prop47:jn(cn)}});break;case"Edition Link":Tn({events:["event81"],props:{[vo]:Sn("link_click_text")}})}const w=Sn("link_click_related_embed_position");null!=f&&f.startsWith("Related Articles - ")&&Tn({events:["event13"],props:zn({[Zo]:w,prop27:jn(Zo)},f.startsWith("Related Articles - Auto")&&{[Yo]:Sn("video_algorithm"),prop26:jn(Yo)})});const y=Sn("topic_link_click_label");if(y)switch(Tn({props:{[on]:y,[Eo]:jn(on)}}),y){case"Article in-line Link (Topic Page)":Tn({events:["event72"],props:{[Eo]:"Article in-Line Click (Topic Page)"}});break;case"Article in-line Link (Non-Topic Page)":Tn({events:["event73"],props:{[Eo]:"Article in-Line Click (Non-Topic Page)"}})}})(e)}catch(e){console.error("Something went wrong building page generic tracking vars",e)}switch(e){case"/":Tn({props:{hier1:"news",channel:"news"}});break;case"/subscribe/confirmation":{const e=fe(h);if(Object.values(e).every((e=>void 0===e)))return;Tn({events:[Zt],props:zn(zn({},En(e)),{},{[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an)})});break}case"/register":case"/subscribe/register":{const e=fe(h);Tn({events:["event22"],props:zn(zn({},En(e)),{},{[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an)})});break}case"/thank-you":{const e="true"===Sn("marketing_opt_in");Tn({events:[Wt,...e?[Yt]:[]],props:{[ln]:e?"Opt in":"Opt out",[Ao]:jn(ln)}});break}case"/subscribe/payment":if("/subscribe/register"===digitalData.page_previous_path){const e=fe(h),t="true"===Sn("marketing_opt_in");Tn({events:[Wt,...t?[Yt]:[]],props:zn(zn({},En(e)),{},{[Ao]:jn(ln),[jo]:jn(nn),[Lo]:jn(rn),[xo]:jn(an),prop90:jn(hn)})})}}e.startsWith("/tv/")&&Tn({events:[qt],props:{[Uo]:digitalData.video_title,eVar49:"Independent Video Hub",[po]:jn(Uo),[uo]:digitalData.article_page_filename,[Do]:jn(Do),[co]:jn(Ro),[lo]:jn(zo),[mo]:jn(Go),[bo]:digitalData.lead_media_item,[_o]:digitalData.first_published_date,[go]:jn(Jo),[fo]:jn(qo),[ho]:jn(Fo),[wo]:jn(Ho),[Oo]:digitalData.article_topic_tags,[To]:digitalData.published_date,[Co]:digitalData.article_premium_status,[Ro]:digitalData.article_id,[zo]:digitalData.article_publication_time,[Go]:digitalData.article_author,[Jo]:digitalData.article_category,[qo]:digitalData.content_source,[Fo]:digitalData.word_count,[Ho]:digitalData.internal_links_count}}),"Article"===digitalData.page_type&&Tn({props:{[Uo]:digitalData.article_title,[Go]:digitalData.article_author,[Vo]:digitalData.topic_pages,[Jo]:digitalData.article_category,[qo]:digitalData.content_source,[Fo]:digitalData.word_count,[Ho]:digitalData.internal_links_count,[Wo]:`${digitalData.components_list}${digitalData.mostWatched_algorithm?`,4,${"no-love"===digitalData.mostWatched_algorithm?5:""}`:""}`,[en]:digitalData.commercial_campaign,[sn]:digitalData.mostWatched_paragraph_number,eVar92:digitalData.affiliate_links_count,[zo]:digitalData.article_publication_time,[Ro]:digitalData.article_id,[co]:jn(Ro),[lo]:jn(zo),[po]:jn(Uo),[uo]:digitalData.article_page_filename,[mo]:jn(Go),prop14:jn(Vo),[bo]:digitalData.lead_media_item,[_o]:digitalData.first_published_date,[go]:jn(Jo),[fo]:jn(qo),[ho]:jn(Fo),[wo]:jn(Ho),[yo]:jn(Wo),prop25:digitalData.product_carousel_failure,prop28:digitalData.article_modification_date,prop30:digitalData.article_swap,[Oo]:digitalData.article_topic_tags,[Po]:jn(en),prop46:jn(sn),[To]:digitalData.published_date,[Co]:digitalData.article_premium_status},events:[qt,..."true"===digitalData.auto_gallery_view?["event14"]:[],...digitalData.homepage_section?["event46"]:[],...document.querySelector(`.${L}`)?["event97"]:[]]}),((e=window[JSGlobals.ADOBE_ANALYTICS_OBJECT])=>{e.t()})(),Object.keys(sessionStorage).forEach((e=>{e.startsWith(kn)&&sessionStorage.removeItem(e)}))},Gn=()=>{window.digitalData=((...e)=>t=>e.reduce(((e,t)=>t(e)),t))(Jt,Vt,we)(),function(){const e=JSGlobals.adobe.reportSuiteId,t=s_gi(e);t.trackingServer=JSGlobals.adobe.trackingServer,t.trackingServerSecure=JSGlobals.adobe.trackingServerSecure,t.server=`www.${JSGlobals.domain}`,t.currencyCode="GBP",t.charSet="UTF-8",t.cookieDomainPeriods=(location.hostname.match(RegExp("\\.","g")||[])||[]).length,t.trackDownloadLinks=!0,t.trackExternalLinks=!0,t.trackInlineStats=!0,t.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx,epub",t.linkInternalFilters=["javascript:",".independent.co.uk",".indy100.com",".independentespanol.com",".the-independent.com"].join(),t.linkTrackVars="None",t.linkTrackEvents="None",t.linkLeaveQueryString=!0,"undefined"!=typeof Visitor&&(t.visitor=Visitor.getInstance("28280C0F53DB09900A490D45@AdobeOrg",{trackingServer:t.trackingServer,trackingServerSecure:t.trackingServerSecure})),t.usePlugins=!0,t.doPlugins=function(e){const t=["eVar16","eVar17","eVar36","prop3","prop36"];for(let o=0;o{const t=Dn[e.detail.eventName];t?t(An(An({},window.digitalData),e.detail.data||{})):console.warn("Adobe event not recognised!",e.detail.eventName)})),Nt(),Un(document.location.pathname)};function Vn(){const{apiKey:e,workspaceId:t}=window.JSGlobals.permutive;!function(e,t,o,n){if(!e){e=e||{},window.permutive=e,e.q=[];e.config={consentRequired:!0}||{},e.config.apiKey=t,e.config.workspaceId=o,e.config.environment=e.config.environment||"production",(window.crypto||window.msCrypto)&&(e.config.viewId=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)})));for(var i=["addon","identify","track","trigger","query","segment","segments","ready","on","once","user","consent"],r=0;r{try{const e=await(async()=>{try{let e;return await braze.getDeviceId((t=>e=t)),e}catch(e){return ie(`Unable to retrieve Braze device id: ${e.message}`),null}})();if(!e)throw new Error("Error: failed to retrieve Braze device id");const t=await fetch(`/api/user/braze-generated-id?device_id=${e}`),o=await t.json();if(t.ok)return o.generatedBrazeId;throw new Error(o.message)}catch(e){return ie(`Unable to retrieve generated Braze id: ${e.message}`),null}},qn=(e=[])=>{document.addEventListener(z,(async()=>{const t=[...e],o=await Jn();o&&(t.push({id:o,tag:"braze_id",priority:3}),permutive.identify(t))}))};async function Fn(){var e;const t=[],o=Y(r),n=Y("hashed_email"),i=Y("_cb"),a=!!o,s=await(async(e=!1,t)=>e?window.braze?await Jn():(qn(t),null):null)(a,t),c=null===(e=permutive.context)||void 0===e?void 0:e.user_id;o&&t.push({id:o,tag:"piano_id",priority:0},{id:n,tag:"user_email",priority:1},{id:n,tag:"email_sha256",priority:2},{id:i,tag:"chartbeat_id",priority:4}),s&&t.push({id:s,tag:"braze_id",priority:3}),c&&t.push({id:c,tag:"permutive_id",priority:5}),t.length&&permutive.identify(t)}function Hn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Wn(t){for(var o=1;o{if(!permutive)return;const o={comparison:e,affiliate:t};permutive.track("AffiliateLinkClick",o)};let Zn=!1;const Kn=[];let Qn;const Xn=async(e,t)=>{try{JSGlobals.permutive&&e?(permutive.consent({opt_in:!0,token:t}),await(async()=>{await Fn();const e=Y("birth_year"),t=Y(r),o=Y("esi_user_status");permutive.track("PianoProfile",{birth_year:parseInt(e),piano_user_status:o||"anonymous",piano_id:t})})(),(()=>{var e,t;const o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][(new Date).getDay()];(null===(e=JSGlobals.permutive)||void 0===e?void 0:e.data)&&permutive.addon("web",Wn(Wn(Wn({},JSGlobals.permutive.data),null!==(t=JSGlobals.permutive)&&void 0!==t&&null!==(t=t.data)&&void 0!==t&&t.page?{}:{page:{}}),{},{context:{day_of_week:o}}))})(),(()=>{const e=()=>{const e=Wn({},JSGlobals.permutive.data);e.page.content.type="gallery",permutive.addon("web",{page:{},galleryData:e})};document.body.addEventListener("click",(t=>{t.target.classList.contains("amp-carousel-button")&&e()})),[...document.querySelectorAll(".gallery-btn, .inline-gallery-btn")].forEach((t=>{t.addEventListener("click",e)}))})(),document.querySelectorAll(".body-link[data-vars-item-name]").forEach((e=>e.addEventListener("click",(function(e){let t=e.currentTarget.parentNode.previousSibling;for(;"H2"!==(null===(o=t)||void 0===o?void 0:o.nodeName);){var o;if(t=t.previousSibling,"H2"===t.nodeName){/(.*):[^\d]*([\d.,\s]*),(.*)$/.exec(t.textContent)&&Yn({comparison:!1,affiliate:""});break}}})))),[...document.getElementsByClassName("js-product")].forEach((e=>{const{affiliate:t}=e.dataset,o=e.querySelectorAll(`.${E}`),n=e.querySelector(".js-price-comparison");n&&n.addEventListener("click",(e=>{if(e.target.classList.contains("js-price-comparison-button")){const t=e.target.closest(".js-price-comparison-item"),{affiliate:o}=t.dataset;Yn({comparison:!0,affiliate:o})}})),o.forEach((e=>{e.addEventListener("click",(()=>{Yn({comparison:!1,affiliate:t})}))}))}))):Qn=!0}catch(e){console.error("Failed to pass content to permutive",e.message)}};function ei(e){return new Promise(((t,o)=>{setTimeout((()=>{o("Rejected by timeout")}),2e3),Vn();const[n,i]=((e,t)=>[e,t])(Zn,Qn);n||i?o("Rejected: permutiveRejected || consentRejected"):Kn.push(o),permutive.ready((()=>{var o;const n=null===(o=permutive)||void 0===o||null===(o=o.context)||void 0===o?void 0:o.user_id;e&&e(n),t(n)}))}))}const ti=()=>{try{permutive.readyWithTimeout=async(e,t,o)=>{await Promise.race([new Promise((e=>setTimeout(e,o))),new Promise((e=>permutive.ready(e,t)))]),e()}}catch(e){console.error("Failed to init permutive.readyWithTimeout",e.message)}},oi="flybys",ni={getAPVSegmentFromRemote:async()=>{const{apvConfig:e}=window.JSGlobals;if(null==e||!e.url)return console.error("APV config is incorrect. url is required."),oi;let t,o=Y(r),n="piano";if(!o){try{o=await ei()}catch(e){return oi}n="permutive"}try{const i=new URLSearchParams;i.set("type",n),i.set("id",o),t=await fetch(`${e.url}?${i.toString()}`,{})}catch{return oi}return 200===t.status?await t.text():oi},updateAPVSegment:async()=>{localStorage.setItem("apv-segment",await ni.getAPVSegmentFromRemote())},getTodayDate:()=>Bt().format("DD-MM-YYYY")};const ii=e=>{const t=document.getElementById("loginButton"),o=document.getElementById("registerLink");o&&o.setAttribute("href",function(e){if(e){const t=new URLSearchParams;return t.append("regSourceMethod",e),`/register?${t.toString()}`}return"/register"}(e)),localStorage.setItem("returnUrl",window.location.href),localStorage.setItem("regSourceMethod",e),t&&t.click()},ri=e=>{let t=JSON.parse(localStorage.getItem("premiumBookmarks"))||[];t=t.filter((t=>t!==e)),localStorage.setItem("premiumBookmarks",JSON.stringify(t))},ai=async(e,t)=>{if(!t.classList.contains("submitting"))try{t.classList.add("submitting");if((await Ae(`bookmarks/${e}`)).ok)return[...document.querySelectorAll(`.${D}`)].forEach((e=>e.classList.remove("saved"))),t.classList.remove("submitting"),void ri(e);throw new Error("Network response was not ok.")}catch(e){[...document.querySelectorAll(`.${D}`)].forEach((e=>e.classList.add("saved"))),t.classList.remove("submitting"),console.error("Fetch failed: ",e.message)}},si=async(e,t)=>{if(t.classList.contains("submitting"))return;t.classList.add("submitting");Le("bookmarks",{articleId:e}).then((e=>{if(e.ok)return e.json();throw new Error("Network response was not ok.")})).then((o=>{o.saved?([...document.querySelectorAll(`.${D}`)].forEach((e=>e.classList.add("saved"))),(e=>{const t=JSON.parse(localStorage.getItem("premiumBookmarks"))||[];t.push(e),localStorage.setItem("premiumBookmarks",JSON.stringify(t))})(e),(()=>{const e=document.querySelector(".bookmark-notification"),t=localStorage.getItem("ignore-bookmark");e&&!t&&(e.classList.add(C),setTimeout((()=>{e.classList.remove(C)}),3e3))})(),((e={})=>{pe("article_bookmark",e)})()):([...document.querySelectorAll(`.${D}`)].forEach((e=>e.classList.remove("saved"))),ri(e)),t.classList.remove("submitting")})).catch((e=>{t.classList.remove("submitting"),console.error("Fetch failed: ",e.message)}))},ci=async()=>{const e=[...document.querySelectorAll(`.${D}`)];document.querySelector(`.${T}`)&&(e.forEach((e=>{const t=e.dataset.articleId;Y(s)&&((e,t)=>{(JSON.parse(localStorage.getItem("premiumBookmarks"))||[]).indexOf(t)>-1?e.classList.add("saved"):e.classList.remove("saved")})(e,t),e.addEventListener("click",(()=>{((...e)=>{const[,t]=e;(t.classList.contains("saved")?ai:si)(...e)})(t,e)}))})),[...document.querySelectorAll(".show-login")].forEach((e=>{e.addEventListener("click",(()=>{document.querySelector("#bookmark-lightbox .close").click(),setTimeout((()=>{ii("bookmarks")}),400)}))})),(()=>{const e=document.querySelector(`.${T}`);if(!e)return;e.querySelector(".close-notification").addEventListener("click",(()=>{e.classList.remove(C)})),e.querySelector("input").addEventListener("click",(()=>{localStorage.setItem("ignore-bookmark","true")}))})())},li=()=>{braze.subscribeToInAppMessage((e=>{const t=e.extras||{},o=e.buttons[1];if("push-notification-prompt"===t.campaign){if(!braze.isPushSupported()||braze.isPushPermissionGranted()||braze.isPushBlocked())return;o&&o.subscribeToClickedEvent()}braze.showInAppMessage(e)}))},di=()=>new Promise((e=>{if(!JSGlobals.cmp.enabled)return void e(!0);document.getElementById("sp-script").error&&e(!1),window.addEventListener("esi:spError",(()=>{e(!1)}));window.__tcfapi("addEventListener",2,((t,o)=>{var n;o&&["useractioncomplete","tcloaded"].includes(t.eventStatus)&&(window.__tcfapi("removeEventListener",2,(()=>{}),t.listenerId),t.gdprApplies?null!==(n=t.publisher)&&void 0!==n&&null!==(n=n.consents)&&void 0!==n&&n[1]?e(!0):e(!1):e(!0))}))})),pi=async(e,t)=>new Promise((o=>{var n;null!==(n=JSGlobals)&&void 0!==n&&null!==(n=n.cmp)&&void 0!==n&&n.enabled?window.__tcfapi&&di().then((n=>{n?window.__tcfapi("getCustomVendorConsents",2,(n=>{var i;const r=!(null===(i=n.grants)||void 0===i||null===(i=i[e])||void 0===i||!i.vendorGrant);ee("CMP:getCustomVendorConsents",t,r),o(r)})):o(!1)})):o(!0)}));function ui(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}const mi=async()=>{if(!await pi("5ed8c49c4b8ce4571c7ad801","braze"))return!1;const{userUid:t,braze:{sdkAPIKey:o,sdkEndpoint:n}={}}=JSGlobals||{};return await Ce(["https://js.appboycdn.com/web-sdk/4.8/braze.min.js"]),braze.initialize(o,function(t){for(var o=1;o{await mi()&&(braze.logCustomEvent("campaign-a"),li())},_i=()=>{const{brazeSdkDelayAmount:e=3e4}=JSGlobals.braze||{};setTimeout(bi,e)},gi=e=>{(window._cbv||(window._cbv=[])).push(e)},fi=async()=>{try{await fetch("https://www.npttech.com/advertising.js")}catch{return pe("adblock_detected"),!0}return!1},{endpoint:hi,section_uuid:wi}=JSGlobals.viafoura;let yi=0;const vi=e=>{yi++,window.vf.session.logout().then(window.vf.session.login.cookie(Y(r))).then(e&&setTimeout(e,500))},ki=(e,t)=>{(async(e,t)=>{const o=new FormData;return Object.keys(t).forEach((e=>{o.append(e,t[e])})),await fetch(e,{method:"POST",mode:"same-origin",cache:"no-cache",credentials:"same-origin",body:o})})(`/internal-api/comments/nickname/submit?__amp_source_origin=${window.location.origin}`,{nickname:e}).then((e=>{if(200!==e.status)return e.json().then((({message:e})=>{t({success:!1,errorMessage:e})}));t({success:!0})})).catch((e=>{t({success:!1,errorMessage:e.message})}))},Si=()=>{const[e]=document.getElementsByClassName("vf-post-form"),t=e.firstElementChild;t.style.display="none";const o=(e=>{const t=document.createElement("div"),o=document.createElement("h2"),n=document.createElement("p"),i=document.createElement("div"),r=document.createElement("input"),a=document.createElement("button");return t.id="add-nickname-form",o.innerHTML="We have noticed you don't have a commenting name yet.",n.innerHTML="Your commenting name is what people will see when you make any comments across Independent articles. Please don't use anything rude or anything that could identify you.",r.setAttribute("placeholder","Commenting name"),r.setAttribute("pattern","^[A-Za-z0-9]{3,40}$"),r.required=!0,a.innerHTML="SUBMIT",a.disabled=!0,t.appendChild(o),t.appendChild(n),t.appendChild(i),i.appendChild(r),i.appendChild(a),a.addEventListener("click",(t=>{if(t.target.disabled)return!1;e(r.value.trim())})),r.addEventListener("keypress",(e=>{var t;(t=e.key.charCodeAt(0))>64&&t<91||t>96&&t<123||8===t||t>=48&&t<=57||e.preventDefault()})),r.addEventListener("input",(e=>{a.disabled=!e.target.checkValidity()})),t})((n=>{ki(n,(({success:n,errorMessage:i})=>{n?(e.removeChild(o),t.style.display="block",vi()):alert(i)}))}));e.appendChild(o)},Oi=()=>{window.vf.context.get("user").then((e=>{Y(r)!==e.social_login_id?vi(yi<10&&Oi):"anonymous"===e.name.toLowerCase()&&Si()}))},Pi=()=>{document.getElementById("comments").addEventListener("click",(({target:e})=>{var t;e.className.split(" ").some((e=>e.startsWith("vf-content-actions__like")||e.startsWith("vf-content-actions__dislike")))?((e={})=>{pe("vote_comment_click",e)})({}):["Flag","Flagged"].includes(null===(t=e.innerText)||void 0===t?void 0:t.trim())?((e={})=>{pe("flag_comment_click",e)})({}):e.closest(".vf-load-more__button")&&Se()}))},Ii=e=>{const[t]=document.getElementsByClassName(y),[o]=document.getElementsByClassName(v);e&&(t&&(t.innerHTML=e),o&&(o.innerHTML=e))},Ei=()=>{const e=document.querySelector("a.icon-logout");Pi(),window.vf.$prepublish(((e,t,...o)=>(console.log(`Commenting: channel = ${e}; event = ${t};`),"commenting"===e&&"loaded"===t&&((()=>{const e=document.getElementById("comments");if(e.offsetHeight>600){e.classList.add("height-limited");const t=document.createElement("button");t.className="show-more",t.innerHTML="See more comments",e.appendChild(t);const o=()=>{e.removeChild(t),e.classList.remove("height-limited"),e.removeEventListener("click",o),Se()};e.addEventListener("click",o)}})(),(()=>{const e='',[t]=document.getElementsByClassName("comment-count"),[o]=document.getElementsByClassName("js-comment-message"),[n]=document.getElementsByClassName(y),[i]=document.getElementsByClassName(v),[r]=document.getElementsByClassName("js-comment-plural-header"),[a]=document.getElementsByClassName("js-comment-plural-footer");t.classList.add("comments-loaded"),t.setAttribute("href","#comments-area"),n.classList.add("comments-loaded"),o&&i&&(o.classList.add("comments-loaded"),o.setAttribute("href","#comments-area"),i.classList.add("comments-loaded")),n.textContent||(n.innerHTML=e,i.innerHTML=e),"1"===n.textContent&&(r.innerHTML="Comment",a.innerHTML="Comment")})(),Y(s)?Oi():window.vf.context.get("user").then((e=>{0!==e.id&&window.viafoura.session.logout()}))),"comment"===e&&"created"===t&&((e={})=>{pe("comment",e)})({}),"authentication"===e&&"required"===t?(ii("Commenting"),!1):{channel:e,event:t,args:o}))),window.vf.$subscribe("authentication","logout",(()=>{e.click()}))},ji=()=>!!document.getElementById("comments"),Li=()=>{ji&&((async()=>{const e={method:"POST",headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify([window.digitalData.article_id_root])};try{var t;const o=await fetch(`${hi}/v4/livecomments/${wi}/content-containers/comment-count-and-status/by-container-ids`,e);return(null===(t=(await o.json())[0])||void 0===t?void 0:t.commentCount)||0}catch(e){console.error(e)}return 0})().then(Ii),window.vfQ=window.vfQ||[],window.vfQ.push(Ei),Ce("//cdn.viafoura.net/entry/index.js"))},xi=()=>{const e=document.querySelector('iframe[src*="https://xd.wayin.com"]');if(!e)return;const t=document.createElement("div");e.parentElement.appendChild(t),e.setAttribute("frameborder",0),e.loading="lazy",e.onload=function(){e.style.display="none",t.innerHTML="

Loading...

",setTimeout((()=>{e.style.display="block",t.style.display="none"}),2e3),xe("competition-data").then((e=>{if(e.ok)return e.json();throw new Error("Unable to fetch comments")})).then((function({providerUID:o,firstName:n,lastName:i,email:r,provider:a}){NGX.Embed.getUser((function(s){s.id=o,s.firstName=n,s.lastName=i,s.email=r,s.network=a,NGX.Embed.loginUser(s,(function(){e.style.display="block",t.style.display="none"}),(function(){throw new Error("Failed to logged in the user.")}))}))})).catch((t=>{e.style.display="none",console.error(t)}))}},Ai=()=>{document.getElementsByClassName("fb-post").length>0&&Ce("https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v11.0")},Di=e=>{var t;return null===(t=JSGlobals)||void 0===t||null===(t=t.featureFlags)||void 0===t?void 0:t[e]},Ti=(e=!1)=>{Di("feat__fullstory")&&e&&window.setTimeout((()=>{Ce("/js/fullstory.raw.js")}),3e3)},Ci=e=>new Promise((t=>{if(!e)return void t();const o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=`https://cse.google.com/cse.js?cx=${e}`;const n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(o,n);const i="searchBox0",r=function(){google.search.cse.element.render({div:i,tag:"searchbox",gname:"searchbox-only0"},{div:"quickSearchresults0",tag:"searchresults-only",gname:"searchbox-only0"}),google.search.cse.element.render({div:"searchBox1",tag:"searchbox",gname:"searchbox-only1"},{div:"quickSearchresults1",tag:"searchresults-only",gname:"searchbox-only1"}),t()};window.__gcse||(window.__gcse={}),window.__gcse=Object.assign(window.__gcse,{parsetags:"explicit",callback:function(){void 0!==document.getElementById(i)?r():google.setOnLoadCallback(r,!0)}})})),$i=e=>{const t={},o="true"===Y(c),n=!e,i=!!Y(r);return console.log("%cMETERED: %s","background:yellow;color:purple;font-size:2em",n),console.log("%cSUBSCRIBED: %s","background:yellow;color:purple;font-size:2em",o),console.log("%cLOGGED_IN: %s","background:yellow;color:purple;font-size:2em",i),t.hasAccess=i&&(o||n),t.subscribed=o,t},Mi=e=>{const t=document.createElement("a");return t.href=e,!("https:"!==t.protocol||!/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/.test(t.hostname))},Ni=`${window.location.origin}/iframe/registration_widget`,Bi=document.getElementById("open-drawer-button"),Ri=document.referrer,zi=location.search,Ui=Date.now(),Gi=((e,t,o,n)=>(Mi(e)||Mi(t))&&((e,t)=>!(!e.gaa_at||!e.gaa_n||!e.gaa_sig||!e.gaa_ts||parseInt(e.gaa_ts,16){const t={};return e.substring(1).split("&").forEach((e=>{const o=e.split("=");t[o[0]]=o[1]})),t})(o),n))(Ri,new URLSearchParams(window.location.search).get("referrer"),zi,Ui),Vi={};let Ji=new Promise((e=>{Vi.resolve=e}));const qi="_pc_showpaywall";(()=>{if("true"!==Y(qi))return new Promise((e=>{Gi?(Ce(["https://news.google.com/swg/js/v1/swg-gaa.js"]),Ce(["https://news.google.com/swg/js/v1/swg.js"],{attributes:[["subscriptions-control","manual"]]}),Ce(["https://apis.google.com/js/platform.js"]),(self.SWG=self.SWG||[]).push((async t=>{var o,n;const i=({entitlement:e,isUserRegistered:o})=>{t.setShowcaseEntitlement({entitlement:e,isUserRegistered:o}),ee("entitlement: ",e," , isUserRegistered: ",o)};if(t.init(null===(o=JSGlobals)||void 0===o?void 0:o.showcaseProductId),t.setOnNativeSubscribeRequest((()=>{ee("%c%s","background:dodgerblue;color:yellow;padding:10px;","subscribe event"),localStorage.setItem("returnUrl",window.location.href),window.location="/subscribe"})),null===(n=JSGlobals)||void 0===n||null===(n=n.article)||void 0===n||!n.premium)return void i({entitlement:"EVENT_SHOWCASE_UNLOCKED_FREE_PAGE",isUserRegistered:Boolean(Y(s))});const r=await(async()=>{try{const e=await xe("fetch-user-state");return await e.json()}catch(e){return{}}})();r.metering?(ee("user state received"),t.getEntitlements(r),t.setOnEntitlementsResponse((async t=>{let o=await Ji;const{hasAccess:n,subscribed:r}=$i(o);if(n)i(r?{entitlement:"EVENT_SHOWCASE_UNLOCKED_BY_SUBSCRIPTION",isUserRegistered:!0}:{entitlement:"EVENT_SHOWCASE_UNLOCKED_BY_METER",isUserRegistered:!0}),ee("Publisher already grants access"),e();else{ee("Not allowed access, try to use Google intervention");let o=await t;ee("entitlements: ",o),o.enablesThisWithGoogleMetering()?(ee("%c%s","background:dodgerblue;color:yellow;padding:10px;","entitlementsEnabled, consume"),o.consume((()=>{}))):(Z(qi,"true",{hours:1}),i({entitlement:"EVENT_SHOWCASE_NO_ENTITLEMENTS_PAYWALL",isUserRegistered:!0}),ee("%c%s","background:dodgerblue;color:yellow;padding:10px;","show Paywall"),window.location.reload()),e()}}))):(ee("user state not found on server. Probably you are not signed in"),t.setOnLoginRequest((()=>{null==Bi||Bi.click(),ee("%c%s","background:dodgerblue;color:yellow;padding:10px;","openLoginPage")})),GaaMeteringRegwall.show({iframeUrl:Ni}).then((e=>{(async e=>{try{let t=await fetch(`/id-token-cb?idToken=${e}`);if(200===t.status){let e=new URL(window.location);e.searchParams.set("referrer",document.referrer),window.location=e}else if(206===t.status){let t=new URL(window.location.origin);t.pathname="/finish-register";let o=new URL(window.location);o.searchParams.set("referrer",document.referrer),t.searchParams.set("cb",o.href),t.searchParams.set("idToken",e),window.location=t}else console.error(t)}catch(e){return{}}})(e.idToken).then((e=>{t.getEntitlements(e)}))})).catch((t=>{ee(t),ee("an error occurred trying to show regwall"),e()})))}))):e()}));ee("entitlement: ","EVENT_SHOWCASE_NO_ENTITLEMENTS_PAYWALL"," , isUserRegistered: ",!0)})();const Fi=async()=>{const e=document.getElementById("googleSignInButton"),t=document.querySelector(`#drawer button[on="tap:${W}.close"]`);e&&e.addEventListener("click",(()=>{if(Gi){let e=new URL(window.location);e.searchParams.set("referrer",document.referrer),sessionStorage.setItem("cb",encodeURIComponent(e));let t=new URL(window.location.origin);t.pathname="/google-auth",window.location=t}else{let e="scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=520,height=500,left=500,top=100";window.open("/google-auth","",e),null==t||t.click()}}))};var Hi=o(555),Wi=o(1249);const Yi=e=>Array.isArray(e)&&e.length>0;function Zi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ki(t){for(var o=1;o{(()=>{window.dataLayer=window.dataLayer||[];let e={event:"pageDataLoaded",trackingId:JSGlobals.ga,pageType:JSGlobals.pageType,headline:void 0,articleId:void 0,headlineWordCount:void 0,publishedDate:void 0,sponsorName:void 0,siteKey:JSGlobals.siteKey};if(JSGlobals.article){const t=Yi(JSGlobals.article.authors)?(0,Hi.oY)(JSGlobals.article.authors):null,o=Yi(JSGlobals.article.authors)?(0,Hi.QF)(JSGlobals.article.authors):null,n=(0,Wi.Rz)(JSGlobals.article),i=JSGlobals.article.sectionCategory.map((({siteSection:e})=>e)).join("|");e=Ki(Ki({},e),{},{articleId:JSGlobals.pageId,headline:JSGlobals.article.title,authorName:t,authorSlug:o,headlineWordCount:JSGlobals.article.title.split(" ").length,publishedDate:JSGlobals.article.publish,sponsorName:JSGlobals.article.sponsorName,pageCategories:n,siteSection:i,additionalKeywords:null})}window.dataLayer.push(e)})();const{containerId:e,auth:t,env:o}=JSGlobals.gtm;window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":Date.now(),event:"gtm.js"});const n=`https://www.googletagmanager.com/gtm.js?${((e,t=null,o=null)=>t?new URLSearchParams({id:e,gtm_auth:t,gtm_preview:o,gtm_cookies_win:"x"}).toString():new URLSearchParams({id:e}).toString())(e,t,o)}`;await Ce([n])},Xi=async()=>{JSGlobals.gtm&&(await Qi(),await new Promise(((e,t)=>{window.dataLayer.push((()=>{window.google_tag_manager.dataLayer.gtmDom?(document.body.dispatchEvent(new CustomEvent("gtm_loaded")),e()):t("Error firing `fireGTMLoadedCustomEvent` 'google_tag_manager.dataLayer.gtmDom' not found!")}))})))},er="auto_refresh",tr=e=>``;let or;const nr={parseIASResponseData:function(e){or=JSON.parse(e)},getIASPageTargetingAsQueryString:function(){const e=[];e.push(["fr",or.fr]);for(const t in or.brandSafety)e.push([t,or.brandSafety[t]]);return new URLSearchParams(e).toString()},getIASSlotTargetingAsQueryString:()=>{const e={};for(const t in or.slots){const o=or.slots[t],n=[];for(const e in o){const t=o[e];n.push([e,Array.isArray(t)?t.join(","):t])}const i=new URLSearchParams(n);e[t]=i.toString()}return e}},ir=nr;function rr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ar(t){for(var o=1;o{const o=ar({fr:e.fr},e.brandSafety),n=e.slots[t]||{};return ar(ar({},o),n)},pr=(e,t)=>{var o;if(null!==(o=lr)&&void 0!==o&&null!==(o=o.slots)&&void 0!==o&&o[e]){return dr(lr,e)}return new Promise((o=>{const n=__iasPET||{};n.queue=__iasPET.queue||[],n.pubId=cr;const i=[];i.push({adSlotId:e,size:[1,1],adUnitPath:t,type:"video"}),n.queue.push({adSlots:i,dataHandler:t=>{lr=JSON.parse(t);const n=dr(lr,e);o(n)}})}))},ur=e=>{const t=__iasPET||{};t.queue=__iasPET.queue||[],t.pubId=cr;const o=[];o.push({adSlotId:e,size:[1,1],adUnitPath:JSGlobals.videoAdUnitPath,type:"video"}),t.queue.push({adSlots:o,dataHandler:t=>{ir.parseIASResponseData(t);const o=ir.getIASPageTargetingAsQueryString(),n=ir.getIASSlotTargetingAsQueryString();sr[e]=`${o}&${n[e]}`,ee(`ias [${e}]: ${sr[e]}`)}})},mr=()=>Ce(["//static.adsafeprotected.com/iasPET.1.js"]),br=[728,90],_r=[320,50],gr=[300,600],fr=[300,250],hr=[280,290],wr=[1,1];function yr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function vr(t){for(var o=1;oe.querySelectorAll('[data-mpu]:not([data-initialised="true"])'),Er=(e,t,o)=>{const n=o[e];if(n){const e=[...n].reverse().find((e=>e.from<=t));if(e)return e}},jr=(e,t,o,n)=>{if(e.dataset.sizeKey){var i;const n=((e,t,o)=>{const n=Er(e,t,o);return n?n.supportedSizes:null})(e.dataset.sizeKey,t,o);return n||console.warn(`Incorrect Ad size detected: ${null===(i=e.dataset)||void 0===i?void 0:i.tileName}`),n?{str:n.map((e=>e.join("x"))).join("|"),arr:n}:null}const r=((e,t,o)=>t>=o.laptop&&e.dataset.desktopSizes?e.dataset.desktopSizes:t>=o.tablet&&e.dataset.tabletSizes?e.dataset.tabletSizes:te.split("x").map((e=>Number(e)))))}},Lr=(e,t,o,n)=>({supportedSizes:jr(e,t,o,n),refreshMS:e.dataset.refreshMs}),xr=(e,{registerAsCurrentAd:t,adConfig:{types:o},breakPoints:n})=>{var i;const{supportedSizes:r,refreshMS:a}=Lr(e,Te(),o,n),s=null!=r&&null!==(i=r.arr)&&void 0!==i&&i.length?((e,t,o,n={})=>window.googletag.defineSlot(e,t,o).setCollapseEmptyDiv(!0).updateTargetingFromMap(n).addService(window.googletag.pubads()))(e.dataset.adUnitPath,r.arr,e.id,{tile:e.id}):null;return s&&t(e,s,r.str,a),!!s},Ar=e=>{const t=window.googletag.pubads().refresh;window.googletag.pubads().refresh=(o,...n)=>{var i,r,a;i=null==o?void 0:o.map((e=>null==e?void 0:e.getSlotElementId())).filter((e=>!!e)),r=e,null===(a=[...document.getElementsByClassName("extraAd")])||void 0===a||a.forEach((e=>{const t=e.id.split(e.dataset.tileNameExtra).slice(0,-1).join(e.dataset.tileNameExtra);i&&!i.includes(t)||(r(e),e.remove())})),t(o,...n)}},Dr=e=>Number(document.getElementById(`${e.id}_adIndex`).innerHTML),Tr=(e,t)=>[...e.split("/").slice(0,-1),t].join("/"),Cr=e=>{const t=Object.values(e).reduce(((e,t)=>Pr(Pr({},e),{},{[t.lineItemId]:(e[t.lineItemId]||0)+1})),{});Object.entries(e).forEach((([o,n])=>{e[o].lineItemCount=t[n.lineItemId]}))},$r=["adConfig","breakPoints","adLoadingBehaviourSettings","beforeSlotsDisplay","beforeSlotRefresh","enableOutOfPageAd"];function Mr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Nr(t){for(var o=1;o{let{adConfig:t,breakPoints:o={tablet:768,laptop:1e3},adLoadingBehaviourSettings:n={},beforeSlotsDisplay:i=(()=>{}),beforeSlotRefresh:r=(()=>{}),enableOutOfPageAd:a}=e,s=g(e,$r);const c={},l={},d={},p=[];let u,m=!0;const{renderMarginPercent:b,mobileScaling:_}=Nr(Nr({},Rr),(f=n,Object.fromEntries(Object.entries(f).filter((([,e])=>void 0!==e)))));var f;const h=(e,t,o,n)=>{l[e.id]={el:e,slot:t,sizes:o,refreshMS:n,refreshAttempts:0}},w=e=>{const{id:t}=e,o=l[t];o&&(o.slot&&googletag.destroySlots([o.slot]),o.viewed&&clearTimeout(o.refreshTimeout)),e.setAttribute("data-initialised","false"),e.removeAttribute("id"),delete l[t],delete c[t],Cr(c)};Ar(w);const y=e=>{const o=e.slot.getSlotElementId(),n=document.getElementById(o);if(null!=n&&n.dataset.sizeKey){var i;const{conditionalAd:r}=Er(n.dataset.sizeKey,Te(),t.types);if(r&&r.if.join("x")===(null===(i=e.size)||void 0===i?void 0:i.join("x"))){const e=`${o}${r.tileNameExtra}`,t=((e,t,o)=>{const n=document.createElement("div");return n.id=e,n.setAttribute("data-mpu","true"),n.setAttribute("data-size",t),n.setAttribute("data-ad-unit-path",o),n.className="extraAd",n})(e,r.then.join("x"),Tr(n.dataset.adUnitPath,e));t.dataset.tileNameExtra=r.tileNameExtra,n.parentElement.appendChild(t)}}};(({consent:e,slotRenderedCallback:n=(()=>{}),slotLoadedCallback:s=(()=>{}),setTargeting:g=(()=>{}),firstAdLoaded:f=(()=>{}),allFirstScreenAdsLoaded:v=(()=>{})})=>{googletag.cmd.push((()=>{g(),googletag.pubads().setCentering(!0),a&&(()=>{const e="outofpageslot",t=document.querySelector("[data-mpu]");t&&window.googletag.defineOutOfPageSlot(Tr(t.dataset.adUnitPath,e),e).addService(window.googletag.pubads())})(),e||googletag.pubads().setPrivacySettings({nonPersonalizedAds:!0}),googletag.pubads().enableSingleRequest(),googletag.pubads().enableLazyLoad({fetchMarginPercent:-1,renderMarginPercent:b,mobileScaling:_}),googletag.enableServices();let k=Te(),S=!1,O=0,P=!1;const I=[];u=(e=!1)=>{const n=Te();m=e,k!==n&&(k=n,Object.keys(l).forEach((e=>{const i=l[e].el,{supportedSizes:r}=Lr(i,n,t.types,o);(null==r?void 0:r.str)!==l[e].sizes&&w(i)}))),((e=document)=>e.querySelectorAll('[data-mpu][data-refresh-check="true"][id]'))().forEach((e=>{const t=Dr(e);void 0!==d[e.id]&&t!==d[e.id]&&(d[e.id]=t,w(e))})),((e=document)=>[...Ir(e)].filter((e=>!(e=>!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e))))().forEach((e=>{e.setAttribute("data-initialised","true"),e.id||e.setAttribute("id",e.dataset.tileName),xr(e,{registerAsCurrentAd:h,adConfig:t,breakPoints:o})&&p.push(e),"true"===e.dataset.refreshCheck&&(d[e.id]=Dr(e))})),0===p.length&&e&&!P&&(P=!0,v()),(async()=>{const e=[...p];p.length=0,e.length&&(await i({slotElems:e,slots:e.map((e=>{var t;return null===(t=l[e.id])||void 0===t?void 0:t.slot})).filter(Boolean),isFirstLoad:m}),e.forEach((e=>{googletag.cmd.push((()=>{googletag.display(e.id)}))}))),setTimeout(u,100)})()},u(!0),googletag.pubads().addEventListener("slotRenderEnded",(e=>{y(e),n(e),(async e=>{var o;const n=null!==(o=t.maxEmptySlotRefreshAttempts)&&void 0!==o?o:2;if(0===n)return;const i=e.slot.getSlotElementId(),a=l[i];if(e.isEmpty){if(!a.refreshMS)return;if(a.refreshAttempts>=n)return void console.warn(`Could not find ad to fill '${i}' after ${n} attempts`);a.refreshAttempts++,e.slot.setTargeting(Br,a.refreshAttempts),await r({slotElem:a.el,slot:a.slot}),window.googletag.pubads().refresh([a.slot])}else a.refreshAttempts=0,e.slot.clearTargeting(Br)})(e)})),googletag.pubads().addEventListener("slotResponseReceived",(e=>{(e=>{const t=e.getSlotElementId();c[t]=Nr(Nr({},e.getResponseInformation()),{},{lineItemCount:1}),Cr(c)})(e.slot)})),googletag.pubads().addEventListener("slotOnload",((...e)=>{if(s(...e),S||(S=!0,f()),0===I.length)for(const e in l){const t=l[e].slot.getResponseInformation();"skin"!==e&&null!==t&&I.push(t)}O++,O!==I.length||P||"function"!=typeof v||(P=!0,v())})),googletag.pubads().addEventListener("impressionViewable",(e=>{const o=e.slot.getSlotId().getDomId(),n=l[o];if(n.viewed=!0,((e,t)=>{var o;return!!c[e]&&!(null===(o=t[c[e].advertiserId])||void 0===o||!o.disableRefresh)})(o,t.advertisers||{})||((e,t)=>{var o;return!!c[e]&&!(null===(o=t[c[e].campaignId])||void 0===o||!o.disableRefresh)})(o,t.campaigns||{}))return;(((e,t)=>{var o;return!!c[e]&&!(null===(o=t[c[e].advertiserId])||void 0===o||!o.forceRefresh)})(o,t.advertisers||{})||!(c[o].lineItemCount>1)&&n.refreshMS)&&(n.refreshTimeout=setTimeout((async()=>{n.viewed=!1,await r({slotElem:n.el,slot:n.slot}),window.googletag.pubads().refresh([n.slot])}),n.refreshMS))}))}))})(s)};var Ur=o(2286);const Gr=e=>e.map((({customer:e,rating:t})=>`${e}-${t}`)),Vr=e=>Gr(e).join(","),Jr=e=>e.map((({label:e})=>e)),qr=()=>{const e=localStorage.getItem("_pdfps"),t=e?JSON.parse(e):[];if(!window.JSGlobals)return{permutive:t};const{pageId:o,topictags:n,pageType:i,isLiveBlog:r,isCommercial:a,mantis_channels:s,mantis_context:c}=JSGlobals;return{mantis:(null==s?void 0:s.ratings)&&Gr(s.ratings),mantis_context:c&&Jr(c),topictags:n,pageType:i,liveblog:r?"y":"n",commercial:a?"y":"n",article:o,permutive:t}},Fr="adyoulike",Hr={bottom_mpu_1:{web:"631561064506a8d26e213385c48f8258"},bottom_mpu_2:{web:"dce684d809f523d2b3472ad73aa94cec"},bottom_mpu_3:{web:"5fb6c2385d6ed1c79426d52c6fe434e4"},bottom_mpu_4:{web:"ea2fb05302f71ceda088dfadd7a8331a"},bottom_mpu_5:{web:"18301244018267bcc95fee829ca99c03"},bottom_mpu_6:{web:"e1cdced35a15c4948ee853da654b0259"},bottom_mpu_7:{web:"e98579d6397e99f31d97387f70d67eb2"},bottom_mpu_8:{web:"7a2ee87c492e4499694ed6588c4972fa"},bottom_mpu_9:{web:"383e8bef6d321303591476cb04a52fd8"},bottom_mpu_10:{web:"0beda6e80b9f2a058b56108463a4fc49"},mpu_bottom_sb:{web:"13dce187b21e21e6c8e148e162f1cee4"},mpu_bottom_sb_1:{web:"d899d51b57f2b9d8c9712d0d3f7b8975"},mpu1:{web:"7b7523bfe85e07cf32191f16fcbd9e1e"},mpu2:{web:"3bbbf74cd213703767919452cb99a189"},mpu3:{web:"6a6d675268a5986873cfa7814f5cf0e8"},mpu4:{web:"66b8fb28d2a0d8afa922a5c5a0ab009d"},mpu5:{web:"59245904193110104e6690cb24db740a"},mpu6:{web:"2f0d39560e278b406247036ce164b4cf"},blog_mpu_1:{web:"2d899f05554168e915ab6203b7c9419f"},blog_mpu_2:{web:"76f60fc25096e56650f8efcf844bb88d"},blog_mpu_3:{web:"94bdd1e2d38171c1ddb5163919ba2f16"},blog_mpu_4:{web:"e2fa8caaf2a22e22799c5182032ea86e"},blog_mpu_5:{web:"9ceec554bac91489fb48aed2b421f66a"},blog_mpu_6:{web:"6f2fe5ab2e676d9bbad677c38e40d25f"},blog_mpu_7:{web:"4b0c09849468b91f83d4f2c28c29fa21"},blog_mpu_8:{web:"aa3b7c42796f5f09bba3105cd2f7e1f0"},blog_mpu_9:{web:"830af57c7970aaf39c15c1002537667f"},blog_mpu_10:{web:"52b567f2a6ac54ca08bdb0a46abeffdd"},bottom_banner_0:{web:"5d8c1a0d6b7217d4f0e33426711c5ef3"},top_banner:{web:"3a4c7e81240e55acf222644e65772860"}},Wr={bidderName:Fr,params:({id:e})=>{const t=Hr[e];return t?{bidder:Fr,params:{placement:t.web,keywords:qr()}}:null}},Yr="improvedigital",Zr={bottom_mpu_0:{web:"22874927"},bottom_mpu_1:{web:"22874928"},bottom_mpu_2:{web:"22874930"},bottom_mpu_3:{web:"22874931"},bottom_mpu_4:{web:"22874932"},bottom_mpu_5:{web:"22874933"},bottom_mpu_6:{web:"22874934"},bottom_mpu_7:{web:"22874935"},bottom_mpu_8:{web:"22874936"},bottom_mpu_9:{web:"22874937"},bottom_mpu_10:{web:"22874929"},mpu_bottom_sb:{web:"22874940"},mpu_bottom_sb_1:{web:"22874941"},mpu1:{web:"22874942"},mpu2:{web:"22874944"},mpu3:{web:"22874946"},mpu4:{web:"22874948"},mpu5:{web:"22874950"},mpu6:{web:"22874952"},blog_mpu_0:{web:"22874953"},blog_mpu_1:{web:"22874954"},blog_mpu_10:{web:"22874955"},blog_mpu_2:{web:"22874956"},blog_mpu_3:{web:"22874957"},blog_mpu_4:{web:"22874958"},blog_mpu_5:{web:"22874959"},blog_mpu_6:{web:"22874960"},blog_mpu_7:{web:"22874961"},blog_mpu_8:{web:"22874962"},blog_mpu_9:{web:"22874963"},bottom_banner_0:{web:"22874965"},top_banner:{web:"22874964"}},Kr={bidderName:Yr,params:({id:e})=>{const t=Zr[e];return t?{bidder:Yr,params:{placementId:t.web,publisherId:2160,keywords:qr()}}:null}},Qr="criteo",Xr=["thirdparty01","thirdparty02"],ea={bidderName:Qr,params:({id:e})=>Xr.includes(e)?null:{bidder:Qr,params:{networkId:1680,keywords:qr()}},instreamVideoParams:()=>({bidder:Qr,params:{zoneId:1757630}})},ta="gridNM",oa={bidderName:ta,instreamVideoParams:()=>({bidder:ta,params:{source:"jwp",secid:"11",pubid:"JslU7maJ",keywords:qr()}})};function na(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ia(t){for(var o=1;o{const t=aa[e];return t?{bidder:ra,params:ia(ia(ia({zone:t.zone},aa[e].pubId&&{pubId:aa[e].pubId}),aa[e].slot&&{slot:aa[e].slot}),aa[e].product&&{product:aa[e].product})}:null}};function ca(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function la(t){for(var o=1;o{const t=ua[e];return t?la(la({bidder:da},t.outstreamVideo&&{mediaTypes:{video:pa}}),{},{params:{siteId:t.web}}):null},instreamVideoParams:()=>({bidder:da,params:{siteId:"849727",keywords:qr()}})},ba="invibes",_a={bottom_mpu_1:{placementId:"invibes_independent_bottom_mpu_1"},bottom_mpu_2:{placementId:"invibes_independent_bottom_mpu_2"},mpu1:{placementId:"invibes_independent_mpu1"},thirdparty01:{placementId:"invibes_independent_thirdparty01"},thirdparty02:{placementId:"invibes_independent_thirdparty02"}},ga={bidderName:ba,params:({id:e})=>{const t=_a[e];return t?{bidder:ba,params:{placementId:t.placementId,customEndpoint:"https://bid3.videostep.com/Bid/VideoAdContent"}}:null}};var fa;function ha(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function wa(t){for(var o=1;oe.map((e=>({minViewPort:[e.from,0],sizes:e.supportedSizes}))),ka="display",Sa="phone",Oa=(e,t)=>{const o=e.map((e=>{let{id:o,sizes:n,video:i}=e,r={};r=["thirdparty01","thirdparty02"].includes(o)&&i?{video:i,banner:{sizeConfig:va(n)}}:i?{video:i}:{banner:{sizeConfig:va(n)}};const a=(e=>{let{id:t,bidders:o}=e;return o.map((e=>e.params?e.params({id:t}):null)).filter((e=>e)).reduce(((e,t)=>Array.isArray(t)?[...e,...t]:[...e,t]),[])})({id:o,bidders:t});return{code:o,mediaTypes:r,bids:a}}));return ee("prebidAdConfig: ",o),o},Pa=(e,t)=>{const o=ws.filter((e=>e.instreamVideoParams)).map((e=>e.instreamVideoParams()));return wa(wa({},vs(e,t)),{},{bids:o})};let Ia=!1;const Ea=()=>new Promise((e=>{Ia?e():(Ia=!0,pbjs.que.push((function(){var t;pbjs.setConfig({appnexusAuctionKeywords:{perid:localStorage.getItem("cohort_ids")?JSON.parse(localStorage.getItem("cohort_ids")):[]},useBidCache:!0,realTimeData:{auctionDelay:200,dataProviders:[{name:"permutive",waitForIt:!0,params:{acBidders:["appnexus","pubmatic"]}},{name:"jwplayer",waitForIt:!0,params:{mediaIDs:[null===(t=JSGlobals.article)||void 0===t?void 0:t.heroMediaId]}},{name:"brandmetrics",waitForIt:!0,params:{bidders:["ozone"]}}]},consentManagement:wa(wa({usp:{cmpApi:"iab",timeout:0}},[b,_].includes(ya)&&{gdpr:{cmpApi:"iab",defaultGdprScope:!0,timeout:6e3}}),{},{rules:[{purpose:"storage",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:["permutive"]},{purpose:"basicAds",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]}]}),currency:{adServerCurrency:"USD",granularityMultiplier:1},priceGranularity:ys,userSync:{userIds:[{name:"teadsId",params:{pubId:5668}}],filterSettings:{iframe:{bidders:ws.map((e=>e.bidderName)),filter:"include"}}}}),pbjs.setBidderConfig({bidders:["appnexus"],config:{ortb2:{user:{keywords:localStorage.getItem("cohort_ids")?JSON.parse(localStorage.getItem("cohort_ids")).map((e=>`perid=${e}`)).join(", "):[]}}}},!0),pbjs.setBidderConfig({bidders:["criteo","smartadserver"],config:{ortb2:{user:{data:[{name:"anonymised.io",ext:{segtax:1e3},segment:localStorage.getItem("cohort_ids")?JSON.parse(localStorage.getItem("cohort_ids")).map((e=>({id:e}))):[]}]}}}},!0),pbjs.bidderSettings=wa(wa({},pbjs.bidderSettings),{},{gridNM:{bidCpmAdjustment:(e,t)=>(console.log(`Bidder is: ${t.bidderCode}`),.7*e)},improvedigital:{bidCpmAdjustment:(e,t)=>(console.log(`Bidder is: ${t.bidderCode}`),.85*e)}});const o=Oa(ks,ws);pbjs.addAdUnits(o),e()})))}));function ja(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function La(t){for(var o=1;o{const t=Da[e],o=Ta[e];return[...t?[{bidder:xa,params:t,labelAny:[ka]}]:[],...o?[{bidder:xa,params:o,labelAny:[Sa]}]:[]]},instreamVideoParams:()=>({bidder:xa,params:{placementId:"_rnVetCjAeH",keywords:La({},Aa)}})},$a="minutemedia",Ma="01fzzffh2jsgjpz",Na={blog_mpu_0:{placementId:Ma},blog_mpu_1:{placementId:Ma},blog_mpu_10:{placementId:Ma},blog_mpu_2:{placementId:Ma},blog_mpu_3:{placementId:Ma},blog_mpu_4:{placementId:Ma},blog_mpu_5:{placementId:Ma},blog_mpu_6:{placementId:Ma},blog_mpu_7:{placementId:Ma},blog_mpu_8:{placementId:Ma},blog_mpu_9:{placementId:Ma},bottom_banner_0:{placementId:Ma},gallery_mpu_0:{placementId:Ma},gallery_mpu_1:{placementId:Ma},gallery_mpu_10:{placementId:Ma},gallery_mpu_2:{placementId:Ma},gallery_mpu_3:{placementId:Ma},gallery_mpu_4:{placementId:Ma},gallery_mpu_5:{placementId:Ma},gallery_mpu_6:{placementId:Ma},gallery_mpu_7:{placementId:Ma},gallery_mpu_8:{placementId:Ma},gallery_mpu_9:{placementId:Ma},mpu_bottom_sb:{placementId:Ma},mpu1:{placementId:Ma},mpu1_bottom:{placementId:Ma},mpu2:{placementId:Ma},mpu3:{placementId:Ma},mpu4:{placementId:Ma},mpu4_bottom:{placementId:Ma},mpu5:{placementId:Ma},mpu6:{placementId:Ma},mpu6_bottom:{placementId:Ma},top_banner:{placementId:Ma},bottom_mpu_0:{placementId:Ma},bottom_mpu_1:{placementId:Ma},bottom_mpu_10:{placementId:Ma},bottom_mpu_2:{placementId:Ma},bottom_mpu_3:{placementId:Ma},bottom_mpu_4:{placementId:Ma},bottom_mpu_5:{placementId:Ma},bottom_mpu_6:{placementId:Ma},bottom_mpu_7:{placementId:Ma},bottom_mpu_8:{placementId:Ma},bottom_mpu_9:{placementId:Ma},gallery_banner_0:{placementId:Ma},gallery_banner_1:{placementId:Ma},gallery_banner_10:{placementId:Ma},gallery_banner_2:{placementId:Ma},gallery_banner_3:{placementId:Ma},gallery_banner_4:{placementId:Ma},gallery_banner_5:{placementId:Ma},gallery_banner_6:{placementId:Ma},gallery_banner_7:{placementId:Ma},gallery_banner_8:{placementId:Ma},gallery_banner_9:{placementId:Ma}},Ba={bidderName:$a,params:({id:e})=>{const t=Na[e];return t?{bidder:$a,params:{org:Ma,placementId:t.placementId,keywords:qr()}}:null}},Ra="nextMillennium",za={bottom_banner_0:{placement_id:"45197"},bottom_mpu_1:{placement_id:"45198"},bottom_mpu_10:{placement_id:"45199"},bottom_mpu_2:{placement_id:"45200"},bottom_mpu_3:{placement_id:"45201"},bottom_mpu_4:{placement_id:"45202"},bottom_mpu_5:{placement_id:"45203"},bottom_mpu_6:{placement_id:"45204"},bottom_mpu_7:{placement_id:"45205"},bottom_mpu_8:{placement_id:"45206"},bottom_mpu_9:{placement_id:"45207"},mpu_bottom_sb:{placement_id:"45208"},mpu_bottom_sb_1:{placement_id:"45209"},mpu1:{placement_id:"45210"},mpu2:{placement_id:"45211"},mpu3:{placement_id:"45212"},mpu4:{placement_id:"45213"},mpu5:{placement_id:"45214"},mpu6:{placement_id:"45215"},blog_mpu_1:{placement_id:"45216"},blog_mpu_10:{placement_id:"45217"},blog_mpu_2:{placement_id:"45218"},blog_mpu_3:{placement_id:"45219"},blog_mpu_4:{placement_id:"45220"},blog_mpu_5:{placement_id:"45221"},blog_mpu_6:{placement_id:"45222"},blog_mpu_7:{placement_id:"45223"},blog_mpu_8:{placement_id:"45224"},blog_mpu_9:{placement_id:"45225"},thirdparty01:{placement_id:"45226"},thirdparty02:{placement_id:"45227"},top_banner:{placement_id:"45228"},hero_player:{placement_id:"45341"}},Ua={bidderName:Ra,params:({id:e})=>{const t=za[e];return t?{bidder:Ra,params:{placement_id:t.placement_id}}:null},instreamVideoParams:()=>({bidder:Ra,params:{placement_id:za.hero_player.placement_id}})};function Ga(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Va(t){for(var o=1;o{const e=JSON.parse(localStorage.getItem("_psegs")||"[]").map(Number).filter((e=>e>=1e6)).map(String),t=JSON.parse(window.localStorage._ppam||"[]"),o=JSON.parse(window.localStorage._pcrprs||"[]");return e.concat(t).concat(o)};function Wa(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ya(t){for(var o=1;o{var t,o;const n=qr(),i=Object.keys(n).reduce(((e,t)=>{const o=`${t}=${JSON.stringify(n[t])}`;return 0===e.length?o:`${e}|${o}`}),""),r=Ka[e];return r?{bidder:Za,params:{publisherId:"160736",adSlot:r.web,keywords:Ya({p_standard:Ha()},n),outstreamAU:null!==(t=r.outstreamAU)&&void 0!==t?t:"",dctr:i,video:null!==(o=r.video)&&void 0!==o?o:""}}:null},instreamVideoParams:()=>({bidder:Za,params:{publisherId:"160736",adSlot:"independent_prebid_video_0x0_catchall"}})},Xa="rise",es="6448fc9664ef8b00016d7fe0",ts={bottom_banner_0:{org:es},bottom_mpu_1:{org:es},bottom_mpu_2:{org:es},bottom_mpu_3:{org:es},bottom_mpu_4:{org:es},bottom_mpu_5:{org:es},bottom_mpu_6:{org:es},bottom_mpu_7:{org:es},bottom_mpu_8:{org:es},bottom_mpu_9:{org:es},bottom_mpu_10:{org:es},mpu_bottom_sb:{org:es},mpu_bottom_sb_1:{org:es},mpu1:{org:es},mpu2:{org:es},mpu3:{org:es},mpu4:{org:es},mpu5:{org:es},blog_mpu_1:{org:es},blog_mpu_2:{org:es},blog_mpu_3:{org:es},blog_mpu_4:{org:es},blog_mpu_5:{org:es},blog_mpu_6:{org:es},thirdparty01:{org:es},thirdparty02:{org:es},top_banner:{org:es}},os="rubicon",ns={bottom_banner_0:{web:2969500},bottom_mpu_0:{web:2969502},bottom_mpu_1:{web:2969512},bottom_mpu_10:{web:2969514},bottom_mpu_2:{web:2969516},bottom_mpu_3:{web:2969518},bottom_mpu_4:{web:2969526},bottom_mpu_5:{web:2969528},bottom_mpu_6:{web:2969530},bottom_mpu_7:{web:2969532},bottom_mpu_8:{web:2969534},bottom_mpu_9:{web:2969536},gtl:{web:2969538},gtr:{web:2969540},mpu_bottom_sb:{web:2969644},mpu_bottom_sb_1:{web:2969648},mpu0:{web:2969650},mpu1:{web:2969652},mpu1_bottom:{web:2969756},mpu2:{web:2969758},mpu2_bottom:{web:2969760},mpu3:{web:2969762},mpu3_bottom:{web:2969764},mpu4:{web:2969766},mpu4_bottom:{web:2969768},mpu5:{web:2969770},mpu5_bottom:{web:2969772},mpu6:{web:2969646},blog_mpu_0:{web:2969726},blog_mpu_1:{web:2969728},blog_mpu_10:{web:2969730},blog_mpu_2:{web:2969732},blog_mpu_3:{web:2969734},blog_mpu_4:{web:2969736},blog_mpu_5:{web:2969738},blog_mpu_6:{web:2969740},blog_mpu_7:{web:2969742},blog_mpu_8:{web:2969744},blog_mpu_9:{web:2969746},thirdparty01:{web:2969748},thirdparty02:{web:2969750},top_banner:{web:2969752}},is="teads",rs={blog_mpu_0:{placementId:"176811",pageId:"162105"},blog_mpu_1:{placementId:"176811",pageId:"162105"},blog_mpu_2:{placementId:"176811",pageId:"162105"},blog_mpu_3:{placementId:"176811",pageId:"162105"},blog_mpu_4:{placementId:"176811",pageId:"162105"},blog_mpu_5:{placementId:"176811",pageId:"162105"},blog_mpu_6:{placementId:"176811",pageId:"162105"},blog_mpu_7:{placementId:"176811",pageId:"162105"},blog_mpu_8:{placementId:"176811",pageId:"162105"},blog_mpu_9:{placementId:"176811",pageId:"162105"},blog_mpu_10:{placementId:"176811",pageId:"162105"},mpu_bottom_sb:{placementId:"176812",pageId:"162106"},mpu_bottom_sb_1:{placementId:"176812",pageId:"162106"},mpu0:{placementId:"176811",pageId:"162105"},mpu1:{placementId:"191844",pageId:"176842"},mpu2:{placementId:"191845",pageId:"176843"},mpu3:{placementId:"191847",pageId:"176845"},mpu4:{placementId:"191851",pageId:"176849"},mpu5:{placementId:"191853",pageId:"176851"},thirdparty01:{placementId:"176811",pageId:"162105"},thirdparty02:{placementId:"176811",pageId:"162105"},top_banner:{placementId:"176812",pageId:"162106"},content:{placementId:"176811",pageId:"162105"}},as={blog_mpu_0:{placementId:"176811",pageId:"162105"},blog_mpu_1:{placementId:"176811",pageId:"162105"},blog_mpu_2:{placementId:"176811",pageId:"162105"},blog_mpu_3:{placementId:"176811",pageId:"162105"},blog_mpu_4:{placementId:"176811",pageId:"162105"},blog_mpu_5:{placementId:"176811",pageId:"162105"},blog_mpu_6:{placementId:"176811",pageId:"162105"},blog_mpu_7:{placementId:"176811",pageId:"162105"},blog_mpu_8:{placementId:"176811",pageId:"162105"},blog_mpu_9:{placementId:"176811",pageId:"162105"},blog_mpu_10:{placementId:"176811",pageId:"162105"},bottom_mpu_0:{placementId:"176811",pageId:"162105"},bottom_mpu_1:{placementId:"176812",pageId:"162106"},bottom_mpu_2:{placementId:"176812",pageId:"162106"},bottom_mpu_3:{placementId:"176812",pageId:"162106"},bottom_mpu_4:{placementId:"176812",pageId:"162106"},bottom_mpu_5:{placementId:"176812",pageId:"162106"},bottom_mpu_6:{placementId:"176812",pageId:"162106"},bottom_mpu_7:{placementId:"176812",pageId:"162106"},bottom_mpu_8:{placementId:"176812",pageId:"162106"},bottom_mpu_9:{placementId:"176812",pageId:"162106"},bottom_mpu_10:{placementId:"176812",pageId:"162106"},bottom_banner_0:{placementId:"176812",pageId:"162106"},mpu1:{placementId:"191842",pageId:"176840"},mpu2:{placementId:"191846",pageId:"176844"},mpu3:{placementId:"191850",pageId:"176848"},mpu4:{placementId:"191852",pageId:"176850"},mpu5:{placementId:"191854",pageId:"176852"},thirdparty01:{placementId:"176811",pageId:"162105"},thirdparty02:{placementId:"176811",pageId:"162105"},content:{placementId:"176811",pageId:"162105"}},ss="vidazoo",cs="exchange",ls={bottom_banner_0:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_1:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_2:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_3:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_4:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_5:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_6:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_7:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_8:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_9:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_10:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu_bottom_sb:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu_bottom_sb_1:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},thirdparty01:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},thirdparty02:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},top_banner:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_0:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_1:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_2:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_3:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_4:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_5:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_6:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu1:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu2:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu3:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu4:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu5:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},hero_player:{cId:"6540bf4ba66a190b5bdbdc3e",pId:"59ac17c192832d0011283fe3"}};function ds(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ps(t){for(var o=1;o{const t=qr(),o=ms[e];return o?{bidder:us,params:{placementId:parseInt(o.web),keywords:ps({p_standard:Ha()},t)}}:null},instreamVideoParams:()=>{const e=qr();return{bidder:us,params:{placementId:"24378050",keywords:ps({},e)}}}},_s="yieldmo",gs={bottom_mpu_1:{web:"3026860718759551104"},bottom_mpu_2:{web:"3026860719262867586"},bottom_mpu_3:{web:"3026860719522914435"},bottom_mpu_4:{web:"3026860719715852420"},bottom_mpu_5:{web:"3026860719900401797"},bottom_mpu_6:{web:"3026860720059785350"},bottom_mpu_7:{web:"3026860720235946119"},bottom_mpu_8:{web:"3026860720403718280"},bottom_mpu_9:{web:"3026860720621822089"},bottom_mpu_10:{web:"3026860719069929601"},mpu_bottom_sb:{web:"3026860718314954878"},mpu_bottom_sb_1:{web:"3026860718566613119"},mpu1:{web:"3026860720907034762"},mpu2:{web:"3026860721167081611"},mpu3:{web:"3026860721368408204"},mpu4:{web:"3026860721569734797"},mpu5:{web:"3026860721787838606"},mpu6:{web:"3026860722156937359"},blog_mpu_1:{web:"3026860722358263952"},blog_mpu_2:{web:"3026860722928689298"},blog_mpu_3:{web:"3026860723138404499"},blog_mpu_4:{web:"3026860723348119700"},blog_mpu_5:{web:"3026860723641720981"},blog_mpu_6:{web:"3026860723851436182"},blog_mpu_7:{web:"3026860724195369111"},blog_mpu_8:{web:"3026860725160059032"},blog_mpu_9:{web:"3026860726971998361"},blog_mpu_10:{web:"3026860722702196881"},bottom_banner_0:{web:"31120587"},top_banner:{web:"3026860717417373818"}};function fs(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function hs(t){for(var o=1;o{const{publisherId:o,siteId:n}=JSGlobals.ozone,i=qa[e];return i?{bidder:Ja,params:Va({publisherId:o,siteId:n,placementId:i.web,customData:[{targeting:Va(Va({},Fa),{},{tile:e,permutiveId:localStorage.getItem("permutive-id")})}]},t?{video:{skippable:!0,playback_method:["auto_play_sound_off"]}}:{})}:null},instreamVideoParams:()=>({bidder:Ja,params:{publisherId:"OZONEESI0001",placementId:"1500000130",siteId:"4204204237",keywords:Va({},Fa)}})},bs,Qa,ma,Ca,ea,Kr,{bidderName:_s,params:({id:e})=>{const t=gs[e];return t?{bidder:_s,params:{placementId:t.web,keywords:qr()}}:null}},{bidderName:os,params:({id:e})=>{const t=ns[e];return t?{bidder:os,params:{zoneId:t.web,accountId:17292,siteId:498704}}:null},instreamVideoParams:()=>({bidder:os,params:{accountId:17292,siteId:437942,zoneId:2510088}})},Wr,oa,Ba,{bidderName:is,params:({id:e})=>{const t=rs[e];return[...t?[{bidder:is,params:t,labelAny:[ka]}]:[],...as[e]?[{bidder:is,params:as[e],labelAny:[Sa]}]:[]]}},sa,Ua,{bidderName:Xa,params:({id:e})=>{const t=ts[e];return t?{bidder:Xa,params:{org:t.org}}:null},instreamVideoParams:()=>({bidder:Xa,params:{org:es}})},ga,{bidderName:ss,params:({id:e})=>{const t=ls[e];return t?{bidder:ss,params:{cId:t.cId,pId:t.pId,subDomain:cs}}:null},instreamVideoParams:()=>({bidder:ss,params:{cId:ls.hero_player.cId,pId:ls.hero_player.pId,subDomain:cs}})}],ys={buckets:[{max:3,increment:.02},{max:5,increment:.05},{max:20,increment:.5}]},vs=(e,t)=>{const o=(()=>{var e,t,o;const n=null===(e=JSGlobals)||void 0===e||null===(e=e.article)||void 0===e?void 0:e.isSport,i=null===(t=JSGlobals)||void 0===t||null===(t=t.article)||void 0===t?void 0:t.isTravel,r=null===(o=JSGlobals)||void 0===o||null===(o=o.prebid)||void 0===o?void 0:o.hasVideoSignal;let a;return r&&n&&(a=1),!r&&i&&(a=2),a})();return{code:e,mediaTypes:{video:hs({skip:1,playbackmethod:[2],pos:1,startdelay:0,placement:1,minbitrate:10,maxbitrate:9e3,context:"instream",playerSize:t,minduration:5,maxduration:30,mimes:["video/mp4","application/javascript","video/x-ms-wmv"],protocols:[1,2,3,4,5,6,7,8],api:[1,2,3,4,5],linearity:1},o&&{plcmt:o})}}},ks=[{id:"thirdparty01",sizes:Sr.THIRD_PARTY_ARTICLE_BODY,video:{context:"outstream",playerSize:[640,360],mimes:["video/mp4"]}},{id:"thirdparty02",sizes:Sr.THIRD_PARTY_ARTICLE_BODY,video:{context:"outstream",playerSize:[640,360],mimes:["video/mp4"]}},{id:"top_banner",sizes:Sr.TOP_BANNER},{id:"bottom_mpu_0",sizes:Sr.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_1",sizes:Sr.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_2",sizes:Sr.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_3",sizes:Sr.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_4",sizes:Sr.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_5",sizes:Sr.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_6",sizes:Sr.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_7",sizes:Sr.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_8",sizes:Sr.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_9",sizes:Sr.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_10",sizes:Sr.SINGLE_MPU_ONLY_MOBILE},{id:"gallery_mpu_sb",sizes:Sr.DOUBLE_MPU},{id:"gallery_mpu",sizes:Sr.DOUBLE_MPU},{id:"mpu_bottom_sb",sizes:Sr.MPU_BOTTOM_SB},{id:"mpu_bottom_sb_1",sizes:Sr.MPU_BOTTOM_SB},{id:"mpu0",sizes:Sr.DOUBLE_MPU_EXTRA_NOT_MOBILE},{id:"mpu1",sizes:Sr.DOUBLE_MPU_EXTRA},{id:"mpu2",sizes:Sr.DOUBLE_MPU_EXTRA_NOT_MOBILE},{id:"mpu3",sizes:Sr.DOUBLE_MPU_EXTRA_NOT_MOBILE},{id:"mpu4",sizes:Sr.SINGLE_MPU},{id:"mpu5",sizes:Sr.DOUBLE_MPU_EXTRA_NOT_MOBILE},{id:"mpu6",sizes:Sr.DOUBLE_MPU},{id:"bottom_banner_0",sizes:Sr.BOTTOM_BANNER},{id:"blog_mpu_0",sizes:Sr.SINGLE_MPU},{id:"blog_mpu_1",sizes:Sr.SINGLE_MPU},{id:"blog_mpu_2",sizes:Sr.SINGLE_MPU},{id:"blog_mpu_3",sizes:Sr.SINGLE_MPU},{id:"blog_mpu_4",sizes:Sr.SINGLE_MPU},{id:"blog_mpu_5",sizes:Sr.SINGLE_MPU},{id:"blog_mpu_6",sizes:Sr.SINGLE_MPU},{id:"blog_mpu_7",sizes:Sr.SINGLE_MPU},{id:"blog_mpu_8",sizes:Sr.SINGLE_MPU},{id:"blog_mpu_9",sizes:Sr.SINGLE_MPU},{id:"blog_mpu_10",sizes:Sr.SINGLE_MPU}],Ss=Object.freeze([[1,1],[245,210]].map((e=>e.join(",")))),Os=Object.freeze(["thirdparty01","thirdparty02"]),Ps=e=>{const t=e.getSizes().map((e=>e.getWidth&&e.getHeight?[e.getWidth(),e.getHeight()]:[1,1]));return{adSlotId:e.getSlotElementId(),size:t,adUnitPath:e.getAdUnitPath()}},Is=async e=>{apstag.init({pubID:"3579",adServer:"googletag",deals:!0});const t=(o=ks,null==(n=e)?void 0:n.filter((e=>o.find((t=>t.id===e.id)))));var o,n;if(!t.length)return;const i=new Promise((e=>{const o=(e=>e.filter((e=>!Os.includes(e.id))).map((e=>({slotID:e.id,sizes:[...new Set(ks.find((t=>t.id===e.id)).sizes.flatMap((e=>e.supportedSizes)).filter((e=>!Ss.includes(e.join(",")))))],slotName:e.getAttribute("data-ad-unit-path")}))))(t);apstag.fetchBids({slots:o},(t=>{ee("APS bids:",t),googletag.cmd.push((()=>{apstag.setDisplayBids(),e()}))}))})),r=new Promise((e=>{const o=t.map((e=>e.id));if(!window.pbjs)return console.warn("pbjs not defined, skipping"),void e();const n=window.matchMedia(Ur.w8).matches?ka:Sa;pbjs.que.push((()=>{pbjs.requestBids({labels:[n],timeout:1500,adUnitCodes:o,bidsBackHandler:()=>{t.forEach((e=>{pbjs.setTargetingForGPTAsync([e.id])})),e()}})}))})),a=new Promise((e=>{const t=__iasPET||{};t.queue=__iasPET.queue||[],t.pubId="931398",googletag.cmd.push((()=>{const o=googletag.pubads().getSlots().map(Ps);t.queue.push({adSlots:o,dataHandler:t.setTargetingForGPT}),e()}))}));await Promise.race([Promise.all([r,i,a]),new Promise((e=>setTimeout(e,2e3)))])},Es=(e,t)=>{const o=JSON.stringify({error:"Request has timed out"}),n=e?Vr(e.ratings):o,i=t?Jr(t).join(","):o;googletag.pubads().setTargeting("mantis",n),googletag.pubads().setTargeting("mantis_context",i)},js=()=>{JSGlobals.article&&googletag.pubads().setTargeting("article",JSGlobals.pageId.replace(/\D/g,""))},Ls=["refresh","hasRegGate"];function xs(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function As(t){for(var o=1;o{let{refresh:t,hasRegGate:o}=e,n=g(e,Ls);const i=localStorage.getItem("permutive-id"),r=location.pathname.startsWith("/tv/");(e=>{e&&window.googletag.pubads().setPublisherProvidedId(e.replace(/-/g,""))})(i),zr(As(As({},n),{},{adConfig:As({types:Sr},JSGlobals.adConfig),breakPoints:f,adLoadingBehaviourSettings:JSGlobals.adConfig||{},setTargeting:()=>{var e,n,r,a,s,c;"cookieDeprecationLabel"in navigator&&navigator.cookieDeprecationLabel.getValue().then((e=>{e&&googletag.pubads().setTargeting("chrome_facilitated_testing",e)})),googletag.pubads().setTargeting("pageType",JSGlobals.pageType),js(),Es(null===(e=JSGlobals)||void 0===e?void 0:e.mantis_channels,null===(n=JSGlobals)||void 0===n?void 0:n.mantis_context),(e=>{googletag.pubads().setTargeting("reg_gate",e?"1":"0")})(o),(e=>{if(googletag.pubads().getTargeting("permutive").length)return;const t=localStorage.getItem("_pdfps");googletag.pubads().setTargeting("permutive",t?JSON.parse(t):[]),e&&(window.googletag.pubads().setTargeting("puid",e),window.googletag.pubads().setTargeting("ptime",Date.now().toString()))})(i),(e=>{googletag.pubads().setTargeting("autorefresh",e?"yes":"no")})(t),googletag.pubads().setTargeting("gdpr",Y("gdpr","none")),(()=>{const e=JSGlobals.topictags||[];e.length&&googletag.pubads().setTargeting("topictags",e)})(),(()=>{var e;if(!window.location.search)return;const t=null===(e=new URLSearchParams(window.location.search).get("campaign-override"))||void 0===e?void 0:e.trim();t&&googletag.pubads().setTargeting("display_test",t)})(),s=null===(r=JSGlobals)||void 0===r?void 0:r.isLiveBlog,googletag.pubads().setTargeting("liveblog",s?"y":"n"),c=null===(a=JSGlobals)||void 0===a?void 0:a.isCommercial,googletag.pubads().setTargeting("commercial",c?"y":"n"),(()=>{const{page_previous_url:e}=digitalData;e&&googletag.pubads().setTargeting("referrer",e)})()},beforeSlotsDisplay:async({slotElems:e})=>{const t=r?null==e?void 0:e.filter((e=>"mpu1"!==(null==e?void 0:e.id))):e;n.prebidEnabled&&await Is(t)},beforeSlotRefresh:async({slotElem:e,slot:t})=>{r&&"mpu1"===(null==e?void 0:e.id)||(n.prebidEnabled&&await Is([e]),t.setTargeting("sovrn-reload","True"))},enableOutOfPageAd:!1}))};var Ts=o(442);const Cs=()=>{Promise.resolve().then((async()=>{if("serviceWorker"in navigator)try{await navigator.serviceWorker.register(`/${Ts.SW_FILENAME}`)}catch(e){console.error("Service Worker registration failed:",e)}else console.error("Service Worker is not supported by your browser")}))},$s=e=>{if(e.defaultPrevented)return;const{target:t}=e;["INPUT","TEXTAREA","SELECT","OPTION"].includes(null==t?void 0:t.tagName)||null!=t&&t.hasAttribute("contenteditable")||document.body.classList.add(A)},Ms=()=>{const e=()=>{document.body.classList.remove(A)};document.addEventListener("keydown",$s),document.addEventListener("mousedown",e);const t="ontouchstart"in window||void 0!==window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>0||void 0!==window.DocumentTouch;document.body.classList.toggle("mode-touch",t),document.addEventListener("ontouchstart",e);let o=!0;if(t){o=!1;const e=()=>{o||document.body.classList.add(x)};document.addEventListener("mousemove",e)}document.body.classList.toggle(x,o)},Ns=()=>{document.getElementsByClassName("instagram-media").length>0&&Ce("https://www.instagram.com/embed.js")},Bs=async e=>{const t=await(e=>{const t=window.apstag;t.init({pubID:"3579",deals:!0,adServer:"googletag",videoAdServer:"DFP"});const o={slots:[{slotID:e,mediaType:"video"}],timeout:5e3};return new Promise((function(e){t.fetchBids(o,(t=>{e(t)}))}))})(e),o=t.filter((t=>t.slotID===e))[0];return(null==o?void 0:o.targeting)||[]};function Rs(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function zs(t){for(var o=1;o{window.pbjs=window.pbjs||{};const i=window.pbjs,r=Pa(o,n);r.ortb2Imp={ext:{data:{jwTargeting:{playerID:t,mediaID:e}},marketplace:{allowedbidders:["pubmatic"]}}};const a={buckets:[{precision:2,min:0,max:3,increment:.01},{precision:2,min:3,max:8,increment:.05},{precision:2,min:8,max:20,increment:.5},{precision:2,min:20,max:35,increment:1}]};return new Promise((e=>{i.que.push((()=>{i.setConfig({cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"},mediaTypePriceGranularity:{video:a}}),i.addAdUnits(r),i.requestBids({adUnitCodes:[o],timeout:3e3,bidsBackHandler:()=>{e()}})}))}))},Gs=async(e,t,o,n,i,r)=>{const a=Pa(o,i),s=[Us(e,t,o,i),Bs(o)],[,c]=await Promise.all(s);return window.pbjs.adServers.dfp.buildVideoUrl(zs(zs({},r?{url:r}:{}),{},{adUnit:a,output:"vast",params:{iu:n,cust_params:c}}))},Vs=async(e,t,o,n)=>zs({hb_uuid:void 0,hb_cache_id:void 0},await(async()=>window.JSGlobals.prebidEnabled?(await Us(e,t,o,n),window.pbjs.getAdserverTargetingForAdUnitCode([o])):{})());class Js extends URL{constructor(e){super(e);const t=super.searchParams.get("cust_params")||"";this._custParams=new URLSearchParams(t||"")}get cust(){return this._custParams.toString()}set cust(e){this._custParams=new URLSearchParams(e||"")}get custParams(){return this._custParams}get search(){return super.searchParams.set("cust_params",this._custParams.toString()),super.searchParams.toString()}set search(e){super.search=e;const t=super.searchParams.get("cust_params")||"";this._custParams=new URLSearchParams(t||"")}toString(){return super.searchParams.set("cust_params",this._custParams.toString()),super.toString()}}const qs={};let Fs;const Hs=()=>Date.now()-Fs,Ws=e=>{const t=Hs();qs[e]=t,ee(`starting ${e} load @ ${t}`)},Ys=e=>{const t=Hs();ee(`finished ${e} load @ ${t}, duration ${t-qs[e]}`),delete qs[e]},Zs=e=>`__${e}__`,Ks=Zs("page-url"),Qs=Zs("timestamp"),Xs=Zs("gdpr"),ec=Zs("gdpr_consent"),tc=Zs("addtl_consent"),oc=()=>location.pathname.startsWith("/tv/"),nc=()=>{return oc()?"videohub":(null===(e=JSGlobals)||void 0===e||null===(e=e.pageId)||void 0===e?void 0:e.replace(/\D/g,""))||"";var e},ic=(e,t)=>{if((()=>{const e=window.innerWidth;return e/window.innerHeight<1&&e<768})()&&!(()=>{const e=document.querySelector(".video-top-container.video");return!(null==e||!e.classList.contains("sticky"))})()&&(e=>e.ima.ad.getVastMediaWidth()/e.ima.ad.getVastMediaHeight()<1)(t)){e.getContainer().classList.add("fullscreen"),e.isFullscreen=!0,e.originalHeight=e.getHeight(),e.resize("100%","100%")}},rc=()=>new URL(window.location).searchParams.get("ap")||0,ac=(e,t,o)=>{const n=t;return!o.includes(n)&&(e>=t&&(o.push(n),!0))},sc=(e,t,o,n="")=>{const i=t/4,r=ac(e,i,o),a=ac(e,2*i,o),s=ac(e,3*i,o),c=ac(e,t-.5,o);return ee(`${n} > ${r?1:0} ${a?1:0} ${s?1:0} ${c?1:0} ${e.toFixed(2)}:${t}`),r||a||s||c},cc=()=>({url:window.location.href,type:"web",domain:window.location.hostname,user_agent:navigator.userAgent}),lc=e=>!(!e||!window.JSGlobals.permutive),dc=e=>{const t=e.adtitle,o=e.adsystem;return{duration:(e=>{const t=String(e).split(":").map(parseFloat),o=t.pop();return Math.floor(t.reduce(((e,t)=>60*t+e),o))})(e.duration),advertiser_name:"",ad_system:o,description:"",universal_ad_id_registry:"",creative_id:"",ad_id:"",min_suggested_duration:30,title:t,universal_ad_id:"",deal_id:""}},pc=e=>{const t=e.mediaid,o=e.title,n=e.tags?e.tags.split(","):[],i=e.description,r=e.duration,a=e.updated_at,s=new Date(0);return s.setUTCSeconds(e.pubdate),{duration:r,name:o,custom_fields:[],video_id:t,description:i,tags:n,created_at:a,published_at:s}},uc=(e,t)=>{ee(`permutiveEventTracking ${e}`),window.permutive.track(e,t)},mc=e=>e.getPlaylistItem(e.getPlaylistIndex()),bc=e=>{var t,o,n;e.searchParams.set("sz","640x480"),e.searchParams.set("iu",JSGlobals.videoAdUnitPath),e.searchParams.set("impl","s"),e.searchParams.set("gdfp_req","1"),e.searchParams.set("ad_rule","0"),e.searchParams.set("env","vp"),e.searchParams.set("output","vast"),e.searchParams.set("unviewed_position_start","1"),e.searchParams.set("description_url",Ks),e.searchParams.set("correlator",Qs),e.searchParams.set("gdpr",Xs),JSGlobals.cmp.enabled&&(e.searchParams.set("gdpr_consent",ec),e.searchParams.set("addtl_consent",tc)),e.custParams.set("videoID",null===(t=JSGlobals)||void 0===t||null===(t=t.article)||void 0===t?void 0:t.heroMediaId),e.custParams.set("article",nc()),e.custParams.set("playerstate","hero"),e.custParams.set("topictags",(null===(o=JSGlobals)||void 0===o||null===(o=o.topictags)||void 0===o?void 0:o.join())||""),e.custParams.set("referrer",document.referrer.split("?")[0]),e.custParams.set("mantis",(null===(n=JSGlobals.mantis_channels)||void 0===n||null===(n=n.ratings)||void 0===n?void 0:n.length)&&Vr(JSGlobals.mantis_channels.ratings)),e.custParams.set("pixels",(()=>{var e;return null!==(e=JSGlobals.article)&&void 0!==e&&e.autoVideo?"video swapped"===JSGlobals.article.autoVideo?"swapped":"reset":""})()),e.custParams.set("permutive",JSON.parse(localStorage._pdfps||"[]").slice(0,250).join(",")),e.custParams.set("adpos",rc())};function _c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function gc(t){for(var o=1;o{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const o=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?o:3&o|8).toString(16)}))})(),uc("VideoLoad",{video:pc(t),play_id:this.playSessionId,auto_start:!1})),Ys("JWPlayerReady")},hc=function(){this.timeElapsed=[]},wc=async function({playReason:e}){var t;const o=null===(t=this.getConfig().advertising)||void 0===t?void 0:t.tag;if(o){const t=new Js(o);t.custParams.set("playerstate",this.getFloating()?"float":"hero"),"autostart"===e&&this.playAd(t.toString())}},yc=async function(){this.adTimeElapsed=[]},vc=function(){var e;(e=this).isFullscreen&&(e=>{e.getContainer().classList.remove("fullscreen"),e.isFullscreen=!1,e.resize("100%",e.originalHeight)})(e);const t=mc(this);lc(this.consent)&&uc("VideoPlay",{video:gc(gc({},pc(t)),{},{watch_count:1}),play_id:this.playSessionId,auto_start:!0})},kc=function(){const e=mc(this),t=this.playerNow.getTime();lc(this.consent)&&uc("VideoEvent",{timestamp:t,event:"PressedPause",video:gc(gc({},pc(e)),{},{watch_count:1}),play_id:this.playSessionId})},Sc=function(e){const t=mc(this);lc(this.consent)&&uc("VideoProgress",{seeked:!0,progress:e.offset,video:gc(gc({},pc(t)),{},{watch_count:1}),client:cc(),play_id:this.playSessionId})},Oc=function(e){const t=mc(this);sc(e.position,e.duration,this.timeElapsed,"video")&&lc(this.consent)&&uc("VideoProgress",{seeked:!1,progress:e.position,video:gc(gc({},pc(t)),{},{watch_count:1}),client:cc(),play_id:this.playSessionId})},Pc=function(e){ic(this,e)},Ic=function(e){if(sc(e.position,e.duration,this.adTimeElapsed,"ad")){const t=mc(this);lc(this.consent)&&uc("VideoAdProgress",{progress:e.position,video:gc(gc({},pc(t)),{},{watch_count:1}),ad:dc(e),play_id:this.playSessionId})}},Ec=function(e){const t=mc(this);lc(this.consent)&&uc("VideoAdPlay",{video:gc(gc({},pc(t)),{},{watch_count:1}),ad:gc(gc({},dc(e)),{},{description:"ad"}),play_id:this.playSessionId})},jc=function(e){var t;const o=mc(this),n=null===(t=e.ima)||void 0===t||null===(t=t.ad)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.clickThroughUrl,i=this.playerNow;lc(this.consent)&&uc("VideoAdClick",{video:gc(gc({},pc(o)),{},{description:n,watch_count:1,published_at:i}),ad:gc(gc({},dc(e)),{},{description:"ad"}),client:cc(),play_id:this.playSessionId})},Lc=function(e){const{adsManager:t,videoElement:o}=e,n=JSGlobals.adNetworkId,i=this.getWidth(),r=this.getHeight();if(n&&window.googleImaVansAdapter){const e={anId:n,campId:`${i}x${r}`,chanId:JSGlobals.videoAdUnitPath,placementId:"Open Auction",pubOrder:"Video",pubId:"Direct",pubCreative:"Default Creative"};window.googleImaVansAdapter.init(window.google,t,o,e)}},xc=function(){const e=rc();if(this.nextUrl){const t=new URL(this.nextUrl,window.location.origin);t.searchParams.set("ap",Number(e)+1),window.location.href=t.toString()}},Ac=()=>{var e;return null!==(e=JSGlobals.article)&&void 0!==e&&e.autoVideo?"video swapped"===JSGlobals.article.autoVideo:null},Dc=()=>{var e;const t="true"===Y(c)||null!==(e=JSGlobals.article)&&void 0!==e&&e.premium?"independent-premium":oc()?"videohub":"independent-regular";return{setTimeEvents:!0,isSwapped:!!Ac(),jwplayerSiteId:"g7SpqmnK",skin:{name:t}}};function Tc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Cc(t){for(var o=1;o{Ws("JWPlayerSetup");const i=jwplayer(e).setup(t);gi(jwplayer),i.nextUrl=o,i.isFullscreen=!1,i.consent=n||!1,i.playerNow=new Date,i.on("ready",fc),i.on("playlistItem",hc),i.on("beforePlay",wc),i.on("adRequest",yc),i.on("play",vc),i.on("pause",kc),i.on("seek",Sc),i.on("time",Oc),i.on("adImpression",Pc),i.on("adTime",Ic),i.on("adPlay",Ec),i.on("adClick",jc),i.on("adsManager",Lc),i.on("complete",xc),Ys("JWPlayerSetup")},Mc=e=>{document.querySelectorAll("[data-jwplayer]").forEach((async t=>{const o=t.id,n=t.dataset.jwplayerPlayerType,i=JSON.parse(t.dataset.jwplayerData),r=t.dataset.jwplayerNextUrl,a=t.dataset.adUnitCode,s=JSGlobals.videoAdUnitPath,l=JSGlobals.article.heroMediaId,d=(()=>{const e=new Js("https://pubads.g.doubleclick.net/gampad/ads");return bc(e),e})();d.custParams.set("playerType",n);const p=jwplayer(o).getConfig().autostart;d.custParams.set("vpa",p?"auto":"click");const u=!("true"===Y(c));if(u){const e=await(async(e,t,o,n)=>{const i=[pr(e,n),Bs(o),Vs(t,e,o,[640,480])];return(await Promise.allSettled(i)).reduce(((e,t)=>"fulfilled"===t.status?Cc(Cc({},e),t.value):(ne(t.reason),e)),{})})(o,l,a,s);Object.entries(e).forEach((([e,t])=>{d.custParams.set(e,t)}))}const m={client:"googima",outstream:!1,tag:d.toString(),autoplayadsmuted:!0};(e=>{const{consent:t}=e;lc(t)?permutive.readyWithTimeout($c.bind(void 0,e),"realtime",2500):$c(e)})({containerId:o,playerType:n,options:Cc(Cc(Cc({},i),Dc()),u&&{advertising:m}),nextUrl:r,consent:e})})),Ce(["https://static.adsafeprotected.com/vans-adapter-google-ima.js"])},Nc=async e=>{lc(e)&&ti(),"function"==typeof jwplayer?Mc(e):document.addEventListener("jwplayerLoaded",(()=>{Mc(e)}))},Bc=(()=>{const e="delay-hover";let t,o=null;return{watchMouseState(n){n.addEventListener("mouseenter",(()=>{t&&n.querySelector("ul")&&t.classList.remove(e)})),n.addEventListener("mouseleave",(()=>{n.querySelector("ul")&&(t=n,n.classList.add(e),clearTimeout(o),o=setTimeout((()=>t.classList.remove(e)),400))}))}}})();var Rc=o(3763);const zc=()=>{const e=document.querySelectorAll("[data-parallax]");e.length&&window.addEventListener("scroll",(function(){e.forEach((e=>{const t=e.getBoundingClientRect().top;if(!t||t>window.innerHeight)return;const o=(e=>{const t=window.innerHeight;let o=0;for(let t=e;t;t=t.offsetParent)o+=t.offsetTop;return o{const e=`https://${JSGlobals.staticHost}/iframe/native-cookiesync-frames.html`;(e=>{const t=document.createElement("iframe");Object.entries(e).forEach((([e,o])=>{t.setAttribute(e,o)})),document.body.appendChild(t)})(Gc(Gc({},$e),{},{src:e}))};var Jc=o(9678);function qc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Fc(t){for(var o=1;oSl.classList.contains("sticky"),El=e=>{Pl=!1,kl.classList.remove("show"),kl.onclick=null,vl.classList.remove("fullscreen"),pixels(e).resize("100%",Ol)},jl=(e,t)=>{yl&&!Il()&&(e=>{var t,o;const n=null==e||null===(t=e.ima)||void 0===t||null===(t=t.ad)||void 0===t||null===(t=t.g)||void 0===t?void 0:t.vastMediaWidth,i=null==e||null===(o=e.ima)||void 0===o||null===(o=o.ad)||void 0===o||null===(o=o.g)||void 0===o?void 0:o.vastMediaHeight;return!(!n||!i)&&n/i<1})(t)&&(Pl=!0,setTimeout((function(){kl.classList.add("show"),kl.onclick=El.bind(this,e)}),3e3),vl.classList.add("fullscreen"),Ol=pixels(e).getHeight(),pixels(e).resize("100%","100%"))},Ll=()=>{const e=(()=>{var e;return null!==(e=JSGlobals.article)&&void 0!==e&&e.autoVideo?"video swapped"===JSGlobals.article.autoVideo:null})();return null===e?"":"&pixels="+(e?"swapped":"reset")},xl=(e,t,o,n)=>{var i;let r,a="";if(a+=`videoID=${o}`,a+="&vpa="+(pixels(e).getConfig().autostart?"auto":"click"),a+=`&article=${null===(i=JSGlobals.pageId)||void 0===i?void 0:i.replace(/\D/g,"")}`,a+=`&playerType=${n}`,a+=`&topictags=${JSGlobals.topictags&&JSGlobals.topictags.join()}`,a+=((e={})=>{var t;return null!=e&&null!==(t=e.ratings)&&void 0!==t&&t.length?`&mantis=${Vr(e.ratings)}`:""})(JSGlobals.mantis_channels),a+=Ll(),a+=`&referrer=${digitalData.page_previous_url||""}`,al){a+=`&${`permutive=${encodeURIComponent(JSON.parse(localStorage._pdfps||"[]").slice(0,250).join(","))}`}`}var s;a+="&adpos=0",a+="&playerstate=hero",a+=`&${s=e,sr[s]||""}`,r=encodeURIComponent(a);try{const e=new URL(t),o=new URLSearchParams(e.search);t=o.has("cust_params")?""!==o.get("cust_params")?t.replace(/(cust_params[^&]+)/,`$1%26${r}`):t.replace(/(cust_params[^&]+)/,`$1${r}`):`${t}&cust_params=${r}`,o.has("ad_rule")||(t=`${t}&ad_rule=0`);const n=Y("gdpr","1");t+=`&gdpr=${n}`,"1"===n&&(t+=`&gdpr_consent=${Y("euconsent-v2","none")}`,t+=`&addtl_consent=${Y("addtl_consent","none")}`);const i=JSGlobals.videoAdUnitPath;i&&(t=t.replace(/(iu=).*?(&)/,`$1${(e=>{var t;if(null===(t=JSGlobals.article)||void 0===t||!t.isDugoutHero)return e;const o=e.split("/"),n=o[o.length-3];return o.splice(o.length-3,1,n),o.join("/")})(i)}$2`))}catch(e){}return(e=>{var t;if(null===(t=JSGlobals.article)||void 0===t||!t.isDugoutHero)return e;try{const t=new URL(e),o=new URLSearchParams(t.search);o.has("description_url")&&o.get("description_url").includes("dugout.com")&&(e=e.replace(/(description_url=).*?(&)/,"$1__page-url__$2"))}catch(e){}return e})(t)},Al=(e,t)=>e=e.replace(/(adpos%3D).*?(%26)/,`$1${t-1}$2`),Dl=e=>{const t=Il()?"float":"hero";return e=e.replace(/(playerstate%3D).*?(&)/,`$1${t}$2`)},Tl=(e,t)=>!pl.includes(t)&&(Math.floor(e)===t&&(pl.push(t),!0)),Cl=(e,t)=>!ml.includes(t)&&(Math.floor(e)===t&&(ml.push(t),!0)),$l=(e,t)=>{al&&(ee(`permutiveEventTracking ${e}`),window.permutive.track(e,t))},Ml=({containerId:e,options:t,defaultAdTag:o=""})=>{Ws("PixelsPlayerSetup"),pixels(e).setup(t),gi(pixels(e).getVideoPlayerInstance()),pixels(e).on("ready",(async()=>{Ws("PixelsPlayerReady"),il=al&&(()=>{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const o=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?o:3&o|8).toString(16)}))})(),Zc=pixels(e).getMediaId(),nl=o||pixels(e).getAdTag()||"",nl=xl(e,nl,Zc,fl),pixels(e).setAdTag(nl),ee("adTag:",nl),$l("VideoLoad",{video:{duration:Xc,name:Kc,custom_fields:[],video_id:Zc,description:Qc,tags:gl,created_at:el,published_at:tl},play_id:il,auto_start:!1}),Ys("PixelsPlayerReady")})),pixels(e).on("playlistItem",(function(){ul=!0,Wc=pixels(e).getPlaylistIndex(),Yc=pixels(e).getPlaylistItem(Wc),Zc=Yc.mediaid,Kc=Yc.title,""!==Yc.tags&&void 0!==Yc.tags&&(gl=Yc.tags.split(",")),Qc=Yc.description,Xc=Yc.duration,el=Yc.updated_at,tl=new Date(0),tl.setUTCSeconds(Yc.pubdate),ol=Math.floor(Xc/4),pl=[],ml=[],nl=Al(nl,dl),pixels(e).setAdTag(nl),dl+=1})),pixels(e).on("beforePlay",(async()=>{nl=Dl(nl),pixels(e).setAdTag(nl),ee("adTag:",nl),ul&&(pixels(e).trigger("wt:adReq",{adsRequest:{adTagUrl:nl}}),ul=!1)})),pixels(e).on("play",(function(){Pl&&El(),$l("VideoPlay",{video:{duration:Xc,name:Kc,custom_fields:[],video_id:Zc,description:Qc,tags:gl,watch_count:1,created_at:el,published_at:tl},play_id:il,auto_start:!0})})),pixels(e).on("pause",(function(){$l("VideoEvent",{timestamp:Hc.getTime(),event:"PressedPause",video:{duration:Xc,name:Kc,custom_fields:[],video_id:Zc,description:Qc,tags:gl,watch_count:1,created_at:el,published_at:tl},play_id:il})})),pixels(e).on("seek",(function(e){$l("VideoProgress",{seeked:!0,progress:e.offset,video:{duration:Xc,name:Kc,custom_fields:[],video_id:Zc,description:Qc,tags:gl,watch_count:1,created_at:el,published_at:tl},client:{url:window.location.href,type:"web",domain:window.location.hostname,user_agent:navigator.userAgent},play_id:il})})),pixels(e).on("time",(function(e){(Tl(e.position,ol)||Tl(e.position,2*ol)||Tl(e.position,3*ol)||Tl(e.position,Xc))&&$l("VideoProgress",{seeked:!1,progress:e.position,video:{duration:e.duration,name:Kc,custom_fields:[],video_id:Zc,description:Qc,tags:gl,watch_count:1,created_at:el,published_at:tl},client:{url:window.location.href,type:"web",domain:window.location.hostname,user_agent:navigator.userAgent},play_id:il})})),pixels(e).initPlaylistPrebidCallback((async t=>{const o=JSGlobals.videoAdUnitPath,n=o.split("/").pop();let i=await Gs(t,e,n,o,[640,480]);return i=xl(e,i,t,fl),i=Al(i,dl),i=Dl(i),i})),pixels(e).on("adImpression",(function(t){sl=t.adtitle,cl=t.clickThroughUrl,ll=t.adsystem,jl(e,t)})),pixels(e).on("adTime",(function(e){_l&&e.position>0&&(bl=parseInt(e.duration,10),rl=Math.floor(Xc/4),_l=!1),(Cl(e.position,rl)||Cl(e.position,2*rl)||Cl(e.position,3*rl)||Cl(e.position,bl))&&$l("VideoAdProgress",{progress:e.position,video:{duration:Xc,name:Kc,custom_fields:[],video_id:Zc,description:Qc,tags:gl,watch_count:1,created_at:el,published_at:tl},ad:{duration:bl,advertiser_name:"",ad_system:ll,description:"",universal_ad_id_registry:"",creative_id:"",ad_id:"",min_suggested_duration:30,title:sl,universal_ad_id:"",deal_id:""},play_id:il})})),pixels(e).on("adPlay",(function(){$l("VideoAdPlay",{ad:{duration:bl,advertiser_name:"",ad_system:ll,description:"ad",universal_ad_id_registry:"",creative_id:"",ad_id:"",min_suggested_duration:30,title:sl,universal_ad_id:"",deal_id:""},video:{duration:Xc,name:Kc,custom_fields:[],video_id:Zc,description:Qc,tags:gl,watch_count:1,created_at:el,published_at:tl},play_id:il})})),pixels(e).on("adClick",(function(){$l("VideoAdClick",{ad:{duration:bl,advertiser_name:"",ad_system:ll,description:"Ad",universal_ad_id_registry:"",creative_id:"",ad_id:"",min_suggested_duration:30,title:sl,universal_ad_id:"",deal_id:""},video:{name:sl,custom_fields:[],video_id:Zc,description:cl,tags:gl,watch_count:1,created_at:el,published_at:Hc},client:{url:window.location.href,type:"web",domain:window.location.hostname,user_agent:navigator.userAgent},play_id:il})})),pixels(e).on("adsManager",(function(e){const{adsManager:t,videoElement:o}=e,n=JSGlobals.adNetworkId;if(n&&window.googleImaVansAdapter){const e={anId:n,campId:`${hl}x${wl}`,chanId:JSGlobals.videoAdUnitPath,placementId:"Open Auction",pubOrder:"Video",pubId:"Direct",pubCreative:"Default Creative"};window.googleImaVansAdapter.init(window.google,t,o,e)}})),Ys("PixelsPlayerSetup")},Nl=e=>{const{containerId:t,options:o}=e;pixels(t).initPlayer(o.playerId,Ml.bind(void 0,e))},Bl=e=>{al?permutive.readyWithTimeout(Nl.bind(void 0,e),"realtime",2500):Nl(e)},Rl=async(e,t)=>{if(al=e&&window.JSGlobals.permutive,al&&ti(),"function"==typeof pixels){const e=document.querySelectorAll("script[data-pixels-player-uid]");for(let o=0;o{const t=e.detail.uid,o=e.detail.data;Bl({containerId:t,options:o})}))};let zl=!1;const Ul=async()=>{window.matchMedia(Ur.PJ).matches&&!zl&&(await Ce(["//cdn.mediavoice.com/nativeads/script/esi/esi-rr-collection.js"]),zl=!0)};const Gl=()=>`https://www.google.com/recaptcha/api.js?render=${(window.JSGlobals||{}).recaptureV3Key}`;let Vl=!1,Jl=!1;const ql=[],Fl='input[name="^"]',Hl=e=>{e.forEach((e=>{const t=e.querySelector(Fl);[...e.querySelectorAll('select,input[type="text"],input[type="password"],input[type="checkbox"],input[type="radio"]')].forEach((e=>e.addEventListener("change",(e=>async()=>{if(""!==e.value)return;const{action:t}=e.dataset,o=await window.grecaptcha.execute(JSGlobals.recaptureV3Key,{action:t});e.value=o})(t))))}))},Wl=()=>{const e=[...document.forms].filter((e=>e.querySelector(Fl))),t=async()=>{await(async()=>{Jl||(Vl?await new Promise((e=>{ql.push(e)})):(Vl=!0,await Ce([Gl()]),await new Promise((e=>{window.grecaptcha.ready(e)})),Jl=!0,ql.forEach((e=>e()))))})(),Hl(e)},o=new IntersectionObserver((e=>{e.some((e=>e.isIntersecting))&&(o.disconnect(),t())}));e.forEach((e=>o.observe(e)))},Yl=()=>{document.getElementsByClassName("reddit-embed-bq").length>0&&Ce("https://embed.reddit.com/widgets.js")};function Zl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Kl(t){for(var o=1;o{(({slot:e})=>{if(e.getSlotElementId()!==ed)return;const t=document.getElementById(ed),o=document.getElementById(F),n="true"===t.dataset.isVideo;od||(od=!0,n||!t||Te(){(({slot:e,size:t})=>{const o=document.getElementById("articleHeader");if(o){const n=e.getSlotElementId(),i=null!==t||void 0,r="true"===o.dataset.isVideo;if(n===nd&&r&&i){const e=document.getElementById("frameInner");o.style.marginRight="auto",o.style.marginLeft="auto",o.style.maxWidth="1000px",e.style.paddingTop="0px"}n===nd&&(o.style.backgroundColor="transparent")}})(e),(({slot:e})=>{if(e.getSlotElementId()!==ed)return;const t=document.getElementById(F);setTimeout((()=>{t.classList.remove(td)}),3e3)})(e)};var ad=o(2073);const sd=()=>{document.getElementsByClassName("tiktok-media").length>0&&Ce("https://www.tiktok.com/embed.js")},cd=()=>{window.twttr=function(e,t,o){let n,i=e.getElementsByTagName(t)[0],r=window.twttr||{};return e.getElementById(o)||(n=e.createElement(t),n.id=o,n.src="https://platform.twitter.com/widgets.js",i.parentNode.insertBefore(n,i),r._e=[],r.ready=function(e){r._e.push(e)}),r}(document,"script","twitter-wjs")},ld=()=>{const e=window.tp||[];return window.tp=e,e},dd=(...e)=>{ld().push(...e)};const pd=()=>{let e="";return window.tp=window.tp||[],(e=>{for(let t=1;t{switch(null==e?void 0:e.eventName){case"keep-spanish":Z(l,"Spanish",{days:90}),location.reload(!0);break;case"keep-english":Z(l,"English",{days:90})}}])),e},ud=async e=>{window.JSGlobals=window.JSGlobals||{mode:"development"};(async()=>{const t=window.tp||[];window.tp=t;const o=(()=>{try{const e=document.getElementById("piano-meta").innerText;return JSON.parse(e)}catch{return{}}})(),{tags:n=[]}=o,i=pd();if(i&&n.push(i),t.push(["addHandler","checkoutCustomEvent",e=>{if(e&&"offer-close-modal"===e.eventName){const e=document.getElementById("footerPrompt");e&&e.classList.add("hide")}}]),JSGlobals.isSection){const e=document.getElementsByClassName("newsletter-component")[0];if(e){const t=e.getAttribute("data-newsletter-key");t&&n.push(t.trim())}}try{Gi&&(t.push(["addHandler","meterExpired",e=>{"PremiumArticleMeter"===e.meterName&&(ee("PremiumArticleMeter expired"),Vi.resolve(!0))}]),t.push(["addHandler","meterActive",e=>{"PremiumArticleMeter"===e.meterName&&(ee("PremiumArticleMeter not expired"),Vi.resolve(!1))}])),t.push(["setCustomVariable","extendedAccessAllowed",String(Gi)]),t.push(["setCustomVariable","apvSegment",e])}catch(e){}finally{t.push(...Object.entries(o).map((([e,t])=>[`set${e.charAt(0).toUpperCase()}${e.slice(1)}`,t]))),t.push(["init",()=>{window.tp.enableGACrossDomainLinking()}]),window.tp=t}dd(["init",()=>{const e=ld();e.enableGACrossDomainLinking(),e.experience.init()}]),document.dispatchEvent(new CustomEvent(M))})();try{await Ce("https://www.npttech.com/advertising.js")}catch(e){document.cookie="__adblocker=true;path=/"}const t=e=>{""!==e.value?e.classList.add("input-has-value"):e.classList.remove("input-has-value")};document.querySelectorAll(".form-textfield, .form-select").forEach((e=>{t(e),e.addEventListener("change",(()=>{t(e)}))}))},md=()=>{const e=document.getElementById("standard-header-main");if(!e)return;const t=document.getElementById("indytv-link"),o=[...document.getElementsByClassName(S)],n=e=>{o.forEach(((t,o)=>{o!==e&&(t.classList.remove("primary-item__open"),t.querySelector(`.${I}`).setAttribute("aria-expanded","false"))}))};o.forEach(((e,t)=>{const o=e.querySelector(`.${P}`),i=document.createElement("button"),r=document.createTextNode(o.textContent);i.appendChild(r),i.classList.add(I),e.insertBefore(i,o),o.setAttribute("tabindex","-1"),i.addEventListener("click",(o=>{((e,t)=>{const o=e.classList.contains(O);e.classList[o?"remove":"add"](O),t.target.setAttribute("aria-expanded",o?"false":"true")})(e,o),n(t)})),i.addEventListener("focus",(()=>{n(t)}))})),t&&t.addEventListener("focus",(()=>{n(-1)})),document.getElementById("frameInner").addEventListener("click",n),e.addEventListener("click",n)},bd="",_d={"product-list":"PL","product-carousel":"C","product-price-comparison":"PC","product-body":"B","news-body":"B","product-verdict":"V","news-price-comparison":"PC"},gd="direct",fd="others",hd={search:[/google\.com$/i,/bing\.com$/i,/yahoo\.com$/i,/baidu\.com$/i,/yandex\.com$/i,/duckduckgo\.com$/i,/ask\.com$/i,/ecosia\.org$/i,/aol\.(com|co\.uk)$/i,/archive\.org$/i,/brave\.com$/i,/petal_search$/i],social:[/pinterest\.com$/i,/instagram\.com$/i,/facebook\.com$/i,/tiktok\.com$/i,/twitter\.com$/i],independent:[/independent/i]};function wd(e,t){const o=new URLSearchParams(e),{url:n,articleUrl:i,articleId:r,author:a,tags:s,section:c,category:l,subCategory:d,updatedDateTime:p}=t;n?o.set("q",n):o.has("q")||o.append("q",bd),i?o.set("p",i):o.has("p")||o.append("p",bd),r?o.set("article_id",r):o.has("article_id")||o.append("article_id",bd),a?o.set("author",a):o.has("author")||o.append("author",bd),s?o.set("tag",s):o.has("tag")||o.append("tag",bd),c?o.set("section",c):o.has("section")||o.append("section",bd),l?o.set("category",l):o.has("category")||o.append("category",bd),d?o.set("sub_category",d):o.has("sub_category")||o.append("sub_category",bd),p?o.set("updated_time",p):o.has("updated_time")||o.append("updated_time",bd);const{campaign:u,position:m,productName:b}=t,{locationUserAgent:_,locationReferrer:g,locationUtmSource:f}=t;u?o.set("utm_campaign",u):o.has("utm_campaign")||o.append("utm_campaign",bd),u&&m?o.set("utm_term",`${_d[u]}-${m}`):o.has("utm_term")||o.append("utm_term",bd),b?o.set("utm_content",b):o.has("utm_content")||o.append("utm_content",bd),_?o.set("utm_medium",_):o.has("utm_medium")||o.append("utm_medium",bd),g?o.set("ref",function(e){if(!e)return null;try{const{hostname:t}=new URL(e);return t}catch(t){return e}}(g)):o.has("ref")||o.append("ref",bd),g||f?o.set("utm_source",function(e){if(!e)return null;try{const{hostname:t}=new URL(e),[o]=Object.entries(hd).find((([e,o])=>o.some((e=>e.test(t)))));return o}catch(e){return console.warn(e),null}}(g)||f||g&&""!==g&&fd):o.has("utm_source")||o.append("utm_source",gd);const{fbclid:h,gclid:w}=t;return h?o.set("fbclid",h):o.has("fbclid")||o.append("fbclid",bd),w?o.set("gclid",w):o.has("gclid")||o.append("gclid",bd),o}var yd,vd,kd,Sd,Od;function Pd(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Id(t){for(var o=1;o{const e=new URL(document.location.href);return["callback","code","state"].every((t=>e.searchParams.has(t)))})(),jd=null!==(yd=Y(a))&&void 0!==yd?yd:b,Ld=jd===b,xd=JSGlobals.domain===u,Ad=JSGlobals.isSection,Dd=location.search.includes("live-browse"),Td=!Dd&&"premium"!==(null===(vd=window.digitalData)||void 0===vd?void 0:vd.user_status)&&(JSGlobals.article||JSGlobals.isSection)&&!(null!==(kd=JSGlobals.article)&&void 0!==kd&&kd.premium)&&!0!==(null===(Sd=JSGlobals.article)||void 0===Sd?void 0:Sd.sensitive),Cd=(!!Y(a)||"development"===window.JSGlobals.mode)&&Td&&window.JSGlobals.prebidEnabled;let $d,Md,Nd=!1,Bd=!1;if(!Ed)try{Gn()}catch(e){console.error("Analytics error caught: ",e)}const Rd=[Id({},Di("feat__no_amp")&&{initServiceWorker:Cs}),{checkAdBlocker:async()=>{Bd=await fi()}},Id(Id({},JSGlobals.domain!==m&&JSGlobals.isLiveBlog&&{initBrazeInAppMessageWithDelay:_i}),{},{getApvSegment:()=>{Md=(()=>{const e=localStorage.getItem("apv-segment")||oi,t=localStorage.getItem("apv-segment-date"),o=ni.getTodayDate();return t!==o&&(localStorage.setItem("apv-segment-date",o),setTimeout(ni.updateAPVSegment,0)),e})()},dotmetrics:!Ed&&(async()=>{var e;"us"!==Y(a)&&(window.dm=window.dm||{AjaxData:[]},window.dm.AjaxEvent=function(e,t,o,n){dm.AjaxData.push({et:e,d:t,ssid:o,ad:n}),window.DotMetricsObj&&DotMetricsObj.onAjaxDataUpdate()},null!==(e=JSGlobals)&&void 0!==e&&null!==(e=e.dotmetrics)&&void 0!==e&&e.sectionId&&await Ce([`https://uk-script.dotmetrics.net/door.js?id=${JSGlobals.dotmetrics.sectionId}`]))}),gtm:async()=>{Bd||Dd||await Xi()},chartbeat:!Ed&&(async()=>{if(!JSGlobals.chartbeat)return;const e=window.digitalData=window.digitalData||{},t=window._sf_async_config=window._sf_async_config||{};t.idSync=t.idSync||{},t.flickerControl=!1,t.useCanonical=!0,t.useCanonicalDomain=!0,t.autoDetect=!1,t.uid=JSGlobals.chartbeat.uid,t.title=JSGlobals.chartbeat.title,t.authors=JSGlobals.chartbeat.authors,t.sections=JSGlobals.chartbeat.sections,t.idSync.l=Y(r);const o=window._cbq=window._cbq||[];"premium"===e.user_status?o.push(["_acct","paid"]):"registered"===e.user_status?o.push(["_acct","lgdin"]):o.push(["_acct","anon"]),await Ce(["//static.chartbeat.com/js/chartbeat_video.js","//static.chartbeat.com/js/chartbeat_mab.js"]),await Ce(["https://static.chartbeat.com/js/subscriptions.js"]),document.dispatchEvent(new CustomEvent(R))}),permutive:!Ed&&(async()=>{try{if(!JSGlobals.permutive)throw new Error("No JSGlobals.permutive config");await(async()=>{const{workspaceId:e,organizationId:t}=JSGlobals.permutive;Vn(),await Ce([`https://${t}.edge.permutive.app/${e}-web.js`])})()}catch(e){throw Zn=!0,Kn.forEach((t=>t(e))),e}}),consent:{method:async()=>{$d=![b,_].includes(jd)||await di()},dependents:{permutive:!Ed&&(async()=>{Bd||await Xn($d,Y("euconsent-v2","none"))}),anonymised:Di("feat__anonymised")&&(async()=>{await Ce("//static.anonymised.io/light/loader.js",{id:"idward-plugin-js",attributes:[["idw_client_id","NDEx"],["idw_hide_button","true"]]})}),pubX:Di("feat__pubx_integration")&&(async()=>{await pi("654a71546725a6047bda1db7","pubX")&&Ce("https://cdn.pbxai.com/b5a8c20e-7642-44b9-82a5-8c896cbfc109.js")}),prebid:async()=>{Cd&&!Bd&&(await Ce([JSGlobals.manifest[Ld?"prebid.js":"prebid_non_uk.js"],"/js/third-party/aps.js"]),await Ea())},ias:mr,permutiveCookieSync:!Ed&&Vc,trackonomics:()=>{$d&&(()=>{var e,t;if(null!==(e=JSGlobals)&&void 0!==e&&null!==(e=e.article)&&void 0!==e&&e.isBest&&null!==(t=JSGlobals)&&void 0!==t&&null!==(t=t.trackonomics)&&void 0!==t&&t.customerId){const e=JSGlobals.trackonomics.customerId;Ce(`https://cdn-magiclinks.trackonomics.net/client/static/v2/${e}.js`,{attributes:[["id","funnel-relay-installer"],["data-property-id","PROPERTY_ID"],["data-customer-id",e]],async:!0})}})()}}}}),Id({gpt:!Bd&&Td&&(async()=>{await(async(e,t=!1)=>{await new Promise((o=>{setTimeout(o,3e3),Ds({refresh:Ad,slotRenderedCallback:id,slotLoadedCallback:rd,consent:e,prebidEnabled:Cd,hasRegGate:t,firstAdLoaded:()=>{Ys("first ad load")},allFirstScreenAdsLoaded:()=>{o()}})}))})($d,Nd)})},Di(d)&&{JWPlayer:async()=>{await Nc($d)},PixelsPlayer:async()=>{await Rl($d,Cd)}}),{registerWall:()=>{window.regWall={async initRegWall(e){document.body.dispatchEvent(new CustomEvent(N)),await(async()=>{const{manifest:e}=window.JSGlobals,t=e["react-archipelago.js"];document.querySelector(`script[src="${t}"]`)||await Ce(t)})(),await Ce(Xl),this.render(e)},initPianoTemplateRegWall:e=>{document.body.dispatchEvent(new CustomEvent(N)),document.getElementById("main").classList.add("limited-access-non-premium"),window.tp.template.show({templateId:e,displayMode:"inline",containerSelector:"#piano-register-wall"})}}},userStatus:async()=>{JSGlobals.userLogin&&await ud(Md)},regGate:!Dd&&JSGlobals.article&&xd&&(async()=>{Bd||(Nd=await new Promise((e=>{let t=!1;const o=o=>{t||(e(o),t=!0)},n=setTimeout((()=>{console.warn("Piano register wall experience failed to execute within 2 seconds, continuing with hasRegGate = false"),o(!1)}),2e3);window.tp.push(["addHandler","experienceExecute",async()=>{clearTimeout(n),o(!1)}]),document.body.addEventListener(N,(()=>{o(!0),clearTimeout(n)}))})))})},Id(Id({initComments:JSGlobals.userComments&&JSGlobals.article&&Li},!Di(d)&&{JWPlayer:async()=>{await Nc($d)},PixelsPlayer:async()=>{await Rl($d,Cd)}}),{},{initBookmark:xd&&JSGlobals.article&&ci,initCompetition:JSGlobals.userLogin&&JSGlobals.article&&xi,form:()=>{function e(e){if(e){e.querySelectorAll("input, select").forEach((e=>{e.addEventListener("change",(()=>{var t;(t=e).classList.remove("is-pristine"),t.classList.add("is-dirty")})),e.addEventListener("blur",(()=>{var t;(t=e).classList.remove("is-untouched"),t.classList.add("is-touched")}))}))}}e(document.querySelector(".reg-form")),e(document.querySelector(".login-form")),e(document.querySelector(".reg-login-form")),e(document.getElementById(G)),e(document.getElementById(V))},register:()=>{const e=document.getElementById("reg-form"),t=null==e?void 0:e.querySelector("#reg-form-_"),o=null==e?void 0:e.querySelector("#form-receive-offer"),n=null==e?void 0:e.querySelectorAll("[data-tracking-name]"),i=document.querySelector(".reg-login-form-wrapper"),r=document.getElementById("login-reg-form-email"),a=document.getElementById("login-reg-form-password"),s=null==i?void 0:i.querySelector(".form-submit"),c=document.getElementById("create-new-account-btn"),l=fe(h),d=((e,t=null)=>{var o;return new RegExp(`[\\?|\\&]${o=encodeURIComponent(e),o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}\\b`).test(t||window.location.href)})("premium");if(Object.values(l).filter(Boolean).length&&d&&(null==n||n.forEach((e=>e.addEventListener("focus",(({target:e})=>{const t=e.dataset.trackingName;((e={})=>{pe("focus_reg_subscription_field",e)})(Kl(Kl({},l),{},{name_form_field:`Subscription Funnel|Form Field details|${t}`}))}))))),e){const t=e.querySelector(".opt-out-policy-label"),n=e.querySelector(".opt-out-policy-container");t.addEventListener("click",(()=>{n.classList.toggle("open")})),null==o||o.addEventListener("change",(({target:{checked:e}})=>{((e={})=>{pe("marketing_opt",e)})(Kl(Kl({},l),{},{marketing_opt_in:e}))}))}const p=()=>{null==e||e.classList.remove("hide"),null==i||i.classList.add("hide")};null==c||c.addEventListener("click",p),null==r||r.addEventListener("input",(({target:{value:e,selectionStart:o}})=>{t.value=e,p(),function(e,t){if(e){const o=t||e.value.length;e.focus(),e.selectionStart=o,e.selectionEnd=o}}(t,o)})),null==a||a.addEventListener("input",(({target:{value:e}})=>{s.disabled=!(e||null!=r&&r.value)}))},recaptcha:()=>Wl(),delayMenuHoverState:()=>{document.querySelectorAll(".menu-navbar-item").forEach(Bc.watchMouseState)},persistentPlayer:()=>{const e="true"===Y(c),t=document.querySelector(".article-liveblog");if(e&&t){let e;const t=function(){window.matchMedia("(min-width: 1000px)").matches?e=(()=>{const e=document.querySelector(".video-top-container.video"),t=document.querySelector(".video-hero-wrapper"),o=document.querySelector(".js-sticky"),n=()=>{if(window.matchMedia("(min-width: 930px)").matches)if(e.getBoundingClientRect().top+window.scrollY<=window.scrollY+95){if(t.classList.contains("sticky-video"))return;t.classList.add("sticky-video"),o.classList.add("sticky-video")}else{if(!t.classList.contains("sticky-video"))return;t.classList.remove("sticky-video"),o.classList.remove("sticky-video")}};return window.addEventListener("scroll",n),window.addEventListener("orientationchange",n),n(),{dispose(){t.classList.remove("sticky-video"),window.removeEventListener("orientationchange",n)}}})():e&&e.dispose()};window.addEventListener("orientationchange",t),window.addEventListener("resize",Jc(t,100)),t()}else(()=>{var e;const t=document.querySelector(".video-top-container.video"),o=document.querySelector(".video-hero-wrapper"),n=document.querySelector("#video-popout-close"),i=null===(e=document.getElementById(J))||void 0===e||null===(e=e.firstElementChild)||void 0===e||null===(e=e.firstElementChild)||void 0===e?void 0:e.id;let r=2e4;(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<620&&(r=1e4);let a=750;const s=()=>{if(!o||!t||t.classList.contains("closed"))return;const{height:e,top:n}=o.getBoundingClientRect();a=n+e,a<=95?(o.style.height=`${o.clientHeight}px`,!t.classList.contains("sticky")&&t.classList.add("sticky")):(o.style.height=null,t.classList.contains("sticky")&&t.classList.remove("sticky"))},c=Jc(s,50);window.addEventListener("scroll",c),s(),n&&(n.addEventListener("click",(()=>{t.classList.add("closed")})),n.classList.contains("sensitive")?n.classList.add("shown"):setTimeout((()=>{n.classList.add("shown")}),r)),"undefined"!=typeof jwplayer&&i&&(jwplayer(i).on("autostartNotAllowed",(({error:e,reason:t,type:o})=>{ee("jwplayer autostartNotAllowed",e,t,o)})),jwplayer(i).on("error",(({code:e,message:t,sourceError:o,type:n})=>{ee("jwplayer error",e,t,o,n)})),jwplayer(i).on("warning",(({code:e,message:t,sourceError:o,type:n})=>{ee("jwplayer warning",e,t,o,n)})))})()},hardRefresh:Ad&&(()=>{let e;const t=()=>{he([er]),clearInterval(e),e=setTimeout((()=>{ge({[er]:!0}),window.location.href.includes("CMP=ILC-refresh")?window.location.href=location.href:window.location.href=function(e,t,o){o||(o=window.location.href);let n,i=new RegExp(`([?&])${e}=.*?(&|#|$)(.*)`,"gi");if(i.test(o))return null!=t?o.replace(i,`$1${e}=${t}$2$3`):(n=o.split("#"),o=n[0].replace(i,"$1$3").replace(/(&|\?)$/,""),void 0!==n[1]&&null!==n[1]&&(o+=`#${n[1]}`),o);if(null!=t){let i=-1!==o.indexOf("?")?"&":"?";return n=o.split("#"),o=`${n[0]+i+e}=${t}`,void 0!==n[1]&&null!==n[1]&&(o+=`#${n[1]}`),o}return o}("CMP","ILC-refresh",window.location.href)}),15e4)};document.addEventListener("keypress",t),document.addEventListener("click",t),document.addEventListener("mousemove",t),document.addEventListener("scroll",t),t()}),hideShowPassword:()=>{[...document.getElementsByClassName("js-hideshowpassword")].forEach(((e,t)=>{const o=document.createElement("a");Object.assign(o.style,{cursor:"pointer",height:"24px",position:"absolute",display:"inline-block",right:"13px",top:"15px",width:"24px"}),o.innerHTML=tr(`a-${t}`),e.parentElement.append(o),o.addEventListener("click",(()=>{var n;"password"===e.getAttribute("type")?(e.setAttribute("type","input"),o.innerHTML=``):(e.setAttribute("type","password"),o.innerHTML=tr(`a-${t}`))}))}))},login:()=>{document.querySelectorAll("#login-form .form-submit, #login-page-form .form-submit, #reg-login-form .form-submit").forEach((e=>e.addEventListener("click",(()=>{localStorage.removeItem("apv-segment"),localStorage.removeItem("apv-segment-date"),((e={})=>{pe("login_success",e)})()})))),document.querySelectorAll("[data-js-open-login-drawer]").forEach((e=>{e.addEventListener("click",(()=>{const t=e.getAttribute("data-reg-source-method")||"";ii(t)})),e.setAttribute("data-js-open-login-drawer-ready","")}));[...document.getElementsByClassName("subscribeLink")].forEach((e=>{e.addEventListener("click",(()=>(localStorage.setItem("regSourceMethod","Navigation"),!1)),!0)}))},googleSignIn:Fi,sticky:()=>{new ad(".js-sticky",{marginTop:16})},navbarScroll:()=>{const e=document.getElementById("leftButton"),t=document.getElementById("rightButton");let o,n,i=0;function r(){n===o.scrollWidth?t.style.display="none":t.style.display="block"}e&&t&&(o=e.previousElementSibling,n=o.clientWidth,r(),t.addEventListener("click",(function(){o.scrollTo({top:0,left:Math.min(i+=500,n),behavior:"smooth"}),o.style.marginLeft="16px",o.scrollLeft=i,o.scrollWidth===Math.floor(n+o.scrollLeft)&&(t.style.display="none"),e.style.display="block"})),e.addEventListener("click",(function(){o.scrollTo({top:0,left:Math.min(i-=500,n),behavior:"smooth"}),o.style.marginLeft="0",o.scrollLeft=i,0===o.scrollLeft&&(e.style.display="none"),t.style.display="block"})),window.addEventListener("resize",Rc((function(){n=o.clientWidth,r()}),100)))},scoreboard:async()=>{var e;document.querySelector("opta-widget")&&(await(e="//secure.widget.cloud.opta.net/v3/css/v3.football.opta-widgets.css",new Promise(((t,o)=>{const n=document.createElement("link");n.onload=t,n.onerror=o,n.rel="stylesheet",n.href=e,document.head.insertAdjacentElement("afterbegin",n)}))),await Ce("//secure.widget.cloud.opta.net/v3/v3.opta-widgets.js"),window.opta_settings={subscription_id:"7c085cc69a4c1938bf69f73e42b1be98",language:"en_GB",timezone:"Europe/London"})},stickyFooter:()=>{const e=document.querySelector(".sticky-ad-close-button-press");null==e||e.addEventListener("click",(()=>{document.getElementById("stickyFooterRoot").style.display="none"}))},locale:xd&&(()=>{[...document.querySelectorAll("[data-edition]")].forEach((e=>{e.addEventListener("click",(({currentTarget:e})=>{const t=e.getAttribute("data-edition");t&&Z("Locale",t,{hours:1}),K(l)&&Z(l,"English",{hours:1})}))}))}),populatePermutiveId:!Vc&&(async()=>{if(K("esi_auth")&&!(()=>{const e=Y("esi_permutive_id_saved");return null!=e&&""!==e&&"undefined"!==e})())try{const e=await ei();Le("profile/set-permutive-id",{permutiveID:e})}catch(e){return}}),visibleNav:md,priceComparisonEmbed:async()=>{var e;const{provider:t,lib:o}=(null===(e=JSGlobals)||void 0===e?void 0:e.priceComparisonEmbed)||{},n=document.getElementsByClassName(function(e){return`js-${e}-embed`}(t));if(t&&o&&0!==n.length)try{await Ce([o])}catch(e){ne("Price comparison embed libSrc failed",e)}},inputDetection:Ms,twitterWidgets:cd,facebookSDK:Ai,instagramEmbed:Ns,tiktokEmbed:sd,redditEmbed:Yl,parallax:zc,trackonomicsAffiliateLinks:()=>{const e=document.querySelectorAll('a[href^="https://clicks.trx-hub.com/xid/esimedia_t58ukgmjkf95_theindependent"]');null==e||e.forEach((e=>{const t=e.getAttribute("href"),o=document.referrer||bd,n=navigator.userAgent,i=new URLSearchParams(window.location.search).get("utm_source"),r=function(e,t){const o=new URL(e),n=wd(new URLSearchParams(o.search),t);return`${o.origin}${o.pathname}?${n.toString()}`}(t,{locationUserAgent:/mobile/i.test(n)?"mobile":"desktop",locationReferrer:o,locationUtmSource:i});e.setAttribute("href",r)}))}}),{googleSearch:async()=>{JSGlobals.cseId&&await Ci(JSGlobals.cseId)},taboola:!0!==(null===(Od=JSGlobals.article)||void 0===Od?void 0:Od.sensitive)&&(async()=>{if(!window.JSGlobals.taboola)return;Be.map((e=>document.getElementById(e.container))).length&&((()=>{const e=Ge();localStorage.setItem(De,e)})(),await(async()=>{await Je(),Ve()})())})},Id({polar:JSGlobals.article&&(()=>{Ul(),window.addEventListener("resize",Rc(Ul,500))})},JSGlobals.domain!==m&&window.location.pathname===p&&{initBrazePushPageNotifications:async()=>{var e;await mi()&&(braze.requestPushPermission(),null===(e=document.querySelectorAll(`.${$}`))||void 0===e||e.forEach((e=>{e.addEventListener("click",(()=>{braze.requestPushPermission()}))})))}}),{fullstory:()=>Ti($d)},{ready:()=>{document.documentElement.classList.add("indy-ready")}}],zd=e=>Object.keys(e).map((t=>async()=>{const o=e[t];if(o){Ws(t);try{if(o.method){if(await o.method(),Ys(t),o.dependents){const e=`${t} deps`;te(e),await i(zd(o.dependents)),oe(e)}}else await o(),Ys(t)}catch(e){console.warn(`Error caught in ${t}()`),console.error(e)}}}));(async()=>{for(let e=0;e