/*! For license information please see desktop.js.LICENSE.txt */ !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}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="https://scripts.dailymail.co.uk/static/mol-fe/static/mol-fe-sync-bundle/13.2.0/",n(n.s=215)}([function(e,t,n){"use strict";n.r(t),n.d(t,"log",(function(){return f})),n.d(t,"getLogger",(function(){return p}));var r=n(1),o=n(6),i=n.n(o);n.d(t,"logger",(function(){return i.a}));var a=n(98),s=n.n(a);const c=Object.keys(i.a.levels),l=c.reduce(((e,t)=>(e[i.a.levels[t]]=t,e)),{}),u=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")||"",d=Object(r.getPageCriteria)().logLevel||"";s.a.apply(i.a,{nameFormatter:e=>e||"mol-fe",template:"[%n] %l:"}),i.a.setDefaultLevel(i.a.levels.ERROR),i.a.setLevel(i.a.levels.ERROR),c.includes(u.toUpperCase())?i.a.setLevel(u,!1):c.includes(d.toUpperCase())&&i.a.setLevel(d,!1),console.info(`Current log level: ${l[i.a.getLevel()]}`),i.a.log=i.a.debug;const f=i.a.log.bind(i.a),p=(...e)=>{const t=i.a.getLogger(...e);return t.setLevel(i.a.getLevel()),t};t.default=i.a},function(e,t,n){"use strict";n.r(t),n.d(t,"getPageCriteria",(function(){return s})),n.d(t,"getPageMetadata",(function(){return i})),n.d(t,"getArticleFeatures",(function(){return c})),n.d(t,"setPageMetadata",(function(){return a}));var r=n(2);let o={};const i=function(e){return Object.assign({},o,e)},a=function(e){o=e,r.later.go("PAGE_METADATA_SET")},s=function(){return Object.assign({},window.PageCriteria)},c=function(){const e=[],{liveBlog:t,hasLiveBlogHeaderXpmodule:n,hasVideoHeroXpmodule:r}=window.PageCriteria;return t&&e.push("liveBlog"),n&&e.push("hasLiveBlogHeaderXpmodule"),r&&e.push("hasVideoHeroXpmodule"),e.join(",")}},function(e,t,n){"use strict";n.r(t),n.d(t,"Deferred",(function(){return o.a})),n.d(t,"later",(function(){return d})),n.d(t,"bus",(function(){return f})),n.d(t,"PubSub",(function(){return r}));var r=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)}},o=n(20);var i=function(e,t){return e.has(t)||e.set(t,new o.a),e.get(t)};const a=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()})),s=new Map,c=()=>{},l=function(e,t=c){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=>i(s,e).promise));return Promise.all([...r,a]).then(t)},u=function(e){i(s,e).resolve()};if(l.go=u,window.DMPlaceholder&&window.DMPlaceholder.laterQueue&&window.DMPlaceholder.laterQueue.length)for(const e of window.DMPlaceholder.laterQueue)l(e.eventNames,e.callback);u("ads");var d=l;const f=new r},function(e,t,n){"use strict";n.r(t),n.d(t,"moduleTracking",(function(){return d.a})),n.d(t,"nielsen",(function(){return f.a})),n.d(t,"pageEvents",(function(){return a.a})),n.d(t,"ted",(function(){return p.a})),n.d(t,"config",(function(){return m.a})),n.d(t,"googleAnalytics",(function(){return Hn})),n.d(t,"fireBidmaxTrackingEvent",(function(){return Yn}));var r=n(103),o=n(104),i=n(0);var a=n(5);var s=n(21);const c=()=>{window.adverts&&window.adverts.queue&&window.adverts.queue.push((()=>{window.fbq&&window.fbq("track","Subscribe",{currency:"GBP",value:"1.99"})}))},l=()=>{window.adverts&&window.adverts.queue&&window.adverts.queue.push((()=>{window.fbq&&window.fbq("trackCustom","SubscribeButtonClicked")}))},u=[{PAYWALL_CONVERSION:c,PAYWALL_CONVERSION_BANNER:c,PAYWALL_CONVERSION_PROFILE:c,PAYWALL_MASTHEAD_SIGNUP_CLICK:l,PAYWALL_PROFILE_SIGNUP_CLICK:l,PAYWALL_SIGN_UP:l}];for(const e of u)Object(s.a)("googleAnalytics",e);var d=n(102),f=n(101),p=n(100),m=n(13),h=n(2),_=n(9),g=n(1),E=n(23),v=n(11);const y="G-C9F47K6NW6",w=`https://www.googletagmanager.com/gtag/js?id=${y}&l=molFeDataLayer`,b="http://fbia.facebook.com/";var O=n(4),I=n.n(O),S=n(35),A=n(26),T=n(49),C=n(34);const L=Object(E.createLocalStorage)("mol-fe-tracking-"),{getHostname:P,getPathname:R}=S.b,N="lastNonInternalReferrer",M="referrer-session",D="referrer-external-session",k=e=>{if(!e)return!1;const t=P(e);return!(!t||!t.match(/^www\d?\.(thisismoney|dailymail|thisismoneyint|dailymailint)\./i))||P(location.href)===t},x=()=>{const e=document.referrer;if(k(e))return L.getItem(N)||null;const t=e||"undefined";return L.setItem(N,t),t},B=()=>{const e=document.referrer;if(!k(e))return;return R(e).split("/")[1]||void 0},U="google",j=["duckduckgo","yahoo","bing"],F=[U,...j],W=["instagram","reddit","pinterest","/t.co/","facebook","snapchat"],V=["dailymail","thisismoney","mailonsunday","mymailaccount","mailsubscriptions"],G="news.google",K="com.google",H="drudgereport",$="Direct",Y="Internal Traffic",q="Other Websites",X={bing:"bing",duckduckgo:"duckduckgo",google:"google websearch",googleApp:"google app",googleNews:"google news",pushNotifications:"push notifications",widgetNotifications:"widget notifications",yahoo:"yahoo"},z={"/t.co/":"twitter",facebook:"facebook",instagram:"instagram",pinterest:"pinterest",reddit:"reddit",snapchat:"snapchat"},J=e=>e?e.includes("windows-widget")?X.widgetNotifications:e.includes("push-notif")?X.pushNotifications:null:null,Z=(e,t,n)=>t.includes(e)||n.includes(e),Q=e=>{const t=document.referrer||"",n=x()||"",r=((e,t)=>{let n=null;return j.some((r=>!!Z(r,e,t)&&(n=X[r],!0))),n||(Z(K,e,t)?X.googleApp:Z(G,e,t)?X.googleNews:Z(U,e,t)&&![K,G].some((n=>Z(n,e,t)))?X.google:n)})(n,t),o=((e,t)=>{let n=null;return W.some((r=>!!Z(r,e,t)&&(n=z[r],!0))),n})(n,t),i=J(e);return i||(r||(o||(V.some((e=>t.includes(e)))?Y:document.referrer||e?((e,t)=>Z(H,e,t)?H:Z("msn",e,t)?"msn":q)(n,t):$)))},ee=e=>{const t=(()=>{const e=L.getItem(M);if(!e)return null;const{updatedAt:t}=e;return Date.now()-t>18e5?null:e})(),n=(()=>{const e=L.getItem(D);if(!e)return null;const{updatedAt:t}=e;return Date.now()-t>15552e6?null:e})();if(t){if(t.updatedAt=Date.now(),L.setItem(M,t),![Y,$].includes(t.referrerType)||!n)return L.setItem(D,{...n||{createdAt:Date.now()},referrerGroup:t.referrerGroup,referrerType:t.referrerType,updatedAt:Date.now()}),{referrerGroup:t.referrerGroup,referrerType:t.referrerType};if(n)return{referrerGroup:n.referrerGroup,referrerType:n.referrerType}}const r=Q(e),o=(e=>{const t=document.referrer||"",n=x()||"",r=e=>Z(e,n,t);return J(e)?"Push Channels":F.some(r)?"Search":W.some(r)?"Social":V.some((e=>t.includes(e)))?Y:document.referrer||e?q:$})(e),i=Date.now();return L.setItem(M,{createdAt:i,referrerGroup:r,referrerType:o,updatedAt:i}),[Y,$].includes(o)&&n?{referrerGroup:n.referrerGroup,referrerType:n.referrerType}:(L.setItem(D,{...n||{createdAt:Date.now()},referrerGroup:r,referrerType:o,updatedAt:i}),{referrerGroup:r,referrerType:o})},te="mol-fe-previous-render-platform";let ne=null;const re=()=>{if(ne)return ne;ne=k(document.referrer)?(()=>{try{return window.localStorage.getItem(te)}catch(e){}return null})():null;const e=navigator.userAgent.match(/snapchat/i),t=navigator.userAgent.match(/BytedanceWebview/i);let{renderPlatform:n}=Object(g.getPageMetadata)();return e&&(n="snapchat"),t&&(n="tiktok"),(e=>{try{window.localStorage.setItem(te,e)}catch(e){}})(n),ne};var oe=n(16),ie=n(27),ae=n(50);const se=(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]=se(e[t])};return Array.isArray(t)&&t.length&&(r=r=>{t.includes(r)?n[r]=e[r]:n[r]=se(e[r])}),Object.keys(e).forEach(r),n},ce=e=>"string"!=typeof e||e.startsWith("/")?e:`/${e.trim()}`,le=()=>{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 ue=n(52);const de=()=>{if(ue.Register.isWebPushSupported())switch(Notification.permission){case"default":return"eligible";case"denied":return"denied";case"granted":return"subscribed"}return"not_supported"},fe="FB Logged-In User",pe="FB Logged-out User",me="FB Registering User",he="Google Logged-In User",_e="Google Logged-out User",ge="Google Registering User",Ee="Guest",ve="Twitter Logged-In User",ye="Twitter Logged-out User",we="Twitter Registering User",be=function(){return I.a.get("_as")||Ee},Oe=function(){switch(be()){case fe:case pe:case me:return"facebook";case he:case _e:case ge:return"google";case ve:case ye:case we:return"twitter";default:return"default"}},Ie=()=>`${be()}|${I.a.get("_rs")||""}`,Se="mol-fe-last-user-id",Ae=()=>{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){}})(Se,e)):e=(e=>{let t=null;try{"localStorage"in window&&(t=JSON.parse(window.localStorage.getItem(e)))}catch(e){}return t})(Se),e},Te=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":::::"},Ce=e=>{if(e instanceof Date)return e.toISOString().split("T")[0]},Le=e=>{if(e instanceof Date)return e.toISOString().split("T")[1].split(":")[0]};var Pe=n(47),Re=n.n(Pe);const Ne=()=>{try{const e=new URLSearchParams(window.location.search).get("searchPhrase");if("string"==typeof e)return e.toLowerCase()}catch(e){}},Me=(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},De=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)*Me(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)*Me(window.BigInt(2),window.BigInt(o)),o+=window.BigInt(16);return e.number=r,e.version=n,e}return null},ke=[["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"]],xe=()=>{const{clientIP:e}=Object(g.getPageCriteria)();return(e=>{try{if(!("BigInt"in window))return!1;const{number:t,version:n}=De(e)||{};if(!t)return!1;for(const e of ke.filter((([e])=>e.includes(":")===(6===n)))){const[n,r]=e,{number:o}=De(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},Ue=()=>{try{return Object.entries(window.adsMVTResults.selectedScenarios).map((([e,t])=>`${e}=${t}`)).join(",")}catch(e){i.logger.error("Error getting ads test scenario for GA",e)}return null},je=async()=>{if("cookieDeprecationLabel"in navigator){return await navigator.cookieDeprecationLabel.getValue()}},{getHostname:Fe}=S.b,We=async()=>{const e=Object(g.getPageMetadata)(),{articleId:t,articleTitle:n,authorName:r,channel:o,contentType:i,domain:a,loggedInStatus:s,partnerSite:c,publishedDate:l,subChannel:u,subChannel2:d,subChannel3:f,topics:p}=e,{openwebEnabled:m,pageType:h,sponsored:_,sponsorLabel:E,sponsorName:v}=Object(g.getPageCriteria)();let y=e.renderPlatform;const w=navigator.userAgent.match(/snapchat/i),O=navigator.userAgent.match(/BytedanceWebview/i);y=location.href.includes("/embed/gamp-video/")?"mobile amp":y,y=location.href.includes("/embed/fbia-video/")?"mobile fbia":y,w&&(y="snapchat"),O&&(y="tiktok");const S="true"===_||!0===_,L=y&&"mobile fbia"===y.toLowerCase(),P=L?b:document.referrer,R=L&&b||x()||P,{ico:N,ito:M,utm_source:D}=(()=>{try{const e=location.href;return new Re.a(e,!0).query||{}}catch(e){return{}}})();let k,U;M&&!D&&(k={medium:"ito",source:M});const j=xe();window.applePrivateRelay=j;const{moduleName:F,moduleTracking:W,moduleListPosition:V}=Object(ae.a)(),{referrerType:G,referrerGroup:K}=ee(M),H=Object(A.getExperiments)();try{if("channel"===h&&o===u&&["/home","/ushome","/auhome"].includes(o)&&"mobile"===y){U=I.a.get("mol-home")||"news";const e=document.querySelector(".home-tabs-container");e&&"showbiz"===e.dataset.selectedHpTab&&(U="showbiz")}}catch(e){}const $=m||"article"!==h,Y={ads_mvt_test_scenario:Ue(),article_status:Object(oe.a)(),article_features:Object(g.getArticleFeatures)(),article_id:t,article_title:n,author_name:r,bundle_version:Te(e),campaign:k,url_channel:ce(o),chrome_sandbox_label:await je(),content_group1:i,content_type:i,domain:a,ico_internal_hit:N,internal_search_terms:Ne(),ito_external_hit:M,logged_in_status:(q=s,q&&q.replace(/\s+/g,"")),icoInternalHit:N,icoInternalSession:N,itoExternalHit:M,itoExternalSession:M,mobile_home_tab_active:U,mobile_home_tab_choice:Object(C.a)()||"undefined",module_click_list_position:V,module_name:F,module_tracking:W,multivariant_experiments:H&&H.length?H.join(","):"undefined",openweb_enabled:$?"true":"false",page_url:location.href||"",partner_site:c||void 0,previous_page_rendered_platform:re()||"undefined",article_published_date:Ce(l),article_published_hour:Le(l),puzzle_user_type:Object(ie.a)(),referrer:P,referrer_type:G,referrer_group:K,referring_channel:B()?ce(B()):"undefined",registration_id:Ae()||"undefined",rendered_platform:y,sponsor_name:v||E||S&&"sponsored"||void 0,url_subchannel_level_1:ce(u),url_subchannel_level_2:ce(d),url_subchannel_level_3:ce(f),referringDomain:"undefined"===R?R:Fe(R),referringUrl:R,subscription_entitlements:Object(oe.b)()||"undefined",swipe_funnel_status:Object(T.a)()||"undefined",article_tags:p&&p.length>0?p.sort(((e,t)=>e.localeCompare(t))).join(","):void 0,user_type:Object(oe.c)(),user_agent:navigator.userAgent,user_login_details:Ie(),user_local_server_date:le(),push_notification_status:de(),...Be()||{}};var q;for(const e of["ito_external_hit","ito_external_session","referring_url","referring_domain","itoExternalHit","itoExternalSession","referringUrl","referringDomain"])Y[e]||(Y[e]="undefined");return(e=>{for(const t of Object.keys(e))e[t]||delete e[t];return e})(Y)},Ve=e=>new Promise((t=>{Ke("get",e,"client_id",(e=>{t(e)}))})),Ge=()=>{const e=navigator.userAgent.match(/snapchat/i),t=navigator.userAgent.match(/BytedanceWebview/i);return e||t?{ga4Id:"G-K7GKTZV547"}:{ga4Id:y}},Ke=function(){window.molFeDataLayer.push(arguments)},He=e=>{Ke("set","user_properties",e)},$e=async()=>{const{ga4Id:e}=Ge(),t=await We(),n=se(t,["referrer_type"]),{environment:r}=Object(g.getPageMetadata)(),o="production"===r?["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,...c}=n,l=await(e=>{try{return Promise.race([Ve(e),(t=1e3,new Promise((e=>setTimeout(e,t))))])}catch(e){return void i.logger.error("Error getting client id",e)}var t})(e),u=(()=>{try{const e=Object(E.getItem)("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 i.logger.error("Error getting cross org user id",e),null}})();Ke("config",e,{clientId:l,linker:{accept_incoming:!0,domains:o},send_page_view:!1,user_properties:{client_id:l,puzzle_user_type:s,registration_id:a,...u?{push_notif_user_id:u}:{}},...c}),Object(_.setConfig)("molFeGAProps",n),n.puzzle_user_type&&He({puzzle_user_type:n.puzzleUserType})};let Ye=null;const qe=()=>(Ye||(Ye=$e()),Ye),Xe=async e=>{const{ga4Id:t}=Ge();await qe(),Ke("event","page_view",{...se(e),send_to:t})},ze=async(e,t,n,r)=>{const{ga4Id:o}=Ge();await qe();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))}i&&(r?Ke("event",i,{...se(t),send_to:o}):setTimeout((()=>{Ke("event",i,{...se(t),send_to:o})}),500))};var Je=n(48);const Ze=()=>{try{return"visibilityState"in document?document.visibilityState:"unsupported"}catch(e){return"unsupported"}},Qe=(e,t)=>{const n=Object(Je.a)(),{contentType:r}=Object(g.getPageMetadata)(),{pageType:o}=Object(g.getPageCriteria)(),i="article"===o||"article"===r?1:void 0,a=(()=>{const{pageType:e}=Object(g.getPageCriteria)();if("article"!==e)return;return{hasBeenPaywalled:"has_been_paywalled_article_views",isPaywalled:"paywall_article_views",isPaywalledForOthers:"is_paywalled_for_others_article_views",none:"free_article_views"}[Object(oe.a)()]})();if(n){const e={auto_refreshes:1,event_category:"auto refresh",visibility_state:Ze()};ze(`auto refresh ${n}`,e,`auto_refresh_${n}`)}else Xe({article_views:i,mobile_home_tab_active:t&&t.mobileHomeTabActive,...a?{[a]:1}:{}})},et={PAGE_MOBILE_TAB_CHANGE:Qe,PAGE_RENDER_STARTED:Qe},tt={SOCIAL_SHARE_CLICKED:function(e,t){const n=Object(g.getPageMetadata)(),r=t.pageMetadata||{},o=t.site+"_share_article-"+t.placement,i=r.articleTitle||t.articleTitle,a=r.articleId||t.articleId,s=r.channel||n.channel,c=r.channel||n.subChannel;let l,u,d,f,p;if(t.version&&"videoplayer"===t.placement&&(l="videoplayer_"+t.version),t.id&&t.nthPosition&&(u="image "+(t.nthPosition-1)+" image share",d=t.id),t.videoTitle&&(f=t.videoTitle),t.videoId&&(p=t.videoId),"video-lead"===t.placement&&!f&&!p)try{const e=document.querySelector(".video-lead-info .video-headline"),t=e&&e.querySelector("a"),n=t?t.getAttribute("href"):window.location.href;f=e.innerText.trim().replace("Video: ",""),p=n&&n.match(/video-(\d+)/)[1]}catch(e){}ze("click",{article_id:a,article_title:i,channel:s,event_category:"social share",event_label:o,gallery_image_action:u,gallery_image_id:d,non_interaction:!1,social_share_clicks:1,social_share_type:o,url_channel:s,url_subchannel_level_1:c,video_internal_id:p,video_player_version:l,video_title:f},"social_share")}},nt=e=>{const t=`${e.playerType} ${e.playerId}`,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,f,p;const m=e.animatedPreviewEnabled?"withpreview":"nopreview",h=e.initialVideo?"inline":"related",_=e.pageMetadata.articleId?"article":"non-article";return"gampembedded"===e.playerId&&(s="mobile amp"),"fbiaembedded"===e.trackingType&&(s="mobile fbia",c=b),e.version&&(l="videoplayer_"+e.version),"thirdPartyEmbedded"===e.trackingType?(u="video_module^embedded^"+h+"^offsite",d="offsite^"+h,c=document.referrer,s="Offsite"):"image_gallery"===e.trackingType?(d=e.pageMetadata.channel+"^"+e.pageMetadata.articleId,u="video_module^"+_+"^"+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?h: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)\^/))?(f=e.pageMetadata.articleId,p=e.pageMetadata.articleTitle):(f="video not embedded within the article",p="video not embedded within the article"),{article_id:f,article_title:p,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_internal_id:o,video_module:u,video_player_type:t,video_player_version:l,video_title:r}},rt={"M:25-50":"25","M:50-100":"50"},ot={"M:25-50":"video_25_views","M:50-100":"video_50_views"},it={"M:25-50":"video25Increase","M:50-100":"video50Increase"},at=["M:25-50","M:50-100"],st=(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=nt(t);ze("advert abort",n)},VIDEO_ADVERT_COMPLETED:function(e,t){const n=nt(t);ze("advert complete",n)},VIDEO_ADVERT_STARTED:function(e,t){const n=nt(t);ze("advert start",{...n,video_advert_starts:1})},VIDEO_CONTENT_ABORTED:function(e,t){const n=nt(t);ze("abort",n)},VIDEO_CONTENT_COMPLETED:function(e,t){const n=nt(t);ze("content complete",{...n,video_completes:1})},VIDEO_CONTENT_STARTED:function(e,t){const n=nt(t);ze("content start",n)},VIDEO_PROGRESS:function(e,t){if(!t.segment||!at.includes(t.segment))return;const n=rt[t.segment],r=nt(t),o=ot[t.segment],i=it[t.segment];ze(n,{...r,[o]:1,[i]:1})},VIDEO_STREAM_STARTED:function(e,t){const n=t.continuePlayList?"stream continuous play":"stream start",r=nt(t);ze(n,{...r,non_interaction:!t.autoplay,video_views:1})}}),ct=function(){if(ue.Register.isWebPushSupported())switch(Notification.permission){case"default":return"eligible";case"denied":return"denied";case"granted":return"subscribed"}return"not_supported"},lt=e=>{const t={...e,event_category:"push notif",push_notification_status:ct()};return delete t.__numberOfAttempts,delete t.channel,delete t.subChannel,JSON.parse(JSON.stringify(t))},ut={WEB_PULL_NOTIFICATION_CLICK:function(e,t){const n={...t,event_category:"pull notif"};delete n.__numberOfAttempts,delete n.channel,delete n.subChannel,ze("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}`;ze("click",{...lt(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";ze("pre prompt choice",{...lt(t),event_label:n,non_interaction:!1,pre_prompt_choice:n})},WEB_PUSH_PRE_PROMPT_IMPRESSION:function(e,t){ze("pre prompt impression",{...lt(t),non_interaction:!0})},WEB_PUSH_PROMPT_CLICK:function(e,t){const n="default"===t.permission?"closed":t.permission;ze("prompt choice",{...lt(t),event_label:n,non_interaction:!1,prompt_choice:n})},WEB_PUSH_PROMPT_IMPRESSION:function(e,t){ze("prompt impression",{...lt(t),non_interaction:!0})}},dt={AFFILIATE_CAROUSEL_CLICK:(ft="affiliate click",(e,t)=>{ze(t.hrefTxt,{event_category:ft,event_label:t.hrefUrl,link_text:t.hrefTxt,link_url:t.hrefUrl,non_interaction:!1},"affiliate_click")})};var ft;const pt=(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(/\^+$/,"")}},mt=(e,t,n)=>(r,o)=>{ze(t,{event_category:e,non_interaction:Boolean(n),...pt(o,t)})},ht={BF_BUY_NOW_CAROUSEL_CLICKED:mt("bf","alternative product buynow clicked"),BF_BUY_NOW_HEADER_CLICKED:mt("bf","main product buynow click"),BF_CAROUSEL_IN_VIEW:mt("bf","product view",!0),BF_CAROUSEL_ROTATE_CLICKED:mt("bf","carousel use"),BF_IMPRESSION:mt("bf","product impression",!0),BF_SHOW_MORE_CLICKED:mt("bf","showmore click")},_t=(e,t)=>{const n=(e=>e&&e.articleId?e.articleId:"fff-hub")(e.pageMetaData);var r;return{fff_actions:["FFF",t,e.fffSource||"",(r=e.position,parseFloat(r)||0),e.celebrity||"",e.mainProduct||"",e.relatedProduct||e.accessoryProduct||"",e.items||"",e.trends||"",e.affiliate||"",e.depth||""].join("^"),fff_layout:[e.fffType||"",e.fffSource||"",n||""].join("^")}},gt=(e,t)=>(n,r)=>{ze(t,{event_category:e,..._t(r,t)})},Et={FFF_BUY_ACCESSORY_CLICKED:gt("fff","accessory product click"),FFF_BUY_MAIN_CLICKED:gt("fff","main product click"),FFF_BUY_RELATED_CLICKED:gt("fff","related product click"),FFF_BUY_TRENDING_CLICKED:gt("fff","trending product click"),FFF_CAROUSEL_CLICKED:gt("fff","carousel click"),FFF_CONTENT_VIEWED:gt("fff","product view"),FFF_HUB_SEARCHED:gt("fff","search"),FFF_LINK_TO_AFFILIATE_CLICKED:gt("fff","affiliate link click"),FFF_LINK_TO_ARTICLE_CLICKED:gt("fff","click to article"),FFF_LINK_TO_HUB_CLICKED:gt("fff","hub click"),FFF_SOCIAL_CLICKED:(e,t,n)=>{const r="social share";ze(r,{event_category:"fff",event_label:t.socialSite,non_interaction:Boolean(n),social_network:t.socialSite,..._t(t,r)})}},vt={AD_BILLBOARD_CLOSED:((e,t)=>()=>{ze(t,{event_category:e,non_interaction:!1})})("billboard ad","close")},yt={FIDELITY_CAMPAIGN_EVENT:(e=>(t,n)=>{const r=n.name.replace("fidelity-campaign-","").replaceAll("_"," ").replaceAll("-"," ");ze(r,{event_category:e,event_label:n.value,non_interaction:!1,type_of_fidelity_campaign:n.value},"fidelity_campaign_click")})("fidelity campaign click")},wt={SCREENSAVER_DOWNLOADED:((e,t)=>()=>{ze(t,{event_category:e,non_interaction:!1})})("screensaver","download click")},bt=(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}),ze(e,o,t)},Ot={SITE_SEARCH:bt("site search","site_search"),WEB_SEARCH:bt("web search","web_search")},It=(e,t,n)=>()=>{ze(t,{event_category:e,non_interaction:Boolean(n)})},St={REMIXD_COMPLETE:It("remixd audio player","complete",!0),REMIXD_ERROR:It("remixd audio player","error",!0),REMIXD_IMPRESSION:It("remixd audio player","present on page",!0),REMIXD_MUTE:It("remixd audio player","mute"),REMIXD_PAUSE:It("remixd audio player","pause"),REMIXD_PLAY:It("remixd audio player","play")},At=(e,t,n,r)=>(o,i)=>{ze(t,{event_category:e,event_label:i&&i.newsletterName||n,non_interaction:Boolean(r),type_of_newsletter:i&&i.newsletterName||n})},Tt={NEWSLETTER_ERROR:At("newsletter","submit error","generic newsletter"),NEWSLETTER_POPUP_SHOW:At("newsletter","impression","newsletter popup",!0),NEWSLETTER_POPUP_SUBMIT:At("newsletter","submit success","newsletter popup"),NEWSLETTER_PRIVACY_CLICK:At("newsletter","privacy click","generic newsletter"),NEWSLETTER_SHOW:At("newsletter","impression","generic newsletter",!0),NEWSLETTER_SUBMIT:At("newsletter","submit success","generic newsletter"),SAFARI_NEWSLETTER_SHOW:At("newsletter","impression","safari popup",!0),SAFARI_NEWSLETTER_SUBMIT:At("newsletter","submit success","safari popup")},Ct={PAGE_MODULE_CLICKED:(e,t)=>{if(!("localStorage"in window))return;const{element:n,moduleName:r,position:o,interaction:i,linkType:a,listPosition:s,trackingType:c,videoId:l}=t,u=[],d=Object(g.getPageMetadata)(),f=c||"ck";if(u.push(r,o,d.channel),u.push(d.subChannel||""),u.push(d.subChannel2||""),u.push(d.pageName),u.push(s||""),u.push(a||""),u.push(d.contentType||""),u.push(l?"video":d.articleId||""),u.push(i||""),"el"!==f){const e=n.href.split("/");u.push(e.slice(3,6).join("/"))}else n&&n.href?u.push(n.href):u.push("");window.localStorage.setItem("module_tracking",u.join("^")),window.localStorage.setItem("module_tracking_name",r),s&&window.localStorage.setItem("module_tracking_list_position",s)}},Lt=(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;ze(e,o,`gallery_${i}_${t||e}`)},Pt={GALLERY_IMAGE_VIEWED:Lt("view",null),GALLERY_OPENED:Lt("start view","view_start")},Rt=(e,t)=>()=>{ze(t,{event_category:e,non_interaction:!1})},Nt={NEWZIT_NOTIFICATION_PROMO_CLOSE:Rt("newzit promo","close"),NEWZIT_NOTIFICATION_PROMO_OPEN:Rt("newzit promo","open")},Mt=(e,t,n=!1)=>()=>{ze(t,{event_category:e,non_interaction:n})},Dt={DESKTOP_HOME_PAGE_OVERLAY:Mt("desktop homepage overlay","display",!0),MOBILE_HOME_PAGE_NAV:(e,t)=>{const{action:n,label:r}=t;ze(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&&Xe({mobile_home_tab_active:"alerts-overlay"})},MOBILE_HOME_PAGE_OVERLAY:Mt("mobile homepage overlay","display",!0),MOBILE_HOME_PAGE_SIGNPOST_CLICK:Mt("mobile homepage signpost","click"),MOBILE_HOME_PAGE_SIGNPOST_DISMISS:Mt("mobile homepage signpost","dismiss"),MOBILE_HOME_PAGE_SIGNPOST_DISPLAY:Mt("mobile homepage signpost","display",!0),MOBILE_HOME_PAGE_SWIPE:(e,t)=>{const{action:n,label:r}=t;ze("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||I.a.get("mol-home"),r=I.a.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}`),ze("choice",{event_category:"mobile homepage overlay",event_label:o,mobile_home_preference:o,non_interaction:!1,selected_value:o})}},kt="Successfully Logged In",xt="Registration Activated",Bt="Registration Started",Ut="Registration Submitted",jt={PAGE_RENDER_STARTED:()=>{const e=Object(g.getPageMetadata)(),t=Oe(),n={event_category:"account",event_label:t,non_interaction:!1,registration_method:t};switch(e.registrationEntry){case xt:ze("activate registration",n);break;case Bt:ze("new registration",n);break;case Ut:ze("submit registration",n);break;case kt:ze("login success",n)}},USER_AUTH_SITE_REG_ERROR_ONCE:((e,t)=>()=>{ze(t,{event_category:e,event_label:Oe(),non_interaction:!1})})("account","registration error")},Ft=(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)),ze(t,i)},Wt={COMMENTS_ADD_COMMENT_CLICK:Ft("comment","add comment click"),COMMENTS_CLEAR:Ft("comment","clear"),COMMENTS_DOWNVOTE:Ft("comment","downvote"),COMMENTS_IMPRESSION:Ft("comment","impression",!0),COMMENTS_LOAD_TIME:Ft("comment","load time",!0),COMMENTS_LOGIN_REDIRECT:Ft("comment","login redirect"),COMMENTS_NEW_COMMENT_CLICK:Ft("comment","new comment click"),COMMENTS_OVERLAY_CLOSE:Ft("comment","overlay close"),COMMENTS_OVERLAY_OPEN:Ft("comment","overlay open"),COMMENTS_PAGINATION_CLICK:Ft("comment","pagination click"),COMMENTS_PROFILE_CLICK:Ft("comment","profile click"),COMMENTS_REPLY_CLICK:Ft("comment","reply click"),COMMENTS_REPLY_SUBMIT:Ft("comment","reply submit"),COMMENTS_REPORT_CLICK:Ft("comment","report abuse"),COMMENTS_SHOW_MORE_CLICK:Ft("comment","show more"),COMMENTS_SUBMIT_COMMENT:Ft("comment","submit"),COMMENTS_SUBMIT_SUCCESS:Ft("comment","submit success"),COMMENTS_UPVOTE:Ft("comment","upvote"),COMMENTS_VIEW_ALL:Ft("comment","view all click"),PAGE_COMMENT_TAB_SWAPPED:Ft("comment tab","view"),SOCIAL_SHARE_COMMENTS:Ft("comment","added")},Vt={PAGE_EXTERNAL_LINK_CLICKED_GA:(e,t)=>{ze(t.innerText,{event_category:"outbound click",event_label:t.href,link_text:t.innerText,link_url:t.href,non_interaction:!1},"outbound_click")}},Gt=(e,t,n)=>(t,r)=>{const{productName:o,location:i}=r;ze("bar"===i?"product bar click":"product click",{event_category:e,event_label:o,non_interaction:Boolean(n)})},Kt={PRODUCT_BUTTON_LINK:Gt("product",0,!1),PRODUCT_IMAGE_LINK:Gt("product",0,!1),PRODUCT_PRICE_LINK:Gt("product",0,!1),PRODUCT_TITLE_LINK:Gt("product",0,!1)},Ht={PAGE_RENDER_STARTED:()=>{const{betwayBannerPresent:e}=Object(g.getPageMetadata)();e&&ze("display betway breaking news",{event_category:"banner",non_interaction:!0})}},$t=(e,t,n)=>(r,o)=>{ze(t,{event_category:e,event_label:o.type,non_interaction:Boolean(n),type_of_smart_banner:o.type})},Yt={SMART_BANNER_CLICKED:$t("smart banner","click"),SMART_BANNER_SHOWN:$t("smart banner","impression",!0)},qt=(e,t,n)=>(r,o)=>{const{campaignId:i}=o;ze(t,{campaign_id:i,event_category:e,event_label:i,non_interaction:Boolean(n)})},Xt={GUESTBOOK_IMPRESSION:qt("guestbook","impression",!0),GUESTBOOK_LOADING_ERROR:qt("guestbook","load error",!0),GUESTBOOK_SUBMIT_ERROR:qt("guestbook","submit error"),GUESTBOOK_SUBMIT_SUCCESS:qt("guestbook","submit success")},zt=(e,t,n,r)=>(o,i)=>{const a={event_category:e,non_interaction:Boolean(n)};i&&void 0!==i.value&&(a.value=i.value,"load time"===t&&(a.load_time=i.value)),i&&i.label&&(a.event_label=i.label,a.selected_value=i.label),i&&i.moduleType&&(a.openweb_module_type=i.moduleType),ze(t,a,r)},Jt={OPENWEB_DELETE_MESSAGE:zt("openweb","comment delete"),OPENWEB_DOWNVOTE:zt("openweb","downvote"),OPENWEB_EDIT_MESSAGE:zt("openweb","edit message",!1,"openweb_comment_edit"),OPENWEB_FLOATING_CLICK:zt("openweb","floating click"),OPENWEB_FLOATING_DISMISS:zt("openweb","floating dismiss"),OPENWEB_IMPRESSION:zt("openweb","impression",!0),OPENWEB_LOAD_ERROR:zt("openweb","load error",!0),OPENWEB_LOAD_TIME:zt("openweb","load time",!0),OPENWEB_LOGIN_START:zt("openweb","login start"),OPENWEB_OPEN_PROFILE:zt("openweb","open profile",!1,"openweb_open_profile_user"),OPENWEB_POST_LOGIN_SUCCESS:zt("openweb","login success"),OPENWEB_SEND_FAIL:zt("openweb","submit error"),OPENWEB_SEND_SUCCESS:zt("openweb","submit success"),OPENWEB_SHARE_TYPE:zt("openweb","share type",!1,"openweb_comment_share"),OPENWEB_SORT_OPEN:zt("openweb","sort open"),OPENWEB_SORT_SELECT:zt("openweb","sort select"),OPENWEB_UPVOTE:zt("openweb","upvote"),OPENWEB_VIEWABLE:zt("openweb","view",!0)},Zt=["click","viewable"],Qt=["impression","viewable"],en={PROMOTIONAL_SLOT_EVENT:(e,t)=>{const{eventName:n,xpModuleName:r,campaignId:o}=t;if(Qt.includes(n))return;const i=`${r}${o?`|${o}`:""}`;ze(n,{event_category:"promotional slot click",event_label:i,non_interaction:Boolean(!Zt.includes(n)),type_of_promotional_slot:i})}},tn=(e,t,n)=>(r,o)=>{const{promotion:i,urlClicked:a,articlePosition:s}=o;ze(t,{article_position:s,event_category:e,event_label:i,non_interaction:Boolean(n),type_of_promotions_module:i,url_clicked:a})},nn={PROMOTIONS_XP_CLICK:tn("promotions module","click"),PROMOTIONS_XP_VIEW_MORE:tn("promotions module","view more")},rn=(e,t,n,r)=>(o,i)=>{const{company:a,headline:s}=i;ze(t,{event_category:e,event_label:r||"impression"===t?s:a,non_interaction:Boolean(n),type_of_tim_affiliate:r||"impression"===t?s:a})},on={TIM_AFFILIATE_BOTTOM_LINK_CLICKED:rn("timAffiliate","click",!1,!0),TIM_AFFILIATE_IMPRESSION:rn("timAffiliate","impression",!0),TIM_AFFILIATE_LEARN_MORE_CLICKED:rn("timAffiliate","click",!1)},an=(e,t,n)=>(r,o)=>{const{company:i}=o;ze(t,{company_name:i,event_category:e,event_label:i,non_interaction:Boolean(n)})},sn={COMPANY_REVIEW_IMPRESSION:an("companyReview","impression",!0),COMPANY_REVIEW_LEARN_MORE_CLICKED:an("companyReview","click"),COMPANY_REVIEW_LESS_CONTENT_CLICKED:an("companyReview","click"),COMPANY_REVIEW_MORE_CONTENT_CLICKED:an("companyReview","click")},cn=(e,t,n)=>(r,o)=>{const{label:i}=o;ze(t,{event_category:e,event_label:i,non_interaction:Boolean(n),type_of_article_hero:i})},ln={ARTICLE_HERO_AUTHOR_TWITTER_LINK_CLICK:cn("articleHero","click"),ARTICLE_HERO_LOZENGE_LINK_CLICK:cn("articleHero","click")},un=(e,t,n)=>(r,o)=>{const{label:i,value:a,modulePixelDepth:s}=o||{};ze(t,{event_category:e,event_label:i,module_pixel_depth:s,non_interaction:Boolean(n),value:a})},dn={COMMERCE_XP_CLICK:un("commercexp","click"),COMMERCE_XP_IMPRESSION:un("commercexp","impression",!0),COMMERCE_XP_VIEW_MORE:un("commercexp","view more"),COMMERCE_XP_VIEWABLE:un("commercexp","view",!0)},fn=(e,t,n)=>(r,o)=>{const{channel:i,urlClicked:a,articlePosition:s}=o;ze(t,{article_position:s,event_category:e,event_label:i,non_interaction:Boolean(n),url_clicked:a})},pn={TOP_STORIES_XP_CLICK:fn("top stories module","click"),TOP_STORIES_XP_IMPRESSION:fn("top stories module","impression",!0),TOP_STORIES_XP_VIEW_MORE:fn("top stories module","view more"),TOP_STORIES_XP_VIEWABLE:fn("top stories module","view",!0)},mn={AD_SLOT_LOADED_ON_PAGE:((e,t,n)=>(r,o)=>{const{slotType:i}=o;ze(t,{event_category:e,event_label:i,non_interaction:Boolean(n)})})("ad slot","load",!0)},hn=(e,t,n)=>()=>{ze(t,{event_category:e,non_interaction:Boolean(n)})},_n={SWIPE_TUTORIAL_CLOSE:hn("swipe tutorial","dismiss"),SWIPE_TUTORIAL_SHOWN:hn("swipe tutorial","impression",!0)},gn={TIM_ANCHOR_LINK_CLICKED:((e,t)=>(n,r)=>{const{linkText:o}=r;ze(t,{event_category:e,event_label:o,link_text:o,non_interaction:!1})})("decisionary anchor","click")},En=(e,t,n)=>()=>{ze(t,{event_category:e,non_interaction:Boolean(n)})},vn={COMMENT_CTA_CLICK:En("comment cta","click"),COMMENT_CTA_IMPRESSION:En("comment cta","impression",!0)},yn=(e,t,n)=>()=>{ze(t,{event_category:e,non_interaction:Boolean(n)})},wn={MOBILE_MENU_COMMENT:yn("mobile menu","comment click"),MOBILE_MENU_DESKTOP_SITE:yn("mobile menu","desktop site")},bn={PAGE_FURNITURE_CLICKED:(e,t)=>{const n=t&&t.furnitureName;if(!n)return;ze(n,{event_category:"furniture",furniture_name:n,non_interaction:!1})}},On=(e,t,n)=>(r,o)=>{const{urlClicked:i,articlePosition:a}=o;ze(t,{article_position:a,event_category:e,non_interaction:Boolean(n),url_clicked:i})},In={ARTICLE_RECOMMENDATION_XP_CLICK:On("article recommendation module","click"),ARTICLE_RECOMMENDATION_XP_IMPRESSION:On("article recommendation module","impression",!0),ARTICLE_RECOMMENDATION_XP_VIEWABLE:On("article recommendation module","view",!0)},Sn=(e,t,n)=>(r,o)=>{let i=t;"ineligible"===t&&o&&o.reason&&(i=`${t} ${o.reason}`),ze(i,{event_category:e,non_interaction:Boolean(n)})},An={ARTICLE_TRUNCATION_EXPAND:Sn("article truncation","expand"),ARTICLE_TRUNCATION_INELIGIBLE:Sn("article truncation","ineligible",!0),ARTICLE_TRUNCATION_READ_NEXT:Sn("article truncation","read next",!1),ARTICLE_TRUNCATION_TRUNCATE:Sn("article truncation","truncate",!0),ARTICLE_TRUNCATION_VIEWABLE:Sn("article truncation","view",!0)},Tn=(e,t,n)=>(r,o)=>{const{pollId:i,question:a,answer:s,href:c,channel:l}=o||{};ze(t,{answer:s,channel:l,event_category:e,event_label:"newsletter"===e?"poll":a,href:c,non_interaction:Boolean(n),poll_id:i?String(i):i,poll_name:a,url_channel:l},"newsletter"===e?"newsletter_poll_submit_success":void 0)},Cn={XP_POLLS_CLICK:Tn("poll","click"),XP_POLLS_IMPRESSION:Tn("poll","impression",!0),XP_POLLS_SUBSCRIBED:Tn("newsletter","successful submits"),XP_POLLS_VIEW:Tn("poll","view",!0),XP_POLLS_VOTED:Tn("poll","submit success")},Ln=(e,t,n)=>(r,o)=>{const{channel:i,clickUrl:a,position:s}=o;ze(t,{click_url:a,event_category:e,event_label:i,non_interaction:Boolean(n),position:s})},Pn={GEO_TARGETED_HOMEPAGE_XP_CLICK:Ln("scotland section","click"),GEO_TARGETED_HOMEPAGE_XP_IMPRESSION:Ln("scotland section","impression",!0),GEO_TARGETED_HOMEPAGE_XP_VIEWABLE:Ln("scotland section","view",!0)},Rn=(e,t,n)=>(r,o)=>{He({puzzle_user_type:Object(ie.a)()}),ze(t,{event_category:e,event_label:o&&o.puzzleName,non_interaction:Boolean(n),puzzle_name:o&&o.puzzleName,puzzle_user_type:Object(ie.a)()})},Nn={PUZZLE_COMPLETE:Rn("puzzle","complete"),PUZZLE_STARTED:Rn("puzzle","started")},Mn=(e,t,n)=>(r,o)=>{ze(t,{event_category:e,module_name:o&&o.moduleName||void 0,non_interaction:Boolean(n)})},Dn={MODULE_IMPRESSION:Mn("module","impression",!0),MODULE_INTERACT:Mn("module","interact"),MODULE_VIEW:Mn("module","view",!0)},kn=(e,t,n)=>(r,o)=>{const{label:i,value:a,modulePixelDepth:s}=o||{};ze(t,{event_category:e,event_label:i,module_pixel_depth:s,non_interaction:Boolean(n),value:a})},xn={ARTICLE_PREVIEW_XP_CLICK:kn("article preview xp","click"),ARTICLE_PREVIEW_XP_IMPRESSION:kn("article preview xp","impression",!0),ARTICLE_PREVIEW_XP_VIEWABLE:kn("article preview xp","viewable",!0)},Bn=(e,t,n,r)=>(o,i)=>{const{paywallOutcomeLabel:a,referringModule:s,referringPageType:c,flowVariant:l,productType:u}=i||{},d={event_category:e,non_interaction:Boolean(n)};a&&(d.paywall_variant=a),s&&(d.referring_module=s),c&&(d.referring_page_type=c),l&&(d.flow_variant=l),u&&(d.product_type=u),"paywall impression"===t&&(d.paywall_impressions=1),"paywall viewable"===t&&(d.paywall_views=1),"paywall click"===t&&(d.paywall_clicks=1),"paywall conversion"===t&&(d.paywall_conversions=1),"account conversion"===t&&(d.account_conversions=1),"banner conversion"===t&&(d.banner_conversions=1),"module"===e&&(d.product_type="mailplus",d.referring_module="homemodule"),ze(t,d,r,"module"===e)},Un={PAYWALL_ACCOUNT_LINK_COMPLETE:Bn("mailplus","account link complete"),PAYWALL_ACCOUNT_LINK_HELP:Bn("mailplus","account link help click"),PAYWALL_ACCOUNT_LINK_PROMPT:Bn("mailplus","account link prompt"),PAYWALL_ACCOUNT_LINK_RESEND:Bn("mailplus","account link resend email click"),PAYWALL_CONVERSION:Bn("mailplus","paywall conversion"),PAYWALL_CONVERSION_BANNER:Bn("mailplus","banner conversion"),PAYWALL_CONVERSION_PROFILE:Bn("mailplus","account conversion"),PAYWALL_HOMEMODULE_ARTICLE_CLICK:Bn("module","article click"),PAYWALL_HOMEMODULE_ARTICLE_COMMENTS_CLICK:Bn("module","article comments click"),PAYWALL_HOMEMODULE_CHANNEL_CLICK:Bn("module","channel click"),PAYWALL_HOMEMODULE_SIGNUP_CLICK:Bn("module","masthead click"),PAYWALL_IMPRESSION:Bn("mailplus","paywall impression",!0),PAYWALL_LOGIN_CLICK:Bn("mailplus","paywall login click"),PAYWALL_MASTHEAD_SIGNUP_CLICK:Bn("mailplus","masthead click"),PAYWALL_PROFILE_SIGNUP_CLICK:Bn("mailplus","profile click"),PAYWALL_RESTORE_PURCHASE_CLICK:Bn("mailplus","restore purchase click"),PAYWALL_SIGN_UP:Bn("mailplus","paywall click"),PAYWALL_VIEWABLE:Bn("mailplus","paywall viewable",!0),PAYWALL_ZEPHR_FAIL_OPEN:Bn("mailplus","zephr fail open",!0)},jn=(e,t)=>(n,r)=>{const{productType:o}=r||{},i={event_category:"cmp",non_interaction:!1};o&&(i.product_type=o),ze(e,i,e.replace(/\s/g,"_"),t)},Fn={...{CMP_LEVEL_ONE_ACCEPT:jn("cmp level 1 accept"),CMP_LEVEL_ONE_CONVERSION:jn("cmp level 1 conversion"),CMP_LEVEL_ONE_LOGIN:jn("cmp level 1 login",!0),CMP_LEVEL_ONE_PRIVACY_SETTINGS:jn("cmp level 1 privacy settings"),CMP_LEVEL_ONE_SUBSCRIBE:jn("cmp level 1 subscribe",!0),CMP_LEVEL_TWO_CONVERSION:jn("cmp level 2 conversion"),CMP_LEVEL_TWO_SAVE_EXIT:jn("cmp level 2 save exit",!0),CMP_LEVEL_TWO_SUBSCRIBE:jn("cmp level 2 subscribe",!0)},...{ESSENTIAL_ACCOUNT_LINK_COMPLETE:jn("essential account link complete"),ESSENTIAL_ACCOUNT_LINK_HELP_CLICK:jn("essential account link help click"),ESSENTIAL_ACCOUNT_LINK_PROMPT:jn("essential account link prompt"),ESSENTIAL_ACCOUNT_LINK_RESEND:jn("essential account link resend email click"),ESSENTIAL_RESTORE_PURCHASE_CLICK:jn("essential restore purchase click")}},Wn={FOR_YOU_SAVE_PREFERENCES_CLICK:((e,t,n,r)=>()=>{ze(t,{event_category:e,event_label:n,non_interaction:!1},r)})("for you","click","save preferences","for_you_save_preferences_click")},Vn=(e,t)=>()=>{ze(t,{event_category:e,non_interaction:!1})},Gn=[dt,xn,ht,Ht,vt,Et,yt,Pt,Ct,Tt,Nt,Jt,Wt,Vt,et,Dt,Kt,St,wt,Ot,Yt,tt,{TOAST_OVERLAY_CLICK:Vn("toast overlay","click"),TOAST_OVERLAY_DISMISS:Vn("toast overlay","dismiss"),TOAST_OVERLAY_VIEW:Vn("toast overlay","view")},jt,st,ut,Xt,en,nn,on,ln,sn,dn,pn,mn,_n,gn,vn,wn,bn,In,An,Cn,Pn,Nn,Dn,Un,Fn,Wn],Kn=(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=Ke,Ke("js",new Date);try{await Object(v.loadScript)(w)}catch(e){i.logger.error("Error loading gtag JS",e)}})().catch();for(const e of Gn)Object(s.a)("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=Kn(t,n,"data-tracking-href",n.href),r=Kn(t,n,"data-tracking-inner-text",n.innerText);(e=>{try{return new URL(e).hostname!==window.location.hostname}catch(e){return!1}})(e)&&a.a.fireEvent(a.a.PAGE_EXTERNAL_LINK_CLICKED_GA,{href:e,innerText:r})}}),!1);const Hn={gtag:Ke};Object(h.later)("PAGE_METADATA_SET",(async()=>{const e=await We();Object(_.setConfig)("GA_CONFIG_PROPS",e),h.later.go("GA_CONFIG_READY")}));const $n=["impression","click","viewable"],Yn=(e,t,n={})=>{if($n.includes(e))if(t&&"string"==typeof t)try{const{environment:r,renderPlatform:o}=Object(g.getPageMetadata)(),i={environment:r,event:e,module:t,renderPlatform:o,...n};window.postMessage(`__bidmax\n${JSON.stringify(i)}`,"*")}catch(e){i.logger.error(`[mol-fe-tracking] Unable to fire bidmax tracking for ${t}`,e)}else i.logger.error("[mol-fe-tracking] Module name is required ");else i.logger.error(`[mol-fe-tracking] Event name has to be one of 'impression', 'click', 'viewable', event name provided: ${e}`)};Object(r.a)(),Object(o.a)(),(()=>{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":a.a.publish(a.a.CMP_LEVEL_ONE_ACCEPT);break;case"cmp_level_2_save_exit":a.a.publish(a.a.CMP_LEVEL_TWO_SAVE_EXIT);break;case"cmp_level_1_privacy_settings":a.a.publish(a.a.CMP_LEVEL_ONE_PRIVACY_SETTINGS);break;case"cmp_level_1_login":a.a.publish(a.a.CMP_LEVEL_ONE_LOGIN);break;case"cmp_level_1_subscribe":a.a.publish(a.a.CMP_LEVEL_ONE_SUBSCRIBE);break;case"cmp_level_2_subscribe":a.a.publish(a.a.CMP_LEVEL_TWO_SUBSCRIBE)}}))}catch(e){i.logger.error("Error initialising mol-fe-cmp tracking",e)}})()},function(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(t[e[n]]?o.logger.warn(`Conflicting event value for events "${n}" and "map[events[key]]"`):t[e[n]]=n,t)),{})}subscribe(e,t){return e&&!this.eventsMap[e]&&o.logger.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]&&o.logger.warn(`Publishing non-standard event "${e}"`),o.logger.trace(`Published PageEvent "${e}"`,t),this.listeners.get(e)&&this.listeners.get(e).forEach((n=>{try{n(e,t)}catch(e){o.logger.error(e)}}))}listen(e,t,n){o.logger.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 o.logger.warn('"pageEvents.fireEvent(eventName, data)" has been deprecated. Please use "pageEvents.publish(eventName, data)" instead'),this.publish(e,t)}}const a=new i(n(28).a);t.a=a},function(e,t,n){var r,o;!function(i,a){"use strict";r=function(){var e=function(){},t="undefined",n=["trace","debug","info","warn","error"];function r(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function o(n){return"debug"===n&&(n="log"),typeof console!==t&&(void 0!==console[n]?r(console,n):void 0!==console.log?r(console,"log"):e)}function i(t,r){for(var o=0;o=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&&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:_}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(187);Object.defineProperty(t,"disableWindowScrollMethods",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}});var o=n(45);Object.defineProperty(t,"createInteractionMethod",{enumerable:!0,get:function(){return o.createInteractionMethod}}),Object.defineProperty(t,"getScrollLeft",{enumerable:!0,get:function(){return o.getScrollLeft}}),Object.defineProperty(t,"getScrollTop",{enumerable:!0,get:function(){return o.getScrollTop}}),Object.defineProperty(t,"setHash",{enumerable:!0,get:function(){return o.setHash}}),Object.defineProperty(t,"setScrollLeft",{enumerable:!0,get:function(){return o.setScrollLeft}}),Object.defineProperty(t,"setScrollTop",{enumerable:!0,get:function(){return o.setScrollTop}}),Object.defineProperty(t,"scroll",{enumerable:!0,get:function(){return o.scroll}}),Object.defineProperty(t,"scrollBy",{enumerable:!0,get:function(){return o.scrollBy}}),Object.defineProperty(t,"scrollByLines",{enumerable:!0,get:function(){return o.scrollByLines}}),Object.defineProperty(t,"scrollByPages",{enumerable:!0,get:function(){return o.scrollByPages}}),Object.defineProperty(t,"scrollTo",{enumerable:!0,get:function(){return o.scrollTo}}),Object.defineProperty(t,"scrollToElement",{enumerable:!0,get:function(){return o.scrollToElement}}),Object.defineProperty(t,"scrollToElementIfNeeded",{enumerable:!0,get:function(){return o.scrollToElementIfNeeded}})},function(e,t,n){"use strict";n.r(t),n.d(t,"getConfig",(function(){return s})),n.d(t,"setConfig",(function(){return c})),n.d(t,"addInstance",(function(){return _})),n.d(t,"getInstances",(function(){return f})),n.d(t,"onAddInstance",(function(){return p})),n.d(t,"onRemoveInstance",(function(){return m})),n.d(t,"removeInstance",(function(){return h}));var r=n(20);var o=function(e,t){return e[t]||(e[t]=new r.a),e[t]};var i=function(e,t,n){if(typeof t!==n)throw new Error(`Missing or invalid param ${e}`)};const a={},s=function(e){return i("projectName",e,"string"),o(a,e).promise},c=function(e,t){t&&o(a,e).resolve(t)};const l=new(n(2).PubSub),u={},d=[],f=function(e){return i("componentName",e,"string"),u[e]||(u[e]=[]),u[e]},p=function(e,t){i("componentName",e,"string"),i("cb",t,"function");const n=l.subscribe(`${e}.add`,((e,n)=>t(n)));return d.push(n),n},m=function(e,t){i("componentName",e,"string"),i("cb",t,"function");const n=l.subscribe(`${e}.remove`,((e,n)=>t(n)));return d.push(n),n},h=function(e,t){i("componentName",e,"string"),t&&u[e]&&(u[e]=u[e].filter((e=>e!==t)),l.publish(`${e}.remove`,t))},_=function(e,t){return i("componentName",e,"string"),u[e]||(u[e]=[]),t&&!u[e].includes(t)&&(u[e].push(t),l.publish(`${e}.add`,t)),{remove:()=>h(e,t)}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"loadDeferredImgs",(function(){return f})),n.d(t,"loadScript",(function(){return p})),n.d(t,"loadStyle",(function(){return s})),n.d(t,"onDocReady",(function(){return m})),n.d(t,"scrollUtils",(function(){return E}));var r=n(2);const o=()=>{(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?r.later.go("DOM_READY"):(document.addEventListener("DOMContentLoaded",(()=>r.later.go("DOM_READY"))),window.addEventListener("load",(()=>r.later.go("DOM_READY"))))},i=()=>{document.body?r.later.go("BODY_READY"):setTimeout(i,5)};var a=n(0);o(),i();var s=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,o)=>{const i=document.createElement("link"),a=t.before||document.querySelector("script");i.media="only x",i.rel="stylesheet",i.href=e;const s=()=>{Array.from(document.styleSheets).some((({ownerNode:e})=>e===i))?n(i):setTimeout(s,10)};i.onload=()=>n(i),i.onerror=()=>o(new URIError(`The stylesheet "${e}" is not accessible.`)),Object(r.later)("BODY_READY",(()=>{a.parentNode.insertBefore(i,a)})),s()})).then((e=>(e.media=t.media||"all",e)))};const c=()=>{Array.from(document.querySelectorAll("link[rel=preload][as=style]")).forEach((e=>{e.rel=null,s(e.href,{before:e}).then((()=>e.parentNode.removeChild(e))).catch((e=>a.logger.error(e)))}))};var l=()=>{if((()=>{try{return document.createElement("link").relList.supports("preload")}catch(e){return!1}})())return a.logger.debug('"Resource Hints: preload" is supported'),!1;if(a.logger.debug('Polyfilling "Resource Hints: preload"'),c(),"complete"!==document.readyState){const e=setInterval(c,100);window.addEventListener("load",(()=>clearInterval(e)))}return!0};const u=function(e){a.logger.warn(`${e} has been deprecated`)},d=function(){u("loadDeferredImgs")};d.pause=function(){u("loadDeferredImgs.pause")},d.resume=function(){u("loadDeferredImgs.resume")},d.load=function(){u("loadDeferredImgs.load")},d.imagesCache={getImages(){u("loadDeferredImgs.imagesCache.getImages")},popImages(){u("loadDeferredImgs.imagesCache.popImages")},resetCache(){u("loadDeferredImgs.imagesCache.resetCache")}};var f=d;var p=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}))};o(),i();var m=e=>(a.logger.warn('"onDocReady" has been deprecated. please use "later(\'DOM_READY\', callback);" instead'),Object(r.later)("DOM_READY",e)),h=n(9),_=n(8);let g=()=>{};Promise.all([Object(h.getConfig)("molFeDomHelperScroll"),Object(r.later)("DOM_READY")]).then((([e])=>{e.enableTracking&&(g=Object(_.disableWindowScrollMethods)())})).catch((e=>{throw new Error(e)}));var E={createInteractionMethod:_.createInteractionMethod,createLegacyInteractionMethod:async e=>{try{g(),await e;const{enableTracking:t}=await Object(h.getConfig)("molFeDomHelperScroll");t&&(g=Object(_.disableWindowScrollMethods)())}catch(e){throw new Error(e)}},getScrollLeft:_.getScrollLeft,getScrollTop:_.getScrollTop,reenableWindowScrollMethods:g,scroll:_.scroll,scrollBy:_.scrollBy,scrollByLines:_.scrollByLines,scrollByPages:_.scrollByPages,scrollTo:_.scrollTo,scrollToElement:_.scrollToElement,scrollToElementIfNeeded:_.scrollToElementIfNeeded,setHash:_.setHash,setScrollLeft:_.setScrollLeft,setScrollTop:_.setScrollTop};o(),i(),l()},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(1);const o="javascript:,dmgt.net,dailymail.co.uk,mailonsunday.co.uk,mailonline.co.uk,localhost,"+location.hostname,i=new RegExp(o.replace(/\./g,"\\.").replace(/,/g,"|"),"i"),a=Object(r.getPageCriteria)(),s=a.isTablet,c=a.isMobile&&!s,l={geo:a.geo,internalDomains:o,internalDomainsRegex:i,isMobile:c,isTablet:s};t.a=l},function(e,t,n){"use strict";n.r(t),n.d(t,"deviceData",(function(){return o})),n.d(t,"disableScroll",(function(){return S})),n.d(t,"enableScroll",(function(){return I})),n.d(t,"getMobileVersion",(function(){return v})),n.d(t,"getZoom",(function(){return y})),n.d(t,"isAndroid",(function(){return d})),n.d(t,"isAndroidPhone",(function(){return h})),n.d(t,"isAndroidStock",(function(){return E})),n.d(t,"isAndroidTablet",(function(){return _})),n.d(t,"isChrome",(function(){return f})),n.d(t,"isFirefox",(function(){return p})),n.d(t,"isIDevice",(function(){return c})),n.d(t,"isIPad",(function(){return u})),n.d(t,"isIPhone",(function(){return l})),n.d(t,"isKindleSilk",(function(){return m})),n.d(t,"isLandscape",(function(){return b})),n.d(t,"isMobile",(function(){return g})),n.d(t,"isPortrait",(function(){return O})),n.d(t,"isWindows",(function(){return s})),n.d(t,"isZoomed",(function(){return w})),n.d(t,"onTouchEnd",(function(){return T})),n.d(t,"parseUserAgent",(function(){return a})),n.d(t,"setupMobileClass",(function(){return A}));var r=n(0);const o={},i=(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)}},a=()=>{const e=navigator.userAgent;o.ua=e,o.isWindows=Boolean(e.match(/Windows Phone|iemobile|WPDesktop/i));try{o.isIPad=(Boolean(e.match(/iPad/i))||"iPad"===navigator.platform||"MacIntel"===navigator.platform&&"ontouchend"in document)&&!o.isWindows}catch(e){o.isIPad=!1}o.isIDevice=(Boolean(e.match(/(iPad|iPhone|iPod)/i))||o.isIPad)&&!o.isWindows,o.isIPhone=Boolean(e.match(/iPhone/i))&&!o.isWindows,o.isAndroid=Boolean(e.match(/Android/i))&&!o.isWindows,o.isChrome=Boolean(e.match(/Chrome/i)),o.isFirefox=Boolean(e.match(/Firefox/i)),o.isKindleSilk=Boolean(e.match(/Silk|Kindle/i)),o.isAndroidPhone=o.isAndroid&&Boolean(e.match(/Mobile/i)),o.isAndroidTablet=o.isAndroid&&!Boolean(e.match(/Mobile/i)),o.isMobile=o.isIDevice||o.isAndroid||o.isWindows,o.isAndroidStock=o.isAndroid&&!o.isChrome&&!o.isFirefox&&!o.isKindleSilk;try{o.isIDevice?(o.mobileName=e.match(/(iPad|iPhone|iPod)/i)?e.match(/(iPad|iPhone|iPod)/i)[0]:"iPad",o.mobileVersion=i(e,/OS ((?:\d+[._]?)+)/i)):o.isAndroid?(o.mobileName="Android",o.mobileVersion=i(e,/Android ((?:\d+[._]?)+)/i)):o.isWindows?(o.mobileName="Windows Phone",o.mobileVersion=i(e,/Windows Phone ((?:\d+[._]?)+)/i)):(o.mobileName=null,o.mobileVersion={build:-1,major:-1,minor:-1})}catch(e){r.logger.error("Failed to parse mobile name and version",e),o.mobileName="unknown"}},s=()=>o.isWindows,c=()=>o.isIDevice,l=()=>o.isIPhone,u=()=>o.isIPad,d=()=>o.isAndroid,f=()=>o.isChrome,p=()=>o.isFirefox,m=()=>o.isKindleSilk,h=()=>o.isAndroidPhone,_=()=>o.isAndroidTablet,g=()=>o.isMobile,E=()=>o.isAndroidStock,v=()=>o.mobileVersion,y=()=>{if(r.logger.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)},w=()=>y()>1,b=()=>window.matchMedia?window.matchMedia("(orientation:landscape)").matches:(window.innerWidth||document.documentElement.clientWidth)>(window.innerHeight||document.documentElement.clientHeight),O=()=>!b(),I=()=>{document.body.style.overflow="auto",document.ontouchmove=()=>!0},S=()=>{document.body.style.overflow="hidden",document.ontouchmove=e=>e.preventDefault()},A=()=>{if(r.logger.warn('"setupMobileClass" has been deprecated and "features detection" should be prefered over "device detection"'),o.mobileName){const e=o.mobileName.toLowerCase().replace(/ /,"-");document.body.classList.add(e)}},T=e=>(setTimeout(e,400),e());try{a(),o.isAndroidStock&&(r.logger.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){r.logger.error("Error parsing user agent",e)}const C={deviceData:o,disableScroll:S,enableScroll:I,getMobileVersion:v,getZoom:y,isAndroid:d,isAndroidPhone:h,isAndroidStock:E,isAndroidTablet:_,isChrome:f,isFirefox:p,isIDevice:c,isIPad:u,isIPhone:l,isKindleSilk:m,isLandscape:b,isMobile:g,isPortrait:O,isWindows:s,isZoomed:w,onTouchEnd:T,parseUserAgent:a,setupMobileClass:A};t.default=C},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(1),o=n(0);const i=()=>{const{isPaywalled:e,hasBeenPaywalled:t,pageType:n}=Object(r.getPageCriteria)(),o=window.getIsPaywallEligible&&window.getIsPaywallEligible();if("article"===n)return e||t?!e&&t?"hasBeenPaywalled":e&&!o?"isPaywalledForOthers":e&&o?"isPaywalled":"invalid":"none"},a=()=>{try{if(window.getIsPaywallSubscriber&&window.getIsPaywallSubscriber())return"subscriber";if(window.DM.isLoggedIn)return"registered"}catch(e){o.logger.error("Error determining user paywall status",e)}return"none"},s=()=>{try{return window.getPaywallEntitlements&&window.getPaywallEntitlements()||null}catch(e){o.logger.error("Error determining user paywall entitlements",e)}return null}},function(e,t,n){var r=n(59),o=n(37);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,c=t.length;++s{this.resolve=e,this.reject=t}))}}},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(28);t.a=function(e,t){const n=Object.keys(t).filter((n=>{let a=!1;return i.a[n]?(o.a.subscribe(i.a[n],t[n]),a=!0):r.logger.error(`${e}: Subscribing to invalid event ${n}`),a}));r.logger.debug(`${e}: successfully loaded`,n)}},function(e,t,n){e.exports=n(164)},function(e,t,n){"use strict";n.r(t),n.d(t,"getItem",(function(){return o})),n.d(t,"setItem",(function(){return i})),n.d(t,"removeItem",(function(){return a})),n.d(t,"createLocalStorage",(function(){return c})),n.d(t,"LocalStorage",(function(){return s}));var r=n(0);const o=e=>{try{if(!("localStorage"in window))return null;const t=window.localStorage.getItem(e);if(t)return JSON.parse(t)}catch(e){r.logger.error(e)}return null},i=(e,t)=>{try{if(!("localStorage"in window))return;window.localStorage.setItem(e,JSON.stringify(t))}catch(e){r.logger.error(e)}},a=e=>{try{if(!("localStorage"in window))return;window.localStorage.removeItem(e)}catch(e){r.logger.error(e)}};class s{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 o(`${this.namespace}${e}`)}setItem(e,t){return i(`${this.namespace}${e}`,t)}removeItem(e){return a(`${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){r.logger.error(e)}}}const c=e=>new s(e)},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(68),o=n(134);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"getExperiments",(function(){return d})),n.d(t,"getStickyNumber",(function(){return l}));const r={articleTruncationReadNext:{criteriaCheck:e=>!["US","GB","AU"].includes(e.geo)||location.search.includes("debugSkipArticleTruncationReadNextGeoCheck=true"),percentage:.5}},o="mol-fe-multivariant-",i=e=>{try{if(!("localStorage"in window))return null;const t=window.localStorage.getItem(`${o}${e}`);if(t)return JSON.parse(t)}catch(e){}return null},a=1e6,s="numbers",c=(e,t)=>{let n=i(s);n&&"object"==typeof n||(n={}),n[e]=t,((e,t)=>{try{if(!("localStorage"in window))return;window.localStorage.setItem(`${o}${e}`,JSON.stringify(t))}catch(e){}})(s,n)},l=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 c(e,t),t;const n=(e=>{const t=i(s);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()*a);return c(e,r),r};let u=null;const d=(e=null)=>{const{renderPlatform:t}=e||window.DM.getPageMetadata(),{geo:n}=e||window.PageCriteria,o={geo:n,renderPlatform:t};if(!u){u=[];const e=Object.keys(r);for(const t of e){const{criteriaCheck:e,percentage:n,subSegments:i}=r[t];if(!e||Boolean(e(o))){const e=l(t),r=i?i.length:1,o=a*n*r;if(e=o&&e{try{return JSON.parse(window.localStorage.getItem(r))}catch(e){}return null},i=e=>{try{window.localStorage.setItem(r,JSON.stringify(e))}catch(e){}},a=()=>{try{const e=o();if(!e)return void i({first:Date.now(),last:Date.now()});i({...e,last:Date.now()})}catch(e){}},s=()=>{try{const e=o();if(!e)return"undefined";return e.last-e.first>=72e5?"repeat player":"first time player"}catch(e){}return"undefined"}},function(e,t,n){"use strict";t.a={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_DOWNVOTE:"comments.downvote",COMMENTS_IMPRESSION:"comments.impression",COMMENTS_LOAD_TIME:"comments.load-time",COMMENTS_LOGIN_REDIRECT:"comments.login-redirect",COMMENTS_NEW_COMMENT_CLICK:"comments.new-comment-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_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_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",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",FFF_BUY_ACCESSORY_CLICKED:"fff.buy-accessory-clicked",FFF_BUY_MAIN_CLICKED:"fff.buy-main-clicked",FFF_BUY_RELATED_CLICKED:"fff.buy-related-clicked",FFF_BUY_TRENDING_CLICKED:"fff.buy-trending-clicked",FFF_CAROUSEL_CLICKED:"fff.carousel-clicked",FFF_CONTENT_VIEWED:"fff.content-viewed",FFF_HUB_SEARCHED:"fff.hub-searched",FFF_LINK_TO_AFFILIATE_CLICKED:"fff.affiliate-clicked",FFF_LINK_TO_ARTICLE_CLICKED:"fff.link-to-article-clicked",FFF_LINK_TO_HUB_CLICKED:"fff.link-to-hub-clicked",FFF_OVERLAY_CLOSED:"fff.overlay-closed",FFF_SOCIAL_CLICKED:"fff.social-clicked",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",GUESTBOOK_IMPRESSION:"guestbook.impression",GUESTBOOK_LOADING_ERROR:"guestbook.loading_error",GUESTBOOK_SUBMIT_ERROR:"guestbook.submit_error",GUESTBOOK_SUBMIT_SUCCESS:"guestbook.submit_success",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",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",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",NEWZIT_NOTIFICATION_PROMO_CLOSE:"newzit-notification-promo.close",NEWZIT_NOTIFICATION_PROMO_OPEN:"newzit-notification-promo.open",OPENWEB_DELETE_MESSAGE:"openweb.delete_message",OPENWEB_DOWNVOTE:"openweb.downvote",OPENWEB_EDIT_MESSAGE:"openweb.edit_message",OPENWEB_FLOATING_CLICK:"openweb.floating_click",OPENWEB_FLOATING_DISMISS:"openweb.floating_dismiss",OPENWEB_IMPRESSION:"openweb.impression",OPENWEB_LOAD_ERROR:"openweb.load_error",OPENWEB_LOAD_TIME:"openweb.load_time",OPENWEB_LOGIN_START:"openweb.login_start",OPENWEB_OPEN_PROFILE:"openweb.open_profile",OPENWEB_POST_LOGIN_SUCCESS:"openweb.post_login_success",OPENWEB_SEND_FAIL:"openweb.send_fail",OPENWEB_SEND_SUCCESS:"openweb.send_success",OPENWEB_SHARE_TYPE:"openweb.share_type",OPENWEB_SORT_OPEN:"openweb.sort_open",OPENWEB_SORT_SELECT:"openweb.sort_select",OPENWEB_UPVOTE:"openweb.upvote",OPENWEB_VIEWABLE:"openweb.viewable",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_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_VIEWABLE:"paywall.viewable",PAYWALL_ZEPHR_FAIL_OPEN:"paywall.zephr-fail-open",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_COMPLETE:"puzzle.complete",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",SAFARI_NEWSLETTER_BAD_SUBMIT:"safari-newsletter.bad-submit",SAFARI_NEWSLETTER_CONFIRM:"safari-newsletter.confirm",SAFARI_NEWSLETTER_DISMISS:"safari-newsletter.dismiss",SAFARI_NEWSLETTER_SHOW:"safari-newsletter.show",SAFARI_NEWSLETTER_SUBMIT:"safari-newsletter.submit",SCREENSAVER_DOWNLOADED:"page.screensaver_downloaded",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",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_CLICKED:"video.carousel-clicked",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_STREAM_FAILED:"video.stream-failed",VIDEO_STREAM_STARTED:"video.stream-started",VIDEO_VOLUME_CHANGE:"video.volume-change",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_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"}},function(e,t,n){var r=n(36);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){"use strict";var r=n(19);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(7).inherits(o,r,{__CANCEL__:!0}),e.exports=o},function(e,t,n){var r=n(10),o=n(138),i=n(139),a=Math.max,s=Math.min;e.exports=function(e,t,n){var c,l,u,d,f,p,m=0,h=!1,_=!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-p;return void 0===p||n>=t||n<0||_&&e-m>=u}function y(){var e=o();if(v(e))return w(e);f=setTimeout(y,function(e){var n=t-(e-p);return _?s(n,u-(e-m)):n}(e))}function w(e){return f=void 0,g&&c?E(e):(c=l=void 0,d)}function b(){var e=o(),n=v(e);if(c=arguments,l=this,p=e,n){if(void 0===f)return function(e){return m=e,f=setTimeout(y,t),h?E(e):d}(p);if(_)return clearTimeout(f),f=setTimeout(y,t),E(p)}return void 0===f&&(f=setTimeout(y,t)),d}return t=i(t)||0,r(n)&&(h=!!n.leading,u=(_="maxWait"in n)?a(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),b.cancel=function(){void 0!==f&&clearTimeout(f),m=0,c=p=l=f=void 0},b.flush=function(){return void 0===f?d:w(o())},b}},function(e,t,n){"use strict";n.r(t);var r=n(54),o=n.n(r);n.d(t,"after",(function(){return o.a}));var i=n(56),a=n.n(i);n.d(t,"clone",(function(){return a.a}));var s=n(66),c=n.n(s);n.d(t,"compact",(function(){return c.a}));var l=n(67),u=n.n(l);n.d(t,"contains",(function(){return u.a}));var d=n(32),f=n.n(d);n.d(t,"debounce",(function(){return f.a}));var p=n(70),m=n.n(p);n.d(t,"each",(function(){return m.a}));var h=n(72),_=n.n(h);n.d(t,"extend",(function(){return _.a}));var g=n(74),E=n.n(g);n.d(t,"filter",(function(){return E.a}));var v=n(42),y=n.n(v);n.d(t,"forEach",(function(){return y.a}));var w=n(76),b=n.n(w);n.d(t,"has",(function(){return b.a}));var O=n(77),I=n.n(O);n.d(t,"get",(function(){return I.a}));var S=n(78),A=n.n(S);n.d(t,"isEmpty",(function(){return A.a}));var T=n(10),C=n.n(T);n.d(t,"isObject",(function(){return C.a}));var L=n(18),P=n.n(L);n.d(t,"keys",(function(){return P.a}));var R=n(81),N=n.n(R);n.d(t,"map",(function(){return N.a}));var M=n(82),D=n.n(M);n.d(t,"throttle",(function(){return D.a}));var k=n(83),x=n.n(k);n.d(t,"merge",(function(){return x.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n(4),o=n.n(r),i=n(1);const a=()=>{const e=o.a.get("mol-home"),{renderPlatform:t}=Object(i.getPageMetadata)();return"mobile"===t||e?"-no-overlay":""},s=()=>{const e=a();try{const t=o.a.get("mol-home");if(t)return`${t}${e}`}catch(e){}return e?`undefined${e}`:null},c=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},l=()=>c("signpost-last")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={};n.r(r),n.d(r,"getConfig",(function(){return s}));var o=n(51),i=n(2),a=n(9);const s=()=>new Promise((e=>{Object(i.later)("GA_CONFIG_READY",(()=>{e(Object(a.getConfig)("GA_CONFIG_PROPS"))}))}))},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(116);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(121),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(){return!1}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(58),o=n(43),i=n(143),a=n(15);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},function(e,t,n){var r=n(140),o=n(142)(r);e.exports=o},function(e,t,n){"use strict";(function(t){var r=n(7),o=n(170),i=n(19),a=n(88),s=n(89),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||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(u=n(90)),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(182)},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}).call(this,n(169))},function(e,t,n){"use strict";(function(e){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(95),o=n(46);var i=e,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,f=i.scrollBy,p=i.scrollByLines,m=i.scrollByPages,h=i.scrollTo,_=function(t){var n=e.document;return[n.body,n.documentElement].includes(t)},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=2&&(n=n.slice(2)):h(o)?n=r[4]:o?i&&(n=n.slice(2)):c>=2&&h(t.protocol)&&(n=r[4]),{protocol:o,slashes:i||h(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,p,E,v=f.slice(),y=typeof t,w=this,b=0;for("object"!==y&&"string"!==y&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),i=!(s=_(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||!h(w.protocol)))&&(v[3]=[/(.*)/,"pathname"]);bi},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=()=>{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}},function(e,t,n){"use strict";let r,o,i;n.d(t,"a",(function(){return s}));let a=!1;const s=()=>{try{"localStorage"in window&&!a&&(r=window.localStorage.getItem("module_tracking"),o=window.localStorage.getItem("module_tracking_name"),i=window.localStorage.getItem("module_tracking_list_position"),a=!0,r&&window.localStorage.removeItem("module_tracking"),o&&window.localStorage.removeItem("module_tracking_name"),i&&window.localStorage.removeItem("module_tracking_list_position"))}catch(e){}return{moduleListPosition:i,moduleName:o,moduleTracking:r}}},function(e,t,n){"use strict";n.r(t),n.d(t,"getHostname",(function(){return o})),n.d(t,"getPathname",(function(){return i}));var r=n(0);const o=e=>{try{if("string"==typeof e){return new URL(e).hostname}}catch(e){r.logger.error("Failed to get hostname",e)}},i=e=>{try{if("string"==typeof e){return new URL(e).pathname}}catch(e){r.logger.error("Failed to get pathname",e)}}},function(e,t,n){var r;window,r=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,f=Array(d),p=0;p0&&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]:(p("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,R({action:"impression",permission:Notification.permission})];case 1:return n.sent(),[4,(0,c.requestPushPermissionAndSubscribe)({apiKey:a,appServerKey:f,metadata:m,registration:e,subscriptionEndpoint:_})];case 2:return t=n.sent(),[4,R({action:"click",permission:t})];case 3:return n.sent(),[2]}}))}))},"function"!=typeof v?[3,5]:[4,R({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,R({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 M=x.sent(),D={subscription:M,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:p,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]a.a.get(e),removeItem:e=>a.a.remove(e),setItem:(e,t,n)=>a.a.set(e,t,n)};let c={getItem:()=>null,removeItem:()=>null,setItem:()=>null};try{c=window.localStorage}catch(e){}var l={getItem:e=>function(e){try{return JSON.parse(e)}catch(t){return e}}(c.getItem(e)),removeItem:e=>c.removeItem(e),setItem:(e,t)=>c.setItem(e,function(e){return JSON.stringify(e)}(t))};var u=function(){try{const e=window.localStorage,t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(e){return!1}}()?l:s;var d=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 f;const p=function(e){return d(o.queryOverrideClientSegment,e)||null},m=function(){return f=p()||s.getItem(o.cookieClientSegment),f};var h={getActiveSegment:function(){return f||m()},getSegmentOverride:p,setActiveSegment:m},_=n(1);var g=function(){return Object(_.getPageMetadata)()[o.DMPageMetadataKey]||{}};const E=function(e={}){const t=Object.keys(e).reduce(((t,n)=>t+e[n].weight),0);return Math.random()*t},v=function(e={}){const t=e.segments;let n;if(t){const e=E(t);let r;r=0,n=Object.keys(t).find((n=>(r+=t[n].weight,ew.run()))},function(e,t,n){var r=n(55);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)}}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(110);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(111),o=n(112),i=n(113),a=n(114),s=n(115);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1:!!u&&r(e,t,n)>-1}},function(e,t,n){var r=n(40),o=n(10);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}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n1?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);++rt?1:e{let r;const i=`https://${s}/xpmodules/${e}/renderHeadJson?data=`,l={env:t,values:n};try{r=`${i}${encodeURIComponent(JSON.stringify(l))}`}catch(t){return console.error(`[${a}] ${c}.urlError`,{error:t,hostname:s,name:e,...l}),null}try{const e=(await o.a.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(`[${a}] ${c}.thrownError`,{error:e,url:r}),null}};const u="retrieveXpModuleBody";var d=async({name:e,env:t,values:n})=>{let r;const i=`https://${s}/xpmodules/${e}/renderBody?data=`,c={env:t,values:n};try{r=`${i}${encodeURIComponent(JSON.stringify(c))}`}catch(t){return console.error(`[${a}] ${u}.urlError`,{error:t,hostname:s,name:e,...c}),null}try{const{data:e}=await o.a.get(r,{timeout:1e4});return"string"!=typeof e||""===e?(console.error(`[${a}] ${u}.invalidBody`,{body:e,url:r}),null):e}catch(e){return console.error(`[${a}] ${u}.thrownError`,{error:e,url:r}),null}}},function(e,t,n){"use strict";n.r(t)},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{try{if("localStorage"in window){const t=window.localStorage.getItem(`mol-fe-paywall-${e}`);return t?JSON.parse(t):null}}catch(e){}return null},o=2592e5,i=()=>{const e=r("entitlement");if(!e)return!1;const{allow_access:t,storedAt:n,registeredUserId:i}=e;return!(Date.now()-n>o||"DM"in window&&"isLoggedIn"in window.DM&&i!==window.DM.userId)&&(t||!1)},a=["US","AU","NZ","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"],s=()=>{try{return window.PageCriteria&&window.PageCriteria.geo&&!a.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},c=()=>{const e=r("entitlement");return e&&e.entitlements||null},l=()=>{const e=r("entitlement"),t=s(),n=window.mailplusPurchaseOutcome||location.search.includes("mailplusPurchaseOutcome"),i="DM"in window&&"isLoggedIn"in window.DM&&window.DM.isLoggedIn||location.search.includes("login"),a="DM"in window&&"userId"in window.DM&&e&&e.registeredUserId!==window.DM.userId;return!!t&&(!!n||(!!(i&&!e||a)||!!(e&&Date.now()-e.storedAt>o)))},u=()=>{const e=c(),t=i(),n=e&&e.includes("mailplus-ad-lite");return t?n?"subscriber-ad-lite":"subscriber":"none"},d=()=>{try{window.getIsPaywallEligible=s,window.getIsPaywallSubscriber=i,window.getPaywallEntitlements=c,window.getPaywallEntitlementsMightChange=l,window.getPaywallSubscriberType=u,window.paywallSubscriberType=u()}catch(e){}}},function(e,t,n){"use strict";var r=n(21),o=n(1),i=n(53);var a=function(){return i.reader.getActiveSegment()||"default"};var s={geo(){},ito:window.RTA?window.RTA.ito:function(){},tedEvent(e,t={}){t.clientSegment=a(),this.i&&(t.ito=this.i),Object.assign(t,function(){const e={},t=Object(o.getPageMetadata)(),n=t&&t.authorName&&t.authorName.split(";");return n&&n.length&&(e.authors=n),e}()),Object.assign(t,function(){const e={},t=Object(o.getPageMetadata)();return e.rp=t.renderPlatform,e}()),t.title||Object.assign(t,function(){const e={},t=Object(o.getPageMetadata)();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)}};const c=function(e){return function(t,n){s.tedEvent("page_event",{action:"store",name:e,value:n})}};var l={CONTACT_FORM_CAPTCHA_VALID:c("mol-fe-contact-form-captcha-valid"),CONTACT_FORM_FILE_ADDED:c("mol-fe-contact-form-file-added"),CONTACT_FORM_FILE_ERROR_CLIENT:c("mol-fe-contact-form-file-error-client"),CONTACT_FORM_FILE_ERROR_SERVER:c("mol-fe-contact-form-file-error-server"),CONTACT_FORM_SUBMIT_CLICK:c("mol-fe-contact-form-submit-click"),CONTACT_FORM_SUBMIT_ERROR:c("mol-fe-contact-form-submit-error"),CONTACT_FORM_SUBMIT_SUCCESS:c("mol-fe-contact-form-submit-success")};var u={FIDELITY_CAMPAIGN_EVENT:function(e,t,n){s.tedEvent("page_event",{action:n.action,name:n.name,value:n.value})}};var d={FLOATING_BUTTONS_BACK_TO_TOP:function(e,t){s.tedEvent("page_event",{action:"set",name:"backToTop",value:t.value})}};const f=function(e){s.tedEvent("page_event",{action:"store",name:e,value:!0})};var p={GDPR_EMBEDDED_VIDEO_ACCEPTED:f,GDPR_EMBEDDED_VIDEO_DISPLAYED:f,GDPR_EMBEDDED_VIDEO_SETTINGS:f,GDPR_MOBILE_HOME_ACCEPTED:f,GDPR_MOBILE_HOME_DISPLAYED:f,GDPR_MOBILE_HOME_SETTINGS:f,GDPR_OVERLAY_ACCEPT_BY_CLICK_SITE:f,GDPR_OVERLAY_ACCEPTED:f,GDPR_OVERLAY_DISPLAYED:f,GDPR_OVERLAY_PRIVACY:f,GDPR_SETTINGS_ADVERTISING_ALLOW_ALL:f,GDPR_SETTINGS_ADVERTISING_LINK_CLICKED:f,GDPR_SETTINGS_ADVERTISING_TAB_CLICKED:f,GDPR_SETTINGS_CONFIRMATION_ALLOW:f,GDPR_SETTINGS_CONFIRMATION_DISALLOW:f,GDPR_SETTINGS_DISALLOW_ADVERTISING_PARTNERS:f,GDPR_SETTINGS_FUNCTION_ALLOW_ALL:f,GDPR_SETTINGS_FUNCTION_TAB_CLICKED:f,GDPR_SETTINGS_POLICY_LINK_CLICKED:f},m=n(4),h=n.n(m),_=n(26),g=n(13);const E=function(e){const t=document.referrer,n=Object(o.getPageMetadata)(),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};var v=n(48),y=n(49),w=n(34),b=n(16),O=n(50);let I=!1;const S=()=>{try{if("visibilityState"in document&&"visible"===document.visibilityState)return 1}catch(e){}return 2},A=function(e,t){const n=Object(o.getPageMetadata)(),r=n.dmtvEpisode||null;let i={};Object(v.a)()&&!I&&(I=!0,i={autoRefresh:S()});const a=[],c=Object(_.getExperiments)();if(c&&c.length)for(const e of c)a.push(`track:${e}`);n.feTag&&a.push(`feTag:${n.feTag}`);const l=Object(y.a)();l&&a.push(`swipe:${l}`);const u=Object(w.a)();u&&a.push(`track:mobilehometab${u}`);Object(w.b)()&&a.push("track:signpost-shown");const{geo:d,region:f}=Object(o.getPageCriteria)();"GB"===d&&"SC"===f&&a.push("region:scotland");const p=Object(b.c)();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||h.a.get("mol-home")||"news")?"/tvshowbiz":""}s.tedEvent("cview",{channel:e,dmtvEpisode:r,tags:a.join(","),userStatus:p,...i})}else if("article"===n.contentType){const e=g.a.isMobile||g.a.isTablet?null:E("video"),{articleType:t,liveBlog:c,openwebEnabled:l,sources:u,sponsored:d}=Object(o.getPageCriteria)(),f="true"===d||!0===d,m=Object(b.a)();n.isFeatureArticle?a.push("feature-article"):"permabox"===t?a.push("permabox"):c?a.push("live-blog"):a.push("normal-article"),a.push(e?"videos-link":"no-links"),l&&a.push("track:openwebEnabled"),f&&a.push("sponsored");const h=(()=>{try{const{moduleTracking:e}=Object(O.a)(),t=e&&e.match(/\^(swipe(bar|tutorial)?)\^/);return t&&t[1]||null}catch(e){return null}})();h&&a.push(`track:${h}`),s.tedEvent("view",{dmtvEpisode:r,openwebEnabled:l?1:0,paywallStatus:m,tags:a.join(","),userStatus:p,...i,...u?{sources:u}:{}})}else"profile"!==n.contentType&&"login"!==n.contentType||(a.push(n.contentType),s.tedEvent("cview",{authors:[n.authorName],tags:a,...i}))};var T={FEATURE_ARTICLE:function(e,t){s.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])}]})},FFF_BUY_MAIN_CLICKED:function(e,t){s.tedEvent("fff-buy-main",t)},FFF_BUY_RELATED_CLICKED:function(e,t){s.tedEvent("fff-buy-related",t)},FFF_CONTENT_VIEWED:function(e,t){s.tedEvent("fff-view",t)},GALLERY_ADVERT_STATS:function(e,t){s.tedEvent("ad-tracking",{adverts:t.stats,type:t.type})},PAGE_AUTOREFRESH_EVENT:()=>{s.tedEvent("page_event",{action:"store",name:"autorefresh",value:"event"})},PAGE_COMMENT_TAB_SWAPPED:function(e,t){s.tedEvent("page_event",{action:"store",name:"rc_tab_select",value:{tab:t.tab}})},PAGE_MOBILE_TAB_CHANGE:A,PAGE_RENDER_STARTED:A},C=n(0);var L={PAGE_AD_DISPLAYED(e,t){s.tedEvent("ad-tracking",{type:t.type})},PAGE_AD_ERRORS(e,t){C.logger.debug("TED Ad Error Event",t),s.tedEvent("ad-errors",{errorMsg:JSON.stringify(t),type:"ad-errors"})},PAGE_AD_STATS(e,t){s.tedEvent("ad-stats",{stats:JSON.stringify(t),type:"ad-stats"})}};const P=function(e){return(e||"").replace(/[\W_]+/g,"").toLowerCase()},R=function(e){return e&&!isNaN(e)?e:null},N=function(e){return{googleplus:"google",gplus:"google",plusone:"google"}[e]||P(e)};var M={FFF_SOCIAL_CLICKED(e,t){s.tedEvent("share",{article:R(t.pageMetaData.articleId),loc:"fff",on:N(t.socialSite)})},SOCIAL_BUTTON_CLICKED(e,t){s.tedEvent("social-event",{"social-event":t.type})},SOCIAL_SHARE_CLICKED(e,t){const n={article:R(t.articleId),loc:P(t.placement),on:N(t.site)};t.videoId&&(n.videoId=t.videoId),t.referenceId&&(n.referenceId=t.referenceId),s.tedEvent("share",n)},SYNDSHARE_POST(e,t){s.tedEvent("share",{article:R(t.article),loc:"syndshare",on:"synd_"+t.on})}};const D=function(e,t){const n=t.dmtvEpisode||null;"chromeless"!==t.trackingType&&s.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})};var k={VIDEO_ADVERT_ABORTED:D,VIDEO_ADVERT_COMPLETED:D,VIDEO_ADVERT_FAILED:D,VIDEO_ADVERT_STARTED:D,VIDEO_BRANDED_CONTENT_PROGRESS:D,VIDEO_CONFIG_CHANGE:function(e,t){"chromeless"!==t.trackingType&&s.tedEvent("page_event",{action:"set",name:e,play:t.play,value:t.value})},VIDEO_CONTENT_ABORTED:D,VIDEO_CONTENT_COMPLETED:D,VIDEO_CONTENT_STARTED:D,VIDEO_EXTRA:function(e,t){"chromeless"!==t.trackingType&&s.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&&s.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:D,VIDEO_STREAM_STARTED:D};const x=function(e,t){s.tedEvent("push",t)};var B={WEB_PULL_NOTIFICATION_CLICK:function(e,t){s.tedEvent("pull",t)},WEB_PUSH_NOTIFICATION_CLICK:x,WEB_PUSH_PRE_PROMPT_CLICK:x,WEB_PUSH_PRE_PROMPT_IMPRESSION:x,WEB_PUSH_PROMPT_CLICK:x,WEB_PUSH_PROMPT_IMPRESSION:x};const U=e=>{s.tedEvent("page_event",{action:"set",name:`remixd_${e}`,value:Date.now()})};var j={REMIXD_COMPLETE:()=>U("complete"),REMIXD_ERROR:()=>U("error"),REMIXD_IMPRESSION:()=>U("impression"),REMIXD_MUTE:()=>U("mute"),REMIXD_PAUSE:()=>U("pause"),REMIXD_PLAY:()=>U("play")};const F=(e,t)=>(n,r)=>{const{campaignId:o}=r;s.tedEvent("page_event",{action:"set",name:`${e}_${o}_${t}`,value:Date.now()})};var W={GUESTBOOK_IMPRESSION:F("guestbook","impression"),GUESTBOOK_LOADING_ERROR:F("guestbook","loading_error"),GUESTBOOK_SUBMIT_ERROR:F("guestbook","submit_error"),GUESTBOOK_SUBMIT_SUCCESS:F("guestbook","submit_success")};const V={},G=e=>(t,n)=>((e,t)=>{V[e]||(V[e]=0),V[e]++,s.tedEvent("page_event",{action:"set",name:`openweb_${e}`,value:t&&void 0!==t.value?t.value:V[e]})})(e,n);var K={OPENWEB_DELETE_MESSAGE:G("delete_message"),OPENWEB_DOWNVOTE:G("downvote"),OPENWEB_EDIT_MESSAGE:G("edit_message"),OPENWEB_FLOATING_CLICK:G("floating_click"),OPENWEB_FLOATING_DISMISS:G("floating_dismiss"),OPENWEB_IMPRESSION:G("impression"),OPENWEB_LOAD_ERROR:G("load_error"),OPENWEB_LOAD_TIME:G("load_time"),OPENWEB_LOGIN_START:G("login_start"),OPENWEB_OPEN_PROFILE:G("open_profile"),OPENWEB_POST_LOGIN_SUCCESS:G("post_login_success"),OPENWEB_SEND_FAIL:G("send_fail"),OPENWEB_SEND_SUCCESS:G("submit_success"),OPENWEB_SHARE_TYPE:G("share_type"),OPENWEB_SORT_OPEN:G("sort_open"),OPENWEB_SORT_SELECT:G("sort_select"),OPENWEB_UPVOTE:G("upvote"),OPENWEB_VIEWABLE:G("viewable")};var H={PROMOTIONAL_SLOT_EVENT:(e,t)=>{if(!t||"string"!=typeof t.xpModuleName||"string"!=typeof t.eventName)return C.logger.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 s.tedEvent("page_event",{action:"set",name:`promotional_slot_${n}_${r}`,value:Date.now()}),!0}};const $=(e,t)=>()=>{s.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:Date.now()})};var Y={SWIPE_BAR_SHOWN:$("swipe_bar","shown"),SWIPE_TUTORIAL_CLOSE:$("swipe_tutorial","close"),SWIPE_TUTORIAL_SHOWN:$("swipe_tutorial","shown")};const q={},X=e=>(t,n)=>((e,t)=>{q[e]||(q[e]=0),q[e]++,s.tedEvent("page_event",{action:"set",name:`comments_${e}`,value:t&&void 0!==t.value?t.value:q[e]})})(e,n);var z={COMMENTS_ADD_COMMENT_CLICK:X("add_comment_click"),COMMENTS_CLEAR:X("clear"),COMMENTS_DOWNVOTE:X("downvote"),COMMENTS_IMPRESSION:X("impression"),COMMENTS_LOAD_TIME:X("load_time"),COMMENTS_LOGIN_REDIRECT:X("login_redirect"),COMMENTS_NEW_COMMENT_CLICK:X("new_comment_click"),COMMENTS_OVERLAY_CLOSE:X("overlay_close"),COMMENTS_OVERLAY_OPEN:X("overlay_open"),COMMENTS_PAGINATION_CLICK:X("pagination_click"),COMMENTS_PROFILE_CLICK:X("profile_click"),COMMENTS_REPLY_CLICK:X("reply_click"),COMMENTS_REPLY_SUBMIT:X("reply_submit"),COMMENTS_REPORT_CLICK:X("report_abuse"),COMMENTS_SHOW_MORE_CLICK:X("show_more"),COMMENTS_SUBMIT_COMMENT:X("submit"),COMMENTS_SUBMIT_SUCCESS:X("submit_success"),COMMENTS_UPVOTE:X("upvote"),COMMENTS_VIEW_ALL:X("view_all"),SOCIAL_SHARE_COMMENTS:X("added")};var J,Z,Q={MASTHEAD_CLICK:(J="masthead",Z="click",(e,t)=>{const{mastheadName:n}=t;s.tedEvent("page_event",{action:"set",name:`${J}_${n}_${Z}`,value:Date.now()})})};const ee=(e,t)=>(n,r)=>{const{value:o}=r||{};s.tedEvent("page_event",{action:"set",name:`${e}_${t}${o?`_${o}`:""}`,value:Date.now()})};var te={COMMERCE_XP_CLICK:ee("commerce_xp","click"),COMMERCE_XP_IMPRESSION:ee("commerce_xp","impression"),COMMERCE_XP_VIEW_MORE:ee("commerce_xp","view_more"),COMMERCE_XP_VIEWABLE:ee("commerce_xp","viewable")};const ne=(e,t)=>()=>{s.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:Date.now()})};var re={COMMENT_CTA_CLICK:ne("commentcta","click"),COMMENT_CTA_IMPRESSION:ne("commentcta","impression")};const oe={},ie=e=>(t,n)=>{return oe[r=e]||(oe[r]=0),oe[r]++,void s.tedEvent("page_event",{action:"set",name:`mobile_menu_${r}`,value:oe[r]});var r};var ae={MOBILE_MENU_COMMENT:ie("comment"),MOBILE_MENU_DESKTOP_SITE:ie("desktop_site")};const se={};var ce={PAGE_FURNITURE_CLICKED:(e,t)=>{const n=t&&t.furnitureName;if(!n)return;const r=n.replace(/\s/g,"_");se[r]||(se[r]=0),se[r]++,s.tedEvent("page_event",{action:"set",name:`furniture_${r}`,value:se[r]})}};const le={},ue=(e,t)=>(n,r)=>{le[t]||(le[t]=0),le[t]++;let o=t;"ineligible"===t&&r&&r.reason&&(o=`${t}_${r.reason.replace(/ /g,"_")}`),s.tedEvent("page_event",{action:"set",name:`${e}_${o}`,value:le[t]})};var de={ARTICLE_TRUNCATION_EXPAND:ue("article_truncation","expand"),ARTICLE_TRUNCATION_INELIGIBLE:ue("article_truncation","ineligible"),ARTICLE_TRUNCATION_READ_NEXT:ue("article_truncation","read_next"),ARTICLE_TRUNCATION_TRUNCATE:ue("article_truncation","truncate"),ARTICLE_TRUNCATION_VIEWABLE:ue("article_truncation","viewable")};const fe={},pe=e=>{fe[e]||(fe[e]=0),fe[e]++,s.tedEvent("page_event",{action:"set",name:`mobile_homepage_${e}`,value:fe[e]})},me={MOBILE_HOME_PAGE_NAV:(e,t)=>{const{action:n}=t;pe(`puff_module_${n.replace(/\s/g,"_")}`)},MOBILE_HOME_PAGE_OVERLAY:()=>pe("overlay_display"),MOBILE_HOME_PAGE_SIGNPOST_CLICK:()=>pe("signpost_click"),MOBILE_HOME_PAGE_SIGNPOST_DISMISS:()=>pe("signpost_dismiss"),MOBILE_HOME_PAGE_SIGNPOST_DISPLAY:()=>pe("signpost_display"),MOBILE_HOME_PAGE_SWIPE:(e,t)=>{const{action:n,label:r}=t;pe(`${n}_${r}`)},MOBILE_HOME_PAGE_VIEW:(e,t)=>{const{actionSource:n}=t,r=h.a.get("mol-home"),o=h.a.get("mol-home-default-channel");pe(`${n||"overlay"}_choice_${r}${o?`_geo_${o.toLowerCase()}`:""}`)}};var he=me;const _e={},ge=e=>(t,n)=>((e,t)=>{_e[e]||(_e[e]=0),_e[e]++,s.tedEvent("page_event",{...t,action:"set",name:`firework_video_carousel_${e}`,value:_e[e]})})(e,n);var Ee={FIREWORK_VIDEO_CAROUSEL_ERROR:ge("error"),FIREWORK_VIDEO_CAROUSEL_IMPRESSION:ge("carousel_impression"),FIREWORK_VIDEO_CAROUSEL_PLAYER_NAVIGATION:ge("player_navigation"),FIREWORK_VIDEO_CAROUSEL_PLAYER_QUIT:ge("player_quit"),FIREWORK_VIDEO_CAROUSEL_PLAYER_TRANSITION:ge("player_transition"),FIREWORK_VIDEO_CAROUSEL_READY:ge("carousel_ready"),FIREWORK_VIDEO_CAROUSEL_THUMBNAIL_CLICK:ge("thumbnail_click"),FIREWORK_VIDEO_CAROUSEL_VIDEO_CLICK_CTA:ge("video_click_cta"),FIREWORK_VIDEO_CAROUSEL_VIDEO_CLICK_SHARE:ge("video_click_share"),FIREWORK_VIDEO_CAROUSEL_VIDEO_COMPLETE:ge("video_complete"),FIREWORK_VIDEO_CAROUSEL_VIDEO_FIRST_QUARTILE:ge("video_first_quartile"),FIREWORK_VIDEO_CAROUSEL_VIDEO_IMPRESSION:ge("video_impression"),FIREWORK_VIDEO_CAROUSEL_VIDEO_MID_POINT:ge("video_mid_point"),FIREWORK_VIDEO_CAROUSEL_VIDEO_SESSION:ge("video_session"),FIREWORK_VIDEO_CAROUSEL_VIDEO_START:ge("video_start"),FIREWORK_VIDEO_CAROUSEL_VIDEO_THIRD_QUARTILE:ge("video_third_quartile")};const ve={},ye=(e,t)=>()=>{ve[t]||(ve[t]=0),ve[t]++,s.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:ve[t]})};var we={PUZZLE_COMPLETE:ye("puzzle","complete"),PUZZLE_STARTED:ye("puzzle","started")};const be=(e,t)=>(n,r)=>{const{value:o}=r||{};s.tedEvent("page_event",{action:"set",name:`${e}_${t}${o?`_${o}`:""}`,value:Date.now()})};var Oe={ARTICLE_PREVIEW_XP_CLICK:be("article_preview_xp","click"),ARTICLE_PREVIEW_XP_IMPRESSION:be("article_preview_xp","impression"),ARTICLE_PREVIEW_XP_VIEWABLE:be("article_preview_xp","viewable")};const Ie={},Se=(e,t)=>(n,r)=>{Ie[t]||(Ie[t]=0),Ie[t]++,s.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:r||Ie[t]})};var Ae={RELATED_REPLACE_CLICK:Se("related_replace","click"),RELATED_REPLACE_IMPRESSION:Se("related_replace","impression"),RELATED_REPLACE_VIEWABLE:Se("related_replace","viewable")};const Te={},Ce=e=>()=>{Te[e]||(Te[e]=0),Te[e]++,s.tedEvent("page_event",{action:"set",name:e,value:Te[e]})};var Le={...{CMP_LEVEL_ONE_ACCEPT:Ce("cmp_level_1_accept"),CMP_LEVEL_ONE_CONVERSION:Ce("cmp_level_1_conversion"),CMP_LEVEL_ONE_LOGIN:Ce("cmp_level_1_login"),CMP_LEVEL_ONE_PRIVACY_SETTINGS:Ce("cmp_level_1_privacy_settings"),CMP_LEVEL_ONE_SUBSCRIBE:Ce("cmp_level_1_subscribe"),CMP_LEVEL_TWO_CONVERSION:Ce("cmp_level_2_conversion"),CMP_LEVEL_TWO_SAVE_EXIT:Ce("cmp_level_2_save_exit"),CMP_LEVEL_TWO_SUBSCRIBE:Ce("cmp_level_2_subscribe")},...{ESSENTIAL_ACCOUNT_LINK_COMPLETE:Ce("essential_account_link_complete"),ESSENTIAL_ACCOUNT_LINK_HELP_CLICK:Ce("essential_account_link_help_click"),ESSENTIAL_ACCOUNT_LINK_PROMPT:Ce("essential_account_link_prompt"),ESSENTIAL_ACCOUNT_LINK_RESEND:Ce("essential_account_link_resend_email_click"),ESSENTIAL_RESTORE_PURCHASE_CLICK:Ce("essential_restore_purchase_click")}};const Pe={},Re=(e,t)=>()=>{Pe[t]||(Pe[t]=0),Pe[t]++,s.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:Pe[t]})};var Ne={PAYWALL_ACCOUNT_LINK_COMPLETE:Re("paywall","account_link_complete"),PAYWALL_ACCOUNT_LINK_HELP:Re("paywall","account_link_help"),PAYWALL_ACCOUNT_LINK_PROMPT:Re("paywall","account_link_prompt"),PAYWALL_ACCOUNT_LINK_RESEND:Re("paywall","account_link_resend"),PAYWALL_CONVERSION:Re("paywall","conversion"),PAYWALL_CONVERSION_BANNER:Re("paywall","conversion"),PAYWALL_CONVERSION_PROFILE:Re("paywall","conversion"),PAYWALL_HOMEMODULE_ARTICLE_CLICK:Re("paywall","article_click"),PAYWALL_HOMEMODULE_ARTICLE_COMMENTS_CLICK:Re("paywall","article_comments_click"),PAYWALL_HOMEMODULE_CHANNEL_CLICK:Re("paywall","channel_click"),PAYWALL_HOMEMODULE_SIGNUP_CLICK:Re("paywall","signup_homemodule"),PAYWALL_IMPRESSION:Re("paywall","impression"),PAYWALL_LOGIN_CLICK:Re("paywall","login_click"),PAYWALL_MASTHEAD_SIGNUP_CLICK:Re("paywall","signup_masthead"),PAYWALL_PROFILE_SIGNUP_CLICK:Re("paywall","signup_profile"),PAYWALL_RESTORE_PURCHASE_CLICK:Re("paywall","restore_purchase_click"),PAYWALL_SIGN_UP:Re("paywall","signup_article"),PAYWALL_VIEWABLE:Re("paywall","viewable"),PAYWALL_ZEPHR_FAIL_OPEN:Re("paywall","zephr_fail_open")};const Me={},De={FACTBOX_READ_MORE_CLICK:((e,t)=>(n,r)=>{Me[t]||(Me[t]=0),Me[t]++,s.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:r||Me[t]})})("factbox","read_more_click")};var ke=De;const xe={},Be=(e,t)=>(n,r)=>{xe[t]||(xe[t]=0),xe[t]++,s.tedEvent("page_event",{action:"set",name:`${e}_${t}`,value:r||xe[t]})};var Ue={IFRAME_EMAIL_IMPRESSION:Be("iframe_email","impression"),IFRAME_EMAIL_SUBMIT:Be("iframe_email","submit"),IFRAME_EMAIL_SUBMIT_NO_EMAIL:Be("iframe_email","submit_no_email"),IFRAME_EMAIL_VIEWABLE:Be("iframe_email","viewable")};var je=Object.assign({},l,u,d,Ee,p,T,L,M,k,B,j,W,K,H,Q,te,Y,z,re,ae,ce,de,he,we,Oe,Ne,Ae,Le,ke,Ue);Object(r.a)("TED",je);t.a=s},function(e,t,n){"use strict";var r=n(0),o=n(21);const i=function(e,t){window.trac.slideEvent(t.contentType+"-"+t.threadId)};var a={GALLERY_ADVERT_VIEWED:i,GALLERY_CLOSED:i,GALLERY_IMAGE_VIEWED:i,GALLERY_OPENED:i};var s={PAGE_COMMENT_TAB_SWAPPED:function(e,t){window.trac.slideEvent(t.contentType+"-"+t.tab)}};var c=Object.assign({},a,s);const l={init:function(){window.trac?Object(o.a)("Nielsen",c):r.logger.error('Nielsen: trying to load nielsen tracking but "trac" global is not present')}};t.a=l},function(e,t,n){"use strict";var r=n(0),o=n(13),i=n(5),a=n(1);const s=e=>{let t=e.offsetTop,n=e.offsetParent;for(;n;)Number.isNaN(n.offsetTop)||(t+=n.offsetTop),n=n.offsetParent;return t},c=["alpha","beta","gamma"],l=c.map((e=>`.${e}`)).join(","),u=function(e){const t=e.hostname||window.location.hostname;return o.a.internalDomainsRegex.test(t)},d=function(e){return!u(e)},f=function(e){if(!e||1!==e.nodeType)return null;const t=c.find((t=>e.classList.contains(t)));if(!t)return"other";return`${t}-${Array.from(document.querySelectorAll("."+t)).indexOf(e)+1}`},p=function({interaction:e,link:t,moduleElement:n,target:r,trackAs:o,trackLinks:i}){const c=n.closest(l),u={element:t,fromLink:t,interaction:e,linkType:"IMG"===r.nodeName?"image":"text",listPosition:i.indexOf(t)+1,moduleName:n.getAttribute("data-track-module"),position:n.getAttribute("data-track-pos")||f(c)||"other",trackingType:o||t.getAttribute("data-track-type")||n.getAttribute("data-track-type")||"ck",videoId:t.getAttribute("data-videoid")};return r.closest(".sponsored")&&(u.moduleName=u.moduleName.replace("^","_sponsored^")),(e=>{if("article"!==Object(a.getPageCriteria)().pageType||"desktop"!==Object(a.getPageMetadata)().renderPlatform||!e||!e.closest(".puff"))return!1;const t=document.querySelector(".article-text .shareArticles"),n=s(t);return s(e)>n})(r)&&(u.moduleName+="AfterArticle"),u},m=function(e){const{moduleElement:t,shouldProceed:n,target:o}=e,a=t.getAttribute("data-track-selector")||"a",s=Array.from(t.querySelectorAll(a)),c=s.find((e=>e===o||e.contains(o)));if(c&&n(c)){const t=p(Object.assign({link:c,trackLinks:s},e));r.logger.debug("moduleTracking",t),i.a.publish(i.a.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")?d:u;m({interaction:"link-click",moduleElement:t,shouldProceed:n,target:e.target})}}));const h={externalLinkTracker:function(e,t="el"){const n=document.getElementById(e);Array.from(n.querySelectorAll("a.js-tl")).forEach((e=>e.addEventListener("click",(e=>m({interaction:"link-click",moduleElement:n,shouldProceed:d,target:e.target,trackAs:t})))))},trackSwipe:function(e,t){m({interaction:"swipe",moduleElement:e,shouldProceed:u,target:t})}};t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(5);const i={".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"},a=()=>{try{document.addEventListener("click",(e=>{const t=Object.keys(i).find((t=>e.target.closest(t)));if(!t)return;const n=i[t];o.a.publish(o.a.PAGE_FURNITURE_CLICKED,{furnitureName:n})}))}catch(e){r.logger.error("Error initialising furniture tracking",e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),o=n(5),i=n(27);const a={PuzzleComplete:o.a.PUZZLE_COMPLETE,PuzzleStarted:o.a.PUZZLE_STARTED},s=()=>{try{window.addEventListener("message",(e=>{if(!e||!e.data||"object"!=typeof e.data||"puzzles track event"!==e.data.msg)return;const{eventData:t,eventName:n}=e.data,s=t&&t.PuzzleName||"unknown",c=a[n];c?("PuzzleStarted"===n&&Object(i.b)(),o.a.publish(c,{puzzleName:s})):r.logger.warn("Unknown puzzle event name",n)}))}catch(e){r.logger.error("Error initialising puzzle tracking",e)}}},,function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"addArticleRead",(function(){return d})),n.d(t,"isArticleInRead",(function(){return f})),n.d(t,"addChannelCount",(function(){return m})),n.d(t,"getChannelCounts",(function(){return h}));var r=n(2),o=n(0),i=n(1),a=n(23);const s=Object(a.createLocalStorage)("mol-fe-article-read-"),c=e=>s.getItem(e),l=(e,t)=>s.setItem(e,t),u="articles",d=e=>{const t=Number(e),n=c(u)||[];if(n.includes(t))return;let r=[...n,t];r.length>100&&(r=r.slice(r.length-100)),l(u,r)},f=e=>Boolean((c(u)||[]).includes(Number(e))),p="channels",m=e=>{const t=c(p)||{};t[e]=(t[e]||0)+1,l(p,t)},h=()=>c(p)||{},_="topics",g=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)),{})})(c(_)||{},e);l(_,t)},E=()=>{try{const e=Object(i.getPageCriteria)();if("article"!==e.pageType)return;const{articleId:t,channel:n}=e,{topics:r}=Object(i.getPageMetadata)();d(Number(t)),m(n),g(r)}catch(e){o.logger.error("Error initialising mol-fe-article-read",e)}};try{Object(r.later)("PAGE_METADATA_SET",E)}catch(e){o.logger.error("Error initialising mol-fe-article-read",e)}},function(e,t,n){"use strict";n.r(t);n(109)},function(e,t){!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="object"==typeof e,u=t.regeneratorRuntime;if(u)l&&(e.exports=u);else{(u=t.regeneratorRuntime=l?e.exports:{}).wrap=y;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",h={},_={};_[a]=function(){return this};var g=Object.getPrototypeOf,E=g&&g(g(R([])));E&&E!==r&&o.call(E,a)&&(_=E);var v=I.prototype=b.prototype=Object.create(_);O.prototype=v.constructor=I,I.constructor=O,I[c]=O.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,I):(e.__proto__=I,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(v),e},u.awrap=function(e){return{__await:e}},S(A.prototype),A.prototype[s]=function(){return this},u.AsyncIterator=A,u.async=function(e,t,n,r){var o=new A(y(e,t,n,r));return u.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(v),v[c]="Generator",v[a]=function(){return this},v.toString=function(){return"[object Generator]"},u.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}},u.values=R,P.prototype={constructor:P,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(L),!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),L(n),h}},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;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:R(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),h}}}function y(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return N()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=w(e,t,n);if("normal"===c.type){if(r=n.done?m:f,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=m,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function b(){}function O(){}function I(){}function S(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function A(e){function t(n,r,i,a){var s=w(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 T(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,T(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=w(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;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,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function C(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function R(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-1}},function(e,t,n){var r=n(29);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}},function(e,t,n){var r=n(117),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(17),o=n(18);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(17),o=n(24);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(12))},function(e,t,n){var r=n(17),o=n(123);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(17),o=n(125);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(30)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(10),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},function(e,t){e.exports=function(){return!1}},function(e,t){e.exports=function(){return!1}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(40),o=n(15),i=n(41);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t,n){var r=n(137),o=n(18);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(69);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t,n){var r=n(38);e.exports=function(){return r.Date.now()}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(71),o=n(18);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t){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}}},function(e,t,n){var r=n(25);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--:++a1)for(var n=1;n=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return W(e).length;t=(""+t).toLowerCase(),r=!0}}function h(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:E(e,t,n,r,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):E(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function E(e,t,n,r,o){var i,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){for(var d=!0,f=0;fo&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:l>223?3:l>191?2:1;if(o+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&l)<<6|63&i)>127&&(u=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&l)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(r,o),u=e.slice(t,n),d=0;do)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return b(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function C(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function k(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function x(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,i){return i||x(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,i){return i||x(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):k(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):k(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):k(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):k(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(12))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,c=n-o;sc?c:s+a));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],s=t;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<>1,u=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=l}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,c,l=8*i-o-1,u=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,m=r?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=m,s/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=m,a/=256,l-=8);e[n+p-m]|=128*h}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(19);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)}},function(e,t,n){"use strict";var r=n(7);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(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(7),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}},function(e,t,n){"use strict";var r=n(7);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}},function(e,t,n){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},function(e,t){e.exports=null},function(e,t,n){"use strict";var r=n(94).version,o=n(19),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}},function(e,t,n){"use strict";var r=n(31);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;t0&&void 0!==arguments[0]?arguments[0]:{},n=t.recursiveConsideration,r=(n=void 0===n?{}:n).frequency,c=void 0===r?2:r,d=n.timeout,f=void 0===d?500:d,p=t.recursiveInterventionThreshold,S=void 0===p?5:p,A=t.wheelInteractionTimeout,T=void 0===A?30:A,C=t.mouseupInteractionTimeout,L=void 0===C?30:C;if(void 0===e.pageYOffset||u.IS_SAFARI)return a.noop;var P=new l.default({intervene:function(){return(0,s.dispatchCustomEvent)("scrollutilsintervention")},interventionThreshold:S,frequency:c,timeout:f}),R=O.bind(null,P),N=a.Debouncer.debounce(o.endInteraction,T),M=a.Debouncer.debounce(o.endInteraction,L),D=function(t){var n=t.endWheelInteraction,r=t.endKeyMouseUpInteraction,i=t.monitoredScrollHandler,a=e.document,s=a.body,c=a.documentElement,l=[s,c],u=s.doScroll;return function t(){s.doScroll=u,e.Element.prototype.scrollIntoView=m,e.Element.prototype.scrollIntoViewIfNeeded=h,e.scroll=_,e.scrollBy=g,e.scrollByLines=E,e.scrollByPages=v,e.scrollTo=y,e.removeEventListener("scrollutilsintervention",t),e.removeEventListener("wheel",o.startInteraction,!0),e.removeEventListener("wheel",n,!1),e.removeEventListener("keydown",o.startInteraction,!0),e.removeEventListener("keyup",r,!0),e.removeEventListener("mousedown",o.startInteraction,!0),e.removeEventListener("mouseup",r,!0),e.removeEventListener("dragstart",o.startInteraction,!0),e.removeEventListener("dragend",o.endInteraction,!0),e.removeEventListener("scroll",i,!0),e.removeEventListener("touchstart",o.startInteraction,!0),e.removeEventListener("touchend",o.endInteraction,!0),e.removeEventListener("touchmove",i,!0),e.removeEventListener("mousemove",b,!1),e.removeEventListener("hashchange",I,!1);var a=!0,c=!1,d=void 0;try{for(var f,p=l[Symbol.iterator]();!(a=(f=p.next()).done);a=!0){var w=f.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&&p.return&&p.return()}finally{if(c)throw d}}}}({endWheelInteraction:N,endKeyMouseUpInteraction:M,monitoredScrollHandler:R});return(0,o.setHash)(e.location.hash),(0,o.updatePosition)(),function(t){var n=t.endWheelInteraction,r=t.endKeyMouseUpInteraction,a=t.monitoredScrollHandler,s=t.reenableWindowScrollMethods,c=e.document,l=c.body,u=[l,c.documentElement];l.doScroll=w,e.Element.prototype.scrollIntoView=w,e.Element.prototype.scrollIntoViewIfNeeded=w,e.scroll=_&&w,e.scrollBy=g&&w,e.scrollByLines=E&&w,e.scrollByPages=v&&w,e.scrollTo=w,e.addEventListener("scrollutilsintervention",s),e.addEventListener("wheel",o.startInteraction,!0),e.addEventListener("wheel",n,!1),e.addEventListener("keydown",o.startInteraction,!0),e.addEventListener("keyup",r,!0),e.addEventListener("mousedown",o.startInteraction,!0),e.addEventListener("mouseup",r,!0),e.addEventListener("dragstart",o.startInteraction,!0),e.addEventListener("dragend",o.endInteraction,!0),e.addEventListener("scroll",a,!0),e.addEventListener("touchstart",o.startInteraction,!0),e.addEventListener("touchend",o.endInteraction,!0),e.addEventListener("touchmove",a,!0),e.addEventListener("mousemove",b,!1),e.addEventListener("hashchange",I,!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})},f=!0,p=!1,m=void 0;try{for(var h,y=u[Symbol.iterator]();!(f=(h=y.next()).done);f=!0)d(h.value)}catch(e){p=!0,m=e}finally{try{!f&&y.return&&y.return()}finally{if(p)throw m}}}({endWheelInteraction:N,endKeyMouseUpInteraction:M,monitoredScrollHandler:R,reenableWindowScrollMethods:D}),D}}).call(this,n(12))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});t.dispatchCustomEvent=e.dispatchEvent?function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=new e.CustomEvent(t);n.dispatchEvent(r)}:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=e.createEventObject();n.fireEvent("on"+r,r)}}).call(this,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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=o},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});t.IS_SAFARI=/^((?!chrome|android).)*safari/i.test(e.navigator.userAgent)}).call(this,n(12))},,function(e,t,n){"use strict";var r=()=>{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)};(()=>{r()})()},function(e,t,n){"use strict";n.r(t),n.d(t,"molFeArticleRead",(function(){return oe})),n.d(t,"molFeAsync",(function(){return u})),n.d(t,"molFeClientLogger",(function(){return d})),n.d(t,"molFeComponents",(function(){return f})),n.d(t,"molFeCookieReinforcer",(function(){return r})),n.d(t,"molFeDomHelpers",(function(){return w})),n.d(t,"molFeLoadingSpinner",(function(){return ln})),n.d(t,"molFeMiniLodash",(function(){return b})),n.d(t,"molFeMobileutils",(function(){return O})),n.d(t,"molFeMultivariant",(function(){return I})),n.d(t,"molFePageMetadata",(function(){return S})),n.d(t,"molFeRelatedReplace",(function(){return i})),n.d(t,"molFeRemixd",(function(){return a})),n.d(t,"molFeSegmentation",(function(){return A})),n.d(t,"molFeSmartBanner",(function(){return o})),n.d(t,"molFeTracking",(function(){return T})),n.d(t,"molFeWebVitals",(function(){return s})),n.d(t,"molFeArticleTruncation",(function(){return c})),n.d(t,"molFePaywallMasthead",(function(){return l})),n.d(t,"molFeLocalStorage",(function(){return Pn})),n.d(t,"molFeXpModuleDataUtils",(function(){return Rn})),n.d(t,"externalLinkTracker",(function(){return sr.c})),n.d(t,"trackSwipe",(function(){return sr.m})),n.d(t,"later",(function(){return sr.e})),n.d(t,"Log",(function(){return sr.a})),n.d(t,"log",(function(){return sr.h})),n.d(t,"loadCSS",(function(){return sr.f})),n.d(t,"loadDeferredImgs",(function(){return sr.g})),n.d(t,"onDocReady",(function(){return sr.i})),n.d(t,"getPageMetadata",(function(){return sr.d})),n.d(t,"setPageMetadata",(function(){return sr.k})),n.d(t,"Nielsen60",(function(){return sr.b})),n.d(t,"ted",(function(){return sr.l})),n.d(t,"pageEvents",(function(){return sr.j}));var r={};n.r(r),n.d(r,"addCookieToReinforce",(function(){return _})),n.d(r,"stopReinforcingCookie",(function(){return g})),n.d(r,"reinforceCookies",(function(){return y})),n.d(r,"removeCookieAndStopReinforcing",(function(){return v})),n.d(r,"setCookieAndReinforce",(function(){return E}));var o={};n.r(o),n.d(o,"loaded",(function(){return te})),n.d(o,"smartBanner",(function(){return Q}));var i={};n.r(i),n.d(i,"replaceRelatedElement",(function(){return we}));var a={};n.r(a),n.d(a,"listenToEvents",(function(){return Ae}));var s={};n.r(s),n.d(s,"getStandard",(function(){return Xt})),n.d(s,"getUpdated",(function(){return zt})),n.d(s,"webVitals",(function(){return Jt})),n.d(s,"getLCPEntries",(function(){return Zt})),n.d(s,"getCLSEntries",(function(){return Qt}));var c={};n.r(c),n.d(c,"truncateArticle",(function(){return sn})),n.d(c,"expandArticle",(function(){return on}));var l={};n.r(l),n.d(l,"init",(function(){return Cn})),n.d(l,"paywallUtils",(function(){return Ln}));n(97),n(202);var u=n(2),d=n(0),f=n(9),p=n(4),m=n.n(p);const h="mol-fe-cookie-reinforcer",_=(e,t,n=null)=>{try{if(!("localStorage"in window))return;const r=JSON.parse(window.localStorage.getItem(h)||"{}");r[e]={expireDate:n,value:t},window.localStorage.setItem(h,JSON.stringify(r))}catch(e){d.logger.error("Error adding cookie to reinforce",e)}},g=e=>{try{if(!("localStorage"in window))return;const t=JSON.parse(window.localStorage.getItem(h)||"{}");delete t[e],window.localStorage.setItem(h,JSON.stringify(t))}catch(e){d.logger.error("Error removing cookie from reinforcer",e)}},E=(e,t,n=null)=>{try{m.a.set(e,t,{expires:n,path:"/"}),_(e,t,n)}catch(e){d.logger.error("Error setting cookie and adding to reinforce list",e)}},v=e=>{try{m.a.remove(e),g(e),"mol-home"===e&&window.localStorage.setItem("mol-fe-home-channel-actioned-last",Date.now())}catch(e){d.logger.error("Error removing cookie and stopping reinforcement",e)}},y=()=>{try{if(!("localStorage"in window))return;const e=JSON.parse(window.localStorage.getItem(h)||"{}"),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())&&(m.a.set(n,o,{expires:i,path:"/"}),t[n]={expireDate:i,value:o})}window.localStorage.setItem(h,JSON.stringify(t))}catch(e){d.logger.error("Error reinforcing cookies",e)}};y();var w=n(11),b=n(33),O=n(14),I=n(26),S=n(1),A=n(53),T=n(3),C=n(32),L="smartBanner--3aLjh",P="view--WZ4E3",R="timLogo--1Kd7a logo--RkTHJ",N="molLogo--3i9R7 logo--RkTHJ",M="molffLogo--3Fm7_ logo--RkTHJ",D="close--3IkWD",k="info--2IYpC",x="ratings--Uqyb7",B="starFull--2PKzW rating--1jNVS",U="starHalf--3l-Dg rating--1jNVS",j="starEmpty--23EjB rating--1jNVS",F="name--UJIe_",W="price--3PIaQ";const V=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},G=function(){return document.body.classList.contains("mol-desktop")},K="fantasyfootball",H="tim",$="smart-banner",Y={inited:!1},q=function(){try{return(V()?"windows10":O.deviceData.mobileName.toLowerCase())+" banner"}catch(e){return"unknown banner"}},X=function(){d.logger.debug("smartBanner: hiding"),document.body.classList.remove("smart-banner")},z=function(){(m.a.get($)||!V()&&Object(O.isLandscape)())&&document.body.classList.contains("smart-banner")&&X(),m.a.get($)||!V()&&Object(O.isLandscape)()||document.body.classList.contains("smart-banner")||(d.logger.debug("smartBanner: showing"),document.body.classList.add("smart-banner-shown"),document.body.classList.add("smart-banner"),T.pageEvents.publish(T.pageEvents.SMART_BANNER_SHOWN,{type:q()}))},J=n.n(C)()(z,50),Z=function(e){if(!e)return null;if(window.location.search&&window.location.search.match(/[?&]source=newzit\.app/))return null;const t=(V()?"windows10":O.deviceData.mobileName.toLowerCase())+"_banner",n=`\n\n
\n
\n
${e.trackCensoredName}
\n
${function(e){if(e.averageUserRating>=3){const t=Math.floor(e.averageUserRating),n=e.averageUserRating%1>=.25?1:0;return[{class:B,count:t},{class:U,count:n},{class:j,count:5-(t+n)}].reduce(((e,t)=>e+``.repeat(t.count)),"")}return""}(e)}
\n
${e.formattedPrice}
\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.${P}`),r.classList.add(L),r.innerHTML=n,document.body.appendChild(r),T.moduleTracking.externalLinkTracker("smartBanner"),Y.banner=r,Y.bannerName=t,Y.inited=!0,Y.banner=r,G()&&(o=setInterval(z,1e3)),r.querySelector(`.${D}`).addEventListener("click",(e=>{e.preventDefault(),function(){const e=new Date(Date.now()+2592e6);E($,"closed",e)}(),X(),o&&(clearInterval(o),o=null)})),r.querySelector(`.${P}`).addEventListener("click",(()=>{T.pageEvents.publish(T.pageEvents.SMART_BANNER_CLICKED,{type:q()})})),window.addEventListener("orientationchange",J),z(),d.logger.info("###### SMARTBANNER RENDERED"),Y.banner};Y.init=function(e){return d.logger.info("###### INIT SMARTBANNER",e),Y.initPromise||(Y.initPromise=Object(u.later)("BODY_READY").then((()=>Z(e)))),Y.initPromise};var Q=Y;const ee=/^https?:\/\/t\.co(\/.*)?$/.test(document.referrer),te=Object(f.getConfig)("molFeSmartBanner").then((e=>O.deviceData.isMobile&&ee?null:Q.init(e)));var ne=n(22),re=n.n(ne),oe=n(107);const ie={AU:"/auhome",GB:"/home",US:"/ushome"},ae=["sport"];let se=[];const ce=e=>Boolean(e.url&&e.imgUrl&&e.headline),le=(e,t)=>String(e.articleId)!==String(t),ue=e=>{const{articleId:t}=Object(S.getPageCriteria)();return le(e,t)&&ce(e)&&!Object(oe.isArticleInRead)(e.articleId)&&!se.includes(e.articleId)},de=async({useSimilarArticles:e=!1,topicGroup:t=null,paywalled:n=!1})=>{const{articleId:r,geo:o,channel:i}=Object(S.getPageCriteria)(),{topics:a}=Object(S.getPageMetadata)(),s=a&&a.length?"hasTopics":"noTopics";let c=`/api/mol-fe-feeds/v2/articles/rankedByChannelReferrer${ie[o]||ie.GB}`;const l=ae.includes(i);n?c="/api/mol-fe-feeds/v2/articles/rankedPaywalled":e?c=`/api/mol-fe-feeds/v2/articles/rankedSimilar/${r}/${s}${l?`/${i}`:""}`:t?c=`/api/mol-fe-feeds/v2/articles/rankedByTopicGroup/${encodeURIComponent(t)}`:l&&(c=`/api/mol-fe-feeds/v2/articles/rankedByChannel/${i}`);const u=await re.a.get(c);if(!u||!u.data||!u.data.articles)throw new Error("[mol-fe-related-replace] Invalid ranked articles response");const{articles:d}=u.data,f=d.filter((e=>e.url.startsWith(`/${i}`))),p=d.filter((e=>!e.url.startsWith(`/${i}`))),m=f.concat(p).filter(ue).slice(0,5);if(m.length<5&&(e||t)&&!n){const e=m.map((e=>e.articleId)),t=await de({topicGroup:null,useSimilarArticles:!1});for(let n=0;m.length<5&&nle(e,r)&&ce(e))).slice(0,5):m},fe="mol-fe-related-replace";let pe=!1;const me=()=>{const{renderPlatform:e}=Object(S.getPageMetadata)(),{articleStyle:t}=Object(S.getPageCriteria)();return"desktop"===e&&"extraWide"===t?5:3},he=e=>{e&&e.classList.contains("related-replace-placeholder")&&e.remove()},_e=({relatedElement:e,articles:t,instanceIndex:n=0,topicGroup:r=null,isInlinePaywall:o=!1})=>{const i=me();if(!e||!t||!t.length||t.length{const o=me(),i=document.createElement("div"),a=document.createElement("div");let s="related-replace"+(t>0?`-${t+1}`:"");a.classList.add("mol-fe-related-replace"),a.classList.add("ccox"),a.dataset.trackModule=s,5===o&&a.classList.add("related-replace-desktop-xwide"),"royals"===n&&i.classList.add("royal_wedding"),r&&(s="related-replace-paywall",i.classList.add("home"),i.classList.add("related-replace-paywall"));const c=e.slice(0,o).map((e=>(({article:e,trackId:t})=>{const{imgUrl:n,url:r,headline:o,viewCountTrending:i,isPaywalled:a}=e,s=`${r}?ico=${t}`,c=[];return a&&c.push(''),`\n \n \n \n \n `;var l})({article:e,trackId:s}))).join("");return a.innerHTML=`\n \n \n `,Array.from(a.children[1].children).forEach(((e,t)=>{e.addEventListener("click",(()=>{const n={clickUrl:e.href,position:t+1};Object(T.fireBidmaxTrackingEvent)("click",fe,n),T.pageEvents.publish(T.pageEvents.RELATED_REPLACE_CLICK,n)}))})),i.appendChild(a),new IntersectionObserver(((e,t)=>{for(const n of e)n.isIntersecting&&(pe||(Object(T.fireBidmaxTrackingEvent)("viewable",fe),T.pageEvents.publish(T.pageEvents.RELATED_REPLACE_VIEWABLE),pe=!0),t.unobserve(a))})).observe(a),i})({articles:t,instanceIndex:n,isInlinePaywall:o,topicGroup:r});var s;e.replaceWith(a),s=t.slice(0,i).map((e=>e.articleId)),se=se.concat(s)},ge=(e=null)=>{const t=document.querySelector('#mobile-content .scrollable-content > article, #page-container .article-text [itemprop="articleBody"]');if(!t)return null;const{renderPlatform:n}=Object(S.getPageMetadata)(),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;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},Ee=(e=null,t=null)=>{const n=t||ge(e);if(!n)return null;const r=document.createElement("div");return r.classList.add("related-replace-placeholder"),n.after(r),r},ve=(e,t,n=!1)=>{let r=0,o=t;for(let i=t;n?i>0:i=4)break}return o},ye=e=>{const t=(()=>{const{renderPlatform:e}=Object(S.getPageMetadata)(),{articleStyle:t,geo:n}=Object(S.getPageCriteria)(),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)},we=async({relatedElement:e,useSimilarArticles:t=!1,instanceIndex:n=0,topicGroup:r=null,isInlinePaywall:o=!1})=>{if("royals"===r&&1===n)return void ye(e);const i=await(async({useSimilarArticles:e=!1,topicGroup:t=null})=>{const n=[window.getIsPaywallEligible&&window.getIsPaywallEligible()?de({paywalled:!0}).catch((()=>[])):[]];n.unshift(de({topicGroup:t,useSimilarArticles:e}));const[r,o]=await Promise.all(n);if(!r.length)return o;const i=o.find((e=>e.articleId!==r[0].articleId));if(!o.length||!i)return r;const a=r.slice(1).filter((e=>e.articleId!==i.articleId));return[r[0],i,...a]})({topicGroup:r,useSimilarArticles:t});_e({articles:i,instanceIndex:n,isInlinePaywall:o,relatedElement:e,topicGroup:r})},be=["Mail Best","Mail Best US"],Oe=["sportsbets"],Ie=async()=>{try{const{articleType:e,pageType:t,channel:n,sponsored:r,subchannel:o}=Object(S.getPageCriteria)(),{domain:i,topics:a,publishedDate:s}=Object(S.getPageMetadata)();if("article"!==t||"feature"===e||"thisismoney"===i||"money"===n||"true"===r||!0===r)return;if(Oe.includes(o))return;if(a&&be.some((e=>a.includes(e))))return;await Object(u.later)("DOM_READY");const 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=ve(r,o,!1);return i>ve(r,o,!0)&&i{for(const i of r)if(i.isIntersecting)return we({instanceIndex:t,relatedElement:e,topicGroup:f,useSimilarArticles:n}),void o.unobserve(e)}),{rootMargin:"2000px"}).observe(e)}))}catch(e){d.logger.error("[mol-fe-related-replace] Error initialising ",e)}};try{Object(u.later)("PAGE_METADATA_SET",Ie)}catch(e){d.logger.error("Error initialising mol-fe-related-replace",e)}const Se={"remixd-player-complete":T.pageEvents.REMIXD_COMPLETE,"remixd-player-error":T.pageEvents.REMIXD_ERROR,"remixd-player-impression":T.pageEvents.REMIXD_IMPRESSION,"remixd-player-mute":T.pageEvents.REMIXD_MUTE,"remixd-player-pause":T.pageEvents.REMIXD_PAUSE,"remixd-player-play":T.pageEvents.REMIXD_PLAY},Ae=()=>{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=Se[n];o&&T.pageEvents.publish(o,{errorMessage:r})}))}catch(e){d.logger.error("Error initialising Remixd event listener",e)}};Ae();var Te,Ce,Le,Pe,Re,Ne=-1,Me=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Ne=t.timeStamp,e(t))}),!0)},De=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},ke=function(){var e=De();return e&&e.activationStart||0},xe=function(e,t){var n=De(),r="navigate";return Ne>=0?r="back-forward-cache":n&&(document.prerendering||ke()>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}},Be=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){}},Ue=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))}},je=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Fe=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},We=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},Ve=-1,Ge=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},Ke=function(e){"hidden"===document.visibilityState&&Ve>-1&&(Ve="visibilitychange"===e.type?e.timeStamp:0,$e())},He=function(){addEventListener("visibilitychange",Ke,!0),addEventListener("prerenderingchange",Ke,!0)},$e=function(){removeEventListener("visibilitychange",Ke,!0),removeEventListener("prerenderingchange",Ke,!0)},Ye=function(){return Ve<0&&(Ve=Ge(),He(),Me((function(){setTimeout((function(){Ve=Ge(),He()}),0)}))),{get firstHiddenTime(){return Ve}}},qe=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Xe=[1800,3e3],ze=function(e,t){t=t||{},qe((function(){var n,r=Ye(),o=xe("FCP"),i=Be("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=Be("layout-shift",a);s&&(n=Ue(e,r,Je,t.reportAllChanges),Fe((function(){a(s.takeRecords()),n(!0)})),Me((function(){o=0,r=xe("CLS",0),n=Ue(e,r,Je,t.reportAllChanges),je((function(){return n()}))})),setTimeout(n,0))})))},Qe={passive:!0,capture:!0},et=new Date,tt=function(e,t){Te||(Te=t,Ce=e,Le=new Date,ot(removeEventListener),nt())},nt=function(){if(Ce>=0&&Ce1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){tt(e,t),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,Qe),removeEventListener("pointercancel",r,Qe)};addEventListener("pointerup",n,Qe),addEventListener("pointercancel",r,Qe)}(t,e):tt(t,e)}},ot=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,rt,Qe)}))},it=[100,300],at=function(e,t){t=t||{},qe((function(){var n,r=Ye(),o=xe("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]};gt[r.id]=r,_t.push(r)}_t.sort((function(e,t){return t.latency-e.latency})),_t.splice(10).forEach((function(e){delete gt[e.id]}))}},vt=function(e,t){t=t||{},qe((function(){var n;ft();var r,o=xe("INP"),i=function(e){e.forEach((function(e){e.interactionId&&Et(e),"first-input"===e.entryType&&!_t.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&Et(e)}));var t,n=(t=Math.min(_t.length-1,Math.floor(ht()/50)),_t[t]);n&&n.latency!==o.value&&(o.value=n.latency,o.entries=n.entries,r())},a=Be("event",i,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=Ue(e,o,pt,t.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),Fe((function(){i(a.takeRecords()),o.value<0&&ht()>0&&(o.value=0,o.entries=[]),r(!0)})),Me((function(){_t=[],mt=dt(),o=xe("INP"),r=Ue(e,o,pt,t.reportAllChanges)})))}))},yt=[2500,4e3],wt={},bt=function(e,t){t=t||{},qe((function(){var n,r=Ye(),o=xe("LCP"),i=function(e){var t=e[e.length-1];t&&t.startTimeperformance.now())return;n.value=Math.max(i-ke(),0),n.entries=[o],r(!0),Me((function(){n=xe("TTFB",0),(r=Ue(e,n,Ot,t.reportAllChanges))(!0)}))}}))};const At=e=>{try{"adverts"in window&&"DM"in window&&(e=>{const t={...e,module:"webVitalsCls"};window.postMessage("__bidmax\n"+JSON.stringify(t),"*")})(e)}catch(e){}},Tt={CLS:null,FCP:null,FID:null,INP:null,LCP:null,TTFB:null},Ct={CLS:null,FCP:null,FID:null,INP:null,LCP:null,TTFB:null},Lt=["CLS","LCP"];let Pt=!1,Rt=!1;const Nt=({name:e,value:t})=>{Ct[e]=t,Rt||(!Pt&&Lt.includes(e)&&(Pt=!0,u.later.go("mol-fe-web-vitals-partial")),Tt[e]=t)},Mt=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 Dt=!1;const kt=({name:e,value:t,entries:n})=>{Nt({name:e,value:t});try{const e=n&&n[0]&&n[0].target;if(t&&t>=100&&!Dt&&e){Dt=!0;const t=`${e.parentNode?Mt(e.parentNode):"null"} > ${Mt(e)}`;At({event:"fidElement",fidElementSelector:t,fidValue:Ct.FID})}}catch(e){}};let xt=!1;const Bt=({name:e,value:t,entries:n})=>{Nt({name:e,value:t});try{const e=n&&n[0]&&n[0].target;if(t&&!xt&&e){xt=!0;const t=`${e.parentNode?Mt(e.parentNode):"null"} > ${Mt(e)}`;At({event:"inpElement",inpElementSelector:t,inpValue:Ct.INP})}}catch(e){}};let Ut=[];const jt=({name:e,value:t,entries:n})=>{Nt({name:e,value:t}),Ut=n};let Ft=0,Wt=0;const Vt=()=>{try{return window.location.hash||"none"}catch(e){return"none"}},Gt=()=>{if(!(Ft>=2))try{const e=.08;if(Ct.CLS&&Ct.CLS>e&&Ct.CLS>Wt&&Ct.CLS-Wt>.1){Wt=Ct.CLS;const e=.01;for(const t of Ut.filter((t=>t.value>=e&&!t.hadRecentInput))){const e=t.sources.slice(0,2).map((e=>Mt(e.node))).join(",");At({clsElementSelector:e,clsElementValue:t.value,clsHash:Vt(),clsSendCount:Ft,clsTotal:Ct.CLS,event:"clsElement"})}Ft++}}catch(e){}};let Kt=[];const Ht=({name:e,value:t,entries:n})=>{Nt({name:e,value:t}),Kt=n};let $t=0,Yt=0;const qt=()=>{if(!($t>=2))try{const e=2400;if(Ct.LCP&&Ct.LCP>e&&Ct.LCP>Yt&&Ct.LCP-Yt>1e3){Yt=Ct.LCP;const e=Kt[Kt.length-1];if(!e)return;const t=e.element&&Mt(e.element)||e.url||"unknown";At({event:"lcpElement",lcpElementSelector:t,lcpSendCount:$t,lcpValue:Ct.LCP}),$t++}}catch(e){}},Xt=()=>Tt,zt=()=>Ct,Jt={getCLS:Ze,getFCP:ze,getFID:at,getLCP:bt,getTTFB:St,onCLS:Ze,onFCP:ze,onFID:at,onINP:vt,onLCP:bt,onTTFB:St},Zt=()=>Kt,Qt=()=>Ut;(async()=>{try{Ze(jt,{reportAllChanges:!0}),at(kt,{reportAllChanges:!0}),bt(Ht,{reportAllChanges:!0}),vt(Bt,{reportAllChanges:!0}),St(Nt,{reportAllChanges:!0}),ze(Nt,{reportAllChanges:!0}),await Object(u.later)("DOM_READY"),setInterval(Gt,1e4),setInterval(qt,1e4),await(e=1e4,new Promise((t=>{setTimeout(t,e)}))),Rt=!0,u.later.go("mol-fe-web-vitals-standard")}catch(e){d.logger.error("Error initialising mol-fe-web-vitals",e)}var e})();const en=()=>document.querySelector('#mobile-content .scrollable-content > article, #page-container .article-text [itemprop="articleBody"]'),tn="mol-fe-article-truncation-",nn=new IntersectionObserver(((e,t)=>{for(const n of e)if(n.isIntersecting){const e=n.target;T.pageEvents.publish(T.pageEvents.ARTICLE_TRUNCATION_VIEWABLE),t.unobserve(e)}}),{threshold:.5});let rn=!1;const on=({nonInteraction:e=!1}={})=>{const t=en();if(!t||!t.classList.contains("article-truncated"))return;t.style.maxHeight="",t.classList.remove("article-truncated");const n=document.querySelector(".article-truncation-box");n&&(nn.unobserve(n),n.remove()),T.pageEvents.publish(T.pageEvents.ARTICLE_TRUNCATION_EXPAND),e||(rn=!0)},an=async()=>{const{renderPlatform:e}=Object(S.getPageMetadata)(),t="mobile"===e;try{if(t){const e=document.querySelector('#next-stories li[data-idx="1"] > a'),t=document.querySelector("#next-stories li > a");return e&&e.href||t&&t.href}{const e=await Object(f.getConfig)("molFePrevNextNavigation");return e&&e.nextArticle&&e.nextArticle.url}}catch(e){return null}},sn=({nonInteraction:e=!1}={})=>{const t=en();if(!t)return;if(rn&&e)return;const n=t.classList.contains("article-truncated"),{renderPlatform:r}=Object(S.getPageMetadata)(),o=(()=>{try{const e=en();if(!e)return null;const{renderPlatform:t}=Object(S.getPageMetadata)(),n=4500;let r=n;const o=Array.from(e.children),i=o.findIndex((e=>e.offsetTop>=r)),a=e.scrollHeight;if(!i)return null;let s=0;const c=o.slice(i);for(const e of c)if(e.matches("p, .mol-para-with-font")){s++;const t=e.offsetTop+Math.floor(e.offsetHeight/2);if(t+1e3<=a&&t<=n+2e3&&(r=t,s>=3))return r}if(s&&r+1e3<=a&&r<=n+2e3)return r}catch(e){}return null})()||4500;t.style.maxHeight=`${o}px`,t.classList.add("article-truncated");let i=document.querySelector(".article-truncation-box");if(!i){i=document.createElement("div"),i.classList.add("article-truncation-box"),i.innerHTML='
\n \n
';i.querySelector("[data-article-truncation-expand-button]").addEventListener("click",(()=>on())),t.appendChild(i),nn.observe(i),(async e=>{const{renderPlatform:t}=Object(S.getPageMetadata)(),n="mobile"===t,r=Object(I.getExperiments)();if(!r||!r.includes("articleTruncationReadNext"))return;const o=document.createElement("a"),i=await an();if(!i)return;o.classList.add("article-truncation-next-story__button"),o.innerHTML="Read Next Article >>",o.addEventListener("click",(()=>{T.pageEvents.publish(T.pageEvents.ARTICLE_TRUNCATION_READ_NEXT)})),o.href=i;const a=e.querySelector(".article-truncation-box__button-wrap");a.dataset.trackModule="article-truncation-read-next",a.appendChild(o),n&&setInterval((async()=>{const e=await an();e&&(o.href=e)}),2e3)})(i).catch((()=>{}))}n||(((e,t)=>{try{if(!("localStorage"in window))return;window.localStorage.setItem(`${tn}${e}`,JSON.stringify(t))}catch(e){}})("last",Date.now()),T.pageEvents.publish(T.pageEvents.ARTICLE_TRUNCATION_TRUNCATE))},cn=()=>{try{const{geo:e,articleType:t,pageType:n,sponsored:r,channel:o}=Object(S.getPageCriteria)(),{renderPlatform:i}=Object(S.getPageMetadata)();location.search.match(/debugSkipArticleTruncationGeoCheck=true/);return void 0}catch(e){d.logger.error("Error initialising mol-fe-article-truncation",e)}};try{Object(u.later)("DOM_READY",cn)}catch(e){d.logger.error("Error initialising mol-fe-article-truncation",e)}var ln=n(194);const un="mol-fe-paywall-",dn=(e,t)=>{try{"localStorage"in window&&window.localStorage.setItem(`${un}${e}`,JSON.stringify(t))}catch(e){}},fn=()=>"/snippet/money/investing/header.html"===location.pathname,pn=()=>{const{domain:e}=Object(S.getPageMetadata)();return"thisismoney"===e||fn()},mn={default:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/offer/109171/get-more-from-the-mail",production:"https://www.mailsubscriptions.co.uk/info/348361/get-more-from-the-mail"},GB:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/products/107245/read-more-see-more-enjoy-more",production:"https://www.mailsubscriptions.co.uk/info/357853/get-more-from-the-mail"},IE:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/offer/109873/get-more-from-the-mail",production:"https://www.mailsubscriptions.co.uk/info/357285/get-more-from-the-mail"}},hn={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"},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"},IE:{integration:"https://uat-dlv.nonprod-mailsubscriptions.gcpp.io/offer/109874/first-month-free-then-4.99",production:"https://www.mailsubscriptions.co.uk/info/357284/first-month-free-then-4.99"}},_n=()=>{const{environment:e}=Object(S.getPageMetadata)(),{geo:t}=Object(S.getPageCriteria)(),n=pn()?hn:mn,r=n[t]||n.default;return r[e]||r.production},gn=()=>pn()?"/money/mailplus/index.html":"/mailplus/index.html",En=({referringModule:e,referringPageType:t,returnUrl:n})=>{dn("return-url",n||`${location.origin}${gn()}`),dn("purchase-meta",{referringModule:e,referringPageType:t})},vn=e=>{const{pageType:t,channel:n,subchannel:r}=Object(S.getPageCriteria)();if("channel"!==t||n!==r||"home"!==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 o=`${_n()}?molclicksource=banner`,i=document.querySelector("[data-paywall-home-masthead]")||document.createElement("a");i.href=o,i.dataset.paywallHomeMasthead=!0,i.addEventListener("click",(()=>{T.pageEvents.publish(T.pageEvents.PAYWALL_MASTHEAD_SIGNUP_CLICK),En({referringModule:"masthead",referringPageType:"home"})})),e.appendChild(i)},yn=e=>{const t=window.getIsPaywallEligible&&window.getIsPaywallEligible(),{pageType:n,isPaywalled:r,channel:o,subchannel:i}=Object(S.getPageCriteria)(),a=pn(),s="channel"===n&&("mailplus"===o||"mailplus"===i||"mailplusmoney"===i);if(!("article"===n&&r)&&!s||!s&&!t)return;const c=a?"https://i.dailymail.co.uk/static/mol-fe/static/configs/mol-fe-paywall/mastheads/mailplus_article_masthead_tim.jpg":"https://i.dailymail.co.uk/static/mol-fe/static/configs/mol-fe-paywall/mastheads/mailplus_article_masthead_v2.png",l="cover",u=(()=>{const{pageType:e,channel:t,subchannel:n}=Object(S.getPageCriteria)();if("channel"===e&&("mailplus"===t||"mailplus"===n||"mailplusmoney"===n))return null;const r=gn(),o=document.querySelector("[data-paywall-article-masthead]")||document.createElement("a");return o.href=r,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="300px",o.addEventListener("click",(()=>{T.pageEvents.publish(T.pageEvents.PAYWALL_MASTHEAD_ARTICLE_CLICK)})),o})();u&&e.appendChild(u),e.style.backgroundImage=`url(${c})`,l&&(e.style.backgroundSize=l),e.classList.add("masthead-paywalled"),document.documentElement.classList.add(a?"has-mailplus-masthead-tim":"has-mailplus-masthead"),a||document.documentElement.classList.add("has-mailplus-theme")},wn=({isSelected:e=!1,topNav:t=!1}={})=>{const n=document.createElement("li");return n.classList.add("mailplus-nav"),n.innerHTML=`\n \n \n Mail+\n \n \n `,n},bn=({isSelected:e=!1,topNav:t=!1}={})=>{const n=document.createElement("li");return n.classList.add("mailplus-nav"),n.innerHTML=`\n \n Mail+\n \n `,n},On=()=>document.querySelector(".page-header .masthead"),In=async()=>{try{const e=pn();let t=On();if(t||await Object(u.later)("DOM_READY"),t=On(),!t)return;if(!(window.getIsPaywallEligible&&window.getIsPaywallEligible()))return void yn(t);vn(t),yn(t),e?(async()=>{const{pageType:e,isPaywalled:t,subchannel:n}=Object(S.getPageCriteria)(),r="article"===e&&t||"channel"===e&&"mailplusmoney"===n,o=document.querySelector(".page-header >.money.nav-secondary-container .nav-secondary ul.float-l"),i=o.querySelector("li:first-child a");i&&"Money Home"===i.textContent&&(i.textContent="Home"),o.appendChild(bn({isSelected:r,topNav:!0})),await Object(u.later)("DOM_READY");const a=document.querySelector(".footer .nav-secondary");if(a){const e=a.querySelector("li:first-child a");e&&"Money Home"===e.textContent&&(e.textContent="Home"),a.appendChild(bn({isSelected:r,topNav:!1}))}})():(async()=>{const{pageType:e,isPaywalled:t,channel:n,geo:r}=Object(S.getPageCriteria)(),o="article"===e&&t||"channel"===e&&"mailplus"===n,i=document.querySelector(".page-header .nav-primary"),a=document.querySelector(".page-header > .nav-secondary-container");if(o){const e=i.querySelector("span.selected"),t=i.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"),a){const e=a.querySelector("ul");e&&e.remove(),a.classList.add("mailplus")}}if("CA"===r){const e=i.querySelector('a[href="/puzzles/index.html"]'),t=e&&e.closest("li");t&&t.remove();const r=i.querySelector('a[href="/wellness-us/index.html"]'),o=r&&r.closest("li"),a=o&&o.querySelector("span"),s="podcasts"===n,c=o&&o.nextElementSibling.querySelector("a");o&&(r.innerHTML="Podcasts",r.setAttribute("href","/podcasts/index.html"),o.classList.remove("wellness"),o.classList.add("podcasts"),s&&(a.classList.remove("link-gr6ox","linkro-ccox"),a.classList.add("link-wocc","linkro-wocc"),a.classList.add("selected"),c&&c.classList.add("no-border")))}i.appendChild(wn({isSelected:o,topNav:!0})),await Object(u.later)("DOM_READY");const s=document.querySelector(".footer .nav-primary");if(s){if("CA"===r){const e=s.querySelector('a[href="/puzzles/index.html"]'),t=e&&e.closest("li");t&&t.remove();const r=s.querySelector('a[href="/wellness-us/index.html"]'),o=r&&r.closest("li"),i=o&&o.querySelector("span"),a="podcasts"===n,c=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"),c&&c.classList.add("no-border")))}s.appendChild(wn({isSelected:o,topNav:!1}))}})();const n=window.getIsPaywallSubscriber&&window.getIsPaywallSubscriber();await Object(u.later)("REFRESHED_PAYWALL_ENTITLEMENT");n!==(window.getIsPaywallSubscriber&&window.getIsPaywallSubscriber())&&vn(t)}catch(e){d.logger.error("Error initialising paywall masthead desktop",e)}},Sn=e=>{const t=window.getIsPaywallEligible&&window.getIsPaywallEligible(),{pageType:n,isPaywalled:r,channel:o,subchannel:i}=Object(S.getPageCriteria)(),a=pn(),s="channel"===n&&("mailplus"===o||"mailplus"===i||"mailplusmoney"===i);if(!("article"===n&&r)&&!s||!s&&!t)return;e.classList.add(a?"mailplus-menubar-tim":"mailplus-menubar"),a||document.documentElement.classList.add("has-mailplus-theme");const c=e.querySelector('[data-track-module*="masthead-channel"] span'),l=e.querySelector('[data-track-module*="masthead-channel"] a')||document.createElement("a");l.setAttribute("href",gn()),l.innerHTML="Mail+",l.classList.add("mailplus-channel-link"),c&&c.replaceWith(l),(()=>{const e=document.querySelector('meta[name="theme-color"]')||document.createElement("meta");e.setAttribute("name","theme-color"),e.setAttribute("content","#1e3264"),document.head.appendChild(e)})()},An=()=>document.querySelector("#mobile-content > header"),Tn=async()=>{try{let e=An();if(e||await Object(u.later)("DOM_READY"),e=An(),!e)return;if(!(window.getIsPaywallEligible&&window.getIsPaywallEligible()))return void Sn(e);Sn(e),(()=>{const e=document.querySelector("#nav"),t=document.createElement("li"),n=e.querySelector("li:first-child");pn()&&t.classList.add("full-width"),t.classList.add("mailplus-nav"),t.innerHTML=`\n \n \n Mail+\n \n \n `,n.after(t)})()}catch(e){d.logger.error("Error initialising paywall masthead mobile",e)}},Cn=async()=>{try{if(window.getPaywallPurchaseUrl=_n,fn())return await In(),void document.body.classList.add("mailplus-tim");await Object(u.later)("PAGE_METADATA_SET");const{renderPlatform:e}=Object(S.getPageMetadata)();"desktop"===e?await In():"mobile"===e&&await Tn(),pn()&&(await Object(u.later)("DOM_READY"),document.body.classList.add("mailplus-tim"))}catch(e){d.logger.error("Error initialising paywall masthead",e)}},Ln={getMailplusChannelUrl:gn,getPurchaseUrl:_n,setPaywallPurchaseMeta:En};Cn().catch((()=>{}));var Pn=n(23),Rn=n(96),Nn="notificationWrapper--2O3S5",Mn="notificationClose--3PvD8",Dn="notificationBody--2Lnye",kn="notificationBanner--3Ye_a",xn="notificationBreakingNews--2GwiK",Bn="notificationSecondWord--3hC1e",Un="notificationTitle--ksDjQ";const jn=()=>{const e=document.body.querySelectorAll(`.${Nn}`);if(e.length>0)for(const t of Array.from(e))document.body.removeChild(t)},Fn=(e,t,n)=>{jn();const r=`\n
\n
\n \n BREAKING NEWS\n \n
\n \n ${t.title}\n \n
\n
\n
`,o=setTimeout(jn,e),i=document.createElement("div");i.classList.add(Nn),i.innerHTML=r;const a=()=>{document.body.contains(i)&&(document.body.removeChild(i),clearTimeout(o))},s=i.querySelector(`.${Dn}`),c=i.querySelector(`.${Mn}`);s.onclick=()=>{window.open(t.clickThroughUrl,"_blank").focus(),n&&"function"==typeof n.onClick&&n.onClick(),a()},c.onclick=a,document.body.appendChild(i)};var Wn="prePrompt--1Aq77",Vn="prePromptWrapper--DFcqf",Gn="prePromptLogo--dtxr0",Kn="prePromptCloseBtn--1wm3v",Hn="prePromptMain--2a1p6",$n="prePromptBell--30MEY",Yn="prePromptText--ELZiV",qn="prePromptConfirmBtn--zqKKE";const Xn={femail:"Femail",health:"Health",money:"Money",news:"Breaking",royals:"Royal",sciencetech:"Science",shoppinguk:"Shopping",shoppingus:"Shopping",sport:"Sport",travel:"Travel",tvshowbiz:"Showbiz"},zn="pre-prompt",Jn=()=>{const e=document.getElementById(zn);e&&document.body.contains(e)&&document.body.removeChild(e)},Zn=(e,t)=>{if(document.getElementById(zn))return;const n=`Sign up to ${Xn[e]||"Breaking"} News notifications`,r=document.createElement("div");r.id=zn,r.classList.add(Wn),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(`.${Kn}`),i=r.querySelector(`.${qn}`);o&&o.addEventListener("click",(()=>{Jn(),t(!1)})),i&&i.addEventListener("click",(()=>{Jn(),t(!0)})),document.body.append(r)};var Qn=async()=>{const{webPush:{baseEndpoint:e}}=Object(S.getPageMetadata)();if(!window.hulk)try{await Object(w.loadScript)(`${e}v1/static/latest/mol-fe-web-push-browser-register/register.js`,{beforeCurrentScript:!0,defer:!0})}catch(e){d.logger.error("There was a problem attempting to loading register.js",e)}return window.hulk};var er=()=>{try{return decodeURIComponent(document.cookie.match(/s_(m|v|a|f)id\%3D(.+?)\%3B/)[2]).split("|")[0]}catch(e){d.logger.error("could not find Omniture visitor ID")}};var tr=(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))};var nr=({isMobile:e,isTablet:t}={})=>{switch(!0){case t:return"tablet";case e:return"mobile"}return"desktop"};var rr=async()=>{const{environment:e,webPush:{promptFrequency:t},syncBundleLocation:n}=Object(S.getPageMetadata)(),{isMobile:r,isTablet:o,channel:i,geo:a,subchannel:s}=Object(S.getPageCriteria)(),c=new URL(document.location).searchParams,l=i?[i]:[],u=s?[s]:[],d="push-notification"===(c&&c.get("ito"))?tr(l[0],u[0]):void 0,f=er(),p=f?[f]:[],m=!0;return{environment:e,metadata:{channels:l,geo:a,keywords:d,organisation:"mol",platform:nr({isMobile:r,isTablet:o}),profilingAllowed:m,subChannels:u,userAgent:navigator.userAgent,visitorIds:p},notificationMacros:{impression:[]},promptFrequency:t,swUrl:`${n}/sw.js`}};const or=e=>e.scrollTop||document.documentElement.scrollTop||document.body.scrollTop,ir=5e3;var ar=async()=>{try{const{webPush:e,articleId:t,contentType:n}=Object(S.getPageMetadata)(),{channel:r,isMobile:o,subchannel:i}=Object(S.getPageCriteria)(),{hostname:a,prePromptDelayTTL:s=ir,promptEnabled:c,pullNotificationEnabled:l,pullNotificationTTL:f=3e5,pullNotificationScrollThreshold:p}=e||{},{Register:m}=await Qn(),h=await rr();if(a&&location.hostname.includes(a)){const e=new m(h);if(e.on("error",d.logger.error),m.isWebPushSupported()&&(e.on("notification_click",(e=>T.pageEvents.publish(T.pageEvents.WEB_PUSH_NOTIFICATION_CLICK,e))),e.on("prompt_pre_prompt_impression",(e=>T.pageEvents.publish(T.pageEvents.WEB_PUSH_PRE_PROMPT_IMPRESSION,e))),e.on("prompt_pre_prompt_click",(e=>T.pageEvents.publish(T.pageEvents.WEB_PUSH_PRE_PROMPT_CLICK,e))),e.on("prompt_impression",(e=>T.pageEvents.publish(T.pageEvents.WEB_PUSH_PROMPT_IMPRESSION,e))),e.on("prompt_click",(e=>T.pageEvents.publish(T.pageEvents.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?Zn.bind(null,r):void 0)}),s)}!l||"home"===n&&r===i&&["home","ushome","auhome"].includes(r)||(e.on("pull_notification_click",(e=>T.pageEvents.publish(T.pageEvents.WEB_PULL_NOTIFICATION_CLICK,e))),await Object(u.later)("DOM_READY"),"number"==typeof p&&p>0&&await((e,t)=>{if(!e||"number"!=typeof e)throw new TypeError("missing or wrong required threshold number");return new Promise((n=>{if(or(t)>=e)return void n();const r=()=>{or(t)>=e&&(n(),t.removeEventListener("scroll",r))};t.addEventListener("scroll",r)}))})(p,document),await e.initPullNotifications({canRender:e=>"object"==typeof e&&(!e.assetId||e.assetId!==t),renderPullNotification:Fn.bind(null,f)}))}}catch(e){d.logger.error(`Error initializing web push: ${e}`)}};Object(u.later)("PAGE_METADATA_SET",ar);var sr=n(196)},function(e,t,n){"use strict";n.r(t),n.d(t,"showSpinner",(function(){return a})),n.d(t,"hideSpinner",(function(){return i})),n.d(t,"initLoadingSpinner",(function(){return c}));var r=n(1);const o="mol-fe-loading-spinner",i=()=>{const e=document.getElementById(o);e&&e.remove()},a=e=>{let t=document.getElementById(o);t||(t=document.createElement("div"),t.id=o,t.className=o,document.body.appendChild(t),"number"==typeof e&&setTimeout((()=>i()),e))},s=["travel","femail"],c=()=>{const{channel:e}=Object(r.getPageCriteria)();s.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-')&&a(3e3)}))}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"m",(function(){return l}));var r=n(0),o=n(1),i=n(3),a=n(2);n.d(t,"e",(function(){return a.later})),n.d(t,"a",(function(){return r.logger})),n.d(t,"h",(function(){return r.log}));var s=n(11);n.d(t,"f",(function(){return s.loadStyle})),n.d(t,"g",(function(){return s.loadDeferredImgs})),n.d(t,"i",(function(){return s.onDocReady})),n.d(t,"d",(function(){return o.getPageMetadata})),n.d(t,"k",(function(){return o.setPageMetadata})),n.d(t,"b",(function(){return i.nielsen})),n.d(t,"l",(function(){return i.ted})),n.d(t,"j",(function(){return i.pageEvents}));const{externalLinkTracker:c,trackSwipe:l}=i.moduleTracking,{pageEvents:u}=i;u.getPageMetadata=(...e)=>(r.logger.warn('"pageEvents.getPageMetadata" has been deprecated. Please use "DM.molFePageMetadata.getPageMetadata" instead'),o.getPageMetadata(...e))},,function(e,t,n){"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}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function i(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var n,o,a=[];for(o in"string"!=typeof t&&(t="?"),e)if(r.call(e,o)){if((n=e[o])||null!=n&&!isNaN(n)||(n=""),o=i(o),n=i(n),null===o||null===n)continue;a.push(o+"="+n)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,r={};t=n.exec(e);){var i=o(t[1]),a=o(t[2]);null===i||null===a||i in r||(r[i]=a)}return r}},function(e,t,n){},,function(e,t,n){"use strict";var r=n(2),o=n(0),i=n(35),a=n(51);const s=e=>{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}},c=(e,t,n)=>{const r=new URLSearchParams(e),o=((e,t)=>Boolean(e&&e.startsWith(t)))(t,n),i=o?"internal":"external",s=r.get("ico"),c=r.get("ito"),l=r.get("utm_source");if(s)return`${i}_ico_${s}`;if(c)return`${i}_ito_${c}`;if(l)return`${i}_${l}`;if(t){if(n&&o){return`${i}_${new URL(t).pathname}`}return`${i}_${Object(a.getHostname)(t)}`}return"direct"},l=(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:c(location.search,n,location.origin)};var r},{getConfig:u}=i.a;var d=n(1);Object(r.later)("DOM_READY",(async()=>{try{const e=Array.from(document.getElementsByTagName("a")).filter(s),t=await u();for(const n of e){const e=await l(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){o.logger.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}=Object(d.getPageMetadata)(),r=document.getElementById("reader-comments");if(!((window.location.hash&&window.location.hash.startsWith("#comments")||window.location.search&&window.location.search.match(/openWebLoggedIn/)||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){o.logger.error("Error initialising outbrain comments scroll fix",e)}})()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2),o=n(0),i=n(26);const a=()=>{Object(r.later)("PAGE_METADATA_SET",(()=>{try{const e=Object(i.getExperiments)();e&&e.length&&(window.molMVTest=(window.molMVTest?window.molMVTest+",":"")+e.join(","))}catch(e){o.logger.error("Error setting multivariant experiments to ads MVT",e)}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=()=>!1},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),o=n.n(r),i=n(3),a=n(1);let s=1;const c=()=>{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",c=t.querySelector("button").getAttribute("data-url"),l=Object(a.getPageMetadata)(),u=t.closest(".article").querySelector("a"),d=u.textContent,f=u.getAttribute("href").match(/\/(article|fb)-(\d+)\//)[2],p=o.a.get("social-share-platform");let m="";t.querySelector("button").hasAttribute("data-preferred-shared-network-enabled")&&("twitter"===p?m="twitter_preferred-":"facebook"===p&&(m="facebook_preferred-")),window.open(c,"share-article-"+r+"-"+s++,"resizable=1,scrollbars=1,status=1,width=1050,height=650"),"twitter"===n?p||o.a.set("social-share-platform",n,{path:"/"}):"facebook"===n&&o.a.set("social-share-platform",n,{path:"/"}),i.pageEvents.publish(i.pageEvents.SOCIAL_SHARE_CLICKED,{articleId:f,articleTitle:d,pageMetadata:l,placement:m+"home",site:n,type:n+"-type"})}}))}},function(e,t,n){"use strict";var r=n(2),o=n(1);Object(r.later)("DOM_READY",(()=>{const{geo:e=""}=Object(o.getPageCriteria)()||{},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)}))}))},function(e,t,n){"use strict";var r=n(2),o=n(0);Object(r.later)("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=>o.logger.error("There was an error loading scrollToTop extension",e)))},function(e,t,n){"use strict";var r=n(9),o=n(2),i=n(0);var a=function({cb:e,throwError:t=!1}){const n=typeof e;if("function"!==n){if(t)throw new Error(`onDocumentLoad: expected function, but received "${n}"`);return!1}return!0};var s=function(e){return a({cb:e,throwError:!0}),{isRemoved:!1,remove(){this.isRemoved=!0,e()}}};var c=function(e){let t,n,r,o,i;a({cb:e,throwError:!0});const c=function(r){clearInterval(t),clearTimeout(n),r&&(t=null,n=null,e(r))},l=function(e){c(),t=setInterval((()=>{window.innerWidth===r&&window.innerHeight===o?(i++,3===i&&c(e)):(r=window.innerWidth,o=window.innerHeight,i=0)}),100),n=setTimeout((()=>{c(e)}),1e3)},u=["resize",l],d=["orientationchange",l];return window.addEventListener(...u),window.addEventListener(...d),s((()=>{window.removeEventListener(...u),window.removeEventListener(...d)}))},l="more--tyQn_";var u=function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;let o=!1;r.open("GET",e),r.onreadystatechange=()=>{r.readyState>3&&(r.status>=200&&r.status<300?t(r):o||(o=!0,n(`Error in server response, status: ${r.status}`)))},r.onerror=()=>{o||(o=!0,n(`Error making request, status: ${r.status}`))},r.send()}))};var d=function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight};const f="data-id";var p=function({element:e,scrollCheckElement:t,fetchUrl:n}){let r,o,a,s;o=n,a=0;const p=function(e){let t;return()=>{clearTimeout(t),t=setTimeout((()=>e()),100)}}((()=>{if(r)return;const n=e.querySelector(`[${f}]:last-child`);if(!(n&&n.offsetTop>d()+t.scrollTop+1e3)){if(r=!0,!e.querySelector("."+l)){const t=document.createElement("a");t.className=l,t.href="#",e.appendChild(t)}u(o).then((t=>{const n=e.querySelector("."+l);n&&n.parentNode.removeChild(n);const i=Array.from(e.querySelectorAll(`[${f}]`)).map((e=>e.getAttribute(f))),a=document.createElement("div"),s=document.createDocumentFragment();return a.innerHTML=t.responseText,Array.from(a.querySelectorAll(`[${f}]`)).filter((e=>!i.includes(e.getAttribute(f)))).forEach((e=>s.appendChild(e))),e.appendChild(s),o=t.getResponseHeader("mol-scroll-next"),r=!1,null})).catch((t=>{++a<3?setTimeout((()=>{const t=e.querySelector("."+l);r=!1,p(),t&&t.parentNode.removeChild(t)}),1e3):(i.logger.error("Stopping molFeInfiniteScroll request attempts",t),o=null)})).then((()=>{if(!o&&s){const n=e.querySelector("."+l);n&&n.parentNode.removeChild(n),s.remove(),t.removeEventListener("scroll",p),s=null}return null})).catch((()=>{}))}}));s=c(p),t.addEventListener("scroll",p)};Promise.all([Object(r.getConfig)("molFeInfiniteScroll"),Object(o.later)("DOM_READY")]).then((([e={}])=>{const{selector:t,scrollCheckSelector:n,fetchUrl:r}=e;if(!r)return console.warning("molFeInfiniteScroll : fetchUrl is required"),null;const o=t&&document.body.querySelector(t)||document.body.querySelector(".infinite-scroll");if(o){const e=n&&document.body.querySelector(n)||window;return p({element:o,fetchUrl:r,scrollCheckElement:e})}return console.warning(`molFeInfiniteScroll : can't find ${o}`),null})).catch((e=>i.logger.error(e.message)))},function(e,t,n){"use strict";var r=n(2),o=n(0),i=n(1),a=n(47),s=n.n(a);const c="mol-fe-came-from-mol-session",l=()=>(e=>{try{if(!("localStorage"in window))return null;const t=window.localStorage.getItem(e);if(t)return JSON.parse(t)}catch(e){}return null})(c),u=e=>((e,t)=>{try{if(!("localStorage"in window))return;window.localStorage.setItem(e,JSON.stringify(t))}catch(e){}})(c,e),d=()=>{const{renderPlatform:e}=Object(i.getPageMetadata)(),{subchannel:t}=Object(i.getPageCriteria)();return`tim_${e}_${t}`},f=(e,t)=>{const n=new s.a(e,!0),r=n.query||{};return r.ico=t,n.set("query",r),n.href},p=/dailymail(int)?\.(co\.uk|com)/,m=async e=>{const{renderPlatform:t}=Object(i.getPageMetadata)(),n=document.querySelector(".page-header .masthead, .tim-mobile header");window.timCameFromMolUrl=(e=>{try{return f(e,d())}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 Object(r.later)("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=document.createElement("li"),o=f(e,d()),{geo:a}=Object(i.getPageCriteria)(),s=a&&["us","au"].includes(a.toLowerCase());r.classList.add("back-to-mol-button"),r.innerHTML=``,s&&r.classList.add("back-to-mol-dm"),n.after(r)})(e):"desktop"===t&&(e=>{const t=document.querySelector(".page-header .masthead");if(!t)return;const n=document.createElement("li"),r=f(e,d()),{geo:o}=Object(i.getPageCriteria)(),a=o&&["us","au"].includes(o.toLowerCase());n.classList.add("back-to-mol-button"),n.innerHTML=``,a&&n.classList.add("back-to-mol-dm"),t.append(n)})(e)},h=()=>{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 s.a(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(h,1e3)},_=()=>{const{domain:e}=Object(i.getPageMetadata)();"thisismoney"!==e&&h()},g=()=>{const{domain:e}=Object(i.getPageMetadata)();if("thisismoney"!==e)return;const t=l(),{updated:n,referrers:r,origin:o}=t||{},a=r&&document.referrer&&r.includes(document.referrer),c=r&&r.includes(location.href),d=o&&document.referrer&&document.referrer===o;if((a||c||d)&&n&&Date.now()-n<18e5){m(o);const e=c?r:[...r,location.href].slice(-50);return void u({...t,referrers:e,updated:Date.now()})}const f=new s.a(window.location.href,!0),h=f&&f.query&&f.query.molReferrerUrl||document.referrer,_=h?new s.a(h,!0):null,g=f&&f.query?f.query.ico:null;_&&_.hostname.match(p)&&g&&(g.startsWith("mol_")||g.startsWith("topics_pagination_")||g.startsWith("authors_pagination_"))&&(u({origin:h,referrers:[location.href],updated:Date.now()}),m(h))};try{Object(r.later)("PAGE_METADATA_SET",g),Object(r.later)("DOM_READY",_)}catch(e){o.logger.error("Error initialising came-from-mol",e)}},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,function(e,t,n){n(108),e.exports=n(225)},,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"molFeArticleRead",(function(){return j.molFeArticleRead})),n.d(t,"molFeAsync",(function(){return j.molFeAsync})),n.d(t,"molFeClientLogger",(function(){return j.molFeClientLogger})),n.d(t,"molFeComponents",(function(){return j.molFeComponents})),n.d(t,"molFeCookieReinforcer",(function(){return j.molFeCookieReinforcer})),n.d(t,"molFeDomHelpers",(function(){return j.molFeDomHelpers})),n.d(t,"molFeLoadingSpinner",(function(){return j.molFeLoadingSpinner})),n.d(t,"molFeMiniLodash",(function(){return j.molFeMiniLodash})),n.d(t,"molFeMobileutils",(function(){return j.molFeMobileutils})),n.d(t,"molFeMultivariant",(function(){return j.molFeMultivariant})),n.d(t,"molFePageMetadata",(function(){return j.molFePageMetadata})),n.d(t,"molFeRelatedReplace",(function(){return j.molFeRelatedReplace})),n.d(t,"molFeRemixd",(function(){return j.molFeRemixd})),n.d(t,"molFeSegmentation",(function(){return j.molFeSegmentation})),n.d(t,"molFeSmartBanner",(function(){return j.molFeSmartBanner})),n.d(t,"molFeTracking",(function(){return j.molFeTracking})),n.d(t,"molFeWebVitals",(function(){return j.molFeWebVitals})),n.d(t,"molFeArticleTruncation",(function(){return j.molFeArticleTruncation})),n.d(t,"molFePaywallMasthead",(function(){return j.molFePaywallMasthead})),n.d(t,"molFeLocalStorage",(function(){return j.molFeLocalStorage})),n.d(t,"molFeXpModuleDataUtils",(function(){return j.molFeXpModuleDataUtils})),n.d(t,"externalLinkTracker",(function(){return j.externalLinkTracker})),n.d(t,"trackSwipe",(function(){return j.trackSwipe})),n.d(t,"later",(function(){return j.later})),n.d(t,"Log",(function(){return j.Log})),n.d(t,"log",(function(){return j.log})),n.d(t,"loadCSS",(function(){return j.loadCSS})),n.d(t,"loadDeferredImgs",(function(){return j.loadDeferredImgs})),n.d(t,"onDocReady",(function(){return j.onDocReady})),n.d(t,"getPageMetadata",(function(){return j.getPageMetadata})),n.d(t,"setPageMetadata",(function(){return j.setPageMetadata})),n.d(t,"Nielsen60",(function(){return j.Nielsen60})),n.d(t,"ted",(function(){return j.ted})),n.d(t,"pageEvents",(function(){return j.pageEvents}));var r=n(2),o=n(0);let i=null,a=null,s=null;const c=e=>{if(clearTimeout(i),i=null,s&&(s.style.display="none",s=null),a=e.currentTarget,!a)return void o.logger.error("No currentTarget on menuHover with event: ",e);a.children[0].classList.add("link-ccox");const t=a.querySelector(".nav-secondary-container");t?t.style.display="block":o.logger.error("No secondary nav container on menuHover for currentTarget: ",a)},l=e=>{a=e.currentTarget,a?(a.children[0].classList.remove("link-ccox"),s=a.querySelector(".nav-secondary-container"),s?i=setTimeout((()=>{s.style.display="none",s=null,a=null}),500):o.logger.error("No secondary nav container on menuUnHover for currentTarget: ",a)):o.logger.error("No currentTarget on menuUnHover")};n(200);Object(r.later)("DOM_READY",(()=>{const e=document.querySelector("div.page-header");if(window.DM.isLoggedIn){const t=e.querySelectorAll("ul[data-logout-comp]"),n=e.querySelectorAll("ul[data-login-comp]");t.forEach((e=>{e.style.display="block"})),n.forEach((e=>{e.style.display="none"}))}const t=e.querySelector("ul.nav-primary");if(!t)return;t.querySelectorAll("li[data-has-menu-on-hover]").forEach((e=>{e.addEventListener("mouseover",c,!1),e.addEventListener("mouseout",l,!1),e.addEventListener("touchstart",c,!1),e.addEventListener("touchend",l,!1)}))}));n(208),n(210),n(106),n(211),n(212),n(209);var u=n(1),d=n(107),f=n(22),p=n.n(f);const m="AU",h={AU:"/auhome",GB:"/home",US:"/ushome"},_=async e=>{try{const t=e&&"string"==typeof e?(e=>`/api/mol-fe-feeds/v2/articles/rankedPaywalled/channel/${e}/withXpModules/true`)(e):"/api/mol-fe-feeds/v2/articles/rankedPaywalled/withXpModules/true",n=await p.a.get(t);if(!n||!n.data||!n.data.articles)return[];const{articles:r}=n.data,o=r.filter((e=>!Object(d.isArticleInRead)(e.articleId)));return o.length>=15?o:r}catch(e){o.logger.error("Error fetching paywalled articles for autopuff",e)}return[]},g=async()=>{const{articleId:e,geo:t}=Object(u.getPageCriteria)();let n="GB";t===m||"NZ"===t?n=m:"US"!==t&&"CA"!==t||(n="US");const r=`/api/mol-fe-feeds/v2/articles/rankedByChannel/sport/geo/${n}/period/30/size/150`,o=await p.a.get(r);if(!o||!o.data||!o.data.articles)throw new Error("[mol-fe-auto-puff] Invalid sports ranked articles response");const{articles:i}=o.data;return i.filter((n=>!Object(d.isArticleInRead)(n.articleId)&&n.articleId!==e&&!((e,t)=>t.subChannel&&"AFL"===t.subChannel&&e!==m)(t,n)))},E=async()=>{const{articleId:e,geo:t}=Object(u.getPageCriteria)(),{domain:n,environment:r}=Object(u.getPageMetadata)(),o=`${"thisismoney"===n?`https://www.dailymail${"production"===r?"":"int"}.co.uk`:""}/api/mol-fe-feeds/v2/articles/rankedByChannelReferrer${`${h[t]||h.GB}/withXpModules/true`}`,i=await p.a.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.filter((t=>!Object(d.isArticleInRead)(t.articleId)&&t.articleId!==e)).slice(0,50)},v=(e,{headlineMaxLength:t=160,useSocialHeadline:n=!1}={},r)=>{const{domain:o,environment:i,renderPlatform:a}=Object(u.getPageMetadata)(),{channel:s}=Object(u.getPageCriteria)(),c=r?document.createElement("li",{is:"ad-marker-li"}):document.createElement("li");r&&(c.dataset.adMarkerGroup="puff-list"),c.dataset.autoPuffItem=!0,Array.isArray(e.xpModulesUsed)&&e.xpModulesUsed.some((e=>e.startsWith("mol-fe-xpmodule-video-hero")))&&c.classList.add("video-led");let l=n?e.headline:e.fullHeadline||e.headline;l.length>t&&(l=l.substring(0,t)+"...");let d=e.url;if("money"===e.channel&&"thisismoney"!==o){d=`https://www.thisismoney${"integration"===i?"int":""}.co.uk${d}?ico=${`mol_${a}_${s}`}`}if("money"!==e.channel&&"thisismoney"===o){d=`https://www.dailymail${"integration"===i?"int":""}.co.uk${d}?ico=${`tim_autopuff_${a}_${s}`}`}return c.innerHTML=`\n \n \n \n \n \n ${e.isPaywalled?'':""}${l}\n \n \n \n `,e.isPaywalled&&(c.dataset.isPaywalled=!0),c},y=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 w=!1;const b={sport:"STARS OF SPORT"},O=(e,t)=>{if(!w){w=!0;try{e.dataset.trackModule=e.dataset.trackModule.replace(/\^puff/,"^autopuff"),e.parentNode.classList.remove("femail"),e.parentNode.classList.remove("travel"),e.parentNode.classList.add(t||"home"),e.parentNode.dataset.channelColor=t||"home",e.querySelector("h3").innerHTML=t&&b[t]||"TOP STORIES";const n=document.querySelectorAll(".puff ul")[1];n&&n.parentNode.parentNode.classList.contains("tvshowbiz")&&(n.parentNode.parentNode.classList.remove("tvshowbiz"),n.parentNode.parentNode.classList.add("femail"),n.parentNode.parentNode.dataset.channelColor="femail",n.parentNode.querySelector("h3").innerHTML="DON'T MISS")}catch(e){}}},I=e=>{const t=e.cloneNode(!0);try{const e=t.querySelector("img");e.dataset.src&&(e.loading="lazy",e.src=e.dataset.src,delete e.dataset.src)}catch(e){}return t},S=["news","property","health","sciencetech","travel","sport"],A=["property"],T=async()=>{try{const{articleStyle:e,channel:t,pageType:n,subchannel:o}=Object(u.getPageCriteria)(),{renderPlatform:i,domain:a}=Object(u.getPageMetadata)();if("article"!==n||"desktop"!==i||"wide"!==e)return;if("thisismoney"===a){if("moneycars"!==o)return;if(!document.referrer||!document.referrer.match(/^https:\/\/(www|a|b)\d?\.dailymail(int)?\.co\.uk/i))return}else if(!S.includes(t)&&!A.includes(o))return;const s=window.getIsPaywallEligible&&window.getIsPaywallEligible();let c;c="sport"===t?[g(),s?_(t):[]]:[E(),s?_():[]],c.push(Object(r.later)("DOM_READY"));const[l,d]=await Promise.all(c);if(!l||!l.length)return;((e,t=[],n)=>{if(!e||!e.length)return;const r=Array.from(document.querySelectorAll(".puff ul li:not([data-is-sponsored]):not(.exclusive)")).filter((e=>!e.closest(".royal_wedding"))).filter((e=>e&&e.children&&e.children[0]&&"A"===e.children[0].tagName));if(!r.length)return;const o=Array.from(document.querySelectorAll(".puff ul li[data-is-sponsored],.puff ul li.exclusive")).map(y).filter(Boolean),i=e.slice().filter((e=>!o.includes(e.articleId))),a=i.map((e=>e.articleId)),s=r.map(y).filter(Boolean),c=[],l=t.filter((e=>!o.includes(e.articleId))).filter((e=>!a.includes(e.articleId)));let u=1;for(const e of r){const t=(u-3)%4==0&&i.length>0&&l.length>0?l.shift():i.shift(),o=y(e),d=t&&Number(t.articleId);if(!e.dataset.autoPuffReorder)if(t&&d!==o){const i=v(t);if(!w){const t=e.closest(".puff");O(t,n)}if(s.includes(d)){const n=r.find((e=>e.querySelector("a").getAttribute("href")===t.url));if(n){const t=I(n);n.dataset.autoPuffReorderSource=!0,t.dataset.autoPuffReorderTarget=!0,e.dataset.autoPuffReorderSource||a.includes(o)||c.push(e),e.replaceWith(t)}}else e.dataset.autoPuffReorderSource||a.includes(o)||c.push(e),e.replaceWith(i)}else if(c.length&&!t){const t=c.shift();t.dataset.autoPuffMoved=!0,e.dataset.autoPuffReorderSource||c.push(e),e.replaceWith(t)}u++}})(l,d,"sport"===t?t:null)}catch(e){o.logger.error("Error initialising mol-fe-auto-puff",e)}},C=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`,{domain:o,environment:i}=Object(u.getPageMetadata)(),a=`${"thisismoney"===o?`https://www.dailymail${"production"===i?"":"int"}.co.uk`:""}${r}`,s=await p.a.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)))},L=[{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"}],P=async()=>{try{const{environment:e,renderPlatform:t}=Object(u.getPageMetadata)(),{pageType:n}=Object(u.getPageCriteria)();if("desktop"!==t)return;for(const{puffSelectorsByEnv:t,topic:r}of L){const o=t[e]||t.production,i=Array.from(document.querySelectorAll(o.join(",")));let a=[],s=1,c=await C({iteration:s,topic:r});a=a.concat(c.map((e=>e.articleId)));let l=0;for(const e of i){const t=e.closest(".beta"),o=t.parentNode.querySelector(".alpha"),i=Array.from(e.querySelectorAll(0===l?"ul li:not([data-is-sponsored]):not(.exclusive)":"ul li")).filter((e=>e&&e.children&&e.children[0]&&"A"===e.children[0].tagName)),u=o?o.offsetHeight-t.offsetHeight:0;let d=Math.min(Math.ceil(u/120)+i.length,1e3);for("article"===n&&(d=Math.max(d,200));d>c.length;){s++;const e=await C({exclude:a,iteration:s,topic:r});if(!e||!e.length||s>10)break;a=a.concat(e.map((e=>e.articleId))),c=c.concat(e)}if(i.length>d)for(let e=i.length-1;e>=d;e--)i[e].remove();let f=!0,p=0;for(;d>0;){const r=c.shift();if(i[p]){const e=v(r,{headlineMaxLength:90,useSocialHeadline:!0},!1);i[p].replaceWith(e)}else if("article"===n||t.offsetHeight{try{await Object(r.later)("PAGE_METADATA_SET");const{pageType:e,channel:t,subchannel:n,geo:o}=Object(u.getPageCriteria)(),{environment:i}=Object(u.getPageMetadata)();if("channel"!==e||t!==n||location.pathname.startsWith("/registration"))return;const a=window.getIsPaywallEligible&&window.getIsPaywallEligible();if(a&&"home"===t)return;const s=document.querySelector(".page-header .masthead");if(!s)return;let c=null,l=null,d="masthead",f="400px",p="masthead",m=null,h=null;const _="_blank";if(["GB","US"].includes(o)&&"home"===t){const e=`https://i.dailymail.co.uk/static/mol-fe/static/configs/mol-fe-mailplus-masthead${"integration"===i?"-int":""}/`;c="https://www.mailplus.co.uk/newspaper?utm_source=mailonline&utm_medium=banner&utm_campaign=homepage",l=`${e}/mailplus_masthead_uk.png`,d="mailplus masthead",f="430px",p="mailplus",m="nofollow noopener",h="500px 91px","US"===o&&(c="https://www.mailplus.co.uk/newspaper?utm_source=mailonline&utm_medium=banner&utm_campaign=homepage_us",l=`${e}/mailplus_masthead_us.png`,d="mailplus us masthead",p="mailplus_us",h="496px 91px")}if(!c||!l)return;const g=document.createElement("a");g.href=c,_&&(g.target=_),g.style.position="absolute",g.style.zIndex=10,g.style.top="0px",g.style.right="0px",g.style.height="91px",g.style.width=f,d&&(g.dataset.trackingInnerText=d),m&&(g.rel=m),p&&g.addEventListener("click",(()=>{B.pageEvents.publish(B.pageEvents.MASTHEAD_CLICK,{mastheadName:p})})),s.appendChild(g),s.style.backgroundImage=`url(${l})`,h&&(s.style.backgroundSize=h)}catch(e){}})(),Object(k.a)();try{Object(U.b)();Object(U.a)()||document.documentElement.classList.add("paywall-ineligible")}catch(e){}}]); //# sourceMappingURL=desktop.js.map