/*! For license information please see articleDefer.js.LICENSE.txt */ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@mol-fe/mol-fe-sync-bundle").molFeClientLogger,require("@mol-fe/mol-fe-sync-bundle").molFeTracking,require("@mol-fe/mol-fe-sync-bundle").molFePageMetadata,require("@mol-fe/mol-fe-sync-bundle").molFeAsync,require("@mol-fe/mol-fe-sync-bundle").molFeMobileutils,require("@mol-fe/mol-fe-sync-bundle").molFeDomHelpers,require("@mol-fe/mol-fe-sync-bundle").molFeMiniLodash,require("@mol-fe/mol-fe-sync-bundle").molFeComponents);else if("function"==typeof define&&define.amd)define([,,,,,,,],t);else{var n="object"==typeof exports?t(require("@mol-fe/mol-fe-sync-bundle").molFeClientLogger,require("@mol-fe/mol-fe-sync-bundle").molFeTracking,require("@mol-fe/mol-fe-sync-bundle").molFePageMetadata,require("@mol-fe/mol-fe-sync-bundle").molFeAsync,require("@mol-fe/mol-fe-sync-bundle").molFeMobileutils,require("@mol-fe/mol-fe-sync-bundle").molFeDomHelpers,require("@mol-fe/mol-fe-sync-bundle").molFeMiniLodash,require("@mol-fe/mol-fe-sync-bundle").molFeComponents):t(e.DM.molFeClientLogger,e.DM.molFeTracking,e.DM.molFePageMetadata,e.DM.molFeAsync,e.DM.molFeMobileutils,e.DM.molFeDomHelpers,e.DM.molFeMiniLodash,e.DM.molFeComponents);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,(function(__WEBPACK_EXTERNAL_MODULE__1__,__WEBPACK_EXTERNAL_MODULE__2__,__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__6__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__31__,__WEBPACK_EXTERNAL_MODULE__51__){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="https://scripts.dailymail.co.uk/static/mol-fe/static/mol-fe-async-bundle/11.0.1/",n(n.s=339)}([function(e,t,n){"use strict";e.exports=n(66)},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__1__},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__2__},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__3__},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"a",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return b}));var r=n(7),o=n.n(r),i=n(2),a=n(3);const s=(()=>{try{try{const e=document.querySelector('link[rel="canonical"]');if(e&&e.href){return new URL(e.href).origin}}catch(e){}return`${location.protocol}//${location.host.replace("dailymail.com","dailymail.co.uk")}`}catch(e){return"https://www.dailymail.co.uk"}})(),l=(e,t)=>`${t||""}${Object.keys(e).filter((t=>e[t])).map((t=>`${t}=${encodeURIComponent(e[t])}`)).join("&")}`,c=(e,t)=>["resizable=1","scrollbars=1","status=1",`width=${e}`,`height=${t}`,"top="+(window.outerHeight-t)/2,"left="+(window.outerWidth-e)/2].join(","),u=(e,t,n)=>{i.pageEvents.publish(i.pageEvents.SOCIAL_SHARE_CLICKED,Object.assign({},n,{pageMetadata:Object(a.getPageMetadata)(),placement:t,site:e}))},d=(e,t,n,r)=>document.querySelector(".mol-ios-app")||document.querySelector(".mol-native-ios")?window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.socialShare&&window.webkit.messageHandlers.socialShare.postMessage?window.webkit.messageHandlers.socialShare.postMessage({data:{features:n,target:t,type:r&&r.network||"",url:r&&r.url||e},scope:"mol-fe-social"}):null:window.open(e,t,n),p=(e,t)=>{const n=c(1050,650);d(l(t,e),"",n)},f=e=>{if(e.hasAttribute("data-preferred-shared-network-enabled")){if("twitter"===o.a.get("social-share-platform"))return"twitter_preferred-";if("facebook"===o.a.get("social-share-platform"))return"facebook_preferred-"}return""},m=(e,{origin:t,position:n})=>t?`${e}_share_${t}-${n}`:`${e}_share-${n}`,h=()=>{const e=document.querySelector('meta[property="og:url"]');return e&&e.getAttribute("content")},g=()=>{const e=document.querySelector('meta[property="og:title"]');return e&&e.getAttribute("content")},y=e=>e.find((e=>Boolean(e))),v=({forcedUrl:e}={})=>y([e,h(),window.location.href]),b=({forcedTitle:e}={})=>y([e,g(),document.title])},function(e,t,n){e.exports=n(70)()},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__6__},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),!0,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={};e1){if("number"==typeof(i=e({path:"/"},r.defaults,i)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}i.expires=i.expires?i.expires.toUTCString():"";try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(e){}o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var l="";for(var c in i)i[c]&&(l+="; "+c,!0!==i[c]&&(l+="="+i[c]));return document.cookie=t+"="+o+l}t||(a={});for(var u=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,p=0;p0;)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(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:E,isFileList:g}},function(e,t,n){e.exports=n(122)},function(e,t,n){"use strict";var r=n(72),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n{const n=Object.assign({},t),r=c[t.type]||"",{url:o,via:i}=e;let{text:a}=e;const s=i&&!1!==n.via,l=a.match(u)||[];let d=a.length,p=140-(s?` via @${i}`:"").length-(o?24:0)-2*r.length;for(const e of l)d+=23-e.length;if(pencodeURIComponent(d(e,t)),f=document.querySelector('meta[property="twitter:title"]'),m=e=>e&&!e.forcedUrl&&(e=>{const t="object"==typeof e&&null!==e?e:JSON.parse(e);return Object(s.b)({hashtags:t.hashtags,related:t.related,text:d({text:t.text,url:t.url,via:t.via},{type:t.type})},l)})(e)||(e=>{const t=document.querySelector('meta[property="og:url"]'),n=e&&e.forcedUrl||window.articleShortUrl||t&&t.getAttribute("content")||window.location.href;return Object(s.b)({related:`${window.twitterVia},MailOnline`,text:d({text:f&&f.getAttribute("content")||"",url:n,via:window.twitterVia||"MailOnline"})},l)})(e),h=e=>{try{const t="object"==typeof e&&null!==e?e:JSON.parse(e);return"object"==typeof t&&null!==t?t.url:void 0}catch(e){return}},g=(e,t,n)=>{o.a.get("social-share-platform")||o.a.set("social-share-platform","twitter",{path:"/"}),Object(s.h)("twitter",e,Object.assign({},n)),Object(s.j)(m(t),"",Object(s.g)(575,400),{network:"twitter",url:h(t)})},y=e=>{Array.from(document.querySelectorAll(".twitter-follow-author")).forEach((t=>{t.addEventListener("click",(n=>{const r=window.top.outerHeight/2+window.top.screenY-285,o=window.top.outerWidth/2+window.top.screenX-275;n.preventDefault(),window.twttr&&n.stopPropagation(),Object(s.j)(t.href,"_blank",`top=${r},left=${o},width=550,height=570`),i.pageEvents.publish(i.pageEvents.SOCIAL_SHARE_CLICKED,{channel:e,link:t.baseURI,pageMetadata:Object(a.getPageMetadata)(),placement:"author",site:"twitter-follow",type:"twitter-follow"})}))}))},v=(e,t,n,r,o,i)=>{const a=JSON.stringify({text:(t.length>105?t.substring(0,101)+"...?":t)+o,url:decodeURIComponent(r)+"#"+e,via:n});g(i,a)}},function(e,t,n){"use strict";n.r(t),n.d(t,"buildMailtoLink",(function(){return a})),n.d(t,"getMailto",(function(){return s})),n.d(t,"showEmailButtons",(function(){return l})),n.d(t,"listenForEmailButtonClicks",(function(){return c})),n.d(t,"emailArticle",(function(){return u}));var r=n(10),o=n(4);const i=(e,t)=>"article"===window.PageCriteria.pageType?(()=>{const e=document.querySelector('link[rel="canonical"]'),t=document.querySelector('meta[property="mol:headline"]'),n=document.querySelector('meta[name="description"]'),r=document.querySelector("title");return{headline:t&&t.content||r.innerText,previewText:n&&n.content,url:e&&e.href||window.location.href}})():((e,t)=>{const n=e.closest(".article-preview");if(!n)return null;const r=n.querySelector("h2,.headline"),o=n.querySelector(".article-preview-description > p"),i=n.querySelector("a"),a=r&&r.innerText&&r.innerText.trim(),s=o&&o.innerText&&o.innerText.trim();let l=t||i&&i.href;return l.match(/^https?:\/\//)||(l=`https://${window.location.host}`+l),{headline:a,previewText:s,url:l}})(e,t),a=(e,t,n,r,o,i="")=>{const a=`email_share_article-${t}`,s=`${a}_most-read-articles`,l=window.mostReadForEmailShare,c=`${o}?ito=${a}${i}`,u=`${"video-lead"===t?"Watch":"Read"} this: ${n}`;let d=c;return"email-plain-text"===e?(d=`${n}\n\n${r}\n\n${c}`,l&&l.length&&(d+="\n\n\nMost Read Articles:\n\n"+l.map((e=>`${e.headline}\n${e.url}?ito=${s}`)).join("\n\n"))):"email-html"===e&&(d=`${n}\n\n${r}\n\nRead full story`,l&&l.length&&(d+="\n\n\nMost Read Articles:\n\n"+l.map((e=>`${e.headline}`)).join("\n\n"))),`mailto:?subject=${encodeURIComponent(u)}&body=${encodeURIComponent(d)}`},s=(e,t,n,r)=>{const o="video-lead"===n?((e,t)=>{const n=e.closest(".video-lead-info");if(!n)return null;const r=n.querySelector(".video-headline"),o=n.querySelector(".video-description"),i=r.querySelector("a"),a=r&&r.innerText&&r.innerText.trim().replace(/^Video: /,""),s=o&&o.innerText&&o.innerText.trim();let l=i&&i.href||t;return l.match(/^https?:\/\//)||(l=`https://${window.location.host}`+l),{headline:a,previewText:s,url:l}})(t,r):i(t,r);if(!o)return null;const{headline:s,previewText:l,url:c}=o;return a(e,n,s,l,c)},l=e=>{const t=e.querySelectorAll('.email[data-target^="email-"]'),n=e=>{Array.from(t).forEach((t=>{const n=t.getAttribute("data-target");t.style.display=n===e?"":"none"}))};Object(r.isWindows)()?n("email-default"):Object(r.isIPhone)()?n("email-html"):n("email-plain-text")},c=()=>{document.addEventListener("click",(e=>{const t=e.target&&e.target.closest('.email[data-target^="email-"]'),n=e.target&&e.target.closest(".social[data-location]");if(!t)return;e.preventDefault();const r=t.getAttribute("data-target"),o=n&&n.getAttribute("data-location"),i=n&&n.getAttribute("data-url"),a=s(r,t,o,i);a&&window.location.replace(a)}))},u=e=>{Object(o.h)("email",e)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"h",(function(){return E})),n.d(t,"i",(function(){return T})),n.d(t,"g",(function(){return k}));var r=n(3);const o=()=>{const e=document.querySelector('meta[name="keywords"]');if(e&&e.content)return e.content;const{channel:t}=Object(r.getPageMetadata)();return t},i=()=>{const e=document.querySelector('link[rel="canonical"]');return e?e.href:location.href},a="conversation",s={integration:"sp_IAjfVigC",production:"sp_jhHPoiRK"},l=()=>{const{environment:e}=Object(r.getPageMetadata)(),t=document.createElement("script"),n=s[e]||s.integration;return t.src=`https://launcher.spot.im/spot/${n}`,t.dataset.spotimModule="spotim-launcher",t},c=({messagesCount:e=null,module:t})=>{const{articleId:n}=Object(r.getPageMetadata)(),{readerComments:i}=Object(r.getPageCriteria)(),s=document.createElement("div");return s.dataset.articleTags=o(),s.dataset.postId=n,s.dataset.spotimModule=a,"R"===i&&(s.dataset.readOnly=!0),t&&(s.dataset.module=t),e&&(s.dataset.messagesCount=e),s},u=({articleId:e,messagesCount:t,module:n,postUrl:r})=>{const o=document.createElement("div");return o.dataset.messagesCount=String(t),o.dataset.module=n,o.dataset.postId=e,o.dataset.postUrl=r||i(),o.dataset.spotimModule=a,o},d=e=>{const{environment:t}=Object(r.getPageMetadata)();return`https://open-api.spot.im/v1/messages-count?spot_id=${s[t]||s.integration}&posts_ids=${e}`};var p=n(1),f=n(14),m=n.n(f);const h="mol-fe-openweb-comments-pairing";let g=!1;const y=async(e,t)=>{try{const n=await m.a.post("/registration/p/openweb/register-user",{codeA:e},{timeout:6e3,withCredentials:!0}),{codeB:r}=n.data;t(r)}catch(e){p.logger.error("Error spotim reg handshake",e)}},v=async()=>{window.SPOTIM&&window.SPOTIM.logout&&await window.SPOTIM.logout()},b=e=>{const t=(()=>{try{const e=window.localStorage.getItem("SPOTIM_CURRENT_USER"),t=e&&JSON.parse(e);return t&&t.data&&t.data.id||null}catch(e){return null}})(),n=(()=>{try{const e=window.localStorage.getItem(h),{dmUserId:t,spotImUserId:n}=e&&JSON.parse(e);return{dmUserId:t,spotImUserId:n}}catch(e){return null}})();return!!n&&(e&&n.dmUserId!==e||t&&n.spotImUserId!==t)},w=()=>{const e=`/registration/logout.html?targetUrl=${encodeURIComponent(location.href)}`;location.href=e},E=async(e=!1)=>{if(!e&&g)return"started";g=!0;if(!await new Promise((async e=>{for(let t=0;t<5;t++){if(window.SPOTIM&&window.SPOTIM.startSSO)return void e(!0);await new Promise((e=>setTimeout((()=>{e()}),1500)))}e(!1)})))return"error";if(!window.DM.isLoggedIn||!window.DM.userId)return p.logger.info("Not starting spotim SSO - not logged in"),await v(),"guest";const t=window.DM.userId;b(t)&&(p.logger.info("Users do not match storage - logout SPOTIM"),await v()),p.logger.info("Starting spotim SSO");try{const e=await window.SPOTIM.startSSO(y);return((e,t)=>{try{window.localStorage.setItem(h,JSON.stringify({dmUserId:t,spotImUserId:e}))}catch(e){}})(e.id,t),p.logger.info("Logged in spotim",e),document.addEventListener("spot-im-user-logout",w),"success"}catch(e){p.logger.error("Error logging in spotim",e)}return"fail"};var S=n(2);const C=[{id:"spot-im-clicked-delete-message",value:S.pageEvents.OPENWEB_DELETE_MESSAGE},{id:"spot-im-clicked-edit-message",value:S.pageEvents.OPENWEB_EDIT_MESSAGE},{id:"spot-im-conversation-loaded",value:S.pageEvents.OPENWEB_IMPRESSION},{id:"spot-im-conversation-viewed",value:S.pageEvents.OPENWEB_VIEWABLE},{id:"spot-im-current-user-sent-message-failed",value:S.pageEvents.OPENWEB_SEND_FAIL},{id:"spot-im-current-user-sent-message-succeed",value:S.pageEvents.OPENWEB_SEND_SUCCESS},{id:"spot-im-login-start",value:S.pageEvents.OPENWEB_LOGIN_START},{id:"spot-im-post-login",value:S.pageEvents.OPENWEB_POST_LOGIN_SUCCESS},{id:"spot-im-sort-by-drop-down",value:S.pageEvents.OPENWEB_SORT_OPEN},{id:"spot-im-user-down-vote-click",value:S.pageEvents.OPENWEB_DOWNVOTE},{id:"spot-im-user-up-vote-click",value:S.pageEvents.OPENWEB_UPVOTE}],x=e=>e&&e.target&&e.target.dataset&&e.target.dataset.module?e.target.dataset.module:null,T=()=>{document.addEventListener("spot-im-sort-by-select",(e=>{const t=e&&e.detail&&e.detail.sortedBy,n=x(e);S.pageEvents.publish(S.pageEvents.PAGE_COMMENT_TAB_SWAPPED,Object(r.getPageMetadata)({contentType:"commenttab",moduleType:n,tab:t})),S.pageEvents.publish(S.pageEvents.OPENWEB_SORT_SELECT,{label:t,moduleType:n})})),document.addEventListener("spot-im-share-type",(e=>{const t=e&&e.detail&&e.detail.type;S.pageEvents.publish(S.pageEvents.OPENWEB_SHARE_TYPE,{label:t})})),C.forEach((({id:e,value:t})=>{document.addEventListener(e,(e=>S.pageEvents.publish(t,{moduleType:x(e)})))}))},k=e=>{const{type:t,...n}=e;switch(t){case"error":S.pageEvents.publish(S.pageEvents.OPENWEB_LOAD_ERROR,n);break;case"load":S.pageEvents.publish(S.pageEvents.OPENWEB_LOAD_TIME,n);break;case"profile":S.pageEvents.publish(S.pageEvents.OPENWEB_OPEN_PROFILE,n);break;default:p.logger.warn("sendMetric: unexpectedly received",e)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"FACEBOOK_SHARE_ITO_CODE",(function(){return s})),n.d(t,"postToFB",(function(){return u})),n.d(t,"postPollToFb",(function(){return d}));var r=n(7),o=n.n(r),i=n(1),a=n(4);const s="facebook_share_article",l=(e,t="")=>{const n=document.querySelector('meta[property="og:url"]');if(!e||e.forcedUrl){const r=e&&e.forcedUrl||n&&n.getAttribute("content")||window.url||window.location.href;try{const e=new URL(r);return e.searchParams.has("ito")||e.searchParams.append("ito",`${s}-${t}`),`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`}catch(e){return i.logger.error("Facebook share: error converting url to URL object",e),`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(r)}`}}try{const t=Object.assign({},(()=>{const e=document.querySelector('meta[property="fb:app_id"]');return{app_id:e&&e.getAttribute("content"),caption:a.c,link:window.url,picture:"https://i.dailymail.co.uk/i/furniture/comments/articles/m_logo.png",redirect_uri:"https://i.dailymail.co.uk/i/pix/facebook/close.html"}})(),"object"==typeof e&&null!==e?e:JSON.parse(e));return Object(a.b)(t,"https://www.facebook.com/dialog/feed?")}catch(e){throw i.logger.error("Facebook share: unable to parse JSON",e),e}},c=e=>{try{const t="object"==typeof e&&null!==e?e:JSON.parse(e);return"object"==typeof t&&null!==t?t.link:void 0}catch(e){return}},u=(e,t,n)=>{o.a.set("social-share-platform","facebook",{path:"/"}),Object(a.h)("facebook",e,Object.assign({},n)),Object(a.j)(l(t,e),"",Object(a.g)(600,745),{network:"facebook",url:c(t)})},d=(e,t,n,r,o,i)=>{const s=document.querySelector('meta[property="og:url"]'),l=s&&s.getAttribute("content")||window.url||location.href,c=[`https://www.facebook.com/dialog/feed?app_id=${encodeURIComponent(t)}`,`link=${encodeURIComponent(`${a.c}${location.pathname}#${e}`)}`,`redirect_uri=${encodeURIComponent("https://i.dailymail.co.uk/i/pix/facebook/close.html")}`,`name=${encodeURIComponent(n)}`,`description=${encodeURIComponent(o)}`,`picture=${encodeURIComponent(r)}`,`u=${l}`].join("&");Object(a.h)("facebook",i),Object(a.j)(c,"",Object(a.g)(1e3,500))}},function(e,t,n){"use strict";n.r(t),n.d(t,"postToPinterest",(function(){return E})),n.d(t,"postPollToPinterest",(function(){return S}));var r=n(4);const o="//www.pinterest.com/pin/create/button/",i=e=>e&&e.type||"article",a=e=>{const t=document.querySelector(`meta[property="${e}"]`);return t?t.getAttribute("content"):null},s=e=>a("og:url")||e&&e.url||window.url||window.location.href,l=e=>e.url,c={article:s,comment:e=>e.commentData.shortUrl.trim()||s(),email:s,factbox:l,fff:l,image:s,poll:l,text:s},u=e=>`url=${encodeURIComponent(e&&e.forcedUrl||c[i(e)](e))}`,d=()=>a("og:image")||document.querySelector(".image-wrap img").getAttribute("src"),p=e=>e.media||"",f={article:d,comment:e=>`https://i.dailymail.co.uk/i/furniture/comments/articles/${s(e).includes("/money/")?"tim":"m"}_logo.png`,email:p,factbox:p,fff:p,image:p,poll:p,text:d},m=e=>`media=${encodeURIComponent(f[i(e)](e))}`,h=e=>e.description,g=e=>`${e.caption} ${e.description}`,y={article:()=>a("og:title"),comment:e=>{const t=e.commentData.commentBody?e.commentData.commentBody.trim():"",n=e.commentData.commenterName.trim()||"";return`${t}${n?` by ${","===name.substring(n.length-1,n.length)?n.substring(0,n.length-1):n}`:""}`},email:h,factbox:g,fff:h,image:h,poll:h,text:g},v=e=>`description=${encodeURIComponent(e&&e.forcedDescription||y[i(e)](e))}`,b=e=>{Object(r.j)(`${o}?${u(e)}&${v(e)}&${m(e)}`,"",Object(r.g)(800,320))},w={article:b,comment:e=>{e.commentData.pinterestWindow.location=`${o}?${u(e)}&${v(e)}&${m(e)}`},email:b,factbox:b,fff:b,image:b,poll:b,text:b},E=(e,t,n)=>{w[i(t)](t),"fff"!==i(t)&&Object(r.h)("pinterest",e,Object.assign({},n))},S=(e,t,n,o)=>{const i={description:n,media:t,type:"poll",url:`${r.c}${location.pathname}#${e}`};E(o,i)}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t{Array.from(e.querySelectorAll(".whatsapp")).forEach((e=>{e.addEventListener("click",(()=>{location.href=`https://api.whatsapp.com/send/?text=${encodeURIComponent(e.getAttribute("data-text"))}`}))}))};const i=({placement:e,shareObject:t})=>{const n=`${Object(r.f)(t)}?ito=${Object(r.a)("whatsapp",e)}`,o=`${Object(r.e)(t)} ${n}`;Object(r.i)("https://api.whatsapp.com/send/?",{text:o}),Object(r.h)("whatsapp",e.position)}},function(e,t,n){"use strict";n.r(t),n.d(t,"truncateText",(function(){return i})),n.d(t,"truncateTextSelector",(function(){return a})),n.d(t,"addResizeTruncateListener",(function(){return s}));const r="data-is-text-truncated",o="data-original-html",i=e=>{if(e.getAttribute(r)?e.innerHTML=e.getAttribute(o):(e.setAttribute(r,"true"),e.setAttribute(o,e.innerHTML)),e.scrollHeight>e.offsetHeight){const t=getComputedStyle(e),n=(e=>{const t=document.createElement("canvas").getContext("2d");return t.font=e,t})((e=>{const{fontFamily:t,fontSize:n,fontStyle:r,fontVariant:o,fontWeight:i,lineHeight:a}=e;return`${r} ${o} ${i} ${n}/${a} ${t}`})(t)),r=(e=>{const{paddingLeft:t,paddingRight:n,width:r}=e;return parseFloat(r)-(parseFloat(t)||0)-(parseFloat(n)||0)})(t),i=[],a=Math.floor((e=>{const{height:t,paddingBottom:n,paddingTop:r}=e;return parseFloat(t)-(parseFloat(r)||0)-(parseFloat(n)||0)})(t)/(e=>parseFloat(e.lineHeight))(t)),s=(e.getAttribute(o)||"").split(" "),l=(e,t)=>n.measureText(`${e.join(" ")}${t}`).width{t.endsWith("li span")||Array.from(e.querySelectorAll(t)).forEach(i)},s=(e,t)=>{const n=()=>{a(e,t)};let r;window.addEventListener("resize",(()=>{r&&cancelAnimationFrame(r),r=requestAnimationFrame(n)})),window.addEventListener("orientationchange",n)}},function(e,t,n){var r;!function(o,i){"use strict";var a=function(e,t){return new a.Instance(e,t||{})};a.VERSION="1.0.11",a.defaults={stop_browser_behavior:{userSelect:"none",touchAction:"pan-y",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},a.HAS_POINTEREVENTS=o.navigator.pointerEnabled||o.navigator.msPointerEnabled,a.HAS_TOUCHEVENTS="ontouchstart"in o,a.MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android|silk/i,a.NO_MOUSEEVENTS=a.HAS_TOUCHEVENTS&&o.navigator.userAgent.match(a.MOBILE_REGEX),a.EVENT_TYPES={},a.UPDATE_VELOCITY_INTERVAL=16,a.DOCUMENT=o.document;var s=a.DIRECTION_DOWN="down",l=a.DIRECTION_LEFT="left",c=a.DIRECTION_UP="up",u=a.DIRECTION_RIGHT="right",d=a.POINTER_MOUSE="mouse",p=a.POINTER_TOUCH="touch",f=a.POINTER_PEN="pen",m=a.EVENT_START="start",h=a.EVENT_MOVE="move",g=a.EVENT_END="end";a.plugins=a.plugins||{},a.gestures=a.gestures||{},a.READY=!1;var y=a.utils={extend:function(e,t,n){for(var r in t)e[r]!==i&&n||(e[r]=t[r]);return e},each:function(e,t,n){var r,o;if("forEach"in e)e.forEach(t,n);else if(e.length!==i){for(r=-1;o=e[++r];)if(!1===t.call(n,o,r,e))return}else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))return},inStr:function(e,t){return e.indexOf(t)>-1},hasParent:function(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1},getCenter:function(e){var t=[],n=[],r=[],o=[],i=Math.min,a=Math.max;return 1===e.length?{pageX:e[0].pageX,pageY:e[0].pageY,clientX:e[0].clientX,clientY:e[0].clientY}:(y.each(e,(function(e){t.push(e.pageX),n.push(e.pageY),r.push(e.clientX),o.push(e.clientY)})),{pageX:(i.apply(Math,t)+a.apply(Math,t))/2,pageY:(i.apply(Math,n)+a.apply(Math,n))/2,clientX:(i.apply(Math,r)+a.apply(Math,r))/2,clientY:(i.apply(Math,o)+a.apply(Math,o))/2})},getVelocity:function(e,t,n){return{x:Math.abs(t/e)||0,y:Math.abs(n/e)||0}},getAngle:function(e,t){var n=t.clientX-e.clientX,r=t.clientY-e.clientY;return 180*Math.atan2(r,n)/Math.PI},getDirection:function(e,t){return Math.abs(e.clientX-t.clientX)>=Math.abs(e.clientY-t.clientY)?e.clientX-t.clientX>0?l:u:e.clientY-t.clientY>0?c:s},getDistance:function(e,t){var n=t.clientX-e.clientX,r=t.clientY-e.clientY;return Math.sqrt(n*n+r*r)},getScale:function(e,t){return e.length>=2&&t.length>=2?this.getDistance(t[0],t[1])/this.getDistance(e[0],e[1]):1},getRotation:function(e,t){return e.length>=2&&t.length>=2?this.getAngle(t[1],t[0])-this.getAngle(e[1],e[0]):0},isVertical:function(e){return e==c||e==s},toggleDefaultBehavior:function(e,t,n){if(t&&e&&e.style){y.each(["webkit","moz","Moz","ms","o",""],(function(r){y.each(t,(function(t,o){r&&(o=r+o.substring(0,1).toUpperCase()+o.substring(1)),o in e.style&&(e.style[o]=!n&&t)}))}));var r=function(){return!1};"none"==t.userSelect&&(e.onselectstart=!n&&r),"none"==t.userDrag&&(e.ondragstart=!n&&r)}}};a.Instance=function(e,t){var n=this;return a.READY||(E.determineEventTypes(),y.each(a.gestures,(function(e){C.register(e)})),E.onTouch(a.DOCUMENT,h,C.detect),E.onTouch(a.DOCUMENT,g,C.detect),a.READY=!0),this.element=e,this.enabled=!0,this.options=y.extend(y.extend({},a.defaults),t||{}),this.options.stop_browser_behavior&&y.toggleDefaultBehavior(this.element,this.options.stop_browser_behavior,!1),this.eventStartHandler=E.onTouch(e,m,(function(e){n.enabled&&C.startDetect(n,e)})),this.eventHandlers=[],this},a.Instance.prototype={on:function(e,t){var n=e.split(" ");return y.each(n,(function(e){this.element.addEventListener(e,t,!1),this.eventHandlers.push({gesture:e,handler:t})}),this),this},off:function(e,t){var n,r,o=e.split(" ");return y.each(o,(function(e){for(this.element.removeEventListener(e,t,!1),n=-1;r=this.eventHandlers[++n];)r.gesture===e&&r.handler===t&&this.eventHandlers.splice(n,1)}),this),this},trigger:function(e,t){t||(t={});var n=a.DOCUMENT.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t;var r=this.element;return y.hasParent(t.target,r)&&(r=t.target),r.dispatchEvent(n),this},enable:function(e){return this.enabled=e,this},dispose:function(){var e,t;for(this.options.stop_browser_behavior&&y.toggleDefaultBehavior(this.element,this.options.stop_browser_behavior,!0),e=-1;t=this.eventHandlers[++e];)this.element.removeEventListener(t.gesture,t.handler,!1);return this.eventHandlers=[],E.unbindDom(this.element,a.EVENT_TYPES[m],this.eventStartHandler),null}};var v=null,b=!1,w=!1,E=a.event={bindDom:function(e,t,n){var r=t.split(" ");y.each(r,(function(t){e.addEventListener(t,n,!1)}))},unbindDom:function(e,t,n){var r=t.split(" ");y.each(r,(function(t){e.removeEventListener(t,n,!1)}))},onTouch:function(e,t,n){var r=this,o=function(o){var i=o.type.toLowerCase();if(!y.inStr(i,"mouse")||!w){y.inStr(i,"touch")||y.inStr(i,"pointerdown")||y.inStr(i,"mouse")&&1===o.which?b=!0:y.inStr(i,"mouse")&&!o.which&&(b=!1),(y.inStr(i,"touch")||y.inStr(i,"pointer"))&&(w=!0);var s=0;b&&(a.HAS_POINTEREVENTS&&t!=g?s=S.updatePointer(t,o):y.inStr(i,"touch")?s=o.touches.length:w||(s=y.inStr(i,"up")?0:1),s>0&&t==g?t=h:s||(t=g),(s||null===v)&&(v=o),n.call(C,r.collectEventData(e,t,r.getTouchList(v,t),o)),a.HAS_POINTEREVENTS&&t==g&&(s=S.updatePointer(t,o))),s||(v=null,b=!1,w=!1,S.reset())}};return this.bindDom(e,a.EVENT_TYPES[t],o),o},determineEventTypes:function(){var e;e=a.HAS_POINTEREVENTS?S.getEvents():a.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],a.EVENT_TYPES[m]=e[0],a.EVENT_TYPES[h]=e[1],a.EVENT_TYPES[g]=e[2]},getTouchList:function(e){return a.HAS_POINTEREVENTS?S.getTouchList():e.touches?e.touches:(e.identifier=1,[e])},collectEventData:function(e,t,n,r){var o=p;return(y.inStr(r.type,"mouse")||S.matchType(d,r))&&(o=d),{center:y.getCenter(n),timeStamp:Date.now(),target:r.target,touches:n,eventType:t,pointerType:o,srcEvent:r,preventDefault:function(){var e=this.srcEvent;e.preventManipulation&&e.preventManipulation(),e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return C.stopDetect()}}}},S=a.PointerEvent={pointers:{},getTouchList:function(){var e=[];return y.each(this.pointers,(function(t){e.push(t)})),e},updatePointer:function(e,t){return e==g?delete this.pointers[t.pointerId]:(t.identifier=t.pointerId,this.pointers[t.pointerId]=t),Object.keys(this.pointers).length},matchType:function(e,t){if(!t.pointerType)return!1;var n=t.pointerType,r={};return r[d]=n===d,r[p]=n===p,r[f]=n===f,r[e]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}},C=a.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(e,t){this.current||(this.stopped=!1,this.current={inst:e,startEvent:y.extend({},t),lastEvent:!1,lastVelocityEvent:!1,velocity:!1,name:""},this.detect(t))},detect:function(e){if(this.current&&!this.stopped){e=this.extendEventData(e);var t=this.current.inst,n=t.options;return y.each(this.gestures,(function(r){if(!this.stopped&&!1!==n[r.name]&&!1!==t.enabled&&!1===r.handler.call(r,e,t))return this.stopDetect(),!1}),this),this.current&&(this.current.lastEvent=e),e.eventType==g&&!e.touches.length-1&&this.stopDetect(),e}},stopDetect:function(){this.previous=y.extend({},this.current),this.current=null,this.stopped=!0},getVelocityData:function(e,t,n,r){var o=this.current,i=o.lastVelocityEvent,s=o.velocity;i&&e.timeStamp-i.timeStamp>a.UPDATE_VELOCITY_INTERVAL?(s=y.getVelocity(e.timeStamp-i.timeStamp,e.center.clientX-i.center.clientX,e.center.clientY-i.center.clientY),o.lastVelocityEvent=e):o.velocity||(s=y.getVelocity(t,n,r),o.lastVelocityEvent=e),o.velocity=s,e.velocityX=s.x,e.velocityY=s.y},getInterimData:function(e){var t,n,r=this.current.lastEvent;e.eventType==g?(t=r&&r.interimAngle,n=r&&r.interimDirection):(t=r&&y.getAngle(r.center,e.center),n=r&&y.getDirection(r.center,e.center)),e.interimAngle=t,e.interimDirection=n},extendEventData:function(e){var t=this.current.startEvent;e.touches.length==t.touches.length&&e.touches!==t.touches||(t.touches=[],y.each(e.touches,(function(e){t.touches.push(y.extend({},e))})));var n=e.timeStamp-t.timeStamp,r=e.center.clientX-t.center.clientX,o=e.center.clientY-t.center.clientY;return this.getVelocityData(e,n,r,o),this.getInterimData(e),y.extend(e,{startEvent:t,deltaTime:n,deltaX:r,deltaY:o,distance:y.getDistance(t.center,e.center),angle:y.getAngle(t.center,e.center),direction:y.getDirection(t.center,e.center),scale:y.getScale(t.touches,e.touches),rotation:y.getRotation(t.touches,e.touches)}),e},register:function(e){var t=e.defaults||{};return t[e.name]===i&&(t[e.name]=!0),y.extend(a.defaults,t,!0),e.index=e.index||1e3,this.gestures.push(e),this.gestures.sort((function(e,t){return e.indext.index?1:0})),this.gestures}};a.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,correct_for_drag_min_distance:!0,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1,drag_lock_min_distance:25},triggered:!1,handler:function(e,t){var n=C.current;if(n.name!=this.name&&this.triggered)return t.trigger(this.name+"end",e),void(this.triggered=!1);if(!(t.options.drag_max_touches>0&&e.touches.length>t.options.drag_max_touches))switch(e.eventType){case m:this.triggered=!1;break;case h:if(e.distance0)){var o=Math.abs(t.options.drag_min_distance/e.distance);r.pageX+=e.deltaX*o,r.pageY+=e.deltaY*o,r.clientX+=e.deltaX*o,r.clientY+=e.deltaY*o,e=C.extendEventData(e)}(n.lastEvent.drag_locked_to_axis||t.options.drag_lock_to_axis&&t.options.drag_lock_min_distance<=e.distance)&&(e.drag_locked_to_axis=!0);var i=n.lastEvent.direction;e.drag_locked_to_axis&&i!==e.direction&&(y.isVertical(i)?e.direction=e.deltaY<0?c:s:e.direction=e.deltaX<0?l:u),this.triggered||(t.trigger(this.name+"start",e),this.triggered=!0),t.trigger(this.name,e),t.trigger(this.name+e.direction,e);var a=y.isVertical(e.direction);(t.options.drag_block_vertical&&a||t.options.drag_block_horizontal&&!a)&&e.preventDefault();break;case g:this.triggered&&t.trigger(this.name+"end",e),this.triggered=!1}}},a.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:2},timer:null,handler:function(e,t){switch(e.eventType){case m:clearTimeout(this.timer),C.current.name=this.name,this.timer=setTimeout((function(){"hold"==C.current.name&&t.trigger("hold",e)}),t.options.hold_timeout);break;case h:e.distance>t.options.hold_threshold&&clearTimeout(this.timer);break;case g:clearTimeout(this.timer)}}},a.gestures.Release={name:"release",index:1/0,handler:function(e,t){e.eventType==g&&t.trigger(this.name,e)}},a.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_min_touches:1,swipe_max_touches:1,swipe_velocity:.7},handler:function(e,t){if(e.eventType==g){if(e.touches.lengtht.options.swipe_max_touches)return;(e.velocityX>t.options.swipe_velocity||e.velocityY>t.options.swipe_velocity)&&(t.trigger(this.name,e),t.trigger(this.name+e.direction,e))}}},a.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},has_moved:!1,handler:function(e,t){var n,r,o;e.eventType==m?this.has_moved=!1:e.eventType!=h||this.moved?e.eventType==g&&"touchcancel"!=e.srcEvent.type&&e.deltaTimet.options.tap_max_distance}},a.gestures.Touch={name:"touch",index:-1/0,defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(e,t){t.options.prevent_mouseevents&&e.pointerType==d?e.stopDetect():(t.options.prevent_default&&e.preventDefault(),e.eventType==m&&t.trigger(this.name,e))}},a.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1,transform_within_instance:!1},triggered:!1,handler:function(e,t){if(C.current.name!=this.name&&this.triggered)return t.trigger(this.name+"end",e),void(this.triggered=!1);if(!(e.touches.length<2)){if(t.options.transform_always_block&&e.preventDefault(),t.options.transform_within_instance)for(var n=-1;e.touches[++n];)if(!y.hasParent(e.touches[n].target,t.element))return;switch(e.eventType){case m:this.triggered=!1;break;case h:var r=Math.abs(1-e.scale),o=Math.abs(e.rotation);if(rt.options.transform_min_rotation&&t.trigger("rotate",e),r>t.options.transform_min_scale&&(t.trigger("pinch",e),t.trigger("pinch"+(e.scale<1?"in":"out"),e));break;case g:this.triggered&&t.trigger(this.name+"end",e),this.triggered=!1}}}},(r=function(){return a}.call(t,n,t,e))===i||(e.exports=r)}(window)},function(e,t,n){"use strict";var r=n(13);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,s,l){var c=Object.create(i);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),o.call(c,e.message,t,n,a,s),c.name=e.name,l&&Object.assign(c,l),c},e.exports=o},function(e,t,n){"use strict";var r=n(146),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n{const e=document.querySelectorAll("[data-preferred-shared-network-enabled]").length>0;let t;try{t=(e=>{const t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null})("social-share-platform")}catch(e){t=""}return e&&"twitter"===t?361:310},b=()=>navigator.share&&document.querySelector("div.scrollable-content").offsetWidth>=v(),w=async(e,t,n)=>{if(navigator.share)try{const{text:r,title:o,url:i}=((e,t,n)=>{const r=e&&e.querySelector("li.native a"),o=r&&Object(u.d)(r),i=n||e&&o+e.dataset.location||"",{pageType:a}=Object(l.getPageCriteria)();let s="",c="";if("channel"===a?(c=t||e&&e.dataset.url||"",s=e&&e.parentNode.dataset.title||""):(c=t||y("og:url"),s=y("og:title")),!s||!c)throw new Error("nativeShare error: failed to set title and/or url");return t||(c+="?ito=native_share_"+a+"-"+i),{text:s,title:s,url:c}})(e,t,n);await navigator.share({text:r,title:o,url:i})}catch(e){s.logger.warn(`nativeShare error: ${e}`)}};var E=e=>(document.body.appendChild(e),e);var S=()=>new Promise(((e,t)=>{document.execCommand("copy")?e():t(new Error("Copy command is not supported or not enabled"))}));var C=e=>{if(e)return e.hasAttribute("readonly")};var x=e=>{e&&e.parentNode&&e.parentNode.removeChild(e)};var T=(e,t)=>{e&&(e.value=t)};var k=(e,t)=>{e&&(t?e.setAttribute("readonly",""):e.removeAttribute("readonly"))};var A=e=>{e&&(e.select(),e.setSelectionRange(0,e.value.length))};var O=()=>{const e=document.createElement("textarea"),t=window.pageYOffset||document.documentElement.scrollTop;return e.style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style.left="-9999px",e.style.top=`${t}px`,e.setAttribute("readonly",""),e};var _=(e,t)=>{const n=t||O(),r=C(n);T(n,e),t||E(n),r||k(n,!0),A(n),r||k(n,!1);const o=S();return t||x(n),o};var P=()=>Boolean(document.queryCommandSupported)&&Boolean(document.queryCommandSupported("copy")),L="copyToClipboardTooltip-1Q0eA",N="copyButton-2FC2Y",M="manualCopyPrompt-3Qd73",I="successMessage-35ykM",j="footer-2Pz-f",R="closeButton-3hKh5";var D=({buttonText:e,manualCopyPrompt:t,textToCopy:n,type:r}={})=>`
\n \n
\n \n

${t||""}

\n
Copied
\n
\n \n
`;var B=class{constructor(){this.onDocumentBodyClick=this.onDocumentBodyClick.bind(this)}bindEvents({textToCopy:e}){this.getContainerEl().querySelector(`.${N}`).addEventListener("click",(t=>{var n,r;t.stopPropagation(),_(e,this.getContainerEl().querySelector("input")),n=this.getContainerEl(),r=!0,n.querySelector(`.${L}`).setAttribute("data-is-text-copied",r),t.target.focus()})),this.getContainerEl().querySelector(`.${R}`).addEventListener("click",(e=>{e.stopPropagation(),this.hide()})),this.getContainerEl().querySelector("input").addEventListener("input",(e=>{e.target.value!==e.target.getAttribute("value")&&(e.target.value=e.target.getAttribute("value"))})),window.setTimeout((()=>document.body.addEventListener("click",this.onDocumentBodyClick)),0)}getContainerEl(){return this.containerEl}hide(){return this.tooltipEl&&this.tooltipEl.parentNode&&this.tooltipEl.parentNode.removeChild(this.tooltipEl),this.getContainerEl()&&this.getContainerEl().dispatchEvent(new CustomEvent("copytoclipboardtooltipclose")),document.body.removeEventListener("click",this.onDocumentBodyClick),this}injectTemplate(e){this.containerEl.innerHTML=D(e)}onDocumentBodyClick(e){e.target.closest(`.${L}`)||this.hide()}onDocumentBodyTouchStart(e){e.target.closest(`.${L}`)||this.hide()}show(e,t){return this.containerEl=e,this.injectTemplate(t),this.tooltipEl=this.containerEl.querySelector(`.${L}`),(e=>{e.querySelector(`.${L}`).setAttribute("data-is-copy-supported",P())})(this.getContainerEl()),this.bindEvents(t),this}};const U=e=>{if(!e.target.closest(".copyToClipboard div")){const e=document.body.classList.contains("mol-mobile");let t;if(!e)return;t=document.createElement("div"),document.body.appendChild(t);const n=(new B).show(t,{buttonText:"Copy link",manualCopyPrompt:"Copy link to paste in your message",textToCopy:window.location.href,type:"url"});e&&(t.addEventListener("copytoclipboardtooltipclose",(()=>{t&&t.parentNode&&t.parentNode.removeChild(t)})),t.addEventListener("click",(e=>{e.target===t&&n.hide()})),t.addEventListener("touchmove",(e=>{e.preventDefault(),e.stopPropagation()})))}},z=e=>Object(p.isIPhone)()||Object(p.isIPad)()?Object(p.getMobileVersion)().major>7?`sms:&body=${encodeURIComponent(e)}`:`sms:;body=${encodeURIComponent(e)}`:`sms:?body=${encodeURIComponent(e)}`;var F=e=>{Array.from(e.querySelectorAll(".sms")).forEach((e=>{const t=e.querySelector("a");e.style.display="block",t.setAttribute("href",z(e.getAttribute("data-text")))}))},q=n(22),$=n(19),H=n(33),W=n(34),V=n(20),Y=n(35),G=n(16),Z=n(36);const Q={buildUrlParameters:u.b,domain:u.c,Email:d,Facebook:$,Fark:H,getWindowDimensions:u.g,LinkedIn:W,Pinterest:V,PollShare:Z,postToURL:u.i,Reddit:Y,Sms:r,socialClick:u.h,Twitter:G,Whatsapp:q};const K=(e,t="li a")=>{const n=document.querySelector(".video-single-options"),r=n&&n.dataset;Array.from(e.querySelectorAll(t)).forEach((t=>{t.addEventListener("click",(()=>{if(!t.parentNode.classList.contains("comments-count")){t.parentNode.classList.contains("twitter")?i.a.get("social-share-platform")||i.a.set("social-share-platform","twitter",{path:"/"}):t.parentNode.classList.contains("facebook")&&i.a.set("social-share-platform","facebook",{path:"/"});const n=Object.assign({},Object(l.getPageMetadata)(),r),o=Object(u.d)(t),{pageType:a}=Object(l.getPageCriteria)();let d="",p="";if("channel"===a)try{d=e.parentNode.dataset.title,p=e.parentNode.dataset.id}catch(e){s.logger.warn("failed to get access dataset on container parent")}c.pageEvents.publish(c.pageEvents.SOCIAL_SHARE_CLICKED,{articleId:p,articleTitle:d,pageMetadata:n,placement:o+(e.dataset.location||""),site:t.parentNode.className,type:"social_share"})}}))}))},X=()=>{const e=document.querySelector("#mobile-content header");Array.from(document.querySelectorAll(".sharing-buttons .mobile-sharing-button")).forEach((t=>{t.addEventListener("click",(()=>{t.dataset.disableShareToggle||e.classList.toggle("mobile-sharing-activated")}))}))},J=()=>{const e=document.querySelector(".mol-mobile .more.related-with-thumbs");if(e){const t=e.querySelector("li a.facebook");if(t){const n=e.dataset.location||"related-with-thumbs",{articleId:r,articleTitle:o}=Object(l.getPageMetadata)(),i="facebook";t.addEventListener("click",(()=>{Object(u.h)(i,n,{articleId:r,articleTitle:o,type:"social_share"})}))}}},ee=(e,t)=>{K(e,t),Object(d.showEmailButtons)(e),F(e),(e=>{const t=e.querySelector("li.native a"),n=e.dataset&&e.dataset.location;if(n&&"video-lead"!==n&&b()&&t){const n=e&&e.classList.contains("bottom")?"16px":"18px";t.parentNode.style.display="flex",t.style.background=Object(p.isIDevice)()?`url(${g.a}) center/${n} no-repeat`:`url(${m.a}) center/${n} no-repeat`,t.addEventListener("click",(()=>{w(e)}))}else t&&(t.parentNode.style.display="none")})(e),(e=>{const t=e.querySelector(".copyToClipboard");t&&t.addEventListener("click",U)})(e),Object(q.default)(e)},te=()=>{Array.from(document.querySelectorAll(".social")).forEach((e=>ee(e,"li a"))),J(),X(),Object(d.listenForEmailButtonClicks)()},ne=(async()=>{try{window.DMS=Object.assign(window.DMS||{},Q),Object.assign(window,{emailArticle:window.emailArticle||Q.Email.emailArticle,postToFark:window.postToFark||Q.Fark.postToFark,postToFB:window.postToFB||Q.Facebook.postToFB,postToLinkedIn:window.postToLinkedIn||Q.LinkedIn.postToLinkedIn,postToPinterest:window.postToPinterest||Q.Pinterest.postToPinterest,postToReddit:window.postToReddit||Q.Reddit.postToReddit,postToTWTTR:window.postToTWTTR||Q.Twitter.postToTWTTR}),await Object(a.later)("DOM_READY"),te(),(()=>{const{pageType:e}=Object(l.getPageCriteria)();if("article"!==e||!navigator.share)return;const t=Boolean(document.querySelector("#mobile-content .header-container .header-buttons .icon-search")),n=document.querySelector(".header-container .header-buttons .mobile-sharing-button"),r="nativemenubutton",o=()=>{c.pageEvents.publish(c.pageEvents.SOCIAL_SHARE_CLICKED,{pageMetadata:Object(l.getPageMetadata)(),placement:r,site:"native"}),w(null,null,r)};if(t){const e=document.querySelector("#mobile-content > header .header-buttons"),t=document.createElement("button");t.classList.add("native-share-button"),t.style.background=Object(p.isIDevice)()?`url(${g.a}) center/22px no-repeat`:`url(${m.a}) center/22px no-repeat`,t.addEventListener("click",o),e.appendChild(t)}else n&&(n.dataset.disableShareToggle=!0,n.addEventListener("click",o))})()}catch(e){s.logger.error(`Failed to initialize mol-fe-social: ${e}`,e)}})()},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjMwIiB3aWR0aD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibS0xLTFoMzJ2MzJoLTMyeiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Im0yMi4yNTUzMzggMTguMDAwNzYzYy0xLjI0NSAwLTIuMzQuNjEzLTMuMDIyIDEuNTQ3bC02LjM0Mi0zLjUyNGE0LjQ4NyA0LjQ4NyAwIDAgMCAuMTA3LTMuMjU4bDYuNjk1LTIuOTc1YTIuOTg3IDIuOTg3IDAgMCAwIDIuNTYyIDEuNDYgMyAzIDAgMSAwIC0zLTNjMCAuMDMyLjAwOS4wNjIuMDEuMDk1bC02Ljk5IDMuMTA1YTQuNDkyIDQuNDkyIDAgMCAwIC0zLjUyLTEuNyA0LjUgNC41IDAgMCAwIDAgOSA0LjQ4NCA0LjQ4NCAwIDAgMCAzLjMxNy0xLjQ2NWw2LjUzNCAzLjYzYy0uMDYxLjI2OS0uMTAxLjU0Ni0uMTAxLjgzNWEzLjc1IDMuNzUgMCAxIDAgMy43NS0zLjc1eiIgZmlsbD0iI2ZmZiIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+Cg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAyMiAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzI1MTZfMTM3NykiPgo8cGF0aCBkPSJNMTcuODk4MiA2LjIzNjQ5SDE0LjA5MzJWNy44NDc3OEgxNy44OTgyQzE4LjQ1NDcgNy44NDc3OCAxOC45MDEyIDguMzAwNzYgMTguOTAxMiA4Ljg1MDhWMTkuMzg1N0MxOC45MDEyIDE5Ljk0MjIgMTguNDQ4MiAyMC4zODg3IDE3Ljg5ODIgMjAuMzg4N0gzLjgzNjU0QzMuMjgwMDMgMjAuMzg4NyAyLjgzMzUyIDE5LjkzNTcgMi44MzM1MiAxOS4zODU3VjguODU3MjdDMi44MzM1MiA4LjMwMDc2IDMuMjg2NSA3Ljg1NDI1IDMuODM2NTQgNy44NTQyNUg3LjY0MTUyVjYuMjQyOTZIMy44MzY1NEMyLjM5MzQ5IDYuMjQyOTYgMS4yMjIyMyA3LjQxNDIyIDEuMjIyMjMgOC44NTcyN1YxOS4zODU3QzEuMjIyMjMgMjAuODI4NyAyLjM5MzQ5IDIyIDMuODM2NTQgMjJIMTcuODk4MkMxOS4zNDEyIDIyIDIwLjUxMjUgMjAuODI4NyAyMC41MTI1IDE5LjM4NTdWOC44NTcyN0MyMC41MTI1IDcuNDE0MjIgMTkuMzQxMiA2LjI0Mjk2IDE3Ljg5ODIgNi4yNDI5NlY2LjIzNjQ5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTguMjE3NDUgNC41OTkzMUwxMC4wNjE3IDIuNzU1MDZWMTQuMjAyNEMxMC4wNjE3IDE0LjY0ODkgMTAuNDI0MSAxNS4wMTEyIDEwLjg3MDYgMTUuMDExMkMxMS4zMTcxIDE1LjAxMTIgMTEuNjc5NSAxNC42NDg5IDExLjY3OTUgMTQuMjAyNFYyLjc0ODU4TDEzLjUyMzcgNC41OTI4NEMxMy42NzkgNC43NDgxNCAxMy44ODYxIDQuODMyMjcgMTQuMDkzMiA0LjgzMjI3QzE0LjMwMDIgNC44MzIyNyAxNC41MDczIDQuNzU0NjEgMTQuNjYyNiA0LjU5Mjg0QzE0Ljk3OTcgNC4yNzU3NSAxNC45Nzk3IDMuNzY0NTQgMTQuNjYyNiAzLjQ1MzkzTDExLjQ0IDAuMjM3ODEyQzExLjEyMyAtMC4wNzkyNzA1IDEwLjYxMTcgLTAuMDc5MjcwNSAxMC4zMDExIDAuMjM3ODEyTDcuMDc4NTQgMy40NjA0QzYuNzYxNDYgMy43Nzc0OCA2Ljc2MTQ2IDQuMjg4NyA3LjA3ODU0IDQuNTk5MzFDNy4zOTU2MiA0LjkwOTkyIDcuOTA2ODQgNC45MTYzOSA4LjIxNzQ1IDQuNTk5MzFaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzI1MTZfMTM3NyI+CjxyZWN0IHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K"},function(e,t){var n=function(e){return"string"==typeof e};function r(e,t,r){var o=0,i=0;if(""===e)return e;if(!e||!n(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var a,s,l,c=t;(function(e){return e instanceof RegExp})(c)||(c=new RegExp("("+(a=c,s=/[\\^$.*+?()[\]{}|]/g,l=RegExp(s.source),(a&&l.test(a)?a.replace(s,"\\$&"):a)+")"),"gi"));for(var u=e.split(c),d=1,p=u.length;d{const p=e.querySelector("[class^='share-facebook'], .fb .share, .fb .big-share"),f=e.querySelector("[class^='share-twitter'], .tw .share, .tw .big-share"),m=e.querySelector(".share-pinterest"),h=e.querySelector('.share-email a[href^="mailto:"]'),g=e.querySelector(".share-flipboard"),y=e.querySelector(".share-fbmessenger"),v=e.querySelector(".share-whatsapp"),b=Object(u.d)(e),w=n?{forcedDescription:d,forcedUrl:n}:void 0;p&&p.addEventListener("click",(()=>{Object(r.postToFB)(b+t,w)})),f&&f.addEventListener("click",(()=>{Object(o.postToTWTTR)(b+t,w)})),m&&m.addEventListener("click",(()=>{Object(i.postToPinterest)(t,w)})),h&&h.addEventListener("click",(()=>{Object(a.emailArticle)(t)})),g&&g.addEventListener("click",(()=>{Object(s.b)({placement:{origin:"article",position:t},shareObject:w})})),y&&y.addEventListener("click",(()=>{Object(l.b)({placement:{origin:"article",position:t},shareObject:w})})),v&&v.addEventListener("click",(()=>{Object(c.postToWhatsapp)({placement:{origin:"article",position:t},shareObject:w})}))},p=e=>{let t,n=e,r=null,o=null;if("top"===n&&(t=document.querySelector("#articleIconLinksContainer")),"bottom"===n&&(t=document.querySelector("#socialLinks")),/p-\d/.test(n)&&(t=document.querySelector("#"+n),n="related"),"video-lead"===n){t=document.querySelector("#video-lead-desktop-social");if(!document.querySelector('meta[property="og:video"]'))try{const e=t.closest(".video-lead-info").querySelector(".video-headline a"),n=e.getAttribute("href");r=window.location.protocol+"//"+window.location.hostname+n,o=e.innerText.trim().replace("Video: ","")+" | Daily Mail Online"}catch(e){}}return t?d(t,n,r,o):null}},function(e,t,n){"use strict";n.r(t),n.d(t,"postToFark",(function(){return o}));var r=n(4);const o=(e,{h:t,u:n}={},o)=>{n&&t&&Object(r.i)("https://cgi.fark.com/cgi/fark/farkit.pl?",{h:t,u:n}),Object(r.h)("fark",e,o)}},function(e,t,n){"use strict";n.r(t),n.d(t,"postToLinkedIn",(function(){return o}));var r=n(4);const o=(e,t,n)=>{const o=t&&t.url,i=t&&t.title;o&&i&&Object(r.i)("//www.linkedin.com/shareArticle?mini=true&",{title:i,url:o}),Object(r.h)("linkedin",e,n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"postToReddit",(function(){return o}));var r=n(4);const o=(e,t,n)=>{const o=t&&t.url,i=t&&t.title;o&&i&&Object(r.i)("//reddit.com/submit?",{title:i,url:o}),Object(r.h)("reddit",e,n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"getShareDescription",(function(){return s})),n.d(t,"init",(function(){return l}));var r=n(4),o=n(19),i=n(20),a=n(16);const s=(e,t)=>{const n=(e=>{const t=document.querySelector(`#poll-${e}`);if(!t)return"";const n=Array.from(t.querySelectorAll("input[type=radio][name=answer]")).find((e=>e.checked));return n?n.value:""})(t),r=((e,t)=>{const n=document.querySelector(`#poll-${e}`);if(!n)return"";const r=n.querySelector(`[for="answer-${e}-${t}"]`);return r?r.textContent.trim():""})(t,n),o=((e,t,n)=>{const r=document.querySelector(`.${e}`);if(!r)return"";const o=r.querySelector(`li.results-${t}-${n} span.results-score span.results-pct`);return o?o.textContent.trim():""})(e,t,n);return((e,t)=>` I said ${e}. ${t} of others agreed with me. What do you think?`)(r,o)},l=(e,t)=>{((e,t)=>{const n=document.querySelector(`.${e} .poll-${t.pollId}.poll-results .dms-poll ul`),l=`POLL: ${t.question}`,c="sponsored-poll"===t.pollStyle?"sponsored-poll":"post_poll",u=n.querySelector("li.facebook"),d=n.querySelector("li.twitter"),p=n.querySelector("li.pinterest");u&&u.addEventListener("click",(()=>{Object(o.postPollToFb)(`poll-share-${t.pollId}`,t.fbAppId,l,t.pollImage||t.articleImage||t.defaultImage,s(e,t.pollId),c)})),d&&d.addEventListener("click",(()=>{Object(a.postPollToTwitter)(`poll-share-${t.pollId}`,t.question,t.twitterVia,window.articleShortUrl||r.c+location.pathname,"",c)})),p&&p.addEventListener("click",(()=>{Object(i.postPollToPinterest)(`poll-share-${t.pollId}`,t.pollImage||t.articleImage||t.defaultImage,`${l}${s(e,t.pollId)}`,c)}))})(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return f}));var r=n(11),o=n.n(r),i=n(2),a=n(4),s=n(20);const l=(e,t)=>{const n=e.includes("?")?"&":"?";return e+n+t},c=e=>e.length>116,u=e=>{const t=Math.max(e.lastIndexOf(" ",112),e.lastIndexOf("\n",112));return e.substring(0,t)+"..."},d=(e,t,n)=>{const r=t&&n?`${t} commented on MailOnline: ${n.substr(0,1e3)}`:"",o=Object(a.b)({app_id:0x84f878b8271b,link:l(e,"ito=facebook_share_comment_text"),quote:r,redirect_uri:"https://i.dailymail.co.uk/i/pix/facebook/close.html"},"https://www.facebook.com/dialog/feed?");Object(a.h)("facebook","comment"),i.ted.tedEvent("social-event",{"social-event":"facebook-share-comment"}),Object(a.j)(o,"",Object(a.g)(1e3,500))},p=(e,t,n)=>{const r=document.querySelector('meta[property="og:url"]'),s=r&&r.getAttribute("content")||window.url||window.location.href,l=new o.a(s),d=`${l.origin}${l.pathname}?ito=twitter_share_comment_text#comments`;let p=`${t} commented on MailOnline: `+n;c(n)&&(p=`${t} commented on MailOnline: `+u(n));const f=`https://twitter.com/intent/tweet?text=${encodeURIComponent(p)}&url=${encodeURIComponent(d)}`;Object(a.h)("twitter","comment"),i.ted.tedEvent("social-event",{"social-event":"twitter-tweet-comment"}),Object(a.j)(f,"",Object(a.g)(575,400))},f=(e,t,n)=>{const r=n.commentBody;c(r)&&(n.commentBody=u(r)),n.pinterestWindow=e,Object(s.postToPinterest)("comment",{commentData:n,type:"comment"})}},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";t.__esModule=!0,t.extend=s,t.indexOf=function(e,t){for(var n=0,r=e.length;n":">",'"':""","'":"'","`":"`","=":"="},o=/[&<>"'`=]/g,i=/[&<>"'`=]/;function a(e){return r[e]}function s(e){for(var t=1;t{let r;const i=`https://${s}/xpmodules/${e}/renderHeadJson?data=`,c={env:t,values:n};try{r=`${i}${encodeURIComponent(JSON.stringify(c))}`}catch(t){return console.error(`[${a}] ${l}.urlError`,{error:t,hostname:s,name:e,...c}),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}] ${l}.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=`,l={env:t,values:n};try{r=`${i}${encodeURIComponent(JSON.stringify(l))}`}catch(t){return console.error(`[${a}] ${u}.urlError`,{error:t,hostname:s,name:e,...l}),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.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return s}));const r={AU:"auhome",GB:"home",US:"ushome"},o=["home","ushome","auhome","ukhome","indiahome"],i=["billBoard-oop","sky-article-wide","textAd","h-sky-a","h-sky-b"],a="latest-article-count",s="baseline-article-count"},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l=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(l)})),e.exports=d}).call(this,n(47))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d1)for(var n=1;n{n||(n=setTimeout((()=>{n=null,e(...r)}),t))}};var a=function(e,{maxTimeout:t=1e3,checkInterval:n=100,noChangeCountToEnd:r=3}={}){if("function"!=typeof e)throw new TypeError("Provided callback is not a fucntion");let o,i,a,s,l;const c=()=>{clearInterval(o),clearTimeout(i)},u=function(t){return c(),o=null,i=null,e(t)};return function(e){c(),o=setInterval((()=>{window.innerWidth===a&&window.innerHeight===s?(l++,l===r&&u(e)):(a=window.innerWidth,s=window.innerHeight,l=0)}),n),i=setTimeout((()=>{u(e)}),t)}};var s=function(e){const t=window.innerHeight,n=window.innerWidth,r=Math.max(e.clientHeight,e.clientHeight-t)>>1,o=Math.max(e.clientWidth,e.clientWidth-n)>>1,i=e.getBoundingClientRect(),a=i.left>-o&&i.rightn,s=i.top>-r&&i.bottomt;return a&&s};const l=function(e){const t=e.getAttribute("data-src");return!t||e.src===t};var c=function(e){return new Promise((t=>{if("img"===e.tagName.toLowerCase())t((n=e,new Promise(((e,t)=>{n.src?n.complete&&l(n)?e():(n.addEventListener("load",(()=>{l(n)&&e()})),n.addEventListener("error",t)):t(new Error("No image source found"))}))));else t();var n}))};const u=function(e){e&&e.style&&"none"!==e.style.display&&(e.style.display="none")};var d=class{constructor(e,{showOriginalOnPause:t=!1}={}){this.element=e,this.originalElement=e,this.activeElement=e,this.initPromise=null,this.updatePromise=null,this.updateIsAllowed=!0,this.resized=!0,this.showOriginalOnPause=t}isInViewport(){return s(this.activeElement)}setActive(e){this.activeElement!==e&&(u(this.activeElement),function(e){e&&e.style&&""!==e.style.display&&(e.style.display="")}(e),this.activeElement=e)}update(){return this.initPromise||(this.initPromise=c(this.element).then((()=>this.init()))),this.updatePromise||(this.updatePromise=this.initPromise.then((()=>(this.resized&&this.setActive(this.originalElement),this.isInViewport()?(this.resized&&this.fixElementStyles(this.element),this.play()):this.pause()))).then((()=>this.updatePromise=null))),this.updatePromise}onResize(){return this.resized=!0,this.update()}onScroll(){return this.update()}fixElementStyles(e,t=null){if(e===this.originalElement)return;const n=e.querySelector("video")||e;Object.assign(n.style,function(e,t=null){const n=e.getBoundingClientRect(),r=window.getComputedStyle(e,""),o={bottom:"0px"===r.top?"":r.bottom,float:r.float,height:n.height+"px",left:"0px"===r.right?"":r.left,margin:r.margin,position:"static"===r.position?"":r.position,right:"0px"===r.left?"":r.right,top:"0px"===r.bottom?"":r.top,width:n.width+"px"};return r.display&&"inline"!==r.display?o.display=r.display:o.display="inline-block",t&&(o.height=n.width/t+"px"),o}(this.originalElement,t));const r=e.querySelector("[data-video-cover]");r&&("absolute"===n.style.position?(r.style.top=n.style.top,r.style.height=n.style.height,r.style.width=n.style.width,r.style.zIndex=3):(r.style.height=n.style.height,r.style.width=n.style.width)),this.resized=!1}loadElement(e){e&&e instanceof HTMLElement&&(this.setActive(this.originalElement),this.unloadElement(this.element),u(e),this.element=e,this.originalElement.after(e))}unloadElement(){this.element!==this.originalElement&&(this.setActive(this.originalElement),this.element.remove(),this.element=this.originalElement)}init(){return Promise.resolve()}play(){this.setActive(this.element)}pause(){this.showOriginalOnPause&&this.setActive(this.originalElement)}};var p=class extends d{init(){if("video"===this.element.tagName.toLowerCase()){this.element.loop=!0;Array.from(this.element.getElementsByTagName("source")).forEach((e=>{const t=e.getAttribute("data-src");if(t){const n=document.createElement("source");n.src=t,n.type=e.type,this.element.replaceChild(n,e)}}))}else{const e=this.element.getAttribute("data-video");if(e){const t=function({videoSrc:e,poster:t,styles:n={}}){const r=document.createElement("video");t&&(r.poster=t),(e=>{e.replace(/\.[^.]+$/i,".webm").replace(/_MP4_/,"_WEBM_")})(e);const o=``;r.loop=!0,r.muted=!0,r.setAttribute("muted",!0),r.setAttribute("playsinline",!0),r.innerHTML=`${o}`,Object.assign(r.style,n);const i=document.createElement("div"),a=document.createElement("div");return i.style.position="relative",a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width=n.width,a.style.height=n.height,a.dataset.videoCover=!0,i.appendChild(r),i.appendChild(a),i}({posterImg:this.element.getAttribute("data-poster")||this.element.src,styles:{height:this.element.clientHeight+"px",width:this.element.clientWidth+"px"},videoSrc:e});this.loadElement(t)}}return Promise.resolve()}play(){super.play();const e=this.element&&this.element.querySelector("video");e&&(e.play().catch((()=>{this.unloadElement(),this.originalElement.dataset.src&&(this.originalElement.src=this.originalElement.dataset.src),this.originalElement.style.position="relative",this.originalElement.children[0].style.position="absolute",this.originalElement.children[0].style.top="0",this.originalElement.children[0].style.display="block"})),e.style["z-index"]=2,e.style["-webkit-transform-style"]="preserve-3d")}pause(){super.pause();const e=this.element&&this.element.querySelector("video");e&&e.pause&&e.pause()}};const f=[],m=i((()=>{f.forEach((e=>e.onScroll()))}),100);let h;const g=()=>{cancelAnimationFrame(h),h=requestAnimationFrame((()=>{f.forEach((e=>e.onResize()))}))},y=a((()=>{f.forEach((e=>e.onResize()))})),v=function(e=[]){const t=[].concat(e).filter((e=>e&&!e.molFeVideoPreview)).map((e=>{try{const t=function(e){return e.getAttribute("data-video")||"video"===e.tagName.toLowerCase()?new p(e):null}(e);if(t)return e.molFeVideoPreview=t,t.update(),t}catch(e){r.logger.error(e)}return null})).filter((e=>null!==e));return f.push(...t),t},b=function(e){return v([e])[0]},w=Object(o.later)("DOM_READY").then((()=>{if(window.location.search&&window.location.search.match(/disableVideoPreview=1/i))return null;const e=Array.from(document.querySelectorAll("[data-mol-fe-video-preview]"));return v(e),window.addEventListener("orientationchange",y),window.addEventListener("resize",g),window.addEventListener("scroll",m),e})).catch((e=>{r.logger.error("Error during mol-fe-video-preview initialisation: ",e)}))},function(e,t,n){"use strict";var r=n(0),o=n(8),i=n(5);var a=(e,t,n)=>{Object(o.render)(Object(r.createElement)(e,t),n);let i=!0;return()=>{i&&(i=!1,Object(o.unmountComponentAtNode)(n))}};t.a={PropTypes:i,React:r,ReactDOM:o,render:a}},function(e,t,n){"use strict"},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__51__},function(e,t,n){"use strict";n.r(t),n.d(t,"init",(function(){return y}));var r=n(3),o=n(19),i=n(16);var a=n(2);const s=["pinterest"];var l=n(53),c=n(54);var u=({mailtoSubject:e,mailtoBody:t,eTitle:n,mobileEmailBody:r,isChannel:o,placement:i,eUrl:a,articleChannelFollowButton:s,twitterVia:u,eTwitterStatus:d,eArticleImage:p,showFacebookMessenger:f,showFlipboard:m,showPinterest:h,hideEmail:g,fbUrl:y})=>{const v=`\n \n`,b=`\n \n `,w=`\n \n `,E=`\n
  • \n \n Pinterest\n \n
  • \n `,S=`\n
  • \n \n Reddit\n \n
  • \n `,C=`\n
  • \n \n LinkedIn\n \n
  • \n `,x=`\n
  • \n \n Flipboard\n \n
  • \n `,T=`\n
  • \n \n Messenger\n \n
  • \n `;return`\n
    \n
      \n ${o?b+w+E:""}\n ${h?E:""}\n ${m?x:""}\n ${f?T:""}\n ${S}\n ${C}\n ${g?"":v}\n
    \n
    \n
     
    \n `};const d=e=>{if(e.target.closest("#dms-drawer")&&!e.target.classList.contains("close"))return;const t=document.getElementById("dms-drawer"),n=document.getElementById("dms-drawer-arrow"),r=t.querySelector(".close");document.body.removeEventListener("click",d),window.removeEventListener("resize",d),r.removeEventListener("click",d),n&&(n.style.display="none"),t.innerHTML="",t.style.display="none"};var p=d;const f="dms-drawer",m="dms-drawer-arrow",h=e=>{let t=null;return e.className.includes("|")&&(t=e.className.split("|")[0]),t};var g=(e,t={})=>{const n=(e=>{let t=e.offsetTop,n=e.offsetLeft,r=e.offsetParent;for(;r;)Number.isNaN(r.offsetTop)||Number.isNaN(r.offsetLeft)||(t+=r.offsetTop,n+=r.offsetLeft),r=r.offsetParent;return{left:n,top:t}})(e),l=t.isChannel||!1,c=t.showFlipboard||e.getAttribute("data-show-flipboard")||!1,d=t.showPinterest||e.getAttribute("data-show-pinterest")||!1,g=t.showFbMessenger||e.getAttribute("data-show-fbmessenger")||!1;let y=t.hideEmail||!1;const v=t.emailShareStyle||e.getAttribute("data-email-share-style"),b=t.headline||e.getAttribute("data-headline");let w,E,S,C,x,T,k,A,O="",_="";if(t.title)w=t.url,x=t.articleChannelFollowButton,E=t.id,S=t.videoId,C=t.title,T=t.eTwitterStatus;else if(e.getAttribute("data-social-drawer"))w=e.getAttribute("data-url"),w.startsWith("http://")||w.startsWith("https://")||(w=window.location.protocol+"//"+window.location.host+w),x=window.twitterVia||"MailOnline",E=e.getAttribute("data-article-id")||null,S=e.getAttribute("data-video-id")||null,C=e.getAttribute("data-headline"),T=Object(i.truncateTextAndEscape)({text:C,url:h(e)||w,via:x}),E||v||(y=!0);else{const t=e.closest(".article"),n=t&&(t.querySelector("h2 a")||t.querySelector(".title")),r="https://i.dailymail.co.uk/i/furniture/comments/articles/m_logo.png";if(t&&(_=t.getAttribute("data-original-title")),!t||!n)return;const o=e.getAttribute("data-article-image"),a=t.querySelector(".social-headline");O=o&&(e=>!e||e.startsWith("http://")||e.startsWith("https://")?e:"https://i.dailymail.co.uk"+e)(o)||r,w=n.href.replace(/\?.*$/,""),w=(e=>{const t=document.querySelector('meta[property="og:url"]');if(!t)return e;const n=t.getAttribute("content").match(/^https?:\/\/[^/]+/);return e.replace(/^https?:\/\/[^/]+/,n)})(w),E=/(fb|article)-(\d+)/.exec(w)[2],C=a?a.textContent:n.textContent,x=t.querySelector(".article-icon-links-container").getAttribute("data-followbutton"),x||(x=t.getAttribute("data-followbutton")||"MailOnline"),T=Object(i.truncateTextAndEscape)({text:C,url:h(e)||w,via:x})}const P=window.twitterVia||"MailOnline";k=document.getElementById(f),A=document.getElementById(m),k?k.classList.remove("open"):(document.body.insertAdjacentHTML("beforeend",`
    `),document.body.insertAdjacentHTML("beforeend",`
     
    `),k=document.getElementById(f),A=document.getElementById(m));let L=0,N=0,M=0;t.inside?(L=-340,N=-112,M=-30,A.style.backgroundPosition="-600px 48px"):(L=l?-90:0,A.style.backgroundPosition="-600px 0px");const I=(({isChannel:e,hideEmail:t,showPinterest:n}={})=>{if(e)return{height:169,width:338};let r=238;return t&&(r-=50),n&&(r+=50),{height:91,width:r}})(t);k.style.display="block",k.style.left=n.left-15+L+"px",k.style.top=n.top+30+N+"px",k.style.width=0,k.style.height=0,A.style.display="block",A.style.position="absolute",A.style.left=n.left+"px",A.style.top=n.top+20+M+"px";const j=t.placement||"drawer",{channel:R}=Object(r.getPageCriteria)(),D=""+(R?R+"-":""),B=`?ito=${o.FACEBOOK_SHARE_ITO_CODE}-${D}preview`,U=`?ito=${v||"email_share_"+j}`,z=encodeURIComponent(`${w}${B}`),F=encodeURIComponent(`${w}${U}`),q=encodeURIComponent((S?"Watch":"Read")+" this: "+(b||C));k.innerHTML=u({articleChannelFollowButton:encodeURIComponent(x),eArticleImage:encodeURIComponent(O),eTitle:encodeURIComponent(C),eTwitterStatus:T,eUrl:encodeURIComponent(w),fbUrl:z,hideEmail:y,isChannel:l,mailtoBody:F,mailtoSubject:q,mobileEmailBody:w+"%0D%0A%0D%0AGet the MailOnline App: %0D%0A"+/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i.exec(w)[0]+"mobile",placement:j,showFacebookMessenger:g,showFlipboard:c,showPinterest:d,twitterVia:P}),l?(k.classList.add("dms-drawer--channel"),((e,t,n,o,i)=>{Array.from(e.querySelectorAll("li")).forEach((e=>{e.addEventListener("click",(()=>{const s=e.getAttribute("class");a.pageEvents.publish(a.pageEvents.SOCIAL_SHARE_CLICKED,{pageMetadata:{articleId:t,articleTitle:n,contentType:"social-share",pageName:Object(r.getPageMetadata)().pageName,videoId:o,videoTitle:i},placement:o?"video-page-drawer":"drawer",site:s,videoId:o,videoTitle:i})}))}))})(k,E,_||C,S,S?C:null)):((e,t)=>{Array.from(e.querySelectorAll("li")).forEach((e=>{const n=e.getAttribute("class");s.includes(n)&&e.addEventListener("click",(()=>{a.pageEvents.publish(a.pageEvents.SOCIAL_SHARE_CLICKED,{pageMetadata:Object(r.getPageMetadata)(),placement:t,site:n})}))}))})(k,j),k.getAttribute("data-ready")||k.setAttribute("data-ready",!0),A=document.getElementById(m),t.inside||A&&(A.style.display="block"),t.zIndex&&(A.style.zIndex=t.zIndex,k.style.zIndex=t.zIndex);const $=document.getElementById("dms-drawer").querySelector(".close");document.body.addEventListener("click",p),$.addEventListener("click",p),window.addEventListener("resize",p),setTimeout((()=>{k.style.width=I.width+"px",k.style.height=I.height+"px"}),0);const H=k.querySelector(".wrapper");H.style.display="block",H.style.opacity=0,setTimeout((()=>{H.style.opacity=1}),500)};const y=({id:e,params:t})=>{const n=document.getElementById(e);n&&n.addEventListener("click",(e=>{const n=e.target.closest("a.js-sl,[data-social-drawer]");n&&(e.preventDefault(),e.stopPropagation(),g(n,t))}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(4);const o="https://share.flipboard.com/bookmarklet/popout",i=r.a.bind(null,"flipboard"),a=({url:e,title:t,placement:n})=>{const r=encodeURIComponent(`?ito=${i(n)}`);return`${o}?v=2&url=${`${e}${r}`}&title=${t}`},s=({placement:e,shareObject:t})=>{const n=`${Object(r.f)(t)}?ito=${i(e)}`,a=Object(r.e)(t);Object(r.i)(`${o}?`,{title:a,url:n,v:2}),Object(r.h)("flipboard",e.position)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f}));var r=n(4);const o="fbmessenger",i=r.a.bind(null,o),a=function(){return MobileUtils.isMobile()?"fb-messenger://share/?":"https://www.facebook.com/dialog/send?display=popup&"},s=()=>!MobileUtils.isMobile(),l=()=>{const e=document.querySelector('meta[property="fb:app_id"]');return e&&e.getAttribute("content")},c=()=>{const e=document.querySelector('meta[property="og:url"]');return e&&e.getAttribute("content")},u=({forcedUrl:e}={})=>[e,c(),window.location.href].find((e=>Boolean(e))),d="https://scripts.dailymail.co.uk/static/mol-fe/static/misc/window-closer.html",p=({url:e,placement:t})=>{const n=`${e}${encodeURIComponent(`?ito=${i(t)}`)}`,r=a(),o=s()?`&redirect_uri=${d}`:"";return`${r}app_id=${l()}&link=${n}${o}`},f=({placement:e,shareObject:t})=>{const n=`${u(t)}?ito=${i(e)}`,c={app_id:l(),link:n};s()&&(c.redirect_uri=d),Object(r.i)(`${a()}`,c),Object(r.h)(o,e.position)}},,function(e,t,n){"use strict";t.__esModule=!0;var r=["description","fileName","lineNumber","message","name","number","stack"];function o(e,t){var n=t&&t.loc,i=void 0,a=void 0;n&&(e+=" - "+(i=n.start.line)+":"+(a=n.start.column));for(var s=Error.prototype.constructor.call(this,e),l=0;lP.length&&P.push(e)}function M(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return n(r,e,""===t?"."+j(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l