/*! For license information please see desktop.js.LICENSE.txt */ (()=>{var e={3995:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1169),i=n(8027),a=n(8680),s=n(323),c=n(1404),l=(r=c)&&r.__esModule?r:{default:r},u=n(3314);var d=n.g,p=d.Element,f=(p=void 0===p?{}:p).prototype,m=(f=void 0===f?{}:f).scrollIntoView,_=f.scrollIntoViewIfNeeded,h=d.scroll,g=d.scrollBy,E=d.scrollByLines,v=d.scrollByPages,y=d.scrollTo,w=function(){(0,s.dispatchCustomEvent)("scrollutilsblock")},I=function(e){(0,o.setClientPosition)(e.clientX,e.clientY),(0,o.updateMouseOverIframe)()},b=function(e,t){var n=function(){e.resetJudgement(),(0,o.updatePosition)()};(0,o.isInteracting)()?n():((0,o.updateScrollDirection)(),(0,o.updateMouseOverIframe)(),(0,o.isMouseOverIframe)()?n():(e.notify(),w(),(0,o.resetScroll)()))},S=function(){(0,o.isInteracting)()||(0,o.goingBack)()?(0,o.setHash)(n.g.location.hash):(w(),(0,i.goBack)(),(0,o.resetScroll)())};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.recursiveConsideration,r=(t=void 0===t?{}:t).frequency,c=void 0===r?2:r,d=t.timeout,p=void 0===d?500:d,f=e.recursiveInterventionThreshold,O=void 0===f?5:f,A=e.wheelInteractionTimeout,L=void 0===A?30:A,T=e.mouseupInteractionTimeout,C=void 0===T?30:T;if(void 0===n.g.pageYOffset||u.IS_SAFARI)return a.noop;var P=new l.default({intervene:function(){return(0,s.dispatchCustomEvent)("scrollutilsintervention")},interventionThreshold:O,frequency:c,timeout:p}),M=b.bind(null,P),N=a.Debouncer.debounce(o.endInteraction,L),R=a.Debouncer.debounce(o.endInteraction,C),D=function(e){var t=e.endWheelInteraction,r=e.endKeyMouseUpInteraction,i=e.monitoredScrollHandler,a=n.g.document,s=a.body,c=a.documentElement,l=[s,c],u=s.doScroll;return function e(){s.doScroll=u,n.g.Element.prototype.scrollIntoView=m,n.g.Element.prototype.scrollIntoViewIfNeeded=_,n.g.scroll=h,n.g.scrollBy=g,n.g.scrollByLines=E,n.g.scrollByPages=v,n.g.scrollTo=y,n.g.removeEventListener("scrollutilsintervention",e),n.g.removeEventListener("wheel",o.startInteraction,!0),n.g.removeEventListener("wheel",t,!1),n.g.removeEventListener("keydown",o.startInteraction,!0),n.g.removeEventListener("keyup",r,!0),n.g.removeEventListener("mousedown",o.startInteraction,!0),n.g.removeEventListener("mouseup",r,!0),n.g.removeEventListener("dragstart",o.startInteraction,!0),n.g.removeEventListener("dragend",o.endInteraction,!0),n.g.removeEventListener("scroll",i,!0),n.g.removeEventListener("touchstart",o.startInteraction,!0),n.g.removeEventListener("touchend",o.endInteraction,!0),n.g.removeEventListener("touchmove",i,!0),n.g.removeEventListener("mousemove",I,!1),n.g.removeEventListener("hashchange",S,!1);var a=!0,c=!1,d=void 0;try{for(var p,f=l[Symbol.iterator]();!(a=(p=f.next()).done);a=!0){var w=p.value;delete w.scrollTop,delete w.scrollLeft,w.scrollTop=(0,o.getScrollTop)(),w.scrollLeft=(0,o.getScrollLeft)()}}catch(e){c=!0,d=e}finally{try{!a&&f.return&&f.return()}finally{if(c)throw d}}}}({endWheelInteraction:N,endKeyMouseUpInteraction:R,monitoredScrollHandler:M});return(0,o.setHash)(n.g.location.hash),(0,o.updatePosition)(),function(e){var t=e.endWheelInteraction,r=e.endKeyMouseUpInteraction,a=e.monitoredScrollHandler,s=e.reenableWindowScrollMethods,c=n.g.document,l=c.body,u=[l,c.documentElement];l.doScroll=w,n.g.Element.prototype.scrollIntoView=w,n.g.Element.prototype.scrollIntoViewIfNeeded=w,n.g.scroll=h&&w,n.g.scrollBy=g&&w,n.g.scrollByLines=E&&w,n.g.scrollByPages=v&&w,n.g.scrollTo=w,n.g.addEventListener("scrollutilsintervention",s),n.g.addEventListener("wheel",o.startInteraction,!0),n.g.addEventListener("wheel",t,!1),n.g.addEventListener("keydown",o.startInteraction,!0),n.g.addEventListener("keyup",r,!0),n.g.addEventListener("mousedown",o.startInteraction,!0),n.g.addEventListener("mouseup",r,!0),n.g.addEventListener("dragstart",o.startInteraction,!0),n.g.addEventListener("dragend",o.endInteraction,!0),n.g.addEventListener("scroll",a,!0),n.g.addEventListener("touchstart",o.startInteraction,!0),n.g.addEventListener("touchend",o.endInteraction,!0),n.g.addEventListener("touchmove",a,!0),n.g.addEventListener("mousemove",I,!1),n.g.addEventListener("hashchange",S,!1);var d=function(e){Object.defineProperty(e,"scrollTop",{configurable:!0,get:function(){return(0,i.getScrollTop)(e)},set:w}),Object.defineProperty(e,"scrollLeft",{configurable:!0,get:function(){return(0,i.getScrollLeft)(e)},set:w})},p=!0,f=!1,m=void 0;try{for(var _,y=u[Symbol.iterator]();!(p=(_=y.next()).done);p=!0)d(_.value)}catch(e){f=!0,m=e}finally{try{!p&&y.return&&y.return()}finally{if(f)throw m}}}({endWheelInteraction:N,endKeyMouseUpInteraction:R,monitoredScrollHandler:M,reenableWindowScrollMethods:D}),D}},323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.dispatchCustomEvent=n.g.dispatchEvent?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.g,r=new n.g.CustomEvent(e);t.dispatchEvent(r)}:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.g,r=n.g.createEventObject();t.fireEvent("on"+r,r)}},416:(e,t,n)=>{"use strict";var r=n(3995);Object.defineProperty(t,"io",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}});var o=n(8027);Object.defineProperty(t,"gW",{enumerable:!0,get:function(){return o.createInteractionMethod}}),Object.defineProperty(t,"v_",{enumerable:!0,get:function(){return o.getScrollLeft}}),Object.defineProperty(t,"hY",{enumerable:!0,get:function(){return o.getScrollTop}}),Object.defineProperty(t,"hd",{enumerable:!0,get:function(){return o.setHash}}),Object.defineProperty(t,"ND",{enumerable:!0,get:function(){return o.setScrollLeft}}),Object.defineProperty(t,"LR",{enumerable:!0,get:function(){return o.setScrollTop}}),Object.defineProperty(t,"W2",{enumerable:!0,get:function(){return o.scroll}}),Object.defineProperty(t,"HN",{enumerable:!0,get:function(){return o.scrollBy}}),Object.defineProperty(t,"M$",{enumerable:!0,get:function(){return o.scrollByLines}}),Object.defineProperty(t,"Tw",{enumerable:!0,get:function(){return o.scrollByPages}}),Object.defineProperty(t,"VG",{enumerable:!0,get:function(){return o.scrollTo}}),Object.defineProperty(t,"PA",{enumerable:!0,get:function(){return o.scrollToElement}}),Object.defineProperty(t,"Dn",{enumerable:!0,get:function(){return o.scrollToElementIfNeeded}})},1404:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n=this.frequency?this.resetJudgement():this.stopTimer(),this.resetNum>=this.interventionThreshold&&(this.startOver(),this.intervene())}},{key:"stopTimer",value:function(){this.id=clearTimeout(this.id)}},{key:"resetJudgement",value:function(){this.id=clearTimeout(this.id),this.calls=0,this.resetNum++}},{key:"startOver",value:function(){this.resetJudgement(),this.resetNum=0}}]),e}();t.default=r},8027:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.goBack=t.setHash=t.scrollByPages=t.scrollByLines=t.scrollBy=t.scroll=t.doScroll=t.setScrollLeft=t.getScrollLeft=t.setScrollTop=t.getScrollTop=t.scrollToElementIfNeeded=t.scrollToElement=t.scrollTo=t.createInteractionMethod=void 0;var r=n(1169),o=n(8680);var i=n.g,a=i.Element,s=(a=void 0===a?{}:a).prototype,c=(s=void 0===s?{}:s).scrollIntoView,l=s.scrollIntoViewIfNeeded,u=s.doScroll,d=i.scroll,p=i.scrollBy,f=i.scrollByLines,m=i.scrollByPages,_=i.scrollTo,h=function(e){var t=n.g.document;return[t.body,t.documentElement].includes(e)},g=t.createInteractionMethod=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){for(var n=arguments.length,i=Array(n),a=0;a1?n-1:0),o=1;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.goingBack=t.resetScroll=t.setClientPosition=t.setPosition=t.updatePosition=t.updateMouseOverIframe=t.updateScrollDirection=t.getScrollLeft=t.getScrollTop=t.endInteraction=t.startInteraction=t.isMouseOverIframe=t.isInteracting=t.getHash=t.setHash=t.setHoveringOverIframe=void 0;var r=n(8027),o=n(8680),i={clientX:0,clientY:0,history:[],interacting:!1,loading:!0,mouseOverIframe:!1,scrollXDirection:0,scrollYDirection:0,scrollLeft:0,scrollTop:0},a=t.setHoveringOverIframe=function(e){i.mouseOverIframe=e},s=(t.setHash=function(e){i.history.push(e)},t.getHash=function(){return i.history[i.history.length-1]},t.isInteracting=function(){return i.interacting||i.loading},t.isMouseOverIframe=function(){return i.mouseOverIframe}),c=(t.startInteraction=function(){i.interacting=!0},t.endInteraction=function(){i.interacting=!1},t.getScrollTop=function(){return i.scrollTop},t.getScrollLeft=function(){return i.scrollLeft},function(e,t){switch(t){case 1:return e-1;case-1:return e+1;default:return e}}),l=function(e,t){return e>t?1:e{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.IS_SAFARI=/^((?!chrome|android).)*safari/i.test(n.g.navigator.userAgent)},8680:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n{var t;window,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=24)}([function(e,t,n){var r,o,i;i=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r0&&(o=o.replace(/^[\/]+/,"")),o=r0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=i():void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var l,u,d=typeof e;if("string"===d&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(e);if("number"===d&&isFinite(e))return t.long?(l=e,(u=Math.abs(l))>=i?c(l,u,i,"day"):u>=o?c(l,u,o,"hour"):u>=r?c(l,u,r,"minute"):u>=n?c(l,u,n,"second"):l+" ms"):function(e){var t=Math.abs(e);return t>=i?Math.round(e/i)+"d":t>=o?Math.round(e/o)+"h":t>=r?Math.round(e/r)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{const a=n||(Array.isArray(e)?[]:{});t.push(e);for(const[n,o]of Object.entries(e))"function"!=typeof o&&(o&&"object"==typeof o?t.includes(e[n])?a[n]="[Circular]":a[n]=i({from:e[n],seen:t.slice(),forceEnumerable:r}):a[n]=o);for(const{property:t,enumerable:n}of o)"string"==typeof e[t]&&Object.defineProperty(a,t,{value:e[t],enumerable:!!r||n,configurable:!0,writable:!0});return a};e.exports={serializeError:e=>"object"==typeof e&&null!==e?i({from:e,seen:[],forceEnumerable:!0}):"function"==typeof e?`[Function: ${e.name||"anonymous"}]`:e,deserializeError:e=>{if(e instanceof Error)return e;if("object"==typeof e&&null!==e&&!Array.isArray(e)){const t=new Error;return i({from:e,seen:[],to_:t}),t}return new r(e)}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(n,r,o){var i=e.call(this,n)||this;return Object.setPrototypeOf?Object.setPrototypeOf(i,t.prototype):i.__proto__=t.prototype,i.type=r,i.cause=o,i}return o(t,e),t}(Error);t.default=i},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]new Promise(((n,i)=>{t={onFailedAttempt:()=>{},retries:10,...t};const a=r.operation(t);a.attempt((async r=>{try{n(await e(r))}catch(e){if(!(e instanceof Error))return void i(new TypeError(`Non-error was thrown: "${e}". You should only throw errors.`));if(e instanceof o)a.stop(),i(e.originalError);else if(e instanceof TypeError)a.stop(),i(e);else{((e,t,n)=>{const r=n.retries-(t-1);e.attemptNumber=t,e.retriesLeft=r})(e,r,t);try{await t.onFailedAttempt(e)}catch(e){return void i(e)}a.retry(e)||i(a.mainError())}}}))}));e.exports=i,e.exports.default=i,e.exports.AbortError=o},function(e,t,n){e.exports=n(12)},function(e,t,n){var r=n(13);t.operation=function(e){var n=t.timeouts(e);return new r(n,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var r=[],o=0;o=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(void 0===n){if(!this._cachedTimeouts)return!1;this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),n=this._timeouts.shift()}var r=this,o=setTimeout((function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout((function(){r._operationTimeoutCb(r._attempts)}),r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)}),n);return this._options.unref&&o.unref(),!0},n.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){n._operationTimeoutCb()}),n._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},n.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},n.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,n=0,r=0;r=n&&(t=o,n=a)}return t}},function(e,t,n){"use strict";e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=void 0,o=void 0,i=void 0,a=[];return function(){var c=function(e){return"function"==typeof e?e():e}(t),l=(new Date).getTime(),u=!r||l-r>c;r=l;for(var d=arguments.length,p=Array(d),f=0;f0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0,s=n;try{s=JSON.parse(JSON.stringify(n))}catch(e){}return i.forEach((function(e){try{e.apply(void 0,s)}catch(e){t.logger.error(e,e.stack)}})),a},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=8;)((r=255&i>>>(a-=8))||c-2>n)&&(s+=String.fromCharCode(r));return s}(t):window.atob(t),r=new Uint8Array(n.length),o=0;o0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=n}(g)?[3,2]:(f("prompt_discarded",P({action:"discarded",permission:Notification.permission,type:"prompt"})),[3,11]);case 2:return"default"!==Notification.permission?[3,8]:(N=function(){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,M({action:"impression",permission:Notification.permission})];case 1:return n.sent(),[4,(0,c.requestPushPermissionAndSubscribe)({apiKey:a,appServerKey:p,metadata:m,registration:e,subscriptionEndpoint:h})];case 2:return t=n.sent(),[4,M({action:"click",permission:t})];case 3:return n.sent(),[2]}}))}))},"function"!=typeof v?[3,5]:[4,M({action:"pre_prompt_impression",permission:Notification.permission})]);case 3:return x.sent(),[4,new Promise((function(e){v((function(t){return o(void 0,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,M({action:"pre_prompt_click",permission:t?"granted":"denied"})];case 1:return n.sent(),t?[4,N()]:[3,3];case 2:n.sent(),n.label=3;case 3:return e(t),[2]}}))}))}))}))];case 4:return x.sent(),[3,7];case 5:return[4,N()];case 6:x.sent(),x.label=7;case 7:"localStorage"in window&&window.localStorage.setItem(t.LAST_PROMPT_EPOCH,JSON.stringify(Date.now())),x.label=8;case 8:return"granted"!==Notification.permission?[3,10]:[4,e.pushManager.getSubscription()];case 9:return R=x.sent(),D={subscription:R,type:"web-push-sw-subscription-ready"},e.active.postMessage(JSON.stringify(D)),(0,l.setStatus)("ready",m),[3,11];case 10:"default"===Notification.permission?(0,l.setStatus)("undecided",m):(0,l.clearStatus)(),x.label=11;case 11:return[3,13];case 12:return k=x.sent(),(0,d.default)(k,{emit:f,metadata:m,rawAppServerKey:E}),[3,13];case 13:return[2]}}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===e.length||t&&t0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=n(8226)},8427:(e,t,n)=>{"use strict";var r=n(4345),o=n(6435),i=n(5905),a=n(3025),s=n(3916),c=n(6135),l=n(6923),u=n(3201),d=n(5400),p=n(5220),f=n(733);e.exports=function(e){return new Promise((function(t,n){var m,_=e.data,h=e.headers,g=e.responseType;function E(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}r.isFormData(_)&&r.isStandardBrowserEnv()&&delete h["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(y+":"+w)}var I=s(e.baseURL,e.url);function b(){if(v){var r="getAllResponseHeaders"in v?c(v.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v};o((function(e){t(e),E()}),(function(e){n(e),E()}),i),v=null}}if(v.open(e.method.toUpperCase(),a(I,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=b:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(b)},v.onabort=function(){v&&(n(new d("Request aborted",d.ECONNABORTED,e,v)),v=null)},v.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,v,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,v)),v=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||l(I))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(h[e.xsrfHeaderName]=S)}"setRequestHeader"in v&&r.forEach(h,(function(e,t){void 0===_&&"content-type"===t.toLowerCase()?delete h[t]:v.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),g&&"json"!==g&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(m=function(e){v&&(n(!e||e&&e.type?new p:e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(m),e.signal&&(e.signal.aborted?m():e.signal.addEventListener("abort",m))),_||(_=null);var O=f(I);O&&-1===["http","https","file"].indexOf(O)?n(new d("Unsupported protocol "+O+":",d.ERR_BAD_REQUEST,e)):v.send(_)}))}},8226:(e,t,n)=>{"use strict";var r=n(4345),o=n(5063),i=n(9560),a=n(4816);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(6075));s.Axios=i,s.CanceledError=n(5220),s.CancelToken=n(5912),s.isCancel=n(6945),s.VERSION=n(9978).version,s.toFormData=n(4195),s.AxiosError=n(5400),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(8127),s.isAxiosError=n(8568),e.exports=s,e.exports.default=s},5912:(e,t,n)=>{"use strict";var r=n(5220);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t{"use strict";var r=n(5400);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(4345).inherits(o,r,{__CANCEL__:!0}),e.exports=o},6945:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},9560:(e,t,n)=>{"use strict";var r=n(4345),o=n(3025),i=n(546),a=n(1617),s=n(4816),c=n(3916),l=n(6552),u=l.validators;function d(e){this.defaults=e,this.interceptors={request:new i,response:new i}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!o){var d=[a,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(c),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var p=t;r.length;){var f=r.shift(),m=r.shift();try{p=f(p)}catch(e){m(e);break}}try{i=a(p)}catch(e){return Promise.reject(e)}for(;c.length;)i=i.then(c.shift(),c.shift());return i},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=c(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},5400:(e,t,n)=>{"use strict";var r=n(4345);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,s,c){var l=Object.create(i);return r.toFlatObject(e,l,(function(e){return e!==Error.prototype})),o.call(l,e.message,t,n,a,s),l.name=e.name,c&&Object.assign(l,c),l},e.exports=o},546:(e,t,n)=>{"use strict";var r=n(4345);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},3916:(e,t,n)=>{"use strict";var r=n(4860),o=n(7825);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},1617:(e,t,n)=>{"use strict";var r=n(4345),o=n(7638),i=n(6945),a=n(6075),s=n(5220);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4816:(e,t,n)=>{"use strict";var r=n(4345);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||i,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},6435:(e,t,n)=>{"use strict";var r=n(5400);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},7638:(e,t,n)=>{"use strict";var r=n(4345),o=n(6075);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},6075:(e,t,n)=>{"use strict";var r=n(4345),o=n(2327),i=n(5400),a=n(3201),s=n(4195),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,d={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(8427)),u),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||i&&"multipart/form-data"===a){var c=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,c&&new c)}return i||"application/json"===a?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(1685)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){d.headers[e]=r.merge(c)})),e.exports=d},3201:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},9978:e=>{e.exports={version:"0.27.2"}},5063:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(4345);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7825:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},5905:(e,t,n)=>{"use strict";var r=n(4345);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4860:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},8568:(e,t,n)=>{"use strict";var r=n(4345);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},6923:(e,t,n)=>{"use strict";var r=n(4345);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},2327:(e,t,n)=>{"use strict";var r=n(4345);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},1685:e=>{e.exports=null},6135:(e,t,n)=>{"use strict";var r=n(4345),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},733:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8127:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4195:(e,t,n)=>{"use strict";var r=n(4345);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,a){if(r.isPlainObject(i)||r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+a);n.push(i),r.forEach(i,(function(n,i){if(!r.isUndefined(n)){var s,c=a?a+"."+i:i;if(n&&!a&&"object"==typeof n)if(r.endsWith(i,"{}"))n=JSON.stringify(n);else if(r.endsWith(i,"[]")&&(s=r.toArray(n)))return void s.forEach((function(e){!r.isUndefined(e)&&t.append(c,o(e))}));e(n,c)}})),n.pop()}else t.append(a,o(i))}(e),t}},6552:(e,t,n)=>{"use strict";var r=n(9978).version,o=n(5400),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],s=t[a];if(s){var c=e[a],l=void 0===c||s(c,a,e);if(!0!==l)throw new o("option "+a+" must be "+l,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},4345:(e,t,n)=>{"use strict";var r,o=n(5063),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function c(e){return Array.isArray(e)}function l(e){return void 0===e}var u=s("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=s("Date"),m=s("File"),_=s("Blob"),h=s("FileList");function g(e){return"[object Function]"===i.call(e)}var E=s("URLSearchParams");function v(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var n=0,r=e.length;n0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:h}},6654:(e,t,n)=>{var r,o;!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),e.exports=i(),!!0){var a=window.Cookies,s=window.Cookies=i();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e{var r=n(2393),o=n(2049),i=n(7144),a=n(7452),s=n(3964);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(8942).Uint8Array;e.exports=r},6912:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},9968:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n{var r=n(7073),o=n(6285);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},3422:(e,t,n)=>{var r=n(7073),o=n(6285),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},7034:(e,t,n)=>{var r=n(6285);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7930:(e,t,n)=>{var r=n(9032),o=n(1211);e.exports=function(e,t){return e&&r(t,o(t),e)}},125:(e,t,n)=>{var r=n(9032),o=n(5288);e.exports=function(e,t){return e&&r(t,o(t),e)}},7073:(e,t,n)=>{var r=n(2532);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9334:(e,t,n)=>{var r=n(1340),o=n(9968),i=n(3422),a=n(7930),s=n(125),c=n(7099),l=n(4354),u=n(3546),d=n(4733),p=n(393),f=n(3650),m=n(8486),_=n(7350),h=n(424),g=n(5964),E=n(3142),v=n(5853),y=n(7681),w=n(1580),I=n(3943),b=n(1211),S=n(5288),O="[object Arguments]",A="[object Function]",L="[object Object]",T={};T[O]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[L]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[A]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,C,P,M,N){var R,D=1&n,k=2&n,x=4&n;if(C&&(R=M?C(t,P,M,N):C(t)),void 0!==R)return R;if(!w(t))return t;var U=E(t);if(U){if(R=_(t),!D)return l(t,R)}else{var B=m(t),j=B==A||"[object GeneratorFunction]"==B;if(v(t))return c(t,D);if(B==L||B==O||j&&!M){if(R=k||j?{}:g(t),!D)return k?d(t,s(R,t)):u(t,a(R,t))}else{if(!T[B])return M?t:{};R=h(t,B,D)}}N||(N=new r);var V=N.get(t);if(V)return V;N.set(t,R),I(t)?t.forEach((function(r){R.add(e(r,n,C,r,t,N))})):y(t)&&t.forEach((function(r,o){R.set(o,e(r,n,C,o,t,N))}));var G=U?void 0:(x?k?f:p:k?S:b)(t);return o(G||t,(function(r,o){G&&(r=t[o=r]),i(R,o,e(r,n,C,o,t,N))})),R}},9747:(e,t,n)=>{var r=n(1580),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},4570:(e,t,n)=>{var r=n(7170),o=n(5770)(r);e.exports=o},4661:(e,t,n)=>{var r=n(4570);e.exports=function(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}},5636:(e,t,n)=>{var r=n(6596)();e.exports=r},7170:(e,t,n)=>{var r=n(5636),o=n(1211);e.exports=function(e,t){return e&&r(e,t,o)}},7923:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},7379:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2478:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r{e.exports=function(e){return e}},195:(e,t,n)=>{var r=n(3766)(Object.keys,Object);e.exports=r},1393:(e,t,n)=>{var r=n(4570),o=n(6529);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},91:(e,t,n)=>{var r=n(1340),o=n(4810),i=n(5636),a=n(6885),s=n(1580),c=n(5288),l=n(8763);e.exports=function e(t,n,u,d,p){t!==n&&i(n,(function(i,c){if(p||(p=new r),s(i))a(t,n,c,u,e,d,p);else{var f=d?d(l(t,c),i,c+"",t,n,p):void 0;void 0===f&&(f=i),o(t,c,f)}}),c)}},6885:(e,t,n)=>{var r=n(4810),o=n(7099),i=n(2264),a=n(4354),s=n(5964),c=n(3283),l=n(3142),u=n(5406),d=n(5853),p=n(3655),f=n(1580),m=n(8360),_=n(8666),h=n(8763),g=n(4207);e.exports=function(e,t,n,E,v,y,w){var I=h(e,n),b=h(t,n),S=w.get(b);if(S)r(e,n,S);else{var O=y?y(I,b,n+"",e,t,w):void 0,A=void 0===O;if(A){var L=l(b),T=!L&&d(b),C=!L&&!T&&_(b);O=b,L||T||C?l(I)?O=I:u(I)?O=a(I):T?(A=!1,O=o(b,!0)):C?(A=!1,O=i(b,!0)):O=[]:m(b)||c(b)?(O=I,c(I)?O=g(I):f(I)&&!p(I)||(O=s(b))):A=!1}A&&(w.set(b,O),v(O,b,E,y,w),w.delete(b)),r(e,n,O)}}},3945:(e,t,n)=>{var r=n(2053),o=n(5234),i=n(796);e.exports=function(e,t){return i(o(e,t,r),e+"")}},3905:(e,t,n)=>{var r=n(5111);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},3997:e=>{e.exports=function(e){return e}},8898:(e,t,n)=>{var r=n(1623);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},7099:(e,t,n)=>{e=n.nmd(e);var r=n(8942),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},2264:(e,t,n)=>{var r=n(8898);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},4354:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n{var r=n(3422),o=n(7073);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,c=t.length;++s{var r=n(9032),o=n(7979);e.exports=function(e,t){return r(e,o(e),t)}},4733:(e,t,n)=>{var r=n(9032),o=n(5832);e.exports=function(e,t){return r(e,o(e),t)}},7848:(e,t,n)=>{var r=n(3945),o=n(4535);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r{var r=n(6529);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}},2532:(e,t,n)=>{var r=n(4715),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},4967:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},393:(e,t,n)=>{var r=n(3766)(Object.keys,Object);e.exports=r},3650:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4715:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},4784:(e,t,n)=>{var r=n(3766)(Object.getPrototypeOf,Object);e.exports=r},7979:e=>{e.exports=function(){return[]}},5832:e=>{e.exports=function(){return[]}},8486:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7350:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},424:e=>{e.exports=function(e){return e}},5964:(e,t,n)=>{var r=n(9747),o=n(4784),i=n(4882);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},4535:e=>{e.exports=function(){return!1}},4882:e=>{e.exports=function(){return!1}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,n)=>{var r=n(7034),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},7144:(e,t,n)=>{var r=n(7034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7452:(e,t,n)=>{var r=n(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964:(e,t,n)=>{var r=n(7034);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3766:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5234:(e,t,n)=>{var r=n(6912),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a{var r=n(4967),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},8763:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},796:e=>{e.exports=function(e){return e}},3029:(e,t,n)=>{var r=n(7642);e.exports=function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){if(--e<1)return t.apply(this,arguments)}}},149:(e,t,n)=>{var r=n(9032),o=n(7848),i=n(5288),a=o((function(e,t){r(t,i(t),e)}));e.exports=a},6108:(e,t,n)=>{var r=n(9334);e.exports=function(e){return r(e,5)}},6238:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t{var r=n(1580),o=n(4495),i=n(6131),a=Math.max,s=Math.min;e.exports=function(e,t,n){var c,l,u,d,p,f,m=0,_=!1,h=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function E(t){var n=c,r=l;return c=l=void 0,m=t,d=e.apply(r,n)}function v(e){var n=e-f;return void 0===f||n>=t||n<0||h&&e-m>=u}function y(){var e=o();if(v(e))return w(e);p=setTimeout(y,function(e){var n=t-(e-f);return h?s(n,u-(e-m)):n}(e))}function w(e){return p=void 0,g&&c?E(e):(c=l=void 0,d)}function I(){var e=o(),n=v(e);if(c=arguments,l=this,f=e,n){if(void 0===p)return function(e){return m=e,p=setTimeout(y,t),_?E(e):d}(f);if(h)return clearTimeout(p),p=setTimeout(y,t),E(f)}return void 0===p&&(p=setTimeout(y,t)),d}return t=i(t)||0,r(n)&&(_=!!n.leading,u=(h="maxWait"in n)?a(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),I.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=f=l=p=void 0},I.flush=function(){return void 0===p?d:w(o())},I}},4642:(e,t,n)=>{e.exports=n(3657)},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},4015:(e,t,n)=>{e.exports=n(149)},7581:(e,t,n)=>{var r=n(9847),o=n(4661),i=n(3334),a=n(3142);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},3657:(e,t,n)=>{var r=n(9968),o=n(4570),i=n(3997),a=n(3142);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},6123:(e,t,n)=>{var r=n(7923);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},2103:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},2053:e=>{e.exports=function(e){return e}},7526:(e,t,n)=>{var r=n(2478),o=n(6529),i=n(8138),a=n(7642),s=n(9817),c=Math.max;e.exports=function(e,t,n,l){e=o(e)?e:s(e),n=n&&!l?a(n):0;var u=e.length;return n<0&&(n=c(u+n,0)),i(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&r(e,t,n)>-1}},3283:e=>{e.exports=function(){return!1}},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,n)=>{var r=n(3655),o=n(5387);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},5406:(e,t,n)=>{var r=n(6529),o=n(547);e.exports=function(e){return o(e)&&r(e)}},5853:e=>{e.exports=function(){return!1}},3514:(e,t,n)=>{var r=n(195),o=n(8486),i=n(3283),a=n(3142),s=n(6529),c=n(5853),l=n(4882),u=n(8666),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},3655:(e,t,n)=>{var r=n(7379),o=n(1580);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7681:e=>{e.exports=function(){return!1}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8360:(e,t,n)=>{var r=n(7379),o=n(4784),i=n(547),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},3943:e=>{e.exports=function(){return!1}},8138:(e,t,n)=>{var r=n(7379),o=n(3142),i=n(547);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},8666:e=>{e.exports=function(){return!1}},1211:(e,t,n)=>{var r=n(3766)(Object.keys,Object);e.exports=r},5288:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},105:(e,t,n)=>{var r=n(5111),o=n(3334),i=n(1393),a=n(3142);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},2451:(e,t,n)=>{var r=n(91),o=n(7848)((function(e,t,n){r(e,t,n)}));e.exports=o},4495:(e,t,n)=>{var r=n(8942);e.exports=function(){return r.Date.now()}},7331:(e,t,n)=>{var r=n(2784),o=n(1580);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},7642:e=>{e.exports=function(e){return e}},6131:e=>{e.exports=function(e){return e}},4207:(e,t,n)=>{var r=n(9032),o=n(5288);e.exports=function(e){return r(e,o(e))}},9817:(e,t,n)=>{var r=n(3905),o=n(1211);e.exports=function(e){return null==e?[]:r(e,o(e))}},5934:function(e,t,n){var r,o;r=function(e){"use strict";var t,n,r,o,i=function(e){for(var t,n=1,r=arguments.length;n=0&&n<=c.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(a=n,!1!==r&&u(n),i.call(c,n,e),typeof console===t&&n{"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,i,a=[];for(i in"string"!=typeof t&&(t="?"),e)if(n.call(e,i)){if((r=e[i])||null!=r&&!isNaN(r)||(r=""),i=o(i),r=o(r),null===i||null===r)continue;a.push(i+"="+r)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var i=r(t[1]),a=r(t[2]);null===i||null===a||i in o||(o[i]=a)}return o}},8989:e=>{!function(t){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",l=t.regeneratorRuntime;if(l)e.exports=l;else{(l=t.regeneratorRuntime=e.exports).wrap=v;var u="suspendedStart",d="suspendedYield",p="executing",f="completed",m={},_={};_[a]=function(){return this};var h=Object.getPrototypeOf,g=h&&h(h(P([])));g&&g!==r&&o.call(g,a)&&(_=g);var E=b.prototype=w.prototype=Object.create(_);I.prototype=E.constructor=b,b.constructor=I,b[c]=I.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===I||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(E),e},l.awrap=function(e){return{__await:e}},S(O.prototype),O.prototype[s]=function(){return this},l.AsyncIterator=O,l.async=function(e,t,n,r){var o=new O(v(e,t,n,r));return l.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(E),E[c]="Generator",E[a]=function(){return this},E.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function v(e,t,n,r){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(e,t,n){var r=u;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=y(e,t,n);if("normal"===c.type){if(r=n.done?f:d,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=f,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function y(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function w(){}function I(){}function b(){}function S(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function O(e){function t(n,r,i,a){var s=y(e[n],e,r);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&o.call(l,"__await")?Promise.resolve(l.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(l).then((function(e){c.value=e,i(c)}),a)}a(s.arg)}var n;this._invoke=function(e,r){function o(){return new Promise((function(n,o){t(e,r,n,o)}))}return n=n?n.then(o,o):o()}}function A(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,A(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=y(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function P(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},2225:(e,t,n)=>{"use strict";var r=n(3062),o=n(1359),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(i,"")}var p=[["#","hash"],["?","query"],function(e,t){return _(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function m(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},i=typeof(e=e||r);if("blob:"===e.protocol)o=new g(unescape(e.pathname),{});else if("string"===i)for(t in o=new g(e,{}),f)delete o[t];else if("object"===i){for(t in e)t in f||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=s.test(e.href))}return o}function _(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function h(e,t){e=(e=d(e)).replace(a,""),t=t||{};var n,r=l.exec(e),o=r[1]?r[1].toLowerCase():"",i=!!r[2],s=!!r[3],c=0;return i?s?(n=r[2]+r[3]+r[4],c=r[2].length+r[3].length):(n=r[2]+r[4],c=r[2].length):s?(n=r[3]+r[4],c=r[3].length):n=r[4],"file:"===o?c>=2&&(n=n.slice(2)):_(o)?n=r[4]:o?i&&(n=n.slice(2)):c>=2&&_(t.protocol)&&(n=r[4]),{protocol:o,slashes:i||_(o),slashesCount:c,rest:n}}function g(e,t,n){if(e=(e=d(e)).replace(a,""),!(this instanceof g))return new g(e,t,n);var i,s,c,l,f,E,v=p.slice(),y=typeof t,w=this,I=0;for("object"!==y&&"string"!==y&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),i=!(s=h(e||"",t=m(t))).protocol&&!s.slashes,w.slashes=s.slashes||i&&t.slashes,w.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||u.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!_(w.protocol)))&&(v[3]=[/(.*)/,"pathname"]);I{},9371:()=>{},6527:()=>{},8839:()=>{},6989:(e,t,n)=>{var r=n(2496),o=n(9859),i=o;i.v1=r,i.v4=o,e.exports=i},3436:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},6825:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)3&t||(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},2496:(e,t,n)=>{var r,o,i=n(6825),a=n(3436),s=0,c=0;e.exports=function(e,t,n){var l=t&&n||0,u=t||[],d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==p){var f=i();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=o=16383&(f[6]<<8|f[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),_=void 0!==e.nsecs?e.nsecs:c+1,h=m-s+(_-c)/1e4;if(h<0&&void 0===e.clockseq&&(p=p+1&16383),(h<0||m>s)&&void 0===e.nsecs&&(_=0),_>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,c=_,o=p;var g=(1e4*(268435455&(m+=122192928e5))+_)%4294967296;u[l++]=g>>>24&255,u[l++]=g>>>16&255,u[l++]=g>>>8&255,u[l++]=255&g;var E=m/4294967296*1e4&268435455;u[l++]=E>>>8&255,u[l++]=255&E,u[l++]=E>>>24&15|16,u[l++]=E>>>16&255,u[l++]=p>>>8|128,u[l++]=255&p;for(var v=0;v<6;++v)u[l+v]=d[v];return t||a(u)}},9859:(e,t,n)=>{var r=n(6825),o=n(3436);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||o(a)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";n(8989)})(),(()=>{"use strict";var e={};n.r(e),n.d(e,{Deferred:()=>C,PubSub:()=>T,bus:()=>U,later:()=>x});var t={};n.r(t),n.d(t,{getArticleFeatures:()=>X,getPageCriteria:()=>Y,getPageMetadata:()=>H,getPaywallGeo:()=>q,setPageMetadata:()=>$});var r={};n.r(r),n.d(r,{default:()=>se,getLogger:()=>ae,log:()=>ie,logger:()=>J()});var o={};n.r(o),n.d(o,{getExperiments:()=>ke,getStickyNumber:()=>Re});var i={};n.r(i),n.d(i,{LocalStorage:()=>je,createLocalStorage:()=>Ve,getItem:()=>xe,removeItem:()=>Be,setItem:()=>Ue});var a={};n.r(a),n.d(a,{addArticleRead:()=>ze,addChannelCount:()=>Ye,getChannelCounts:()=>qe,isArticleInRead:()=>He});var s={};n.r(s),n.d(s,{manager:()=>Dn,reader:()=>Tn});var c={};n.r(c),n.d(c,{addInstance:()=>Jo,getConfig:()=>Ko,getInstances:()=>Yo,onAddInstance:()=>qo,onRemoveInstance:()=>Xo,removeInstance:()=>Zo,setConfig:()=>Fo});var l={};n.r(l),n.d(l,{loadDeferredImgs:()=>ai,loadScript:()=>si,loadStyle:()=>ti,onDocReady:()=>ci,scrollUtils:()=>di});var u={};n.r(u),n.d(u,{getHostname:()=>pi,getPathname:()=>fi});var d={};n.r(d),n.d(d,{getConfig:()=>mi});var p={};n.r(p),n.d(p,{config:()=>tn,contentReadingTracker:()=>ns,fireBidmaxTrackingEvent:()=>Ml,googleAnalytics:()=>Cl,moduleTracking:()=>pn,nielsen:()=>gn,pageEvents:()=>Tt,ted:()=>xo,waitForCMPDecision:()=>Ni,waitForCrossDomainReady:()=>Rl});var f={};n.r(f),n.d(f,{hideSpinner:()=>xl,initLoadingSpinner:()=>jl,showSpinner:()=>Ul});var m={};n.r(m),n.d(m,{after:()=>Gl(),clone:()=>Kl(),compact:()=>zl(),contains:()=>$l(),debounce:()=>ql(),each:()=>Zl(),extend:()=>Ql(),filter:()=>tu(),forEach:()=>ru(),get:()=>su(),has:()=>iu(),isEmpty:()=>lu(),isObject:()=>du(),keys:()=>fu(),map:()=>_u(),merge:()=>vu(),throttle:()=>gu()});var _={};n.r(_),n.d(_,{default:()=>Fu,deviceData:()=>yu,disableScroll:()=>Gu,enableScroll:()=>Vu,getMobileVersion:()=>ku,getZoom:()=>xu,isAndroid:()=>Lu,isAndroidPhone:()=>Mu,isAndroidStock:()=>Du,isAndroidTablet:()=>Nu,isChrome:()=>Tu,isFirefox:()=>Cu,isIDevice:()=>Su,isIPad:()=>Au,isIPhone:()=>Ou,isKindleSilk:()=>Pu,isLandscape:()=>Bu,isMobile:()=>Ru,isPortrait:()=>ju,isWindows:()=>bu,isZoomed:()=>Uu,onTouchEnd:()=>Ku,parseUserAgent:()=>Iu,setupMobileClass:()=>Wu});var h={};n.r(h),n.d(h,{checkVendorConsent:()=>Md,checkVendorConsentWithProfile:()=>Nd});var g={};n.r(g),n.d(g,{addCookieToReinforce:()=>jd,reinforceCookies:()=>Kd,removeCookieAndStopReinforcing:()=>Wd,setCookieAndReinforce:()=>Gd,stopReinforcingCookie:()=>Vd});var E={};n.r(E),n.d(E,{loaded:()=>wp,smartBanner:()=>vp});var v={};n.r(v),n.d(v,{replaceRelatedElement:()=>Bp});var y={};n.r(y),n.d(y,{listenToEvents:()=>Fp});var w={};n.r(w),n.d(w,{getCLSEntries:()=>Em,getLCPEntries:()=>gm,getStandard:()=>mm,getUpdated:()=>_m,webVitals:()=>hm});var I={};n.r(I),n.d(I,{init:()=>Cm});var b={};n.r(b),n.d(b,{init:()=>Jm,paywallUtils:()=>Qm});var S={};n.r(S),n.d(S,{extractArticleId:()=>o_,init:()=>a_,storeSignpostClick:()=>i_});var O={};n.r(O),n.d(O,{isProdDomain:()=>s_,retrieveXpModuleBody:()=>f_,retrieveXpModuleHeadJson:()=>d_});var A={};n.r(A),n.d(A,{init:()=>w_});var L={};n.r(L),n.d(L,{Log:()=>J(),Nielsen60:()=>gn,externalLinkTracker:()=>J_,getPageMetadata:()=>H,later:()=>x,loadCSS:()=>ti,loadDeferredImgs:()=>ai,log:()=>ie,molFeArticleRead:()=>a,molFeArticleTimestampChannel:()=>I,molFeAsync:()=>e,molFeClientLogger:()=>r,molFeCmpApi:()=>h,molFeComponents:()=>c,molFeContentReadingTracker:()=>A,molFeCookieReinforcer:()=>g,molFeDomHelpers:()=>l,molFeLoadingSpinner:()=>f,molFeLocalStorage:()=>i,molFeMiniLodash:()=>m,molFeMobileutils:()=>_,molFeMultivariant:()=>o,molFePageMetadata:()=>t,molFePaywallMasthead:()=>b,molFeRelatedReplace:()=>v,molFeRemixd:()=>y,molFeSegmentation:()=>s,molFeSmartBanner:()=>E,molFeSophiIntegration:()=>S,molFeTracking:()=>p,molFeWebVitals:()=>w,molFeXpModuleDataUtils:()=>O,onDocReady:()=>ci,pageEvents:()=>Tt,setPageMetadata:()=>$,ted:()=>xo,trackSwipe:()=>Q_});const T=class{constructor(){this.listeners=new Map}subscribe(e,t){if(!e)throw new Error('Missing required parameter "eventName"');if("function"!=typeof t)throw new Error('Parameter "handler" is not a function');return this.listeners.has(e)||this.listeners.set(e,[]),this.listeners.get(e).push(t),{unsubscribe:()=>this.unsubscribe(e,t)}}unsubscribe(e,t){if(!e)throw new Error('Missing required parameter "eventName"');if("function"!=typeof t)throw new Error('Parameter "handler" is not a function');if(this.listeners.has(e)){const n=this.listeners.get(e).filter((e=>e!==t));this.listeners.set(e,n)}}publish(e,...t){if(!e)throw new Error('Missing required parameter "eventName"');this.listeners.has(e)&&setTimeout((()=>{this.listeners.get(e).forEach((n=>n(e,...t)))}),0)}};const C=class{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}},P=function(e,t){return e.has(t)||e.set(t,new C),e.get(t)},M=new Promise((e=>{const t=document.querySelector("#mobile-content .scrollable-content article img");window.PageCriteria&&"article"===window.PageCriteria.pageType&&t?t.complete?e():(t.addEventListener("load",(()=>{e()})),t.addEventListener("error",e)):e()})),N=new Map,R=()=>{},D=function(e,t=R){if("function"!=typeof t)throw new Error('Parameter "callback" is not a function');if(!e)throw new Error('Missing required parameter "eventNames"');let n;if(n=Array.isArray(e)?e:[e],n.some((e=>"string"!=typeof e)))throw new Error('Required parameter "events" is not a string or an array of strings');const r=n.map((e=>P(N,e).promise));return Promise.all([...r,M]).then(t)},k=function(e){P(N,e).resolve()};if(D.go=k,window.DMPlaceholder&&window.DMPlaceholder.laterQueue&&window.DMPlaceholder.laterQueue.length)for(const e of window.DMPlaceholder.laterQueue)D(e.eventNames,e.callback);k("ads");const x=D,U=new T;let B={};const j="AU",V="US",G="CA",W="MX",K="NZ",F="GB",z="IE",H=function(e){return Object.assign({},B,e)},$=function(e){B=e,x.go("PAGE_METADATA_SET")},Y=function(){return Object.assign({},window.PageCriteria)},q=()=>{const{geo:e}=Y();return[F,z].includes(e)?F:[j,K].includes(e)?j:[V,G,W].includes(e)?V:"ROW"},X=function(){const e=[],{liveBlog:t,hasLiveBlogHeaderXpmodule:n,hasVideoHeroXpmodule:r,containsVideo:o,articleType:i}=window.PageCriteria;return t&&e.push("liveBlog"),n&&e.push("hasLiveBlogHeaderXpmodule"),r&&e.push("hasVideoHeroXpmodule"),o&&e.push("haseditorialplayer"),"chat"===i&&e.push("chat"),e.join(",")};var Z=n(5880),J=n.n(Z),Q=n(5934),ee=n.n(Q);const te=Object.keys(J().levels),ne=te.reduce(((e,t)=>(e[J().levels[t]]=t,e)),{}),re=function(e){const t=window.location.href,n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t)||[];try{return n&&n.length>1?decodeURIComponent(n[2].replace(/\+/g," ")):"object"==typeof localStorage?localStorage[e]:null}catch(e){}return null}("logLevel")||"",oe=Y().logLevel||"";ee().apply(J(),{nameFormatter:e=>e||"mol-fe",template:"[%n] %l:"}),J().setDefaultLevel(J().levels.ERROR),J().setLevel(J().levels.ERROR),te.includes(re.toUpperCase())?J().setLevel(re,!1):te.includes(oe.toUpperCase())&&J().setLevel(oe,!1),console.info(`Current log level: ${ne[J().getLevel()]}`),J().log=J().debug;const ie=J().log.bind(J()),ae=(...e)=>{const t=J().getLogger(...e);return t.setLevel(J().getLevel()),t},se=J();let ce=null,le=null,ue=null;const de=e=>{if(clearTimeout(ce),ce=null,ue&&(ue.style.display="none",ue=null),le=e.currentTarget,!le)return void J().error("No currentTarget on menuHover with event: ",e);le.children[0].classList.add("link-ccox");const t=le.querySelector(".nav-secondary-container");t?t.style.display="block":J().error("No secondary nav container on menuHover for currentTarget: ",le)},pe=e=>{le=e.currentTarget,le?(le.children[0].classList.remove("link-ccox"),ue=le.querySelector(".nav-secondary-container"),ue?ce=setTimeout((()=>{ue.style.display="none",ue=null,le=null}),500):J().error("No secondary nav container on menuUnHover for currentTarget: ",le)):J().error("No currentTarget on menuUnHover")};function fe(e){const{geo:t}=Y(),{renderPlatform:n}=H();if("GB"!==t||"desktop"!==n)return;const r=e.querySelector('li[class="games"] a');if(!r)return;const o=function(){const e=document.createElement("span");return e.classList.add("tag-new"),e.textContent="NEW",e}();r.appendChild(o)}x("DOM_READY",(()=>{const e=document.querySelector("div.page-header"),t=e.querySelectorAll("ul[data-logout-comp]"),n=e.querySelectorAll("ul[data-login-comp]");if(!e)return;window.DM.isLoggedIn?(t.forEach((t=>{t.style.display="block";const n=e.querySelector("ul.float-r a.js-logout");n&&n.addEventListener("click",(()=>{try{window.localStorage.removeItem("mol-fe-signin-tracking")}catch(e){}}))})),n.forEach((e=>{e.style.display="none"}))):(t.forEach((e=>{e.style.display="none"})),n.forEach((e=>{e.style.display="block"})));const r=e.querySelector("ul.nav-primary");if(!r)return;r.querySelectorAll("li[data-has-menu-on-hover]").forEach((e=>{e.addEventListener("mouseover",de,!1),e.addEventListener("mouseout",pe,!1),e.addEventListener("touchstart",de,!1),e.addEventListener("touchend",pe,!1)})),fe(r)}));var me=n(2225),_e=n.n(me);const he="mol-fe-came-from-mol-session",ge=()=>(e=>{try{if(!("localStorage"in window))return null;const t=window.localStorage.getItem(e);if(t)return JSON.parse(t)}catch(e){}return null})(he),Ee=e=>((e,t)=>{try{if(!("localStorage"in window))return;window.localStorage.setItem(e,JSON.stringify(t))}catch(e){}})(he,e),ve=()=>{const{renderPlatform:e}=H(),{subchannel:t}=Y();return`tim_${e}_${t}`},ye=(e,t)=>{const n=new(_e())(e,!0),r=n.query||{};return r.ico=t,n.set("query",r),n.href},we=e=>{const t=document.createElement("li"),n=ye(e,ve());return t.classList.add("back-to-mol-button"),t.innerHTML=``,t},Ie=/dailymail(int)?\.(co\.uk|com)/,be=async e=>{const{renderPlatform:t}=H(),n=document.querySelector(".page-header .masthead, .tim-mobile header");window.timCameFromMolUrl=(e=>{try{return ye(e,ve())}catch(t){return e}})(e),document.documentElement.classList.add("came-from-mol"),window.adverts||(window.adverts={}),window.adverts.queue||(window.adverts.queue=[]),window.adverts.queue.push({data:{referrer:"dailymail"},scope:"metadata"}),n||await x("DOM_READY"),"mobile"===t?(e=>{const t=Array.from(document.querySelectorAll(".tim-mobile header nav ul li"));if(!t||!t[1])return;const n=t[1],r=we(e);n.after(r)})(e):"desktop"===t&&(e=>{const t=document.querySelector(".page-header .masthead");if(!t)return;const n=we(e);t.append(n)})(e)},Se=()=>{const e=Array.from(document.querySelectorAll(['a[href*="www.thisismoney"][href*="ico=mol_"]:not([data-mutated-tim-url-param])','a[href*="www.thisismoney"][href*="ico=topics_pagination_"]:not([data-mutated-tim-url-param])','a[href*="www.thisismoney"][href*="ico=authors_pagination_"]:not([data-mutated-tim-url-param])'].join(", ")));for(const t of e){const e=t.getAttribute("href"),n=new(_e())(e,!0),r=n.query,o=`${r.ico}-newtab`;r.ico=o,r.molReferrerUrl=location.href,n.set("query",r),t.setAttribute("href",n.href),t.dataset.mutatedTimUrlParam=!0,t.target="_blank";const i=t.parentNode.querySelector(".comments-count > a:not([data-mutated-tim-url-param])");if(i){const e=i.getAttribute("href").split("#")[1];i.setAttribute("href",`${n.href}#${e}`),i.dataset.mutatedTimUrlParam=!0,i.target="_blank"}}setTimeout(Se,1e3)},Oe=()=>{const{domain:e}=H();"thisismoney"!==e&&Se()},Ae=()=>{const{domain:e}=H();if("thisismoney"!==e)return;const t=ge(),{updated:n,referrers:r,origin:o}=t||{},i=r&&document.referrer&&r.includes(document.referrer),a=r&&r.includes(location.href),s=o&&document.referrer&&document.referrer===o;if((i||a||s)&&n&&Date.now()-n<18e5){be(o);const e=a?r:[...r,location.href].slice(-50);return void Ee({...t,referrers:e,updated:Date.now()})}const c=new(_e())(window.location.href,!0),l=c&&c.query&&c.query.molReferrerUrl||document.referrer,u=l?new(_e())(l,!0):null,d=c&&c.query?c.query.ico:null;u&&u.hostname.match(Ie)&&d&&(d.startsWith("mol_")||d.startsWith("topics_pagination_")||d.startsWith("authors_pagination_"))&&(Ee({origin:l,referrers:[location.href],updated:Date.now()}),be(l))};try{x("PAGE_METADATA_SET",Ae),x("DOM_READY",Oe)}catch(e){J().error("Error initialising came-from-mol",e)}const Le={autoPuffNews:{criteriaCheck:e=>"desktop"===e.renderPlatform,percentage:.1},commerceArticleMailplus:{percentage:.2},googlePrompt:{criteriaCheck:e=>["AU"].includes(e.geo)||location.search.includes("debugGooglePrompt=true"),percentage:1},homepageArticleUI:{criteriaCheck:e=>"desktop"===e.renderPlatform||"mobile"===e.renderPlatform||location.search.includes("debugMV_homepageArticleUI"),percentage:.05,subSegments:["WithTimestamp","WithoutTimestamp"]},morePaywalledRelatedReplace:{criteriaCheck:()=>window.getIsPaywallEligible&&window.getIsPaywallEligible(),percentage:.05},scrollingNavVariant:{criteriaCheck:e=>"mobile"===e.renderPlatform&&!location.host.includes("thisismoney")&&("DE"===e.geo||!["GB"].includes(e.cljGeo)||location.search.includes("debugScrollingNavVariantGeoSkip")),percentage:.5}},Te="mol-fe-multivariant-",Ce=e=>{try{if(!("localStorage"in window))return null;const t=window.localStorage.getItem(`${Te}${e}`);if(t)return JSON.parse(t)}catch(e){}return null},Pe=1e6,Me="numbers",Ne=(e,t)=>{let n=Ce(Me);n&&"object"==typeof n||(n={}),n[e]=t,((e,t)=>{try{if(!("localStorage"in window))return;window.localStorage.setItem(`${Te}${e}`,JSON.stringify(t))}catch(e){}})(Me,n)},Re=e=>{if(!e)return console.error("[mol-fe-multivariant]","Tried to get sticky number for falsy experimentName"),null;const t=(e=>{try{const t=new URLSearchParams(location.search),n=`debugMV_${e}`,r=t.get(n);if(r)return Number(r)}catch(e){}return null})(e);if("number"==typeof t)return Ne(e,t),t;const n=(e=>{const t=Ce(Me);return t&&"object"==typeof t&&"number"==typeof t[e]?t[e]:null})(e);if("number"==typeof n)return n;const r=Math.floor(Math.random()*Pe);return Ne(e,r),r};let De=null;const ke=(e=null)=>{const{renderPlatform:t}=e||H(),{cljGeo:n,geo:r}=e||Y(),o={cljGeo:n,geo:r,renderPlatform:t};if(!De){De=[];const e=Object.keys(Le);for(const t of e){const{criteriaCheck:e,percentage:n,subSegments:r}=Le[t];if(!e||Boolean(e(o))){const e=Re(t),o=r?r.length:1,i=Pe*n*o;if(e=i&&e{try{if(!("localStorage"in window))return null;const t=window.localStorage.getItem(e);if(t)return JSON.parse(t)}catch(e){J().error(e)}return null},Ue=(e,t)=>{try{if(!("localStorage"in window))return;window.localStorage.setItem(e,JSON.stringify(t))}catch(e){J().error(e)}},Be=e=>{try{if(!("localStorage"in window))return;window.localStorage.removeItem(e)}catch(e){J().error(e)}};class je{constructor(e){this.namespace=e,this.getItem=this.getItem.bind(this),this.setItem=this.setItem.bind(this),this.removeItem=this.removeItem.bind(this),this.clear=this.clear.bind(this)}getItem(e){return xe(`${this.namespace}${e}`)}setItem(e,t){return Ue(`${this.namespace}${e}`,t)}removeItem(e){return Be(`${this.namespace}${e}`)}clear(){try{if(!("localStorage"in window))return;Object.keys(window.localStorage).filter((e=>e.startsWith(this.namespace))).forEach((e=>window.localStorage.removeItem(e)))}catch(e){J().error(e)}}}const Ve=e=>new je(e),Ge=Ve("mol-fe-article-read-"),We=e=>Ge.getItem(e),Ke=(e,t)=>Ge.setItem(e,t),Fe="articles",ze=e=>{const t=Number(e),n=We(Fe)||[];if(n.includes(t))return;let r=[...n,t];r.length>100&&(r=r.slice(r.length-100)),Ke(Fe,r)},He=e=>Boolean((We(Fe)||[]).includes(Number(e))),$e="channels",Ye=e=>{const t=We($e)||{};t[e]=(t[e]||0)+1,Ke($e,t)},qe=()=>We($e)||{},Xe="topics",Ze=e=>{const t=((e,t)=>{const n=new Set(t),r=Object.entries(e).map((([e,t])=>{const r=n.has(e)?1:0;n.delete(e);const o=t*(1-(e.startsWith("commerce")?.05:.1))+r;return[e,Math.floor(1e3*o)/1e3]}));return n.forEach((e=>{r.push([e,1])})),r.sort(((e,t)=>t[1]-e[1])).slice(0,1e3).reduce(((e,[t,n])=>(e[t]=n,e)),{})})(We(Xe)||{},e);Ke(Xe,t)},Je=()=>{try{const e=Y();if("article"!==e.pageType)return;const{articleId:t,channel:n}=e,{topics:r}=H();ze(Number(t)),Ye(n),Ze(r)}catch(e){J().error("Error initialising mol-fe-article-read",e)}};try{x("PAGE_METADATA_SET",Je)}catch(e){J().error("Error initialising mol-fe-article-read",e)}var Qe=n(6660),et=n.n(Qe);const tt="/api/mol-fe-feeds/v2/articles/rankedForAutoPuff",nt={AU:"/auhome",GB:"/home",US:"/ushome"},rt=async({channel:e=null,isUKHome:t=!1}={})=>{try{let n=e&&"string"==typeof e?(e=>`/api/mol-fe-feeds/v2/articles/rankedPaywalled/channel/${e}/withXpModules/true/geo/${q()}`)(e):`/api/mol-fe-feeds/v2/articles/rankedPaywalled/withXpModules/true/geo/${q()}`;t&&(n=`${tt}/geo/gb/paywalledOnly/true`);const r=await et().get(n);if(!r||!r.data||!r.data.articles)return[];const{articles:o}=r.data,i=t?o:o.filter((e=>!He(e.articleId)));return i.length>=15?i:o}catch(e){J().error("Error fetching paywalled articles for autopuff",e)}return[]},ot=async()=>{const{articleId:e,geo:t}=Y(),n=`/api/mol-fe-feeds/v2/articles/rankedByChannel/sport/geo/${q()}/period/30/size/150`,r=await et().get(n);if(!r||!r.data||!r.data.articles)throw new Error("[mol-fe-auto-puff] Invalid sports ranked articles response");const{articles:o}=r.data;return o.filter((n=>!He(n.articleId)&&n.articleId!==e&&!((e,t)=>t.subChannel&&"AFL"===t.subChannel&&"AU"!==e)(t,n)))},it=[4,6,8],at=async({isUKHome:e=!1,isGolden:t=!1}={})=>{const{articleId:n,cljGeo:r,geo:o}=Y(),{domain:i,environment:a}=H(),s="thisismoney"===i?`https://www.dailymail${"production"===a?"":"int"}.co.uk`:"";let c=`${s}/api/mol-fe-feeds/v2/articles/rankedByChannelReferrer${`${nt[o]||nt.GB}/withXpModules/true`}`;e&&(c=`${s}${tt}/geo/gb`),t&&(c=`${s}/api/mol-fe-feeds/v2/articles/rankedGoldenMetric/geo/${r.toLowerCase()}`);const l=await et().get(c);if(!l||!l.data||!l.data.articles)throw new Error("[mol-fe-auto-puff] Invalid ranked articles response");const{articles:u}=l.data;if(!e)return u.filter((e=>!He(e.articleId)&&e.articleId!==n)).slice(0,50);let d=u.filter((e=>Date.now()-new Date(e.firstPubDate).getTime()<18e6)).slice(0,5);d.length<5&&(d=u.slice().sort(((e,t)=>new Date(e.firstPubDate).getTime()-new Date(t.firstPubDate).getTime())).slice(0,5));const p=d.map((e=>e.articleId)),f=u.filter((e=>!p.includes(e.articleId)));let m=f.filter((e=>Date.now()-new Date(e.firstPubDate).getTime()<432e5)).slice(0,10);m.length<10&&(m=f.slice().sort(((e,t)=>new Date(e.firstPubDate).getTime()-new Date(t.firstPubDate).getTime())).slice(0,10));const _=m.map((e=>e.articleId)),h=f.filter((e=>!_.includes(e.articleId))),g=[...d,...m,...h].slice(0,100);try{const e=`${s}/api/mol-fe-feeds/v2/articles/recentForAutoPuff/geo/gb`,t=await et().get(e),{articles:n}=t.data,r=g.map((e=>e.articleId));if(n){const e=n.filter((e=>!r.includes(e.articleId)));let t=0;for(const n of it)e[t]&&g[n]&&(g.splice(n,0,e[t]),t++)}}catch(e){J().error("Error fetching recent articles for autopuff",e)}return g},st={autoPuffRecNewUsers:"newUsers",autoPuffRecRetention:"retention",autoPuffRecRetentionViews:"retentionViews",autoPuffRecSubscriptions:"subscriptions"},ct=async({autoPufRecExperimentSegment:e})=>{const{cljGeo:t}=Y(),n=(t||"GB").toLowerCase(),r=st[e];if(!r)throw new Error("Invalid Valent experiment segment");const o=`/api/mol-fe-feeds/v2/articles/rankedValent/${r}/geo/${n}`,i=await et().get(o);if(!i||!i.data||!i.data.articles)throw new Error("[mol-fe-auto-puff] Invalid ranked articles response");const{articles:a}=i.data;return a},lt="lifestyle",ut=(e,{headlineMaxLength:t=160,useSocialHeadline:n=!1}={},r,o)=>{const{domain:i,environment:a,renderPlatform:s}=H(),{channel:c}=Y(),l=r?document.createElement("li",{is:"ad-marker-li"}):document.createElement("li");r&&(l.dataset.adMarkerGroup="puff-list"),l.dataset.autoPuffItem=!0,Array.isArray(e.xpModulesUsed)&&e.xpModulesUsed.some((e=>e.startsWith("mol-fe-xpmodule-video-hero")))&&l.classList.add("video-led");let u=n?e.headline:e.fullHeadline||e.headline;u.length>t&&(u=u.substring(0,t)+"...");let d=e.url;if("money"===e.channel&&"thisismoney"!==i){d=`https://www.thisismoney${"integration"===a?"int":""}.co.uk${d}?ico=${`mol_${s}_${c}`}`}if("money"!==e.channel&&"thisismoney"===i){d=`https://www.dailymail${"integration"===a?"int":""}.co.uk${d}?ico=${`tim_autopuff_${s}_${c}`}`}let p=e.propensityLevel;!p&&e.wallDecisions&&(p=e.wallDecisions[o]&&e.wallDecisions[o].propensityLevel);const{paywalledCountries:f}=e,m=!window.getIsPaywalledForCountry||window.getIsPaywalledForCountry({paywalledCountries:f});let _="";e.neverPaywall||(e.isPaywalled&&m?(_='',l.dataset.isPaywalled=!0):e.isPaywalled||e.disableDynamicPaywall||(_=``));const h="chat"===e.articleType?'':"";return l.innerHTML=`\n \n \n \n \n \n ${e.neverPaywall?"":_}\n ${h}\n ${u}\n \n \n \n `,l},dt=e=>{try{const t=e.querySelector("a");if(!t)return null;const n=t.href.match(/\/article-(\d+)\//)[1];return Number(n)||null}catch(e){return null}};let pt=!1;const ft={sport:"STARS OF SPORT"},mt=(e,t,n=!1)=>{if(!pt){pt=!0;try{if(e.dataset.trackModule=e.dataset.trackModule.replace(/\^puff/,"^autopuff"),n)return;const r=e.parentNode.classList.contains(lt)?lt:"femail";e.parentNode.classList.remove(r),e.parentNode.classList.remove("travel"),e.parentNode.classList.add(t||"home"),e.parentNode.dataset.channelColor=t||"home",e.querySelector("h3").innerHTML=t&&ft[t]||"TOP STORIES";const o=document.querySelectorAll(".puff ul")[1];o&&o.parentNode.parentNode.classList.contains("tvshowbiz")&&(o.parentNode.parentNode.classList.remove("tvshowbiz"),o.parentNode.parentNode.classList.add(r),o.parentNode.parentNode.dataset.channelColor=r,o.parentNode.querySelector("h3").innerHTML="DON'T MISS")}catch(e){}}},_t=(e,t)=>{for(const t of Object.keys(e.dataset))delete e.dataset[t];for(const n of Object.keys(t.dataset))e.dataset[n]=t.dataset[n];e.className=t.className,e.innerHTML=t.innerHTML},ht=["britishairwaysholidays"],gt=["news","property","health","sciencetech","travel","sport"],Et=["property"],vt=["news","tv","tvshowbiz","lifestyle","health","sciencetech","travel"],yt=async()=>{try{const{articleStyle:e,channel:t,pageType:n,subchannel:r}=Y(),{renderPlatform:o,domain:i}=H(),a=ke(),s=a&&a.includes("autoPuffHome"),c=a&&a.includes("autoPuffNews"),l=a&&a.find((e=>e?.startsWith("autoPuffRec"))),u="autoPuffRecControl"===l,d="autoPuffRecGolden"===l,p=l&&!u&&vt.includes(t),f="channel"===n&&"home"===t&&"home"===r&&"desktop"===o&&s,m="channel"===n&&"news"===t&&"news"===r&&"desktop"===o&&c;if(r&&ht.includes(r))return;if(!(f||m||"article"===n&&"desktop"===o&&"wide"===e))return;if("thisismoney"===i){if("moneycars"!==r)return;if(!document.referrer||!document.referrer.match(/^https:\/\/(www|a|b)\d?\.dailymail(int)?\.co\.uk/i))return}else{if(!f&&!m&&vt.includes(t)&&u)return;if(!(f||m||p||gt.includes(t)||Et.includes(r)))return}const _=window.getIsPaywallEligible&&window.getIsPaywallEligible();let h;h="thisismoney"===i||f||m||!p?"sport"===t?[ot(),_?rt({channel:t}):[]]:[at({isUKHome:f}),_?rt({isUKHome:f}):[]]:d?[at({isGolden:!0}),[]]:[ct({autoPufRecExperimentSegment:l}),[]],h.push(x("DOM_READY"));const g=q().toLowerCase(),[E,v]=await Promise.all(h);if(!E||!E.length)return;(({articles:e,paywalledArticles:t=[],channel:n,isAutoPuffRecExperiment:r=!1,isUKHome:o=!1,isNewsChannel:i=!1,geo:a})=>{if(!e||!e.length)return;let s=".puff ul li:not([data-is-sponsored]):not(.exclusive):not(:has(.is-exclusive,.is-breaking-news))",c=".puff ul li[data-is-sponsored],.puff ul li.exclusive,.puff ul li:has(.is-exclusive,.is-breaking-news)";(o||i||r)&&(s=".puff ul li:not([data-is-sponsored])",c=".puff ul li[data-is-sponsored]");const l=document.querySelectorAll(s),u=document.querySelectorAll(c),d=Array.from(l).filter((e=>!(e.closest(".royal_wedding")||(o||i)&&e.closest(".sport")))).filter((e=>e&&e.children&&e.children[0]&&"A"===e.children[0].tagName));if(!d.length)return;const p=Array.from(u).map(dt).filter(Boolean);let f=e.slice().filter((e=>!p.includes(e.articleId))),m=f.map((e=>e.articleId));const _=d.map(dt).filter(Boolean),h=[],g=[];let E=t.filter((e=>!p.includes(e.articleId))).filter((e=>!m.includes(e.articleId)));if((o||i)&&E.length<4&&t.length){E=t.filter((e=>!p.includes(e.articleId)));const e=E.map((e=>e.articleId));f=f.filter((t=>!e.includes(t.articleId))),m=f.map((e=>e.articleId))}let v=1;for(const e of d){const t=Array.from(document.querySelectorAll(".puff ul li")).filter((e=>e&&e.children&&e.children[0]&&"A"===e.children[0].tagName)).indexOf(e)+1,r=(o||i?t%4==0:(v-3)%4==0)&&f.length>0&&E.length>0?E.shift():f.shift(),s=dt(e),c=r&&Number(r.articleId);if(!e.dataset.autoPuffReorder)if(r&&c!==s){const t=ut(r,{},o,a);if(!pt){const t=e.closest(".puff");mt(t,n,o)}if(_.includes(c)){const t=d.find((e=>e.querySelector("a").getAttribute("href")===r.url))||g.find((e=>e.querySelector("a").getAttribute("href")===r.url));if(t){const n=t.cloneNode(!0);t.dataset.autoPuffReorderSource=!0,n.dataset.autoPuffReorderTarget=!0,e.dataset.autoPuffReorderSource||m.includes(s)||h.push(e.cloneNode(!0)),g.push(e.cloneNode(!0)),_t(e,n)}}else e.dataset.autoPuffReorderSource||m.includes(s)||h.push(e.cloneNode(!0)),g.push(e.cloneNode(!0)),_t(e,t)}else if(h.length&&!r){const t=h.shift();t.dataset.autoPuffMoved=!0,e.dataset.autoPuffReorderSource||h.push(e.cloneNode(!0)),g.push(e.cloneNode(!0)),_t(e,t)}v++}})({articles:E,channel:"sport"===t?t:null,geo:g,isAutoPuffRecExperiment:p,isNewsChannel:m,isUKHome:f,paywalledArticles:v})}catch(e){J().error("Error initialising mol-fe-auto-puff",e)}},wt=async({iteration:e=1,topic:t,exclude:n=[]}={})=>{const r=e>1?`/api/mol-fe-feeds/v2/articles/topicArticles/puff/${t}/page/${e-1}/size/200/withXpModules/true`:`/api/mol-fe-feeds/v2/articles/rankedByTopicGroup/${t}/size/200/withXpModules/true/geo/${q()}`,{domain:o,environment:i}=H(),a=`${"thisismoney"===o?`https://www.dailymail${"production"===i?"":"int"}.co.uk`:""}${r}`,s=await et().get(a);if(!s||!s.data||!s.data.articles)throw new Error("Invalid topic puff articles response");const{articles:c}=s.data;return c.filter((e=>!n.includes(e.articleId)))},It=[{puffSelectorsByEnv:{integration:['.puff[data-track-module="llg-115099675^puff"]','.puff[data-track-module="llg-115970151^puff"]'],production:['.puff[data-track-module="llg-115970151^puff"]']},topic:"royals"}],bt=async()=>{try{const{environment:e,renderPlatform:t}=H(),{pageType:n}=Y();if("desktop"!==t)return;const r=q().toLowerCase();for(const{puffSelectorsByEnv:t,topic:o}of It){const i=t[e]||t.production,a=Array.from(document.querySelectorAll(i.join(",")));let s=[],c=1,l=await wt({iteration:c,topic:o});s=s.concat(l.map((e=>e.articleId)));let u=0;for(const e of a){const t=e.closest(".beta"),i=t.parentNode.querySelector(".alpha"),a=Array.from(e.querySelectorAll(0===u?"ul li:not([data-is-sponsored]):not(.exclusive)":"ul li")).filter((e=>e&&e.children&&e.children[0]&&"A"===e.children[0].tagName)),d=i?i.offsetHeight-t.offsetHeight:0;let p=Math.min(Math.ceil(d/120)+a.length,1e3);for("article"===n&&(p=Math.max(p,200));p>l.length;){c++;const e=await wt({exclude:s,iteration:c,topic:o});if(!e||!e.length||c>10)break;s=s.concat(e.map((e=>e.articleId))),l=l.concat(e)}if(a.length>p)for(let e=a.length-1;e>=p;e--)a[e].remove();let f=!0,m=0;for(;p>0;){const o=l.shift();if(a[m]){const e=ut(o,{headlineMaxLength:90,useSocialHeadline:!0},!1,r);a[m].replaceWith(e)}else if("article"===n||t.offsetHeight{const{geo:e=""}=Y()||{},t=e&&`data-href-geo-${e.toLowerCase()}`,n=t&&document.querySelectorAll(`a[${t}]`);n&&n.forEach((e=>{const n=e.getAttribute(t);n&&e.setAttribute("href",n)}))})),x("DOM_READY").then((()=>{const e=document.body.querySelectorAll('a[href="#top"]:not(.back-to-top)');return Array.from(e).forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),window.scrollTo(0,0)}))})),null})).catch((e=>J().error("There was an error loading scrollToTop extension",e)));var St=n(6654),Ot=n.n(St);const At=class extends T{constructor(e={}){super(),Object.assign(this,e),this.eventsMap=Object.keys(e).reduce(((t,n)=>(t[e[n]]?J().warn(`Conflicting event value for events "${n}" and "map[events[key]]"`):t[e[n]]=n,t)),{})}subscribe(e,t){return e&&!this.eventsMap[e]&&J().warn(`Subscribing to non-standard event "${e}"`),super.subscribe(e,t)}publish(e,t){if(!e)throw new Error('Missing required parameter "eventName"');e&&!this.eventsMap[e]&&J().warn(`Publishing non-standard event "${e}"`),J().trace(`Published PageEvent "${e}"`,t),this.listeners.get(e)&&this.listeners.get(e).forEach((n=>{try{n(e,t)}catch(e){J().error(e)}}))}listen(e,t,n){J().warn('"pageEvents.listen(eventName, function(observable, eventName, data) {...}, context)" has been deprecated.\n Please use "pageEvents.subscribe(eventName, (eventName, data) => {...})" instead');return this.subscribe(e,((...e)=>{t.call(n,this,...e)}))}fireEvent(e,t){return J().warn('"pageEvents.fireEvent(eventName, data)" has been deprecated. Please use "pageEvents.publish(eventName, data)" instead'),this.publish(e,t)}},Lt={AD_BILLBOARD_CLOSED:"ad_billboard-closed",AD_SLOT_LOADED_ON_PAGE:"adslot.loaded_on_page",AFFILIATE_CAROUSEL_CLICK:"affiliate.carousel_click",AFFILIATE_CAROUSEL_IMPRESSION:"affiliate.carousel_impression",AFFILIATE_CAROUSEL_VIEWABLE:"affiliate.carousel_viewable",ARTICLE_HERO_AUTHOR_TWITTER_LINK_CLICK:"article_hero.author_twitter_link_click",ARTICLE_HERO_LOZENGE_LINK_CLICK:"article_hero.lozenge_link_click",ARTICLE_PREVIEW_XP_CLICK:"article.preview.xp.click",ARTICLE_PREVIEW_XP_IMPRESSION:"article.preview.xp.impression",ARTICLE_PREVIEW_XP_VIEWABLE:"article.preview.xp.viewable",ARTICLE_RECOMMENDATION_XP_CLICK:"article.recommendation.xp.click",ARTICLE_RECOMMENDATION_XP_IMPRESSION:"article.recommendation.xp.impression",ARTICLE_RECOMMENDATION_XP_VIEWABLE:"article.recommendation.xp.viewable",ARTICLE_TRUNCATION_EXPAND:"article.truncation.expand",ARTICLE_TRUNCATION_INELIGIBLE:"article.truncation.ineligible",ARTICLE_TRUNCATION_READ_NEXT:"article.truncation.read_next",ARTICLE_TRUNCATION_TRUNCATE:"article.truncation.truncate",ARTICLE_TRUNCATION_VIEWABLE:"article.truncation.viewable",BF_BUY_NOW_CAROUSEL_CLICKED:"bf.buy_now_carousel_clicked",BF_BUY_NOW_HEADER_CLICKED:"bf.buy_now_header_clicked",BF_CAROUSEL_IN_VIEW:"bf.carousel_in_view",BF_CAROUSEL_ROTATE_CLICKED:"bf.carousel_clicked",BF_IMPRESSION:"bf.impression",BF_SHOW_MORE_CLICKED:"bf.show_more_clicked",CMP_LEVEL_ONE_ACCEPT:"cmp.cmp_level_1_accept",CMP_LEVEL_ONE_CONVERSION:"cmp.cmp_level_1_conversion",CMP_LEVEL_ONE_LOGIN:"cmp.cmp_level_1_login",CMP_LEVEL_ONE_PRIVACY_SETTINGS:"cmp.cmp_level_1_privacy_settings",CMP_LEVEL_ONE_SUBSCRIBE:"cmp.cmp_level_1_subscribe",CMP_LEVEL_TWO_CONVERSION:"cmp.cmp_level_2_conversion",CMP_LEVEL_TWO_SAVE_EXIT:"cmp.cmp_level_2_save_exit",CMP_LEVEL_TWO_SUBSCRIBE:"cmp.cmp_level_2_subscribe",COMMENT_CTA_CLICK:"commentcta.click",COMMENT_CTA_IMPRESSION:"commentcta.impression",COMMENTS_ADD_COMMENT_CLICK:"comments.add-comment-click",COMMENTS_CLEAR:"comments.clear",COMMENTS_CLICK:"comments.click",COMMENTS_DELETE:"comments.delete",COMMENTS_DOWNVOTE:"comments.downvote",COMMENTS_IMPRESSION:"comments.impression",COMMENTS_LOAD_TIME:"comments.load-time",COMMENTS_LOGIN_REDIRECT:"comments.login-redirect",COMMENTS_MASTHEAD_CLICK:"comments.masthead-click",COMMENTS_NEW_COMMENT_CLICK:"comments.new-comment-click",COMMENTS_NOTIF_CLICK:"comments.notif-click",COMMENTS_OVERLAY_CLOSE:"comments.overlay-close",COMMENTS_OVERLAY_OPEN:"page.comments-overlay-open",COMMENTS_PAGINATION_CLICK:"comments.pagination-click",COMMENTS_PROFILE_CLICK:"comments.profile-click",COMMENTS_REPLY_CLICK:"comments.reply-click",COMMENTS_REPLY_SUBMIT:"comments.reply-submit",COMMENTS_REPLY_SUBMIT_SUCCESS:"comments.reply-submit-success",COMMENTS_REPORT_CLICK:"comments.report-click",COMMENTS_SHOW_MORE_CLICK:"comments.show-more-click",COMMENTS_SUBMIT_COMMENT:"comments.submit-comment",COMMENTS_SUBMIT_SUCCESS:"comments.submit-success",COMMENTS_UPVOTE:"comments.upvote",COMMENTS_VIEW:"comments.view",COMMENTS_VIEW_ALL:"comments.view-all",COMMERCE_XP_CLICK:"commerce_xp.click",COMMERCE_XP_IMPRESSION:"commerce_xp.impression",COMMERCE_XP_VIEW_MORE:"commerce_xp.view_more",COMMERCE_XP_VIEWABLE:"commerce_xp.viewable",COMPANY_REVIEW_IMPRESSION:"company_review.impression",COMPANY_REVIEW_LEARN_MORE_CLICKED:"company_review.learn_more_clicked",COMPANY_REVIEW_LESS_CONTENT_CLICKED:"company_review.less_content_clicked",COMPANY_REVIEW_MORE_CONTENT_CLICKED:"company_review.more_content_clicked",CONTACT_FORM_CAPTCHA_VALID:"mol_fe_contact_form.captcha-valid",CONTACT_FORM_FILE_ADDED:"mol_fe_contact_form.file-added",CONTACT_FORM_FILE_ERROR_CLIENT:"mol_fe_contact_form.file-error-client",CONTACT_FORM_FILE_ERROR_SERVER:"mol_fe_contact_form.file-error-server",CONTACT_FORM_SUBMIT_CLICK:"mol_fe_contact_form.submit-click",CONTACT_FORM_SUBMIT_ERROR:"mol_fe_contact_form.submit-error",CONTACT_FORM_SUBMIT_SUCCESS:"mol_fe_contact_form.submit-success",CONTENT_READING_TRACKER:"content_reading_tracker",CONVERSION_MODAL_BENEFITS:"conversion.modal_benefits",CONVERSION_MODAL_CLOSE:"conversion.modal_close",CONVERSION_MODAL_CONTINUE:"conversion.modal_continue",DESKTOP_HOME_PAGE_OVERLAY:"page.desktop_home_page_overlay",ERROR_RENDER_STARTED:"error-page.render-started",ESSENTIAL_ACCOUNT_LINK_COMPLETE:"cmp.essential_account_link_complete",ESSENTIAL_ACCOUNT_LINK_HELP_CLICK:"cmp.essential_account_link_help_click",ESSENTIAL_ACCOUNT_LINK_PROMPT:"cmp.essential_account_link_prompt",ESSENTIAL_ACCOUNT_LINK_RESEND:"cmp.essential_account_link_resend_email_click",ESSENTIAL_RESTORE_PURCHASE_CLICK:"cmp.essential_restore_purchase_click",FACTBOX_READ_MORE_CLICK:"factbox.read-more-click",FEATURE_ARTICLE:"page.feature_article",FIDELITY_CAMPAIGN_EVENT:"fidelity-campaign.event",FIREWORK_VIDEO_CAROUSEL_ERROR:"firework-video-carousel.error",FIREWORK_VIDEO_CAROUSEL_IMPRESSION:"firework-video-carousel.impression",FIREWORK_VIDEO_CAROUSEL_PLAYER_NAVIGATION:"firework-video-carousel.player-navigation",FIREWORK_VIDEO_CAROUSEL_PLAYER_QUIT:"firework-video-carousel.player-quit",FIREWORK_VIDEO_CAROUSEL_PLAYER_TRANSITION:"firework-video-carousel.player-transition",FIREWORK_VIDEO_CAROUSEL_READY:"firework-video-carousel.ready",FIREWORK_VIDEO_CAROUSEL_THUMBNAIL_CLICK:"firework-video-carousel.thumbnail-click",FIREWORK_VIDEO_CAROUSEL_VIDEO_CLICK_CTA:"firework-video-carousel.video-click-cta",FIREWORK_VIDEO_CAROUSEL_VIDEO_CLICK_SHARE:"firework-video-carousel.video-click-share",FIREWORK_VIDEO_CAROUSEL_VIDEO_COMPLETE:"firework-video-carousel.video-complete",FIREWORK_VIDEO_CAROUSEL_VIDEO_FIRST_QUARTILE:"firework-video-carousel.video-first-quartile",FIREWORK_VIDEO_CAROUSEL_VIDEO_IMPRESSION:"firework-video-carousel.video-impression",FIREWORK_VIDEO_CAROUSEL_VIDEO_MID_POINT:"firework-video-carousel.video-mid-point",FIREWORK_VIDEO_CAROUSEL_VIDEO_SESSION:"firework-video-carousel.video-session",FIREWORK_VIDEO_CAROUSEL_VIDEO_START:"firework-video-carousel.video-start",FIREWORK_VIDEO_CAROUSEL_VIDEO_THIRD_QUARTILE:"firework-video-carousel.video-third-quartile",FLOATING_BUTTONS_BACK_TO_TOP:"back-to-top",FOR_YOU_SAVE_PREFERENCES_CLICK:"for-you.save_preferences_click",FRAGMENT_LOADED:"page.fragment-loaded",GALLERY_ADVERT_STATS:"gallery.advert-stats",GALLERY_ADVERT_VIEWED:"gallery.advert.viewed",GALLERY_CLOSED:"gallery.closed",GALLERY_IMAGE_VIEWED:"gallery.image-viewed",GALLERY_OPENED:"gallery.opened",GDPR_EMBEDDED_VIDEO_ACCEPTED:"gdpr.embedded_video_accepted",GDPR_EMBEDDED_VIDEO_DISPLAYED:"gdpr.embedded_video_displayed",GDPR_EMBEDDED_VIDEO_SETTINGS:"gdpr.embedded_video_settings",GDPR_MOBILE_HOME_ACCEPTED:"gdpr.mobile_home_accepted",GDPR_MOBILE_HOME_DISPLAYED:"gdpr.mobile_home_displayed",GDPR_MOBILE_HOME_SETTINGS:"gdpr.mobile_home_settings",GDPR_OVERLAY_ACCEPT_BY_CLICK_SITE:"gdpr.overlay_accept_by_click_site",GDPR_OVERLAY_ACCEPTED:"gdpr.overlay_accepted",GDPR_OVERLAY_DISPLAYED:"gdpr.overlay_displayed",GDPR_OVERLAY_PRIVACY:"gdpr.overlay_privacy",GDPR_SETTINGS_ADVERTISING_ALLOW_ALL:"gdpr.settings_advertising_allow_all",GDPR_SETTINGS_ADVERTISING_LINK_CLICKED:"gdpr.settings_advertising_link_clicked",GDPR_SETTINGS_ADVERTISING_TAB_CLICKED:"gdpr.settings_advertising_tab_clicked",GDPR_SETTINGS_CONFIRMATION_ALLOW:"gdpr.settings_confirmation_allow",GDPR_SETTINGS_CONFIRMATION_DISALLOW:"gdpr.settings_confirmation_disallow",GDPR_SETTINGS_DISALLOW_ADVERTISING_PARTNERS:"gdpr.settings_disallow_advertising_partners",GDPR_SETTINGS_FUNCTION_ALLOW_ALL:"gdpr.settings_function_allow_all",GDPR_SETTINGS_FUNCTION_TAB_CLICKED:"gdpr.settings_function_tab_clicked",GDPR_SETTINGS_POLICY_LINK_CLICKED:"gdpr.settings_policy_link_clicked",GEO_TARGETED_HOMEPAGE_XP_CLICK:"geo.targeted.homepage.xp.click",GEO_TARGETED_HOMEPAGE_XP_IMPRESSION:"geo.targeted.homepage.xp.impression",GEO_TARGETED_HOMEPAGE_XP_VIEWABLE:"geo.targeted.homepage.xp.viewable",GOOGLE_SUBSCRIPTION_DISMISS:"google-subscription.dismiss",GOOGLE_SUBSCRIPTION_LINK:"google-subscription.link",GOOGLE_SUBSCRIPTION_VIEW:"google-subscription.impression",GUESTBOOK_IMPRESSION:"guestbook.impression",GUESTBOOK_LOADING_ERROR:"guestbook.loading_error",GUESTBOOK_SUBMIT_ERROR:"guestbook.submit_error",GUESTBOOK_SUBMIT_SUCCESS:"guestbook.submit_success",HUBS_ARTICLE_LIST_XP_READ_MORE:"hubs_article_list.xp.read_more",HUBS_HEADER_AUDIO_CLICK:"hubs_header.audio.click",IFRAME_EMAIL_IMPRESSION:"iframe.email.impression",IFRAME_EMAIL_SUBMIT:"iframe.email.submit",IFRAME_EMAIL_SUBMIT_NO_EMAIL:"iframe.email.submit_no_email",IFRAME_EMAIL_VIEWABLE:"iframe.email.viewable",LINK_CLICK:"link.click",LIVE_BLOG_LOAD_MORE:"liveblog.load_click_more",MAGAZINE_READ_NOW_CLICK:"magazine.read_now_click",MASTHEAD_CLICK:"masthead_click",MOBILE_HOME_PAGE_NAV:"page.mobile_home_page_nav",MOBILE_HOME_PAGE_OVERLAY:"page.mobile_home_page_overlay",MOBILE_HOME_PAGE_SIGNPOST_CLICK:"page.mobile_home_page_signpost_click",MOBILE_HOME_PAGE_SIGNPOST_DISMISS:"page.mobile_home_page_signpost_dismiss",MOBILE_HOME_PAGE_SIGNPOST_DISPLAY:"page.mobile_home_page_signpost_display",MOBILE_HOME_PAGE_SWIPE:"page.mobile_home_page_swipe",MOBILE_HOME_PAGE_VIEW:"page.mobile_home_page_view",MOBILE_MENU_COMMENT:"menu.mobile_menu_comment",MOBILE_MENU_DESKTOP_SITE:"menu.mobile_menu_desktop_site",MOBILE_MENU_NAV_CLOSE:"menu.mobile_menu_nav_close",MOBILE_MENU_NAV_OPEN:"menu.mobile_menu_nav_open",MODULE_IMPRESSION:"module.impression",MODULE_INTERACT:"module.interact",MODULE_VIEW:"module.view",MOST_COMMENTED_ARTICLE_CLICKED:"page.most_commented_article_clicked",MOST_COMMENTED_CLOSE_CLICKED:"page.most_commented_close_clicked",MOST_COMMENTED_RADIO_CLICKED:"page.most_commented_radio_clicked",MOST_COMMENTED_SHOWMORE_CLICKED:"page.most_commented_showmore_clicked",NEWSLETTER_ERROR:"newsletter.error",NEWSLETTER_POPUP_SHOW:"newsletter-popup.show",NEWSLETTER_POPUP_SUBMIT:"newsletter-popup.submit",NEWSLETTER_PRIVACY_CLICK:"newsletter-privacy.click",NEWSLETTER_SHOW:"newsletter.show",NEWSLETTER_SUBMIT:"newsletter.submit",ONE_TAP_CLOSE:"onetap.close",ONE_TAP_CONTINUE:"onetap.continue",ONE_TAP_IMPRESSION:"onetap.impression",PAGE_AD_DISPLAYED:"page.ad-displayed",PAGE_AD_ERRORS:"page.ad-errors",PAGE_AD_STATS:"page.ad-stats",PAGE_AUTOREFRESH_EVENT:"page.autorefresh-event",PAGE_COMMENT_FUNNEL_PROGRESSED:"page.comment-funnel-progressed",PAGE_COMMENT_TAB_SWAPPED:"page.comment-tab-swapped",PAGE_EXTERNAL_LINK_CLICKED:"page.external-link-clicked",PAGE_EXTERNAL_LINK_CLICKED_GA:"page.external-link-clicked-ga",PAGE_FOOTBALL_FIXTURES_TAB_SWAPPED:"page.football-fixtures-tab-swapped",PAGE_FURNITURE_CLICKED:"page.furniture-clicked",PAGE_IMAGE_ENLARGED:"page.image-enlarged",PAGE_LOGIN_BUTTON_CLICKED:"page.login-button-clicked",PAGE_LOGIN_OPENED:"page.login-opened",PAGE_MOBILE_TAB_CHANGE:"page.mobile.tab.change",PAGE_MODULE_CLICKED:"page.module-clicked",PAGE_NEWSLETTERS_OPENED:"page.newsletters-opened",PAGE_RENDER_STARTED:"page.render-started",PAYWALL_ACCOUNT_LINK_COMPLETE:"paywall.account-link-complete",PAYWALL_ACCOUNT_LINK_HELP:"paywall.account-link-help",PAYWALL_ACCOUNT_LINK_PROMPT:"paywall.account-link-prompt",PAYWALL_ACCOUNT_LINK_RESEND:"paywall.account-link-resend",PAYWALL_APPLEPAY_CONVERSION:"paywall.applepay-conversion",PAYWALL_APPLEPAY_ERROR_CLICK:"paywall.applepay-error-click",PAYWALL_APPLEPAY_ERROR_VIEW:"paywall.applepay-error-view",PAYWALL_APPLEPAY_FAILURE_CLICK:"paywall.applepay-failure-click",PAYWALL_APPLEPAY_FAILURE_VIEW:"paywall.applepay-failure-view",PAYWALL_APPLEPAY_SECONDARY_CTA:"paywall.applepay-secondary-cta",PAYWALL_APPLEPAY_STEP_LANDING:"paywall.applepay-step1-landing",PAYWALL_APPLEPAY_STEP_PAYMENT:"paywall.applepay-step4-payment",PAYWALL_CONVERSION:"paywall.conversion",PAYWALL_CONVERSION_BANNER:"paywall.conversion-banner",PAYWALL_CONVERSION_PROFILE:"paywall.conversion-profile",PAYWALL_HOMEMODULE_ARTICLE_CLICK:"paywall.homemodule-article-click",PAYWALL_HOMEMODULE_ARTICLE_COMMENTS_CLICK:"paywall.homemodule-article-comments-click",PAYWALL_HOMEMODULE_CHANNEL_CLICK:"paywall.homemodule-channel-click",PAYWALL_HOMEMODULE_SIGNUP_CLICK:"paywall.homemodule-signup-click",PAYWALL_IMPRESSION:"paywall.impression",PAYWALL_LOGIN_CLICK:"paywall.login-click",PAYWALL_MASTHEAD_ARTICLE_CLICK:"paywall.masthead-article-click",PAYWALL_MASTHEAD_SIGNUP_CLICK:"paywall.masthead-signup-click",PAYWALL_MASTHEAD_SUBSCRIBED_CLICK:"paywall.masthead-subscribed-click",PAYWALL_PROFILE_SIGNUP_CLICK:"paywall.profile-signup",PAYWALL_RESTORE_PURCHASE_CLICK:"paywall.restore-purchase-click",PAYWALL_SIGN_UP:"paywall.signup",PAYWALL_SOPHI_LOAD:"paywall.sophi-load",PAYWALL_VIEWABLE:"paywall.viewable",PAYWALL_ZEPHR_FAIL_OPEN:"paywall.zephr-fail-open",PREDICTOR_CTA_CLICK:"predictor.cta-click",PRODUCT_BUTTON_LINK:"product.button-link",PRODUCT_IMAGE_LINK:"product.image-link",PRODUCT_PRICE_LINK:"product.price-link",PRODUCT_TITLE_LINK:"product.title-link",PROMOTIONAL_SLOT_EVENT:"promotional.slot-event",PROMOTIONS_XP_CLICK:"promotions.xp.click",PROMOTIONS_XP_IMPRESSION:"promotions.xp.impressions",PROMOTIONS_XP_VIEW_MORE:"promotions.xp.view.more",PROMOTIONS_XP_VIEWABLE:"promotions.xp.viewable",PUZZLE_COMPLETED:"puzzle.completed",PUZZLE_RESTARTED:"puzzle.restarted",PUZZLE_SOCIAL_SHARE:"puzzle.social.share",PUZZLE_STARTED:"puzzle.started",RC_TAB_SELECT:"rc.tab_select",RELATED_REPLACE_CLICK:"related-replace.click",RELATED_REPLACE_IMPRESSION:"related-replace.impression",RELATED_REPLACE_VIEWABLE:"related-replace.viewable",REMIXD_COMPLETE:"remixd.complete",REMIXD_ERROR:"remixd.error",REMIXD_IMPRESSION:"remixd.impression",REMIXD_MUTE:"remixd.mute",REMIXD_PAUSE:"remixd.pause",REMIXD_PLAY:"remixd.play",SCREENSAVER_DOWNLOADED:"page.screensaver_downloaded",SIGN_IN_LOGIN_SUCCESS:"signin.login-success",SIGN_IN_REGISTRATION_SUCCESS:"signin.registration-success",SIGN_IN_SIGN_IN_CLICK:"signin.sign-in-click",SITE_SEARCH:"site-search",SMART_BANNER_CLICKED:"smart-banner.clicked",SMART_BANNER_SHOWN:"smart-banner.shown",SOCIAL_BUTTON_CLICKED:"social.button-clicked",SOCIAL_LIGHTBOX_BUTTON_CLICKED:"social.lightbox-button-clicked",SOCIAL_SHARE_CLICKED:"social.share-clicked",SOCIAL_SHARE_COMMENTS:"social_share.comments",SOCIAL_SHARE_MENU_OPEN:"social_share.menu_open",SWIPE_BAR_SHOWN:"swipe_bar.shown",SWIPE_TUTORIAL_CLOSE:"swipe_tutorial.close",SWIPE_TUTORIAL_SHOWN:"swipe_tutorial.shown",SYNDSHARE_POST:"page.syndshare_post",TIM_AFFILIATE_BOTTOM_LINK_CLICKED:"timAffiliate.bottom_link_clicked",TIM_AFFILIATE_IMPRESSION:"timAffiliate.impression",TIM_AFFILIATE_LEARN_MORE_CLICKED:"timAffiliate.learn_more_clicked",TIM_ANCHOR_LINK_CLICKED:"tim.anchor.link-clicked",TOAST_OVERLAY_CLICK:"toast-overlay.click",TOAST_OVERLAY_DISMISS:"toast-overlay.dismiss",TOAST_OVERLAY_VIEW:"toast-overlay.view",TOP_STORIES_XP_CLICK:"top.stories.xp.click",TOP_STORIES_XP_IMPRESSION:"top.stories.xp.impression",TOP_STORIES_XP_VIEW_MORE:"top.stories.xp.view.more",TOP_STORIES_XP_VIEWABLE:"top.stories.xp.viewable",USER_AUTH_SITE_REG_ERROR_ONCE:"user_auth.site-reg-error-once",VIDEO_ADVERT_ABORTED:"video.advert-aborted",VIDEO_ADVERT_COMPLETED:"video.advert-completed",VIDEO_ADVERT_FAILED:"video.advert-failed",VIDEO_ADVERT_IMPRESSION:"video.ad-impression",VIDEO_ADVERT_NOT_SHOWN:"video.no-ad-shown",VIDEO_ADVERT_STARTED:"video.advert-started",VIDEO_BRANDED_CONTENT_PROGRESS:"video.branded-content.progress",VIDEO_CAROUSEL_CLICK:"video.carousel-click",VIDEO_CAROUSEL_CLICKED:"video.carousel-clicked",VIDEO_CAROUSEL_SWIPE:"video.carousel-swipe",VIDEO_CLICKED:"video.clicked",VIDEO_CONFIG_CHANGE:"page.video-config-change",VIDEO_CONTENT_ABORTED:"video.content-aborted",VIDEO_CONTENT_COMPLETED:"video.content-completed",VIDEO_CONTENT_STARTED:"video.content-started",VIDEO_DATA_READY:"video.data-ready",VIDEO_EXTRA:"extra",VIDEO_FULLSCREEN_CHANGE:"video.fullscreen-change",VIDEO_PAUSED:"video.paused",VIDEO_PLAYER_READY:"video.player-ready",VIDEO_PROGRESS:"video.progress",VIDEO_RESUMED:"video.resumed",VIDEO_STICKY_CLOSE:"video.sticky-close",VIDEO_STREAM_FAILED:"video.stream-failed",VIDEO_STREAM_STARTED:"video.stream-started",VIDEO_THUMBNAIL_CLICK:"video.thumbnail-click",VIDEO_VOLUME_CHANGE:"video.volume-change",VWO_VARIATION_APPLIED:"vwo.variation-applied",WEB_PULL_NOTIFICATION_CLICK:"web-pull.notification-click",WEB_PUSH_NOTIFICATION_CLICK:"web-push.notification-click",WEB_PUSH_PRE_PROMPT_CLICK:"web-push.pre-prompt-click",WEB_PUSH_PRE_PROMPT_IMPRESSION:"web-push.pre-prompt-impression",WEB_PUSH_PROMPT_CLICK:"web-push.prompt-click",WEB_PUSH_PROMPT_IMPRESSION:"web-push.prompt-impression",WEB_SEARCH:"web-search",XP_BUTTON_LOGO_LINK_CLICK:"xp.button.logo_link_click",XP_BUTTON_LOGO_LINK_IMPRESSION:"xp.button.logo_link_impression",XP_POLLS_CLICK:"xp.polls.click",XP_POLLS_IMPRESSION:"xp.polls.impression",XP_POLLS_SUBSCRIBED:"xp.polls.subscribed",XP_POLLS_VIEW:"xp.polls.show",XP_POLLS_VOTED:"xp.polls.voted"},Tt=new At(Lt),Ct={".mol-desktop #addCommentButton, .mol-desktop #addCommentNarrowButton":"bottom add comment",".mol-desktop #articleIconLinksContainer .comments-count":"top comments click",".mol-desktop #floating-share-bar-container .comments-count":"floating comments click",".mol-mobile .social.bottom .comments-count":"bottom comment click",".mol-mobile .social.top .comments-count":"top comment click"},Pt=()=>{try{return new URLSearchParams(window.location.search).get("game")}catch(e){return J().error("Error getting game id from params",e),null}},Mt="mol-fe-puzzle-tracking",Nt=()=>{try{return JSON.parse(window.localStorage.getItem(Mt))}catch(e){}return null},Rt=e=>{try{window.localStorage.setItem(Mt,JSON.stringify(e))}catch(e){}},Dt=()=>{try{const e=Nt();if(!e)return void Rt({first:Date.now(),last:Date.now()});Rt({...e,last:Date.now()})}catch(e){}},kt=()=>{try{const e=Nt();if(!e)return"undefined";return e.last-e.first>=72e5?"repeat player":"first time player"}catch(e){}return"undefined"},xt={level_started:Tt.PUZZLE_STARTED,level_completed:Tt.PUZZLE_COMPLETED,puzzle_complete:Tt.PUZZLE_COMPLETED,puzzle_play:Tt.PUZZLE_STARTED,PuzzleComplete:Tt.PUZZLE_COMPLETED,PuzzleStarted:Tt.PUZZLE_STARTED,social_share:Tt.PUZZLE_SOCIAL_SHARE,level_result_shared:Tt.PUZZLE_SOCIAL_SHARE,puzzle_restarted:Tt.PUZZLE_RESTARTED},Ut=()=>{window.VWO=window.VWO||[],window.VWO.event=window.VWO.event||function(){window.VWO.push(["event"].concat([].slice.call(arguments)))},window.VWO.visitor=window.VWO.visitor||function(){window.VWO.push(["visitor"].concat([].slice.call(arguments)))}},Bt=()=>(Ut(),new Promise((e=>{window.VWO.push(["onVWOCampaignsLoaded",t=>{const{bucketed_campaigns:n}=t||{};e(n)}])}))),jt=e=>new Promise((t=>{setTimeout(t,e)})),Vt=()=>{try{return window.adsMVTResults&&"off"===window.adsMVTResults.selectedScenarios.vwo}catch(e){return!1}},Gt=async()=>{if(Vt())return"";return(await Promise.race([Bt(),jt(1e3)])||[]).map((e=>{const{name:t,variation:n}=e||{};return`${t}:${n}`})).join(",")};var Wt=n(6989);const Kt="mol-fe-tracking-scv-session-id";window.singleCustomerPageId=null;const Ft=()=>{try{return window.singleCustomerPageId||(window.singleCustomerPageId=(0,Wt.v4)()),window.singleCustomerPageId}catch(e){return null}},zt=()=>{try{return sessionStorage.getItem(Kt)||null}catch(e){return null}},Ht=function(e,t){const n=Object.keys(t).filter((n=>{let r=!1;return Lt[n]?(Tt.subscribe(Lt[n],t[n]),r=!0):J().error(`${e}: Subscribing to invalid event ${n}`),r}));J().debug(`${e}: successfully loaded`,n)},$t=()=>{window.adverts&&window.adverts.queue&&window.adverts.queue.push((()=>{window.fbq&&window.fbq("track","Subscribe",{currency:"GBP",value:"1.99"})}))},Yt=()=>{window.adverts&&window.adverts.queue&&window.adverts.queue.push((()=>{window.fbq&&window.fbq("trackCustom","SubscribeButtonClicked")}))},qt=[{PAYWALL_CONVERSION:$t,PAYWALL_CONVERSION_BANNER:$t,PAYWALL_CONVERSION_PROFILE:$t,PAYWALL_MASTHEAD_SIGNUP_CLICK:Yt,PAYWALL_PROFILE_SIGNUP_CLICK:Yt,PAYWALL_SIGN_UP:Yt}];for(const e of qt)Ht("googleAnalytics",e);const Xt="javascript:,dmgt.net,dailymail.co.uk,mailonsunday.co.uk,mailonline.co.uk,localhost,"+location.hostname,Zt=new RegExp(Xt.replace(/\./g,"\\.").replace(/,/g,"|"),"i"),Jt=Y(),Qt=Jt.isTablet,en=Jt.isMobile&&!Qt,tn={geo:Jt.geo,internalDomains:Xt,internalDomainsRegex:Zt,isMobile:en,isTablet:Qt},nn=e=>{let t=e.offsetTop,n=e.offsetParent;for(;n;)Number.isNaN(n.offsetTop)||(t+=n.offsetTop),n=n.offsetParent;return t},rn=["alpha","beta","gamma"],on=rn.map((e=>`.${e}`)).join(","),an=function(e){const t=e.hostname||window.location.hostname;return tn.internalDomainsRegex.test(t)},sn=function(e){return!an(e)},cn=function(e){if(!e||1!==e.nodeType)return null;const t=rn.find((t=>e.classList.contains(t)));if(!t)return"other";return`${t}-${Array.from(document.querySelectorAll("."+t)).indexOf(e)+1}`},ln=e=>{const t=e.closest("[data-track-rta]");if(t)try{const{index:e}=JSON.parse(t.dataset.trackRta);return parseInt(e,10)}catch(e){return}},un=function({interaction:e,link:t,moduleElement:n,target:r,trackAs:o,trackLinks:i}){const a=n.closest(on),s={element:t,fromLink:t,interaction:e,linkType:"IMG"===r.nodeName?"image":"text",listPosition:i.indexOf(t)+1,moduleName:n.getAttribute("data-track-module"),pixelDepth:nn(t),position:n.getAttribute("data-track-pos")||cn(a)||"other",trackingType:o||t.getAttribute("data-track-type")||n.getAttribute("data-track-type")||"ck",videoId:t.getAttribute("data-videoid")};return s.moduleName.includes("-desktop-ap-")&&(s.moduleArticlePositionChannel=(e=>{const t=Array.from(document.querySelectorAll('[data-track-module*="-desktop-ap-"]')).indexOf(e);return-1===t?void 0:t+1})(n)),s.moduleName.startsWith("home-tab-")&&(s.moduleArticlePositionChannel=ln(t)),"mobile-channel-page"===s.moduleName&&(s.moduleArticlePositionChannel=ln(t)),r.closest(".sponsored")&&(s.moduleName=s.moduleName.replace("^","_sponsored^")),(e=>{if("article"!==Y().pageType||"desktop"!==H().renderPlatform||!e||!e.closest(".puff"))return!1;const t=document.querySelector(".article-text .shareArticles"),n=nn(t);return nn(e)>n})(r)&&(s.moduleName+="AfterArticle"),t.classList.contains("article-icon-links__topChannel")&&(s.moduleName+="_channel-label"),s},dn=function(e){const{moduleElement:t,shouldProceed:n,target:r}=e,o=t.getAttribute("data-track-selector")||"a",i=Array.from(t.querySelectorAll(o)),a=i.find((e=>e===r||e.contains(r)));if(a&&n(a)){const t=un(Object.assign({link:a,trackLinks:i},e));J().debug("moduleTracking",t),Tt.publish(Tt.PAGE_MODULE_CLICKED,t)}};document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".mol-para-with-font a, .imageCaption a");if(e){const t=[...e].map((e=>e.getAttribute("href").startsWith("/")?e:null)).filter(Boolean);if(t.length>0)for(const e of t)e.outerHTML=`${e.outerHTML}`}})),document.addEventListener("click",(e=>{const t=e.target.closest("[data-track-module]");if(t){const n=t.getAttribute("data-track-external")?sn:an;dn({interaction:"link-click",moduleElement:t,shouldProceed:n,target:e.target})}}));const pn={externalLinkTracker:function(e,t="el"){const n=document.getElementById(e);Array.from(n.querySelectorAll("a.js-tl")).forEach((e=>e.addEventListener("click",(e=>dn({interaction:"link-click",moduleElement:n,shouldProceed:sn,target:e.target,trackAs:t})))))},trackSwipe:function(e,t){dn({interaction:"swipe",moduleElement:e,shouldProceed:an,target:t})}},fn=function(e,t){window.trac.slideEvent(t.contentType+"-"+t.threadId)},mn={GALLERY_ADVERT_VIEWED:fn,GALLERY_CLOSED:fn,GALLERY_IMAGE_VIEWED:fn,GALLERY_OPENED:fn},_n={PAGE_COMMENT_TAB_SWAPPED:function(e,t){window.trac.slideEvent(t.contentType+"-"+t.tab)}},hn=Object.assign({},mn,_n),gn={init:function(){window.trac?Ht("Nielsen",hn):J().error('Nielsen: trying to load nielsen tracking but "trac" global is not present')}},En={cookieClientSegment:"dm_clientsegment",DMPageMetadataKey:"clientSegmentation",queryOverrideClientSegment:"segment",storageKey:"mol-fe-segmentation.data"},vn={getItem:e=>Ot().get(e),removeItem:e=>Ot().remove(e),setItem:(e,t,n)=>Ot().set(e,t,n)};let yn={getItem:()=>null,removeItem:()=>null,setItem:()=>null};try{yn=window.localStorage}catch(e){}const wn={getItem:e=>function(e){try{return JSON.parse(e)}catch(t){return e}}(yn.getItem(e)),removeItem:e=>yn.removeItem(e),setItem:(e,t)=>yn.setItem(e,function(e){return JSON.stringify(e)}(t))},In=function(){try{const e=window.localStorage,t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(e){return!1}}()?wn:vn,bn=In,Sn=function(e,t){const n=new RegExp("[?&]"+e.replace(/[[\]]/g,"\\$&")+"(=([^&#]*)|&|#|$)").exec(t||window.location.href);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null};let On;const An=function(e){return Sn(En.queryOverrideClientSegment,e)||null},Ln=function(){return On=An()||vn.getItem(En.cookieClientSegment),On},Tn={getActiveSegment:function(){return On||Ln()},getSegmentOverride:An,setActiveSegment:Ln},Cn=function(){return H()[En.DMPageMetadataKey]||{}},Pn=function(e={}){const t=Object.keys(e).reduce(((t,n)=>t+e[n].weight),0);return Math.random()*t},Mn=function(e={}){const t=e.segments;let n;if(t){const e=Pn(t);let r;r=0,n=Object.keys(t).find((n=>(r+=t[n].weight,eDn.run()));const kn=function(){return Tn.getActiveSegment()||"default"},xn={geo(){},ito:window.RTA?window.RTA.ito:function(){},tedEvent(e,t={}){t.clientSegment=kn(),this.i&&(t.ito=this.i),Object.assign(t,function(){const e={},t=H(),n=t&&t.authorName&&t.authorName.split(";");return n&&n.length&&(e.authors=n),e}()),Object.assign(t,function(){const e={},t=H();return e.rp=t.renderPlatform,e}()),t.title||Object.assign(t,function(){const e={},t=H();if(t.articleId){const n=document.head.querySelector('meta[property="twitter:title"]')||document.head.querySelector('meta[property="og:title"]');e.title=n?n.getAttribute("content"):t.articleTitle}return e}()),function(e,t){window.RTA&&window.RTA.tedEvent(e,t)}(e,t)}},Un=function(e){return function(t,n){xn.tedEvent("page_event",{action:"store",name:e,value:n})}},Bn={CONTACT_FORM_CAPTCHA_VALID:Un("mol-fe-contact-form-captcha-valid"),CONTACT_FORM_FILE_ADDED:Un("mol-fe-contact-form-file-added"),CONTACT_FORM_FILE_ERROR_CLIENT:Un("mol-fe-contact-form-file-error-client"),CONTACT_FORM_FILE_ERROR_SERVER:Un("mol-fe-contact-form-file-error-server"),CONTACT_FORM_SUBMIT_CLICK:Un("mol-fe-contact-form-submit-click"),CONTACT_FORM_SUBMIT_ERROR:Un("mol-fe-contact-form-submit-error"),CONTACT_FORM_SUBMIT_SUCCESS:Un("mol-fe-contact-form-submit-success")},jn={FIDELITY_CAMPAIGN_EVENT:function(e,t,n){xn.tedEvent("page_event",{action:n.action,name:n.name,value:n.value})}},Vn={FLOATING_BUTTONS_BACK_TO_TOP:function(e,t){xn.tedEvent("page_event",{action:"set",name:"backToTop",value:t.value})}},Gn=function(e){xn.tedEvent("page_event",{action:"store",name:e,value:!0})},Wn={GDPR_EMBEDDED_VIDEO_ACCEPTED:Gn,GDPR_EMBEDDED_VIDEO_DISPLAYED:Gn,GDPR_EMBEDDED_VIDEO_SETTINGS:Gn,GDPR_MOBILE_HOME_ACCEPTED:Gn,GDPR_MOBILE_HOME_DISPLAYED:Gn,GDPR_MOBILE_HOME_SETTINGS:Gn,GDPR_OVERLAY_ACCEPT_BY_CLICK_SITE:Gn,GDPR_OVERLAY_ACCEPTED:Gn,GDPR_OVERLAY_DISPLAYED:Gn,GDPR_OVERLAY_PRIVACY:Gn,GDPR_SETTINGS_ADVERTISING_ALLOW_ALL:Gn,GDPR_SETTINGS_ADVERTISING_LINK_CLICKED:Gn,GDPR_SETTINGS_ADVERTISING_TAB_CLICKED:Gn,GDPR_SETTINGS_CONFIRMATION_ALLOW:Gn,GDPR_SETTINGS_CONFIRMATION_DISALLOW:Gn,GDPR_SETTINGS_DISALLOW_ADVERTISING_PARTNERS:Gn,GDPR_SETTINGS_FUNCTION_ALLOW_ALL:Gn,GDPR_SETTINGS_FUNCTION_TAB_CLICKED:Gn,GDPR_SETTINGS_POLICY_LINK_CLICKED:Gn},Kn=function(e){const t=document.referrer,n=H(),r=new RegExp(`#${e}(\\?.*)?$`);if(/.html([?#].*)?$/.test(t)&&r.test(window.location.hash)&&"article"===n.contentType){const e=t.split("/");return e[e.length-2]}return null},Fn=Ot().get("autorefresh");Ot().remove("autorefresh");const zn=()=>Fn,Hn=()=>{try{if("localStorage"in window){const e=window.localStorage.getItem("mol-fe-swipe-funnel-status");if(e){const t=JSON.parse(e);if(t&&"string"==typeof t)return t}}}catch(e){}return null},$n=()=>{const e=Ot().get("mol-home"),{renderPlatform:t}=H();return"mobile"===t||e?"-no-overlay":""},Yn=()=>{const e=$n();try{const t=Ot().get("mol-home");if(t)return`${t}${e}`}catch(e){}return e?`undefined${e}`:null},qn=e=>{try{if(!("localStorage"in window))return null;const t=window.localStorage.getItem(`mol-fe-home-channel-${e}`);if(t)return JSON.parse(t)}catch(e){}return null},Xn="not_loaded",Zn=async()=>{const{pageType:e}=Y();if("article"!==e)return;return"sophi"===await(window?.molSophiDecisionPromise)&&window.molSophiPaywallOutcome?.isPaywalled?"isPaywalled":(()=>{const{isPaywalled:e,hasBeenPaywalled:t,pageType:n,neverPaywall:r}=Y(),o=!window.getIsPaywalledForCountry||window.getIsPaywalledForCountry(),i=window.getIsPaywallEligible&&window.getIsPaywallEligible();if("article"===n)return e||t?!e&&t?"hasBeenPaywalled":!r&&e&&i&&!o?"isPaywalledForOthers":!r&&e&&i&&o?"isPaywalled":r||!e||i?"invalid":"isRestricted":"none"})()},Jn=()=>{try{if(window.getIsPaywallSubscriber&&window.getIsPaywallSubscriber())return"subscriber";if(window.DM.isLoggedIn)return"registered"}catch(e){J().error("Error determining user paywall status",e)}return"none"},Qn=()=>{try{return window.getPaywallEntitlements&&window.getPaywallEntitlements()||null}catch(e){J().error("Error determining user paywall entitlements",e)}return null},er=()=>{try{return window.getOneAccountUserId&&window.getOneAccountUserId()||null}catch(e){J().error("Error determining oneAccountUserId",e)}return null},tr=(e,t,n)=>t?n?t[e]||Xn:t[e]:Xn,nr=e=>{const t=window?.sophi?.dataLayer,n=window?.molSophiFeatureOff,r=n?Xn:e;let o=window.molSophiConsentUsed||"";n&&(o+=`-er-${n}`);const i={raw_sophi_context:tr("context",t,n),raw_sophi_decision_source:r,raw_sophi_experiments_code:tr("experimentsCode",t,n),raw_sophi_inputs:tr("inputs",t,n),raw_sophi_trace:tr("trace",t,n),sophi_consent_received:o,sophi_context:t?.context,sophi_decision_source:r,sophi_experiments_code:t?.experimentsCode,sophi_inputs:t?.inputs,sophi_trace:t?.trace};return(n||i.sophi_decision_source===Xn)&&(delete i.sophi_context,delete i.sophi_experiments_code,delete i.sophi_inputs,delete i.sophi_trace),i},rr=()=>{try{const e=document.querySelectorAll("span.is-paywalled:not([data-content-propensity])").length;let t=0;const n=window.molSophiPaywallSignpostOutcomes||{};for(let e=1;e<6;e++)"mailplus"===n[e]&&(t+=document.querySelectorAll(`span.is-paywalled[data-content-propensity="${e}"]`).length);return{dm_lozenge_count:e,sophi_lozenge_count:t}}catch(e){return null}};let or,ir,ar,sr,cr,lr=!1;const ur=()=>{try{"localStorage"in window&&!lr&&(or=window.localStorage.getItem("module_tracking"),ir=window.localStorage.getItem("module_tracking_name"),ar=window.localStorage.getItem("module_tracking_list_position"),sr=window.localStorage.getItem("module_tracking_pixel_depth"),cr=window.localStorage.getItem("module_tracking_article_pos_channel"),lr=!0,or&&window.localStorage.removeItem("module_tracking"),ir&&window.localStorage.removeItem("module_tracking_name"),ar&&window.localStorage.removeItem("module_tracking_list_position"),sr&&window.localStorage.removeItem("module_tracking_pixel_depth"),cr&&window.localStorage.removeItem("module_tracking_article_pos_channel"))}catch(e){}return{moduleArticlePositionChannel:cr,moduleListPosition:ar,moduleName:ir,modulePixelDepth:sr,moduleTracking:or}};let dr=!1;const pr=()=>{try{if("visibilityState"in document&&"visible"===document.visibilityState)return 1}catch(e){}return 2},fr=async function(e,t){const n=H(),r=Y(),o=n.dmtvEpisode||null;let i={};zn()&&!dr&&(dr=!0,i={autoRefresh:pr()});const a=[],s=ke();if(s&&s.length)for(const e of s)a.push(`track:${e}`);n.feTag&&a.push(`feTag:${n.feTag}`);const c=Hn();c&&a.push(`swipe:${c}`);const l=Yn();l&&a.push(`track:mobilehometab${l}`);qn("signpost-last")&&a.push("track:signpost-shown");const{geo:u,region:d}=r;if("GB"===u&&"SC"===d&&a.push("region:scotland"),window.getIsPaywallPuzzlesUser&&window.getIsPaywallPuzzlesUser()&&a.push("track:mailplus-puzzles-user"),window.getIsPaywallMagazinesUser){await window.getIsPaywallMagazinesUser(!0)&&a.push("track:mailplus-magazines-user")}const p=await(async()=>Vt()?[]:(await Promise.race([Bt(),jt(1e3)])||[]).map((e=>{const{name:t,variation:n}=e||{};return`vwo:${t}:${n}`})))();for(const e of p)a.push(e);const f=Jn();if("home"===n.contentType||"topic"===n.contentType){let e=n.subChannel;if(n.channel===n.subChannel&&["/home","/ushome","/auhome"].includes(n.channel)&&"mobile"===n.renderPlatform){e+="showbiz"===(t&&t.mobileHomeTabActive||Ot().get("mol-home")||"news")?"/tvshowbiz":""}xn.tedEvent("cview",{channel:e,dmtvEpisode:o,tags:a.join(","),userStatus:f,...i})}else if("article"===n.contentType){const e=tn.isMobile||tn.isTablet?null:Kn("video"),{articleType:t,liveBlog:s,openwebEnabled:c,sources:l,sponsored:u}=r,d="true"===u||!0===u,p=await Zn();n.isFeatureArticle?a.push("feature-article"):"permabox"===t?a.push("permabox"):s?a.push("live-blog"):"chat"===t?a.push("chat-article"):a.push("normal-article"),a.push(e?"videos-link":"no-links"),c&&a.push("track:openwebEnabled"),d&&a.push("sponsored");const m=(()=>{try{const{moduleTracking:e}=ur(),t=e&&e.match(/\^(swipe(bar|tutorial)?)\^/);return t&&t[1]||null}catch(e){return null}})();m&&a.push(`track:${m}`),xn.tedEvent("view",{dmtvEpisode:o,openwebEnabled:c?1:0,paywallStatus:p,tags:a.join(","),userStatus:f,...i,...l?{sources:l}:{}})}else"profile"!==n.contentType&&"login"!==n.contentType&&"search"!==n.contentType||(a.push(n.contentType),xn.tedEvent("cview",{authors:[n.authorName],tags:a,...i}))},mr={FEATURE_ARTICLE:function(e,t){xn.tedEvent("page_event",{actions:[{action:"max",name:"feature-article-page",value:Number(t.pageNumber.split("/")[0])},{action:"set",name:"feature-article-length",value:Number(t.pageNumber.split("/")[1])}]})},GALLERY_ADVERT_STATS:function(e,t){xn.tedEvent("ad-tracking",{adverts:t.stats,type:t.type})},PAGE_AUTOREFRESH_EVENT:()=>{xn.tedEvent("page_event",{action:"store",name:"autorefresh",value:"event"})},PAGE_COMMENT_TAB_SWAPPED:function(e,t){xn.tedEvent("page_event",{action:"store",name:"rc_tab_select",value:{tab:t.tab}})},PAGE_MOBILE_TAB_CHANGE:fr,PAGE_RENDER_STARTED:fr},_r={PAGE_AD_DISPLAYED(e,t){xn.tedEvent("ad-tracking",{type:t.type})},PAGE_AD_ERRORS(e,t){J().debug("TED Ad Error Event",t),xn.tedEvent("ad-errors",{errorMsg:JSON.stringify(t),type:"ad-errors"})},PAGE_AD_STATS(e,t){xn.tedEvent("ad-stats",{stats:JSON.stringify(t),type:"ad-stats"})}},hr=function(e){return(e||"").replace(/[\W_]+/g,"").toLowerCase()},gr=function(e){return e&&!isNaN(e)?e:null},Er=function(e){return{googleplus:"google",gplus:"google",plusone:"google"}[e]||hr(e)},vr={SOCIAL_BUTTON_CLICKED(e,t){xn.tedEvent("social-event",{"social-event":t.type})},SOCIAL_SHARE_CLICKED(e,t){const n={article:gr(t.articleId),loc:hr(t.placement),on:Er(t.site)};t.videoId&&(n.videoId=t.videoId),t.referenceId&&(n.referenceId=t.referenceId),xn.tedEvent("share",n)},SYNDSHARE_POST(e,t){xn.tedEvent("share",{article:gr(t.article),loc:"syndshare",on:"synd_"+t.on})}},yr=function(e,t){const n=t.dmtvEpisode||null;"chromeless"!==t.trackingType&&xn.tedEvent("video-event",{action:e,adBlockStatus:t.adBlockStatus||"UNKNOWN",adErrorCode:t.adErrorCode,adErrorData:t.adErrorData,adSdk:t.adSDK,autoplay:t.autoplay,currentSrc:t.currentSrc,currentType:t.currentType,dmtvEpisode:n,duration:t.offset,errorMessage:t.errorMessage,id:t.videoId,initial:t.initialVideo,ito:t.ito,module:t.trackingType,percent:0===t.duration?0:t.offset/t.duration*100,play:t.play,recommendationModel:t.recommendationModel,referenceId:t.referenceId,title:t.displayName,version:t.version,videoChannel:t.videoChannel,videoPlayerType:t.playerId})},wr={VIDEO_ADVERT_ABORTED:yr,VIDEO_ADVERT_COMPLETED:yr,VIDEO_ADVERT_FAILED:yr,VIDEO_ADVERT_STARTED:yr,VIDEO_BRANDED_CONTENT_PROGRESS:yr,VIDEO_CONFIG_CHANGE:function(e,t){"chromeless"!==t.trackingType&&xn.tedEvent("page_event",{action:"set",name:e,play:t.play,value:t.value})},VIDEO_CONTENT_ABORTED:yr,VIDEO_CONTENT_COMPLETED:yr,VIDEO_CONTENT_STARTED:yr,VIDEO_EXTRA:function(e,t){"chromeless"!==t.trackingType&&xn.tedEvent("video-event",{action:e,adBlockStatus:t.adBlockStatus||"UNKNOWN",adSdk:t.adSDK,autoplay:t.autoplay,currentSrc:t.currentSrc,currentType:t.currentType,duration:t.offset,extra:{advertPlaying:t.advertPlaying,articleLinkClicked:t.articleLinkClicked,articleLinkHovered:t.articleLinkHovered,articleUrl:t.articleUrl,contentPlaying:t.contentPlaying,expand:t.fullscreen,mute:t.muted,playerClosed:t.playerClosed,timeSinceStartOfPlayer:t.timeSinceStartOfPlayer},id:t.videoId,initial:t.initialVideo,module:t.trackingType,percent:0===t.duration?0:t.offset/t.duration*100,play:t.play,referenceId:t.referenceId,title:t.displayName,version:t.version,videoChannel:t.videoChannel,videoPlayerType:t.playerId})},VIDEO_PROGRESS:function(e,t){"chromeless"!==t.trackingType&&t&&0!==t.ratio&&xn.tedEvent("video-event",{action:e,duration:t.offset,id:t.videoId,ito:t.ito,module:t.trackingType,percent:100*t.ratio,play:t.play,recommendationModel:t.recommendationModel,title:t.displayName,version:t.version,videoPlayerType:t.playerId})},VIDEO_STREAM_FAILED:yr,VIDEO_STREAM_STARTED:yr},Ir={},br="carousel_swipe",Sr=(e,t)=>(n,r)=>{Ir[t]||(Ir[t]=0),Ir[t]++;const o={video_player_type:"mobile up next"};t===br?o.swipes=Ir[t]:(r&&r.videoPosition&&(o.module_click_list_position=Number(r.videoPosition)),o.clicks=Ir[t]),xn.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:o})},Or={VIDEO_CAROUSEL_CLICK:Sr("video","carousel_click"),VIDEO_CAROUSEL_SWIPE:Sr("video",br),VIDEO_THUMBNAIL_CLICK:Sr("video","thumbnail_click")},Ar=function(e,t){xn.tedEvent("push",t)},Lr={WEB_PULL_NOTIFICATION_CLICK:function(e,t){xn.tedEvent("pull",t)},WEB_PUSH_NOTIFICATION_CLICK:Ar,WEB_PUSH_PRE_PROMPT_CLICK:Ar,WEB_PUSH_PRE_PROMPT_IMPRESSION:Ar,WEB_PUSH_PROMPT_CLICK:Ar,WEB_PUSH_PROMPT_IMPRESSION:Ar},Tr=e=>{xn.tedEvent("page_event",{action:"set",name:`remixd_${e}`,value:Date.now()})},Cr={REMIXD_COMPLETE:()=>Tr("complete"),REMIXD_ERROR:()=>Tr("error"),REMIXD_IMPRESSION:()=>Tr("impression"),REMIXD_MUTE:()=>Tr("mute"),REMIXD_PAUSE:()=>Tr("pause"),REMIXD_PLAY:()=>Tr("play")},Pr=(e,t)=>(n,r)=>{const{campaignId:o}=r;xn.tedEvent("page_event",{action:"set",name:`${e}_${o}_${t}`,value:Date.now()})},Mr={GUESTBOOK_IMPRESSION:Pr("guestbook","impression"),GUESTBOOK_LOADING_ERROR:Pr("guestbook","loading_error"),GUESTBOOK_SUBMIT_ERROR:Pr("guestbook","submit_error"),GUESTBOOK_SUBMIT_SUCCESS:Pr("guestbook","submit_success")},Nr={PROMOTIONAL_SLOT_EVENT:(e,t)=>{if(!t||"string"!=typeof t.xpModuleName||"string"!=typeof t.eventName)return J().error("[mol-fe/mol-fe-tracking] ted.promotionalSlot.createHandler.invalidProps",t),null;const n=t.xpModuleName.substring(0,t.xpModuleName.indexOf("@")),{eventName:r}=t;return xn.tedEvent("page_event",{action:"set",name:`promotional_slot_${n}_${r}`,value:Date.now()}),!0}},Rr=(e,t)=>()=>{xn.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:Date.now()})},Dr={SWIPE_BAR_SHOWN:Rr("swipe_bar","shown"),SWIPE_TUTORIAL_CLOSE:Rr("swipe_tutorial","close"),SWIPE_TUTORIAL_SHOWN:Rr("swipe_tutorial","shown")},kr={},xr=e=>(t,n)=>((e,t)=>{kr[e]||(kr[e]=0),kr[e]++,xn.tedEvent("page_event",{action:"set",name:`comments_${e}`,value:t&&void 0!==t.value?t.value:kr[e]})})(e,n),Ur={COMMENTS_ADD_COMMENT_CLICK:xr("add_comment_click"),COMMENTS_CLEAR:xr("clear"),COMMENTS_CLICK:xr("click"),COMMENTS_DELETE:xr("delete"),COMMENTS_DOWNVOTE:xr("downvote"),COMMENTS_IMPRESSION:xr("impression"),COMMENTS_LOAD_TIME:xr("load_time"),COMMENTS_LOGIN_REDIRECT:xr("login_redirect"),COMMENTS_MASTHEAD_CLICK:xr("masthead_click"),COMMENTS_NEW_COMMENT_CLICK:xr("new_comment_click"),COMMENTS_NOTIF_CLICK:xr("notif_click"),COMMENTS_OVERLAY_CLOSE:xr("overlay_close"),COMMENTS_OVERLAY_OPEN:xr("overlay_open"),COMMENTS_PAGINATION_CLICK:xr("pagination_click"),COMMENTS_PROFILE_CLICK:xr("profile_click"),COMMENTS_REPLY_CLICK:xr("reply_click"),COMMENTS_REPLY_SUBMIT:xr("reply_submit"),COMMENTS_REPLY_SUBMIT_SUCCESS:xr("reply_submit_success"),COMMENTS_REPORT_CLICK:xr("report"),COMMENTS_SHOW_MORE_CLICK:xr("show_more"),COMMENTS_SUBMIT_COMMENT:xr("submit"),COMMENTS_SUBMIT_SUCCESS:xr("submit_success"),COMMENTS_UPVOTE:xr("upvote"),COMMENTS_VIEW:xr("view"),COMMENTS_VIEW_ALL:xr("view_all"),SOCIAL_SHARE_COMMENTS:xr("added")};var Br,jr;const Vr={MASTHEAD_CLICK:(Br="masthead",jr="click",(e,t)=>{const{mastheadName:n}=t;xn.tedEvent("page_event",{action:"set",name:`${Br}_${n}_${jr}`,value:Date.now()})})},Gr=(e,t)=>(n,r)=>{const{value:o}=r||{};xn.tedEvent("page_event",{action:"set",name:`${e}_${t}${o?`_${o}`:""}`,value:Date.now()})},Wr={COMMERCE_XP_CLICK:Gr("commerce_xp","click"),COMMERCE_XP_IMPRESSION:Gr("commerce_xp","impression"),COMMERCE_XP_VIEW_MORE:Gr("commerce_xp","view_more"),COMMERCE_XP_VIEWABLE:Gr("commerce_xp","viewable")},Kr={HUBS_HEADER_AUDIO_CLICK:((e,t)=>(n,r)=>{const{articlePosition:o}=r||{};xn.tedEvent("page_event",{action:"set",name:`${e}_${t}${o?`_${o}`:""}`,value:Date.now()})})("hubs_header_audio","click")},Fr=Kr,zr={HUBS_ARTICLE_LIST_XP_READ_MORE:((e,t)=>(n,r)=>{const{articlePosition:o}=r||{};xn.tedEvent("page_event",{action:"set",name:`${e}_${t}${o?`_${o}`:""}`,value:Date.now()})})("hubs_article_list_xp","read_more")},Hr=zr,$r=(e,t)=>()=>{xn.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:Date.now()})},Yr={COMMENT_CTA_CLICK:$r("commentcta","click"),COMMENT_CTA_IMPRESSION:$r("commentcta","impression")},qr={},Xr=e=>(t,n)=>{return qr[r=e]||(qr[r]=0),qr[r]++,void xn.tedEvent("page_event",{action:"set",name:`mobile_menu_${r}`,value:qr[r]});var r},Zr={MOBILE_MENU_COMMENT:Xr("comment"),MOBILE_MENU_DESKTOP_SITE:Xr("desktop_site"),MOBILE_MENU_NAV_CLOSE:Xr("nav_close"),MOBILE_MENU_NAV_OPEN:Xr("nav_open")},Jr={},Qr={PAGE_FURNITURE_CLICKED:(e,t)=>{const n=t&&t.furnitureName;if(!n)return;const r=n.replace(/\s/g,"_");Jr[r]||(Jr[r]=0),Jr[r]++,xn.tedEvent("page_event",{action:"set",name:`furniture_${r}`,value:Jr[r]})}},eo={},to=e=>{eo[e]||(eo[e]=0),eo[e]++,xn.tedEvent("page_event",{action:"set",name:`mobile_homepage_${e}`,value:eo[e]})},no={MOBILE_HOME_PAGE_NAV:(e,t)=>{const{action:n}=t;to(`puff_module_${n.replace(/\s/g,"_")}`)},MOBILE_HOME_PAGE_OVERLAY:()=>to("overlay_display"),MOBILE_HOME_PAGE_SIGNPOST_CLICK:()=>to("signpost_click"),MOBILE_HOME_PAGE_SIGNPOST_DISMISS:()=>to("signpost_dismiss"),MOBILE_HOME_PAGE_SIGNPOST_DISPLAY:()=>to("signpost_display"),MOBILE_HOME_PAGE_SWIPE:(e,t)=>{const{action:n,label:r}=t;to(`${n}_${r}`)},MOBILE_HOME_PAGE_VIEW:(e,t)=>{const{actionSource:n}=t,r=Ot().get("mol-home"),o=Ot().get("mol-home-default-channel");to(`${n||"overlay"}_choice_${r}${o?`_geo_${o.toLowerCase()}`:""}`)}},ro=no,oo={},io=e=>(t,n)=>((e,t)=>{oo[e]||(oo[e]=0),oo[e]++,xn.tedEvent("page_event",{...t,action:"set",name:`firework_video_carousel_${e}`,value:oo[e]})})(e,n),ao={FIREWORK_VIDEO_CAROUSEL_ERROR:io("error"),FIREWORK_VIDEO_CAROUSEL_IMPRESSION:io("carousel_impression"),FIREWORK_VIDEO_CAROUSEL_PLAYER_NAVIGATION:io("player_navigation"),FIREWORK_VIDEO_CAROUSEL_PLAYER_QUIT:io("player_quit"),FIREWORK_VIDEO_CAROUSEL_PLAYER_TRANSITION:io("player_transition"),FIREWORK_VIDEO_CAROUSEL_READY:io("carousel_ready"),FIREWORK_VIDEO_CAROUSEL_THUMBNAIL_CLICK:io("thumbnail_click"),FIREWORK_VIDEO_CAROUSEL_VIDEO_CLICK_CTA:io("video_click_cta"),FIREWORK_VIDEO_CAROUSEL_VIDEO_CLICK_SHARE:io("video_click_share"),FIREWORK_VIDEO_CAROUSEL_VIDEO_COMPLETE:io("video_complete"),FIREWORK_VIDEO_CAROUSEL_VIDEO_FIRST_QUARTILE:io("video_first_quartile"),FIREWORK_VIDEO_CAROUSEL_VIDEO_IMPRESSION:io("video_impression"),FIREWORK_VIDEO_CAROUSEL_VIDEO_MID_POINT:io("video_mid_point"),FIREWORK_VIDEO_CAROUSEL_VIDEO_SESSION:io("video_session"),FIREWORK_VIDEO_CAROUSEL_VIDEO_START:io("video_start"),FIREWORK_VIDEO_CAROUSEL_VIDEO_THIRD_QUARTILE:io("video_third_quartile")},so={},co=(e,t)=>()=>{so[t]||(so[t]=0),so[t]++,xn.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:so[t]})},lo={PUZZLE_COMPLETED:co("puzzle","completed"),PUZZLE_RESTARTED:co("puzzle","restarted"),PUZZLE_SOCIAL_SHARE:co("puzzle","social_share"),PUZZLE_STARTED:co("puzzle","started")},uo=(e,t)=>(n,r)=>{const{value:o}=r||{};xn.tedEvent("page_event",{action:"set",name:`${e}_${t}${o?`_${o}`:""}`,value:Date.now()})},po={ARTICLE_PREVIEW_XP_CLICK:uo("article_preview_xp","click"),ARTICLE_PREVIEW_XP_IMPRESSION:uo("article_preview_xp","impression"),ARTICLE_PREVIEW_XP_VIEWABLE:uo("article_preview_xp","viewable")},fo={},mo=(e,t)=>(n,r)=>{fo[t]||(fo[t]=0),fo[t]++,xn.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:r||fo[t]})},_o={RELATED_REPLACE_CLICK:mo("related_replace","click"),RELATED_REPLACE_IMPRESSION:mo("related_replace","impression"),RELATED_REPLACE_VIEWABLE:mo("related_replace","viewable")},ho={},go=e=>()=>{ho[e]||(ho[e]=0),ho[e]++,xn.tedEvent("page_event",{action:"set",name:e,value:ho[e]})},Eo={...{CMP_LEVEL_ONE_ACCEPT:go("cmp_level_1_accept"),CMP_LEVEL_ONE_CONVERSION:go("cmp_level_1_conversion"),CMP_LEVEL_ONE_LOGIN:go("cmp_level_1_login"),CMP_LEVEL_ONE_PRIVACY_SETTINGS:go("cmp_level_1_privacy_settings"),CMP_LEVEL_ONE_SUBSCRIBE:go("cmp_level_1_subscribe"),CMP_LEVEL_TWO_CONVERSION:go("cmp_level_2_conversion"),CMP_LEVEL_TWO_SAVE_EXIT:go("cmp_level_2_save_exit"),CMP_LEVEL_TWO_SUBSCRIBE:go("cmp_level_2_subscribe")},...{ESSENTIAL_ACCOUNT_LINK_COMPLETE:go("essential_account_link_complete"),ESSENTIAL_ACCOUNT_LINK_HELP_CLICK:go("essential_account_link_help_click"),ESSENTIAL_ACCOUNT_LINK_PROMPT:go("essential_account_link_prompt"),ESSENTIAL_ACCOUNT_LINK_RESEND:go("essential_account_link_resend_email_click"),ESSENTIAL_RESTORE_PURCHASE_CLICK:go("essential_restore_purchase_click")}},vo={},yo=(e,t)=>(n,r)=>{vo[t]||(vo[t]=0),vo[t]++,xn.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:vo[t]}),"conversion"===t&&xn.tedEvent("page_event",{action:"set",name:"paywall_transaction_id",value:r.transactionId||"unknown"})},wo={PAYWALL_ACCOUNT_LINK_COMPLETE:yo("paywall","account_link_complete"),PAYWALL_ACCOUNT_LINK_HELP:yo("paywall","account_link_help"),PAYWALL_ACCOUNT_LINK_PROMPT:yo("paywall","account_link_prompt"),PAYWALL_ACCOUNT_LINK_RESEND:yo("paywall","account_link_resend"),PAYWALL_APPLEPAY_CONVERSION:yo("applepay","conversion"),PAYWALL_APPLEPAY_ERROR_CLICK:yo("applepay","error_click"),PAYWALL_APPLEPAY_ERROR_VIEW:yo("applepay","error_view"),PAYWALL_APPLEPAY_FAILURE_CLICK:yo("applepay","failure_click"),PAYWALL_APPLEPAY_FAILURE_VIEW:yo("applepay","failure_view"),PAYWALL_APPLEPAY_SECONDARY_CTA:yo("applepay","secondary_cta"),PAYWALL_APPLEPAY_STEP_LANDING:yo("applepay","step1_landing"),PAYWALL_APPLEPAY_STEP_PAYMENT:yo("applepay","step4_payment_details"),PAYWALL_CONVERSION:yo("paywall","conversion"),PAYWALL_CONVERSION_BANNER:yo("paywall","conversion"),PAYWALL_CONVERSION_PROFILE:yo("paywall","conversion"),PAYWALL_HOMEMODULE_ARTICLE_CLICK:yo("paywall","article_click"),PAYWALL_HOMEMODULE_ARTICLE_COMMENTS_CLICK:yo("paywall","article_comments_click"),PAYWALL_HOMEMODULE_CHANNEL_CLICK:yo("paywall","channel_click"),PAYWALL_HOMEMODULE_SIGNUP_CLICK:yo("paywall","signup_homemodule"),PAYWALL_IMPRESSION:yo("paywall","impression"),PAYWALL_LOGIN_CLICK:yo("paywall","login_click"),PAYWALL_MASTHEAD_SIGNUP_CLICK:yo("paywall","signup_masthead"),PAYWALL_PROFILE_SIGNUP_CLICK:yo("paywall","signup_profile"),PAYWALL_RESTORE_PURCHASE_CLICK:yo("paywall","restore_purchase_click"),PAYWALL_SIGN_UP:yo("paywall","signup_article"),PAYWALL_VIEWABLE:yo("paywall","viewable"),PAYWALL_ZEPHR_FAIL_OPEN:yo("paywall","zephr_fail_open")},Io={},bo={FACTBOX_READ_MORE_CLICK:((e,t)=>(n,r)=>{Io[t]||(Io[t]=0),Io[t]++,xn.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:r||Io[t]})})("factbox","read_more_click")},So=bo,Oo={},Ao=(e,t)=>(n,r)=>{Oo[t]||(Oo[t]=0),Oo[t]++,xn.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:r||Oo[t]})},Lo={IFRAME_EMAIL_IMPRESSION:Ao("iframe_email","impression"),IFRAME_EMAIL_SUBMIT:Ao("iframe_email","submit"),IFRAME_EMAIL_SUBMIT_NO_EMAIL:Ao("iframe_email","submit_no_email"),IFRAME_EMAIL_VIEWABLE:Ao("iframe_email","viewable")},To=(e,t,n,r)=>(o,i)=>{const{pageType:a}=Y(),{channel:s,datasetId:c,newsletterScope:l}=i,u={event_category:e,event_label:n,non_interaction:Boolean(r),type_of_newsletter:`${s}_${c||"noinstance"}_${a}_${l||"unknown"}`};xn.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:u})},Co={NEWSLETTER_ERROR:To("newsletter","submit_error",null,!0),NEWSLETTER_SHOW:To("newsletter","start",null,!0),NEWSLETTER_SUBMIT:To("newsletter","submit_success",null,!0)},Po=(e,t,n)=>(r,o)=>{const{pageType:i}=Y(),{datasetId:a,pollId:s,question:c,answer:l,href:u,channel:d}=o||{},p="newsletter"===e,f={channel:d,event_category:e,event_label:p?"poll":c,href:u,non_interaction:Boolean(n),poll_answer:l,poll_id:s?String(s):s,poll_name:c,url_channel:d,...p&&a?{type_of_newsletter:`news_${a}_${"article"===i?"poll-article":"poll-channel"}`}:{}};xn.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:f})},Mo={XP_POLLS_CLICK:Po("poll","click"),XP_POLLS_IMPRESSION:Po("poll","impression",!0),XP_POLLS_SUBSCRIBED:Po("newsletter","submit_success"),XP_POLLS_VIEW:Po("poll","view",!0),XP_POLLS_VOTED:Po("poll","submit_success")},No={},Ro=(e,t)=>()=>{No[t]||(No[t]=0),No[t]++,xn.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:No[t]})},Do={XP_BUTTON_LOGO_LINK_CLICK:Ro("xp_button_logo_link","click"),XP_BUTTON_LOGO_LINK_IMPRESSION:Ro("xp_button_logo_link","impression")},ko=Object.assign({},Bn,jn,Vn,ao,Wn,mr,_r,vr,wr,Or,Lr,Cr,Mr,Nr,Vr,Wr,Fr,Hr,Dr,Ur,Yr,Zr,Qr,ro,lo,po,wo,_o,Eo,So,Lo,Co,Mo,Do);Ht("TED",ko);const xo=xn,Uo="mol-fe-signin-return-flow-variant";let Bo;const jo=()=>{if(Bo)return Bo;const e=new URLSearchParams(window.location.search),t=(e=>{try{if("localStorage"in window){const t=window.localStorage.getItem(e);return t?JSON.parse(t):null}}catch(e){}return null})(Uo)||e.get("flowVariant")||e.get("flow_variant");return Bo=t&&t.replace(/[^\w_].*/,""),(()=>{try{"localStorage"in window&&window.localStorage.removeItem(Uo)}catch(e){}})(),Bo},Vo=function(e,t){return e[t]||(e[t]=new C),e[t]},Go=function(e,t,n){if(typeof t!==n)throw new Error(`Missing or invalid param ${e}`)},Wo={},Ko=function(e){return Go("projectName",e,"string"),Vo(Wo,e).promise},Fo=function(e,t){t&&Vo(Wo,e).resolve(t)},zo=new T,Ho={},$o=[],Yo=function(e){return Go("componentName",e,"string"),Ho[e]||(Ho[e]=[]),Ho[e]},qo=function(e,t){Go("componentName",e,"string"),Go("cb",t,"function");const n=zo.subscribe(`${e}.add`,((e,n)=>t(n)));return $o.push(n),n},Xo=function(e,t){Go("componentName",e,"string"),Go("cb",t,"function");const n=zo.subscribe(`${e}.remove`,((e,n)=>t(n)));return $o.push(n),n},Zo=function(e,t){Go("componentName",e,"string"),t&&Ho[e]&&(Ho[e]=Ho[e].filter((e=>e!==t)),zo.publish(`${e}.remove`,t))},Jo=function(e,t){return Go("componentName",e,"string"),Ho[e]||(Ho[e]=[]),t&&!Ho[e].includes(t)&&(Ho[e].push(t),zo.publish(`${e}.add`,t)),{remove:()=>Zo(e,t)}},Qo=()=>{(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?x.go("DOM_READY"):(document.addEventListener("DOMContentLoaded",(()=>x.go("DOM_READY"))),window.addEventListener("load",(()=>x.go("DOM_READY"))))},ei=()=>{document.body?x.go("BODY_READY"):setTimeout(ei,5)};Qo(),ei();const ti=function(e,t={}){if(!e)throw new Error('loadStyle: Missing required "href" parameter');const n=function(e,t="all"){return Array.from(document.styleSheets).find((({href:n,ownerNode:r})=>n===e&&r.media===t))}(e,t.media);return n?Promise.resolve(n.ownerNode):new Promise(((n,r)=>{const o=document.createElement("link"),i=t.before||document.querySelector("script");o.media="only x",o.rel="stylesheet",o.href=e;const a=()=>{Array.from(document.styleSheets).some((({ownerNode:e})=>e===o))?n(o):setTimeout(a,10)};o.onload=()=>n(o),o.onerror=()=>r(new URIError(`The stylesheet "${e}" is not accessible.`)),x("BODY_READY",(()=>{i.parentNode.insertBefore(o,i)})),a()})).then((e=>(e.media=t.media||"all",e)))},ni=()=>{Array.from(document.querySelectorAll("link[rel=preload][as=style]")).forEach((e=>{e.rel=null,ti(e.href,{before:e}).then((()=>e.parentNode.removeChild(e))).catch((e=>J().error(e)))}))},ri=()=>{if((()=>{try{return document.createElement("link").relList.supports("preload")}catch(e){return!1}})())return J().debug('"Resource Hints: preload" is supported'),!1;if(J().debug('Polyfilling "Resource Hints: preload"'),ni(),"complete"!==document.readyState){const e=setInterval(ni,100);window.addEventListener("load",(()=>clearInterval(e)))}return!0},oi=function(e){J().warn(`${e} has been deprecated`)},ii=function(){oi("loadDeferredImgs")};ii.pause=function(){oi("loadDeferredImgs.pause")},ii.resume=function(){oi("loadDeferredImgs.resume")},ii.load=function(){oi("loadDeferredImgs.load")},ii.imagesCache={getImages(){oi("loadDeferredImgs.imagesCache.getImages")},popImages(){oi("loadDeferredImgs.imagesCache.popImages")},resetCache(){oi("loadDeferredImgs.imagesCache.resetCache")}};const ai=ii,si=function(e,t={}){if(!e)throw new Error('loadScript: Missing required "src" parameter');return new Promise(((n,r)=>{const o=document.createElement("script");let i;o.type=t.type||"text/javascript",t.async&&(o.async=!0),t.defer&&(o.defer=!0),o.onerror=()=>r(new URIError(`The script ${e} is not accessible.`)),o.onload=()=>n(o),i=t.beforeCurrentScript&&document.currentScript?document.currentScript:document.querySelector("script"),i.parentNode.insertBefore(o,i),o.src=e}))};Qo(),ei();const ci=e=>(J().warn('"onDocReady" has been deprecated. please use "later(\'DOM_READY\', callback);" instead'),x("DOM_READY",e));var li=n(416);let ui=()=>{};Promise.all([Ko("molFeDomHelperScroll"),x("DOM_READY")]).then((([e])=>{e.enableTracking&&(ui=(0,li.io)())})).catch((e=>{throw new Error(e)}));const di={createInteractionMethod:li.gW,createLegacyInteractionMethod:async e=>{try{ui(),await e;const{enableTracking:t}=await Ko("molFeDomHelperScroll");t&&(ui=(0,li.io)())}catch(e){throw new Error(e)}},getScrollLeft:li.v_,getScrollTop:li.hY,reenableWindowScrollMethods:ui,scroll:li.W2,scrollBy:li.HN,scrollByLines:li.M$,scrollByPages:li.Tw,scrollTo:li.VG,scrollToElement:li.PA,scrollToElementIfNeeded:li.Dn,setHash:li.hd,setScrollLeft:li.ND,setScrollTop:li.LR};Qo(),ei(),ri();const pi=e=>{try{if("string"==typeof e){return new URL(e).hostname}}catch(e){J().error("Failed to get hostname",e)}},fi=e=>{try{if("string"==typeof e){return new URL(e).pathname}}catch(e){J().error("Failed to get pathname",e)}},mi=()=>new Promise((e=>{x("GA_CONFIG_READY",(()=>{e(Ko("GA_CONFIG_PROPS"))}))})),_i=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"],hi=e=>_i.includes(e),gi=e=>"GB"===e,Ei=["CA","VA","CO","CT","UT","TX","OR","MT","IA","DE","TN","IN"],vi=(e,t)=>"US"===e&&Ei.includes(t),yi=()=>{const{geo:e,region:t}=Y(),n=hi(e),r=vi(e,t),o=gi(e);return{geo:e,isGdprApplicable:o||n||r,isInEu:n,isInGb:o,isInUsStateWithGdprLaws:r,region:t}},wi=()=>{const e=(()=>{try{const e=window.localStorage.getItem("mol-fe-paywall-entitlement");if(!e)return null;const t=JSON.parse(e),n=t?.registeredUserId;if(n)return n}catch(e){}return null})();if(!e)return null;const t=window.localStorage.getItem(`dmg.ads.consentOrPay.${e}.mol-reject-all.tcf.cache`);if(!t)return null;try{const e=JSON.parse(t);if(e)return e}catch(e){}return null},Ii="consented",bi="do not sell",Si="not enforced",Oi="partial consented",Ai="rejected",Li="undecided",Ti=()=>{try{const e=wi();if(e)return e;const t=(()=>{const e=window.localStorage.getItem("mol.ads.cmp.tcf.cache");if(e)try{const t=JSON.parse(e);if(t)return t}catch(e){}return null})();if(t)return t}catch(e){}return null},Ci=()=>{switch((()=>{let e;try{e=window.localStorage.getItem("mol.ads.cmp.consent")}catch(e){}return e})()){case"yes":return Ii;case"no":return bi;default:return Li}},Pi=()=>{const{isGdprApplicable:e,isInGb:t,isInEu:n,isInUsStateWithGdprLaws:r}=yi();return e?t||n?(()=>{const e=Ti();if(!e)return Li;switch(e?.getConsentDegree){case"yes":return Ii;case"no":return Ai;case"partial":return Oi;default:return Li}})():r?Ci():Si:Si},Mi=e=>new Promise((t=>setTimeout((()=>t(!1)),e))),Ni=()=>new Promise((async e=>{if(!window.__tcfapi){let t=!1;for(let e=0;e<10;e++)if(await Mi(500),window.__tcfapi){t=!0;break}if(!t)return void e()}{const t=await Promise.race([new Promise((e=>{window.__tcfapi("getTCData",2,(()=>{e(!0)}))})),Mi(5e3)]);if(!t)return void e()}window.__tcfapi("getValidTCData",2,(()=>{e()}))})),Ri="G-C9F47K6NW6",Di=`https://www.googletagmanager.com/gtag/js?id=${Ri}&l=molFeDataLayer`,ki="http://fbia.facebook.com/",xi=Ve("mol-fe-tracking-"),{getHostname:Ui,getPathname:Bi}=u,ji="lastNonInternalReferrer",Vi="referrer-session",Gi="referrer-external-session",Wi=e=>{if(!e)return!1;const t=Ui(e);return t&&t.match(/^www\d?\.(thisismoney|thisismoneyint)\./i)},Ki=e=>{if(!e)return!1;const t=Ui(e);return t&&t.match(/^www\d?\.(dailymail|dailymailint)\./i)},Fi=e=>!!e&&(!(!Wi(e)&&!Ki(e))||Ui(location.href)===Ui(e)),zi=()=>{const e=document.referrer;if(Fi(e))return xi.getItem(ji)||null;const t=e||"undefined";return xi.setItem(ji,t),t},Hi=()=>{const e=document.referrer;if(!Fi(e))return;return Bi(e).split("/")[1]||void 0},$i="google",Yi=["duckduckgo","yahoo","bing"],qi=[$i,...Yi],Xi=["instagram","reddit","pinterest","/t.co/","facebook","snapchat"],Zi=["dailymail","dailymailint","thisismoney","thisismoneyint","mailonsunday"],Ji=["mailsubscriptions","themailsubscriptions","mymailaccount","stagingmailplussubs.coderush","uat-dlv.nonprod-mailsubscriptions.gcpp","main-mma-preprod.coderush"],Qi="news.google",ea="com.google",ta=["drudgereport","upday","newsnow","flipboard","msn"],na="Search",ra="Direct",oa="newsletter",ia="Internal Traffic",aa="internal/autorefresh",sa="Other Websites",ca={bing:"bing",duckduckgo:"duckduckgo",google:"google websearch",googleApp:"google app",googleNews:"google news",pushNotifications:"push notifications",widgetNotifications:"widget notifications",yahoo:"yahoo"},la={"/t.co/":"twitter",facebook:"facebook",instagram:"instagram",pinterest:"pinterest",reddit:"reddit",snapchat:"snapchat"},ua=e=>e?e.toLowerCase().includes("windows-widget")?ca.widgetNotifications:e.toLowerCase().includes("push-notif")?ca.pushNotifications:null:null,da=(e,t,n)=>t.includes(e)||n.includes(e),pa=e=>{const t=document.referrer||"",n=zi()||"",r=((e,t)=>{let n=null;return Yi.some((r=>!!da(r,e,t)&&(n=ca[r],!0))),n||(da(ea,e,t)?ca.googleApp:da(Qi,e,t)?ca.googleNews:da($i,e,t)&&![ea,Qi].some((n=>da(n,e,t)))?ca.google:n)})(n,t),o=((e,t)=>{let n=null;return Xi.some((r=>!!da(r,e,t)&&(n=la[r],!0))),n})(n,t),i=ua(e);return i||(r||(o||(Zi.some((e=>t.includes(e)))?ia:document.referrer||e?((e,t)=>{for(const n of ta)if(da(n,e,t))return n;return sa})(n,t):ra)))},fa=()=>{const e=xi.getItem(Gi);if(!e)return null;const{updatedAt:t}=e;return Date.now()-t>15552e6?null:e},ma=e=>{return e?.toLowerCase?.().includes?.("newsletter")?{referrerGroup:oa,referrerType:oa}:(t=document.referrer,Ji.some((e=>t.includes(e)))&&!xe("mol-fe-paywall-came-from-purchase")?{referrerGroup:"internal/mailsubs",referrerType:ia}:((e,t)=>Ki(e)&&Wi(t)||Wi(e)&&Ki(t))(document.location.toString(),document.referrer)?{referrerGroup:Ki(document.referrer)?"internal/mol":"internal/tim",referrerType:ia}:null);var t},_a=e=>{const t=ma(e);if(t)return(({referrerGroup:e,referrerType:t})=>{const n=fa();xi.setItem(Vi,{createdAt:Date.now(),referrerGroup:e,referrerType:t,updatedAt:Date.now()}),xi.setItem(Gi,{...n||{createdAt:Date.now()},referrerGroup:e,referrerType:t,updatedAt:Date.now()})})(t),t;const n=(()=>{const e=xi.getItem(Vi);if(!e)return null;const{updatedAt:t}=e;return Date.now()-t>18e5?null:e})(),r=fa();var o;if((o=document.referrer)&&o.match(/^https:\/\/www\.dailymail(int)?\.co\.uk\/.*\/amp\/.*/i)){const e=na,t=ca.google;return xi.setItem(Vi,{createdAt:Date.now(),referrerGroup:t,referrerType:e,updatedAt:Date.now()}),xi.setItem(Gi,{...r||{createdAt:Date.now()},referrerGroup:t,referrerType:e,updatedAt:Date.now()}),{referrerGroup:t,referrerType:e}}if(n&&n.referrerGroup!==aa){if(n.updatedAt=Date.now(),xi.setItem(Vi,n),![ia,ra].includes(n.referrerType)||!r)return xi.setItem(Gi,{...r||{createdAt:Date.now()},referrerGroup:n.referrerGroup,referrerType:n.referrerType,updatedAt:Date.now()}),{referrerGroup:n.referrerGroup,referrerType:n.referrerType};if(r&&r.referrerGroup!==aa)return{referrerGroup:r.referrerGroup,referrerType:r.referrerType}}const i=pa(e),a=(e=>{const t=document.referrer||"",n=zi()||"",r=e=>da(e,n,t);return ua(e)?"Push Channels":qi.some(r)?na:Xi.some(r)?"Social":Zi.some((e=>t.includes(e)))?ia:document.referrer||e?sa:ra})(e),s=Date.now();return xi.setItem(Vi,{createdAt:s,referrerGroup:i,referrerType:a,updatedAt:s}),[ia,ra].includes(a)&&r&&r.referrerGroup!==aa?{referrerGroup:r.referrerGroup,referrerType:r.referrerType}:(xi.setItem(Gi,{...r||{createdAt:Date.now()},referrerGroup:i,referrerType:a,updatedAt:s}),{referrerGroup:i,referrerType:a})},ha="mol-fe-previous-render-platform";let ga=null;const Ea=()=>{if(ga)return ga;ga=Fi(document.referrer)?(()=>{try{return window.localStorage.getItem(ha)}catch(e){}return null})():null;const e=navigator.userAgent.match(/snapchat/i),t=navigator.userAgent.match(/BytedanceWebview/i);let{renderPlatform:n}=H();return e&&(n="snapchat"),t&&(n="tiktok"),(e=>{try{window.localStorage.setItem(ha,e)}catch(e){}})(n),ga},va=(e,t=[])=>{if("object"!=typeof e||null===e||Array.isArray(e))return"string"==typeof e?e.toLowerCase():e;const n={};let r=t=>{n[t]=va(e[t])};return Array.isArray(t)&&t.length&&(r=r=>{t.includes(r)?n[r]=e[r]:n[r]=va(e[r])}),Object.keys(e).forEach(r),n},ya=e=>"string"!=typeof e||e.startsWith("/")?e:`/${e.trim()}`,wa=()=>{const e=new Date,t=("0"+e.getDate()).slice(-2),n=("0"+(e.getMonth()+1)).slice(-2);return`${e.getFullYear()}-${n}-${t} ${("0"+e.getHours()).slice(-2)}:${("0"+e.getMinutes()).slice(-2)}:${("0"+e.getSeconds()).slice(-2)}`};var Ia=n(2304);const ba=()=>{if(Ia.Register.isWebPushSupported())switch(Notification.permission){case"default":return"eligible";case"denied":return"denied";case"granted":return"subscribed"}return"not_supported"},Sa="FB Logged-In User",Oa="FB Logged-out User",Aa="FB Registering User",La="Google Logged-In User",Ta="Google Logged-out User",Ca="Google Registering User",Pa="Guest",Ma="Twitter Logged-In User",Na="Twitter Logged-out User",Ra="Twitter Registering User",Da=function(){return Ot().get("_as")||Pa},ka=function(){switch(Da()){case Sa:case Oa:case Aa:return"facebook";case La:case Ta:case Ca:return"google";case Ma:case Na:case Ra:return"twitter";default:return"default"}},xa=()=>`${Da()}|${Ot().get("_rs")||""}`,Ua="mol-fe-last-user-id",Ba=()=>{let e=null;return window.DM&&window.DM.userId?(e=window.DM.userId,((e,t)=>{try{"localStorage"in window&&window.localStorage.setItem(e,JSON.stringify(t))}catch(e){}})(Ua,e)):e=(e=>{let t=null;try{"localStorage"in window&&(t=JSON.parse(window.localStorage.getItem(e)))}catch(e){}return t})(Ua),e},ja=e=>{if(e){const{asyncBundleVersion:t,bundleVersion:n,feTag:r,syncBundleVersion:o,videoBundleVersion:i,renderPlatform:a}=e,s="mobile"===a;return`${s?"":n}:${o}:${t}:${i}:${r}:${s?n:""}`}return":::::"},Va=e=>{if(e instanceof Date)return e.toISOString().split("T")[0]},Ga=e=>{if(e instanceof Date)return e.toISOString().split("T")[1].split(":")[0]},Wa=()=>{try{const e=new URLSearchParams(window.location.search).get("searchPhrase");if("string"==typeof e)return e.toLowerCase()}catch(e){}},Ka=(e,t)=>{if(t<0)throw new RangeError("Exponent must be positive");if(!t)return t+window.BigInt(1);let n=e,r=t;for(;--r;)n*=e;return n},Fa=e=>{let t=e;const n=(e=>e.includes(":")?6:e.includes(".")?4:null)(t);let r=window.BigInt(0),o=window.BigInt(0);if(4===n){for(const e of t.split(".").map(Number).reverse())r+=window.BigInt(e)*Ka(window.BigInt(2),window.BigInt(o)),o+=window.BigInt(8);return{number:r,version:n}}if(6===n){const e={};if(t.includes(".")&&(e.ipv4mapped=!0,t=t.split(":").map((e=>{if(e.includes(".")){const t=e.split(".").map((e=>Number(e).toString(16).padStart(2,"0")));return`${t[0]}${t[1]}:${t[2]}${t[3]}`}return e})).join(":")),t.includes("%")){let n;[,t,n]=/(.+)%(.+)/.exec(t),e.scopeid=n}const i=t.split(":"),a=i.indexOf("");if(-1!==a)for(;i.length<8;)i.splice(a,0,"");for(const e of i.map((e=>e?`0x${e}`:"0")).map(Number).reverse())r+=window.BigInt(e)*Ka(window.BigInt(2),window.BigInt(o)),o+=window.BigInt(16);return e.number=r,e.version=n,e}return null},za=[["8.27.67.23","223"],["104.28.4.1","33623"],["146.75.128.0","32256"],["172.224.224.0","97285"],["2606:54c0:180::","425542349672951312235364352"],["2606:54c0:400::","425541906951093543206125568"],["2606:54c0:680::","6615242103377994917701746688"],["2606:54c0:1d00::","14507110001396246759860076544"],["2606:54c0:4d80::","14042882486664229156772904960"],["2a02:26f7:b3c0:4000::","22370038001675620477608919040"],["2a04:4e41:0000:0000::","94298445985973994482827264"]],Ha=()=>{const{clientIP:e}=Y();return(e=>{try{if(!("BigInt"in window))return!1;const{number:t,version:n}=Fa(e)||{};if(!t)return!1;for(const e of za.filter((([e])=>e.includes(":")===(6===n)))){const[n,r]=e,{number:o}=Fa(n),i=o+window.BigInt(r);if(t>o&&t{try{const e=new URLSearchParams(window.location.search),t=e.get("trackingPagePath"),n=e.get("trackingPageTitle");if(!t&&!n||window.parent===window||!document.referrer)return null;const r={};return t&&(r.page_location=`${document.referrer}${t.replace(/^\//,"")}`),n&&(r.page_title=n),r}catch(e){}return null},Ya=()=>{try{return Object.entries(window.adsMVTResults.selectedScenarios).map((([e,t])=>`${e}=${t}`)).join(",")}catch(e){J().error("Error getting ads test scenario for GA",e)}return null},qa=async()=>{if("cookieDeprecationLabel"in navigator){return await navigator.cookieDeprecationLabel.getValue()}},Xa=Ve("mol-fe-tracking-sailthru-"),Za="session",Ja=()=>{const e=(()=>{const e=Xa.getItem(Za);return!e||!e.updatedAt||Date.now()-e.updatedAt>18e5?null:e})(),t=new URLSearchParams(window.location.search),n=t.get("st_profile")||e&&e.sailthruUserId||void 0,r=t.get("st_blast")||e&&e.sailthruBlastId||void 0;return(n||r)&&(({sailthruBlastId:e,sailthruUserId:t})=>{const n=Xa.getItem(Za);Xa.setItem(Za,{...n||{createdAt:Date.now()},sailthruBlastId:e,sailthruUserId:t,updatedAt:Date.now()})})({sailthruBlastId:r,sailthruUserId:n}),{sailthruBlastId:r,sailthruUserId:n}},Qa=()=>{try{return performance.getEntriesByType("navigation")[0].type}catch(e){return}},es="mol-fe-tracking",ts="reading_marker",ns={MARKER_CLASS_NAME:ts,eventNames:{DATA_READY:"CRT_DATA_READY"},eventBus:(()=>{const e=new EventTarget;return{dispatch:(t,n,r)=>{e.dispatchEvent(new CustomEvent(t,{detail:n,...r}))},listen:(t,n,r)=>{const o=e=>n(e.detail);return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)}}})(),shouldTrack:()=>{const{isPaywalled:e,neverPaywall:t,pageType:n}=Y(),{contentType:r}=H(),o="article"===n||"article"===r,i=!window.getIsPaywalledForCountry||window.getIsPaywalledForCountry();return o&&!(!t&&e&&i)},trackEvent:e=>{Tt.publish(Tt.CONTENT_READING_TRACKER,e)},getArticleBodyParagraphs:(e=es)=>{const t=document.querySelectorAll('[itemprop="articleBody"] p.mol-para-with-font');return 0===t.length?(J().warn(`[${e}]: No article body paragraphs found.`),null):t},getMarkers:(e=es)=>{const t=document.querySelectorAll(`.${ts}`);return 0===t.length?(J().warn(`[${e}]: No reading markers found.`),null):t},getMarkerThreshold:e=>Number.parseInt(e.dataset.threshold,10)||0},rs=()=>{if(!ns.shouldTrack())return null;const e=(()=>{const e=ns.getArticleBodyParagraphs();if(!e)return 0;let t=0;for(const n of e){const e=n.textContent.match(/\S+/g);e&&(t+=e.length)}return t})(),t=(()=>{const e=ns.getMarkers();if(!e)return 0;const t=window.innerHeight;let n=0;for(const r of e){if(r.getBoundingClientRect().top>t)continue;const e=ns.getMarkerThreshold(r);e>n&&(n=e)}return n})();return ns.eventBus.dispatch(ns.eventNames.DATA_READY,{articleWordCount:e,landingThreshold:t}),{article_word_count:e,landing_threshold:t}},{getHostname:os}=u,is="puzzlesus",as="none",ss="mol-sophi-signpost-click";let cs=null;const ls=e=>{if(cs)return cs;const t=localStorage.getItem(ss);return cs=((e,t)=>{const{isPaywalled:n,neverPaywall:r,headlineTag:o}=Y(),i=o?.toLowerCase()||"",a={articleLabel:i||as,articleLabelSource:as};if(e){const o=e.split("-");if(3!==o.length)return a;if(t===o[0]){const e=!window.getIsPaywalledForCountry||window.getIsPaywalledForCountry();if(n&&e&&!r)return{articleLabel:"mailplus"+(i?` ${i}`:""),articleLabelSource:"override"};const t=o[1]===as?"":`${o[1]} `;let a=i;return t||a||(a=as),{articleLabel:`${t}${a}`,articleLabelSource:o[2]}}}return a})(t,e),localStorage.removeItem(ss),cs};window.molSophiDecisionPromise=null;const us=async()=>{const e=H(),{articleId:t,articleTitle:n,authorName:r,channel:o,contentType:i,domain:a,loggedInStatus:s,partnerSite:c,publishedDate:l,subChannel:u,subChannel2:d,subChannel3:p,topics:f}=e,{cljGeo:m,geo:_,isPaywalled:h,openwebEnabled:g,pageType:E,paywalledCountries:v,sponsored:y,sponsorLabel:w,sponsorName:I,neverPaywall:b}=Y();let S=e.renderPlatform;const O=navigator.userAgent.match(/snapchat/i),A=navigator.userAgent.match(/BytedanceWebview/i);S=location.href.includes("/embed/gamp-video/")?"mobile amp":S,S=location.href.includes("/embed/fbia-video/")?"mobile fbia":S,O&&(S="snapchat"),A&&(S="tiktok");const L="true"===y||!0===y,T=S&&"mobile fbia"===S.toLowerCase(),C=T?ki:document.referrer,P=T&&ki||zi()||C,{ico:M,ito:N,utm_source:R}=(()=>{try{const e=location.href;return new(_e())(e,!0).query||{}}catch(e){return{}}})();let D,k;N&&!R&&(D={medium:"ito",source:N});const U=Ha();window.applePrivateRelay=U;const{moduleName:B,moduleTracking:j,moduleListPosition:V,modulePixelDepth:G,moduleArticlePositionChannel:W}=ur(),{referrerType:K,referrerGroup:F}=(e=>{const t=_a(e);return"internal traffic"===t.referrerType?{...t,referrerType:ia}:t})(N),z=xi.getItem(Vi),{sailthruBlastId:$,sailthruUserId:q}=Ja(),Z=ke();try{if("channel"===E&&o===u&&["/home","/ushome","/auhome"].includes(o)&&"mobile"===S){k=Ot().get("mol-home")||"news";const e=document.querySelector(".home-tabs-container");e&&"showbiz"===e.dataset.selectedHpTab&&(k="showbiz")}}catch(e){}const J=g||"article"!==E,Q=o===is||o===`/${is}`,ee=await(async()=>{try{if(!window.RTA.ids)return null;const t=await Promise.race([window.RTA.ids,(e=2e3,new Promise((t=>setTimeout(t,e))))]);return t&&t.page&&t.visit?{...t,visit:parseInt(t.visit,10)}:null}catch{return null}var e})();let te=null;window.molSophiDecisionPromise||(window.molSophiDecisionPromise=(async(e,t)=>{const n=await Promise.race([x("SOPHI_DECISION_READY").then((()=>"sophi")),x("OVERRIDE_READY").then((()=>"override")),new Promise((n=>setTimeout((()=>n("not_loaded")),e||t?1e3:3e3)))]);return window.molSophiDecisionSourceOnPageView=n,"not_loaded"===n&&(window.molSophiFeatureOff||(window.molSophiFeatureOff="sophi-decision-timeout")),n})(b,h)),te=await window.molSophiDecisionPromise;const ne=ls(t),re=await Zn(),oe={abm:Ot().get("gab"),acp:Ot().get("gac"),ads_mvt_test_scenario:Ya(),akamai_geo:_||"undefined",article_status:re,article_features:X(),article_id:Q?"88888888":t,article_title:n,article_label:ne.articleLabel,sophi_article_label_decision_source:ne.articleLabelSource,author_name:r,bundle_version:ja(e),campaign:D,url_channel:ya(o),chrome_sandbox_label:await qa(),clojure_geo:m||"undefined",content_group1:i,content_type:i,domain:a,ico_internal_hit:M,internal_search_terms:Wa(),ito_external_hit:N,last_referrer_group:z&&z.referrerGroup||"undefined",last_referrer_type:z&&z.referrerType||"undefined",logged_in_status:(ie=s,ie&&ie.replace(/\s+/g,"")),icoInternalHit:M,icoInternalSession:M,itoExternalHit:N,itoExternalSession:N,mobile_home_tab_active:k,mobile_home_tab_choice:Yn()||"undefined",module_click_article_pos_channel:W&&parseInt(W,10)||void 0,module_click_list_position:V,module_name:B,module_pixel_depth:G&&parseInt(G,10)||void 0,module_tracking:j,multivariant_experiments:Z&&Z.length?Z.join(","):"undefined",navigation_type:Qa(),one_account_user_id:er(),openweb_enabled:J?"true":"false",page_id:Ft()||"undefined",page_id_rta:ee?.page||"undefined",page_url:location.href||"",partner_site:c||void 0,previous_page_rendered_platform:Ea()||"undefined",article_published_date:Va(l),article_published_hour:Ga(l),puzzle_user_type:kt(),referrer:C,referrer_type:K,referrer_group:F,referring_channel:Hi()?ya(Hi()):"undefined",registration_id:Ba()||"undefined",rendered_platform:S,sailthru_blast_id:$,sailthru_user_id:q,scv_id:zt()||"undefined",scv_id_rta:ee?.visit||"undefined",sponsor_name:I||w||L&&"sponsored"||void 0,url_subchannel_level_1:ya(u),url_subchannel_level_2:ya(d),url_subchannel_level_3:ya(p),referringDomain:"undefined"===P?P:os(P),referringUrl:P,subscription_entitlements:Qn()||"undefined",swipe_funnel_status:Hn()||"undefined",article_tags:f&&f.length>0?f.sort(((e,t)=>e.localeCompare(t))).join(","):void 0,user_type:Jn(),user_agent:navigator.userAgent,user_login_details:xa(),user_local_server_date:wa(),push_notification_status:ba(),push_notification_campaign_id:new URLSearchParams(window.location.search).get("ci")||"undefined",paywall_countries:v?.length&&v.slice().sort().join(",")||(!b&&h?"all":"undefined"),vwo_mol_campaigns_loaded:await Gt()||"undefined",...$a()||{},...nr(te),...rr(),...rs()};var ie;const ae=Pt();ae&&(oe.puzzle_name=ae);for(const e of["ito_external_hit","ito_external_session","referring_url","referring_domain","itoExternalHit","itoExternalSession","referringUrl","referringDomain"])oe[e]||(oe[e]="undefined");return(e=>{for(const t of Object.keys(e))e[t]||delete e[t];return e})(oe)},ds=e=>new Promise((t=>{fs("get",e,"client_id",(e=>{t(e)}))})),ps=()=>{const e=navigator.userAgent.match(/snapchat/i),t=navigator.userAgent.match(/BytedanceWebview/i);return e||t?{ga4Id:"G-K7GKTZV547"}:{ga4Id:Ri,ga4IdInDigital:"AW-670087309"}},fs=function(){window.molFeDataLayer.push(arguments)};let ms;const _s=(e,t)=>{try{window.VWO&&window.VWO.event&&ms&&window.VWO.event(e,{...ms,...t})}catch(e){J().error("Error sending event to VWO",e)}},hs=async()=>{const{ga4Id:e,ga4IdInDigital:t}=ps(),n=await us();Fo("GA_CONFIG_PROPS",n),x.go("GA_CONFIG_READY");const r=va(n,["referrer_type","last_referrer_type"]),{environment:o}=H(),i="production"===o?["dailymail.co.uk","thisismoney.co.uk","mailsubscriptions.co.uk","themailsubscriptions.co.uk","mymailaccount.co.uk"]:["dailymailint.co.uk","thisismoneyint.co.uk","stagingmailplussubs.coderush.io","uat-dlv.nonprod-mailsubscriptions.gcpp.io","main-mma-preprod.coderush.io"],{registration_id:a,puzzle_user_type:s,sailthru_user_id:c,one_account_user_id:l,...u}=r,d=await(e=>{try{return Promise.race([ds(e),(t=1e3,new Promise((e=>setTimeout(e,t))))])}catch(e){return void J().error("Error getting client id",e)}var t})(e),p=(()=>{try{const e=xe("MOL-FE-WEB-PUSH_SUBSCRIPTION_STATUS");if(e){const{state:t,metadata:{crossOrgUserIds:n}}=e;if("ready"===t&&Array.isArray(n)&&n.length)return n[n.length-1]}return null}catch(e){return J().error("Error getting cross org user id",e),null}})(),f={client_id:d,one_account_user_id:l,puzzle_user_type:s,registration_id:a,sailthru_user_id:c,...p?{push_notif_user_id:p}:{}};if(fs("config",e,{clientId:d,linker:{accept_incoming:!0,domains:i},send_page_view:!1,user_properties:f,...u,consent_state:Pi()}),ms=u,window.VWO&&window.VWO.visitor)try{window.VWO.visitor(f)}catch(e){J().error("Error sending visitor var to VWO",e)}Fo("molFeGAProps",r),(async e=>{e&&(await Ni(),fs("config",e))})(t).catch((e=>{J().error("Error initialising ga4InDigital",e)}))};let gs=null;const Es=()=>(gs||(gs=hs()),gs),vs=async e=>{const{ga4Id:t}=ps(),n={...va(e),consent_state:Pi(),send_to:t};await Es();const r=await(async()=>{const{pageType:e}=Y();if("article"!==e)return;return{hasBeenPaywalled:"has_been_paywalled_article_views",isPaywalled:"paywall_article_views",isPaywalledForOthers:"is_paywalled_for_others_article_views",isRestricted:"is_restricted_article_views",none:"free_article_views"}[await Zn()]})();r&&(n[r]=1),fs("event","page_view",n),window.molSophiPageViewSent=performance.now().toFixed(2),_s("page_view",n)},ys=async(e,t,n,r=!0)=>{const{ga4Id:o}=ps();await Es();let i=n;if(!i){const n=t&&t.event_category||"unknown";i=`${n}_${e}`.replace(/\s/g,"_"),i.length>40&&(i=i.substring(0,40))}const a={...va(t),consent_state:Pi(),send_to:o};i&&(r?(fs("event",i,a),_s(i,a)):setTimeout((()=>{fs("event",i,a),_s(i,a)}),500))},ws=()=>{try{return"visibilityState"in document?document.visibilityState:"unsupported"}catch(e){return"unsupported"}},Is=["home","ushome","auhome"],bs=async(e,t)=>{const n=zn(),{contentType:r}=H(),{channel:o,subchannel:i,pageType:a}=Y(),s=((e,t)=>"article"===e||"article"===t)(a,r),c="channel"===a,l=c&&o===i&&Is.includes(o),u=s?1:void 0,d=c&&!l?1:void 0,p=l?1:void 0;if(n){const e={auto_refreshes:1,event_category:"auto refresh",visibility_state:ws()};ys(`auto refresh ${n}`,e,`auto_refresh_${n}`)}else{const e={article_views:u,channel_views:d,homepage_views:p,mobile_home_tab_active:t&&t.mobileHomeTabActive};vs(e)}},Ss={PAGE_MOBILE_TAB_CHANGE:bs,PAGE_RENDER_STARTED:bs},Os=e=>{const t=e.pageMetadata||H()||{},n=t.articleTitle||e.articleTitle,r=t.articleId||e.articleId,o=t.channel,i=t.subChannel;let a,s,c,l,u;if(e.version&&"videoplayer"===e.placement&&(u=`${e.placement}_${e.version}`),e.id&&e.nthPosition&&(s="image "+(e.nthPosition-1)+" image share",a=e.id),e.videoTitle&&(l=e.videoTitle),e.videoId&&(c=e.videoId),"video-lead"===e.placement&&!l&&!c)try{const e=document.querySelector(".video-lead-info .video-headline"),t=e&&e.querySelector("a"),n=t?t.getAttribute("href"):window.location.href;l=e.innerText.trim().replace("Video: ",""),c=n&&n.match(/video-(\d+)/)[1]}catch(e){}return{article_id:r,article_title:n,channel:o,event_category:"social share",gallery_image_action:s,gallery_image_id:a,non_interaction:!1,url_channel:o,url_subchannel_level_1:i,video_internal_id:c,video_player_version:u,video_title:l}},As={SOCIAL_SHARE_CLICKED:(e=>(t,n)=>{const r=Os(n),o=n.site+"_share_article-"+n.placement;ys(e,{...r,event_label:o,social_share_clicks:1,social_share_type:o},"social_share")})("click"),SOCIAL_SHARE_MENU_OPEN:(e=>(t,n)=>{const r=Os(n),o="overlay_open";ys(e,{...r,event_label:`share_${o}`,social_share_type:o},"social_share")})("menu_open")},Ls=e=>{let t=`${e.playerType} ${e.playerId}`;e.fullscreen&&(t+="-fullscreen");const n=e.autoplay?"autoplay":"click to play",r=e.displayName,o=e.referenceId,i=e.videoId,a=e.adsEnabled?"true":"false";let s,c,l,u,d,p,f;const m=e.animatedPreviewEnabled?"withpreview":"nopreview",_=e.initialVideo?"inline":"related",h=e.pageMetadata.articleId?"article":"non-article";return"gampembedded"===e.playerId&&(s="mobile amp"),"fbiaembedded"===e.trackingType&&(s="mobile fbia",c=ki),e.version&&(l="videoplayer_"+e.version),"thirdPartyEmbedded"===e.trackingType?(u="video_module^embedded^"+_+"^offsite",d="offsite^"+_,c=document.referrer,s="Offsite"):"image_gallery"===e.trackingType?(d=e.pageMetadata.channel+"^"+e.pageMetadata.articleId,u="video_module^"+h+"^"+e.trackingType+"^"+e.pageMetadata.subChannel):e.playlist||"commercialVideoPlayer"===e.trackingType||"editorialVideoPlayer"===e.trackingType||"autoplayInlineVideoPlayer"===e.trackingType?(d=e.pageMetadata.channel+"^"+e.trackingType,u="video_module^"+e.trackingType+"^"+e.channelShortName+"^"+e.pageMetadata.subChannel):(d=e.pageMetadata.channel+"^"+(""===e.pageMetadata.articleId?_:e.pageMetadata.articleId),u="video_module^"+h+"^"+_+"^"+e.pageMetadata.subChannel),u?u.includes("^"+m)||(u+="^"+m):u="video_module^"+m,"dmtv-promo-xp-module"!==e.trackingType||u.includes("^dmtv-promo-xp-module")||(u+="^dmtv-promo-xp-module"),e.pageMetadata.articleId&&("embedded"===e.trackingType||u.match(/\^article\^(inline|image_gallery)\^/))?(p=e.pageMetadata.articleId,f=e.pageMetadata.articleTitle):(p="video not embedded within the article",f="video not embedded within the article"),{article_id:p,article_title:f,content_type:"video",event_category:"video",event_label:n,non_interaction:!0,play_method:n,referrer:c,rendered_platform:s,video_ads_enabled:a,video_channel_article_id:d,video_external_id:i,video_in_viewport:`${e.videoInViewport}`,video_in_viewport_percentage:`${e.videoInViewportPercentage}`,video_internal_id:o,video_module:u,video_player_type:t,video_player_version:l,video_title:r}},Ts={"M:25-50":"25","M:50-100":"50"},Cs={"M:25-50":"video_25_views","M:50-100":"video_50_views"},Ps={"M:25-50":"video25Increase","M:50-100":"video50Increase"},Ms=["M:25-50","M:50-100"],Ns=(e=>{const t={};for(const n of Object.keys(e))t[n]=(t,r)=>{"string"==typeof r.trackingType&&r.trackingType.includes("chromeless")||e[n](t,r)};return t})({VIDEO_ADVERT_ABORTED:function(e,t){const n=Ls(t);ys("advert abort",n)},VIDEO_ADVERT_COMPLETED:function(e,t){const n=Ls(t);ys("advert complete",n)},VIDEO_ADVERT_STARTED:function(e,t){const n=Ls(t);ys("advert start",{...n,video_advert_starts:1})},VIDEO_CONTENT_ABORTED:function(e,t){const n=Ls(t);ys("abort",n)},VIDEO_CONTENT_COMPLETED:function(e,t){const n=Ls(t);ys("content complete",{...n,video_completes:1})},VIDEO_CONTENT_STARTED:function(e,t){const n=Ls(t);ys("content start",n)},VIDEO_PROGRESS:function(e,t){if(!t.segment||!Ms.includes(t.segment))return;const n=Ts[t.segment],r=Ls(t),o=Cs[t.segment],i=Ps[t.segment];ys(n,{...r,[o]:1,[i]:1})},VIDEO_STICKY_CLOSE:(e=>(t,n)=>{const r=Ls(n);ys(e,r)})("sticky close"),VIDEO_STREAM_STARTED:function(e,t){const n=t.continuePlayList?"stream continuous play":"stream start",r=Ls(t);ys(n,{...r,non_interaction:!t.autoplay,video_views:1})}}),Rs=e=>(t,n={})=>{const r={event_category:"video",non_interaction:!1},{videoPlayerType:o,videoPosition:i}=n;o&&(r.video_player_type=o),i&&(r.module_click_list_position=Number(i)),ys(e,r)},Ds={VIDEO_CAROUSEL_CLICK:Rs("carousel click"),VIDEO_CAROUSEL_SWIPE:Rs("carousel swipe"),VIDEO_THUMBNAIL_CLICK:Rs("thumbnail click")},ks=function(){if(Ia.Register.isWebPushSupported())switch(Notification.permission){case"default":return"eligible";case"denied":return"denied";case"granted":return"subscribed"}return"not_supported"},xs=e=>{const t={...e,event_category:"push notification",push_notification_status:ks()};return delete t.__numberOfAttempts,delete t.channel,delete t.subChannel,JSON.parse(JSON.stringify(t))},Us={WEB_PULL_NOTIFICATION_CLICK:function(e,t){const n={...t,event_category:"pull notification"};delete n.__numberOfAttempts,delete n.channel,delete n.subChannel,ys("click",{...n,event_label:`${t.campaignId}:${t.crossOrgUserId}`,non_interaction:!1,pull_notification_campaign_id:t.campaignId})},WEB_PUSH_NOTIFICATION_CLICK:function(e,t){const n=`${t.campaignId}:${t.subscriptionId}`;ys("click",{...xs(t),event_label:n,non_interaction:!1,push_notification_campaign_id:t.campaignId,push_notification_id:n})},WEB_PUSH_PRE_PROMPT_CLICK:function(e,t){const n="granted"===t.permission?"granted":"closed";ys("pre prompt choice",{...xs(t),event_label:n,non_interaction:!1,pre_prompt_choice:n})},WEB_PUSH_PRE_PROMPT_IMPRESSION:function(e,t){ys("pre prompt impression",{...xs(t),non_interaction:!0})},WEB_PUSH_PROMPT_CLICK:function(e,t){const n="default"===t.permission?"closed":t.permission;ys("prompt choice",{...xs(t),event_label:n,non_interaction:!1,prompt_choice:n})},WEB_PUSH_PROMPT_IMPRESSION:function(e,t){ys("prompt impression",{...xs(t),non_interaction:!0})}},Bs={AFFILIATE_CAROUSEL_CLICK:(e=>(t,n)=>{ys(n.hrefTxt,{event_category:e,event_label:n.hrefUrl,link_text:n.hrefTxt,link_url:n.hrefUrl,non_interaction:!1},"affiliate_click")})("affiliate click")},js=(e,t)=>{var n;return{fff_actions:["BF",t,e.bfSource||"",(n=e.position,parseFloat(n)||0),"",e.mainProductId||"",e.relatedProductId||"",e.category||"","","",""].join("^").replace(/\^+$/,""),fff_layout:["inline",e.bfSource||"",e.articleId||""].join("^").replace(/\^+$/,"")}},Vs=(e,t,n)=>(r,o)=>{ys(t,{event_category:e,non_interaction:Boolean(n),...js(o,t)})},Gs={BF_BUY_NOW_CAROUSEL_CLICKED:Vs("bf","alternative product buynow clicked"),BF_BUY_NOW_HEADER_CLICKED:Vs("bf","main product buynow click"),BF_CAROUSEL_IN_VIEW:Vs("bf","product view",!0),BF_CAROUSEL_ROTATE_CLICKED:Vs("bf","carousel use"),BF_IMPRESSION:Vs("bf","product impression",!0),BF_SHOW_MORE_CLICKED:Vs("bf","showmore click")},Ws={AD_BILLBOARD_CLOSED:((e,t)=>()=>{ys(t,{event_category:e,non_interaction:!1})})("billboard ad","close")},Ks={FIDELITY_CAMPAIGN_EVENT:(e=>(t,n)=>{const r=n.name.replace("fidelity-campaign-","").replaceAll("_"," ").replaceAll("-"," ");ys(r,{event_category:e,event_label:n.value,non_interaction:!1,type_of_fidelity_campaign:n.value},"fidelity_campaign_click")})("fidelity campaign click")},Fs={SCREENSAVER_DOWNLOADED:((e,t)=>()=>{ys(t,{event_category:e,non_interaction:!1})})("screensaver","download click")},zs=(e,t)=>(n,r)=>{let o={event_category:e,event_label:r.searchTerm,non_interaction:!1,search_term:r.searchTerm};"site search"===e&&(o={...o,internal_search_terms:r.searchTerm,internal_searches:1}),ys(e,o,t)},Hs={SITE_SEARCH:zs("site search","site_search"),WEB_SEARCH:zs("web search","web_search")},$s=(e,t,n)=>()=>{ys(t,{event_category:e,non_interaction:Boolean(n)})},Ys={REMIXD_COMPLETE:$s("remixd audio player","complete",!0),REMIXD_ERROR:$s("remixd audio player","error",!0),REMIXD_IMPRESSION:$s("remixd audio player","present on page",!0),REMIXD_MUTE:$s("remixd audio player","mute"),REMIXD_PAUSE:$s("remixd audio player","pause"),REMIXD_PLAY:$s("remixd audio player","play")},qs=(e,t,n,r)=>(o,i)=>{const{pageType:a}=Y(),{channel:s,datasetId:c,newsletterScope:l}=i;ys(t,{event_category:e,event_label:n,non_interaction:Boolean(r),type_of_newsletter:`${s}_${c||"noinstance"}_${a}_${l||"unknown"}`})},Xs={NEWSLETTER_ERROR:qs("newsletter","submit error",null),NEWSLETTER_SHOW:qs("newsletter","start",null,!0),NEWSLETTER_SUBMIT:qs("newsletter","submit success",null)},Zs={PAGE_MODULE_CLICKED:(e,t)=>{if(!("localStorage"in window))return;const{element:n,moduleName:r,position:o,interaction:i,linkType:a,listPosition:s,pixelDepth:c,trackingType:l,videoId:u,moduleArticlePositionChannel:d}=t,p=[],f=H(),m=l||"ck";if(p.push(r,o,f.channel),p.push(f.subChannel||""),p.push(f.subChannel2||""),p.push(f.pageName),p.push(s||""),p.push(a||""),p.push(f.contentType||""),p.push(u?"video":f.articleId||""),p.push(i||""),"el"!==m){const e=n.href.split("/");p.push(e.slice(3,6).join("/"))}else n&&n.href?p.push(n.href):p.push("");window.localStorage.setItem("module_tracking",p.join("^")),window.localStorage.setItem("module_tracking_name",r),s&&window.localStorage.setItem("module_tracking_list_position",s),c&&window.localStorage.setItem("module_tracking_pixel_depth",c),d&&window.localStorage.setItem("module_tracking_article_pos_channel",d)}},Js=(e,t)=>(n,r)=>{const o={event_category:r.contentType,gallery_image_action:r.galleryTitle,gallery_image_id:r.threadId,gallery_image_swipe_count:r.galleryId,non_interaction:!1};"image"===r.contentType&&(o.image_views=1);const i="videoimage"===r.contentType?"video_image":r.contentType;ys(e,o,`gallery_${i}_${t||e}`)},Qs={GALLERY_IMAGE_VIEWED:Js("view",null),GALLERY_OPENED:Js("start view","view_start")},ec=(e,t,n=!1)=>()=>{ys(t,{event_category:e,non_interaction:n})},tc={DESKTOP_HOME_PAGE_OVERLAY:ec("desktop homepage overlay","display",!0),MOBILE_HOME_PAGE_NAV:(e,t)=>{const{action:n,label:r}=t;ys(n,{event_category:"mobile homepage nav",event_label:r,non_interaction:!1,selected_value:r},"bell icon click"===t.action&&"mobile_bell_icon_click"),"bell icon click"===n&&vs({mobile_home_tab_active:"alerts-overlay"})},MOBILE_HOME_PAGE_OVERLAY:ec("mobile homepage overlay","display",!0),MOBILE_HOME_PAGE_SIGNPOST_CLICK:ec("mobile homepage signpost","click"),MOBILE_HOME_PAGE_SIGNPOST_DISMISS:ec("mobile homepage signpost","dismiss"),MOBILE_HOME_PAGE_SIGNPOST_DISPLAY:ec("mobile homepage signpost","display",!0),MOBILE_HOME_PAGE_SWIPE:(e,t)=>{const{action:n,label:r}=t;ys("choice",{event_action:n,event_category:"mobile homepage nav",event_label:r,non_interaction:!1,selected_value:r},"mobile_homepage_nav_choice_"+("news"===r?"news":"showbiz"))},MOBILE_HOME_PAGE_VIEW:(e,t)=>{const n=t.swipe||Ot().get("mol-home"),r=Ot().get("mol-home-default-channel");let o="Mobile Landing Homepage";switch(n){case"news":o="Just the News";break;case"showbiz":o="Just the Showbiz";break;case"desktop":o="Full Homepage",r&&(o+=` ${r}-CA`)}t.actionSource&&(o+=` ${t.actionSource}`),ys("choice",{event_category:"mobile homepage overlay",event_label:o,mobile_home_preference:o,non_interaction:!1,selected_value:o})}},nc="Successfully Logged In",rc="Registration Activated",oc="Registration Started",ic="Registration Submitted",ac={PAGE_RENDER_STARTED:()=>{const e=H(),t=ka(),n={event_category:"account",event_label:t,non_interaction:!1,registration_method:t};switch(e.registrationEntry){case rc:ys("activate registration",n);break;case oc:ys("new registration",n);break;case ic:ys("submit registration",n);break;case nc:ys("login success",n)}},USER_AUTH_SITE_REG_ERROR_ONCE:((e,t)=>()=>{ys(t,{event_category:e,event_label:ka(),non_interaction:!1})})("account","registration error")},sc=(e,t,n=!1)=>(r,o)=>{const i={event_category:e,event_label:o&&o.tab||o&&o.label||void 0,non_interaction:n,selected_value:o&&o.tab||o&&o.label||void 0};o&&void 0!==o.value&&(i.value=o.value,"load time"===t&&(i.load_time=o.value)),ys(t,i)},cc={COMMENTS_ADD_COMMENT_CLICK:sc("comment","add comment click"),COMMENTS_CLEAR:sc("comment","clear"),COMMENTS_CLICK:sc("comment","click"),COMMENTS_DELETE:sc("comment","delete"),COMMENTS_DOWNVOTE:sc("comment","downvote"),COMMENTS_IMPRESSION:sc("comment","impression",!0),COMMENTS_LOAD_TIME:sc("comment","load time",!0),COMMENTS_LOGIN_REDIRECT:sc("comment","login redirect"),COMMENTS_MASTHEAD_CLICK:sc("comment","masthead click"),COMMENTS_NEW_COMMENT_CLICK:sc("comment","new comment click"),COMMENTS_NOTIF_CLICK:sc("comment","notif click"),COMMENTS_OVERLAY_CLOSE:sc("comment","overlay close"),COMMENTS_OVERLAY_OPEN:sc("comment","overlay open"),COMMENTS_PAGINATION_CLICK:sc("comment","pagination click"),COMMENTS_PROFILE_CLICK:sc("comment","profile click"),COMMENTS_REPLY_CLICK:sc("comment","reply click"),COMMENTS_REPLY_SUBMIT:sc("comment","reply submit"),COMMENTS_REPLY_SUBMIT_SUCCESS:sc("comment","reply submit success"),COMMENTS_REPORT_CLICK:sc("comment","report"),COMMENTS_SHOW_MORE_CLICK:sc("comment","show more"),COMMENTS_SUBMIT_COMMENT:sc("comment","submit"),COMMENTS_SUBMIT_SUCCESS:sc("comment","submit success"),COMMENTS_UPVOTE:sc("comment","upvote"),COMMENTS_VIEW:sc("comment","view"),COMMENTS_VIEW_ALL:sc("comment","view all click"),PAGE_COMMENT_TAB_SWAPPED:sc("comment tab","view"),SOCIAL_SHARE_COMMENTS:sc("comment","added")},lc={PAGE_EXTERNAL_LINK_CLICKED_GA:(e,t)=>{ys(t.innerText,{event_category:"outbound click",event_label:t.href,link_text:t.innerText,link_url:t.href,non_interaction:!1},"outbound_click",!0)}},uc=(e,t,n)=>(t,r)=>{const{productName:o,location:i}=r;ys("bar"===i?"bar click":"click",{event_category:e,event_label:o,non_interaction:Boolean(n)})},dc={PRODUCT_BUTTON_LINK:uc("product",0,!1),PRODUCT_IMAGE_LINK:uc("product",0,!1),PRODUCT_PRICE_LINK:uc("product",0,!1),PRODUCT_TITLE_LINK:uc("product",0,!1)},pc={PAGE_RENDER_STARTED:()=>{const{betwayBannerPresent:e}=H();e&&ys("display betway breaking news",{event_category:"banner",non_interaction:!0})}},fc=(e,t,n)=>(r,o)=>{ys(t,{event_category:e,event_label:o.type,non_interaction:Boolean(n),type_of_smart_banner:o.type})},mc={SMART_BANNER_CLICKED:fc("smart banner","click"),SMART_BANNER_SHOWN:fc("smart banner","impression",!0)},_c=(e,t,n)=>(r,o)=>{const{campaignId:i}=o;ys(t,{campaign_id:i,event_category:e,event_label:i,non_interaction:Boolean(n)})},hc={GUESTBOOK_IMPRESSION:_c("guestbook","impression",!0),GUESTBOOK_LOADING_ERROR:_c("guestbook","load error",!0),GUESTBOOK_SUBMIT_ERROR:_c("guestbook","submit error"),GUESTBOOK_SUBMIT_SUCCESS:_c("guestbook","submit success")},gc={LIVE_BLOG_LOAD_MORE:((e,t)=>()=>{ys(t,{event_category:e,non_interaction:!1})})("live blog","load more click")},Ec=["click","viewable"],vc=["impression","viewable"],yc={PROMOTIONAL_SLOT_EVENT:(e,t)=>{const{eventName:n,xpModuleName:r,campaignId:o}=t;if(vc.includes(n))return;const i=`${r}${o?`|${o}`:""}`;ys(n,{event_category:"promotional slot click",event_label:i,non_interaction:Boolean(!Ec.includes(n)),type_of_promotional_slot:i})}},wc=(e,t,n)=>(r,o)=>{const{promotion:i,urlClicked:a,articlePosition:s}=o;ys(t,{article_position:s,event_category:e,event_label:i,non_interaction:Boolean(n),type_of_promotions_module:i,url_clicked:a})},Ic={PROMOTIONS_XP_CLICK:wc("promotions module","click"),PROMOTIONS_XP_VIEW_MORE:wc("promotions module","view more")},bc=(e,t,n,r)=>(o,i)=>{const{company:a,headline:s}=i;ys(t,{event_category:e,event_label:r||"impression"===t?s:a,non_interaction:Boolean(n),type_of_tim_affiliate:r||"impression"===t?s:a})},Sc={TIM_AFFILIATE_BOTTOM_LINK_CLICKED:bc("affiliate","click",!1,!0),TIM_AFFILIATE_IMPRESSION:bc("affiliate","impression",!0),TIM_AFFILIATE_LEARN_MORE_CLICKED:bc("affiliate","click",!1)},Oc=(e,t,n)=>(r,o)=>{const{company:i}=o;ys(t,{company_name:i,event_category:e,event_label:i,non_interaction:Boolean(n)})},Ac={COMPANY_REVIEW_LEARN_MORE_CLICKED:Oc("companyReview","click"),COMPANY_REVIEW_LESS_CONTENT_CLICKED:Oc("companyReview","click"),COMPANY_REVIEW_MORE_CONTENT_CLICKED:Oc("companyReview","click")},Lc=(e,t,n)=>(r,o)=>{const{label:i}=o;ys(t,{event_category:e,event_label:i,non_interaction:Boolean(n),type_of_article_hero:i})},Tc={ARTICLE_HERO_AUTHOR_TWITTER_LINK_CLICK:Lc("articleHero","click"),ARTICLE_HERO_LOZENGE_LINK_CLICK:Lc("articleHero","click")},Cc=(e,t,n)=>(r,o)=>{const{label:i,value:a,modulePixelDepth:s}=o||{};ys(t,{event_category:e,event_label:i,module_pixel_depth:s,non_interaction:Boolean(n),value:a})},Pc={COMMERCE_XP_CLICK:Cc("commercexp","click"),COMMERCE_XP_IMPRESSION:Cc("commercexp","impression",!0),COMMERCE_XP_VIEW_MORE:Cc("commercexp","view more"),COMMERCE_XP_VIEWABLE:Cc("commercexp","view",!0)},Mc=(e,t,n)=>(r,o)=>{const{channel:i,urlClicked:a,articlePosition:s}=o;ys(t,{article_position:s,event_category:e,event_label:i,non_interaction:Boolean(n),url_clicked:a})},Nc={TOP_STORIES_XP_CLICK:Mc("top stories module","click"),TOP_STORIES_XP_IMPRESSION:Mc("top stories module","impression",!0),TOP_STORIES_XP_VIEW_MORE:Mc("top stories module","view more"),TOP_STORIES_XP_VIEWABLE:Mc("top stories module","view",!0)},Rc={AD_SLOT_LOADED_ON_PAGE:((e,t,n)=>(r,o)=>{const{slotType:i}=o;ys(t,{event_category:e,event_label:i,non_interaction:Boolean(n)})})("ad slot","load",!0)},Dc=(e,t,n)=>()=>{ys(t,{event_category:e,non_interaction:Boolean(n)})},kc={SWIPE_TUTORIAL_CLOSE:Dc("swipe tutorial","dismiss"),SWIPE_TUTORIAL_SHOWN:Dc("swipe tutorial","impression",!0)},xc={TIM_ANCHOR_LINK_CLICKED:((e,t)=>(n,r)=>{const{linkText:o}=r;ys(t,{event_category:e,event_label:o,link_text:o,non_interaction:!1})})("decisionary anchor","click")},Uc=(e,t,n)=>()=>{ys(t,{event_category:e,non_interaction:Boolean(n)})},Bc={COMMENT_CTA_CLICK:Uc("comment cta","click"),COMMENT_CTA_IMPRESSION:Uc("comment cta","impression",!0)},jc=(e,t,n)=>()=>{ys(t,{event_category:e,non_interaction:Boolean(n)})},Vc={MOBILE_MENU_COMMENT:jc("mobile menu","comment click"),MOBILE_MENU_DESKTOP_SITE:jc("mobile menu","desktop site"),MOBILE_MENU_NAV_CLOSE:jc("mobile menu","nav close"),MOBILE_MENU_NAV_OPEN:jc("mobile menu","nav open")},Gc={PAGE_FURNITURE_CLICKED:(e,t)=>{const n=t&&t.furnitureName;if(!n)return;ys(n,{event_category:"furniture",furniture_name:n,non_interaction:!1})}},Wc=(e,t,n)=>(r,o)=>{const{urlClicked:i,articlePosition:a}=o;ys(t,{article_position:a,event_category:e,non_interaction:Boolean(n),url_clicked:i})},Kc={ARTICLE_RECOMMENDATION_XP_CLICK:Wc("article recommendation module","click"),ARTICLE_RECOMMENDATION_XP_IMPRESSION:Wc("article recommendation module","impression",!0),ARTICLE_RECOMMENDATION_XP_VIEWABLE:Wc("article recommendation module","view",!0)},Fc=(e,t,n)=>(r,o)=>{const{pageType:i}=Y(),{datasetId:a,pollId:s,question:c,answer:l,href:u,channel:d}=o||{},p="newsletter"===e;ys(t,{channel:d,event_category:e,event_label:p?"poll":c,href:u,non_interaction:Boolean(n),poll_answer:l,poll_id:s?String(s):s,poll_name:c,url_channel:d,...p&&a?{type_of_newsletter:`news_${a}_${"article"===i?"poll-article":"poll-channel"}`}:{}},p?"newsletter_submit_success":void 0)},zc={XP_POLLS_CLICK:Fc("poll","click"),XP_POLLS_IMPRESSION:Fc("poll","impression",!0),XP_POLLS_SUBSCRIBED:Fc("newsletter","successful submits"),XP_POLLS_VIEW:Fc("poll","view",!0),XP_POLLS_VOTED:Fc("poll","submit success")},Hc=(e,t,n)=>(r,o)=>{const{channel:i,clickUrl:a,position:s}=o;ys(t,{click_url:a,event_category:e,event_label:i,non_interaction:Boolean(n),position:s})},$c={GEO_TARGETED_HOMEPAGE_XP_CLICK:Hc("scotland section","click"),GEO_TARGETED_HOMEPAGE_XP_IMPRESSION:Hc("scotland section","impression",!0),GEO_TARGETED_HOMEPAGE_XP_VIEWABLE:Hc("scotland section","view",!0)},Yc=(e,t,n)=>(r,o)=>{var i;i={puzzle_user_type:kt()},fs("set","user_properties",{...i||{},consent_state:Pi()}),ys(t,{event_category:e,event_label:o&&o.puzzleName,non_interaction:Boolean(n),puzzle_name:o&&o.puzzleName,puzzle_provider:o&&o.provider,puzzle_user_type:kt()})},qc={PUZZLE_COMPLETED:Yc("puzzle","completed"),PUZZLE_RESTARTED:Yc("puzzle","restarted"),PUZZLE_SOCIAL_SHARE:Yc("puzzle","social_share"),PUZZLE_STARTED:Yc("puzzle","started")},Xc=(e,t,n)=>(r,o)=>{ys(t,{event_category:e,module_name:o&&o.moduleName||void 0,non_interaction:Boolean(n)})},Zc={MODULE_IMPRESSION:Xc("module","impression",!0),MODULE_INTERACT:Xc("module","interact"),MODULE_VIEW:Xc("module","view",!0)},Jc=(e,t,n)=>(r,o)=>{const{label:i,value:a,modulePixelDepth:s}=o||{};ys(t,{event_category:e,event_label:i,module_pixel_depth:s,non_interaction:Boolean(n),value:a})},Qc={ARTICLE_PREVIEW_XP_CLICK:Jc("article preview xp","click"),ARTICLE_PREVIEW_XP_IMPRESSION:Jc("article preview xp","impression",!0),ARTICLE_PREVIEW_XP_VIEWABLE:Jc("article preview xp","viewable",!0)},el=Ve("mol-fe-signin-"),tl=({clickLocation:e,referringModule:t})=>{try{el.setItem("meta",{clickLocation:e,referringModule:t,updatedAt:Date.now()})}catch(e){J().error("Error in setSignInMeta",e)}},nl=()=>{try{const{authenticationPlatform:e,flowVariant:t}=(()=>{const e=new URLSearchParams(window.location.search);if("1"===e.get("onetap")){const t=JSON.parse(e.get("param_info"));if(t.flowVariant)return{authenticationPlatform:t.signinMethod,flowVariant:t.flowVariant}}const t=window.getFlowVariant&&window.getFlowVariant();return t?{authenticationPlatform:e.get("signinMethod"),flowVariant:t}:{}})();if(!t)return;const n=t.split("_")[1];if(!n||!["signin","registration"].includes(n))return;const r=el.getItem("meta")||{},{clickLocation:o,referringModule:i}=r,a=el.getItem("tracking")??!1;if(!("password"===e&&!document.referrer)&&!a){const r="registration"===n?Tt.SIGN_IN_REGISTRATION_SUCCESS:Tt.SIGN_IN_LOGIN_SUCCESS;Tt.publish(r,{authenticationPlatform:e,clickLocation:o,flowVariant:t,referringModule:i}),el.setItem("tracking","true")}el.removeItem("meta")}catch(e){J().error("Error in listenToSignInLand",e)}},rl=["masthead click","profile click","paywall click"],ol=(e,t,n,r)=>(o,i)=>{const{paymentType:a,paywallOutcomeLabel:s,referringModule:c,referringPageType:l,flowVariant:u,productType:d,clickLocation:p}=i||{};let f=c;const m={event_category:e,non_interaction:Boolean(n)};m.payment_type=a||"card",s&&(m.paywall_variant=s),c&&(m.referring_module=c,f=c),l&&(m.referring_page_type=l),u&&(m.flow_variant=u),d&&(m.product_type=d),p&&(m.click_location=p),"paywall impression"===t&&(m.paywall_impressions=1),"paywall viewable"===t&&(m.paywall_views=1,i.sophiPaywall&&(m.sophi_paywall_views=1)),"step1 landing"===t&&(m.subscription_step1_landing=1),"step4 payment details"===t&&(m.subscription_step4_payment_details=1),"paywall click"===t&&(m.paywall_clicks=1),"paywall conversion"===t&&(m.paywall_conversions=1),"account conversion"===t&&(m.account_conversions=1),"banner conversion"===t&&(m.banner_conversions=1),t.includes("conversion")&&(m.order_id=i.transactionId||"unknown"),"module"===e&&(m.product_type="mailplus",m.referring_module="homemodule",f="homemodule"),rl.includes(t)&&(f||("paywall click"===t&&(f="paywall"),"masthead click"===t&&"mailplus"===e&&(f="masthead"),"profile click"===t&&(f="profile")),tl({clickLocation:p||f,referringModule:f})),ys(t,m,r,!0)},il={PAYWALL_ACCOUNT_LINK_COMPLETE:ol("mailplus","account link complete"),PAYWALL_ACCOUNT_LINK_HELP:ol("mailplus","account link help click"),PAYWALL_ACCOUNT_LINK_PROMPT:ol("mailplus","account link prompt"),PAYWALL_ACCOUNT_LINK_RESEND:ol("mailplus","account link resend email click"),PAYWALL_APPLEPAY_CONVERSION:ol("applepay","conversion"),PAYWALL_APPLEPAY_ERROR_CLICK:ol("applepay","error click"),PAYWALL_APPLEPAY_ERROR_VIEW:ol("applepay","error view",!0),PAYWALL_APPLEPAY_FAILURE_CLICK:ol("applepay","failure click"),PAYWALL_APPLEPAY_FAILURE_VIEW:ol("applepay","failure view",!0),PAYWALL_APPLEPAY_SECONDARY_CTA:ol("applepay","secondary cta"),PAYWALL_APPLEPAY_STEP_LANDING:ol("applepay","step1 landing"),PAYWALL_APPLEPAY_STEP_PAYMENT:ol("applepay","step4 payment details"),PAYWALL_CONVERSION:ol("mailplus","paywall conversion"),PAYWALL_CONVERSION_BANNER:ol("mailplus","banner conversion"),PAYWALL_CONVERSION_PROFILE:ol("mailplus","account conversion"),PAYWALL_HOMEMODULE_ARTICLE_CLICK:ol("module","article click"),PAYWALL_HOMEMODULE_ARTICLE_COMMENTS_CLICK:ol("module","article comments click"),PAYWALL_HOMEMODULE_CHANNEL_CLICK:ol("module","channel click"),PAYWALL_HOMEMODULE_SIGNUP_CLICK:ol("module","masthead click"),PAYWALL_IMPRESSION:ol("mailplus","paywall impression",!0),PAYWALL_LOGIN_CLICK:ol("mailplus","paywall login click"),PAYWALL_MASTHEAD_SIGNUP_CLICK:ol("mailplus","masthead click"),PAYWALL_PROFILE_SIGNUP_CLICK:ol("mailplus","account click"),PAYWALL_RESTORE_PURCHASE_CLICK:ol("mailplus","restore purchase click"),PAYWALL_SIGN_UP:ol("mailplus","paywall click"),PAYWALL_SOPHI_LOAD:((e,t)=>(n,r)=>{const o={article_id:r?.articleId,event_category:e,non_interaction:!0,script_delay_ms:r.difference||null,script_detect_ms:r.sophiScriptReady||null};ys(t,o,"sophi_load",!0)})("mailplus","sophi load"),PAYWALL_VIEWABLE:ol("mailplus","paywall viewable",!0),PAYWALL_ZEPHR_FAIL_OPEN:ol("mailplus","zephr fail open",!0)},al=()=>{(async(e,t,n=null)=>{const{ga4IdInDigital:r}=ps();r&&(await Es(),fs("event",e,{...t,consent_state:Pi(),send_to:`${r}${n||""}`}))})("conversion",{currency:"GBP",non_interaction:!1,value:1.99},"/MGkxCJf_5sQZEI3xwr8C")},sl={PAYWALL_CONVERSION:al,PAYWALL_CONVERSION_BANNER:al,PAYWALL_CONVERSION_PROFILE:al},cl=(e,t)=>()=>{ys(t,{event_category:e})},ll={ONE_TAP_CLOSE:cl("onetap","close"),ONE_TAP_CONTINUE:cl("onetap","continue"),ONE_TAP_IMPRESSION:cl("onetap","impression")},ul=["cmp level 1 conversion","cmp level 2 conversion"],dl=(e,t)=>(n,r)=>{const{productType:o,flowVariant:i}=r||{},a={event_category:"cmp",non_interaction:!1};i&&(a.flow_variant=i),o&&(a.product_type=o),ul.includes(e)&&(a.cmp_conversions=1),ys(e,a,e.replace(/\s/g,"_"),t)},pl={...{CMP_LEVEL_ONE_ACCEPT:dl("cmp level 1 accept"),CMP_LEVEL_ONE_CONVERSION:dl("cmp level 1 conversion"),CMP_LEVEL_ONE_LOGIN:dl("cmp level 1 login",!0),CMP_LEVEL_ONE_PRIVACY_SETTINGS:dl("cmp level 1 privacy settings"),CMP_LEVEL_ONE_SUBSCRIBE:dl("cmp level 1 subscribe",!0),CMP_LEVEL_TWO_CONVERSION:dl("cmp level 2 conversion"),CMP_LEVEL_TWO_SAVE_EXIT:dl("cmp level 2 save exit",!0),CMP_LEVEL_TWO_SUBSCRIBE:dl("cmp level 2 subscribe",!0)},...{ESSENTIAL_ACCOUNT_LINK_COMPLETE:dl("essential account link complete"),ESSENTIAL_ACCOUNT_LINK_HELP_CLICK:dl("essential account link help click"),ESSENTIAL_ACCOUNT_LINK_PROMPT:dl("essential account link prompt"),ESSENTIAL_ACCOUNT_LINK_RESEND:dl("essential account link resend email click"),ESSENTIAL_RESTORE_PURCHASE_CLICK:dl("essential restore purchase click")}},fl={FOR_YOU_SAVE_PREFERENCES_CLICK:((e,t,n,r)=>()=>{ys(t,{event_category:e,event_label:n,non_interaction:!1},r)})("for you","click","save preferences","for_you_save_preferences_click")},ml=(e,t)=>(n,r)=>{const{promptCount:o}=r||{};ys(t,{event_category:e,non_interaction:!1,prompt_count:String(o??0)})},_l={GOOGLE_SUBSCRIPTION_DISMISS:ml("google account link","dismiss"),GOOGLE_SUBSCRIPTION_LINK:ml("google account link","complete"),GOOGLE_SUBSCRIPTION_VIEW:ml("google account link","prompt")},hl=(e,t)=>()=>{ys(t,{event_category:e,non_interaction:!1})},gl={TOAST_OVERLAY_CLICK:hl("toast overlay","click"),TOAST_OVERLAY_DISMISS:hl("toast overlay","dismiss"),TOAST_OVERLAY_VIEW:hl("toast overlay","view")},El=(e,t,n,r)=>(o,i)=>{const{authenticationPlatform:a,clickLocation:s,flowVariant:c,referringModule:l}=i||{},u={event_category:e,non_interaction:Boolean(n)};a&&(u.authentication_platform=a),s&&(u.click_location=s),l&&(u.referring_module=l),c&&(u.flow_variant=c),"loginsuccess"===t&&(u.login_success=1),"registrationsuccess"===t&&(u.registration_success=1),"signinclick"===t&&tl({clickLocation:s,referringModule:l}),ys(t,u,r,!0)},vl={SIGN_IN_LOGIN_SUCCESS:El("signin","loginsuccess"),SIGN_IN_REGISTRATION_SUCCESS:El("signin","registrationsuccess"),SIGN_IN_SIGN_IN_CLICK:El("signin","signinclick")},yl={PREDICTOR_CTA_CLICK:((e,t,n=!1)=>()=>{ys(t,{event_category:e,non_interaction:n})})("predictor cta","click")},wl={VWO_VARIATION_APPLIED:((e,t,n)=>(r,o)=>{const{campaignName:i,variationName:a}=o;ys(t,{event_category:e,non_interaction:Boolean(n),vwo_mol_variation_applied:`${i}:${a}`})})("vwo","mol variation applied",!0)},Il=(e,t,n,r)=>()=>{ys(t,{event_category:e},r,!0)},bl={CONVERSION_MODAL_BENEFITS:Il("conversion","modal_benefits"),CONVERSION_MODAL_CLOSE:Il("conversion","modal_close"),CONVERSION_MODAL_CONTINUE:Il("conversion","modal_continue")},Sl={MAGAZINE_READ_NOW_CLICK:((e,t)=>(n,r)=>{ys(t,{event_category:e,link_url:r.linkURL,non_interaction:!1,page_url:r.pageURL})})("magazine","read now click")},Ol={HUBS_HEADER_AUDIO_CLICK:((e,t,n)=>(r,o)=>{const{label:i,articlePosition:a,modulePixelDepth:s,clickType:c,contentType:l}=o||{};ys(t,{article_position:a,click_type:c,content_type:l,event_category:e,event_label:i,module_pixel_depth:s,non_interaction:Boolean(n)})})("hubs header audio","click")},Al={HUBS_ARTICLE_LIST_XP_READ_MORE:((e,t,n)=>(r,o)=>{const{label:i,articlePosition:a,modulePixelDepth:s,clickType:c,contentType:l}=o||{};ys(t,{article_position:a,click_type:c,content_type:l,event_category:e,event_label:i,module_pixel_depth:s,non_interaction:Boolean(n)})})("hubs article list xp","read_more",!0)},Ll=[Bs,Qc,Gs,pc,Ws,bl,Ks,Qs,Sl,Zs,Xs,cc,lc,Ss,tc,dc,Ys,Fs,Hs,gc,mc,As,gl,ac,Ns,Ds,Us,hc,yc,Ic,Sc,Tc,Ac,Pc,Nc,Rc,kc,xc,Bc,Vc,Gc,Kc,zc,$c,qc,Zc,il,sl,ll,pl,fl,vl,_l,yl,wl,Ol,Al,{CONTENT_READING_TRACKER:(e,t)=>{const n="content_reading_tracker";ys("scroll_depth",{event_category:n,non_interaction:!1,...t},n)}}],Tl=(e,t,n,r)=>{let o=e;for(;o&&o!==t;){const e=o.getAttribute(n);if(e)return e;o=o.parentElement}return o&&o.getAttribute(n)||r};(async()=>{window.molFeDataLayer=window.molFeDataLayer||[],window.gtag=fs,fs("js",new Date);try{await si(Di)}catch(e){J().error("Error loading gtag JS",e)}})().catch();for(const e of Ll)Ht("googleAnalytics",e);document.addEventListener("click",(e=>{const t=e.Element||e.srcElement,n=t&&(e=>{let t=e;for(;t&&"A"!==t.tagName.toUpperCase()&&"BODY"!==t.tagName.toUpperCase();)t=t.parentElement;return t&&"A"===t.tagName.toUpperCase()?t:null})(t);if(n){const e=Tl(t,n,"data-tracking-href",n.href),r=Tl(t,n,"data-tracking-inner-text",n.innerText);(e=>{try{return new URL(e).hostname!==window.location.hostname}catch(e){return!1}})(e)&&Tt.fireEvent(Tt.PAGE_EXTERNAL_LINK_CLICKED_GA,{href:e,innerText:r})}}),!1);const Cl={gtag:fs};x("PAGE_METADATA_SET",(()=>{try{window.getFlowVariant=jo}catch(e){}nl()}));const Pl=["impression","click","viewable"],Ml=(e,t,n={})=>{if(Pl.includes(e))if(t&&"string"==typeof t)try{const{environment:r,renderPlatform:o}=H(),i={environment:r,event:e,module:t,renderPlatform:o,...n};window.postMessage(`__bidmax\n${JSON.stringify(i)}`,"*")}catch(e){J().error(`[mol-fe-tracking] Unable to fire bidmax tracking for ${t}`,e)}else J().error("[mol-fe-tracking] Module name is required ");else J().error(`[mol-fe-tracking] Event name has to be one of 'impression', 'click', 'viewable', event name provided: ${e}`)},Nl=e=>new Promise((t=>setTimeout(t,e))),Rl=async()=>{if(window.__dmgCrossDomain&&"function"==typeof window.__dmgCrossDomain.configure&&"function"==typeof window.__dmgCrossDomain.getSession)return!0;for(let e=0;e<10;e++){await Nl(500);const e=window.__dmgCrossDomain;if(e&&"function"==typeof e.configure&&"function"==typeof e.getSession)return!0}return!1};(()=>{try{document.addEventListener("click",(e=>{const t=Object.keys(Ct).find((t=>e.target.closest(t)));if(!t)return;const n=Ct[t];Tt.publish(Tt.PAGE_FURNITURE_CLICKED,{furnitureName:n})}))}catch(e){J().error("Error initialising furniture tracking",e)}})(),(()=>{try{window.addEventListener("message",(e=>{if("puzzles track event"!==e?.data?.msg)return;const{eventData:t,eventName:n}=e.data,r=Pt()||t?.PuzzleName||t?.object_name||"unknown",o=xt[n];o?(["PuzzleStarted","puzzle_play","puzzle_restarted"].includes(n)&&Dt(),Tt.publish(o,{puzzleName:r,provider:"platypuzz"})):J().warn("Unknown puzzle event name",n)}))}catch(e){J().error("Error initialising platypuzz game tracking",e)}})(),(()=>{try{document.addEventListener("puzzlr:event",(e=>{const{detail:t}=e;if(t?.name){"level_started"===t.name&&Dt();const e=xt[t.name];if(!e)return void J().error("Unknown puzzlr event name",t.name);Tt.publish(e,{puzzleName:Pt()||t?.props?.game_id||"unknown",provider:"puzzlr"})}}))}catch(e){J().error("Error initialising Puzzlr game tracking",e)}})(),(()=>{try{const e=new URLSearchParams(location.search);if("tiktok-comments"!==e.get("ito"))return;!function(e,t,n){e.TiktokAnalyticsObject=n;var r=e[n]=e[n]||[];r.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],r.setAndDefer=function(e,t){e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}};for(var o=0;o{try{window.addEventListener("message",(e=>{if(!e.data||"object"!=typeof e.data)return;const t=e.data;if("@mol-fe/mol-fe-cmp"===t.ns)switch(t.action){case"cmp_level_1_accept":Tt.publish(Tt.CMP_LEVEL_ONE_ACCEPT);break;case"cmp_level_2_save_exit":Tt.publish(Tt.CMP_LEVEL_TWO_SAVE_EXIT);break;case"cmp_level_1_privacy_settings":Tt.publish(Tt.CMP_LEVEL_ONE_PRIVACY_SETTINGS);break;case"cmp_level_1_login":Tt.publish(Tt.CMP_LEVEL_ONE_LOGIN);break;case"cmp_level_1_subscribe":Tt.publish(Tt.CMP_LEVEL_ONE_SUBSCRIBE);break;case"cmp_level_2_subscribe":Tt.publish(Tt.CMP_LEVEL_TWO_SUBSCRIBE)}}))}catch(e){J().error("Error initialising mol-fe-cmp tracking",e)}})(),(()=>{try{Ut(),window.VWO.push(["onVariationApplied",e=>{if(!e)return;const[t,n,r]=e,o=window._vwo_exp&&window._vwo_exp[n],i=o&&o.comb_n[r],a=o&&o.name;i&&Tt.publish(Tt.VWO_VARIATION_APPLIED,{campaignId:n,campaignName:a,variationId:r,variationName:i})}])}catch(e){J().error("Error initialising VWO variation applied listener",e)}})(),(async()=>{try{await x("DOM_READY");const{contentType:e,renderPlatform:t}=H();if("mobile"!==t||"home"!==e)return;const n=document.querySelector("#infinite-list");if(!n)return;n.dataset.trackModule="mobile-channel-page"}catch(e){J().error("Error initialising mobile channel tracking",e)}})(),(()=>{const e=zt()||(0,Wt.v4)();try{sessionStorage.setItem(Kt,e)}catch(e){J().error("singleCustomer: Unable to set session storage values",e)}window.singleCustomer={getSingleCustomerPageId:Ft,getSingleCustomerSessionId:zt}})();let Dl=1;const kl="mol-fe-loading-spinner",xl=()=>{const e=document.getElementById(kl);e&&e.remove()},Ul=e=>{let t=document.getElementById(kl);t||(t=document.createElement("div"),t.id=kl,t.className=kl,document.body.appendChild(t),"number"==typeof e&&setTimeout((()=>xl()),e))},Bl=["travel","femail","lifestyle"],jl=()=>{const{channel:e}=Y();Bl.includes(e)&&document.addEventListener("click",(e=>{e.target.closest('.article a[href*="/article-"],.article-preview a[href*="/article-"],.puff a[href*="/article-"],.mol-fe-related-replace a[href*="/article-')&&Ul(3e3)}))};var Vl=n(3029),Gl=n.n(Vl),Wl=n(6108),Kl=n.n(Wl),Fl=n(6238),zl=n.n(Fl),Hl=n(7526),$l=n.n(Hl),Yl=n(2784),ql=n.n(Yl),Xl=n(4642),Zl=n.n(Xl),Jl=n(4015),Ql=n.n(Jl),eu=n(7581),tu=n.n(eu),nu=n(3657),ru=n.n(nu),ou=n(2103),iu=n.n(ou),au=n(6123),su=n.n(au),cu=n(3514),lu=n.n(cu),uu=n(1580),du=n.n(uu),pu=n(1211),fu=n.n(pu),mu=n(105),_u=n.n(mu),hu=n(7331),gu=n.n(hu),Eu=n(2451),vu=n.n(Eu);const yu={},wu=(e,t)=>{let n=(e.match(t)||[])[1]||"";return n=n.split(/[._]/g),{build:parseInt(n[2]||-1,10),major:parseInt(n[0]||-1,10),minor:parseInt(n[1]||-1,10)}},Iu=()=>{const e=navigator.userAgent;yu.ua=e,yu.isWindows=Boolean(e.match(/Windows Phone|iemobile|WPDesktop/i));try{yu.isIPad=(Boolean(e.match(/iPad/i))||"iPad"===navigator.platform||"MacIntel"===navigator.platform&&"ontouchend"in document)&&!yu.isWindows}catch(e){yu.isIPad=!1}yu.isIDevice=(Boolean(e.match(/(iPad|iPhone|iPod)/i))||yu.isIPad)&&!yu.isWindows,yu.isIPhone=Boolean(e.match(/iPhone/i))&&!yu.isWindows,yu.isAndroid=Boolean(e.match(/Android/i))&&!yu.isWindows,yu.isChrome=Boolean(e.match(/Chrome/i)),yu.isFirefox=Boolean(e.match(/Firefox/i)),yu.isKindleSilk=Boolean(e.match(/Silk|Kindle/i)),yu.isAndroidPhone=yu.isAndroid&&Boolean(e.match(/Mobile/i)),yu.isAndroidTablet=yu.isAndroid&&!Boolean(e.match(/Mobile/i)),yu.isMobile=yu.isIDevice||yu.isAndroid||yu.isWindows,yu.isAndroidStock=yu.isAndroid&&!yu.isChrome&&!yu.isFirefox&&!yu.isKindleSilk;try{yu.isIDevice?(yu.mobileName=e.match(/(iPad|iPhone|iPod)/i)?e.match(/(iPad|iPhone|iPod)/i)[0]:"iPad",yu.mobileVersion=wu(e,/OS ((?:\d+[._]?)+)/i)):yu.isAndroid?(yu.mobileName="Android",yu.mobileVersion=wu(e,/Android ((?:\d+[._]?)+)/i)):yu.isWindows?(yu.mobileName="Windows Phone",yu.mobileVersion=wu(e,/Windows Phone ((?:\d+[._]?)+)/i)):(yu.mobileName=null,yu.mobileVersion={build:-1,major:-1,minor:-1})}catch(e){J().error("Failed to parse mobile name and version",e),yu.mobileName="unknown"}},bu=()=>yu.isWindows,Su=()=>yu.isIDevice,Ou=()=>yu.isIPhone,Au=()=>yu.isIPad,Lu=()=>yu.isAndroid,Tu=()=>yu.isChrome,Cu=()=>yu.isFirefox,Pu=()=>yu.isKindleSilk,Mu=()=>yu.isAndroidPhone,Nu=()=>yu.isAndroidTablet,Ru=()=>yu.isMobile,Du=()=>yu.isAndroidStock,ku=()=>yu.mobileVersion,xu=()=>{if(J().warn('"getZoom" function has been deprecated as it does not provide reliable values'),screen.deviceXDPI&&screen.logicalXDPI)return screen.deviceXDPI/screen.logicalXDPI;if(document.width)return document.width/window.innerWidth;if(screen.width&&window.innerWidth)return screen.width/window.innerWidth;return Math.max(document.documentElement.clientWidth,document.body.offsetWidth,document.body.scrollWidth)/(window.innerWidth||document.documentElement.clientWidth)},Uu=()=>xu()>1,Bu=()=>window.matchMedia?window.matchMedia("(orientation:landscape)").matches:(window.innerWidth||document.documentElement.clientWidth)>(window.innerHeight||document.documentElement.clientHeight),ju=()=>!Bu(),Vu=()=>{document.body.style.overflow="auto",document.ontouchmove=()=>!0},Gu=()=>{document.body.style.overflow="hidden",document.ontouchmove=e=>e.preventDefault()},Wu=()=>{if(J().warn('"setupMobileClass" has been deprecated and "features detection" should be prefered over "device detection"'),yu.mobileName){const e=yu.mobileName.toLowerCase().replace(/ /,"-");document.body.classList.add(e)}},Ku=e=>(setTimeout(e,400),e());try{Iu(),yu.isAndroidStock&&(J().debug("Executing Android Stock browser Orientation bug fix"),window.addEventListener("orientationchange",(()=>{const e=document.querySelector("meta[name=viewport]");if(e){const t=e.getAttribute("content");e.setAttribute("content","width=10000, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"),setTimeout((()=>{e.setAttribute("content",t)}),0)}})))}catch(e){J().error("Error parsing user agent",e)}const Fu={deviceData:yu,disableScroll:Gu,enableScroll:Vu,getMobileVersion:ku,getZoom:xu,isAndroid:Lu,isAndroidPhone:Mu,isAndroidStock:Du,isAndroidTablet:Nu,isChrome:Tu,isFirefox:Cu,isIDevice:Su,isIPad:Au,isIPhone:Ou,isKindleSilk:Pu,isLandscape:Bu,isMobile:Ru,isPortrait:ju,isWindows:bu,isZoomed:Uu,onTouchEnd:Ku,parseUserAgent:Iu,setupMobileClass:Wu},zu=()=>{const e=document.head,t=document.createElement("link");t.rel="preconnect",t.href="https://fonts.googleapis.com";const n=document.createElement("link");n.rel="preconnect",n.href="https://fonts.gstatic.com",n.crossOrigin=!0;const r=document.createElement("link");r.href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap",r.rel="stylesheet",e.appendChild(t),e.appendChild(n),e.appendChild(r)};(()=>{zu()})();const Hu=e=>null==e,$u=e=>{if(e instanceof Date)return e.toISOString();if("object"==typeof e&&null!==e)try{return JSON.stringify(e)}catch{return"[Unserializable]"}return String(e)},Yu="https://crossdomain-uat.coderush.io",qu="https://crossdomain.mailplus.co.uk",Xu=["dailymailint.co.uk","thisismoneyint.co.uk","stagingmailplussubs.coderush.io","uat-dlv.nonprod-mailsubscriptions.gcpp.io","main-mma-preprod.coderush.io"],Zu=["dailymail.co.uk","thisismoney.co.uk","mailsubscriptions.co.uk","themailsubscriptions.co.uk","mymailaccount.co.uk"],Ju=()=>{const e=(()=>{const e=window.location&&window.location.host;return!e||!e.includes("int")})(),t=document.createElement("script"),n=`${e?qu:Yu}/sdk/latest@1/script.js`;t.id="crossDomainSdk",t.type="text/javascript",t.src=n,t.async=!0,t.onerror=e=>J().error("[CrossDomainSDK] failed to load script",e),document.head.appendChild(t)},Qu=e=>Array.isArray(e)?e:"[object Arguments]"===Object.prototype.toString.call(e)?Array.from(e):[],ed=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t},td=()=>{const e=window?.Zephr?.outcomes?.article?.outcomeLabel;return{paywall_variant:e}},nd=()=>{const e=window.molFeDataLayer,t=Object.create(null);Object.assign(t,...(e=>(e||[]).map(Qu).flat().filter(ed))(e));const n={...ad(t),...td(),sophi_context:window?.sophi?.dataLayer?.context,sophi_decision_source:window?.molSophiFeatureOff?"not_loaded":window?.molSophiDecisionSourceOnPageView||"not_loaded",sophi_experiments_code:window?.sophi?.dataLayer?.experimentsCode,sophi_inputs:window?.sophi?.dataLayer?.inputs,sophi_trace:window?.sophi?.dataLayer?.trace},r=(o=n,Object.fromEntries(Object.entries(o).filter((([,e])=>!Hu(e)))));var o;if(0===Object.keys(r).length)return null;const i=(e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,$u(t)]))))(r);return{ga_dimensions:i}},rd=e=>{if("undefined"!==e&&!Hu(e))return e},od=(e,t)=>{for(const r of t){const t=rd((n=e,r.split(".").reduce(((e,t)=>e?.[t]),n)));if(void 0!==t)return t}var n},id={article_id:["article_id"],authentication_platform:["authentication_platform"],device_id:["device_id"],flow_variant:["flow_variant"],ico_internal_hit:["ico_internal_hit"],module_click_list_position:["module_click_list_position"],module_tracking:["module_tracking"],mol_click_source:["mol_click_source"],multivariant_experiments:["multivariant_experiments"],oa_journey:["oa_journey"],oa_page:["oa_page"],payment_type:["payment_type"],paywall_variant:["paywall_variant"],product_type:["product_type"],push_notif_user_id:["push_notif_user_id"],referring_page_type:["referring_page_type"],registration_id:["registration_id"],rendered_platform:["rendered_platform"],service_id:["service_id"],storefront_variant:["storefront_variant"],subscription_entitlements:["subscription_entitlements"],user_type:["user_type"],utm_campaign:["utm_campaign"],utm_medium:["utm_medium"],utm_source:["utm_source"],vwo_campaigns:["vwo_campaigns"],ito_external_hit:["ito_external_hit","itoExternalHit"],oa_client_id:["oa_client_id","clientId","user_properties.client_id"],one_account_id:["one_account_id","user_properties.one_account_user_id"],referrer_group:["referrer_group","last_referrer_group"],referrer_type:["referrer_type","last_referrer_type"],referring_module:["referring_module","module_name"],sailthru_id:["sailthru_id","user_properties.sailthru_user_id"]},ad=e=>Object.fromEntries(Object.entries(id).map((([t,n])=>[t,od(e,n)]))),sd=["gb","us","mx","ca","au","nz","ie"],cd=e=>{try{if("localStorage"in window){const t=window.localStorage.getItem(`mol-fe-paywall-${e}`);return t?JSON.parse(t):null}}catch(e){}return null},ld=2592e5,ud=()=>{const e=cd("entitlement");if(!e)return!1;const{allow_access:t,storedAt:n,registeredUserId:r}=e;return!(Date.now()-n>ld||"DM"in window&&"isLoggedIn"in window.DM&&r!==window.DM.userId)&&(t||!1)},dd=["IN","IR","CU","KP","SY","VE","AF","BY","BI","CF","CN","HK","CD","EG","ER","ET","IQ","LB","LY","ML","MM","NI","GN","GW","RU","SO","SS","SD","TN","TR","UA","YE","ZW"],pd=()=>{try{return window.PageCriteria&&window.PageCriteria.geo&&!dd.includes(window.PageCriteria.geo)||(()=>{try{if(location.hostname&&location.hostname.startsWith("cc"))return!0;if("about:srcdoc"===location.href)return!0}catch(e){}return!1})()}catch(e){}return!1},fd=()=>{const e=cd("entitlement");return e&&e.entitlements||null},md=async e=>{if(!e)return!0;await x("REFRESHED_PAYWALL_ENTITLEMENT");const t=fd();if(!t)return!1;let n=[];if(Array.isArray(e))n=e;else{if("string"!=typeof e)return!1;n=e.split(",").map((e=>e.trim())).filter((e=>e))}return n.some((e=>t.includes(e)))},_d=["mailplus-puzzles","mailplus-puzzles-experiment"],hd=["mailplus-magazines"],gd=()=>{const e=fd();return ud()&&e&&_d.some((t=>e.includes(t)))},Ed=async e=>{let t;e?(await x("REFRESHED_PAYWALL_ENTITLEMENT"),t=fd()):t=fd();return ud()&&t&&hd.some((e=>t.includes(e)))},vd=()=>"/puzzles/index.html",yd=()=>"/magazines/index.html",wd=()=>{const e=cd("entitlement"),t=pd(),n=window.mailplusPurchaseOutcome||location.search.includes("mailplusPurchaseOutcome"),r="DM"in window&&"isLoggedIn"in window.DM&&window.DM.isLoggedIn||location.search.includes("login"),o="DM"in window&&"userId"in window.DM&&e&&e.registeredUserId!==window.DM.userId;return!!t&&(!!n||(!!(r&&!e||o)||!!(e&&Date.now()-e.storedAt>ld)))},Id=()=>{const e=fd(),t=ud(),n=e&&e.includes("mailplus-ad-lite");return t?n?"subscriber-ad-lite":"subscriber":"none"},bd=({paywalledCountries:e}={})=>{if(!window.PageCriteria)return!0;const t=e||window.PageCriteria.paywalledCountries;if(!t||!t.length)return!0;const n=window.PageCriteria.geo&&window.PageCriteria.geo.toLowerCase();if(Array.isArray(t)&&t.includes(n))return!0;const r=t.includes("gb")&&"ie"===n,o=t.includes("us")&&["ca","mx"].includes(n),i=t.includes("au")&&"nz"===n,a=t.includes("row")&&!sd.includes(n);return r||o||i||a},Sd=e=>new Promise((t=>{setTimeout(t,e)})),Od=async()=>{try{const t=await(async()=>{const{environment:e}=H(),t="production"===e,n=window.__dmgCrossDomain;if(n){if(n.isConfigured)return n;try{return await n.configure({apiOrigin:t?qu:Yu,domainAllowList:t?Zu:Xu,sessionParam:"_cds"}),n}catch(e){J().error("[CrossDomainSDK] configure failed",e)}}else J().error("[CrossDomainSDK] SDK not loaded")})();if(!t)return null;const n=await(async()=>{try{return await Promise.race([Sd(1e3),new Promise((e=>{window.__uspapi?window.__uspapi("getUSPData",1,(t=>{const{uspString:n}=t||{};e(n?{cmp:{usp:{uspString:String(n)}}}:null)})):window.__tcfapi?window.__tcfapi("hasUserConsentedToAll",2,(t=>{window.__tcfapi("getTCData",2,(n=>{const{molGvlVersion:r,acmVersion:o,nrvVersion:i,tcString:a}=n||{};e(a?{cmp:{tcf:{acmVersion:String(o),didConsentToAll:String(t),molGvlVersion:String(r),nrvVersion:String(i)}}}:null)}))})):e(null)}))])}catch(e){return null}})(),r=nd(),o={...n,...r};if(null==(e=o)||"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length)return null;const i=await t.addAttributes(o);return i?.session??null}catch{return null}var e},Ad=async e=>{try{const t=e&&new URL(e,location.origin),n=await Od();return n&&t.searchParams.set("_cds",n),t&&t.href||e}catch(t){return e}},Ld=()=>{const e=cd("entitlement");if(!e)return null;const{oneAccountUserId:t,registeredUserId:n}=e;return"DM"in window&&"isLoggedIn"in window.DM&&n!==window.DM.userId?null:t||null},Td=()=>{const{isPaywalled:e,neverPaywall:t}=window.PageCriteria||{},n=bd(),r=pd();return!t&&e&&r&&n},Cd=()=>{const e=Td(),t=ud();return e&&!t},Pd=()=>{const{isPaywalled:e,hasBeenPaywalled:t,pageType:n,neverPaywall:r}=window.PageCriteria||{},o=bd(),i=pd();if("article"===n)return e||t?!e&&t?"hasBeenPaywalled":!r&&e&&i&&!o?"isPaywalledForOthers":!r&&e&&i&&o?"isPaywalled":r||!e||i?"invalid":"isRestricted":"none"},Md=(e,t,n)=>new Promise(((r,o)=>{const i="number"==typeof n&&n>0?setTimeout((()=>o(new Error("CMP consent check timed out"))),n):null;(window.__dmgCmp||(window.__dmgCmp=[])).push({data:{onConsent:()=>{clearTimeout(i),r(!0)},onDissent:()=>{clearTimeout(i),r(!1)},onError:e=>{clearTimeout(i),o(new Error(`Unable to retrieve CMP consent/dissent decision: ${e?.message||e}`))},vendorId:t,vendorRegistry:e},scope:"checkVendor"})})),Nd=(e,t=!0)=>new Promise(((n,r)=>{(window.__dmgCmp||(window.__dmgCmp=[])).push({data:{profile:e,waitForDecision:t,cb:(e,t)=>{e?r(new Error(`Unable to retrieve CMP consent/dissent decision using CMP consentProfile scope: ${e?.message||e}`)):["n/a","consented"].includes(t)?n(!0):n(!1)}},scope:"consentProfile"})})),Rd=()=>{try{window.rumv=window.rumv||function(){(window.rumv.q=window.rumv.q||[]).push(arguments)};const e=sessionStorage.getItem("rumv"),t=e?JSON.parse(e):{pageviews:0};t.pageviews++;const n=new URL(document.location).searchParams;if(!(n&&n.get("forceRumVision"))&&(t.dnt||!t.urls&&!(e=>{const t=[["^/(news|news/royals|home|auhome|ushome|sport|tv|tvshowbiz|lifestyle|health|sciencetech|money|travel)/index.html$",2],["^/[a-z]+/[a-z]+/article-([0-9]+)/([^.]+).html$",2]];for(let n=0;n{if(!e.href)return!1;try{const t=new URL(e.href),n=/.*amazon./;return Boolean(t.hostname.match(n)&&t.searchParams.has("tag"))}catch(e){return!1}},kd=(e,t,n)=>{const r=new URLSearchParams(e),o=((e,t)=>Boolean(e&&e.startsWith(t)))(t,n),i=o?"internal":"external",a=r.get("ico"),s=r.get("ito"),c=r.get("utm_source");if(a)return`${i}_ico_${a}`;if(s)return`${i}_ito_${s}`;if(c)return`${i}_${c}`;if(t){if(n&&o){return`${i}_${new URL(t).pathname}`}return`${i}_${pi(t)}`}return"direct"},xd=(e,t)=>{const{referrer:n}=t;return{asc_campaign:(r=e,r&&r.tagName&&"a"===r.tagName.toLowerCase()&&Boolean(r.closest(".mol-product"))?"product":"standard"),asc_refurl:location.href,asc_source:kd(location.search,n,location.origin)};var r},{getConfig:Ud}=d;x("DOM_READY",(async()=>{try{const e=Array.from(document.getElementsByTagName("a")).filter(Dd),t=await Ud();for(const n of e){const e=await xd(n,t),r=new URL(n.href);for(const t in e)e[t]&&!r.searchParams.has(t)&&r.searchParams.set(t,e[t]);n.href=r.href}}catch(e){J().error("Error adding asc params to the amazon links",e)}})),(()=>{try{window.OBREvents=window.OBREvents||[],window.OBREvents.push({callback:e=>{requestAnimationFrame((()=>(e=>{const{element:t}=e,{renderPlatform:n}=H(),r=document.getElementById("reader-comments");if(!((window.location.hash&&window.location.hash.startsWith("#comments")||window.location.search&&window.location.search.match(/spot_im_scroll_to_comments=true/)||window.location.search&&window.location.search.match(/spot_im_highlight_immediate=true/))&&t&&t.parentNode&&r&&"desktop"===n))return;const{top:o,height:i}=t.getBoundingClientRect();if(o>window.innerHeight)return;const{top:a}=r.getBoundingClientRect();if(o>a)return;const s=i+24;s>a||(window.scrollTo(0,window.pageYOffset+s),requestAnimationFrame((()=>{const{bottom:e,top:t}=r.getBoundingClientRect();(e<300||t>window.innerHeight-300)&&(r.scrollIntoView(),window.scrollTo(0,window.pageYOffset-100))})))})(e)))},name:"rendered",widgetId:"all"})}catch(e){J().error("Error initialising outbrain comments scroll fix",e)}})();const Bd="mol-fe-cookie-reinforcer",jd=(e,t,n=null)=>{try{if(!("localStorage"in window))return;const r=JSON.parse(window.localStorage.getItem(Bd)||"{}");r[e]={expireDate:n,value:t},window.localStorage.setItem(Bd,JSON.stringify(r))}catch(e){J().error("Error adding cookie to reinforce",e)}},Vd=e=>{try{if(!("localStorage"in window))return;const t=JSON.parse(window.localStorage.getItem(Bd)||"{}");delete t[e],window.localStorage.setItem(Bd,JSON.stringify(t))}catch(e){J().error("Error removing cookie from reinforcer",e)}},Gd=(e,t,n=null)=>{try{Ot().set(e,t,{expires:n,path:"/"}),jd(e,t,n)}catch(e){J().error("Error setting cookie and adding to reinforce list",e)}},Wd=e=>{try{Ot().remove(e),Vd(e),"mol-home"===e&&window.localStorage.setItem("mol-fe-home-channel-actioned-last",Date.now())}catch(e){J().error("Error removing cookie and stopping reinforcement",e)}},Kd=()=>{try{if(!("localStorage"in window))return;const e=JSON.parse(window.localStorage.getItem(Bd)||"{}"),t={};for(const n of Object.keys(e)){const{expireDate:r,value:o}=e[n],i=r&&new Date(r);"mol-home"===n&&"desktop"===o||(!i||i.getTime()>Date.now())&&(Ot().set(n,o,{expires:i,path:"/"}),t[n]={expireDate:i,value:o})}window.localStorage.setItem(Bd,JSON.stringify(t))}catch(e){J().error("Error reinforcing cookies",e)}};Kd();const Fd="smartBanner_ZE1ll",zd="view_m0SUe",Hd="timLogo_kYALc logo_ITOxq",$d="molLogo_DCFLV logo_ITOxq",Yd="molffLogo_B8cW6 logo_ITOxq",qd="close_MJ3Qe",Xd="androidLogo_gP0Oe",Zd="storeLogo_oeO19",Jd="info_a32mm",Qd="name_C8GmV",ep=function(){const e=/(Windows *[a-zA-Z]*) ([^; )]+)/i.exec(navigator.userAgent);return e&&e.length>1&&"windows nt"===e[1].toLowerCase()&&parseFloat(e[2])>=6.4},tp=function(){return document.body.classList.contains("mol-desktop")},np=["/registration/profile.html","/home/search.html"],rp=["article","channel"],op="fantasyfootball",ip="tim",ap="smart-banner",sp={inited:!1};let cp,lp,up,dp,pp;const fp=function(){try{return(ep()?"windows10":yu.mobileName.toLowerCase())+" banner"}catch(e){return"unknown banner"}},mp=e=>{dp&&(e?dp.classList.add("home-mobile-banner-visible"):dp.classList.remove("home-mobile-banner-visible"))},_p=function(){J().debug("smartBanner: hiding"),document.body.classList.remove("smart-banner"),lp||mp(!1)},hp=function(){(Ot().get(ap)||!ep()&&Bu())&&document.body.classList.contains("smart-banner")&&_p(),Ot().get(ap)||!ep()&&Bu()||document.body.classList.contains("smart-banner")||pp&&(J().debug("smartBanner: showing"),document.body.classList.add("smart-banner-shown"),document.body.classList.add("smart-banner"),lp||mp(!0),Tt.publish(Tt.SMART_BANNER_SHOWN,{type:fp()}))},gp=ql()(hp,50),Ep=function(e){if(!e)return null;if(window.location.search&&window.location.search.match(/[?&]source=newzit\.app/))return null;const t=(ep()?"windows10":yu.mobileName.toLowerCase())+"_banner",n=`\n\n
\n
\n
${e.trackCensoredName}
\n
\n
\nView`,r=document.createElement("div");let o;return r.setAttribute("id","smartBanner"),r.setAttribute("data-track-module",t+"^smart-banner"),r.setAttribute("data-track-pos","static"),r.setAttribute("data-track-type","cl"),r.setAttribute("data-track-selector",`a.${zd}`),r.classList.add(Fd),r.innerHTML=n,document.body.appendChild(r),pn.externalLinkTracker("smartBanner"),sp.banner=r,sp.bannerName=t,sp.inited=!0,sp.banner=r,lp&&(o=setInterval(hp,1e3)),r.querySelector(`.${qd}`).addEventListener("click",(e=>{e.preventDefault(),function(){const e=new Date(Date.now()+2592e6);Gd(ap,"closed",e)}(),_p(),o&&(clearInterval(o),o=null)})),r.querySelector(`.${zd}`).addEventListener("click",(()=>{Tt.publish(Tt.SMART_BANNER_CLICKED,{type:fp()})})),window.addEventListener("orientationchange",gp),hp(),J().info("###### SMARTBANNER RENDERED"),sp.banner};sp.init=function(e){return J().info("###### INIT SMARTBANNER",e),sp.initPromise||(sp.initPromise=x("BODY_READY").then((()=>((()=>{const{pageType:e}=Y();cp=e,lp=tp(),up=document.body.getAttribute("itemid"),dp=document.querySelector(".mobile-search"),pp=-1===np.indexOf(up)&&rp.includes(cp)&&(yu.isAndroidPhone||yu.isIPhone)})(),Ep(e))))),sp.initPromise};const vp=sp,yp=/^https?:\/\/t\.co(\/.*)?$/.test(document.referrer),wp=Ko("molFeSmartBanner").then((e=>yu.isMobile&&yp?null:vp.init(e))),Ip={AU:"/auhome",GB:"/home",US:"/ushome"},bp=["sport"];let Sp=[];const Op=e=>Boolean(e.url&&e.imgUrl&&e.headline),Ap=(e,t)=>String(e.articleId)!==String(t),Lp=e=>{const{articleId:t}=Y();return Ap(e,t)&&Op(e)&&!He(e.articleId)&&!Sp.includes(e.articleId)},Tp=async({topicGroup:e=null,paywalled:t=!1})=>{const{articleId:n,geo:r,channel:o}=Y();let i=`/api/mol-fe-feeds/v2/articles/rankedByChannelReferrer${Ip[r]||Ip.GB}`;const a=bp.includes(o);t?i=`/api/mol-fe-feeds/v2/articles/rankedPaywalled/geo/${q()}`:e?i=`/api/mol-fe-feeds/v2/articles/rankedByTopicGroup/${encodeURIComponent(e)}/geo/${q()}`:a&&(i=`/api/mol-fe-feeds/v2/articles/rankedByChannel/${o}/geo/${q()}/period/1440`);const s=await et().get(i);if(!s||!s.data||!s.data.articles)throw new Error("[mol-fe-related-replace] Invalid ranked articles response");const{articles:c}=s.data,l=c.filter((e=>e.url.startsWith(`/${o}`))),u=c.filter((e=>!e.url.startsWith(`/${o}`))),d=l.concat(u).filter(Lp).slice(0,5);return d.length<1&&t?l.concat(u).filter((e=>Ap(e,n)&&Op(e))).slice(0,5):d},Cp="mol-fe-related-replace";let Pp=!1;const Mp=()=>{const{renderPlatform:e}=H(),{articleStyle:t}=Y();return"desktop"===e&&"extraWide"===t?5:3},Np=e=>{e&&e.classList.contains("related-replace-placeholder")&&e.remove()},Rp=({relatedElement:e,articles:t,instanceIndex:n=0,topicGroup:r=null,isInlinePaywall:o=!1,geo:i})=>{const a=Mp();if(!e||!t||!t.length||t.length{const i=Mp(),a=document.createElement("div"),s=document.createElement("div"),{disableDynamicPaywall:c}=Y();let l="related-replace"+(n>0?`-${n+1}`:"");s.classList.add("mol-fe-related-replace"),s.classList.add("ccox"),5===i&&s.classList.add("related-replace-desktop-xwide"),"royals"===r&&a.classList.add("royal_wedding"),o&&(l="related-replace-paywall",a.classList.add("home"),a.classList.add("related-replace-paywall")),s.dataset.trackModule=l;const u=e.slice(0,i).map((e=>(({article:e,geo:t,disableDynamicPaywall:n})=>{const{imgUrl:r,url:o,headline:i,viewCountTrending:a,isPaywalled:s,articleType:c,wallDecisions:l,neverPaywall:u}=e,d="chat"===c;let p=e.propensityLevel;return!p&&l&&(p=l[t]&&l[t].propensityLevel),`\n \n \n \n \n `;var f})({article:e,disableDynamicPaywall:c,geo:t}))).join("");return s.innerHTML=`\n \n \n `,Array.from(s.children[1].children).forEach(((e,t)=>{e.addEventListener("click",(()=>{const n={clickUrl:e.href,position:t+1};Ml("click",Cp,n),Tt.publish(Tt.RELATED_REPLACE_CLICK,n)}))})),a.appendChild(s),new IntersectionObserver(((e,t)=>{for(const n of e)n.isIntersecting&&(Pp||(Ml("viewable",Cp),Tt.publish(Tt.RELATED_REPLACE_VIEWABLE),Pp=!0),t.unobserve(s))})).observe(s),a})({articles:t,geo:i,instanceIndex:n,isInlinePaywall:o,topicGroup:r});var c;e.replaceWith(s),c=t.slice(0,a).map((e=>e.articleId)),Sp=Sp.concat(c)},Dp=(e=null)=>{const t=document.querySelector('#mobile-content .scrollable-content > article, #page-container .article-text [itemprop="articleBody"]');if(!t)return null;const{renderPlatform:n}=H(),r="mobile"===n;let o=0,i=r&&!e?-1:0,a=null,s=Array.from(t.children);if(e){const t=s.findIndex((t=>t===e||t.contains(e)));-1!==t&&(s=s.slice(t+1))}const c=document.documentElement.classList.contains("fb-webview")&&!e;let l=0;for(const e of s){const t=e.matches("figure, .image-wrap, .mol-img, .mol-img-group"),n=e.matches("p, .mol-para-with-font"),s=!r&&e.matches(".floatRHS, .floatLHS, .halfRHS, .halfLHS, .floatXWHalfRHS, .floatXWHalfLHS"),u=e.querySelector(".vjs-video-container")||e.matches(".vjs-video-container"),d=e.matches(":empty")&&!e.id&&(!e.className||"clear"===e.className);if(s&&(l=e.offsetHeight+32),t&&c&&i>=0)return a;if(o>=4&&i>=1&&!t&&!u&&!d&&a&&l<=0)return a;n&&o++,t&&i++,l>0&&!s&&(l-=e.offsetHeight+(t?4:16)),a=e}return null},kp=(e=null,t=null)=>{const n=t||Dp(e);if(!n)return null;const r=document.createElement("div");return r.classList.add("related-replace-placeholder"),n.after(r),r},xp=(e,t,n=!1)=>{let r=0,o=t;for(let i=t;n?i>0:i=4)break}return o},Up=e=>{const t=(()=>{const{renderPlatform:e}=H(),{articleStyle:t,geo:n}=Y(),r=["US","AU"].includes(n)?`_${n.toLowerCase()}`:"",o=document.createElement("div");o.dataset.trackModule="royals-promo-related";let i=358,a=465,s="mobile";"desktop"===e&&("wide"===t&&(i=636,a=184,s="wide"),"extraWide"===t&&(i=964,a=184,s="xwide"));const c=`https://i.dailymail.co.uk/static/mol-fe/static/royals/promo/${s}${r}.jpg`;return o.innerHTML=`\n \n \n \n `,o})();e.replaceWith(t)},Bp=async({relatedElement:e,geo:t,instanceIndex:n=0,topicGroup:r=null,isInlinePaywall:o=!1})=>{if("royals"===r&&1===n)return void Up(e);const i=await(async({topicGroup:e=null})=>{const t=window.getIsPaywallEligible&&window.getIsPaywallEligible(),{isPaywalled:n,articleStyle:r,neverPaywall:o}=Y(),{renderPlatform:i}=H(),a=ke(),s="desktop"===i&&"extraWide"===r?5:3,c=!o&&n&&a&&a.includes("morePaywalledRelatedReplace"),l=c?"desktop"===i&&"extraWide"===r?3:2:1,u=c,d=[t?Tp({paywalled:!0}).catch((()=>[])):[]];d.unshift(Tp({topicGroup:e}));const[p,f]=await Promise.all(d);if(!p.length)return f;if(!f.length)return p;const m=[];let _=f.slice(),h=p.slice(),g=0;for(let e=0;ee.articleId));_=_.filter((e=>!r.includes(e.articleId))),h=h.filter((e=>!r.includes(e.articleId)))}return m})({topicGroup:r});Rp({articles:i,geo:t,instanceIndex:n,isInlinePaywall:o,relatedElement:e,topicGroup:r})},jp=["Mail Best","Mail Best US"],Vp=["sportsbets","britishairwaysholidays"],Gp=["buyline","buylineus","buylineau"],Wp=async()=>{try{const{articleType:e,pageType:t,channel:n,sponsored:r,subchannel:o}=Y(),{domain:i,topics:a}=H();if("article"!==t||"feature"===e||"thisismoney"===i||"money"===n||"true"===r||!0===r)return;if(Gp.includes(n))return;if(Vp.includes(o))return;if(a&&jp.some((e=>a.includes(e))))return;if("home"===n&&"home"===o)return;await x("DOM_READY");const s=q().toLowerCase(),c=((e=2,t=[])=>{const n=t||[];for(let t=n.length;t{if(t>0&&(e=>{const t=document.querySelector('#mobile-content .scrollable-content > article, #page-container .article-text [itemprop="articleBody"]');if(!t)return!1;const n=t.querySelector(".molad_mpu_mobile_promotions");if(!n)return!1;const r=Array.from(t.children),o=r.indexOf(n.parentNode),i=r.indexOf(e),a=xp(r,o,!1);return i>xp(r,o,!0)&&i{for(const o of n)if(o.isIntersecting)return Bp({geo:s,instanceIndex:t,relatedElement:e,topicGroup:l}),void r.unobserve(e)}),{rootMargin:"2000px"}).observe(e)}))}catch(e){J().error("[mol-fe-related-replace] Error initialising ",e)}};try{x("PAGE_METADATA_SET",Wp)}catch(e){J().error("Error initialising mol-fe-related-replace",e)}const Kp={"remixd-player-complete":Tt.REMIXD_COMPLETE,"remixd-player-error":Tt.REMIXD_ERROR,"remixd-player-impression":Tt.REMIXD_IMPRESSION,"remixd-player-mute":Tt.REMIXD_MUTE,"remixd-player-pause":Tt.REMIXD_PAUSE,"remixd-player-play":Tt.REMIXD_PLAY},Fp=()=>{try{window.addEventListener("message",(e=>{if(!e.data||"remixd"!==e.data.scope||!e.data.data)return;const t=e.data.data,n=t&&String(t.event),r=t&&String(t.error),o=Kp[n];o&&Tt.publish(o,{errorMessage:r})}))}catch(e){J().error("Error initialising Remixd event listener",e)}};Fp();var zp,Hp,$p,Yp,qp,Xp=-1,Zp=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Xp=t.timeStamp,e(t))}),!0)},Jp=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Qp=function(){var e=Jp();return e&&e.activationStart||0},ef=function(e,t){var n=Jp(),r="navigate";return Xp>=0?r="back-forward-cache":n&&(document.prerendering||Qp()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},tf=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},nf=function(e,t,n,r){var o,i;return function(a){t.value>=0&&(a||r)&&((i=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=i,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},rf=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},of=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},af=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},sf=-1,cf=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},lf=function(e){"hidden"===document.visibilityState&&sf>-1&&(sf="visibilitychange"===e.type?e.timeStamp:0,df())},uf=function(){addEventListener("visibilitychange",lf,!0),addEventListener("prerenderingchange",lf,!0)},df=function(){removeEventListener("visibilitychange",lf,!0),removeEventListener("prerenderingchange",lf,!0)},pf=function(){return sf<0&&(sf=cf(),uf(),Zp((function(){setTimeout((function(){sf=cf(),uf()}),0)}))),{get firstHiddenTime(){return sf}}},ff=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},mf=[1800,3e3],_f=function(e,t){t=t||{},ff((function(){var n,r=pf(),o=ef("FCP"),i=tf("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(i.disconnect(),e.startTimer.value&&(r.value=o,r.entries=i,n())},s=tf("layout-shift",a);s&&(n=nf(e,r,hf,t.reportAllChanges),of((function(){a(s.takeRecords()),n(!0)})),Zp((function(){o=0,r=ef("CLS",0),n=nf(e,r,hf,t.reportAllChanges),rf((function(){return n()}))})),setTimeout(n,0))})))},Ef={passive:!0,capture:!0},vf=new Date,yf=function(e,t){zp||(zp=t,Hp=e,$p=new Date,bf(removeEventListener),wf())},wf=function(){if(Hp>=0&&Hp<$p-vf){var e={entryType:"first-input",name:zp.type,target:zp.target,cancelable:zp.cancelable,startTime:zp.timeStamp,processingStart:zp.timeStamp+Hp};Yp.forEach((function(t){t(e)})),Yp=[]}},If=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){yf(e,t),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,Ef),removeEventListener("pointercancel",r,Ef)};addEventListener("pointerup",n,Ef),addEventListener("pointercancel",r,Ef)}(t,e):yf(t,e)}},bf=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,If,Ef)}))},Sf=[100,300],Of=function(e,t){t=t||{},ff((function(){var n,r=pf(),o=ef("FID"),i=function(e){e.startTimet.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};xf[r.id]=r,kf.push(r)}kf.sort((function(e,t){return t.latency-e.latency})),kf.splice(10).forEach((function(e){delete xf[e.id]}))}},Bf=function(e,t){t=t||{},ff((function(){var n;Mf();var r,o=ef("INP"),i=function(e){e.forEach((function(e){e.interactionId&&Uf(e),"first-input"===e.entryType&&!kf.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&Uf(e)}));var t,n=(t=Math.min(kf.length-1,Math.floor(Df()/50)),kf[t]);n&&n.latency!==o.value&&(o.value=n.latency,o.entries=n.entries,r())},a=tf("event",i,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=nf(e,o,Nf,t.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),of((function(){i(a.takeRecords()),o.value<0&&Df()>0&&(o.value=0,o.entries=[]),r(!0)})),Zp((function(){kf=[],Rf=Pf(),o=ef("INP"),r=nf(e,o,Nf,t.reportAllChanges)})))}))},jf=[2500,4e3],Vf={},Gf=function(e,t){t=t||{},ff((function(){var n,r=pf(),o=ef("LCP"),i=function(e){var t=e[e.length-1];t&&t.startTimeperformance.now())return;n.value=Math.max(i-Qp(),0),n.entries=[o],r(!0),Zp((function(){n=ef("TTFB",0),(r=nf(e,n,Wf,t.reportAllChanges))(!0)}))}}))};const zf=e=>{try{"adverts"in window&&"DM"in window&&(e=>{const t={...e,module:"webVitalsCls"};window.postMessage("__bidmax\n"+JSON.stringify(t),"*")})(e)}catch(e){}},Hf={CLS:null,FCP:null,FID:null,INP:null,LCP:null,TTFB:null},$f={CLS:null,FCP:null,FID:null,INP:null,LCP:null,TTFB:null},Yf=["CLS","LCP"];let qf=!1,Xf=!1;const Zf=({name:e,value:t})=>{$f[e]=t,Xf||(!qf&&Yf.includes(e)&&(qf=!0,x.go("mol-fe-web-vitals-partial")),Hf[e]=t)},Jf=e=>{const t=e.id?`#${e.id.substr(0,15)}`:"",n=Array.from(e.classList),r=n.length?`.${n.join(".")}`:"";return`${e.tagName.toLowerCase()}${t}${r}`.substr(0,30)};let Qf=!1;const em=({name:e,value:t,entries:n})=>{Zf({name:e,value:t});try{const e=n&&n[0]&&n[0].target;if(t&&t>=100&&!Qf&&e){Qf=!0;const t=`${e.parentNode?Jf(e.parentNode):"null"} > ${Jf(e)}`;zf({event:"fidElement",fidElementSelector:t,fidValue:$f.FID})}}catch(e){}};let tm=!1;const nm=({name:e,value:t,entries:n})=>{Zf({name:e,value:t});try{const e=n&&n[0]&&n[0].target;if(t&&!tm&&e){tm=!0;const t=`${e.parentNode?Jf(e.parentNode):"null"} > ${Jf(e)}`;zf({event:"inpElement",inpElementSelector:t,inpValue:$f.INP})}}catch(e){}};let rm=[];const om=({name:e,value:t,entries:n})=>{Zf({name:e,value:t}),rm=n};let im=0,am=0;const sm=()=>{try{return window.location.hash||"none"}catch(e){return"none"}},cm=()=>{if(!(im>=2))try{const e=.08;if($f.CLS&&$f.CLS>e&&$f.CLS>am&&$f.CLS-am>.1){am=$f.CLS;const e=.01;for(const t of rm.filter((t=>t.value>=e&&!t.hadRecentInput))){const e=t.sources.slice(0,2).map((e=>Jf(e.node))).join(",");zf({clsElementSelector:e,clsElementValue:t.value,clsHash:sm(),clsSendCount:im,clsTotal:$f.CLS,event:"clsElement"})}im++}}catch(e){}};let lm=[];const um=({name:e,value:t,entries:n})=>{Zf({name:e,value:t}),lm=n};let dm=0,pm=0;const fm=()=>{if(!(dm>=2))try{const e=2400;if($f.LCP&&$f.LCP>e&&$f.LCP>pm&&$f.LCP-pm>1e3){pm=$f.LCP;const e=lm[lm.length-1];if(!e)return;const t=e.element&&Jf(e.element)||e.url||"unknown";zf({event:"lcpElement",lcpElementSelector:t,lcpSendCount:dm,lcpValue:$f.LCP}),dm++}}catch(e){}},mm=()=>Hf,_m=()=>$f,hm={getCLS:gf,getFCP:_f,getFID:Of,getLCP:Gf,getTTFB:Ff,onCLS:gf,onFCP:_f,onFID:Of,onINP:Bf,onLCP:Gf,onTTFB:Ff},gm=()=>lm,Em=()=>rm;(async()=>{try{gf(om,{reportAllChanges:!0}),Of(em,{reportAllChanges:!0}),Gf(um,{reportAllChanges:!0}),Bf(nm,{reportAllChanges:!0}),Ff(Zf,{reportAllChanges:!0}),_f(Zf,{reportAllChanges:!0}),await x("DOM_READY"),setInterval(cm,1e4),setInterval(fm,1e4),await(e=1e4,new Promise((t=>{setTimeout(t,e)}))),Xf=!0,x.go("mol-fe-web-vitals-standard")}catch(e){J().error("Error initialising mol-fe-web-vitals",e)}var e})();const vm=e=>({channel:e.getAttribute("data-channel")||"",channelUrl:e.getAttribute("data-channel-url")||"",pubDate:e.getAttribute("data-pub-date")||""}),ym=e=>{try{const t=new Date(e),n=(new Date).getTime()-t.getTime();return Math.floor(n/6e4)<1440}catch{return!1}},wm=(e,t)=>{const n=document.createElement("a");return n.className="article-icon-links__topChannel",n.href=t,n.textContent=e,n},Im=e=>{const t=(e=>{try{const t=new Date(e),n=(new Date).getTime()-t.getTime(),r=Math.floor(n/6e4);return r>=1440?"":r<1?"now":r<60?`${r}m ago`:`${Math.floor(r/60)}h ago`}catch{return""}})(e);if(!t)return null;const n=document.createElement("span");n.className="article-icon-links__separator",n.innerHTML='';const r=document.createElement("time");return r.className="article-icon-links__pubDate",r.setAttribute("datetime",e),r.textContent=t,{separator:n,timeElement:r}},bm=(e,t)=>{const{isMobile:n}=Y(),r=document.createElement("img");r.src=t,r.alt="",r.className="comments-icon-svg",r.width=13,r.height=13;const o=e&&"0"!==e;if(!(!n||o))return{linkText:null,svgImg:r};const i=document.createElement("span");i.className="readerCommentNo",i.textContent=o?e:"comments";const a=document.createElement("span");return a.className="linktext",a.appendChild(i),{linkText:a,svgImg:r}},Sm=(e,t,n)=>{const r=e.parentElement;return!r||(!(!t||!r.classList.contains(t))||!(!n||!e.closest(n)))},Om=e=>{try{const t=new MutationObserver((t=>{t.forEach((t=>{t.addedNodes.forEach((t=>{if(t.nodeType===Node.ELEMENT_NODE&&(t.classList&&t.classList.contains("home-preview")&&(Sm(t,"article-preview-first-black",".mol-fe-latest-headlines--content")||e(t)),t.querySelectorAll)){t.querySelectorAll(".home-preview").forEach((t=>{Sm(t,"article-preview-first-black",".mol-fe-latest-headlines--content")||e(t)}))}}))}))}));return t.observe(document.body,{childList:!0,subtree:!0}),t}catch(e){return J().error("Error setting up mobile observer",e),null}},Am="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMyAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMuNjAzNTIgMTIuMTIzQzMuNDAwMzkgMTIuMTIzIDMuMjQyMTkgMTIuMDU0NyAzLjEyODkxIDExLjkxOEMzLjAxOTUzIDExLjc4NTIgMi45NjQ4NCAxMS42MDU1IDIuOTY0ODQgMTEuMzc4OVY5Ljg1NTQ3SDIuNjgzNTlDMi4xMDE1NiA5Ljg1NTQ3IDEuNjExMzMgOS43NTE5NSAxLjIxMjg5IDkuNTQ0OTJDMC44MTQ0NTMgOS4zMzM5OCAwLjUxMTcxOSA5LjAyOTMgMC4zMDQ2ODggOC42MzA4NkMwLjEwMTU2MiA4LjIzMjQyIDAgNy43NDYwOSAwIDcuMTcxODhWMi42ODM1OUMwIDIuMTA5MzggMC4xMDE1NjIgMS42MjMwNSAwLjMwNDY4OCAxLjIyNDYxQzAuNTExNzE5IDAuODI2MTcyIDAuODE0NDUzIDAuNTIzNDM3IDEuMjEyODkgMC4zMTY0MDZDMS42MTEzMyAwLjEwNTQ2OSAyLjEwMTU2IDAgMi42ODM1OSAwSDEwLjIzMDVDMTAuODEyNSAwIDExLjMwMjcgMC4xMDU0NjkgMTEuNzAxMiAwLjMxNjQwNkMxMi4wOTk2IDAuNTIzNDM3IDEyLjQwMDQgMC44MjYxNzIgMTIuNjAzNSAxLjIyNDYxQzEyLjgxMDUgMS42MjMwNSAxMi45MTQxIDIuMTA5MzggMTIuOTE0MSAyLjY4MzU5VjcuMTcxODhDMTIuOTE0MSA3Ljc0NjA5IDEyLjgxMDUgOC4yMzI0MiAxMi42MDM1IDguNjMwODZDMTIuNDAwNCA5LjAyOTMgMTIuMDk5NiA5LjMzMzk4IDExLjcwMTIgOS41NDQ5MkMxMS4zMDI3IDkuNzUxOTUgMTAuODEyNSA5Ljg1NTQ3IDEwLjIzMDUgOS44NTU0N0g2LjQ2ODc1TDQuNDQ3MjcgMTEuNjU0M0M0LjI3MTQ4IDExLjgxMDUgNC4xMjMwNSAxMS45Mjc3IDQuMDAxOTUgMTIuMDA1OUMzLjg4MDg2IDEyLjA4NCAzLjc0ODA1IDEyLjEyMyAzLjYwMzUyIDEyLjEyM1pNMy44NDM3NSAxMS4wNTA4TDUuNzE4NzUgOS4xODc1QzUuODI4MTIgOS4wNzQyMiA1LjkzMzU5IDkgNi4wMzUxNiA4Ljk2NDg0QzYuMTM2NzIgOC45Mjk2OSA2LjI2OTUzIDguOTEyMTEgNi40MzM1OSA4LjkxMjExSDEwLjIzMDVDMTAuODIwMyA4LjkxMjExIDExLjI1NzggOC43NjU2MiAxMS41NDMgOC40NzI2NkMxMS44MjgxIDguMTc1NzggMTEuOTcwNyA3Ljc0MDIzIDExLjk3MDcgNy4xNjYwMlYyLjY4MzU5QzExLjk3MDcgMi4xMTMyOCAxMS44MjgxIDEuNjgxNjQgMTEuNTQzIDEuMzg4NjdDMTEuMjU3OCAxLjA5MTggMTAuODIwMyAwLjk0MzM1OSAxMC4yMzA1IDAuOTQzMzU5SDIuNjgzNTlDMi4wODk4NCAwLjk0MzM1OSAxLjY1MDM5IDEuMDkxOCAxLjM2NTIzIDEuMzg4NjdDMS4wODM5OCAxLjY4MTY0IDAuOTQzMzU5IDIuMTEzMjggMC45NDMzNTkgMi42ODM1OVY3LjE2NjAyQzAuOTQzMzU5IDcuNzQwMjMgMS4wODM5OCA4LjE3NTc4IDEuMzY1MjMgOC40NzI2NkMxLjY1MDM5IDguNzY1NjIgMi4wODk4NCA4LjkxMjExIDIuNjgzNTkgOC45MTIxMUgzLjQwNDNDMy41NjQ0NSA4LjkxMjExIDMuNjc3NzMgOC45NDUzMSAzLjc0NDE0IDkuMDExNzJDMy44MTA1NSA5LjA3ODEyIDMuODQzNzUgOS4xOTE0MSAzLjg0Mzc1IDkuMzUxNTZWMTEuMDUwOFpNMy41OTE4IDUuNzY1NjJDMy4zNjEzMyA1Ljc2NTYyIDMuMTY0MDYgNS42ODM1OSAzIDUuNTE5NTNDMi44MzU5NCA1LjM1NTQ3IDIuNzUzOTEgNS4xNTgyIDIuNzUzOTEgNC45Mjc3M0MyLjc1MzkxIDQuNjk3MjcgMi44MzU5NCA0LjUgMyA0LjMzNTk0QzMuMTY0MDYgNC4xNzE4OCAzLjM2MTMzIDQuMDg5ODQgMy41OTE4IDQuMDg5ODRDMy44MjYxNyA0LjA4OTg0IDQuMDIzNDQgNC4xNzE4OCA0LjE4MzU5IDQuMzM1OTRDNC4zNDc2NiA0LjUgNC40Mjk2OSA0LjY5NzI3IDQuNDI5NjkgNC45Mjc3M0M0LjQyOTY5IDUuMTU4MiA0LjM0NzY2IDUuMzU1NDcgNC4xODM1OSA1LjUxOTUzQzQuMDIzNDQgNS42ODM1OSAzLjgyNjE3IDUuNzY1NjIgMy41OTE4IDUuNzY1NjJaTTYuNDYyODkgNS43NjU2MkM2LjIyODUyIDUuNzY1NjIgNi4wMjkzIDUuNjgzNTkgNS44NjUyMyA1LjUxOTUzQzUuNzAxMTcgNS4zNTU0NyA1LjYxOTE0IDUuMTU4MiA1LjYxOTE0IDQuOTI3NzNDNS42MTkxNCA0LjY5NzI3IDUuNzAxMTcgNC41IDUuODY1MjMgNC4zMzU5NEM2LjAyOTMgNC4xNzE4OCA2LjIyODUyIDQuMDg5ODQgNi40NjI4OSA0LjA4OTg0QzYuNjkzMzYgNC4wODk4NCA2Ljg5MDYyIDQuMTcxODggNy4wNTQ2OSA0LjMzNTk0QzcuMjE4NzUgNC41IDcuMzAwNzggNC42OTcyNyA3LjMwMDc4IDQuOTI3NzNDNy4zMDA3OCA1LjE1ODIgNy4yMTg3NSA1LjM1NTQ3IDcuMDU0NjkgNS41MTk1M0M2Ljg5MDYyIDUuNjgzNTkgNi42OTMzNiA1Ljc2NTYyIDYuNDYyODkgNS43NjU2MlpNOS4zMjgxMiA1Ljc2NTYyQzkuMDk3NjYgNS43NjU2MiA4LjkwMDM5IDUuNjgzNTkgOC43MzYzMyA1LjUxOTUzQzguNTcyMjcgNS4zNTU0NyA4LjQ5MDIzIDUuMTU4MiA4LjQ5MDIzIDQuOTI3NzNDOC40OTAyMyA0LjY5NzI3IDguNTcyMjcgNC41IDguNzM2MzMgNC4zMzU5NEM4LjkwMDM5IDQuMTcxODggOS4wOTc2NiA0LjA4OTg0IDkuMzI4MTIgNC4wODk4NEM5LjU1ODU5IDQuMDg5ODQgOS43NTU4NiA0LjE3MTg4IDkuOTE5OTIgNC4zMzU5NEMxMC4wODQgNC41IDEwLjE2NiA0LjY5NzI3IDEwLjE2NiA0LjkyNzczQzEwLjE2NiA1LjE1ODIgMTAuMDg0IDUuMzU1NDcgOS45MTk5MiA1LjUxOTUzQzkuNzU1ODYgNS42ODM1OSA5LjU1ODU5IDUuNzY1NjIgOS4zMjgxMiA1Ljc2NTYyWiIgZmlsbD0iIzMzMzMzMyIvPgo8L3N2Zz4K",Lm=e=>{try{if(e.hasAttribute("data-timestamp-processed"))return;e.setAttribute("data-timestamp-processed","true");const{channel:t,pubDate:n,channelUrl:r}=vm(e);if(!t)return;const o=document.createElement("div");o.className="article-icon-links__pubInfo";const i=wm(t,r);if(o.appendChild(i),n&&ym(n)){const e=Im(n);if(e){const{separator:t,timeElement:n}=e;o.appendChild(t),o.appendChild(n)}}const a=e.querySelector(".comments-count");if(a){const e=a.querySelector("a");if(e){e.className="comments-link";const t=e.querySelector("em"),n=t?t.textContent.trim():"",{svgImg:r,linkText:o}=bm(n,Am);o?e.replaceChildren(r,o):e.replaceChildren(r)}}const s=document.createElement("div");s.className="article-icon-links",s.appendChild(o),a&&s.appendChild(a),e.replaceChildren(s)}catch(e){J().error("Error processing home-preview element",e)}},Tm=e=>{try{if(e.hasAttribute("data-timestamp-processed"))return;e.setAttribute("data-timestamp-processed","true");const{channel:t,channelUrl:n}=vm(e);if(!t)return;const r=document.createElement("div");r.className="article-icon-links__pubInfo";const o=wm(t,n);r.appendChild(o);const i=e.querySelector(".comments-count");if(i){const e=i.querySelector("a");if(e){e.className="comments-link";const t=e.querySelector("em"),n=t?t.textContent.trim():"",{svgImg:r,linkText:o}=bm(n,Am);o?e.replaceChildren(r,o):e.replaceChildren(r)}}const a=document.createElement("div");a.className="article-icon-links",a.appendChild(r),i&&a.appendChild(i),e.replaceChildren(a)}catch(e){J().error("Error processing home-preview element",e)}},Cm=()=>{try{const{channel:e,subchannel:t}=Y(),n=["home","ushome","auhome"];if(!n.includes(e)||!n.includes(t))return;const r=ke();if(!r)return;const o=r.includes("homepageArticleUIWithTimestamp"),i=r.includes("homepageArticleUIWithoutTimestamp"),a=r.includes("homepageArticleUIControl");if(!o&&!i&&!a)return;a||((()=>{try{const e=document.querySelector(".article-tri-headline");e&&e.classList.add("article-tri-headline--first");const t=document.querySelectorAll(".article-icon-links");if(0===t.length)return;t.forEach((e=>{e.querySelectorAll("li").forEach((e=>{e.classList.contains("article-icon-links__pubInfo")||e.querySelector(".comments-link")||e.remove()}))}))}catch(e){J().error("Error applying shared logic in mol-fe-article-timestamp-channel",e)}})(),(()=>{try{const e=document.querySelectorAll(".article-icon-links .comments-link");if(0===e.length)return;e.forEach((e=>{const t=e.querySelector(".icon");if(t){const e=document.createElement("img");e.src=Am,e.alt="",e.className="comments-icon-svg",e.width=13,e.height=13,t.parentNode.replaceChild(e,t)}const n=e.querySelector(".linktext");if(n){const e=n.querySelector(".readerCommentNo");if("comments"===n.textContent.trim()&&n.remove(),e){const t=e.textContent.trim();t&&"0"!==t&&(n.textContent="",n.appendChild(e))}}}))}catch(e){J().error("Error processing comments links in mol-fe-article-timestamp-channel",e)}})()),o?((()=>{try{document.body.classList.add("homepage-article-ui--with-timestamp");const e=document.querySelectorAll("li.article-icon-links__pubInfo");if(0===e.length)return;e.forEach((e=>{const{channel:t,pubDate:n,channelUrl:r}=vm(e);if(!t)return;e.replaceChildren();const o=wm(t,r);if(e.appendChild(o),n&&ym(n)){const t=Im(n);if(t){const{separator:n,timeElement:r}=t;e.appendChild(n),e.appendChild(r)}}}))}catch(e){J().error("Error initialising WithTimestamp variant",e)}})(),(()=>{try{document.querySelectorAll(".home-preview").forEach((e=>{Sm(e,"article-preview-first-black",".mol-fe-latest-headlines--content")||Lm(e)})),Om(Lm)}catch(e){J().error("Error initialising mobile WithTimestamp variant",e)}})()):i&&((()=>{try{document.body.classList.add("homepage-article-ui--without-timestamp");const e=document.querySelectorAll("li.article-icon-links__pubInfo");if(0===e.length)return;e.forEach((e=>{const{channel:t,channelUrl:n}=vm(e);if(!t)return;e.replaceChildren();const r=wm(t,n);e.appendChild(r)}))}catch(e){J().error("Error initialising WithoutTimestamp variant",e)}})(),(()=>{try{document.querySelectorAll(".home-preview").forEach((e=>{Sm(e,"article-preview-first-black",".mol-fe-latest-headlines--content")||Tm(e)})),Om(Tm)}catch(e){J().error("Error initialising mobile WithoutTimestamp variant",e)}})())}catch(e){J().error("Error initialising mol-fe-article-timestamp-channel",e)}};try{x("DOM_READY",Cm)}catch(e){J().error("Error initialising mol-fe-article-timestamp-channel",e)}const Pm="mol-fe-paywall-",Mm=(e,t)=>{try{"localStorage"in window&&window.localStorage.setItem(`${Pm}${e}`,JSON.stringify(t))}catch(e){}},Nm=()=>"/snippet/money/investing/header.html"===location.pathname,Rm=()=>{const{domain:e}=H();return"thisismoney"===e||Nm()},Dm={integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/offer/111204/get-more-from-dailymail.com",production:"https://www.mailsubscriptions.co.uk/info/418990/choose-your-subscription"},km={default:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/offer/109171/get-more-from-the-mail",production:"https://www.mailsubscriptions.co.uk/info/409273/choose-your-subscription"},AU:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/offer/110515/get-more-from-the-mail",production:"https://www.mailsubscriptions.co.uk/info/419105/choose-your-subscription"},GB:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/products/107245/read-more-see-more-enjoy-more",production:"https://www.mailsubscriptions.co.uk/info/409273/choose-your-subscription"},US:Dm,CA:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/offer/111204/get-more-from-dailymail.com",production:"https://www.mailsubscriptions.co.uk/info/419106/choose-your-subscription"},MX:Dm,IE:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/offer/109873/get-more-from-the-mail",production:"https://www.mailsubscriptions.co.uk/info/365671/get-more-from-the-mail"},NZ:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/offer/110515/get-more-from-the-mail",production:"https://www.mailsubscriptions.co.uk/info/419105/choose-your-subscription"}},xm={default:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/offer/109173/first-month-free-then-4.99",production:"https://www.mailsubscriptions.co.uk/info/348363/first-month-free-then-4.99"},AU:{integration:null,production:null},GB:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/products/107260/the-best-financial-articles-with-all-the-mails-best-content",production:"https://www.mailsubscriptions.co.uk/info/362596/1.99-per-month-for-your-first-year-then-4.99-per-month"},US:{integration:null,production:null},CA:{integration:null,production:null},MX:{integration:null,production:null},IE:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/offer/109874/first-month-free-then-4.99",production:"https://www.mailsubscriptions.co.uk/info/365672/get-more-from-this-is-money-with-mail"},NZ:{integration:null,production:null}},Um=async()=>{const{environment:e}=H(),{geo:t}=Y(),n=Rm()?xm:km,r=n[t]||n.default;return r[e]||r.production},Bm=e=>{try{const t=e&&new URL(e);return t&&t.searchParams.set("molclicksource","banner"),t&&t.href||e}catch(t){return e}},jm=()=>{const{geo:e}=Y();return Rm()?"/money/mailplus/index.html":["AU","NZ"].includes(e)?"/mailplus/au/index.html":["US","CA","MX"].includes(e)?"/mailplus/us/index.html":"/mailplus/index.html"},Vm=()=>{const{pageType:e,channel:t,subchannel:n}=Y(),r=["aumailplus","mailplus","usmailplus","mailplusus"];return"channel"===e&&(r.includes(t)||r.includes(n)||"mailplusmoney"===n)},Gm=({referringModule:e,referringPageType:t,returnUrl:n})=>{Mm("return-url",n||`${location.origin}${jm()}`),Mm("purchase-meta",{referringModule:e,referringPageType:t})},Wm=async e=>{const{pageType:t,channel:n,subchannel:r,geo:o}=Y();if("channel"!==t||n!==r||!["auhome","home","ushome"].includes(n)||location.pathname.startsWith("/registration"))return;if(window.getIsPaywallSubscriber&&window.getIsPaywallSubscriber()){const t=document.querySelector("[data-paywall-home-masthead]");return void(t&&(t.remove(),e.style.backgroundImage=""))}const i=await(async()=>{const e=await Um();return Bm(e)})();if(!i)return;const a=document.querySelector("[data-paywall-home-masthead]")||document.createElement("a");a.href=i,a.dataset.paywallHomeMasthead=!0,a.dataset.geo=o,a.dataset.channel=n,a.addEventListener("click",(async e=>{e.preventDefault();let t=a.href;t=window.addCrossDomainParamsToUrl?await window.addCrossDomainParamsToUrl(t):t,t=Bm(t),window.location.href=t,Tt.publish(Tt.PAYWALL_MASTHEAD_SIGNUP_CLICK,{clickLocation:"navigation",referringModule:"navigation"}),Gm({referringModule:"masthead",referringPageType:"home"})})),e.appendChild(a),await Ni(),await Rl()},Km=e=>{const t=window.getIsPaywallEligible&&window.getIsPaywallEligible(),{pageType:n,isPaywalled:r,geo:o,neverPaywall:i}=Y(),a=!window.getIsPaywalledForCountry||window.getIsPaywalledForCountry(),s=!i&&r&&a,c=Rm(),l="article"===n&&s,u=Vm();if(!l&&!u||!u&&!t)return;let d="https://i.dailymail.co.uk/static/mol-fe/static/configs/mol-fe-paywall/mastheads/DailyMailPlusBanner.png";["US","CA","MX"].includes(o)&&(e=>{const t=document.querySelector(".page-header .masthead > a");t&&(t.href=e)})(jm()),c&&(d="https://i.dailymail.co.uk/static/mol-fe/static/configs/mol-fe-paywall/mastheads/TIM_Mail_Masthead.png");const p="cover",f=(()=>{const{geo:e}=Y(),t=["US","CA","MX"].includes(e);if(Vm()&&!t)return null;const n=t?"/ushome/index.html":jm(),r=t?"350px":"300px",o=document.querySelector("[data-paywall-article-masthead]")||document.createElement("a");return o.href=n,o.dataset.paywallArticleMasthead=!0,o.style.position="absolute",o.style.zIndex=10,o.style.top="0px",o.style.right="0px",o.style.height="91px",o.style.width=r,o.addEventListener("click",(()=>{Tt.publish(Tt.PAYWALL_MASTHEAD_ARTICLE_CLICK)})),o})();f&&e.appendChild(f),e.style.backgroundImage=`url(${d})`,p&&(e.style.backgroundSize=p),e.classList.add("masthead-paywalled"),document.documentElement.classList.add(c?"has-mailplus-masthead-tim":"has-mailplus-masthead"),c||document.documentElement.classList.add("has-mailplus-theme")},Fm=e=>{if(!e)return;if("undefined"==typeof window)return;const t=window.location?.href;t!==e&&window.location.replace(e)},zm=({isSelected:e=!1,topNav:t=!1}={})=>{const{geo:n}=Y(),r=["US","CA","MX"].includes(n),o=document.createElement("li");return o.classList.add("mailplus-nav"),o.innerHTML=`\n \n \n DailyMail+\n \n \n `,r&&o.classList.add("mailplus-nav-us"),o},Hm=({isSelected:e=!1,topNav:t=!1}={})=>{const n=document.createElement("li");return n.classList.add("mailplus-nav"),n.innerHTML=`\n \n DailyMail+\n \n `,n},$m=()=>document.querySelector(".page-header .masthead"),Ym=async()=>{try{const e=Rm();let t=$m();if(t||await x("DOM_READY"),t=$m(),!t)return;if(!(window.getIsPaywallEligible&&window.getIsPaywallEligible()))return void Km(t);await Wm(t),Km(t),e?(async()=>{const{pageType:e,isPaywalled:t,subchannel:n,neverPaywall:r}=Y(),o=!window.getIsPaywalledForCountry||window.getIsPaywalledForCountry(),i="article"===e&&!r&&t&&o||"channel"===e&&"mailplusmoney"===n,a=document.querySelector(".page-header >.money.nav-secondary-container .nav-secondary ul.float-l"),s=a.querySelector("li:first-child a");s&&"Money Home"===s.textContent&&(s.textContent="Home"),a.appendChild(Hm({isSelected:i,topNav:!0})),await x("DOM_READY");const c=document.querySelector(".footer .nav-secondary");if(c){const e=c.querySelector("li:first-child a");e&&"Money Home"===e.textContent&&(e.textContent="Home"),c.appendChild(Hm({isSelected:i,topNav:!1}))}})():(async()=>{const{pageType:e,isPaywalled:t,channel:n,subchannel:r,geo:o,neverPaywall:i}=Y(),a=!window.getIsPaywalledForCountry||window.getIsPaywalledForCountry(),s=!i&&t&&a,c="magazines"===r,l=!c&&"channel"===e&&["mailplus","aumailplus","usmailplus","mailplusus"].includes(n),u="article"===e&&s||l||c||"puzzlesus"===n,d=document.querySelector(".page-header .nav-primary"),p=document.querySelector(".page-header > .nav-secondary-container"),f="GB"===o,m=window.getIsPaywallPuzzlesUser(),_=await window.getIsPaywallMagazinesUser(c),h=f&&_;if(u){const e=d.querySelector("span.selected"),t=d.querySelector("li:not(:first-child) .no-border");if(e&&(e.classList.remove("link-wocc","linkro-wocc","selected"),e.classList.add("link-gr6ox","linkro-ccox")),t&&t.classList.remove("no-border"),c){if(!h){const e=jm();return void Fm(e)}const e=document.querySelector(".h1-page-last-updated");e&&e.classList.add("white-text")}if(p){const e=p.querySelector("ul");if(e){e.innerHTML="";const t=document.createElement("li"),r=document.createElement("li"),o=window.getPaywallPuzzlesUrl();if(t.classList.add("first"),t.innerHTML=`DailyMail+ Home`,r.innerHTML=`Puzzles`,e.appendChild(t),e.appendChild(r),h){const t=document.createElement("li"),n=window.getMagazinesUrl();t.innerHTML=`Magazines`,e.appendChild(t)}}p.classList.add("mailplus")}}else if(m){const e=window.getPaywallPuzzlesUrl(),t=d.querySelector('a[href="/puzzles/index.html"]')||p&&p.querySelector('a[href="/puzzles/index.html"]');t&&t.setAttribute("href",e)}if("CA"===o){const e=d.querySelector('a[href*="/puzzles/index.html"]'),t=e&&e.closest("li");t&&t.remove();const r=d.querySelector('a[href="/wellness-us/index.html"]'),o=r&&r.closest("li"),i=o&&o.querySelector("span"),a="podcasts"===n,s=o&&o.nextElementSibling.querySelector("a");o&&(r.innerHTML="Podcasts",r.setAttribute("href","/podcasts/index.html"),o.classList.remove("wellness"),o.classList.add("podcasts"),a&&(i.classList.remove("link-gr6ox","linkro-ccox"),i.classList.add("link-wocc","linkro-wocc"),i.classList.add("selected"),s&&s.classList.add("no-border")))}d.appendChild(zm({isSelected:u,topNav:!0})),await x("DOM_READY");const g=document.querySelector(".footer .nav-primary");if(g){if("CA"===o){const e=g.querySelector('a[href="/puzzles/index.html"]'),t=e&&e.closest("li");t&&t.remove();const r=g.querySelector('a[href="/wellness-us/index.html"]'),o=r&&r.closest("li"),i=o&&o.querySelector("span"),a="podcasts"===n,s=o&&o.nextElementSibling.querySelector("a");o&&(r.innerHTML="Podcasts",r.setAttribute("href","/podcasts/index.html"),o.classList.remove("wellness"),o.classList.add("podcasts"),a&&(i.classList.remove("link-gr6ox","linkro-ccox"),i.classList.add("link-wocc","linkro-wocc"),i.classList.add("selected"),s&&s.classList.add("no-border")))}g.appendChild(zm({isSelected:u,topNav:!1}))}})();const n=window.getIsPaywallSubscriber&&window.getIsPaywallSubscriber();await x("REFRESHED_PAYWALL_ENTITLEMENT");n!==(window.getIsPaywallSubscriber&&window.getIsPaywallSubscriber())&&await Wm(t)}catch(e){J().error("Error initialising paywall masthead desktop",e)}},qm=e=>{const t=window.getIsPaywallEligible&&window.getIsPaywallEligible(),{pageType:n,isPaywalled:r,geo:o,neverPaywall:i}=Y(),a=["US","CA","MX"].includes(o),s=!window.getIsPaywalledForCountry||window.getIsPaywalledForCountry(),c=!i&&r&&s,l=Rm(),u="article"===n&&c,d=Vm();if(!u&&!d||!d&&!t)return;e.classList.add(l?"mailplus-menubar-tim":"mailplus-menubar"),l||document.documentElement.classList.add("has-mailplus-theme");const p=e.querySelector('[data-track-module*="masthead-channel"] span'),f=e.querySelector('[data-track-module*="masthead-channel"] a')||document.createElement("a");f.setAttribute("href",jm()),f.innerHTML="DailyMail+",f.classList.add("mailplus-channel-link"),a&&f.classList.add("mailplus-channel-link-us"),p&&p.replaceWith(f),(()=>{const e=document.querySelector('meta[name="theme-color"]')||document.createElement("meta");e.setAttribute("name","theme-color"),e.setAttribute("content","#1e3264"),document.head.appendChild(e)})()},Xm=()=>document.querySelector("#mobile-content > header"),Zm=async()=>{try{let e=Xm();if(e||await x("DOM_READY"),e=Xm(),!e)return;if(!(window.getIsPaywallEligible&&window.getIsPaywallEligible()))return void qm(e);qm(e),(async()=>{const{geo:e,subchannel:t}=Y(),n=["US","CA","MX"].includes(e),r="GB"===e,o=document.querySelector("#nav"),i=document.createElement("li"),a=o.querySelector("li:nth-child(3)"),s=Rm(),c="magazines"===t,l=await window.getIsPaywallMagazinesUser(c),u=r&&l;if(!c||u){if(i.classList.add("mailplus-nav"),i.innerHTML=`\n \n \n DailyMail+\n \n \n `,n&&i.classList.add("mailplus-nav-us"),s&&i.classList.add("full-width"),a.after(i),!s){const e=window.getPaywallPuzzlesUrl(),t=document.createElement("li");if(t.classList.add("mailplus-nav"),t.classList.add("mailplus-puzzles-nav"),t.innerHTML=`\n \n \n Puzzles\n \n \n `,i.after(t),u){const e=window.getMagazinesUrl(),t=document.createElement("li");t.classList.add("mailplus-nav"),t.classList.add("mailplus-magazines-nav"),t.innerHTML=`\n \n \n Magazines\n \n \n `,i.after(t)}}}else{const e=jm();Fm(e)}})()}catch(e){J().error("Error initialising paywall masthead mobile",e)}},Jm=async()=>{try{if(window.getPaywallPurchaseUrl=Um,Nm())return await Ym(),void document.body.classList.add("mailplus-tim");await x("PAGE_METADATA_SET");const{renderPlatform:e}=H();"desktop"===e?await Ym():"mobile"===e&&await Zm(),Rm()&&(await x("DOM_READY"),document.body.classList.add("mailplus-tim"))}catch(e){J().error("Error initialising paywall masthead",e)}},Qm={getMailplusChannelUrl:jm,getPurchaseUrl:Um,initZephrMasthead:e=>{const t=window.Zephr?.outcomes?.masthead?.outcomeLabel;e.addEventListener("click",(async n=>{n.preventDefault();let r=e.href;r=window.addCrossDomainParamsToUrl?await window.addCrossDomainParamsToUrl(r):r,r=Bm(r),window.location.href&&(window.location.href=r),Tt.publish(Tt.PAYWALL_MASTHEAD_SIGNUP_CLICK,{paywallOutcomeLabel:t}),Gm({paywallOutcomeLabel:t,referringModule:"masthead",referringPageType:"home"})}))},setPaywallPurchaseMeta:Gm};Jm().catch((()=>{}));const e_=async()=>{if("n/a"===await new Promise(((e,t)=>{(window.__dmgCmp||(window.__dmgCmp=[])).push({data:t=>{e(t)},scope:"isReady"})})))return"consent-n/a";return await Md("nrv","29")?"consent-user":"dissent-user"},t_=async(e,t)=>{const{outcome:n}=await window.demeter("getDecisionForArticleWallIndicators",{args:{contentPropensityLevel:e}});window.molSophiPaywallSignpostOutcomes||(window.molSophiPaywallSignpostOutcomes={});const r=(e=>e&&"paywall"===e.wallType&&"always"===e.wallVisibility)(n);((e,t)=>{window.molSophiPaywallSignpostOutcomes[e]=t?"mailplus":"none"})(e||"x",r),r&&t(e||"x")},n_=async e=>{let t="";const n=e=>{t+=`*[data-content-propensity="${e}"], body .is-paywalled[data-content-propensity="${e}"] { display: inline-flex !important; }\n`},r=[];for(let e=1;e<6;e++)r.push(t_(e,n));if(r.push(t_(null,n)),await Promise.all(r),e&&(t+=`\n div[data-live-blog-header] .is-paywalled[data-content-propensity],\n div[data-video-hero] .is-paywalled[data-content-propensity] {\n display: ${"show"===e?"inline-flex":"none"} !important;\n }\n`),t.length){const e=document.createElement("style");e.id="sophi-propensity-style",e.textContent=t,document.head.appendChild(e)}},r_=e=>{window.molSophiFeatureOff||(window.molSophiFeatureOff=e)},o_=e=>{if(!e)return null;const t=e.match(/article-(\d+)/);return Array.isArray(t)&&t[1]?t[1]:null},i_=()=>{document.addEventListener("click",(e=>{const t=e.target.closest("a");if(!t)return;const n=o_(t.href);if(!n)return;let r=t.querySelector("[data-content-propensity]");const o=[...t.parentElement.children].find((e=>e!==t&&e.classList.contains("is-paywalled")));!r&&o&&o.hasAttribute("data-content-propensity")&&(r=o);const i=o&&!o.hasAttribute("data-content-propensity"),a=r?.getAttribute("data-content-propensity");let s="none",c="none";"mailplus"===(window.molSophiPaywallSignpostOutcomes&&window.molSophiPaywallSignpostOutcomes[a])?(s="mailplus",c="sophi"):r||!t.querySelector(".is-paywalled")&&!i||(s="mailplus",c="override"),localStorage.setItem("mol-sophi-signpost-click",`${n}-${s}-${c}`)}))},a_=async()=>{try{window.molSophiLoadedWithConsent=!1,window.molSophiConsentUsed="no-consent";const e=(()=>{try{return window.adsMVTResults&&"off"===window.adsMVTResults.selectedScenarios.sophitruecontrol}catch(e){return!1}})();if(window?.location.hostname.includes("thisismoney")||e)return r_(e?"mvt-disabled":"tim-disabled"),window.molSophiConsentUsed="not-used",void x.go("SOPHI_LOAD_ABORTED");(()=>{try{(window.__dmgCmp||(window.__dmgCmp=[])).push({data:async e=>{"n/a"===e?window.demeter&&window.demeter("enableAllFeatures"):await Md("nrv","29")&&window.demeter&&window.demeter("enableAllFeatures")},scope:"isReady"})}catch(e){}})(),window.molSophiConsentUsed=await(()=>{let e;const t=new Promise(((t,n)=>{e=setTimeout((()=>n(new Error("CMP consent check timed out"))),2500)}));return Promise.race([e_().finally((()=>clearTimeout(e))),t])})();const t=["consent-user","consent-n/a"].includes(window.molSophiConsentUsed);try{i_()}catch(e){console.error("Error storing signpost click: ",e)}await Promise.race([new Promise((e=>{window.molSophiDataLayerEventFired?e(window.molSophiDataLayerEventFired):window.addEventListener("sophiDataLayerReady",(t=>{window.molSophiDataLayerEventFired=t,e(t)}),{once:!0})})),new Promise(((e,t)=>setTimeout((()=>t(new Error("Timed out on sophi data layer"))),1e3)))]);const n="variant"===window?.sophi?.dataLayer?.assignedGroup;if(t&&window.demeter("enableAllFeatures"),window.molSophiScriptReady=performance.now().toFixed(2),window.molSophiLoadedWithConsent=t,t&&!window.molSophiPageViewSent){window.molSophiPaywallOutcome=await(async()=>{try{const{outcome:e}=await Promise.race([window.demeter("getDecision",{args:{visitor:window.DM.isLoggedIn?"registered":"anonymous"}}),new Promise(((e,t)=>setTimeout((()=>t(new Error("Sophi getDecision timeout"))),500)))]);return{isPaywalled:e&&"paywall"===e.wallType&&"always"===e.wallVisibility,source:"sophi"}}catch(e){console.error("Error from getting a paywall decision from Sophi:",e)}return{isPaywalled:!1,source:"not_loaded"}})();const e=window.molSophiPaywallOutcome.isPaywalled?"show":"hide";n&&await n_(window.PageCriteria&&"article"===window.PageCriteria.pageType&&e)}else r_(t?"page-view-sent":"no-consent"),t&&n&&await n_();x.go("SOPHI_LOADED")}catch(e){const t=e&&e.message?e.message.replace(/\s+/g,"-").slice(0,30):"unknown-error";r_("caught-error"),x.go("SOPHI_LOAD_ABORTED");const n=`feature-error-${t}-crbe-${window.molSophiConsentUsed||"not-used"}`;window.molSophiConsentUsed=n,console.error("Error loading Sophi integration script: ",e)}};a_();const s_=e=>/^(live-(us|uk|au)\.(andweb\.dmgt\.net|mol\.dmgt\.net|mailonline\.co\.uk)|(?:www\.)?(dailymail|thisismoney)\.(co\.uk|com))$/.test(e),c_="mol-fe-xp-module-data-utils",l_=s_(window.location.hostname)?"www.dailymail.co.uk":"www.dailymailint.co.uk",u_="retrieveXpModuleHeadJson",d_=async({name:e,env:t,values:n})=>{let r;const o=`https://${l_}/xpmodules/${e}/renderHeadJson?data=`,i={env:t,values:n};try{r=`${o}${encodeURIComponent(JSON.stringify(i))}`}catch(t){return console.error(`[${c_}] ${u_}.urlError`,{error:t,hostname:l_,name:e,...i}),null}try{const e=(await et().get(r,{timeout:1e4})).data;return e?(Array.isArray(e.scripts)||(e.scripts=[]),Array.isArray(e.styles)||(e.styles=[]),e):{scripts:[],styles:[]}}catch(e){return console.error(`[${c_}] ${u_}.thrownError`,{error:e,url:r}),null}},p_="retrieveXpModuleBody",f_=async({name:e,env:t,values:n})=>{let r;const o=`https://${l_}/xpmodules/${e}/renderBody?data=`,i={env:t,values:n};try{r=`${o}${encodeURIComponent(JSON.stringify(i))}`}catch(t){return console.error(`[${c_}] ${p_}.urlError`,{error:t,hostname:l_,name:e,...i}),null}try{const{data:e}=await et().get(r,{timeout:1e4});return"string"!=typeof e||""===e?(console.error(`[${c_}] ${p_}.invalidBody`,{body:e,url:r}),null):e}catch(e){return console.error(`[${c_}] ${p_}.thrownError`,{error:e,url:r}),null}},m_="mol-fe-content-reading-tracker",__=e=>{const t=document.createElement("span");return t.className=ns.MARKER_CLASS_NAME,t.dataset.threshold=e,t},h_=(e,t)=>{const n=e.nodeValue;if(!n)return;const r=n.match(/\S+|\s+/g)||[];let o=0;for(const n of r)if(/^\s+$/.test(n))o+=n.length;else{for(t.totalWordsSoFar++;t.totalWordsSoFar>=t.nextMarkerThreshold;){const n=e.splitText(o),r=__(t.nextMarkerThreshold);n.before(r),t.nextMarkerThreshold+=100,e=n,o=0}o+=n.length}},g_=(e,t)=>{const n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>e.nodeValue?.trim()?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),r=[];for(;n.nextNode();)r.push(n.currentNode);for(const e of r)h_(e,t)},E_=(e,t)=>{const n=e?t.readingStartTime?.getTime():t.lastFiredEventTime?.getTime()||t.readingStartTime?.getTime();return n?(Date.now()-n)/1e3:0},v_=(e,t)=>{const{isCatchUpEvent:n,landingThreshold:r,wordThreshold:o}=e,i=n?0:E_(!1,t),a={quick_scroll_flag:n?o!==r:i>0&&i<=2,reading_duration:i,total_reading_duration:n?0:E_(!0,t),word_threshold:o};ns.trackEvent(a),t.lastFiredEventTime=new Date},y_=()=>{const e=ns.getArticleBodyParagraphs(m_);if(!e)return;const t={lastFiredEventTime:null,nextMarkerThreshold:300,readingStartTime:null,totalWordsSoFar:0};for(const n of e)g_(n,t);ns.eventBus.listen(ns.eventNames.DATA_READY,(e=>((e,t)=>{const n=ns.getMarkers(m_);if(!n)return;t.readingStartTime=new Date;const r=e.landingThreshold||0;let o=0;const i=new IntersectionObserver(((e,n)=>{e.forEach((e=>{if(!e.isIntersecting)return;const{_threshold:r}=e.target;r>o&&(v_({wordThreshold:r},t),o=r,n.unobserve(e.target))}))}));for(const e of n){const n=ns.getMarkerThreshold(e);n<=r?(v_({isCatchUpEvent:!0,landingThreshold:r,wordThreshold:n},t),o=n):(e._threshold=n,i.observe(e))}})(e,t)),{once:!0})},w_=async()=>{ns.shouldTrack()&&(await x("DOM_READY"),y_())};x("PAGE_METADATA_SET",w_).catch((e=>{J().error(`Error initialising ${m_}`,e)}));const I_="notificationWrapper_CURMH",b_="notificationClose_ODVwA",S_="notificationBody_fgixb",O_="notificationBanner_Smyug",A_="notificationBreakingNews_MQsxC",L_="notificationSecondWord_nuQ0U",T_="notificationTitle_HWtWy",C_=()=>{const e=document.body.querySelectorAll(`.${I_}`);if(e.length>0)for(const t of Array.from(e))document.body.removeChild(t)},P_=(e,t,n)=>{C_();const r=`\n
\n
\n \n BREAKING NEWS\n \n
\n \n ${t.title}\n \n
\n
\n
`,o=setTimeout(C_,e),i=document.createElement("div");i.classList.add(I_),i.innerHTML=r;const a=()=>{document.body.contains(i)&&(document.body.removeChild(i),clearTimeout(o))},s=i.querySelector(`.${S_}`),c=i.querySelector(`.${b_}`);s.onclick=()=>{window.open(t.clickThroughUrl,"_blank").focus(),n&&"function"==typeof n.onClick&&n.onClick(),a()},c.onclick=a,document.body.appendChild(i)},M_="prePrompt_nIc9z",N_="prePromptWrapper_SrdCF",R_="prePromptLogo_NeBBl",D_="prePromptCloseBtn_QTaG4",k_="prePromptMain_ZNuKI",x_="prePromptBell_cxJUW",U_="prePromptText_XKZPC",B_="prePromptConfirmBtn_M4juw",j_={buylineuk:"Buyline",buylineus:"Buyline",femail:"Femail",health:"Health",lifestyle:"Lifestyle",money:"Money",news:"Breaking",royals:"Royal",sciencetech:"Science",sport:"Sport",travel:"Travel",tvshowbiz:"Showbiz"},V_="pre-prompt",G_=()=>{const e=document.getElementById(V_);e&&document.body.contains(e)&&document.body.removeChild(e)},W_=(e,t)=>{if(document.getElementById(V_))return;const n=`Sign up to ${j_[e]||"Breaking"} News notifications`,r=document.createElement("div");r.id=V_,r.classList.add(M_),r.dataset.channelColor=e,r.innerHTML=`
\n \n
\n \n \n \n
\n
\n
\n \n \n \n \n
\n
${n}
\n
\n \n
`;const o=r.querySelector(`.${D_}`),i=r.querySelector(`.${B_}`);o&&o.addEventListener("click",(()=>{G_(),t(!1)})),i&&i.addEventListener("click",(()=>{G_(),t(!0)})),document.body.append(r)},K_=async()=>{const{webPush:{baseEndpoint:e}}=H();if(!window.hulk)try{await si(`${e}v1/static/latest/mol-fe-web-push-browser-register/register.js`,{beforeCurrentScript:!0,defer:!0})}catch(e){J().error("There was a problem attempting to loading register.js",e)}return window.hulk},F_=()=>{try{return decodeURIComponent(document.cookie.match(/s_(m|v|a|f)id\%3D(.+?)\%3B/)[2]).split("|")[0]}catch(e){J().warn("could not find Omniture visitor ID for Hulk")}},z_=(e,t)=>{const n=document.querySelector('meta[name="keywords"]'),r=n&&n.content?n.content.split(","):[],o=location.host.split(".")[1];return r.filter((n=>n!==e&&n!==t&&n!==o))},H_=({isMobile:e,isTablet:t}={})=>{switch(!0){case t:return"tablet";case e:return"mobile"}return"desktop"},$_=()=>{const{environment:e,webPush:{promptFrequency:t},syncBundleLocation:n}=H(),{isMobile:r,isTablet:o,channel:i,geo:a,subchannel:s}=Y(),c=new URL(document.location).searchParams,l=i?[i]:[],u=s?[s]:[],d="push-notification"===(c&&c.get("ito"))?z_(l[0],u[0]):void 0,p=F_(),f=p?[p]:[],m=!0;return{environment:e,metadata:{channels:l,geo:a,keywords:d,organisation:"mol",platform:H_({isMobile:r,isTablet:o}),profilingAllowed:m,subChannels:u,userAgent:navigator.userAgent,visitorIds:f},notificationMacros:{impression:[]},promptFrequency:t,swUrl:`${n}/sw.js`}},Y_=e=>e.scrollTop||document.documentElement.scrollTop||document.body.scrollTop,q_=5e3,X_=async()=>{try{const{webPush:e,articleId:t,contentType:n}=H(),{channel:r,isMobile:o,subchannel:i}=Y(),{hostname:a,prePromptDelayTTL:s=q_,promptEnabled:c,pullNotificationEnabled:l,pullNotificationTTL:u=3e5,pullNotificationScrollThreshold:d}=e||{},{Register:p}=await K_(),f=$_();if(a&&location.hostname.includes(a)){const e=new p(f);if(e.on("error",J().error),p.isWebPushSupported()&&(e.on("notification_click",(e=>Tt.publish(Tt.WEB_PUSH_NOTIFICATION_CLICK,e))),e.on("prompt_pre_prompt_impression",(e=>Tt.publish(Tt.WEB_PUSH_PRE_PROMPT_IMPRESSION,e))),e.on("prompt_pre_prompt_click",(e=>Tt.publish(Tt.WEB_PUSH_PRE_PROMPT_CLICK,e))),e.on("prompt_impression",(e=>Tt.publish(Tt.WEB_PUSH_PROMPT_IMPRESSION,e))),e.on("prompt_click",(e=>Tt.publish(Tt.WEB_PUSH_PROMPT_CLICK,e))),await e.init(),c)){const t=!o&&(()=>{const e=/Version\/([0-9.]+) ?Safari\/[0-9.]+/.exec(navigator.userAgent);if(e){const t=parseFloat(e[1]);return!isNaN(t)&&t>=16}return!1})();setTimeout((()=>{e.showPrompt(t?W_.bind(null,r):void 0)}),s)}!l||"home"===n&&r===i&&["home","ushome","auhome"].includes(r)||(e.on("pull_notification_click",(e=>Tt.publish(Tt.WEB_PULL_NOTIFICATION_CLICK,e))),await x("DOM_READY"),"number"==typeof d&&d>0&&await((e,t)=>{if(!e||"number"!=typeof e)throw new TypeError("missing or wrong required threshold number");return new Promise((n=>{if(Y_(t)>=e)return void n();const r=()=>{Y_(t)>=e&&(n(),t.removeEventListener("scroll",r))};t.addEventListener("scroll",r)}))})(d,document),await e.initPullNotifications({canRender:e=>"object"==typeof e&&(!e.assetId||e.assetId!==t),renderPullNotification:P_.bind(null,u)}))}}catch(e){J().error(`Error initializing web push: ${e}`)}},{ccRender:Z_}=Y();x("PAGE_METADATA_SET",(()=>{Z_||X_()}));const{externalLinkTracker:J_,trackSwipe:Q_}=pn,{pageEvents:eh}=p;eh.getPageMetadata=(...e)=>(J().warn('"pageEvents.getPageMetadata" has been deprecated. Please use "DM.molFePageMetadata.getPageMetadata" instead'),H(...e));const{isLoggedIn:th,userData:nh,userId:rh}=window.DM||{};window.DM={...L,isLoggedIn:th,userData:nh,userId:rh},window._=m,window.MobileUtils=_,window.isAdFreeEntitled=()=>!1,Object.freeze(window.DM.pageEvents),document.addEventListener("click",(e=>{const t=e.target.closest("[data-social-first-article-links] .facebook, [data-social-first-article-links] .twitter");if(t){e.preventDefault();const n=t.classList.contains("twitter")?"twitter":"facebook",r=t.classList.contains("twitter")?"tw":"fb",o=t.querySelector("button").getAttribute("data-url"),i=H(),a=t.closest(".article").querySelector("a"),s=a.textContent,c=a.getAttribute("href").match(/\/(article|fb)-(\d+)\//)[2],l=Ot().get("social-share-platform");let u="";t.querySelector("button").hasAttribute("data-preferred-shared-network-enabled")&&("twitter"===l?u="twitter_preferred-":"facebook"===l&&(u="facebook_preferred-")),window.open(o,"share-article-"+r+"-"+Dl++,"resizable=1,scrollbars=1,status=1,width=1050,height=650"),"twitter"===n?l||Ot().set("social-share-platform",n,{path:"/"}):"facebook"===n&&Ot().set("social-share-platform",n,{path:"/"}),Tt.publish(Tt.SOCIAL_SHARE_CLICKED,{articleId:c,articleTitle:s,pageMetadata:i,placement:u+"home",site:n,type:n+"-type"})}})),jl(),x("PAGE_METADATA_SET",(()=>{try{const e=ke();e&&e.length&&(window.molMVTest=(window.molMVTest?window.molMVTest+",":"")+e.join(","))}catch(e){J().error("Error setting multivariant experiments to ads MVT",e)}}));try{(()=>{try{window.getDoesUserHaveRequiredEntitlementsAsync=md,window.getIsPaywallEligible=pd,window.getIsPaywallSubscriber=ud,window.getPaywallEntitlements=fd,window.getPaywallEntitlementsMightChange=wd,window.getPaywallSubscriberType=Id,window.paywallSubscriberType=Id(),window.getIsPaywallPuzzlesUser=gd,window.getIsPaywallMagazinesUser=Ed,window.getPaywallPuzzlesUrl=vd,window.getMagazinesUrl=yd,window.getIsPaywalledForCountry=bd,window.addCrossDomainParamsToUrl=Ad,window.getOneAccountUserId=Ld,window.getPageIsPaywalledForUserIgnoringSubscription=Td,window.getPageIsPaywalledForUserIncludingSubscription=Cd,window.getPaywallStatus=Pd}catch(e){}})();pd()||document.documentElement.classList.add("paywall-ineligible"),(async()=>{try{if("off"===window?.adsMVTResults?.selectedScenarios.vwo)return;if(await Nd("vwo-external",!0)){const e=document.createElement("script");window.location.hostname.includes(".dailymailint.")||window.location.hostname.includes(".thisismoneyint.")||window.location.hostname.includes("liveint"),e.id="vwoCode",e.type="text/javascript",e.innerHTML="\n window._vwo_code || (function() {\nvar account_id=1072524,\nversion=2.1,\nsettings_tolerance=2000,\nhide_element='',\nhide_element_style = 'opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;transition:none !important;',\n/* DO NOT EDIT BELOW THIS LINE */\nf=false,w=window,d=document,v=d.querySelector('#vwoCode'),cK='_vwo_'+account_id+'_settings',cc={};try{var c=JSON.parse(localStorage.getItem('_vwo_'+account_id+'_config'));cc=c&&typeof c==='object'?c:{}}catch(e){}var stT=cc.stT==='session'?w.sessionStorage:w.localStorage;code={nonce:v&&v.nonce,use_existing_jquery:function(){return typeof use_existing_jquery!=='undefined'?use_existing_jquery:undefined},library_tolerance:function(){return typeof library_tolerance!=='undefined'?library_tolerance:undefined},settings_tolerance:function(){return cc.sT||settings_tolerance},hide_element_style:function(){return'{'+(cc.hES||hide_element_style)+'}'},hide_element:function(){if(performance.getEntriesByName('first-contentful-paint')[0]){return''}return typeof cc.hE==='string'?cc.hE:hide_element},getVersion:function(){return version},finish:function(e){if(!f){f=true;var t=d.getElementById('_vis_opt_path_hides');if(t)t.parentNode.removeChild(t);if(e)(new Image).src='https://dev.visualwebsiteoptimizer.com/ee.gif?a='+account_id+e}},finished:function(){return f},addScript:function(e){var t=d.createElement('script');t.type='text/javascript';if(e.src){t.src=e.src}else{t.text=e.text}v&&t.setAttribute('nonce',v.nonce);d.getElementsByTagName('head')[0].appendChild(t)},load:function(e,t){var n=this.getSettings(),i=d.createElement('script'),r=this;t=t||{};if(n){i.textContent=n;d.getElementsByTagName('head')[0].appendChild(i);if(!w.VWO||VWO.caE){stT.removeItem(cK);r.load(e)}}else{var o=new XMLHttpRequest;o.open('GET',e,true);o.withCredentials=!t.dSC;o.responseType=t.responseType||'text';o.onload=function(){if(t.onloadCb){return t.onloadCb(o,e)}if(o.status===200||o.status===304){_vwo_code.addScript({text:o.responseText})}else{_vwo_code.finish('&e=loading_failure:'+e)}};o.onerror=function(){if(t.onerrorCb){return t.onerrorCb(e)}_vwo_code.finish('&e=loading_failure:'+e)};o.send()}},getSettings:function(){try{var e=stT.getItem(cK);if(!e){return}e=JSON.parse(e);if(Date.now()>e.e){stT.removeItem(cK);return}return e.s}catch(e){return}},init:function(){if(d.URL.indexOf('__vwo_disable__')>-1)return;var e=this.settings_tolerance();w._vwo_settings_timer=setTimeout(function(){_vwo_code.finish();stT.removeItem(cK)},e);var t;if(this.hide_element()!=='body'){t=d.createElement('style');var n=this.hide_element(),i=n?n+this.hide_element_style():'',r=d.getElementsByTagName('head')[0];t.setAttribute('id','_vis_opt_path_hides');v&&t.setAttribute('nonce',v.nonce);t.setAttribute('type','text/css');if(t.styleSheet)t.styleSheet.cssText=i;else t.appendChild(d.createTextNode(i));r.appendChild(t)}else{t=d.getElementsByTagName('head')[0];var i=d.createElement('div');i.style.cssText='z-index: 2147483647 !important;position: fixed !important;left: 0 !important;top: 0 !important;width: 100% !important;height: 100% !important;background: white !important;display: block !important;';i.setAttribute('id','_vis_opt_path_hides');i.classList.add('_vis_hide_layer');t.parentNode.insertBefore(i,t.nextSibling)}var o=window._vis_opt_url||d.URL,s='https://dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(o)+'&vn='+version;if(w.location.search.indexOf('_vwo_xhr')!==-1){this.addScript({src:s})}else{this.load(s+'&x=true')}}};w._vwo_code=code;code.init();})();\n",document.head.appendChild(e)}}catch(e){console.error("Error while adding VWO code to head:",e)}})(),Ju(),Rd()}catch(e){}})()})(); //# sourceMappingURL=desktop.js.map