@times-components/article-skeleton 1.158.6-db6f380282ad712bc126531d6a225b845055c465.0 → 1.158.7-e8064a91e9f693ab4ddfa4492ad0ac6fe3f5b279.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/article-skeleton-prop-types.js +1 -2
- package/dist/article-skeleton.js +15 -13
- package/dist/head.js +1 -1
- package/package.json +4 -4
- package/rnw.js +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,14 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [1.158.6](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.158.5...@times-components/article-skeleton@1.158.6) (2025-03-28)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @times-components/article-skeleton
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
6
14
|
## [1.158.5](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.158.4...@times-components/article-skeleton@1.158.5) (2025-03-26)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @times-components/article-skeleton
|
@@ -21,8 +21,7 @@ const articleSkeletonPropTypes = {
|
|
21
21
|
}).isRequired,
|
22
22
|
swgProductId: _propTypes.default.string,
|
23
23
|
zephrDivs: _propTypes.default.bool,
|
24
|
-
showAudioPlayer: _propTypes.default.bool
|
25
|
-
storefrontConfig: _propTypes.default.string.isRequired
|
24
|
+
showAudioPlayer: _propTypes.default.bool
|
26
25
|
};
|
27
26
|
exports.articleSkeletonPropTypes = articleSkeletonPropTypes;
|
28
27
|
const articleSkeletonDefaultProps = {
|
package/dist/article-skeleton.js
CHANGED
@@ -27,8 +27,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
27
27
|
|
28
28
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
29
29
|
|
30
|
-
var _utils = require("@times-components/utils");
|
31
|
-
|
32
30
|
var _ad = require("@times-components/ad");
|
33
31
|
|
34
32
|
var _articleExtras = _interopRequireDefault(require("@times-components/article-extras"));
|
@@ -132,8 +130,7 @@ const ArticleSkeleton = _ref => {
|
|
132
130
|
swgProductId = _ref.swgProductId,
|
133
131
|
getFallbackThumbnailUrl169 = _ref.getFallbackThumbnailUrl169,
|
134
132
|
zephrDivs = _ref.zephrDivs,
|
135
|
-
showAudioPlayer = _ref.showAudioPlayer
|
136
|
-
storefrontConfig = _ref.storefrontConfig;
|
133
|
+
showAudioPlayer = _ref.showAudioPlayer;
|
137
134
|
const commentsEnabled = article.commentsEnabled,
|
138
135
|
content = article.content,
|
139
136
|
dropcapsDisabled = article.dropcapsDisabled,
|
@@ -218,6 +215,9 @@ const ArticleSkeleton = _ref => {
|
|
218
215
|
deckApiUrl = _ref2.deckApiUrl;
|
219
216
|
|
220
217
|
const articleUrl = hostName && canonicalUrl ? "".concat(hostName).concat(canonicalUrl) : url;
|
218
|
+
const categoryPath = url ? url.split("/").filter(Boolean)[0] || null : null;
|
219
|
+
const quizCategories = ["culture", "life-style"];
|
220
|
+
const canShowSidebar = categoryPath ? quizCategories.includes(categoryPath) : false;
|
221
221
|
const articleContentReducers = [(0, _dropcapUtil.default)(template, dropcapsDisabled), (0, _newsletterPuff.default)(section, isPreview, expirableFlags), (0, _inlineAd.default)(isPreview), _articleTrackingLastParagraph.default, _mapListElements.default, _reorderInteractiveBeforeAd.default];
|
222
222
|
const newContent = reduceArticleContent(content, articleContentReducers);
|
223
223
|
const isLiveOrBreaking = (0, _dataHelper.getIsLiveOrBreakingFlag)(expirableFlags);
|
@@ -291,10 +291,10 @@ const ArticleSkeleton = _ref => {
|
|
291
291
|
}();
|
292
292
|
|
293
293
|
(0, _react.useEffect)(() => {
|
294
|
-
if (
|
294
|
+
if (canShowSidebar) {
|
295
295
|
fetchPolygon();
|
296
296
|
}
|
297
|
-
}, [
|
297
|
+
}, [canShowSidebar]);
|
298
298
|
return /*#__PURE__*/_react.default.createElement(_sticky.StickyProvider, null, /*#__PURE__*/_react.default.createElement(_tsComponents.TrackingContextProvider, {
|
299
299
|
context: {
|
300
300
|
component: "ArticleSkeleton",
|
@@ -366,26 +366,29 @@ const ArticleSkeleton = _ref => {
|
|
366
366
|
html: '<div id="nu-zephr-article-target-top-headercontainer"></div>'
|
367
367
|
}), /*#__PURE__*/_react.default.createElement(Header, null), SaveAndShare, !!zephrDivs && /*#__PURE__*/_react.default.createElement(_staticContent.default, {
|
368
368
|
html: '<div id="nu-zephr-article-target-bottom-headercontainer"></div>'
|
369
|
-
})), /*#__PURE__*/_react.default.createElement(_responsive.BodyContainer, null, /*#__PURE__*/_react.default.createElement(_responsive.ArticleWrapper, null,
|
369
|
+
})), /*#__PURE__*/_react.default.createElement(_responsive.BodyContainer, null, /*#__PURE__*/_react.default.createElement(_responsive.ArticleWrapper, null, canShowSidebar && /*#__PURE__*/_react.default.createElement(_responsive.SidebarWarpper, null, /*#__PURE__*/_react.default.createElement(_responsive.PuzzlesSidebar, {
|
370
370
|
ref: sidebarRef
|
371
|
-
}, /*#__PURE__*/_react.default.createElement(_tsComponents.ArticleSidebar, {
|
371
|
+
}, categoryPath === "life-style" ? /*#__PURE__*/_react.default.createElement(_tsComponents.ArticleSidebar, {
|
372
372
|
pageLink: "".concat(domainSpecificUrl, "/puzzles"),
|
373
373
|
sectionTitle: "Puzzles",
|
374
374
|
data: [{
|
375
375
|
title: "Crossword",
|
376
376
|
url: "".concat(domainSpecificUrl, "/puzzles/crossword"),
|
377
|
-
imgUrl: "
|
377
|
+
imgUrl: "https://www.thetimes.com/d/img/puzzles/new-illustrations/crossword-c7ae8934ef.png"
|
378
378
|
}, {
|
379
379
|
title: "Polygon",
|
380
380
|
url: polygonUrl,
|
381
|
-
imgUrl: "
|
381
|
+
imgUrl: "https://www.thetimes.com/d/img/puzzles/new-illustrations/polygon-875ea55487.png"
|
382
382
|
}, {
|
383
383
|
title: "Sudoku",
|
384
384
|
url: "".concat(domainSpecificUrl, "/puzzles/sudoku"),
|
385
|
-
imgUrl: "
|
385
|
+
imgUrl: "https://www.thetimes.com/d/img/puzzles/new-illustrations/sudoku-ee2aea0209.png"
|
386
386
|
}]
|
387
|
+
}) : /*#__PURE__*/_react.default.createElement(_tsComponents.QuizleSidebar, {
|
388
|
+
pageLink: "".concat(domainSpecificUrl, "/quizle"),
|
389
|
+
sectionTitle: "Today's Quizle"
|
387
390
|
}))), /*#__PURE__*/_react.default.createElement(_responsive.ArticleContent, {
|
388
|
-
showMargin:
|
391
|
+
showMargin: canShowSidebar
|
389
392
|
}, !!zephrDivs && /*#__PURE__*/_react.default.createElement(_staticContent.default, {
|
390
393
|
html: '<div id="nu-zephr-article-target-top-bodycontainer"></div>'
|
391
394
|
}), rendererdContent, isLiveOrBreaking && /*#__PURE__*/_react.default.createElement(_userState.default, {
|
@@ -427,7 +430,6 @@ const ArticleSkeleton = _ref => {
|
|
427
430
|
relatedArticlesVisible: !!observed.get("related-articles"),
|
428
431
|
commentingConfig: commentingConfig,
|
429
432
|
topics: topics,
|
430
|
-
storefrontConfig: storefrontConfig,
|
431
433
|
breadcrumbs: breadcrumbs,
|
432
434
|
domainSpecificUrl: domainSpecificUrl
|
433
435
|
});
|
package/dist/head.js
CHANGED
@@ -482,7 +482,7 @@ function Head(_ref4) {
|
|
482
482
|
type: "application/ld+json"
|
483
483
|
}, JSON.stringify(breadcrumbJsonLD)), /*#__PURE__*/_react.default.createElement("script", {
|
484
484
|
type: "text/javascript",
|
485
|
-
|
485
|
+
async: true,
|
486
486
|
src: "https://platform.twitter.com/widgets.js"
|
487
487
|
}));
|
488
488
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@times-components/article-skeleton",
|
3
|
-
"version": "1.158.
|
3
|
+
"version": "1.158.7-e8064a91e9f693ab4ddfa4492ad0ac6fe3f5b279.9+e8064a91e9",
|
4
4
|
"description": "The article skeleton",
|
5
5
|
"main": "dist/article-skeleton",
|
6
6
|
"dev": "src/article-skeleton",
|
@@ -62,9 +62,9 @@
|
|
62
62
|
},
|
63
63
|
"dependencies": {
|
64
64
|
"@times-components/ad": "^2.22.33",
|
65
|
-
"@times-components/article-extras": "^0.37.
|
65
|
+
"@times-components/article-extras": "^0.37.6-e8064a91e9f693ab4ddfa4492ad0ac6fe3f5b279.11+e8064a91e9",
|
66
66
|
"@times-components/article-image": "^7.19.10",
|
67
|
-
"@times-components/article-paragraph": "^1.9.
|
67
|
+
"@times-components/article-paragraph": "^1.9.394-e8064a91e9f693ab4ddfa4492ad0ac6fe3f5b279.9+e8064a91e9",
|
68
68
|
"@times-components/article-topics": "^4.11.65",
|
69
69
|
"@times-components/caption": "^3.8.65",
|
70
70
|
"@times-components/context": "^1.25.4",
|
@@ -105,5 +105,5 @@
|
|
105
105
|
"publishConfig": {
|
106
106
|
"access": "public"
|
107
107
|
},
|
108
|
-
"gitHead": "
|
108
|
+
"gitHead": "e8064a91e9f693ab4ddfa4492ad0ac6fe3f5b279"
|
109
109
|
}
|
package/rnw.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=27)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){var n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/,i=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,d=l||s||Function("return this")();var p,u=Array.prototype,m=Function.prototype,f=Object.prototype,g=d["__core-js_shared__"],h=(p=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",b=m.toString,y=f.hasOwnProperty,w=f.toString,v=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=d.Symbol,j=u.splice,E=N(d,"Map"),x=N(Object,"create"),k=O?O.prototype:void 0,P=k?k.toString:void 0;function S(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function I(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function z(e,t){for(var i,a=0,o=(t=function(e,t){if(q(e))return!1;var i=typeof e;if("number"==i||"symbol"==i||"boolean"==i||null==e||B(e))return!0;return r.test(e)||!n.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:q(i=t)?i:F(i)).length;null!=e&&a<o;)e=e[D(t[a++])];return a&&a==o?e:void 0}function A(e){return!(!U(e)||(t=e,h&&h in t))&&(function(e){var t=U(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?v:c).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function T(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function N(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return A(n)?n:void 0}S.prototype.clear=function(){this.__data__=x?x(null):{}},S.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},S.prototype.get=function(e){var t=this.__data__;if(x){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return y.call(t,e)?t[e]:void 0},S.prototype.has=function(e){var t=this.__data__;return x?void 0!==t[e]:y.call(t,e)},S.prototype.set=function(e,t){return this.__data__[e]=x&&void 0===t?"__lodash_hash_undefined__":t,this},_.prototype.clear=function(){this.__data__=[]},_.prototype.delete=function(e){var t=this.__data__,n=I(t,e);return!(n<0)&&(n==t.length-1?t.pop():j.call(t,n,1),!0)},_.prototype.get=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},_.prototype.has=function(e){return I(this.__data__,e)>-1},_.prototype.set=function(e,t){var n=this.__data__,r=I(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new S,map:new(E||_),string:new S}},C.prototype.delete=function(e){return T(this,e).delete(e)},C.prototype.get=function(e){return T(this,e).get(e)},C.prototype.has=function(e){return T(this,e).has(e)},C.prototype.set=function(e,t){return T(this,e).set(e,t),this};var F=M((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(B(e))return P?P.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return i.test(e)&&n.push(""),e.replace(a,(function(e,t,r,i){n.push(r?i.replace(o,"$1"):t||e)})),n}));function D(e){if("string"==typeof e||B(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function M(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(M.Cache||C),n}M.Cache=C;var q=Array.isArray;function U(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function B(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==w.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:z(e,t);return void 0===r?n:r}},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t){e.exports=require("@times-components/ad/rnw")},function(e,t){e.exports=require("@times-components/sticky/rnw")},function(e,t){e.exports=require("@times-components/context/rnw")},function(e,t){e.exports=require("@times-components/tracking/rnw")},function(e,t){e.exports=require("@times-components/markup-forest/rnw")},function(e,t){e.exports=require("@times-components/user-state/rnw")},function(e,t){e.exports=require("@times-components/lazy-load/rnw")},function(e,t){e.exports=require("@times-components/save-and-share-bar/rnw")},function(e,t){e.exports=require("@times-components/link/rnw")},function(e,t){e.exports=require("@times-components/article-paragraph/rnw")},function(e,t){e.exports=require("@times-components/interactive-wrapper/rnw")},function(e,t){e.exports=require("@times-components/caption/rnw")},function(e,t){e.exports=require("@times-components/article-extras/rnw")},function(e,t){e.exports=require("@times-components/message-bar/rnw")},function(e,t){e.exports=require("@times-components/article-image/rnw")},function(e,t){e.exports=require("@times-components/key-facts/rnw")},function(e,t){e.exports=require("@times-components/markup/rnw")},function(e,t){e.exports=require("@times-components/pull-quote/rnw")},function(e,t){e.exports=require("@times-components/video/rnw")},function(e,t){e.exports=require("react-helmet-async")},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(4),o=n.n(a),c=n(6),l=n(7),s=n(19),d=n.n(s),p=n(13),u=n.n(p),m=n(8),f=n.n(m),g=n(10),h=n(3),b=n(1),y=n(12),w=n.n(y),v=n(20),O=n(14),j=n.n(O);function E(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}var x=function(){var e,t=(e=function*(){try{const e=yield fetch("https://api.thetimes.co.uk/graphql",{method:"POST",headers:{"x-use-standalone-puzzle-data":"true"},body:JSON.stringify({query:"\n query GetPuzzlesByType($type: String!) {\n puzzles(type: $type){\n list(first:1){\n shortIdentifier\n slug\n }\n }\n }\n",variables:{type:"polygon"}})});if(!e.ok)throw new Error("Network response was not ok: ".concat(e.status));const t=yield e.json(),n=t&&t.data&&t.data.puzzles&&t.data.puzzles.list;return n?n.map(e=>{let t=e.slug,n=e.shortIdentifier;return"".concat("/puzzles/word-puzzles","/").concat(t,"-").concat(n)}):[]}catch(e){return console.error("Error fetching puzzle data:",e),[]}},function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){E(a,r,i,o,c,"next",e)}function c(e){E(a,r,i,o,c,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function C(e){e.children;let t=e.element,n=void 0===t?"div":t,i=e.html,a=_(e,["children","element","html"]);return Object(r.createElement)(n,P(P({},a),{},{undefined:void 0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i}}))}var I=n(21),z=n.n(I),A=n(16),T=n.n(A),N=n(9),F=n.n(N),D=n(17),M=n.n(D),q=n(22),U=n.n(q),B=n(23),L=n.n(B),R=n(24),W=n.n(R),H=n(25),V=n.n(H),$=n(11),K=n.n($),G=n(15),J=n.n(G);const Q={base:"\n color: ".concat(b.colours.functional.action,";\n font-family: ").concat(b.fontsWithFallback.bodyRegular,";\n line-height: 26px;\n font-size: ").concat(b.fontSizes.bodyMobile,"px;\n margin-bottom: ").concat(Object(b.spacing)(5),"px;\n margin-top: 0;\n "),medium:"\n font-size: ".concat(b.fontSizes.body,"px;\n line-height: 30px;\n ")},Y={base:"\n font-size: inherit;\n text-decoration: none;\n color: ".concat(b.colours.functional.action,";\n ")};function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const te=e=>{let t=e.children,n=e.target,r=e.url,a=e.onPress,o=e.dropCap;return i.a.createElement(i.a.Fragment,null,0===t.length?i.a.createElement(i.a.Fragment,null,i.a.createElement(J.a,{responsiveLinkStyles:Q,target:n,onPress:a,url:r},r)," "):i.a.createElement(J.a,{underlined:!(o&&1===t[0].length),responsiveLinkStyles:o?Y:Q,target:n,url:r,onPress:a},t))};te.defaultProps=Z(Z({},J.a.defaultProps),{},{onPress:()=>{},dropCap:!1});var ne,re=(ne=te,Object(g.withTrackEvents)(ne,{analyticsEvents:[{actionName:"Pressed",eventName:"onPress",getAttrs:e=>{let t=e.target;return{url:e.url,target:t,linkText:e.children[0]}},trackingName:"ArticleLink"}]})),ie=n(2),ae=n.n(ie),oe=n(18),ce=n.n(oe);function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const de=ae()(c.TcView).withConfig({displayName:"inset-caption__InsetCaptionStyle",componentId:"la2hkf-0"})(["padding-left:",";@media (min-width:","px){padding-left:0px;}"],Object(b.spacing)(2),b.breakpoints.medium),pe=e=>{let t=e.caption,n=e.credits;return i.a.createElement(de,null,i.a.createElement(ce.a,{credits:n,text:t}))};pe.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},ce.a.defaultProps);var ue=pe;ae.a.div.withConfig({displayName:"responsive__ParagraphContainer",componentId:"sc-4v1r4q-0"})(["padding-left:",";padding-right:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(2),Object(b.spacing)(2),b.breakpoints.medium,b.breakpoints.wide),ae.a.p.withConfig({displayName:"responsive__Paragraph",componentId:"sc-4v1r4q-1"})(["color:",";font-family:",";line-height:26px;font-size:","px;margin-bottom:",";margin-top:0;display:block;@media (min-width:","px){font-size:","px;line-height:30px;}"],b.colours.functional.primary,b.fontsWithFallback.bodyRegular,b.fontSizes.bodyMobile,Object(b.spacing)(5),b.breakpoints.medium,b.fontSizes.body);const me=ae.a.div.withConfig({displayName:"responsive__InteractiveContainer",componentId:"sc-4v1r4q-2"})(["position:relative;margin-bottom:",";",";"],Object(b.spacing)(4),e=>e.fullWidth?Object(ie.css)(["width:100%;"]):Object(ie.css)(["padding:0 ",";@media (min-width:","px){width:80.8%;margin-left:auto;margin-right:auto;padding:0;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(2),b.breakpoints.medium,b.breakpoints.wide)),fe=ae()(c.TcView).withConfig({displayName:"responsive__PrimaryImg",componentId:"sc-4v1r4q-3"})(["width:100%;flex-direction:column;padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(5),b.breakpoints.medium,b.breakpoints.wide),ge=ae()(c.TcView).withConfig({displayName:"responsive__FullWidthImg",componentId:"sc-4v1r4q-4"})(["padding-bottom:",";"],Object(b.spacing)(4)),he=ae()(c.TcView).withConfig({displayName:"responsive__SecondaryImg",componentId:"sc-4v1r4q-5"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(2),Object(b.spacing)(2),Object(b.spacing)(5),b.breakpoints.medium,b.breakpoints.wide),be=ae()(c.TcView).withConfig({displayName:"responsive__InlineImg",componentId:"sc-4v1r4q-6"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:0;display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(b.spacing)(2),Object(b.spacing)(2),b.breakpoints.medium,b.breakpoints.wide),ye=ae()(c.TcView).withConfig({displayName:"responsive__PullQuoteResp",componentId:"sc-4v1r4q-7"})(["padding-left:",";padding-right:",";margin-bottom:",";@media (min-width:","px){width:50%;float:left;margin-right:",";margin-bottom:0px;margin-top:",";padding-left:0px;padding-right:0px;}"],Object(b.spacing)(2),Object(b.spacing)(2),Object(b.spacing)(2),b.breakpoints.medium,Object(b.spacing)(4),Object(b.spacing)(1)),we=ae()(c.TcView).withConfig({displayName:"responsive__PullQuoteContainer",componentId:"sc-4v1r4q-8"})(["display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],b.breakpoints.medium,b.breakpoints.wide),ve="color: ".concat(b.colours.functional.primary,";\n font-family: ").concat(b.fontsWithFallback.headline,";\n font-weight: 400;\n margin: 0 auto ").concat(Object(b.spacing)(2),";\n padding-right: ").concat(Object(b.spacing)(2),";\n padding-left: ").concat(Object(b.spacing)(2),";\n\n @media (min-width: ").concat(b.breakpoints.medium,"px) {\n padding-left: 0;\n padding-right: 0;\n width: 80.8%;\n }\n\n @media (min-width: ").concat(b.breakpoints.wide,"px) {\n width: 56.2%;\n }"),Oe=ae.a.h2.withConfig({displayName:"responsive__Heading2",componentId:"sc-4v1r4q-9"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],ve,b.fontSizes.heading2Mobile,b.fontSizes.heading2Mobile,b.breakpoints.medium,b.fontSizes.heading2,b.fontSizes.heading2),je=ae.a.h3.withConfig({displayName:"responsive__Heading3",componentId:"sc-4v1r4q-10"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],ve,b.fontSizes.heading3Mobile,b.fontSizes.heading3Mobile,b.breakpoints.medium,b.fontSizes.heading3,b.fontSizes.heading3),Ee=ae.a.h4.withConfig({displayName:"responsive__Heading4",componentId:"sc-4v1r4q-11"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],ve,b.fontSizes.heading4Mobile,b.fontSizes.heading4Mobile,b.breakpoints.medium,b.fontSizes.heading4,b.fontSizes.heading4),xe=ae.a.h5.withConfig({displayName:"responsive__Heading5",componentId:"sc-4v1r4q-12"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],ve,b.fontSizes.heading5Mobile,b.fontSizes.heading5Mobile,b.breakpoints.medium,b.fontSizes.heading5,b.fontSizes.heading5),ke=ae.a.h6.withConfig({displayName:"responsive__Heading6",componentId:"sc-4v1r4q-13"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],ve,b.fontSizes.heading5Mobile,b.fontSizes.heading5Mobile,b.breakpoints.medium,b.fontSizes.heading5,b.fontSizes.heading5),Pe=ae.a.div.withConfig({displayName:"responsive__InlineAdWrapper",componentId:"sc-4v1r4q-14"})(["clear:both;min-height:283px;margin:30px 0;box-sizing:content-box;padding:0 0 10px;border-bottom:1px solid rgb(219,219,219);@media (min-width:768px){min-height:123px;}@media (min-width:1024px){min-height:283px;}"]),Se=ae.a.span.withConfig({displayName:"responsive__InlineAdTitle",componentId:"sc-4v1r4q-15"})(["border-bottom:1px solid rgb(219,219,219);color:#696969;flex:1 1 100%;font:normal ","px / 17px ",";letter-spacing:0.6px;margin:0 0 10px;padding:0 0 5px;text-align:center;text-transform:uppercase;display:block;"],b.fontSizes.teaser,b.fontsWithFallback.bodyRegular),_e=ae.a.ul.withConfig({displayName:"article-list__StyledUl",componentId:"sc-1m2quer-0"})(["color:",";display:block;font-family:",";line-height:26px;font-size:","px;margin:0 auto ",";padding-right:",";padding-left:",";@media (min-width:","px){font-size:","px;line-height:30px;padding-left:",";padding-right:0;width:80.8%;}@media (min-width:","px){width:56.2%;}"],b.colours.functional.primary,b.fontsWithFallback.bodyRegular,b.fontSizes.bodyMobile,Object(b.spacing)(5),Object(b.spacing)(2),Object(b.spacing)(6),b.breakpoints.medium,b.fontSizes.body,Object(b.spacing)(3),b.breakpoints.wide),Ce=ae.a.li.withConfig({displayName:"article-list__StyledLi",componentId:"sc-1m2quer-1"})(["margin-bottom:16px;list-style:square;color:",";font-family:",";line-height:26px;font-size:","px;p{width:100% !important;margin-block-start:16px;margin-block-end:0;&:empty{display:none;}}"],b.colours.functional.primary,b.fontsWithFallback.bodyRegular,b.fontSizes.bodyMobile);function Ie(){return(Ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){Te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ne=["c8bf6998-d498-11ed-b5c3-54651fc826e9"],Fe=e=>Ne.includes(e),De=e=>{switch(e){case"secondary":return he;case"inline":return be;case"fullwidth":return ge;default:return fe}},Me=(e,t,n)=>{const r=e.get(t)&&e.get(t).clientWidth?e.get(t).clientWidth:null;return r&&window.devicePixelRatio>1&&"indepth"===n&&1.5*r||r},qe=e=>{let t=e.content,n=e.contextUrl,r=e.section,a=e.paidContentClassName,o=e.template,s=e.isPreview,d=e.swgProductId,p=e.inArticlePuffFlag,m=e.isLiveOrBreaking,f=e.articleHeadline,g=e.id,y=e.deckApiUrl;return K()(t.map((e=>{let t=e.contextUrl,n=e.section;return e=>"ad"===e.name?Ae(Ae({},e),{},{attributes:Ae(Ae({},e.attributes),{},{contextUrl:t,section:n})}):e})({contextUrl:n,section:r})),(e=>{let t=e.paidContentClassName,n=e.template,r=e.analyticsStream,a=e.isPreview,o=e.isLiveOrBreaking,s=e.section,d=e.articleHeadline,p=e.articleId,m=e.deckApiUrl;return Ae(Ae({},L.a),{},{ad:e=>Fe(p)?null:i.a.createElement(Pe,null,i.a.createElement(Se,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inline-ad"})),inlineAd1:e=>Fe(p)?null:i.a.createElement(Pe,null,i.a.createElement(Se,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inlineAd1"})),inlineAd2:e=>Fe(p)?null:i.a.createElement(Pe,null,i.a.createElement(Se,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inlineAd2"})),inlineAd3:e=>Fe(p)?null:i.a.createElement(Pe,null,i.a.createElement(Se,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inlineAd3"})),inlineAd4:e=>Fe(p)?null:i.a.createElement(Pe,null,i.a.createElement(Se,null,"Advertisement"),i.a.createElement(l.AdContainer,{key:e,slotName:"inlineAd4"})),dropCap:(e,t,n)=>i.a.createElement(F.a.Consumer,{key:e},e=>{let t=e.theme,r=t.dropCapFont,a=t.sectionColour,o=void 0===a?b.colours.section.default:a;return i.a.createElement(A.DropCapView,{colour:o,font:r},n)}),image(e,t){let r=t.id,a=t.display,o=t.ratio,c=t.url,l=t.caption,s=t.title,d=t.credits;const p=De(a);return i.a.createElement(u.a,{key:e,rootMargin:Object(b.spacing)(40),threshold:0},t=>{let u=t.observed,m=t.registerNode;return i.a.createElement("div",{id:e,ref:e=>m(e)},i.a.createElement("div",{id:r},i.a.createElement(p,null,i.a.createElement(z.a,{captionOptions:{caption:l,title:s,credits:d},imageOptions:{display:a,highResSize:Me(u,e,n),lowResQuality:3,lowResSize:400,ratio:o,uri:c}}))))})},interactive(e,t){let n=t.id,c=t.url,l=t.element,d=t.display;const p=l.attributes,u=l.value,f=m||"https://editorial-tm.newsapis.co.uk/prod/deck-component-data-api";switch(u){case"in-article-info-card":return i.a.createElement(F.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.InfoCard,{sectionColour:t.sectionColour})))});case"in-article-info-card-bulletpoints":return i.a.createElement(F.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.InfoCardBulletPoints,{sectionColour:t.sectionColour})))});case"in-article-big-numbers":return i.a.createElement(F.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.BigNumbers,{sectionColour:t.sectionColour})))});case"in-article-timelines":return i.a.createElement(F.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.Timelines,{sectionColour:t.sectionColour})))});case"gallery-carousel":return i.a.createElement(F.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.GalleryCarousel,{sectionColour:t.sectionColour})))});case"twitter-embed":case"instagram-embed":return i.a.createElement(me,{key:e},i.a.createElement(h.SocialMediaEmbed,{url:p.url,vendorName:u.split("-")[0],id:n}));case"times-embed-iframe-max":{const t=l.attributes&&l.attributes.src||"",r=t.includes("youtube"),a=t.includes("tiktok");return r&&a?i.a.createElement(me,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.SocialMediaEmbed,{url:a?decodeURIComponent(t):t,vendorName:r?"youtube":a&&"tiktok",id:n})):i.a.createElement(me,{key:e,fullWidth:"fullwidth"===d},i.a.createElement("div",{id:n},i.a.createElement(M.a,{attributes:p,element:u,key:e,source:c})))}case"times-travel-cta":{const t=l.attributes;return i.a.createElement(me,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.CtaButton,{attributes:t}))}case"times-text-collapse":{const t=l.attributes;return i.a.createElement(me,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.AffiliateLinkDisclaimer,{attributes:t}))}case"times-article-slices":{const t=l.attributes;return i.a.createElement(me,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.ArticleCard,{element:t}))}case"newsletter-puff":const t=p.code,m=p.copy,g=p.headline;return a?i.a.createElement("div",{id:n},i.a.createElement(h.PreviewNewsletterPuff,{copy:Object(h.safeDecodeURIComponent)(m),headline:Object(h.safeDecodeURIComponent)(g),section:s})):i.a.createElement("div",{id:n},i.a.createElement(h.InlineNewsletterPuff,{analyticsStream:r,key:e,code:t,copy:Object(h.safeDecodeURIComponent)(m),headline:Object(h.safeDecodeURIComponent)(g),section:s}));case"opta-cricket-scorecard":case"opta-cricket-scorecard-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaCricketScorecard,{competition:p.competition,match:p.match}));case"opta-football-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-football-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-football-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballSummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-lineups-v3":case"opta-football-top-scorers-v3":case"opta-football-match-commentary-v3":case"opta-football-hub":return null;case"opta-rugby-union-fixtures-v2":case"opta-rugby-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-rugby-union-standings-v2":case"opta-rugby-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-rugby-union-match-summary-v2":case"opta-rugby-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbySummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-rugby-union-match-stats-v2":case"opta-rugby-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"in-article-puff":return i.a.createElement(F.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.InArticlePuff,{sectionColour:t.sectionColour,forceImageAspectRatio:"3:2",isLiveOrBreaking:o})))});case"article-header":return i.a.createElement("div",{id:n},i.a.createElement(h.ArticleHeader,{updated:p.updated,breaking:p.breaking,headline:p.headline,authorSlug:p.slug,description:p.description}));default:return i.a.createElement(me,{key:e,fullWidth:"fullwidth"===d},i.a.createElement("div",{id:n},i.a.createElement(M.a,{attributes:p,element:u,key:e,source:c})))}},autoNewsletterPuff(e,t){const n=t.element.attributes,a=n.code,o=n.copy,c=n.headline;return i.a.createElement(h.AutoNewsletterPuff,{analyticsStream:r,key:e,code:a,copy:o,headline:c,section:s})},keyFacts:(e,t,n,r,a)=>i.a.createElement(U.a,{key:e,ast:a,section:s,headline:d,isLiveOrBreaking:o}),heading2:(e,t,n)=>i.a.createElement(Oe,null,n),heading3:(e,t,n)=>i.a.createElement(je,null,n),heading4:(e,t,n)=>i.a.createElement(Ee,null,n),heading5:(e,t,n)=>i.a.createElement(xe,null,n),heading6:(e,t,n)=>i.a.createElement(ke,null,n),link(e,t,n){const r=t.href,a=t.target,o=t.dropCap;return i.a.createElement(re,{dropCap:o,key:e,target:a,url:r},n)},listElement:(e,t,n)=>i.a.createElement(Ce,{key:e},n),unorderedList:(e,t,n)=>i.a.createElement(_e,{key:e},n),paragraph(e,t,n){const r=t&&t.id;return i.a.createElement(T.a,Ie({key:e},r?{id:r}:{}),n)},paywall:(e,n,r)=>i.a.createElement("span",{className:t,key:e},r),pullQuote(e,t,n){let r=t.caption,a=r.name,o=r.text,c=r.twitter;return i.a.createElement(F.a.Consumer,{key:e},e=>{let t=e.theme,r=t.pullQuoteFont,l=t.sectionColour,s=void 0===l?b.colours.section.default:l;return i.a.createElement(we,null,i.a.createElement(ye,null,i.a.createElement(W.a,{caption:a,font:r,quoteColour:s,text:o,twitter:c},n)))})},video(e,t){let n=t.id,r=t.is360,a=t.brightcovePolicyKey,o=t.brightcoveVideoId,l=t.brightcoveAccountId,s=t.brightcovePlayerId,d=t.caption,p=t.posterImageUrl;const u=De("primary");return i.a.createElement(u,{key:e},i.a.createElement("figure",{style:{margin:0}},i.a.createElement(c.AspectRatioContainer,{aspectRatio:"16:9"},i.a.createElement(V.a,{id:n,is360:r,accountId:l,height:"100%",playerId:s,policyKey:a,poster:{uri:p},videoId:o,width:"100%"})),i.a.createElement("figcaption",null,i.a.createElement(ue,{caption:d}))))}})})({paidContentClassName:a,template:o,isPreview:s,swgProductId:d,inArticlePuffFlag:p,isLiveOrBreaking:m,articleId:g,section:r,articleHeadline:f,deckApiUrl:y}))};qe.propTypes={content:o.a.arrayOf(o.a.shape({attributes:o.a.object,children:o.a.arrayOf(o.a.object),name:o.a.string})).isRequired,contextUrl:o.a.string.isRequired,paidContentClassName:o.a.string,section:o.a.string};var Ue=qe;o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func,o.a.shape({account:o.a.string.isRequired}).isRequired,o.a.string,o.a.bool,o.a.bool,o.a.string.isRequired;var Be=n(5),Le=n.n(Be);const Re=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.registrationType?e.registrationType:""},We=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.customerType?e.customerType:""},He=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.isShared?"yes":"no"},Ve=e=>{const t=["LIVE","BREAKING"],n=e&&e.find(e=>t.includes(e.type.toUpperCase()));return n&&n.type},$e=e=>{if(!e)return[];const t=e.find(e=>null===e.expiryTime||(new Date).getTime()<new Date(e.expiryTime).getTime());return t&&t.type&&t.type.toLowerCase()};function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){Je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qe=e=>{const t=e.find(e=>"paywall"===e.name);if(!t)return e;const n=t.children.filter(e=>"paragraph"===e.name).pop(),r=t.children.indexOf(n),i=t.children.map((e,t)=>t===r?Ge(Ge({},e),{},{attributes:Ge(Ge({},e.attributes),{},{id:"last-paragraph"})}):e);return e.map(e=>"paywall"===e.name?Ge(Ge({},e),{},{children:i}):e)};const Ye=ae.a.div.withConfig({displayName:"keylines__KeylineItem",componentId:"sc-1s03wwf-0"})(["border:solid ",";border-width:1px 0;& + &{margin-top:-1px !important;}"],b.colours.functional.keyline),Xe=ae()(Ye).withConfig({displayName:"keylines__ArticleKeylineItem",componentId:"sc-1s03wwf-1"})(["@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],b.breakpoints.medium,Object(b.spacing)(6),b.breakpoints.medium,b.breakpoints.wide,Object(b.spacing)(2),Object(b.spacing)(2)),Ze=ae.a.main.withConfig({displayName:"responsive__MainContainer",componentId:"sc-15gvuj2-1"})(["@media (min-width:","px){padding-top:",";margin:0 auto;}"],b.breakpoints.wide,Object(b.spacing)(4)),et=ae()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"sc-15gvuj2-2"})(["display:flex;z-index:1;> ","{order:3;}"],Xe),tt=ae.a.article.withConfig({displayName:"responsive__BodyContainer",componentId:"sc-15gvuj2-3"})(["display:block;order:4;"]),nt=ae.a.div.withConfig({displayName:"responsive__UpdateButtonContainer",componentId:"sc-15gvuj2-4"})(["position:sticky;bottom:50px;display:flex;width:100%;justify-content:center;@media (min-width:","px){bottom:80px;}@media (min-width:","px){bottom:120px;}"],b.breakpoints.medium,b.breakpoints.wide),rt=ae.a.div.withConfig({displayName:"responsive__SidebarWarpper",componentId:"sc-15gvuj2-5"})(["position:sticky;top:162px;display:none;left:100%;@media (min-width:","px){width:19.8333%;display:inline-block;}@media (min-width:","px){width:18.8333%;top:112px;}"],b.breakpoints.wide,b.breakpoints.huge),it=ae.a.div.withConfig({displayName:"responsive__PuzzlesSidebar",componentId:"sc-15gvuj2-6"})(["position:sticky;padding-left:",";z-index:1;@media (min-width:","px){padding-right:",";}@media (min-width:","px){padding-right:",";}"],Object(b.spacing)(4),b.breakpoints.wide,Object(b.spacing)(8),b.breakpoints.huge,Object(b.spacing)(10)),at=ae.a.div.withConfig({displayName:"responsive__ArticleWrapper",componentId:"sc-15gvuj2-7"})(["position:relative;"]),ot=ae.a.div.withConfig({displayName:"responsive__ArticleContent",componentId:"sc-15gvuj2-8"})(["@media (min-width:","px){margin-top:",";transition:margin-top 0.2s ease;}"],b.breakpoints.wide,e=>e.showMargin?"-335px":"0"),ct=ae.a.div.withConfig({displayName:"responsive__EmailBannerContainer",componentId:"sc-15gvuj2-9"})(["position:sticky;top:80px;width:100%;z-index:100;display:flex;justify-content:center;height:100%;@media (max-width:","px){max-width:327px;height:100px;margin:auto;}"],b.breakpoints.medium);function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pt=e=>{const t=Object(b.styleguide)({scale:e}),n=t.colours,r=t.fontFactory,i=t.spacing,a=t.lineHeight;return{ad:{borderBottomColor:n.functional.keyline,borderBottomWidth:1,borderTopColor:n.functional.keyline,borderTopWidth:1,marginBottom:i(4),padding:i(2)},articleLink:st(st({color:n.functional.action},r({font:"body",fontSize:"bodyMobile"})),{},{lineHeight:a({font:"body",fontSize:"bodyMobile"}),marginBottom:i(5),marginTop:0}),articleMainContentRow:{paddingLeft:i(2),paddingRight:i(2)},articleTextElement:st(st({},r({font:"body",fontSize:"bodyMobile"})),{},{color:n.functional.primary,marginBottom:i(5)}),containerTablet:{alignSelf:"center"},imageContainerTablet:{alignSelf:"center"},interactiveContainer:{marginBottom:i(4),paddingLeft:i(2),paddingRight:i(2)},interactiveContainerTablet:{alignSelf:"center",width:b.tabletWidth},interactiveContainerFullWidth:{width:"100%",paddingLeft:0,paddingRight:0},leadAsset:{marginBottom:i(2)},primaryContainer:{flexDirection:"column",paddingBottom:i(5),width:"100%"},heading2:st(st({},r({font:"headline",fontSize:"heading2Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading3:st(st({},r({font:"headline",fontSize:"heading3Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading4:st(st({},r({font:"headline",fontSize:"heading4Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading5:st(st({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading6:st(st({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black})}};var ut={articleContainer:{backgroundColor:b.colours.functional.gutter},articleMainContentRow:{paddingLeft:Object(b.spacing)(2),paddingRight:Object(b.spacing)(2)}};function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ht=pt(),bt=ft(ft({},ht),{},{ad:ft(ft({},ht.ad),{},{marginBottom:Object(b.spacing)(6),marginTop:Object(b.spacing)(6),width:"100%"}),articleTextElement:ft(ft({},ht.articleTextElement),{},{marginTop:0}),adMarginStyle:{marginBottom:0}});var yt=ft(ft({},ut),bt),wt=n(26);const vt=["37a19ac4-1cbb-11ee-8198-bf96b6365670"];function Ot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return null;const n=e.reduce((e,t)=>(e.push(...t.slices),e),[]),r=n.reduce((e,t)=>(e.push(...t.sections),e),[]);return r.map(e=>t+e.title)}const jt={SUNDAYTIMES:"The Sunday Times",TIMES:"The Times"},Et=e=>Le()(e,"crop169.url",null),xt=e=>Et(Le()(e,"leadAsset.posterImage",Le()(e,"leadAsset",null))),kt=e=>Et(Le()(e,"leadAsset",null)),Pt=e=>(e.hasVideo?xt:kt)(e),St=e=>{const t=e.hasVideo,n=e.leadAsset,r=t?xt(e):(e=>{const t=e.tiles&&e.tiles.find(e=>Le()(e.leadAsset,"crop169.url",null));if(t)return t;const n=Le()(e.listingAsset,"crop169.url",null);return n||Le()(e.leadAsset,"crop169.url",null)})(e);if(r)return r;if(!n)return null;const i=n&&n.posterImage?n.posterImage:n,a=i.crop32,o=i.crop1251,c=i.crop11,l=i.crop45,s=i.crop23,d=i.crop2251,p=a||o||c||l||s||d;return p?p.url:""};function _t(e){let t=e.article,n=e.articleUrl,r=e.logoUrl,a=e.paidContentClassName,o=e.getFallbackThumbnailUrl169,l=e.swgProductId,s=e.breadcrumbs,d=e.domainSpecificUrl;const p=t.descriptionMarkup,u=t.headline,m=t.leadAsset,f=t.publicationName,g=t.shortHeadline,h=t.publishedTime,b=t.updatedTime,y=t.hasVideo,w=t.seoDescription,v=t.keywords,O=m||{},j=O.brightcoveAccountId,E=O.brightcoveVideoId,x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="";if(void 0!==e)for(let n=0;n<e.length;n+=1)"LIVE"===e[n].type&&(t=e[n].expiryTime);return t}(t.expirableFlags),k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(void 0!==e){return void 0!==e.find(e=>"LIVE"===e.type&&(Date.now()<new Date(e.expiryTime)||null===e.expiryTime))}return!1}(t.expirableFlags),P=jt[f],S=function(e){const t=e.bylines;if(!t)return null;const n=t.reduce((e,t)=>(Array.isArray(t.byline)?e.push(...t.byline):e.push(t.byline),e),[]);return Object($.renderTreeAsText)({children:n})}(t),_=w||(Array.isArray(p)&&p.length?Object($.renderTreeAsText)({children:p}):null),C=function(e){const t=Ot(e.tiles);if(null==t)return null;const n=t.filter(e=>"News"!==e);return n.length?n[0]:"News"}(t),I=function(e){const t=Ot(e.tiles,"Section:");return null==t?null:t.filter((e,t,n)=>n.indexOf(e)===t).slice(0,2).toString()}(t),z=St(t)||(o?o():null),A=Object(c.appendToImageURL)(Pt(t),"resize",1200)||z,T=function(e,t){return e.bylines?(n=e,n.bylines.map(e=>e.author).filter(e=>e)).map(e=>{let n=e.name,r=e.jobTitle,i=e.twitter,a=e.slug;const o="".concat(t,"/profile/").concat(a);return{"@type":"Person",name:n,jobTitle:r,sameAs:i?[o,"https://twitter.com/".concat(i)]:o}}):[];var n}(t,d),N=Le()(m,"caption",null),F=u||g||"",D=h&&new Date(h).toISOString(),M=b||D,q=S?{"@type":"Person",name:S}:null,U=(T&&T.length?T:q)||{"@type":"Organization",name:"The Times"},B={"@type":"Organization",name:P,logo:{"@type":"ImageObject",url:r}},L=((e,t,n)=>{const r=[];if(null===e)return r;const i=e.content,a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=/\D+/g,r=e.replace(n,""),i=/\b(\w)/g,a=t.match(i),o=null===a?"":a.join("");return"u_".concat(r).concat(o)};if(void 0!==i){let o;const c=i=>{for(let l=0;l<i.length;l+=1)if("interactive"===i[l].name){if(i[l].attributes.element&&"article-header"===i[l].attributes.element.value){void 0!==o&&r.push(o);const c=i[l].attributes.element.attributes;o={"@type":"BlogPosting",headline:c.headline,datePublished:c.updated,dateModified:c.updated,publisher:t,url:"".concat(e.url,"#").concat(a(c.updated,c.headline)),author:n}}}else if("paragraph"===i[l].name){if(void 0!==o){const e=Le()(i[l],"children[0].attributes.value","");o.articleBody?o.articleBody+=" ".concat(e):o.articleBody=e}}else"image"===i[l].name?void 0!==o&&(o.image={"@type":"ImageObject",url:i[l].attributes.url,caption:i[l].attributes.caption}):"video"===i[l].name?void 0!==o&&(o.video={"@type":"VideoObject",thumbnail:i[l].attributes.posterImageUrl}):"paywall"===i[l].name&&i[l].children&&i[l].children.length>0&&c(i[l].children)};c(i),void 0!==o&&r.push(o)}return r})(t,B,U),R={"@context":"https://schema.org","@type":"NewsArticle",headline:F,publisher:{"@type":"Organization",name:P,logo:{"@type":"ImageObject",url:r}},mainEntityOfPage:{"@type":"WebPage","@id":n},dateCreated:h,datePublished:D,isAccessibleForFree:!1,hasPart:{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(a)},image:{"@type":"ImageObject",url:A,caption:N},thumbnailUrl:z,dateModified:M,author:U,articleSection:C,keywords:I,url:n};l&&(R.isPartOf={"@type":["CreativeWork","Product"],name:"The Times & The Sunday Times",productID:l});const W=y?{"@context":"https://schema.org","@type":"VideoObject",name:m&&m.title?m.title:F,uploadDate:M,thumbnailUrl:z,description:Array.isArray(p)&&p.length?Object($.renderTreeAsText)({children:p}):w||m.title||F,contentUrl:"https://players.brightcove.net/".concat(j,"/default_default/index.html?videoId=").concat(E)}:null,H={"@context":"https://schema.org","@type":"LiveBlogPosting",headline:u,description:w,mainEntityOfPage:{"@type":"WebPage","@id":n},datePublished:h,dateModified:b,coverageStartTime:h,coverageEndTime:x,url:n,keywords:v,image:{"@type":"ImageObject",url:A,caption:N},publisher:B,author:U,liveBlogUpdate:L,articleSection:C},V=vt.includes(t.id),K=s&&s.length?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:s.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.title,item:"".concat(d,"/").concat(e.slug)}))}:null;return i.a.createElement(wt.Helmet,{encodeSpecialCharacters:!1},i.a.createElement("title",null,F),V&&i.a.createElement("meta",{name:"robots",content:"noindex"}),i.a.createElement("meta",{name:"robots",content:"max-image-preview:large"}),i.a.createElement("meta",{content:F,name:"article:title"}),i.a.createElement("meta",{content:P,name:"article:publication"}),_&&i.a.createElement("meta",{content:_,name:"description"}),S&&i.a.createElement("meta",{content:S,name:"author"}),i.a.createElement("meta",{content:F,property:"og:title"}),i.a.createElement("meta",{content:"article",property:"og:type"}),i.a.createElement("meta",{content:n,property:"og:url"}),_&&i.a.createElement("meta",{content:_,property:"og:description"}),A&&i.a.createElement("meta",{content:A,property:"og:image"}),y&&i.a.createElement("meta",{name:"robots",content:"max-video-preview:-1"}),i.a.createElement("meta",{content:F,name:"twitter:title"}),i.a.createElement("meta",{content:"summary_large_image",name:"twitter:card"}),i.a.createElement("meta",{content:n,name:"twitter:url"}),_&&i.a.createElement("meta",{content:_,name:"twitter:description"}),A&&i.a.createElement("meta",{content:A,name:"twitter:image"}),k&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(H)),i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(R)),W&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(W)),K&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(K)),i.a.createElement("script",{type:"text/javascript",defer:!0,src:"https://platform.twitter.com/widgets.js"}))}_t.defaultProps={swgProductId:null,breadcrumbs:[]};var Ct=_t;var It=e=>{let t=e.id,n=e.componentName;if("undefined"!=typeof window){const e=Le()(window,"paywallComponent.".concat(n));if(e)return i.a.createElement("div",{id:t,dangerouslySetInnerHTML:{__html:e}})}return i.a.createElement("div",{id:t})};function zt(){return(zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const At=ae.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareContainer",componentId:"hqppv0-0"})(["background-color:",";height:60px;display:flex;align-items:center;",";"],b.colours.functional.white,e=>e.isClient&&[m.selectors.sizer(Object(ie.css)(["border-bottom:1px solid transparent;will-change:border-bottom-color;"])),m.selectors.sticky(Object(ie.css)(["will-change:height,box-shadow;"])),Object(m.computeProgressStyles)(e=>Object(ie.css)(["height:","px;box-shadow:0 2px 5px 0 ",";",";"],60-10*e,b.colours.functional.greyStickyBarBoxShadow,m.selectors.stickySizer(Object(ie.css)(["border-bottom-color:",";"],b.colours.functional.greyStickyBarBorderBottom))))]),Tt=ae.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareItem",componentId:"hqppv0-1"})(["order:3;& + &{margin-top:-1px !important;}@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],b.breakpoints.medium,Object(b.spacing)(2),b.breakpoints.medium,b.breakpoints.wide,Object(b.spacing)(2),Object(b.spacing)(2));function Nt(e){return i.a.createElement(c.ServerClientRender,{client:()=>i.a.createElement(At,zt({isClient:!0},e)),server:()=>i.a.createElement(At,e)})}const Ft=Object(m.mediaQuery)("(max-width: ".concat(b.breakpoints.huge,"px)"));var Dt=function(e){return i.a.createElement(Tt,null,i.a.createElement(f.a,{Component:Nt,shouldBeSticky:Ft},i.a.createElement(j.a,e)))};function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){Ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bt=["indepth","maincomment","magazinestandard","magazinecomment"],Lt=e=>{const t=e.children;if(0===t.length)return e;if("text"===t[0].name){const r=(n=Le()(t[0],"attributes.value[0]"),/'|"|‘|“/.test(n)&&t[0].attributes.value.length>1?2:1);return qt(qt({},e),{},{attributes:qt({},e.attributes),children:[qt(qt({},t[0]),{},{attributes:qt(qt({},t[0].attributes),{},{value:t[0].attributes.value.slice(0,r),dropCap:!0})}),qt(qt({},t[0]),{},{attributes:qt(qt({},t[0].attributes),{},{value:t[0].attributes.value.slice(r),dropCap:!0})}),...t.slice(1)]})}var n;if("link"===t[0].name&&0===t[0].children.length)return null;const r=Lt(t[0]);if(r.attributes.dropCap&&"paragraph"!==e.name){const n=qt(qt({},e),{},{attributes:qt(qt({},e.attributes),{},{dropCap:!0}),children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,n}const i=qt(qt({},e),{},{children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,i},Rt=e=>{const t=e[0];return t&&t.attributes.dropCap&&"text"!==t.name?Rt(t.children):e};var Wt=(e,t,n)=>{try{if(t&&Bt.includes(t)&&!n&&e.length>0){const t=e.find(e=>"paragraph"===e.name);if(!t||0===t.children.length)return e;const n=e.indexOf(t),r=Lt(t),i=Lt(t);Rt(r.children).splice(1);Rt(i.children).splice(0,1);const a=[...e];return a.splice(n,1,{name:"dropCap",attributes:{},children:[r]},i),a}}catch(t){return e}return e},Ht=(e,t)=>n=>{const r=Wt(n,e,t),i=r.length>0&&r.find(e=>"dropCap"===e.name);if(i){const e=r.indexOf(i);return r[e].children=r[e].children[0].children.slice(0,1),r[e+1].children=[r[e],...r[e+1].children],r.splice(e,1),r}return r};function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){Kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gt=e=>({name:"autoNewsletterPuff",attributes:{element:{value:"newsletter-puff",attributes:$t({label:"In your inbox"},e)}},children:[]}),Jt=[{section:"news",payload:Gt({code:"TNL-101",headline:"Daily Briefing",copy:"Our flagship newsletter featuring our top stories and analysis, delivered every morning.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F728c3e68-5311-4533-809a-b313a6503789.jpg?resize=800"})},{section:"business",payload:Gt({code:"TNL-103",headline:"Business briefing",copy:"Morning and midday updates on financial and economic news from our award-winning business team.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F306637af-2b6f-48fc-b264-d661b2067818.jpg?resize=800"})},{section:"scotland",payload:Gt({code:"TNL-134",headline:"Editor’s Choice – Scotland",copy:"The biggest stories from The Times and Sunday Times Scotland, every Saturday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F5777acf9-363f-4aa3-8176-1ea09cdae7d6.jpg?resize=800"})},{section:"money",payload:Gt({code:"TNL-107",headline:"Money newsletter",copy:"Personal finance and investment news from our money experts, every Monday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2Ffd44b15f-2fb8-4e5d-b409-315648b10646.jpg?resize=800"})},{section:"law",payload:Gt({code:"TNL-121",headline:"The Brief",copy:"Get expert analysis, news and commentary in The Brief, our legal editor's insider's guide, every Thursday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F27a231b4-5658-4852-a603-37c5210a946e.jpg?resize=800"})},{section:"home",payload:Gt({code:"TNL-113",headline:"Property newsletter",copy:"Inside Britain's most exclusive homes, expert advice and what's really happening in the property market, every Monday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"luxury",payload:Gt({code:"TNL-148",headline:"Luxury newsletter",copy:"Do you need more luxury in your life? Sign up to the Times Luxury newsletter with one click.",imageUri:"https://www.thetimes.co.uk/imageserver/image/%2Fmethode%2Ftimes%2Fprod%2Fweb%2Fbin%2Fcbd3c7a9-4d25-422a-b4a5-a48072778002.jpg?crop=1990%2C1322%2C0%2C0&resize=800"})},{section:"bricks & mortar",payload:Gt({code:"TNL-113",headline:"Property newsletter",copy:"Get expert advice and find out what's really happening in the property market.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"ireland",payload:Gt({code:"TNL-152",headline:"Best of Times Ireland newsletter:",copy:"The most compelling Irish news, business, sport and lifestyle stories from the week, every Sunday."})},{section:"irish sport",payload:Gt({code:"TNL-152",headline:"Best of Times Ireland newsletter:",copy:"The most compelling Irish news, business, sport and lifestyle stories from the week, every Sunday."})}],Qt=e=>e.find(e=>"interactive"===e.name&&"newsletter-puff"===e.attributes.element.value),Yt=(e,t,n)=>$t($t({},e),{},{children:e.children.reduce((e,r,i)=>i===t?[...e,n,r]:[...e,r],[])}),Xt=e=>{const t=e.findIndex(e=>"paragraph"!==e.name);return-1===t?e.length:t};var Zt=(e,t,n)=>r=>{if(t||Ve(n))return r;const i=(e=>{const t=Jt.find(t=>t.section===e.toLowerCase());return t?t.payload:void 0})(e);if(!i)return r;const a=r.find(e=>"paywall"===e.name);if(!a)return r;if(Qt(r)||Qt(a.children))return r;if(!((e,t)=>{const n=e.findIndex(e=>"paywall"===e.name),r=Xt(e),i=Xt(t.children);return r>=5||n===r&&r+i>=5})(r,a))return r;return r.reduce((e,t,n)=>3===n?[...e,i,t]:"paywall"===t.name?[...e,Yt(t,3-n,i)]:[...e,t],[])};function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rn=e=>t=>{const n=[...t];let r;const i=e?(r=n.findIndex(e=>"ad"===e.name),{children:n.slice(r)}):n.find(e=>"paywall"===e.name),a=e?n.slice(0,r).filter(e=>"paragraph"===e.name):n.filter(e=>"paragraph"===e.name);if(!i)return n;const o=i.children,c=o.map((e,t)=>tn(tn({},e),{},{index:t})).filter(e=>"paragraph"===e.name);c.pop();return[9,14,19,24].forEach((e,t)=>{if(!o.find(e=>e.name==="inlineAd".concat(t+1))){const n=c[e-a.length]?c[e-a.length].index:null;n&&null!==n&&o.splice(n+t+1,0,{name:"inlineAd".concat(t+1),children:[]})}}),e?[...t.slice(0,r),...o]:n};function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ln=function e(t){return t.map(t=>{if("paragraph"===t.name||"paywall"===t.name){if("paywall"===t.name){const n=e(t.children);return on(on({},t),{},{children:n})}if(1===t.children.length&&"unorderedList"===t.children[0].name)return on({},t.children[0])}return t})};var sn=e=>{const t=e.find(e=>"paywall"===e.name);if(!t||!Array.isArray(t.children))return e;const n=t.children;for(let e=0;e<n.length-2;e++)if("paragraph"===n[e].name&&(n[e+1].name.includes("inlineAd")||"ad"===n[e+1].name)&&"interactive"===n[e+2].name&&"times-travel-cta"===n[e+2].attributes.element.value){var r=[n[e+2],n[e+1]];n[e+1]=r[0],n[e+2]=r[1]}return e};function dn(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}function pn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,a=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return un(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"reduceArticleContent",(function(){return mn})),n.d(t,"KeylineItem",(function(){return Ye})),n.d(t,"ArticleKeylineItem",(function(){return Xe})),n.d(t,"ArticleLink",(function(){return re}));const mn=(e,t)=>e&&e.length>0&&t.reduce((e,t)=>t(e),e),fn=e=>{let t=e.analyticsStream,n=e.data,a=e.Header,o=e.Content,s=e.ContentFooter,p=e.logoUrl,f=e.receiveChildList,g=e.commentingConfig,y=e.articleDataFromRender,O=e.paidContentClassName,E=e.isPreview,k=e.swgProductId,P=e.getFallbackThumbnailUrl169,S=e.zephrDivs,_=e.showAudioPlayer,I=e.storefrontConfig;const z=n.commentsEnabled,A=n.content,T=n.dropcapsDisabled,N=n.id,F=n.section,D=n.url,M=n.headline,q=n.shortHeadline,U=n.expirableFlags,B=n.topics,L=n.relatedArticleSlice,R=n.template,W=n.savingEnabled,H=n.sharingEnabled,V=n.publishedTime,$=pn(Object(r.useState)(!1),2),K=$[0],G=$[1],J=Object(h.useSocialEmbedsContext)(),Q=J.isSocialEmbedAllowed,Y=J.isAllowedOnce;Object(r.useEffect)(()=>{(Q.twitter||Y.twitter)&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load()},[Q.twitter,Y.twitter]);const X=Object(r.useRef)(),Z=()=>{const e=X.current;if(e){const t=document.querySelectorAll(".responsive__InlineAdWrapper-sc-4v1r4q-17, .responsive__InlineAdWrapper-sc-4v1r4q-14, .responsive__FullWidthImg-sc-4v1r4q-4, .responsive__InteractiveContainer-sc-4v1r4q-2");let n=!1;t.forEach(t=>{if(t){const r=t.getBoundingClientRect();r.top<=e.getBoundingClientRect().bottom&&r.bottom>=e.getBoundingClientRect().top&&(n=!0)}}),e.style.opacity=n?"0":"1"}};Object(r.useEffect)(()=>{const e=!!JSON.parse(window.sessionStorage.getItem("verifyEmail"));G(e)},[]),Object(r.useEffect)(()=>{const e=X.current;return e&&(e.style.transition="opacity 0.2s ease"),Z(),window.addEventListener("scroll",Z),()=>{window.removeEventListener("scroll",Z)}},[]);const ee=y||{},te=ee.hostName,ne=ee.canonicalUrl,re=ee.breadcrumbs,ie=ee.categorisedArticles,oe=ee.deckApiUrl,ce=te&&ne?"".concat(te).concat(ne):D,le=[Ht(R,T),Zt(F,E,U),rn(E),Qe,ln,sn],se=mn(A,le),de=Ve(U),pe=se&&i.a.createElement(Ue,{id:n.id,analyticsStream:t,content:se,contextUrl:ce,section:F,articleHeadline:M,paidContentClassName:O,template:R,isPreview:E,isLiveOrBreaking:de,deckApiUrl:oe}),ue=(e=>{const t="indepth"===e;return ae()(c.TcView).withConfig({displayName:"responsive",componentId:"sc-15gvuj2-0"})(["box-sizing:content-box;justify-content:center;min-height:50px;display:flex;border-top-color:",";border-bottom-color:",";border-bottom-width:",";padding-top:",";padding-bottom:",";@media (min-width:768px){min-height:90px;}@media (min-width:1024px){min-height:250px;}"],b.colours.functional.keyline,b.colours.functional.keyline,t?"0":"1px",Object(b.spacing)(2),t?"0":Object(b.spacing)(2))})(R);f([{elementId:"last-paragraph",name:"end of article",eventNavigationName:"Article : View End"},{elementId:"related-articles",name:"related articles"}]);const me=te||"https://www.thetimes.co.uk",fe=i.a.createElement(w.a,{state:w.a.showSaveAndShareBar},i.a.createElement(v.MessageContext.Consumer,null,e=>{let t=e.showMessage;const n={articleId:N,articleHeadline:M,articleUrl:ce,onCopyLink:()=>t("Article link copied"),onSaveToMyArticles:()=>{},onShareOnEmail:()=>{},savingEnabled:W,sharingEnabled:H,hostName:me};return o?i.a.createElement(j.a,n):i.a.createElement(Dt,n)})),ge=pn(Object(r.useState)([]),2),he=ge[0],be=ge[1],ye=function(){var e,t=(e=function*(){const e=yield x();be(e)},function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){dn(a,r,i,o,c,"next",e)}function c(e){dn(a,r,i,o,c,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)(()=>{Object(c.CanShowPuzzleSidebar)(F)&&ye()},[c.CanShowPuzzleSidebar,F]),i.a.createElement(m.StickyProvider,null,i.a.createElement(h.TrackingContextProvider,{context:{component:"ArticleSkeleton",attrs:{article_name:M||q||"",section_details:F}},analyticsStream:t},K&&i.a.createElement(ct,null,i.a.createElement(h.Banner,{title:"Check your inbox",body:"Verify your email by clicking on the link sent to your inbox.",onClose:()=>{window.sessionStorage.setItem("verifyEmail",!1),G(!1)}})),E&&i.a.createElement("div",{className:"Container"},i.a.createElement("div",{className:"ArticleMetaBanner"},i.a.createElement("div",{className:"ArticleMetaBanner-field"},i.a.createElement("label",{htmlFor:"ArticleMetaBanner-uuid"},"UUID",i.a.createElement("input",{type:"text",placeholder:"UUID",name:"UUID",id:"ArticleMetaBanner-uuid",value:N,readOnly:!0})),i.a.createElement("button",{type:"button",className:"ArticleMetaBanner-button","data-clipboard-target":"#ArticleMetaBanner-uuid"},"Copy")))),i.a.createElement("div",{id:"article-marketing-header"}),i.a.createElement("article",{id:"article-main","data-article-identifier":n.id,"data-article-sectionname":F,"data-article-template":R},!!S&&i.a.createElement(C,{html:'<div id="nu-zephr-article-target-top-head"></div>'}),i.a.createElement(Ct,{article:n,articleUrl:ce,logoUrl:p,paidContentClassName:O,getFallbackThumbnailUrl169:P,swgProductId:k,breadcrumbs:re,domainSpecificUrl:me}),!!S&&i.a.createElement(C,{html:'<div id="nu-zephr-article-target-below-head"></div>'}),o?i.a.createElement(o,{content:pe,SaveAndShare:fe}):i.a.createElement(r.Fragment,null,i.a.createElement(ue,{key:"headerAd"},i.a.createElement(l.AdContainer,{slotName:"header",style:yt.adMarginStyle})),i.a.createElement(Ze,null,i.a.createElement(h.WelcomeBanner,null),!!S&&i.a.createElement(C,{html:'<div id="nu-zephr-article-target-top-maincontainer"></div>'}),i.a.createElement(et,{showAudioPlayer:_},!!S&&i.a.createElement(C,{html:'<div id="nu-zephr-article-target-top-headercontainer"></div>'}),i.a.createElement(a,null),fe,!!S&&i.a.createElement(C,{html:'<div id="nu-zephr-article-target-bottom-headercontainer"></div>'})),i.a.createElement(tt,null,i.a.createElement(at,null,Object(c.CanShowPuzzleSidebar)(F)&&i.a.createElement(rt,null,i.a.createElement(it,{ref:X},i.a.createElement(h.ArticleSidebar,{pageLink:"".concat(me,"/puzzles"),sectionTitle:"Puzzles",data:[{title:"Crossword",url:"".concat(me,"/puzzles/crossword"),imgUrl:"".concat(me,"/d/img/puzzles/new-illustrations/crossword-c7ae8934ef.png")},{title:"Polygon",url:he,imgUrl:"".concat(me,"/d/img/puzzles/new-illustrations/polygon-875ea55487.png")},{title:"Sudoku",url:"".concat(me,"/puzzles/sudoku"),imgUrl:"".concat(me,"/d/img/puzzles/new-illustrations/sudoku-ee2aea0209.png")}]}))),i.a.createElement(ot,{showMargin:Object(c.CanShowPuzzleSidebar)(F)},!!S&&i.a.createElement(C,{html:'<div id="nu-zephr-article-target-top-bodycontainer"></div>'}),pe,de&&i.a.createElement(w.a,{state:w.a.showLiveUpdateButton},i.a.createElement(nt,{"data-testid":"Update button container"},i.a.createElement(h.UpdateButtonWithDelay,{delay:8e3,update:!0,display:!0,label:"New update",handleClick:()=>(e=>{e.scroll({left:0,top:0}),e.location.reload(!0)})(window),updatedTime:n.publishedTime,articleId:n.id}))),i.a.createElement(It,{id:"paywall-portal-article-footer",componentName:"subscribe-cta"},!!S&&i.a.createElement(C,{html:'<div id="nu-zephr-article-target-paywall"></div>'})))),i.a.createElement(u.a,{rootMargin:Object(b.spacing)(40),threshold:0},e=>{let n=e.observed,r=e.registerNode;return i.a.createElement(d.a,{analyticsStream:t,articleId:N,articleHeadline:M,articleUrl:ce,section:F,publishedTime:V,savingEnabled:W,sharingEnabled:H,commentsEnabled:z,registerNode:r,relatedArticleSlice:L,categorisedArticles:ie,relatedArticlesVisible:!!n.get("related-articles"),commentingConfig:g,topics:B,storefrontConfig:I,breadcrumbs:re,domainSpecificUrl:me})}),!!S&&i.a.createElement(C,{html:'<div id="nu-zephr-article-target-bottom-bodycontainer"></div>'})),!!S&&i.a.createElement(C,{html:'<div id="nu-zephr-article-target-bottom-maincontainer"></div>'}))),s&&i.a.createElement(s,null),i.a.createElement(l.AdContainer,{slotName:"pixel"}),i.a.createElement(l.AdContainer,{slotName:"pixelteads"}),i.a.createElement(l.AdContainer,{slotName:"pixelskin"}))))};fn.defaultProps={adConfig:{},data:{content:[]},Header:()=>null,receiveChildList:()=>{},swgProductId:null,zephrDivs:!1};t.default=(e=>Object(g.withTrackingContext)(e,{getAttrs:e=>{let t=e.data,n=e.pageSection,r=e.navigationMode,i=e.referralUrl,a=void 0===i?"":i,o="",c=!1;const l=t.expirableFlags;if(window&&window.__TIMES_ACCESS_AND_IDENTITY__&&window.__TIMES_ACCESS_AND_IDENTITY__.hasAccess&&(c=!0),r){const e=r.isMyArticles,t=r.isPastSixDays;o=e?"my articles":t?"past 6 days":"current edition"}return{articleId:Le()(t,"id",""),article_topic_tags:t.topics?t.topics.map(e=>e.name):[],isLocked:c?"unlocked":"locked",bylines:Le()(t,"bylines[0].byline[0].children[0].attributes.value",""),headline:Le()(t,"headline",""),label:Le()(t,"label",""),pageName:"".concat(Le()(t,"slug",""),"-").concat(Le()(t,"shortIdentifier","")),edition_type:o,publishedTime:Le()(t,"publishedTime",""),parent_site:Le()(t,"publicationName",""),referralUrl:a,section:n||Le()(t,"section",""),template:Le()(t,"template","Default"),registrationType:Re(),customerType:We(),shared:He(),article_flag:$e(l)?$e(l):"no flag",article_template_name:Ve(l)?"live template":"standard template"}},trackingObjectName:"Article"}))(Object(g.withTrackScrollDepth)(e=>i.a.createElement(h.SocialEmbedsProvider,null,i.a.createElement(fn,e))))}]);
|
1
|
+
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=27)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){var n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/,i=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,d=l||s||Function("return this")();var p,u=Array.prototype,m=Function.prototype,f=Object.prototype,h=d["__core-js_shared__"],g=(p=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",b=m.toString,y=f.hasOwnProperty,w=f.toString,v=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=d.Symbol,E=u.splice,j=N(d,"Map"),x=N(Object,"create"),k=O?O.prototype:void 0,P=k?k.toString:void 0;function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function S(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function I(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function z(e,t){for(var i,a=0,o=(t=function(e,t){if(q(e))return!1;var i=typeof e;if("number"==i||"symbol"==i||"boolean"==i||null==e||U(e))return!0;return r.test(e)||!n.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:q(i=t)?i:F(i)).length;null!=e&&a<o;)e=e[D(t[a++])];return a&&a==o?e:void 0}function A(e){return!(!B(e)||(t=e,g&&g in t))&&(function(e){var t=B(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?v:c).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function T(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function N(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return A(n)?n:void 0}_.prototype.clear=function(){this.__data__=x?x(null):{}},_.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},_.prototype.get=function(e){var t=this.__data__;if(x){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return y.call(t,e)?t[e]:void 0},_.prototype.has=function(e){var t=this.__data__;return x?void 0!==t[e]:y.call(t,e)},_.prototype.set=function(e,t){return this.__data__[e]=x&&void 0===t?"__lodash_hash_undefined__":t,this},S.prototype.clear=function(){this.__data__=[]},S.prototype.delete=function(e){var t=this.__data__,n=I(t,e);return!(n<0)&&(n==t.length-1?t.pop():E.call(t,n,1),!0)},S.prototype.get=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},S.prototype.has=function(e){return I(this.__data__,e)>-1},S.prototype.set=function(e,t){var n=this.__data__,r=I(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new _,map:new(j||S),string:new _}},C.prototype.delete=function(e){return T(this,e).delete(e)},C.prototype.get=function(e){return T(this,e).get(e)},C.prototype.has=function(e){return T(this,e).has(e)},C.prototype.set=function(e,t){return T(this,e).set(e,t),this};var F=M((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(U(e))return P?P.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return i.test(e)&&n.push(""),e.replace(a,(function(e,t,r,i){n.push(r?i.replace(o,"$1"):t||e)})),n}));function D(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function M(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(M.Cache||C),n}M.Cache=C;var q=Array.isArray;function B(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==w.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:z(e,t);return void 0===r?n:r}},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t){e.exports=require("@times-components/ad/rnw")},function(e,t){e.exports=require("@times-components/sticky/rnw")},function(e,t){e.exports=require("@times-components/context/rnw")},function(e,t){e.exports=require("@times-components/tracking/rnw")},function(e,t){e.exports=require("@times-components/markup-forest/rnw")},function(e,t){e.exports=require("@times-components/user-state/rnw")},function(e,t){e.exports=require("@times-components/lazy-load/rnw")},function(e,t){e.exports=require("@times-components/save-and-share-bar/rnw")},function(e,t){e.exports=require("@times-components/link/rnw")},function(e,t){e.exports=require("@times-components/article-paragraph/rnw")},function(e,t){e.exports=require("@times-components/interactive-wrapper/rnw")},function(e,t){e.exports=require("@times-components/caption/rnw")},function(e,t){e.exports=require("@times-components/article-extras/rnw")},function(e,t){e.exports=require("@times-components/message-bar/rnw")},function(e,t){e.exports=require("@times-components/article-image/rnw")},function(e,t){e.exports=require("@times-components/key-facts/rnw")},function(e,t){e.exports=require("@times-components/markup/rnw")},function(e,t){e.exports=require("@times-components/pull-quote/rnw")},function(e,t){e.exports=require("@times-components/video/rnw")},function(e,t){e.exports=require("react-helmet-async")},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(4),o=n.n(a),c=n(7),l=n(19),s=n.n(l),d=n(13),p=n.n(d),u=n(8),m=n.n(u),f=n(10),h=n(3),g=n(1),b=n(12),y=n.n(b),w=n(20),v=n(14),O=n.n(v);function E(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}var j=function(){var e,t=(e=function*(){try{const e=yield fetch("https://api.thetimes.co.uk/graphql",{method:"POST",headers:{"x-use-standalone-puzzle-data":"true"},body:JSON.stringify({query:"\n query GetPuzzlesByType($type: String!) {\n puzzles(type: $type){\n list(first:1){\n shortIdentifier\n slug\n }\n }\n }\n",variables:{type:"polygon"}})});if(!e.ok)throw new Error("Network response was not ok: ".concat(e.status));const t=yield e.json(),n=t&&t.data&&t.data.puzzles&&t.data.puzzles.list;return n?n.map(e=>{let t=e.slug,n=e.shortIdentifier;return"".concat("/puzzles/word-puzzles","/").concat(t,"-").concat(n)}):[]}catch(e){return console.error("Error fetching puzzle data:",e),[]}},function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){E(a,r,i,o,c,"next",e)}function c(e){E(a,r,i,o,c,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function S(e){e.children;let t=e.element,n=void 0===t?"div":t,i=e.html,a=_(e,["children","element","html"]);return Object(r.createElement)(n,k(k({},a),{},{undefined:void 0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i}}))}var C=n(21),I=n.n(C),z=n(16),A=n.n(z),T=n(9),N=n.n(T),F=n(17),D=n.n(F),M=n(22),q=n.n(M),B=n(23),U=n.n(B),L=n(24),R=n.n(L),W=n(25),H=n.n(W),V=n(11),$=n.n(V),Q=n(6),K=n(15),G=n.n(K);const J={base:"\n color: ".concat(g.colours.functional.action,";\n font-family: ").concat(g.fontsWithFallback.bodyRegular,";\n line-height: 26px;\n font-size: ").concat(g.fontSizes.bodyMobile,"px;\n margin-bottom: ").concat(Object(g.spacing)(5),"px;\n margin-top: 0;\n "),medium:"\n font-size: ".concat(g.fontSizes.body,"px;\n line-height: 30px;\n ")},Y={base:"\n font-size: inherit;\n text-decoration: none;\n color: ".concat(g.colours.functional.action,";\n ")};function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const te=e=>{let t=e.children,n=e.target,r=e.url,a=e.onPress,o=e.dropCap;return i.a.createElement(i.a.Fragment,null,0===t.length?i.a.createElement(i.a.Fragment,null,i.a.createElement(G.a,{responsiveLinkStyles:J,target:n,onPress:a,url:r},r)," "):i.a.createElement(G.a,{underlined:!(o&&1===t[0].length),responsiveLinkStyles:o?Y:J,target:n,url:r,onPress:a},t))};te.defaultProps=Z(Z({},G.a.defaultProps),{},{onPress:()=>{},dropCap:!1});var ne,re=(ne=te,Object(f.withTrackEvents)(ne,{analyticsEvents:[{actionName:"Pressed",eventName:"onPress",getAttrs:e=>{let t=e.target;return{url:e.url,target:t,linkText:e.children[0]}},trackingName:"ArticleLink"}]})),ie=n(2),ae=n.n(ie),oe=n(18),ce=n.n(oe);function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const de=ae()(Q.TcView).withConfig({displayName:"inset-caption__InsetCaptionStyle",componentId:"la2hkf-0"})(["padding-left:",";@media (min-width:","px){padding-left:0px;}"],Object(g.spacing)(2),g.breakpoints.medium),pe=e=>{let t=e.caption,n=e.credits;return i.a.createElement(de,null,i.a.createElement(ce.a,{credits:n,text:t}))};pe.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},ce.a.defaultProps);var ue=pe;ae.a.div.withConfig({displayName:"responsive__ParagraphContainer",componentId:"sc-4v1r4q-0"})(["padding-left:",";padding-right:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(2),Object(g.spacing)(2),g.breakpoints.medium,g.breakpoints.wide),ae.a.p.withConfig({displayName:"responsive__Paragraph",componentId:"sc-4v1r4q-1"})(["color:",";font-family:",";line-height:26px;font-size:","px;margin-bottom:",";margin-top:0;display:block;@media (min-width:","px){font-size:","px;line-height:30px;}"],g.colours.functional.primary,g.fontsWithFallback.bodyRegular,g.fontSizes.bodyMobile,Object(g.spacing)(5),g.breakpoints.medium,g.fontSizes.body);const me=ae.a.div.withConfig({displayName:"responsive__InteractiveContainer",componentId:"sc-4v1r4q-2"})(["position:relative;margin-bottom:",";",";"],Object(g.spacing)(4),e=>e.fullWidth?Object(ie.css)(["width:100%;"]):Object(ie.css)(["padding:0 ",";@media (min-width:","px){width:80.8%;margin-left:auto;margin-right:auto;padding:0;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(2),g.breakpoints.medium,g.breakpoints.wide)),fe=ae()(Q.TcView).withConfig({displayName:"responsive__PrimaryImg",componentId:"sc-4v1r4q-3"})(["width:100%;flex-direction:column;padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(5),g.breakpoints.medium,g.breakpoints.wide),he=ae()(Q.TcView).withConfig({displayName:"responsive__FullWidthImg",componentId:"sc-4v1r4q-4"})(["padding-bottom:",";"],Object(g.spacing)(4)),ge=ae()(Q.TcView).withConfig({displayName:"responsive__SecondaryImg",componentId:"sc-4v1r4q-5"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(2),Object(g.spacing)(2),Object(g.spacing)(5),g.breakpoints.medium,g.breakpoints.wide),be=ae()(Q.TcView).withConfig({displayName:"responsive__InlineImg",componentId:"sc-4v1r4q-6"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:0;display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(2),Object(g.spacing)(2),g.breakpoints.medium,g.breakpoints.wide),ye=ae()(Q.TcView).withConfig({displayName:"responsive__PullQuoteResp",componentId:"sc-4v1r4q-7"})(["padding-left:",";padding-right:",";margin-bottom:",";@media (min-width:","px){width:50%;float:left;margin-right:",";margin-bottom:0px;margin-top:",";padding-left:0px;padding-right:0px;}"],Object(g.spacing)(2),Object(g.spacing)(2),Object(g.spacing)(2),g.breakpoints.medium,Object(g.spacing)(4),Object(g.spacing)(1)),we=ae()(Q.TcView).withConfig({displayName:"responsive__PullQuoteContainer",componentId:"sc-4v1r4q-8"})(["display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],g.breakpoints.medium,g.breakpoints.wide),ve="color: ".concat(g.colours.functional.primary,";\n font-family: ").concat(g.fontsWithFallback.headline,";\n font-weight: 400;\n margin: 0 auto ").concat(Object(g.spacing)(2),";\n padding-right: ").concat(Object(g.spacing)(2),";\n padding-left: ").concat(Object(g.spacing)(2),";\n\n @media (min-width: ").concat(g.breakpoints.medium,"px) {\n padding-left: 0;\n padding-right: 0;\n width: 80.8%;\n }\n\n @media (min-width: ").concat(g.breakpoints.wide,"px) {\n width: 56.2%;\n }"),Oe=ae.a.h2.withConfig({displayName:"responsive__Heading2",componentId:"sc-4v1r4q-9"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],ve,g.fontSizes.heading2Mobile,g.fontSizes.heading2Mobile,g.breakpoints.medium,g.fontSizes.heading2,g.fontSizes.heading2),Ee=ae.a.h3.withConfig({displayName:"responsive__Heading3",componentId:"sc-4v1r4q-10"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],ve,g.fontSizes.heading3Mobile,g.fontSizes.heading3Mobile,g.breakpoints.medium,g.fontSizes.heading3,g.fontSizes.heading3),je=ae.a.h4.withConfig({displayName:"responsive__Heading4",componentId:"sc-4v1r4q-11"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],ve,g.fontSizes.heading4Mobile,g.fontSizes.heading4Mobile,g.breakpoints.medium,g.fontSizes.heading4,g.fontSizes.heading4),xe=ae.a.h5.withConfig({displayName:"responsive__Heading5",componentId:"sc-4v1r4q-12"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],ve,g.fontSizes.heading5Mobile,g.fontSizes.heading5Mobile,g.breakpoints.medium,g.fontSizes.heading5,g.fontSizes.heading5),ke=ae.a.h6.withConfig({displayName:"responsive__Heading6",componentId:"sc-4v1r4q-13"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],ve,g.fontSizes.heading5Mobile,g.fontSizes.heading5Mobile,g.breakpoints.medium,g.fontSizes.heading5,g.fontSizes.heading5),Pe=ae.a.div.withConfig({displayName:"responsive__InlineAdWrapper",componentId:"sc-4v1r4q-14"})(["clear:both;min-height:283px;margin:30px 0;box-sizing:content-box;padding:0 0 10px;border-bottom:1px solid rgb(219,219,219);@media (min-width:768px){min-height:123px;}@media (min-width:1024px){min-height:283px;}"]),_e=ae.a.span.withConfig({displayName:"responsive__InlineAdTitle",componentId:"sc-4v1r4q-15"})(["border-bottom:1px solid rgb(219,219,219);color:#696969;flex:1 1 100%;font:normal ","px / 17px ",";letter-spacing:0.6px;margin:0 0 10px;padding:0 0 5px;text-align:center;text-transform:uppercase;display:block;"],g.fontSizes.teaser,g.fontsWithFallback.bodyRegular),Se=ae.a.ul.withConfig({displayName:"article-list__StyledUl",componentId:"sc-1m2quer-0"})(["color:",";display:block;font-family:",";line-height:26px;font-size:","px;margin:0 auto ",";padding-right:",";padding-left:",";@media (min-width:","px){font-size:","px;line-height:30px;padding-left:",";padding-right:0;width:80.8%;}@media (min-width:","px){width:56.2%;}"],g.colours.functional.primary,g.fontsWithFallback.bodyRegular,g.fontSizes.bodyMobile,Object(g.spacing)(5),Object(g.spacing)(2),Object(g.spacing)(6),g.breakpoints.medium,g.fontSizes.body,Object(g.spacing)(3),g.breakpoints.wide),Ce=ae.a.li.withConfig({displayName:"article-list__StyledLi",componentId:"sc-1m2quer-1"})(["margin-bottom:16px;list-style:square;color:",";font-family:",";line-height:26px;font-size:","px;p{width:100% !important;margin-block-start:16px;margin-block-end:0;&:empty{display:none;}}"],g.colours.functional.primary,g.fontsWithFallback.bodyRegular,g.fontSizes.bodyMobile);function Ie(){return(Ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){Te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ne=["c8bf6998-d498-11ed-b5c3-54651fc826e9"],Fe=e=>Ne.includes(e),De=e=>{switch(e){case"secondary":return ge;case"inline":return be;case"fullwidth":return he;default:return fe}},Me=(e,t,n)=>{const r=e.get(t)&&e.get(t).clientWidth?e.get(t).clientWidth:null;return r&&window.devicePixelRatio>1&&"indepth"===n&&1.5*r||r},qe=e=>{let t=e.content,n=e.contextUrl,r=e.section,a=e.paidContentClassName,o=e.template,l=e.isPreview,s=e.swgProductId,d=e.inArticlePuffFlag,u=e.isLiveOrBreaking,m=e.articleHeadline,f=e.id,b=e.deckApiUrl;return $()(t.map((e=>{let t=e.contextUrl,n=e.section;return e=>"ad"===e.name?Ae(Ae({},e),{},{attributes:Ae(Ae({},e.attributes),{},{contextUrl:t,section:n})}):e})({contextUrl:n,section:r})),(e=>{let t=e.paidContentClassName,n=e.template,r=e.analyticsStream,a=e.isPreview,o=e.isLiveOrBreaking,l=e.section,s=e.articleHeadline,d=e.articleId,u=e.deckApiUrl;return Ae(Ae({},U.a),{},{ad:e=>Fe(d)?null:i.a.createElement(Pe,null,i.a.createElement(_e,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inline-ad"})),inlineAd1:e=>Fe(d)?null:i.a.createElement(Pe,null,i.a.createElement(_e,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd1"})),inlineAd2:e=>Fe(d)?null:i.a.createElement(Pe,null,i.a.createElement(_e,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd2"})),inlineAd3:e=>Fe(d)?null:i.a.createElement(Pe,null,i.a.createElement(_e,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd3"})),inlineAd4:e=>Fe(d)?null:i.a.createElement(Pe,null,i.a.createElement(_e,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd4"})),dropCap:(e,t,n)=>i.a.createElement(N.a.Consumer,{key:e},e=>{let t=e.theme,r=t.dropCapFont,a=t.sectionColour,o=void 0===a?g.colours.section.default:a;return i.a.createElement(z.DropCapView,{colour:o,font:r},n)}),image(e,t){let r=t.id,a=t.display,o=t.ratio,c=t.url,l=t.caption,s=t.title,d=t.credits;const u=De(a);return i.a.createElement(p.a,{key:e,rootMargin:Object(g.spacing)(40),threshold:0},t=>{let p=t.observed,m=t.registerNode;return i.a.createElement("div",{id:e,ref:e=>m(e)},i.a.createElement("div",{id:r},i.a.createElement(u,null,i.a.createElement(I.a,{captionOptions:{caption:l,title:s,credits:d},imageOptions:{display:a,highResSize:Me(p,e,n),lowResQuality:3,lowResSize:400,ratio:o,uri:c}}))))})},interactive(e,t){let n=t.id,c=t.url,s=t.element,d=t.display;const p=s.attributes,m=s.value,f=u||"https://editorial-tm.newsapis.co.uk/prod/deck-component-data-api";switch(m){case"in-article-info-card":return i.a.createElement(N.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.InfoCard,{sectionColour:t.sectionColour})))});case"in-article-info-card-bulletpoints":return i.a.createElement(N.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.InfoCardBulletPoints,{sectionColour:t.sectionColour})))});case"in-article-big-numbers":return i.a.createElement(N.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.BigNumbers,{sectionColour:t.sectionColour})))});case"in-article-timelines":return i.a.createElement(N.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.Timelines,{sectionColour:t.sectionColour})))});case"gallery-carousel":return i.a.createElement(N.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.GalleryCarousel,{sectionColour:t.sectionColour})))});case"twitter-embed":case"instagram-embed":return i.a.createElement(me,{key:e},i.a.createElement(h.SocialMediaEmbed,{url:p.url,vendorName:m.split("-")[0],id:n}));case"times-embed-iframe-max":{const t=s.attributes&&s.attributes.src||"",r=t.includes("youtube"),a=t.includes("tiktok");return r&&a?i.a.createElement(me,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.SocialMediaEmbed,{url:a?decodeURIComponent(t):t,vendorName:r?"youtube":a&&"tiktok",id:n})):i.a.createElement(me,{key:e,fullWidth:"fullwidth"===d},i.a.createElement("div",{id:n},i.a.createElement(D.a,{attributes:p,element:m,key:e,source:c})))}case"times-travel-cta":{const t=s.attributes;return i.a.createElement(me,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.CtaButton,{attributes:t}))}case"times-text-collapse":{const t=s.attributes;return i.a.createElement(me,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.AffiliateLinkDisclaimer,{attributes:t}))}case"times-article-slices":{const t=s.attributes;return i.a.createElement(me,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.ArticleCard,{element:t}))}case"newsletter-puff":const t=p.code,u=p.copy,g=p.headline;return a?i.a.createElement("div",{id:n},i.a.createElement(h.PreviewNewsletterPuff,{copy:Object(h.safeDecodeURIComponent)(u),headline:Object(h.safeDecodeURIComponent)(g),section:l})):i.a.createElement("div",{id:n},i.a.createElement(h.InlineNewsletterPuff,{analyticsStream:r,key:e,code:t,copy:Object(h.safeDecodeURIComponent)(u),headline:Object(h.safeDecodeURIComponent)(g),section:l}));case"opta-cricket-scorecard":case"opta-cricket-scorecard-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaCricketScorecard,{competition:p.competition,match:p.match}));case"opta-football-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-football-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-football-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballSummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-lineups-v3":case"opta-football-top-scorers-v3":case"opta-football-match-commentary-v3":case"opta-football-hub":return null;case"opta-rugby-union-fixtures-v2":case"opta-rugby-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-rugby-union-standings-v2":case"opta-rugby-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-rugby-union-match-summary-v2":case"opta-rugby-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbySummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-rugby-union-match-stats-v2":case"opta-rugby-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"in-article-puff":return i.a.createElement(N.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.InArticlePuff,{sectionColour:t.sectionColour,forceImageAspectRatio:"3:2",isLiveOrBreaking:o})))});case"article-header":return i.a.createElement("div",{id:n},i.a.createElement(h.ArticleHeader,{updated:p.updated,breaking:p.breaking,headline:p.headline,authorSlug:p.slug,description:p.description}));default:return i.a.createElement(me,{key:e,fullWidth:"fullwidth"===d},i.a.createElement("div",{id:n},i.a.createElement(D.a,{attributes:p,element:m,key:e,source:c})))}},autoNewsletterPuff(e,t){const n=t.element.attributes,a=n.code,o=n.copy,c=n.headline;return i.a.createElement(h.AutoNewsletterPuff,{analyticsStream:r,key:e,code:a,copy:o,headline:c,section:l})},keyFacts:(e,t,n,r,a)=>i.a.createElement(q.a,{key:e,ast:a,section:l,headline:s,isLiveOrBreaking:o}),heading2:(e,t,n)=>i.a.createElement(Oe,null,n),heading3:(e,t,n)=>i.a.createElement(Ee,null,n),heading4:(e,t,n)=>i.a.createElement(je,null,n),heading5:(e,t,n)=>i.a.createElement(xe,null,n),heading6:(e,t,n)=>i.a.createElement(ke,null,n),link(e,t,n){const r=t.href,a=t.target,o=t.dropCap;return i.a.createElement(re,{dropCap:o,key:e,target:a,url:r},n)},listElement:(e,t,n)=>i.a.createElement(Ce,{key:e},n),unorderedList:(e,t,n)=>i.a.createElement(Se,{key:e},n),paragraph(e,t,n){const r=t&&t.id;return i.a.createElement(A.a,Ie({key:e},r?{id:r}:{}),n)},paywall:(e,n,r)=>i.a.createElement("span",{className:t,key:e},r),pullQuote(e,t,n){let r=t.caption,a=r.name,o=r.text,c=r.twitter;return i.a.createElement(N.a.Consumer,{key:e},e=>{let t=e.theme,r=t.pullQuoteFont,l=t.sectionColour,s=void 0===l?g.colours.section.default:l;return i.a.createElement(we,null,i.a.createElement(ye,null,i.a.createElement(R.a,{caption:a,font:r,quoteColour:s,text:o,twitter:c},n)))})},video(e,t){let n=t.id,r=t.is360,a=t.brightcovePolicyKey,o=t.brightcoveVideoId,c=t.brightcoveAccountId,l=t.brightcovePlayerId,s=t.caption,d=t.posterImageUrl;const p=De("primary");return i.a.createElement(p,{key:e},i.a.createElement("figure",{style:{margin:0}},i.a.createElement(Q.AspectRatioContainer,{aspectRatio:"16:9"},i.a.createElement(H.a,{id:n,is360:r,accountId:c,height:"100%",playerId:l,policyKey:a,poster:{uri:d},videoId:o,width:"100%"})),i.a.createElement("figcaption",null,i.a.createElement(ue,{caption:s}))))}})})({paidContentClassName:a,template:o,isPreview:l,swgProductId:s,inArticlePuffFlag:d,isLiveOrBreaking:u,articleId:f,section:r,articleHeadline:m,deckApiUrl:b}))};qe.propTypes={content:o.a.arrayOf(o.a.shape({attributes:o.a.object,children:o.a.arrayOf(o.a.object),name:o.a.string})).isRequired,contextUrl:o.a.string.isRequired,paidContentClassName:o.a.string,section:o.a.string};var Be=qe;o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func,o.a.shape({account:o.a.string.isRequired}).isRequired,o.a.string,o.a.bool,o.a.bool;var Ue=n(5),Le=n.n(Ue);const Re=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.registrationType?e.registrationType:""},We=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.customerType?e.customerType:""},He=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.isShared?"yes":"no"},Ve=e=>{const t=["LIVE","BREAKING"],n=e&&e.find(e=>t.includes(e.type.toUpperCase()));return n&&n.type},$e=e=>{if(!e)return[];const t=e.find(e=>null===e.expiryTime||(new Date).getTime()<new Date(e.expiryTime).getTime());return t&&t.type&&t.type.toLowerCase()};function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach((function(t){Ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Je=e=>{const t=e.find(e=>"paywall"===e.name);if(!t)return e;const n=t.children.filter(e=>"paragraph"===e.name).pop(),r=t.children.indexOf(n),i=t.children.map((e,t)=>t===r?Ke(Ke({},e),{},{attributes:Ke(Ke({},e.attributes),{},{id:"last-paragraph"})}):e);return e.map(e=>"paywall"===e.name?Ke(Ke({},e),{},{children:i}):e)};const Ye=ae.a.div.withConfig({displayName:"keylines__KeylineItem",componentId:"sc-1s03wwf-0"})(["border:solid ",";border-width:1px 0;& + &{margin-top:-1px !important;}"],g.colours.functional.keyline),Xe=ae()(Ye).withConfig({displayName:"keylines__ArticleKeylineItem",componentId:"sc-1s03wwf-1"})(["@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],g.breakpoints.medium,Object(g.spacing)(6),g.breakpoints.medium,g.breakpoints.wide,Object(g.spacing)(2),Object(g.spacing)(2)),Ze=ae.a.main.withConfig({displayName:"responsive__MainContainer",componentId:"sc-15gvuj2-1"})(["@media (min-width:","px){padding-top:",";margin:0 auto;}"],g.breakpoints.wide,Object(g.spacing)(4)),et=ae()(Q.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"sc-15gvuj2-2"})(["display:flex;z-index:1;> ","{order:3;}"],Xe),tt=ae.a.article.withConfig({displayName:"responsive__BodyContainer",componentId:"sc-15gvuj2-3"})(["display:block;order:4;"]),nt=ae.a.div.withConfig({displayName:"responsive__UpdateButtonContainer",componentId:"sc-15gvuj2-4"})(["position:sticky;bottom:50px;display:flex;width:100%;justify-content:center;@media (min-width:","px){bottom:80px;}@media (min-width:","px){bottom:120px;}"],g.breakpoints.medium,g.breakpoints.wide),rt=ae.a.div.withConfig({displayName:"responsive__SidebarWarpper",componentId:"sc-15gvuj2-5"})(["position:sticky;top:162px;display:none;left:100%;@media (min-width:","px){width:19.8333%;display:inline-block;}@media (min-width:","px){width:18.8333%;top:112px;}"],g.breakpoints.wide,g.breakpoints.huge),it=ae.a.div.withConfig({displayName:"responsive__PuzzlesSidebar",componentId:"sc-15gvuj2-6"})(["position:sticky;padding-left:",";z-index:1;@media (min-width:","px){padding-right:",";}@media (min-width:","px){padding-right:",";}"],Object(g.spacing)(4),g.breakpoints.wide,Object(g.spacing)(8),g.breakpoints.huge,Object(g.spacing)(10)),at=ae.a.div.withConfig({displayName:"responsive__ArticleWrapper",componentId:"sc-15gvuj2-7"})(["position:relative;"]),ot=ae.a.div.withConfig({displayName:"responsive__ArticleContent",componentId:"sc-15gvuj2-8"})(["@media (min-width:","px){margin-top:",";transition:margin-top 0.2s ease;}"],g.breakpoints.wide,e=>e.showMargin?"-335px":"0"),ct=ae.a.div.withConfig({displayName:"responsive__EmailBannerContainer",componentId:"sc-15gvuj2-9"})(["position:sticky;top:80px;width:100%;z-index:100;display:flex;justify-content:center;height:100%;@media (max-width:","px){max-width:327px;height:100px;margin:auto;}"],g.breakpoints.medium);function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pt=e=>{const t=Object(g.styleguide)({scale:e}),n=t.colours,r=t.fontFactory,i=t.spacing,a=t.lineHeight;return{ad:{borderBottomColor:n.functional.keyline,borderBottomWidth:1,borderTopColor:n.functional.keyline,borderTopWidth:1,marginBottom:i(4),padding:i(2)},articleLink:st(st({color:n.functional.action},r({font:"body",fontSize:"bodyMobile"})),{},{lineHeight:a({font:"body",fontSize:"bodyMobile"}),marginBottom:i(5),marginTop:0}),articleMainContentRow:{paddingLeft:i(2),paddingRight:i(2)},articleTextElement:st(st({},r({font:"body",fontSize:"bodyMobile"})),{},{color:n.functional.primary,marginBottom:i(5)}),containerTablet:{alignSelf:"center"},imageContainerTablet:{alignSelf:"center"},interactiveContainer:{marginBottom:i(4),paddingLeft:i(2),paddingRight:i(2)},interactiveContainerTablet:{alignSelf:"center",width:g.tabletWidth},interactiveContainerFullWidth:{width:"100%",paddingLeft:0,paddingRight:0},leadAsset:{marginBottom:i(2)},primaryContainer:{flexDirection:"column",paddingBottom:i(5),width:"100%"},heading2:st(st({},r({font:"headline",fontSize:"heading2Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading3:st(st({},r({font:"headline",fontSize:"heading3Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading4:st(st({},r({font:"headline",fontSize:"heading4Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading5:st(st({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading6:st(st({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black})}};var ut={articleContainer:{backgroundColor:g.colours.functional.gutter},articleMainContentRow:{paddingLeft:Object(g.spacing)(2),paddingRight:Object(g.spacing)(2)}};function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gt=pt(),bt=ft(ft({},gt),{},{ad:ft(ft({},gt.ad),{},{marginBottom:Object(g.spacing)(6),marginTop:Object(g.spacing)(6),width:"100%"}),articleTextElement:ft(ft({},gt.articleTextElement),{},{marginTop:0}),adMarginStyle:{marginBottom:0}});var yt=ft(ft({},ut),bt),wt=n(26);const vt=["37a19ac4-1cbb-11ee-8198-bf96b6365670"];function Ot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return null;const n=e.reduce((e,t)=>(e.push(...t.slices),e),[]),r=n.reduce((e,t)=>(e.push(...t.sections),e),[]);return r.map(e=>t+e.title)}const Et={SUNDAYTIMES:"The Sunday Times",TIMES:"The Times"},jt=e=>Le()(e,"crop169.url",null),xt=e=>jt(Le()(e,"leadAsset.posterImage",Le()(e,"leadAsset",null))),kt=e=>jt(Le()(e,"leadAsset",null)),Pt=e=>(e.hasVideo?xt:kt)(e),_t=e=>{const t=e.hasVideo,n=e.leadAsset,r=t?xt(e):(e=>{const t=e.tiles&&e.tiles.find(e=>Le()(e.leadAsset,"crop169.url",null));if(t)return t;const n=Le()(e.listingAsset,"crop169.url",null);return n||Le()(e.leadAsset,"crop169.url",null)})(e);if(r)return r;if(!n)return null;const i=n&&n.posterImage?n.posterImage:n,a=i.crop32,o=i.crop1251,c=i.crop11,l=i.crop45,s=i.crop23,d=i.crop2251,p=a||o||c||l||s||d;return p?p.url:""};function St(e){let t=e.article,n=e.articleUrl,r=e.logoUrl,a=e.paidContentClassName,o=e.getFallbackThumbnailUrl169,c=e.swgProductId,l=e.breadcrumbs,s=e.domainSpecificUrl;const d=t.descriptionMarkup,p=t.headline,u=t.leadAsset,m=t.publicationName,f=t.shortHeadline,h=t.publishedTime,g=t.updatedTime,b=t.hasVideo,y=t.seoDescription,w=t.keywords,v=u||{},O=v.brightcoveAccountId,E=v.brightcoveVideoId,j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="";if(void 0!==e)for(let n=0;n<e.length;n+=1)"LIVE"===e[n].type&&(t=e[n].expiryTime);return t}(t.expirableFlags),x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(void 0!==e){return void 0!==e.find(e=>"LIVE"===e.type&&(Date.now()<new Date(e.expiryTime)||null===e.expiryTime))}return!1}(t.expirableFlags),k=Et[m],P=function(e){const t=e.bylines;if(!t)return null;const n=t.reduce((e,t)=>(Array.isArray(t.byline)?e.push(...t.byline):e.push(t.byline),e),[]);return Object(V.renderTreeAsText)({children:n})}(t),_=y||(Array.isArray(d)&&d.length?Object(V.renderTreeAsText)({children:d}):null),S=function(e){const t=Ot(e.tiles);if(null==t)return null;const n=t.filter(e=>"News"!==e);return n.length?n[0]:"News"}(t),C=function(e){const t=Ot(e.tiles,"Section:");return null==t?null:t.filter((e,t,n)=>n.indexOf(e)===t).slice(0,2).toString()}(t),I=_t(t)||(o?o():null),z=Object(Q.appendToImageURL)(Pt(t),"resize",1200)||I,A=function(e,t){return e.bylines?(n=e,n.bylines.map(e=>e.author).filter(e=>e)).map(e=>{let n=e.name,r=e.jobTitle,i=e.twitter,a=e.slug;const o="".concat(t,"/profile/").concat(a);return{"@type":"Person",name:n,jobTitle:r,sameAs:i?[o,"https://twitter.com/".concat(i)]:o}}):[];var n}(t,s),T=Le()(u,"caption",null),N=p||f||"",F=h&&new Date(h).toISOString(),D=g||F,M=P?{"@type":"Person",name:P}:null,q=(A&&A.length?A:M)||{"@type":"Organization",name:"The Times"},B={"@type":"Organization",name:k,logo:{"@type":"ImageObject",url:r}},U=((e,t,n)=>{const r=[];if(null===e)return r;const i=e.content,a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=/\D+/g,r=e.replace(n,""),i=/\b(\w)/g,a=t.match(i),o=null===a?"":a.join("");return"u_".concat(r).concat(o)};if(void 0!==i){let o;const c=i=>{for(let l=0;l<i.length;l+=1)if("interactive"===i[l].name){if(i[l].attributes.element&&"article-header"===i[l].attributes.element.value){void 0!==o&&r.push(o);const c=i[l].attributes.element.attributes;o={"@type":"BlogPosting",headline:c.headline,datePublished:c.updated,dateModified:c.updated,publisher:t,url:"".concat(e.url,"#").concat(a(c.updated,c.headline)),author:n}}}else if("paragraph"===i[l].name){if(void 0!==o){const e=Le()(i[l],"children[0].attributes.value","");o.articleBody?o.articleBody+=" ".concat(e):o.articleBody=e}}else"image"===i[l].name?void 0!==o&&(o.image={"@type":"ImageObject",url:i[l].attributes.url,caption:i[l].attributes.caption}):"video"===i[l].name?void 0!==o&&(o.video={"@type":"VideoObject",thumbnail:i[l].attributes.posterImageUrl}):"paywall"===i[l].name&&i[l].children&&i[l].children.length>0&&c(i[l].children)};c(i),void 0!==o&&r.push(o)}return r})(t,B,q),L={"@context":"https://schema.org","@type":"NewsArticle",headline:N,publisher:{"@type":"Organization",name:k,logo:{"@type":"ImageObject",url:r}},mainEntityOfPage:{"@type":"WebPage","@id":n},dateCreated:h,datePublished:F,isAccessibleForFree:!1,hasPart:{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(a)},image:{"@type":"ImageObject",url:z,caption:T},thumbnailUrl:I,dateModified:D,author:q,articleSection:S,keywords:C,url:n};c&&(L.isPartOf={"@type":["CreativeWork","Product"],name:"The Times & The Sunday Times",productID:c});const R=b?{"@context":"https://schema.org","@type":"VideoObject",name:u&&u.title?u.title:N,uploadDate:D,thumbnailUrl:I,description:Array.isArray(d)&&d.length?Object(V.renderTreeAsText)({children:d}):y||u.title||N,contentUrl:"https://players.brightcove.net/".concat(O,"/default_default/index.html?videoId=").concat(E)}:null,W={"@context":"https://schema.org","@type":"LiveBlogPosting",headline:p,description:y,mainEntityOfPage:{"@type":"WebPage","@id":n},datePublished:h,dateModified:g,coverageStartTime:h,coverageEndTime:j,url:n,keywords:w,image:{"@type":"ImageObject",url:z,caption:T},publisher:B,author:q,liveBlogUpdate:U,articleSection:S},H=vt.includes(t.id),$=l&&l.length?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:l.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.title,item:"".concat(s,"/").concat(e.slug)}))}:null;return i.a.createElement(wt.Helmet,{encodeSpecialCharacters:!1},i.a.createElement("title",null,N),H&&i.a.createElement("meta",{name:"robots",content:"noindex"}),i.a.createElement("meta",{name:"robots",content:"max-image-preview:large"}),i.a.createElement("meta",{content:N,name:"article:title"}),i.a.createElement("meta",{content:k,name:"article:publication"}),_&&i.a.createElement("meta",{content:_,name:"description"}),P&&i.a.createElement("meta",{content:P,name:"author"}),i.a.createElement("meta",{content:N,property:"og:title"}),i.a.createElement("meta",{content:"article",property:"og:type"}),i.a.createElement("meta",{content:n,property:"og:url"}),_&&i.a.createElement("meta",{content:_,property:"og:description"}),z&&i.a.createElement("meta",{content:z,property:"og:image"}),b&&i.a.createElement("meta",{name:"robots",content:"max-video-preview:-1"}),i.a.createElement("meta",{content:N,name:"twitter:title"}),i.a.createElement("meta",{content:"summary_large_image",name:"twitter:card"}),i.a.createElement("meta",{content:n,name:"twitter:url"}),_&&i.a.createElement("meta",{content:_,name:"twitter:description"}),z&&i.a.createElement("meta",{content:z,name:"twitter:image"}),x&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(W)),i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(L)),R&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(R)),$&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify($)),i.a.createElement("script",{type:"text/javascript",async:!0,src:"https://platform.twitter.com/widgets.js"}))}St.defaultProps={swgProductId:null,breadcrumbs:[]};var Ct=St;var It=e=>{let t=e.id,n=e.componentName;if("undefined"!=typeof window){const e=Le()(window,"paywallComponent.".concat(n));if(e)return i.a.createElement("div",{id:t,dangerouslySetInnerHTML:{__html:e}})}return i.a.createElement("div",{id:t})};function zt(){return(zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const At=ae.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareContainer",componentId:"hqppv0-0"})(["background-color:",";height:60px;display:flex;align-items:center;",";"],g.colours.functional.white,e=>e.isClient&&[u.selectors.sizer(Object(ie.css)(["border-bottom:1px solid transparent;will-change:border-bottom-color;"])),u.selectors.sticky(Object(ie.css)(["will-change:height,box-shadow;"])),Object(u.computeProgressStyles)(e=>Object(ie.css)(["height:","px;box-shadow:0 2px 5px 0 ",";",";"],60-10*e,g.colours.functional.greyStickyBarBoxShadow,u.selectors.stickySizer(Object(ie.css)(["border-bottom-color:",";"],g.colours.functional.greyStickyBarBorderBottom))))]),Tt=ae.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareItem",componentId:"hqppv0-1"})(["order:3;& + &{margin-top:-1px !important;}@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],g.breakpoints.medium,Object(g.spacing)(2),g.breakpoints.medium,g.breakpoints.wide,Object(g.spacing)(2),Object(g.spacing)(2));function Nt(e){return i.a.createElement(Q.ServerClientRender,{client:()=>i.a.createElement(At,zt({isClient:!0},e)),server:()=>i.a.createElement(At,e)})}const Ft=Object(u.mediaQuery)("(max-width: ".concat(g.breakpoints.huge,"px)"));var Dt=function(e){return i.a.createElement(Tt,null,i.a.createElement(m.a,{Component:Nt,shouldBeSticky:Ft},i.a.createElement(O.a,e)))};function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){Bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ut=["indepth","maincomment","magazinestandard","magazinecomment"],Lt=e=>{const t=e.children;if(0===t.length)return e;if("text"===t[0].name){const r=(n=Le()(t[0],"attributes.value[0]"),/'|"|‘|“/.test(n)&&t[0].attributes.value.length>1?2:1);return qt(qt({},e),{},{attributes:qt({},e.attributes),children:[qt(qt({},t[0]),{},{attributes:qt(qt({},t[0].attributes),{},{value:t[0].attributes.value.slice(0,r),dropCap:!0})}),qt(qt({},t[0]),{},{attributes:qt(qt({},t[0].attributes),{},{value:t[0].attributes.value.slice(r),dropCap:!0})}),...t.slice(1)]})}var n;if("link"===t[0].name&&0===t[0].children.length)return null;const r=Lt(t[0]);if(r.attributes.dropCap&&"paragraph"!==e.name){const n=qt(qt({},e),{},{attributes:qt(qt({},e.attributes),{},{dropCap:!0}),children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,n}const i=qt(qt({},e),{},{children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,i},Rt=e=>{const t=e[0];return t&&t.attributes.dropCap&&"text"!==t.name?Rt(t.children):e};var Wt=(e,t,n)=>{try{if(t&&Ut.includes(t)&&!n&&e.length>0){const t=e.find(e=>"paragraph"===e.name);if(!t||0===t.children.length)return e;const n=e.indexOf(t),r=Lt(t),i=Lt(t);Rt(r.children).splice(1);Rt(i.children).splice(0,1);const a=[...e];return a.splice(n,1,{name:"dropCap",attributes:{},children:[r]},i),a}}catch(t){return e}return e},Ht=(e,t)=>n=>{const r=Wt(n,e,t),i=r.length>0&&r.find(e=>"dropCap"===e.name);if(i){const e=r.indexOf(i);return r[e].children=r[e].children[0].children.slice(0,1),r[e+1].children=[r[e],...r[e+1].children],r.splice(e,1),r}return r};function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){Qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kt=e=>({name:"autoNewsletterPuff",attributes:{element:{value:"newsletter-puff",attributes:$t({label:"In your inbox"},e)}},children:[]}),Gt=[{section:"news",payload:Kt({code:"TNL-101",headline:"Daily Briefing",copy:"Our flagship newsletter featuring our top stories and analysis, delivered every morning.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F728c3e68-5311-4533-809a-b313a6503789.jpg?resize=800"})},{section:"business",payload:Kt({code:"TNL-103",headline:"Business briefing",copy:"Morning and midday updates on financial and economic news from our award-winning business team.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F306637af-2b6f-48fc-b264-d661b2067818.jpg?resize=800"})},{section:"scotland",payload:Kt({code:"TNL-134",headline:"Editor’s Choice – Scotland",copy:"The biggest stories from The Times and Sunday Times Scotland, every Saturday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F5777acf9-363f-4aa3-8176-1ea09cdae7d6.jpg?resize=800"})},{section:"money",payload:Kt({code:"TNL-107",headline:"Money newsletter",copy:"Personal finance and investment news from our money experts, every Monday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2Ffd44b15f-2fb8-4e5d-b409-315648b10646.jpg?resize=800"})},{section:"law",payload:Kt({code:"TNL-121",headline:"The Brief",copy:"Get expert analysis, news and commentary in The Brief, our legal editor's insider's guide, every Thursday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F27a231b4-5658-4852-a603-37c5210a946e.jpg?resize=800"})},{section:"home",payload:Kt({code:"TNL-113",headline:"Property newsletter",copy:"Inside Britain's most exclusive homes, expert advice and what's really happening in the property market, every Monday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"luxury",payload:Kt({code:"TNL-148",headline:"Luxury newsletter",copy:"Do you need more luxury in your life? Sign up to the Times Luxury newsletter with one click.",imageUri:"https://www.thetimes.co.uk/imageserver/image/%2Fmethode%2Ftimes%2Fprod%2Fweb%2Fbin%2Fcbd3c7a9-4d25-422a-b4a5-a48072778002.jpg?crop=1990%2C1322%2C0%2C0&resize=800"})},{section:"bricks & mortar",payload:Kt({code:"TNL-113",headline:"Property newsletter",copy:"Get expert advice and find out what's really happening in the property market.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"ireland",payload:Kt({code:"TNL-152",headline:"Best of Times Ireland newsletter:",copy:"The most compelling Irish news, business, sport and lifestyle stories from the week, every Sunday."})},{section:"irish sport",payload:Kt({code:"TNL-152",headline:"Best of Times Ireland newsletter:",copy:"The most compelling Irish news, business, sport and lifestyle stories from the week, every Sunday."})}],Jt=e=>e.find(e=>"interactive"===e.name&&"newsletter-puff"===e.attributes.element.value),Yt=(e,t,n)=>$t($t({},e),{},{children:e.children.reduce((e,r,i)=>i===t?[...e,n,r]:[...e,r],[])}),Xt=e=>{const t=e.findIndex(e=>"paragraph"!==e.name);return-1===t?e.length:t};var Zt=(e,t,n)=>r=>{if(t||Ve(n))return r;const i=(e=>{const t=Gt.find(t=>t.section===e.toLowerCase());return t?t.payload:void 0})(e);if(!i)return r;const a=r.find(e=>"paywall"===e.name);if(!a)return r;if(Jt(r)||Jt(a.children))return r;if(!((e,t)=>{const n=e.findIndex(e=>"paywall"===e.name),r=Xt(e),i=Xt(t.children);return r>=5||n===r&&r+i>=5})(r,a))return r;return r.reduce((e,t,n)=>3===n?[...e,i,t]:"paywall"===t.name?[...e,Yt(t,3-n,i)]:[...e,t],[])};function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rn=e=>t=>{const n=[...t];let r;const i=e?(r=n.findIndex(e=>"ad"===e.name),{children:n.slice(r)}):n.find(e=>"paywall"===e.name),a=e?n.slice(0,r).filter(e=>"paragraph"===e.name):n.filter(e=>"paragraph"===e.name);if(!i)return n;const o=i.children,c=o.map((e,t)=>tn(tn({},e),{},{index:t})).filter(e=>"paragraph"===e.name);c.pop();return[9,14,19,24].forEach((e,t)=>{if(!o.find(e=>e.name==="inlineAd".concat(t+1))){const n=c[e-a.length]?c[e-a.length].index:null;n&&null!==n&&o.splice(n+t+1,0,{name:"inlineAd".concat(t+1),children:[]})}}),e?[...t.slice(0,r),...o]:n};function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ln=function e(t){return t.map(t=>{if("paragraph"===t.name||"paywall"===t.name){if("paywall"===t.name){const n=e(t.children);return on(on({},t),{},{children:n})}if(1===t.children.length&&"unorderedList"===t.children[0].name)return on({},t.children[0])}return t})};var sn=e=>{const t=e.find(e=>"paywall"===e.name);if(!t||!Array.isArray(t.children))return e;const n=t.children;for(let e=0;e<n.length-2;e++)if("paragraph"===n[e].name&&(n[e+1].name.includes("inlineAd")||"ad"===n[e+1].name)&&"interactive"===n[e+2].name&&"times-travel-cta"===n[e+2].attributes.element.value){var r=[n[e+2],n[e+1]];n[e+1]=r[0],n[e+2]=r[1]}return e};function dn(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}function pn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,a=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return un(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"reduceArticleContent",(function(){return mn})),n.d(t,"KeylineItem",(function(){return Ye})),n.d(t,"ArticleKeylineItem",(function(){return Xe})),n.d(t,"ArticleLink",(function(){return re}));const mn=(e,t)=>e&&e.length>0&&t.reduce((e,t)=>t(e),e),fn=e=>{let t=e.analyticsStream,n=e.data,a=e.Header,o=e.Content,l=e.ContentFooter,d=e.logoUrl,m=e.receiveChildList,f=e.commentingConfig,b=e.articleDataFromRender,v=e.paidContentClassName,E=e.isPreview,x=e.swgProductId,k=e.getFallbackThumbnailUrl169,P=e.zephrDivs,_=e.showAudioPlayer;const C=n.commentsEnabled,I=n.content,z=n.dropcapsDisabled,A=n.id,T=n.section,N=n.url,F=n.headline,D=n.shortHeadline,M=n.expirableFlags,q=n.topics,B=n.relatedArticleSlice,U=n.template,L=n.savingEnabled,R=n.sharingEnabled,W=n.publishedTime,H=pn(Object(r.useState)(!1),2),V=H[0],$=H[1],K=Object(h.useSocialEmbedsContext)(),G=K.isSocialEmbedAllowed,J=K.isAllowedOnce;Object(r.useEffect)(()=>{(G.twitter||J.twitter)&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load()},[G.twitter,J.twitter]);const Y=Object(r.useRef)(),X=()=>{const e=Y.current;if(e){const t=document.querySelectorAll(".responsive__InlineAdWrapper-sc-4v1r4q-17, .responsive__InlineAdWrapper-sc-4v1r4q-14, .responsive__FullWidthImg-sc-4v1r4q-4, .responsive__InteractiveContainer-sc-4v1r4q-2");let n=!1;t.forEach(t=>{if(t){const r=t.getBoundingClientRect();r.top<=e.getBoundingClientRect().bottom&&r.bottom>=e.getBoundingClientRect().top&&(n=!0)}}),e.style.opacity=n?"0":"1"}};Object(r.useEffect)(()=>{const e=!!JSON.parse(window.sessionStorage.getItem("verifyEmail"));$(e)},[]),Object(r.useEffect)(()=>{const e=Y.current;return e&&(e.style.transition="opacity 0.2s ease"),X(),window.addEventListener("scroll",X),()=>{window.removeEventListener("scroll",X)}},[]);const Z=b||{},ee=Z.hostName,te=Z.canonicalUrl,ne=Z.breadcrumbs,re=Z.categorisedArticles,ie=Z.deckApiUrl,oe=ee&&te?"".concat(ee).concat(te):N,ce=N&&N.split("/").filter(Boolean)[0]||null,le=!!ce&&["culture","life-style"].includes(ce),se=[Ht(U,z),Zt(T,E,M),rn(E),Je,ln,sn],de=mn(I,se),pe=Ve(M),ue=de&&i.a.createElement(Be,{id:n.id,analyticsStream:t,content:de,contextUrl:oe,section:T,articleHeadline:F,paidContentClassName:v,template:U,isPreview:E,isLiveOrBreaking:pe,deckApiUrl:ie}),me=(e=>{const t="indepth"===e;return ae()(Q.TcView).withConfig({displayName:"responsive",componentId:"sc-15gvuj2-0"})(["box-sizing:content-box;justify-content:center;min-height:50px;display:flex;border-top-color:",";border-bottom-color:",";border-bottom-width:",";padding-top:",";padding-bottom:",";@media (min-width:768px){min-height:90px;}@media (min-width:1024px){min-height:250px;}"],g.colours.functional.keyline,g.colours.functional.keyline,t?"0":"1px",Object(g.spacing)(2),t?"0":Object(g.spacing)(2))})(U);m([{elementId:"last-paragraph",name:"end of article",eventNavigationName:"Article : View End"},{elementId:"related-articles",name:"related articles"}]);const fe=ee||"https://www.thetimes.co.uk",he=i.a.createElement(y.a,{state:y.a.showSaveAndShareBar},i.a.createElement(w.MessageContext.Consumer,null,e=>{let t=e.showMessage;const n={articleId:A,articleHeadline:F,articleUrl:oe,onCopyLink:()=>t("Article link copied"),onSaveToMyArticles:()=>{},onShareOnEmail:()=>{},savingEnabled:L,sharingEnabled:R,hostName:fe};return o?i.a.createElement(O.a,n):i.a.createElement(Dt,n)})),ge=pn(Object(r.useState)([]),2),be=ge[0],ye=ge[1],we=function(){var e,t=(e=function*(){const e=yield j();ye(e)},function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){dn(a,r,i,o,c,"next",e)}function c(e){dn(a,r,i,o,c,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)(()=>{le&&we()},[le]),i.a.createElement(u.StickyProvider,null,i.a.createElement(h.TrackingContextProvider,{context:{component:"ArticleSkeleton",attrs:{article_name:F||D||"",section_details:T}},analyticsStream:t},V&&i.a.createElement(ct,null,i.a.createElement(h.Banner,{title:"Check your inbox",body:"Verify your email by clicking on the link sent to your inbox.",onClose:()=>{window.sessionStorage.setItem("verifyEmail",!1),$(!1)}})),E&&i.a.createElement("div",{className:"Container"},i.a.createElement("div",{className:"ArticleMetaBanner"},i.a.createElement("div",{className:"ArticleMetaBanner-field"},i.a.createElement("label",{htmlFor:"ArticleMetaBanner-uuid"},"UUID",i.a.createElement("input",{type:"text",placeholder:"UUID",name:"UUID",id:"ArticleMetaBanner-uuid",value:A,readOnly:!0})),i.a.createElement("button",{type:"button",className:"ArticleMetaBanner-button","data-clipboard-target":"#ArticleMetaBanner-uuid"},"Copy")))),i.a.createElement("div",{id:"article-marketing-header"}),i.a.createElement("article",{id:"article-main","data-article-identifier":n.id,"data-article-sectionname":T,"data-article-template":U},!!P&&i.a.createElement(S,{html:'<div id="nu-zephr-article-target-top-head"></div>'}),i.a.createElement(Ct,{article:n,articleUrl:oe,logoUrl:d,paidContentClassName:v,getFallbackThumbnailUrl169:k,swgProductId:x,breadcrumbs:ne,domainSpecificUrl:fe}),!!P&&i.a.createElement(S,{html:'<div id="nu-zephr-article-target-below-head"></div>'}),o?i.a.createElement(o,{content:ue,SaveAndShare:he}):i.a.createElement(r.Fragment,null,i.a.createElement(me,{key:"headerAd"},i.a.createElement(c.AdContainer,{slotName:"header",style:yt.adMarginStyle})),i.a.createElement(Ze,null,i.a.createElement(h.WelcomeBanner,null),!!P&&i.a.createElement(S,{html:'<div id="nu-zephr-article-target-top-maincontainer"></div>'}),i.a.createElement(et,{showAudioPlayer:_},!!P&&i.a.createElement(S,{html:'<div id="nu-zephr-article-target-top-headercontainer"></div>'}),i.a.createElement(a,null),he,!!P&&i.a.createElement(S,{html:'<div id="nu-zephr-article-target-bottom-headercontainer"></div>'})),i.a.createElement(tt,null,i.a.createElement(at,null,le&&i.a.createElement(rt,null,i.a.createElement(it,{ref:Y},"life-style"===ce?i.a.createElement(h.ArticleSidebar,{pageLink:"".concat(fe,"/puzzles"),sectionTitle:"Puzzles",data:[{title:"Crossword",url:"".concat(fe,"/puzzles/crossword"),imgUrl:"https://www.thetimes.com/d/img/puzzles/new-illustrations/crossword-c7ae8934ef.png"},{title:"Polygon",url:be,imgUrl:"https://www.thetimes.com/d/img/puzzles/new-illustrations/polygon-875ea55487.png"},{title:"Sudoku",url:"".concat(fe,"/puzzles/sudoku"),imgUrl:"https://www.thetimes.com/d/img/puzzles/new-illustrations/sudoku-ee2aea0209.png"}]}):i.a.createElement(h.QuizleSidebar,{pageLink:"".concat(fe,"/quizle"),sectionTitle:"Today's Quizle"}))),i.a.createElement(ot,{showMargin:le},!!P&&i.a.createElement(S,{html:'<div id="nu-zephr-article-target-top-bodycontainer"></div>'}),ue,pe&&i.a.createElement(y.a,{state:y.a.showLiveUpdateButton},i.a.createElement(nt,{"data-testid":"Update button container"},i.a.createElement(h.UpdateButtonWithDelay,{delay:8e3,update:!0,display:!0,label:"New update",handleClick:()=>(e=>{e.scroll({left:0,top:0}),e.location.reload(!0)})(window),updatedTime:n.publishedTime,articleId:n.id}))),i.a.createElement(It,{id:"paywall-portal-article-footer",componentName:"subscribe-cta"},!!P&&i.a.createElement(S,{html:'<div id="nu-zephr-article-target-paywall"></div>'})))),i.a.createElement(p.a,{rootMargin:Object(g.spacing)(40),threshold:0},e=>{let n=e.observed,r=e.registerNode;return i.a.createElement(s.a,{analyticsStream:t,articleId:A,articleHeadline:F,articleUrl:oe,section:T,publishedTime:W,savingEnabled:L,sharingEnabled:R,commentsEnabled:C,registerNode:r,relatedArticleSlice:B,categorisedArticles:re,relatedArticlesVisible:!!n.get("related-articles"),commentingConfig:f,topics:q,breadcrumbs:ne,domainSpecificUrl:fe})}),!!P&&i.a.createElement(S,{html:'<div id="nu-zephr-article-target-bottom-bodycontainer"></div>'})),!!P&&i.a.createElement(S,{html:'<div id="nu-zephr-article-target-bottom-maincontainer"></div>'}))),l&&i.a.createElement(l,null),i.a.createElement(c.AdContainer,{slotName:"pixel"}),i.a.createElement(c.AdContainer,{slotName:"pixelteads"}),i.a.createElement(c.AdContainer,{slotName:"pixelskin"}))))};fn.defaultProps={adConfig:{},data:{content:[]},Header:()=>null,receiveChildList:()=>{},swgProductId:null,zephrDivs:!1};t.default=(e=>Object(f.withTrackingContext)(e,{getAttrs:e=>{let t=e.data,n=e.pageSection,r=e.navigationMode,i=e.referralUrl,a=void 0===i?"":i,o="",c=!1;const l=t.expirableFlags;if(window&&window.__TIMES_ACCESS_AND_IDENTITY__&&window.__TIMES_ACCESS_AND_IDENTITY__.hasAccess&&(c=!0),r){const e=r.isMyArticles,t=r.isPastSixDays;o=e?"my articles":t?"past 6 days":"current edition"}return{articleId:Le()(t,"id",""),article_topic_tags:t.topics?t.topics.map(e=>e.name):[],isLocked:c?"unlocked":"locked",bylines:Le()(t,"bylines[0].byline[0].children[0].attributes.value",""),headline:Le()(t,"headline",""),label:Le()(t,"label",""),pageName:"".concat(Le()(t,"slug",""),"-").concat(Le()(t,"shortIdentifier","")),edition_type:o,publishedTime:Le()(t,"publishedTime",""),parent_site:Le()(t,"publicationName",""),referralUrl:a,section:n||Le()(t,"section",""),template:Le()(t,"template","Default"),registrationType:Re(),customerType:We(),shared:He(),article_flag:$e(l)?$e(l):"no flag",article_template_name:Ve(l)?"live template":"standard template"}},trackingObjectName:"Article"}))(Object(f.withTrackScrollDepth)(e=>i.a.createElement(h.SocialEmbedsProvider,null,i.a.createElement(fn,e))))}]);
|