@times-components/ssr 2.46.1 → 2.46.2
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.
|
@@ -13,5 +13,5 @@ e.exports=function(){"use strict";var e=function(e,n){return t(e.slice(),n)};fun
|
|
|
13
13
|
* Copyright(c) 2015 Andreas Lubbe
|
|
14
14
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
15
15
|
* MIT Licensed
|
|
16
|
-
*/var r=/["'&<>]/;e.exports=function(e){var t,n=""+e,o=r.exec(n);if(!o)return n;var i="",a=0,c=0;for(a=o.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}c!==a&&(i+=n.substring(c,a)),c=a+1,i+=t}return c!==a?i+n.substring(c,a):i}},function(e,t,n){"use strict";function r(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=function(e){return e()},s=function(e){return e.forEach(c)},l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"store",{}),a(this,"callbacks",[])}var t,n,r;return t=e,(n=[{key:"has",value:function(e){return void 0!==this.store[e]}},{key:"set",value:function(e,t){this.store[e]=o(o({},t),{},{used:!0,groupId:t.groupId}),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(s,50,this.callbacks)}},{key:"update",value:function(e,t){this.store[e]=o(o({},this.store[e]),t)}},{key:"get",value:function(e){var t=this.store[e];return t&&(t.used=!0),t}},{key:"getAll",value:function(){return this.store}},{key:"reset",value:function(){this.store={}}},{key:"markAllUnused",value:function(){var e=this;Object.keys(this.store).forEach((function(t){e.store[t].used=!1}))}},{key:"subscribe",value:function(e){this.callbacks.push(e)}},{key:"unsubscribe",value:function(e){var t=this.callbacks.indexOf(e);this.callbacks.splice(t,1)}}])&&i(t.prototype,n),r&&i(t,r),e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializers=t.serializers=t.converters=void 0;var r=function(){},o={jsonParse:function(e){return JSON.parse(e)},jsonStringify:function(e){return JSON.stringify(e)},simple:function(e){return e},stringifyIfSet:function(e){return null==e?"":String(e)},stringifyIfTruthy:function(e){return e?String(e):null},toArray:function(e){return Array.isArray(e)?e:e.split(",")},toBoolean:function(e){return"true"===e},toDate:function(e){return new Date(e).getTime()||(new Date).getTime()},toFloat:function(e){return""===e?null:parseFloat(e)}};t.converters=o;var i={array:o.simple,boolean:o.stringifyIfTruthy,button:r,checkbox:o.simple,color:o.simple,date:o.toDate,files:r,number:o.stringifyIfSet,object:o.jsonStringify,options:o.simple,radios:o.simple,select:o.simple,text:o.simple};t.serializers=i;var a={array:o.toArray,boolean:o.toBoolean,button:r,checkbox:o.simple,color:o.simple,date:o.toDate,files:r,number:o.toFloat,object:o.jsonParse,options:o.simple,radios:o.simple,select:o.simple,text:o.simple};t.deserializers=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(0)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(0);const a={cultureMagazine:104,dropCap:110,stMagazine:105,styleMagazine:103},c={cultureMagazine:.85,dropCap:.55,stMagazine:.7,styleMagazine:.8},s={cultureMagazine:-.06,dropCap:.2,stMagazine:.065,styleMagazine:-.01},l=o.a.p.withConfig({displayName:"responsive__Paragraph",componentId:"sc-1pktst5-0"})(["color:",";display:block;font-family:",";line-height:26px;font-size:","px;margin:0 auto ",";padding-right:",";padding-left:",';&:first-of-type:after{content:"";clear:both;display:table;}@media (min-width:',"px){font-size:","px;line-height:30px;padding-left:0;padding-right:0;width:80.8%;}@media (min-width:","px){width:56.2%;}"],i.colours.functional.primary,i.fontsWithFallback.bodyRegular,i.fontSizes.bodyMobile,Object(i.spacing)(5),Object(i.spacing)(2),Object(i.spacing)(2),i.breakpoints.medium,i.fontSizes.body,i.breakpoints.wide),u=o.a.span.withConfig({displayName:"responsive__DropCap",componentId:"sc-1pktst5-1"})(["float:left;color:",";padding-right:10px;line-height:1em;",";"],i.colours.functional.primary,e=>{let t=e.font,n=void 0===t?"dropCap":t;return Object(r.css)(["margin-top:","em;line-height:","em;font-size:","px;font-family:",";"],s[n],c[n],a[n],i.fontsWithFallback[n])});var d=l,f=n(3),p=n.n(f),m=n(1),h=n.n(m);function g(e){let t=e.colour,n=e.children,r=e.font;return p.a.createElement(u,{font:r,style:{color:t}},n)}h.a.string,h.a.string,g.defaultProps={colour:"black",font:"dropCap"};var b=g;n.d(t,"DropCapView",(function(){return b})),t.default=d}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(15)},function(e,t){e.exports=n(124)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(1166)},function(e,t){e.exports=n(1167)},function(e,t){e.exports=n(321)},function(e,t){e.exports=n(476)},function(e,t){e.exports=n(85)},function(e,t){e.exports=n(477)},function(e,t){e.exports=n(17)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=(n(4),n(2)),a=n.n(i),c=n(5),s=n.n(c),l=n(6),u=n.n(l),d=n(7),f=n(8),p=n.n(f),m=n(9),h=n(10),g=n.n(h),b=n(11),y=n(3),v=n.n(y),w=n(1),O=v()(b.TcView).withConfig({displayName:"responsive",componentId:"rerzrc-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(w.spacing)(2),Object(w.spacing)(2),w.breakpoints.medium,w.breakpoints.wide);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 j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(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){j(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}({},{topicsContainer:{borderTopColor:w.colours.functional.keyline,borderTopWidth:1},topicsContainerTablet:{alignSelf:"center",width:w.tabletWidth},topicsMetaContainer:{justifyContent:"flex-start"}});const _=e=>{let t=e.topics;return t&&t.length>0?o.a.createElement(O,null,o.a.createElement("nav",{"data-cy":"topic-tags"},o.a.createElement(g.a,{style:S.topicsContainer,topics:t}))):null};_.defaultProps={topics:null};var E=_;const k=v.a.div.withConfig({displayName:"responsive__ShareAndSaveContainer",componentId:"hqs3q1-0"})(["border-top-color:",";border-top-style:solid;border-top-width:1px;width:56.2%;margin:0 auto;@media (max-width:","px){display:none;}",";"],w.colours.functional.keyline,w.breakpoints.huge,e=>e.showBottomBorder&&"border-bottom-color: ".concat(w.colours.functional.keyline,";\n border-bottom-style: solid;\n border-bottom-width: 1px;")),C={clear:"both"},P=e=>{let t=e.analyticsStream,n=e.articleId,r=e.commentsEnabled,i=e.registerNode,c=e.savingEnabled,l=e.sharingEnabled,f=e.articleUrl,h=e.section,g=e.articleHeadline,b=e.relatedArticleSlice,y=e.relatedArticlesVisible,v=e.commentingConfig,w=e.topics,O=e.isSharingSavingEnabled,x=e.isCommentEnabled;const j=e=>o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{id:"related-articles",ref:e=>i(e)},o.a.createElement(u.a,{analyticsStream:t,isVisible:y,slice:b}),e&&o.a.createElement(m.RecommendedFetch,{articleId:n,articleHeadline:g,articleSection:h})),o.a.createElement("div",{id:"sponsored-article-container"},o.a.createElement("div",{id:"sponsored-article"})));return o.a.createElement(a.a,{state:a.a.showArticleExtras,fallback:j(!1)},o.a.createElement("div",{style:C}),o.a.createElement(E,{topics:w}),O&&o.a.createElement(a.a,{state:a.a.showSaveAndShareBar},o.a.createElement(d.MessageContext.Consumer,null,e=>{let t=e.showMessage;return o.a.createElement(k,{showBottomBorder:!b},o.a.createElement(p.a,{articleId:n,articleHeadline:g,articleUrl:f,onCopyLink:()=>t("Article link copied"),onSaveToMyArticles:()=>{},onShareOnEmail:()=>{},savingEnabled:c,sharingEnabled:l}))})),j(!0),o.a.createElement(s.a,{articleId:n,isEnabled:r,commentingConfig:v,isCommentEnabled:x}))};P.defaultProps={relatedArticleSlice:null,topics:null,isSharingSavingEnabled:!0,isCommentEnabled:!0};var T=P;t.default=T}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(124)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(87)},function(e,t){e.exports=n(73)},function(e,t){e.exports=n(85)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=(n(4),n(2)),a=n.n(i),c=n(3),s=n.n(c),l=n(0);const u=s.a.div.withConfig({displayName:"responsive__CommentContainer",componentId:"sc-2j1dkf-0"})(["margin-left:auto;margin-right:auto;@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}"],l.breakpoints.medium,l.breakpoints.wide),d=(s.a.p.withConfig({displayName:"responsive__CommentEnabledGuidelines",componentId:"sc-2j1dkf-1"})(["color:",";font-family:",";font-size:","px;margin:0 0 "," 0;padding-left:7px;padding-top:",";"],l.colours.functional.secondary,l.fontsWithFallback.supporting,l.fontSizes.commentsGuidelines,Object(l.spacing)(-2),Object(l.spacing)(6)),s.a.p.withConfig({displayName:"responsive__CommentDisabledGuidelines",componentId:"sc-2j1dkf-2"})(["color:",";font-family:",";font-size:","px;margin:0;padding-bottom:",";padding-top:",";text-align:center;"],l.colours.functional.secondary,l.fontsWithFallback.supporting,l.fontSizes.commentsGuidelines,Object(l.spacing)(6),Object(l.spacing)(1))),f=s.a.p.withConfig({displayName:"responsive__CommentDisabledHeadline",componentId:"sc-2j1dkf-3"})(["color:",";font-family:",";font-size:","px;margin:0;padding-bottom:",";padding-top:",";text-align:center;"],l.colours.functional.primary,l.fontsWithFallback.headline,l.fontSizes.commentsHeadline,Object(l.spacing)(1),Object(l.spacing)(6));function p(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}function m(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}const h={gb:"https://thetimes.co.uk/subscribe/digital?ILC=GB-TNL_The_Times-Conversion_Page-Homepage-2020",ie:"https://store.thetimes.ie/?ILC=IE-TNL_The_Times-Conversion_Page-Homepage-2020",global:"https://globalstore.thetimes.co.uk/?ILC=INTL-TNL_The_Times-Conversion_Page-Homepage-2020"},g=function(){var e,t=(e=function*(e){if(!e)return!1;const t="/api/comments/display-names-pseudonyms?username=".concat(e),n=fetch(t).then(e=>e.json()).then(e=>e);return(yield n).isPseudonym||!1},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){m(i,r,o,a,c,"next",e)}function c(e){m(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),b=e=>e?(e=>e.split("&").reduce((e,t)=>{const n=function(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){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(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.")}()}(t.split("="),2),r=n[0],o=n[1];return e[r]=o,e},{}))(e).eid:void 0,y=(e,t)=>((e,t)=>{const n=new XMLHttpRequest;n.addEventListener("load",()=>{const e=(200===n.status?JSON.parse(n.response):{}).spotimCodeB;e&&t(e)}),n.open("GET",e),n.send()})("/api/comments/loginv2?codeA=".concat(encodeURIComponent(e)),t);var v=()=>{if(window.SPOTIM&&window.SPOTIM.startSSO){const e=window&&window.nuk&&window.nuk.getCookieValue&&window.nuk.getCookieValue("acs_tnl"),t="".concat(b(e),"_v2");window.SPOTIM.startSSO({callback:y,userId:t})}},w=n(5);function O(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}class x extends r.Component{constructor(){super(),this.container=null}componentDidMount(){this.initialiseComments()}componentWillUnmount(){this.disposeComments()}initialiseComments(){const e=this.props,t=e.articleId,n=e.isReadOnly,r=e.commentingConfig,o=e.onCommentStart,i=e.onCommentPost,a=e.onCommentNotification,c=e.onCommentFilterNewest,s=e.onCommentFilterMostRecommended,l=e.onCommentFilterOldest,u=e.onCommentReplyClick,d=e.onCommentShareLink,f=e.onCommentShareTwitter,p=e.onCommentShareEmail,m=e.onCommentShareFacebook,h=e.onCommentRecommend,b=e.onCommentNotificationClicked,y=e.onCommentUsernameClicked,w=e.onCommentSettingsClicked;if(!this.container||!t||!r)return;document.addEventListener("spot-im-current-user-typing-start",function(){var e,t=(e=function*(e){o(e);const t=(()=>{const e=window.localStorage.getItem("SPOTIM_CURRENT_USER");return e&&(e&&JSON.parse(e)).data.displayName||!1})();t&&(yield g(t))&&window.dispatchEvent(new CustomEvent("SHOW_REAL_NAME_COMMENTING_BANNER",{}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){O(i,r,o,a,c,"next",e)}function c(e){O(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),{once:!0}),document.addEventListener("spot-im-current-user-sent-message",i),document.addEventListener("spot-im-notification-drop-down-link",a),document.addEventListener("spot-im-user-up-vote-click",h),document.addEventListener("spot-im-sort-by-select",e=>(e=>{switch(e.detail.sortedBy){case"best":return s(e);case"oldest":return l(e);case"newest":return c(e);default:return null}})(e)),document.addEventListener("spot-im-user-clicked-reply",u),document.addEventListener("spot-im-clicked-settings",w),document.addEventListener("spot-im-user-notifications-click",b),document.addEventListener("spot-im-open-user-profile",y),document.addEventListener("spot-im-share-type",e=>(e=>{switch(e.detail.type){case"link":return d(e);case"email":return p(e);case"twitter":return f(e);case"facebook":return m(e);default:return null}})(e)),n||(window.SPOTIM&&window.SPOTIM.startSSO?v():document.addEventListener("spot-im-api-ready",()=>{v()}));const x=document.createElement("script");x.setAttribute("async","async"),x.setAttribute("src","https://launcher.spot.im/spot/".concat(r.account)),x.setAttribute("data-spotim-module","spotim-launcher"),x.setAttribute("data-post-id",t),x.setAttribute("data-post-url","https://www.thetimes.co.uk/article/".concat(t)),x.setAttribute("data-seo-enabled",!0),x.setAttribute("data-livefyre-url",t),this.container.appendChild(x)}disposeComments(){this.container&&(this.container.innerHTML="")}render(){const e=this.props,t=e.onCommentStart,n=e.onCommentPost,r=e.onCommentNotification,i=e.onCommentFilterNewest,a=e.onCommentFilterMostRecommended,c=e.onCommentFilterOldest,s=e.onCommentReplyClick,l=e.onCommentShareLink,d=e.onCommentShareTwitter,f=e.onCommentShareEmail,p=e.onCommentShareFacebook,m=e.onCommentRecommend,h=e.onCommentNotificationClicked,g=e.onCommentUsernameClicked,b=e.onCommentSettingsClicked;return o.a.createElement(u,{id:"comments-container",onCommentStart:t,onCommentPost:n,onCommentNotification:r,onCommentReplyClick:s,onCommentFilterNewest:i,onCommentFilterMostRecommended:a,onCommentFilterOldest:c,onCommentShareLink:l,onCommentShareTwitter:d,onCommentShareEmail:f,onCommentShareFacebook:p,onCommentRecommend:m,onCommentNotificationClicked:h,onCommentUsernameClicked:g,onCommentSettingsClicked:b},o.a.createElement("div",{ref:e=>{this.container=e}}))}}x.defaultProps={onCommentStart:()=>{},onCommentPost:()=>{},onCommentNotification:()=>{},onCommentReplyClick:()=>{},onCommentFilterNewest:()=>{},onCommentFilterMostRecommended:()=>{},onCommentFilterOldest:()=>{},onCommentShareLink:()=>{},onCommentShareTwitter:()=>{},onCommentShareEmail:()=>{},onCommentShareFacebook:()=>{},onCommentRecommend:()=>{},onCommentNotificationClicked:()=>{},onCommentUsernameClicked:()=>{},onCommentSettingsClicked:()=>{}};var j,S=(j=x,Object(w.withTrackEvents)(j,{analyticsEvents:[{actionName:"navigation",eventName:"onCommentStart",trackingName:"spot im : comment : start"},{actionName:"navigation",eventName:"onCommentPost",trackingName:"spot im : comment : complete"},{actionName:"navigation",eventName:"onCommentNotification",trackingName:"spot im : notification"},{actionName:"navigation",eventName:"onCommentFilterNewest",trackingName:"spot im : sort : newest"},{actionName:"navigation",eventName:"onCommentFilterMostRecommended",trackingName:"spot im : sort : best"},{actionName:"navigation",eventName:"onCommentFilterOldest",trackingName:"spot im : sort : oldest"},{actionName:"navigation",eventName:"onCommentReplyClick",trackingName:"spot im : reply"},{actionName:"navigation",eventName:"onCommentSettingsClicked",trackingName:"spot im : settings button clicked"},{actionName:"navigation",eventName:"onCommentShareLink",trackingName:"spot im : comment : share : copy link"},{actionName:"navigation",eventName:"onCommentShareEmail",trackingName:"spot im : comment : share : email"},{actionName:"navigation",eventName:"onCommentShareTwitter",trackingName:"spot im : comment : share : twitter"},{actionName:"navigation",eventName:"onCommentShareFacebook",trackingName:"spot im : comment : share : facebook"},{actionName:"navigation",eventName:"onCommentRecommend",trackingName:"spot im : vote up"},{actionName:"navigation",eventName:"onCommentUsernameClicked",trackingName:"spot im : username clicked"},{actionName:"navigation",eventName:"onCommentNotificationClicked",trackingName:"spot im : notification clicked"}]})),_=n(6);function E(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?E(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P={button:{marginBottom:Object(l.spacing)(0),marginTop:Object(l.spacing)(5),maxWidth:215},container:{alignItems:"center",borderStyle:"solid",borderTopColor:l.colours.functional.keyline,borderTopWidth:1,marginBottom:Object(l.spacing)(10),width:"100%"},headline:k(k({color:l.colours.functional.primary},Object(l.fontFactory)({font:"headline",fontSize:"commentsHeadline"})),{},{maxWidth:315,paddingBottom:Object(l.spacing)(2),paddingTop:Object(l.spacing)(6),textAlign:"center"}),link:{color:l.colours.functional.action},supporting:k(k({},Object(l.fontFactory)({font:"supporting",fontSize:"tertiary"})),{},{color:l.colours.functional.secondary,maxWidth:280,textAlign:"center"})};function T(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 I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=I(I({},P),{},{link:I(I({},P.link),{},{fontFamily:l.fontsWithFallback.supporting,fontSize:l.fontSizes.commentsGuidelines})}),N=()=>o.a.createElement(u,null,o.a.createElement(f,null,"Comments for this article have been turned off"),o.a.createElement(d,null,"Comments are subject to our community guidelines, which can be viewed"," ",o.a.createElement(_.TextLink,{style:D.link,url:"https://www.thetimes.co.uk/article/f4024fbe-d989-11e6-9063-500e6740fc32"},"here"),".")),M=n(7);function R(){const e=window.nuk&&window.nuk.user&&window.nuk.user.isLightPackUser,t=e?null:(()=>{const e="undefined"!=typeof window&&window.nuk&&window.nuk.region;return h[e]||h.gb})(),n=e?()=>document&&document.dispatchEvent(new Event("show::upgrade::modal")):null;return o.a.createElement(M.InlineDialog,{title:"Join the conversation",buttonText:"View offers",href:t,onClick:n},"Commenting is only available to unlimited access subscribers. Upgrade your subscription to have your say.")}const F=e=>{let t=e.articleId,n=e.isEnabled,r=e.isReadOnly,i=e.commentingConfig,c=e.isCommentEnabled;return n&&c?o.a.createElement(o.a.Fragment,null,o.a.createElement(a.a,{state:a.a.showJoinTheConversationDialog},o.a.createElement(R,null)),o.a.createElement(a.a,{state:a.a.showCommentingModule},o.a.createElement(S,{articleId:t,isReadOnly:r,commentingConfig:i}))):o.a.createElement(N,null)};F.defaultProps={isReadOnly:!1,isCommentEnabled:!0},t.default=F}])},function(e,t,n){(function(t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}([function(e,t){e.exports=n(3)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(15)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(111)},function(e,t){e.exports=n(87)},function(e,t){e.exports=n(473)},function(e,n){var r,o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/,a=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,u="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,f=u||d||Function("return this")(),p=Array.prototype,m=Function.prototype,h=Object.prototype,g=f["__core-js_shared__"],b=(r=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",y=m.toString,v=h.hasOwnProperty,w=h.toString,O=RegExp("^"+y.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=f.Symbol,j=p.splice,S=N(f,"Map"),_=N(Object,"create"),E=x?x.prototype:void 0,k=E?E.toString:void 0;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 P(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 T(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,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function A(e,t){for(var n,r=0,a=(t=function(e,t){if(z(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!H(e))||(i.test(e)||!o.test(e)||null!=t&&e in Object(t))}(t,e)?[t]:z(n=t)?n:M(n)).length;null!=e&&r<a;)e=e[R(t[r++])];return r&&r==a?e:void 0}function D(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function N(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!L(e)||(t=e,b&&b in t))&&(function(e){var t=L(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)?O:l).test(function(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(n)?n:void 0}C.prototype.clear=function(){this.__data__=_?_(null):{}},C.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},C.prototype.get=function(e){var t=this.__data__;if(_){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return v.call(t,e)?t[e]:void 0},C.prototype.has=function(e){var t=this.__data__;return _?void 0!==t[e]:v.call(t,e)},C.prototype.set=function(e,t){return this.__data__[e]=_&&void 0===t?"__lodash_hash_undefined__":t,this},P.prototype.clear=function(){this.__data__=[]},P.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))},P.prototype.get=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},P.prototype.has=function(e){return I(this.__data__,e)>-1},P.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},T.prototype.clear=function(){this.__data__={hash:new C,map:new(S||P),string:new C}},T.prototype.delete=function(e){return D(this,e).delete(e)},T.prototype.get=function(e){return D(this,e).get(e)},T.prototype.has=function(e){return D(this,e).has(e)},T.prototype.set=function(e,t){return D(this,e).set(e,t),this};var M=F((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(H(e))return k?k.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return a.test(e)&&n.push(""),e.replace(c,(function(e,t,r,o){n.push(r?o.replace(s,"$1"):t||e)})),n}));function R(e){if("string"==typeof e||H(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function F(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(F.Cache||T),n}F.Cache=T;var z=Array.isArray;function L(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function H(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:A(e,t);return void 0===r?n:r}},function(e,t){e.exports=n(1168)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(57)},function(e,t){e.exports=n(73)},function(e,t){e.exports=n(474)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(3),a=n(8),c=n(9),s=n.n(c),l=n(0),u=n.n(l),d=n(2);function f(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?f(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h={byline:{marginBottom:0},headline:p(p({color:d.colours.functional.primary},Object(d.fontFactory)({font:"headline",fontSize:"smallHeadline"})),{},{fontWeight:"400",marginBottom:Object(d.spacing)(1),marginTop:0}),opinionByline:{lineHeight:24,marginBottom:0,marginTop:0},title:p({color:d.colours.functional.primary},Object(d.fontFactory)({font:"headline",fontSize:"pageComponentHeadline"})),titleContainer:{alignItems:"center",borderBottomColor:d.colours.functional.keyline,borderBottomWidth:1,borderStyle:"solid",borderTopColor:d.colours.functional.keyline,borderTopWidth:1,display:"flex",justifyContent:"center",padding:Object(d.spacing)(2)}};function g(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=b(b({},h),{},{title:b(b({},h.title),{},{paddingTop:Object(d.spacing)(1)}),titleContainer:b(b({},h.titleContainer),{},{padding:Object(d.spacing)(3)})}),w=s.a.h3.withConfig({displayName:"related-articles-heading__HeadingForRelatedArticles",componentId:"sc-1m1bjcq-0"})(["border:0px solid black;box-sizing:border-box;display:inline;font-size:14px;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;",";"],(function(e){return e.styles&&e.styles})),O=function(e){var t=e.heading;return o.a.createElement(i.TcView,{style:v.titleContainer},o.a.createElement(w,{role:"heading","aria-level":"3",styles:Object(i.checkStylesForUnits)(v.title)},t))};O.defaultProps={heading:"Related articles"};var x=O,j=n(10),S=n.n(j),_=n(11),E=n.n(_),k=n(7),C=n.n(k),P=n(6),T=n.n(P),I=n(12),A=n.n(I),D=n(4);function N(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 M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=M(M({},{article:u.a.shape({bylines:u.a.arrayOf(D.propTypes),hasVideo:u.a.bool,headline:u.a.string,label:u.a.string,publishedTime:u.a.string.isRequired,shortHeadline:u.a.string,summary105:u.a.arrayOf(D.propTypes),summary125:u.a.arrayOf(D.propTypes).isRequired,summary145:u.a.arrayOf(D.propTypes),summary160:u.a.arrayOf(D.propTypes),summary175:u.a.arrayOf(D.propTypes),summary225:u.a.arrayOf(D.propTypes),url:u.a.string}),imageConfig:u.a.shape({cropSize:u.a.string,imageRatio:u.a.number,style:u.a.object}),isOpinionByline:u.a.bool,isReversed:u.a.bool,showImage:u.a.bool,showSummary:u.a.bool,summaryConfig:u.a.shape({lengths:u.a.arrayOf(u.a.number),style:u.a.object,type:u.a.string})}),{},{bylineClass:u.a.string,contentContainerClass:u.a.string,headlineClass:u.a.string,imageContainerClass:u.a.string}),z=M(M({},{article:null,hasVideo:!1,imageConfig:{},isOpinionByline:!1,isReversed:!1,showImage:!0,showSummary:!0,summary105:[],summary145:[],summary160:[],summary175:[],summary225:[],summaryConfig:{}}),{},{bylineClass:"",contentContainerClass:"",headlineClass:"",imageContainerClass:""}),L=function(e,t){return t||e};function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e,t){return!t||"object"!==H(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(c,e);var t,n,a=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return W(this,n)}}(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).node=Object(r.createRef)(),t.state={highResSize:null},t}return t=c,(n=[{key:"componentDidMount",value:function(){this.props.imageConfig.showHiRes&&this.setHighResSize()}},{key:"componentDidUpdate",value:function(e){var t=this.props.imageConfig;e.imageConfig.showHiRes!==t.showHiRes&&t.showHiRes&&this.setHighResSize()}},{key:"setHighResSize",value:function(){this.setState({highResSize:this.node.current.clientWidth})}},{key:"render",value:function(){var e=this.props,t=e.article,n=t.bylines,r=t.hasVideo,a=t.headline,c=t.label,s=t.leadAsset,l=t.publishedTime,u=t.section,f=t.shortHeadline,p=e.bylineClass,m=e.children,h=e.contentContainerClass,g=e.headlineClass,b=e.imageConfig,y=b.cropSize,w=void 0===y?"169":y,O=b.imageRatio,x=void 0===O?16/9:O,j=b.style,S=void 0===j?{}:j,_=e.imageContainerClass,E=e.isOpinionByline,k=e.isReversed,I=e.leadAssetOverride,D=e.onPress,N=e.showImage,M=e.showSummary,R=e.summaryConfig,F=R.lengths,z=void 0===F?[]:F,H=R.style,U=void 0===H?{}:H,B=R.type,W=this.props.article,Y=this.state.highResSize,q=function(e,t,n){var r=t||e;return r?r.posterImage?C()(r,"posterImage.crop".concat(n,".url")):C()(r,"crop".concat(n,".url")):null}(s,I,w);return m({article:W,card:o.a.createElement(i.TcView,{ref:this.node},o.a.createElement(A.a,{contentContainerClass:h,highResSize:Y,imageContainerClass:_,imageAccessibilityLabel:f,imageRatio:x,imageStyle:S,imageUri:q,isReversed:k,lowResQuality:3,lowResSize:200,relatedArticle:!0,showImage:N},o.a.createElement(T.a,{bylineProps:{ast:n,bylineClass:p,color:d.colours.section[u]||d.colours.section.default,isOpinionByline:E},content:M&&o.a.createElement(i.TcView,{style:U},z.map((function(e){var t="".concat(e,"Class"),n=B?"".concat(B,"Summary"):"summary";return o.a.createElement(P.ArticleSummaryContent,{ast:W["summary".concat(e)],className:"summaryHidden ".concat(n).concat(t),key:e})}))),datePublicationProps:{date:l,showDay:!1},headline:o.a.createElement(P.ArticleSummaryHeadline,{className:g,headline:L(a,f),style:v.headline}),labelProps:{color:d.colours.section[u]||d.colours.section.default,isVideo:r,title:c}}))),onPress:D})}}])&&U(t.prototype,n),c}(r.Component);q.defaultProps=z;var V=q,G=n(5),$=function(e){return o.a.createElement("div",{"data-testid":"related-article-item"},o.a.createElement(V,e,(function(e){var t=e.article,n=e.card,r=e.onPress;return o.a.createElement(S.a.Consumer,null,(function(e){var i=e.makeArticleUrl;return o.a.createElement(E.a,{linkStyle:{padding:10},onPress:function(e){return r(e,{url:i(t)})},url:i(t)},n)}))})))};$.displayName="RelatedArticleItem";var X,Q=(X=$,Object(G.withTrackEvents)(X,{analyticsEvents:[{actionName:"Pressed",eventName:"onPress",getAttrs:function(e){var t=e.article,n=t.headline,r=t.id,o=t.url;return{targetArticleHeadline:t.shortHeadline||n,targetArticleId:r,targetArticleUrl:o}}}]})),K=(u.a.shape({items:u.a.arrayOf(u.a.shape({article:F.article})),sliceName:u.a.string.isRequired}).isRequired,["standard-1","standard-2","standard-3"]);function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(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 ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(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}function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ie(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(c,e);var t,n,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ae(e);if(t){var o=ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ie(this,n)}}(c);function c(){return ne(this,c),r.apply(this,arguments)}return t=c,(n=[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.isVisible,r=t.slice;return e.isVisible!==n||e.slice!==r}},{key:"render",value:function(){var e=this.props,t=e.isVisible,n=e.onPress,r=e.slice,c=e.heading;if(!r)return null;var s=r.items,l=r.sliceName;return!l||"StandardSlice"!==l&&"DraftStandardSlice"!==l||!s?null:o.a.createElement(i.TcView,null,o.a.createElement(x,{heading:c}),o.a.createElement(a.StandardSlice,{itemCount:s.length,renderItems:function(e){return s.map((function(r){return function(e,r,i){var a=e.bylineClass,c=void 0===a?"":a,s=e.contentContainerClass,l=e.headlineClass,u=void 0===l?"":l,d=e.imageConfig,f=void 0===d?{}:d,p=e.imageContainerClass,m=e.isOpinionByline,h=void 0!==m&&m,g=e.isReversed,b=void 0!==g&&g,y=e.showImage,v=void 0===y||y,w=e.showSummary,O=void 0!==w&&w,x=e.summaryConfig,j=void 0===x?{}:x;return o.a.createElement(Q,{article:r,bylineClass:c,contentContainerClass:s,headlineClass:u,id:r.id,imageConfig:ee(ee({},f),{},{showHiRes:t}),imageContainerClass:p,isOpinionByline:h,isReversed:b,key:r.id,leadAssetOverride:i,onPress:n,showImage:v,showSummary:O,summaryConfig:j})}(e,r.article,r.leadAsset)}))}}))}}])&&re(t.prototype,n),c}(r.Component);t.default=function(e){return Object(G.withTrackingContext)(e,{getAttrs:function(e){var t=e.slice,n=t.items,r=t.sliceName;if(!r)return null;var o={articles:[],template:r};return n?(o.articles=n.map((function(e,t){var n=e.article,r=n.headline,o=n.id,i=n.shortHeadline;return{headline:L(r,i),id:o,role:K[t]}})),o):o},trackingObjectName:"Article"})}(ce)}])}).call(this,n(33))},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),i=(n(4),n(2)),a=n(1),c=n.n(a),s=n(0),l=c()(i.TcView).withConfig({displayName:"responsive__SliceContainer",componentId:"sc-1kirgpc-0"})(["align-items:center;border-bottom-color:",";border-bottom-width:1px;border-style:solid;flex:1;justify-content:center;@media (-webkit-min-device-pixel-ratio:2){border-bottom-width:0.5px;}"],s.colours.functional.keyline),u=c()(i.TcView).withConfig({displayName:"responsive__ChildContainer",componentId:"sc-1lqbq6a-0"})(["flex:1;padding-left:",";padding-right:",";@media (min-width:","px){flex-basis:0 !important;padding-left:0;padding-right:0;}"],Object(s.spacing)(2),Object(s.spacing)(2),s.breakpoints.medium),d={1:[125],2:[125],3:[125,145]};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(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}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=(!0,c()(i.TcView).withConfig({displayName:"responsive",componentId:"sc-1kirgpc-1"})(["border-bottom-color:",";border-bottom-style:solid;border-bottom-width:1px;flex:1;margin-bottom:",";margin-top:",";min-width:auto;@media (min-width:","px){border-bottom:none;border-right-color:",";border-right-style:solid;border-right-width:1px;flex:0 !important;margin:",";}"],s.colours.functional.keyline,Object(s.spacing)(2),Object(s.spacing)(2),s.breakpoints.medium,s.colours.functional.keyline,"0 ".concat(Object(s.spacing)(2)))),v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(a,e);var t,n,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=(t=r.call(this,e)).props.itemCount;return t.ConfigWrapper=function(e){var t=e.itemCount,n=c()(i.TcView).withConfig({displayName:"config__Base",componentId:"bs1997-0"})([".imageContainerClass{display:",";}.summaryHidden{display:none;}.summary125Class{display:block;}@media (min-width:","px){.imageContainerClass{display:block;}.headlineClass{font-size:25px;line-height:28px;margin-top:",";}}"],t>=3?"none":"block",s.breakpoints.medium,Object(s.spacing)(1));return 1===t&&(n=c()(n).withConfig({displayName:"config__Base",componentId:"bs1997-1"})(["@media (min-width:","px){.imageContainerClass{flex:1;margin-bottom:0;min-width:auto;padding-right:",";}.contentContainerClass{flex-basis:0 !important;flex-grow:1;min-width:300px;}}"],s.breakpoints.medium,Object(s.spacing)(2))),c()(n).withConfig({displayName:"config__Base",componentId:"bs1997-2"})(["@media (min-width:","px){.summary125Class{display:",";}.summary145Class{display:",";}}"],s.breakpoints.wide,3===t?"none":"block",3===t?"block":"none")}({itemCount:n}),t.config=function(e){return{contentContainerClass:"contentContainerClass",headlineClass:"headlineClass",imageContainerClass:"imageContainerClass",summaryConfig:{lengths:d[e.itemCount]}}}({itemCount:n}),t.ChildrenContainer=function(e){var t=e.childCount,n=c()(i.TcView).withConfig({displayName:"responsive__Base",componentId:"sc-1lqbq6a-1"})(["flex:1;flex-direction:column;flex-wrap:wrap;padding-bottom:",";padding-top:",";width:100%;@media (min-width:","px){flex-direction:row;}"],Object(s.spacing)(2),Object(s.spacing)(2),s.breakpoints.medium);return n=t>=3?c()(n).withConfig({displayName:"responsive__Base",componentId:"sc-1lqbq6a-2"})(["@media (min-width:","px){padding-left:",";padding-right:",";width:100%;}"],s.breakpoints.medium,Object(s.spacing)(4),Object(s.spacing)(4)):c()(n).withConfig({displayName:"responsive__Base",componentId:"sc-1lqbq6a-3"})(["@media (min-width:","px){width:80.8%;}"],s.breakpoints.medium),c()(n).withConfig({displayName:"responsive__Base",componentId:"sc-1lqbq6a-4"})(["@media (min-width:","px){width:",";}"],s.breakpoints.wide,t>=3?"100%":"56.2%")}({childCount:n}),t}return t=a,(n=[{key:"render",value:function(){var e=(0,this.props.renderItems)(this.config);if(0===e.length)return null;var t=this.ChildrenContainer,n=this.ConfigWrapper;return o.a.createElement(n,null,o.a.createElement(l,null,o.a.createElement(t,null,e.map((function(e){return o.a.createElement(u,{key:e.props.id},e)})).reduce((function(e,t){return[].concat(function(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.length>0?e:[e]),[o.a.createElement(y,{key:"separator-".concat(t.key)}),t])})))))}}])&&m(t.prototype,n),a}(r.Component);n.d(t,"StandardSlice",(function(){return v}))}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(134)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(97)},function(e,t){e.exports=n(57)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(4),a=n(2),c=n.n(a),s=n(7),l=n.n(s),u=n(6),d=n.n(u),f=n(3),p=n.n(f);function m(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}h(h({},a.propTypes),{},{CaptionComponent:p.a.func.isRequired});var b=h(h({},a.defaultProps),{},{CaptionComponent:c.a}),y=n(5),v=n.n(y),w=n(0),O=v()(i.TcView).withConfig({displayName:"responsive__InsetCaptionContainerStyle",componentId:"sc-1io40fc-0"})(["display:inline-block;margin-top:",";padding-bottom:",";padding-left:",";padding-right:",";padding-top:0;vertical-align:top;width:50%;@media (min-width:","px){clear:left;float:left;margin-top:0px;padding-bottom:",";padding-left:0px;padding-top:0px;padding-right:",";width:30%;}@media (min-width:","px){padding-left:0px;width:35.71429%;}"],Object(w.spacing)(-2),Object(w.spacing)(4),Object(w.spacing)(2),Object(w.spacing)(2),w.breakpoints.medium,Object(w.spacing)(4),Object(w.spacing)(4),w.breakpoints.wide),x=v()(i.TcView).withConfig({displayName:"responsive__InsetImageStyle",componentId:"sc-1io40fc-1"})(["display:inline-block;padding-bottom:",";vertical-align:top;width:50%;@media (min-width:","px){clear:left;float:left;padding-bottom:0px;padding-top:",";padding-right:",";width:30%;}@media (min-width:","px){clear:left;width:35.71429%;}"],Object(w.spacing)(4),w.breakpoints.medium,Object(w.spacing)(1),Object(w.spacing)(4),w.breakpoints.wide),j=v()(i.TcView).withConfig({displayName:"responsive__InsetCaptionStyle",componentId:"sc-1io40fc-2"})(["padding-left:",";@media (min-width:","px){padding-left:0px;}"],Object(w.spacing)(2),w.breakpoints.medium),S=v.a.div.withConfig({displayName:"responsive__FullWidthCaptionContainer",componentId:"sc-1io40fc-3"})(["padding-left:",";padding-right:",";margin:auto;text-align:center;@media (min-width:","px){padding-left:0px;padding-right:0px;width:80.8%;}@media (min-width:","px){width:56.2%;}"],Object(w.spacing)(2),Object(w.spacing)(2),w.breakpoints.medium,w.breakpoints.wide),_=function(e){var t=e.text,n=e.credits,r=e.CaptionComponent;return o.a.createElement(j,null,o.a.createElement(r,{credits:n,text:t}))};_.defaultProps=b;var E=_,k=(p.a.shape({caption:p.a.string,credits:p.a.string}),p.a.shape({display:p.a.oneOf(["primary","secondary","inline","fullwidth"]),highResSize:p.a.number,lowResQuality:p.a.number,lowResSize:p.a.number,ratio:p.a.string,uri:p.a.string.isRequired}).isRequired,p.a.func,{captionOptions:{caption:null,credits:null},onImagePress:null});function C(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}var P=function(e){var t=e.imageOptions,n=e.captionOptions,r=t.display,i=t.highResSize,a=t.lowResSize,s=t.lowResQuality,l=t.ratio,u=t.uri,f=n.caption,p=function(e,t,n){return t||n?o.a.createElement(O,{key:"caption"},o.a.createElement("figcaption",null,o.a.createElement(c.a,{credits:n,text:t}))):null}(0,f,n.credits);if(!r||!l)return p;var m=function(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){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(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.")}()}(l.split(":"),2),h=m[0]/m[1];return o.a.createElement("figure",{style:{margin:0}},o.a.createElement(x,{key:"img"},o.a.createElement(d.a,{accessibilityLabel:f,aspectRatio:h,highResSize:i,lowResSize:a,lowResQuality:s,uri:u})),p)};P.defaultProps=k;var T=P;function I(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 A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}A({},a.propTypes);var N=A({},a.defaultProps),M=function(e){return o.a.createElement(S,null,o.a.createElement(c.a,e))};M.defaultProps=N;var R=M;function F(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?F(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H={alignSelf:"center",width:w.tabletWidth-w.tabletRowPadding},U={container:{paddingTop:0},fullwidthCaption:{alignSelf:"center",maxWidth:w.tabletWidth-w.tabletRowPadding},fullwidthContainer:{marginBottom:Object(w.spacing)(2),marginLeft:"auto",marginRight:"auto",maxWidth:w.tabletWidthMax},inlineCaption:{paddingLeft:Object(w.spacing)(2),paddingTop:0},inlineContainer:{flexDirection:"row",flexWrap:"nowrap",paddingBottom:Object(w.spacing)(5),paddingLeft:Object(w.spacing)(2),paddingRight:Object(w.spacing)(2),width:"100%"},inlineContainerTablet:z(z({},H),{},{flexDirection:"column",marginTop:0,paddingBottom:0,paddingLeft:Object(w.spacing)(0),paddingTop:0,width:"100%"}),inlineImage:{width:"100%"},primaryContainer:{flexDirection:"column",paddingBottom:Object(w.spacing)(3),width:"100%"},primaryContainerTablet:z({},H),secondaryCaption:{paddingLeft:Object(w.spacing)(2),paddingTop:0,width:"50%"},secondaryContainer:{flexDirection:"row",flexWrap:"nowrap",paddingBottom:Object(w.spacing)(4),paddingLeft:Object(w.spacing)(2),paddingRight:Object(w.spacing)(2),width:"100%"},secondaryContainerTablet:z(z({},H),{},{paddingLeft:Object(w.spacing)(0),paddingRight:Object(w.spacing)(0)}),secondaryImage:{width:"50%"}};function B(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}var W={secondary:{container:{paddingTop:0}}},Y=function(e,t,n,r){var a=function(e){return"primary"===e?E:"fullwidth"===e?R:c.a}(n);if(!e&&!t)return null;var s=o.a.createElement(a,{credits:t,style:W[n],text:e});return"fullwidth"===n?s:o.a.createElement(i.TcView,{style:U["".concat(n,"Caption")]},s)},q=function(e){var t=e.imageOptions,n=e.captionOptions,a=e.onImagePress,s=e.images,d=t.display,f=t.highResSize,p=t.index,m=t.lowResQuality,h=t.lowResSize,g=t.ratio,b=t.uri,y=t.relativeHeight,v=t.relativeWidth,w=t.relativeHorizontalOffset,O=t.relativeVerticalOffset,x=n.caption,j=n.credits;if("inline"===d)return o.a.createElement(T,{captionOptions:n,imageOptions:t,onImagePress:a});var S=o.a.createElement(l.a.Consumer,null,(function(e){return e.theme,Y(x,j,d)}));if(!d||!g)return S;var _=function(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){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(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.")}()}(g.split(":"),2),E=_[0]/_[1];return o.a.createElement(r.Fragment,null,o.a.createElement(i.TcView,{style:U["".concat(d,"Image")]},o.a.createElement(u.ModalImage,{accessibilityLabel:x,aspectRatio:E,caption:o.a.createElement(c.a,{credits:j,text:x}),highResSize:f,index:p,images:s,lowResSize:h,lowResQuality:m,onImagePress:a,uri:b,relativeWidth:v,relativeHeight:y,relativeHorizontalOffset:w,relativeVerticalOffset:O})),S)};q.defaultProps=k;var V=q;t.default=V}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(97)},function(e,t,n){"use strict";n.r(t),n.d(t,"polyfillWCIfNecessary",(function(){return s})),n.d(t,"default",(function(){return l}));var r=n(0),o=n.n(r),i=(n(3),n(1));function a(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function c(e,t){return document.body.querySelector(e)?Promise.resolve(null):new Promise((e,n)=>{const r=t();r.onload=e,r.onerror=n,document.body.appendChild(r)})}function s(){const e="import"in document.createElement("link"),t=!!document.registerElement;return e&&t?Promise.resolve():Promise.all([(n="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.24/webcomponents-lite.min.js",c('script[src="'.concat(n,'"]'),()=>{const e=document.createElement("script");return e.setAttribute("async","async"),e.setAttribute("src",n),e})),new Promise(e=>{window.addEventListener("WebComponentsReady",e)})]);var n}class l extends r.Component{constructor(e){super(e),this.placeholder=o.a.createRef(null),this.component=o.a.createRef(null)}componentDidMount(){(0,this.props.fetchPolyfill)().then(()=>{this.insertComponent()})}componentDidUpdate(){this.insertComponent()}insertComponent(){var e,t=this;return(e=function*(){const e=t.props,n=e.attributes,r=e.element,o=e.source,i=t.placeholder.current,a=t.component.current;a.innerHTML="",i.style.cssText+="display: block !important",a.innerHTML="";const s=document.createElement(r);var l;Object.keys(n).forEach(e=>s.setAttribute(e,n[e])),a.appendChild(s),s.outerHTML+="",i.style.cssText+="display: none !important",yield(l=o,c('link[href="'.concat(l,'"]'),()=>{const e=document.createElement("link");return e.setAttribute("href",l),e.setAttribute("rel","import"),e}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(e){a(i,r,o,c,s,"next",e)}function s(e){a(i,r,o,c,s,"throw",e)}c(void 0)}))})()}render(){return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{ref:this.placeholder,style:{height:150,position:"relative"}},o.a.createElement(i.Placeholder,null)),o.a.createElement("div",{ref:this.component}))}}l.defaultProps={attributes:{},fetchPolyfill:s}},function(e,t){e.exports=n(3)}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(85)},function(e,t){e.exports=n(111)},function(e,t){e.exports=n(136)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(5),a=n(6),c=n(7),s=n.n(c),l=n(4),u=n(2),d=n.n(u),f=(d.a.number.isRequired,d.a.object.isRequired,d.a.func.isRequired,n(3)),p=n.n(f),m=n(0);const h=p.a.a.withConfig({displayName:"styles__KeyFactTextLink",componentId:"sc-1shod7b-0"})(["color:inherit;cursor:pointer;text-decoration:underline;&:hover{color:",";}&:active{color:",";}"],m.colours.functional.brandColour,m.colours.functional.brandColour),g=p.a.div.withConfig({displayName:"styles__BulletContainer",componentId:"sc-1shod7b-1"})(["display:flex;flex-direction:row;margin-bottom:",";padding-left:",";width:100%;:last-of-type{margin-bottom:0px;}"],Object(m.spacing)(4),Object(m.spacing)(1)),b=p.a.div.withConfig({displayName:"styles__Bullet",componentId:"sc-1shod7b-2"})(["height:6px;width:6px;margin-top:2px;background-color:#9f0000;"]),y=p.a.h2.withConfig({displayName:"styles__KeyFactsTitle",componentId:"sc-1shod7b-3"})(["font-family:",";font-size:","px;font-weight:400;margin:0px 0px 20px 0px;color:",";"],m.fontsWithFallback.headline,m.fontSizes.keyFactsTitle,m.colours.functional.brandColour),v=p.a.span.withConfig({displayName:"styles__Text",componentId:"sc-1shod7b-4"})(["color:",";font-family:",";font-size:","px;margin-top:-8px;padding-left:",";width:95%;line-height:28px;"],m.colours.functional.primary,m.fontsWithFallback.bodyRegular,m.fontSizes.infoSubText,Object(m.spacing)(3)),w=p.a.div.withConfig({displayName:"styles__KeyFactsContainer",componentId:"sc-1shod7b-5"})(["margin:0 auto 20px auto;padding:16px 20px;background-color:",";border-top:2px solid #9f0000;@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}"],m.colours.functional.backgroundPrimary,m.breakpoints.medium,m.breakpoints.wide);function O(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=e=>{let t=e.listIndex,n=e.keyFactItem,r=e.fireAnalyticsEvent,i=e.articleFlag;return o.a.createElement(g,{key:"key-facts-".concat(t)},o.a.createElement(b,null),o.a.createElement(v,null,n.children.map((e,n)=>Object(a.renderTree)(e,x(x({},s.a),{},{link(t,n,a){const c=n.href,s=(e=>{if(1===e.children.length&&e.children[0].attributes)return e.children[0].attributes.value;const t=e.children.map(e=>e.attributes?e.attributes.value:e.attributes).join(" ");return t.length>0?t:" "})(e);return o.a.createElement(h,{key:t,onClick:e=>{Object(l.handleOnClickScrollTo)(e,c),((e,t,n)=>{e&&e({action:"Clicked",attrs:{event_navigation_name:"in-article component clicked : key moments",event_navigation_browsing_method:"click",article_parent_name:t,article_flag:n}})})(r,s,i)},href:Object(l.handleHrefScrollTo)(c)},a)}}),"key-facts-".concat(t,"-").concat(n)))))};d.a.object.isRequired,d.a.string,d.a.string,d.a.string,t.default=e=>{let t=e.ast,n=e.section,r=e.headline,a=e.isLiveOrBreaking;const c=t.children,s=t.attributes.title,l=c[0].children,u=a?a.toLowerCase():"no flag";return o.a.createElement(i.TrackingContextProvider,{context:{object:"KeyMoments",attrs:{component_type:"in-article component: key moments: interactive",event_navigation_action:"navigation",component_name:s,section_details:"section : ".concat(n),article_name:r,article_flag:u}},scrolledEvent:{action:"Scrolled",attrs:{event_navigation_name:"in-article component displayed : key moments",event_navigation_browsing_method:"scroll"}}},e=>{let t=e.fireAnalyticsEvent,n=e.intersectObserverRef;return o.a.createElement(w,{ref:n},s&&o.a.createElement(y,null,s),l.map((e,n)=>o.a.createElement(S,{listIndex:n,keyFactItem:e,fireAnalyticsEvent:t,articleFlag:u})))})}}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(73)},function(e,t){e.exports=n(110)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(2),a=n(4),c=n.n(a),s=n(0),l=c()(i.TcText).withConfig({displayName:"responsive__PullQuoteContent",componentId:"sc-25h5bn-0"})(["color:",";font-family:",";font-size:","px;line-height:30px;cite{font-style:normal;}@media (min-width:","px){font-size:","px;line-height:35px;}"],s.colours.functional.primary,s.fontsWithFallback.headlineRegular,s.fontSizes.pageComponentHeadline,s.breakpoints.medium,s.fontSizes.headline),u=n(5),d=n(6),f=n(3),p=n.n(f);p.a.func,p.a.string;const m={twitter:""};var h=e=>e?"https://twitter.com/".concat(e):"";function g(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v={caption:b(b({},Object(s.fontFactory)({font:"supporting",fontSize:"caption"})),{},{color:"#696969",marginBottom:0}),captionContainer:{alignItems:"center",display:"flex",flexDirection:"row",height:20,marginTop:Object(s.spacing)(2)},container:{marginBottom:Object(s.spacing)(6),marginTop:0},content:b(b({},Object(s.fontFactory)({font:"headlineRegular",fontSize:"pageComponentHeadline"})),{},{color:s.colours.functional.primary}),link:b(b({},Object(s.fontFactory)({font:"supporting",fontSize:"caption"})),{},{color:s.colours.functional.action,marginLeft:4,textDecorationLine:"none"}),text:b(b({},Object(s.fontFactory)({font:"supporting",fontSize:"caption"})),{},{color:s.colours.functional.secondary,marginBottom:0}),twitterContainer:{alignItems:"center",borderLeftColor:s.colours.functional.keyline,borderLeftWidth:1,display:"flex",flexDirection:"row",height:13,marginLeft:7,paddingLeft:7}};function w(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 O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=O(O({},v),{},{container:O(O({},v.container),{},{marginBottom:Object(s.spacing)(3)})});const S=e=>{let t=e.onTwitterLinkPress,n=e.twitter;if(!n)return null;const r=h(n);return o.a.createElement(i.TcView,{style:j.twitterContainer},o.a.createElement(d.IconTwitter,{height:10,width:11}),o.a.createElement(u.TextLink,{className:"pullQuoteTwitterLink",key:r,onPress:e=>t(e,{twitter:n,url:r}),style:j.link,target:"_blank",url:r},n))};S.defaultProps=m;var _=S;p.a.string,p.a.oneOfType([p.a.node,p.a.string]).isRequired,p.a.string,p.a.string,p.a.string;const E={caption:"",font:null,quoteColour:s.colours.functional.secondary,text:"",twitter:m.twitter};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 C(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){P(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 P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T={cultureMagazine:{marginLeft:-3},stMagazine:{marginLeft:-2},styleMagazine:{marginLeft:-5}};function I(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 A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N=(e,t)=>A(A({},(e=>C(C({},T[e]||{}),{},{fontFamily:s.fontsWithFallback[e]||s.fontsWithFallback.headlineRegular,fontSize:75,marginBottom:Object(s.spacing)(-8),marginTop:0}))(e)),{},{color:t}),M=e=>{let t=e.caption,n=e.children,r=e.font,a=e.onTwitterLinkPress,c=e.quoteColour,s=e.text,u=e.twitter;return o.a.createElement(i.TcView,{style:j.container},o.a.createElement(i.TcText,{style:N(r,c)},"“"),o.a.createElement(l,null,n),o.a.createElement(i.TcView,{style:j.captionContainer},o.a.createElement(i.TcText,{style:Object(i.checkStylesForUnits)(j.caption)},t),o.a.createElement(i.TcText,{style:Object(i.checkStylesForUnits)(j.text)},t&&s?", ".concat(s):s),o.a.createElement(_,{onTwitterLinkPress:a,twitter:u})))};M.defaultProps=E;var R=M;const F=e=>{let t=e.children,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children"]);const r=n.twitter;return o.a.createElement("blockquote",{url:r?h(r):""},o.a.createElement(R,n,o.a.createElement("cite",null,t)))};F.defaultProps=E,t.default=F}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(57)},function(e,t){e.exports=n(85)},function(e,t){e.exports=n(135)},function(e,t){e.exports=n(151)},function(e,t){e.exports=n(134)},function(e,t){e.exports=n(97)},function(e,t){e.exports=n(137)},function(e,t){e.exports=n(138)},function(e,t){e.exports=n(139)},function(e,t){e.exports=n(217)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(8),a=n.n(i),c=n(3),s=n(9),l=n(5),u=n.n(l),d=n(10),f=n.n(d),p=n(6),m=n(0),h=n(11),g=n.n(h),b=n(12),y=n.n(b),v=n(1),w=n.n(v);function O(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(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 _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}w.a.bool,w.a.string;var E=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{articleHeadline:x(x({},Object(m.fontFactory)({font:"headline",fontSize:"headline"})),{},{color:m.colours.functional.brandColour,marginBottom:Object(m.spacing)(2),textAlign:"center"}),authorImage:{marginBottom:Object(m.spacing)(5)},container:{alignItems:"center",marginBottom:Object(m.spacing)(5),marginLeft:Object(m.spacing)(2),marginRight:Object(m.spacing)(2),paddingTop:Object(m.spacing)(7)},containerTablet:{alignSelf:"center",width:m.tabletWidth},datePublication:x(x({},Object(m.fontFactory)({font:"supporting",fontSize:"cardMeta"})),{},{color:m.colours.functional.secondary,marginTop:Object(m.spacing)(3)}),datePublicationTablet:{marginTop:"auto"},label:{marginBottom:Object(m.spacing)(2)},leadAssetContainer:{marginBottom:Object(m.spacing)(4)},leadAssetContainerTablet:{alignSelf:"center",width:m.tabletWidth-m.tabletRowPadding},meta:{flexDirection:"row",flexWrap:"wrap"},metaContainer:{alignItems:"center"},metaContainerTablet:{flexDirection:"row",justifyContent:"center"},metaTablet:{paddingTop:Object(m.spacing)(1)},separator:{borderRightColor:m.colours.functional.keyline,borderRightWidth:1,height:Object(m.spacing)(3),marginLeft:Object(m.spacing)(2),marginRight:Object(m.spacing)(2)},standFirst:x(x({},Object(m.fontFactory)({font:"headlineRegular",fontSize:"smallestHeadline"})),{},{color:m.colours.functional.primary,marginBottom:Object(m.spacing)(3),paddingLeft:Object(m.spacing)(2),paddingRight:Object(m.spacing)(2),textAlign:"center"})});const k=e=>{let t=e.isVideo,n=e.label;if(!t&&!n)return null;const r=t?y.a:g.a;return o.a.createElement(u.a.Consumer,null,e=>{let t=e.theme.sectionColour;return o.a.createElement(c.TcView,{style:E.label},o.a.createElement(r,{color:t||m.colours.section.default,title:n}))})};k.defaultProps={isVideo:!1,label:null};var C=k,P=n(7),T=n(13),I=n.n(T);w.a.arrayOf(w.a.shape({})).isRequired,w.a.string.isRequired,w.a.string.isRequired;var A=n(4),D=n.n(A),N=n(14),M=n.n(N);const R=D()(c.TcView).withConfig({displayName:"responsive__AuthorImageContainer",componentId:"sc-15qf29k-0"})(["border-radius:50%;height:100px;overflow:hidden;width:100px;@media (min-width:","px){height:118px;width:118px;}"],m.breakpoints.medium),F=D()(c.TcText).withConfig({displayName:"responsive__DatePublicationContainer",componentId:"sc-15qf29k-1"})(["",";flex-direction:row;flex-wrap:wrap;margin-top:",";@media (min-width:","px){margin-top:0;}"],e=>e.styles&&e.styles,Object(m.spacing)(3),m.breakpoints.medium),z=D()(c.TcView).withConfig({displayName:"responsive__FlagsContainer",componentId:"sc-15qf29k-2"})(["padding-top:",";padding-bottom:",";@media (min-width:","px){padding-top:0;}"],Object(m.spacing)(1),Object(m.spacing)(3),m.breakpoints.medium),L=D()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"sc-15qf29k-3"})([""," order:2;@media (min-width:","px){width:80.8%;margin-top:0;margin-left:auto;margin-right:auto;margin-bottom:",";}@media (min-width:","px){width:56.2%;}"],e=>e.styles&&e.styles,m.breakpoints.medium,Object(m.spacing)(6),m.breakpoints.wide),H=D.a.h1.withConfig({displayName:"responsive__HeadlineContainer",componentId:"sc-15qf29k-4"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;"," @media (min-width:","px){font-size:","px;line-height:50px;margin-bottom:",";}"],e=>e.styles&&e.styles,m.breakpoints.medium,m.fontSizes.articleHeadline,Object(m.spacing)(1)),U=(D()(c.TcView).withConfig({displayName:"responsive__LabelContainer",componentId:"sc-15qf29k-5"})(["@media (min-width:","px){margin-top:0px;}"],m.breakpoints.wide),D()(c.TcView).withConfig({displayName:"responsive__Meta",componentId:"sc-15qf29k-6"})([""," max-width:100%;justify-content:center;@media (min-width:","px){margin-top:0;}"],e=>e.styles&&e.styles,m.breakpoints.medium)),B=D()(c.TcView).withConfig({displayName:"responsive__MetaContainer",componentId:"sc-15qf29k-7"})(["align-items:center;justify-content:center;@media (min-width:","px){flex-direction:row;flex-wrap:wrap;}"],m.breakpoints.medium),W=D()(c.TcView).withConfig({displayName:"responsive__Separator",componentId:"sc-15qf29k-8"})(["display:none;@media (min-width:","px){background-color:",";display:flex;height:",";margin:0 ",";width:1px;}"],m.breakpoints.medium,m.colours.functional.keyline,Object(m.spacing)(3),Object(m.spacing)(2)),Y=D.a.h2.withConfig({displayName:"responsive__StandfirstContainer",componentId:"sc-15qf29k-9"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;"," @media (min-width:","px){font-size:","px;line-height:","px;margin-bottom:",";}@media (min-width:","px){margin-bottom:",";}"],e=>e.styles&&e.styles,m.breakpoints.medium,m.fontSizes.infoTitle,Object(m.lineHeight)({font:"bodyRegular",fontSize:"infoTitle"}),Object(m.spacing)(5),m.breakpoints.wide,Object(m.spacing)(4)),q=D()(M.a).withConfig({displayName:"responsive__LeadAsset",componentId:"sc-15qf29k-10"})(["order:2;@media (min-width:","px){margin-bottom:",";}@media (min-width:","px){width:56.2%;margin-left:auto;margin-right:auto;}"],m.breakpoints.medium,Object(m.spacing)(6),m.breakpoints.wide);var V=e=>{let t=e.bylines,n=e.publicationName,i=e.publishedTime;return o.a.createElement(B,null,Object(P.hasBylineData)(t)&&o.a.createElement(r.Fragment,null,o.a.createElement(U,{styles:E.meta},o.a.createElement(P.ArticleBylineWithLinks,{ast:t})),o.a.createElement(W,null)),o.a.createElement(U,{styles:E.meta},o.a.createElement(F,{styles:Object(c.checkStylesForUnits)(E.datePublication)},o.a.createElement(I.a,{date:i,publication:n}))))};const G=e=>{let t=e.standfirst;return t?o.a.createElement(Y,{role:"heading","aria-level":"2",styles:Object(c.checkStylesForUnits)(E.standFirst),testID:"standfirst"},t):null};G.defaultProps={standfirst:null};var $=G;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 Q(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){K(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 K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}w.a.string.isRequired,w.a.arrayOf(w.a.shape({})).isRequired,w.a.arrayOf(w.a.shape({expiryTime:w.a.string,type:w.a.string})),w.a.bool,w.a.string.isRequired,w.a.string,w.a.bool,w.a.string.isRequired,w.a.string.isRequired,w.a.string,w.a.string;const Z=(e,t)=>Object(c.checkStylesForUnits)(Q(Q({},E.articleHeadline),{},{fontFamily:e?m.fontsWithFallback[e]:null,textTransform:t||null})),J=e=>{let t=e.authorImage,n=e.bylines,r=e.flags,i=e.hasVideo,a=e.headline,c=e.label,s=e.publicationName,l=e.publishedTime,d=e.standfirst,m=e.updatedTime;return o.a.createElement(u.a.Consumer,null,e=>{let u=e.theme,h=u.headlineFont,g=u.headlineCase;return o.a.createElement(L,{styles:E.container},o.a.createElement(R,{style:E.authorImage},o.a.createElement(f.a,{aspectRatio:1,uri:t,accessibilityLabel:"author-image"})),o.a.createElement(C,{isVideo:i,label:c}),o.a.createElement(H,{role:"heading","aria-level":"1",styles:Z(h,g)},a),o.a.createElement(z,null,o.a.createElement(p.UpdatedTimeProvider,{updatedTime:m},o.a.createElement(p.ArticleFlags,{flags:r}))),o.a.createElement($,{standfirst:d}),o.a.createElement(V,{bylines:n,publicationName:s,publishedTime:l}))})};J.defaultProps={flags:[],hasVideo:!1,label:null,longRead:!1,standfirst:null,updatedTime:null};var ee=J;function te(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 ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ne(ne({},{analyticsStream:w.a.func.isRequired,article:w.a.shape({}),error:w.a.shape({graphQLErrors:w.a.array,message:w.a.string,networkError:w.a.shape({message:w.a.string})}),isLoading:w.a.bool,onImagePress:w.a.func,receiveChildList:w.a.func.isRequired}),{},{commentingConfig:w.a.shape({account:w.a.string.isRequired}).isRequired,navigationMode:w.a.shape({}).isRequired});const oe=ne({},{article:null,error:null,isLoading:!1,onImagePress:null});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)}class ae extends r.Component{constructor(e){super(e),this.renderHeader=this.renderHeader.bind(this)}renderHeader(){const e=this.props.article,t=e.bylines,n=e.expirableFlags,i=e.hasVideo,a=e.headline,l=e.label,u=e.publicationName,d=e.publishedTime,f=e.shortHeadline,p=e.standfirst,m=e.updatedTime,h=t&&t.length>0&&t[0].image&&0!==Object.keys(t[0].image).length&&t[0].image.crop?t[0].image.crop.url:null;return o.a.createElement(r.Fragment,null,o.a.createElement(ee,{authorImage:h,bylines:t,flags:n,hasVideo:i,headline:Object(c.getHeadline)(a,f),label:l,publicationName:u,publishedTime:d,standfirst:p,updatedTime:m}),o.a.createElement(q,ie({},Object(c.getLeadAsset)(e),{getImageCrop:c.getStandardTemplateCrop,renderCaption:e=>{let t=e.caption;return o.a.createElement(s.CentredCaption,t)},style:E.leadAssetContainer})))}render(){const e=this.props,t=e.article,n=e.analyticsStream,r=e.error,i=e.isLoading,c=e.logoUrl,s=e.navigationMode,l=e.receiveChildList,u=e.commentingConfig,d=e.paidContentClassName,f=e.isPreview,p=e.swgProductId;return r||i?null:o.a.createElement(a.a,{analyticsStream:n,data:t,Header:this.renderHeader,logoUrl:c,receiveChildList:l,navigationMode:s,commentingConfig:u,paidContentClassName:d,isPreview:f,swgProductId:p})}}ae.defaultProps=oe,t.default=ae}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(57)},function(e,t){e.exports=n(151)},function(e,t){e.exports=n(135)},function(e,t){e.exports=n(85)},function(e,t){e.exports=n(134)},function(e,t){e.exports=n(139)},function(e,t){e.exports=n(217)},function(e,t){e.exports=n(137)},function(e,t){e.exports=n(138)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(6),a=n.n(i),c=n(3),s=n(9),l=n(7),u=n(5),d=n.n(u),f=n(10),p=n.n(f),m=n(0),h=n(1),g=n.n(h);g.a.arrayOf(g.a.shape({})).isRequired,g.a.string.isRequired,g.a.string.isRequired;var b=n(4),y=n.n(b),v=n(11),w=n.n(v);const O=y()(c.TcText).withConfig({displayName:"responsive__DatePublicationContainer",componentId:"sc-3t8ix5-0"})(["",";flex-direction:row;flex-wrap:wrap;margin-top:",";@media (min-width:","px){margin-top:0;}"],e=>e.styles&&e.styles,Object(m.spacing)(1),m.breakpoints.medium),x=y()(c.TcView).withConfig({displayName:"responsive__FlagsContainer",componentId:"sc-3t8ix5-1"})(["padding-top:",";padding-bottom:",";@media (min-width:","px){padding-top:0;}"],Object(m.spacing)(1),Object(m.spacing)(3),m.breakpoints.medium),j=y()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"sc-3t8ix5-2"})([""," order:2;@media (min-width:","px){width:80.8%;margin-top:0;margin-left:auto !important;margin-right:auto !important;}@media (min-width:","px){width:56.2%;}"],e=>e.styles&&e.styles,m.breakpoints.medium,m.breakpoints.wide),S=y.a.h1.withConfig({displayName:"responsive__HeadlineContainer",componentId:"sc-3t8ix5-3"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;"," @media (min-width:","px){font-size:","px;line-height:50px;margin-bottom:",";}"],e=>e.styles&&e.styles,m.breakpoints.medium,m.fontSizes.articleHeadline,Object(m.spacing)(1)),_=(y()(c.TcView).withConfig({displayName:"responsive__LabelContainer",componentId:"sc-3t8ix5-4"})(["@media (min-width:","px){margin-top:0px;}"],m.breakpoints.wide),y()(c.TcView).withConfig({displayName:"responsive__Meta",componentId:"sc-3t8ix5-5"})(["max-width:100%;@media (min-width:","px){margin-top:0;}"],m.breakpoints.medium)),E=y()(c.TcView).withConfig({displayName:"responsive__MetaContainer",componentId:"sc-3t8ix5-6"})(["align-items:center;@media (min-width:","px){flex-direction:row;flex-wrap:wrap;}"],m.breakpoints.medium),k=y()(c.TcView).withConfig({displayName:"responsive__Separator",componentId:"sc-3t8ix5-7"})(["display:none;@media (min-width:","px){background-color:",";display:flex;height:",";margin:0 ",";width:1px;}"],m.breakpoints.medium,m.colours.functional.keyline,Object(m.spacing)(3),Object(m.spacing)(2)),C=y.a.h2.withConfig({displayName:"responsive__StandfirstContainer",componentId:"sc-3t8ix5-8"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;"," @media (min-width:","px){font-size:","px;line-height:","px;margin-bottom:",";}@media (min-width:","px){margin-bottom:",";}"],e=>e.styles&&e.styles,m.breakpoints.medium,m.fontSizes.infoTitle,Object(m.lineHeight)({font:"bodyRegular",fontSize:"infoTitle"}),Object(m.spacing)(5),m.breakpoints.wide,Object(m.spacing)(4)),P=y()(w.a).withConfig({displayName:"responsive__LeadAsset",componentId:"sc-3t8ix5-9"})(["order:2;@media (min-width:","px){width:100%;margin-left:auto;margin-right:auto;}"],m.breakpoints.wide);function T(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 I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}y()(c.TcView).withConfig({displayName:"responsive__LeadAssetCaptionContainer",componentId:"sc-3t8ix5-10"})(["display:flex;"]);var R=N(N({},{articleHeadline:I(I({},Object(m.fontFactory)({font:"headline",fontSize:"headline"})),{},{fontWeight:400,color:m.colours.functional.brandColour,marginBottom:Object(m.spacing)(2),textAlign:"center"}),container:{alignItems:"center",paddingBottom:Object(m.spacing)(9),paddingLeft:Object(m.spacing)(4),paddingRight:Object(m.spacing)(4),paddingTop:Object(m.spacing)(12)},containerTablet:{alignSelf:"center",maxWidth:m.tabletWidthMax},datePublication:I(I({},Object(m.fontFactory)({font:"supporting",fontSize:"cardMeta"})),{},{color:m.colours.functional.secondary,marginTop:Object(m.spacing)(1)}),datePulicationTablet:{marginTop:Object(m.spacing)(0)},headerText:{alignItems:"center"},headerTextTablet:{width:m.tabletWidth},label:{marginBottom:Object(m.spacing)(2)},leadAsset:{marginBottom:Object(m.spacing)(0)},leadAssetTablet:{alignSelf:"center",maxWidth:m.tabletWidthMax,width:"100%"},meta:{flexDirection:"row",flexWrap:"wrap",justifyContent:"center"},metaContainer:{alignItems:"center",marginLeft:Object(m.spacing)(2),marginRight:Object(m.spacing)(2),paddingBottom:Object(m.spacing)(2),paddingTop:Object(m.spacing)(2),borderBottomColor:m.colours.functional.keyline,borderBottomWidth:1,borderTopColor:m.colours.functional.keyline,borderTopWidth:1,marginBottom:Object(m.spacing)(4)},metaContainerTablet:{alignSelf:"center",width:m.tabletWidth},metaContainerTabletFlow:{alignItems:"center",flexDirection:"row",justifyContent:"center",width:"100%"},separator:{borderRightColor:m.colours.functional.keyline,borderRightWidth:1,height:Object(m.spacing)(3),marginRight:Object(m.spacing)(2),paddingLeft:Object(m.spacing)(2)},standFirst:I(I({},Object(m.fontFactory)({font:"headlineRegular",fontSize:"smallestHeadline"})),{},{fontWeight:400,color:m.colours.functional.primary,marginBottom:Object(m.spacing)(3),paddingLeft:Object(m.spacing)(2),paddingRight:Object(m.spacing)(2),textAlign:"center"})}),{},{leadAsset:{marginBottom:Object(m.spacing)(4)},metaContainer:{justifyContent:"center",paddingTop:Object(m.spacing)(2),paddingBottom:Object(m.spacing)(2)}}),F=e=>{let t=e.bylines,n=e.publicationName,i=e.publishedTime;return o.a.createElement(E,{style:R.metaContainer},Object(l.hasBylineData)(t)&&o.a.createElement(r.Fragment,null,o.a.createElement(_,{style:R.meta},o.a.createElement(d.a.Consumer,null,e=>{let n=e.theme.sectionColour;return o.a.createElement(l.ArticleBylineWithLinks,{ast:t,color:n||m.colours.section.default})})),o.a.createElement(k,null)),o.a.createElement(_,{style:R.meta},o.a.createElement(O,{styles:Object(c.checkStylesForUnits)(R.datePublication)},o.a.createElement(p.a,{date:i,publication:n}))))},z=n(8),L=n(12),H=n.n(L),U=n(13),B=n.n(U);g.a.string,g.a.bool,g.a.string;const W={color:m.colours.section.default,isVideo:!1,label:null},Y=e=>{let t=e.color,n=e.isVideo,r=e.label;if(!n&&!r)return null;const i=n?B.a:H.a;return o.a.createElement(c.TcView,{style:R.label},o.a.createElement(i,{color:t,title:r}))};Y.defaultProps=W;var q=Y;function V(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 G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const X=e=>{let t=e.standfirst,n=e.color;return t?o.a.createElement(C,{role:"heading","aria-level":"2",styles:G(G({},Object(c.checkStylesForUnits)(R.standFirst)),{},{color:n}),testID:"standfirst"},t):null};X.defaultProps={color:m.colours.functional.white,standfirst:null};var Q=X;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 Z(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){J(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 J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}g.a.shape({rgba:g.a.shape({alpha:g.a.number,blue:g.a.number,green:g.a.number,red:g.a.number})}),g.a.arrayOf(g.a.shape({expiryTime:g.a.string,type:g.a.string})),g.a.bool,g.a.string.isRequired,g.a.string,g.a.bool,g.a.string,g.a.shape({rgba:g.a.shape({alpha:g.a.number,blue:g.a.number,green:g.a.number,red:g.a.number})}),g.a.string;const ee=e=>{let t=e.backgroundColour,n=e.flags,r=e.hasVideo,i=e.headline,a=e.label,s=e.standfirst,l=e.textColour,u=e.updatedTime;const f=Object(c.gqlRgbaToStyle)(t),p=Object(c.gqlRgbaToStyle)(l),h=(e,t)=>Object(c.checkStylesForUnits)(Z(Z({},R.articleHeadline),{},{color:p,fontFamily:e?m.fontsWithFallback[e]:null,textTransform:t||null}));return o.a.createElement(d.a.Consumer,null,e=>{let t=e.theme,l=t.headlineFont,d=t.headlineCase;return o.a.createElement(c.TcView,{style:{backgroundColor:f,order:2,width:"100%"}},o.a.createElement(j,{styles:R.container},o.a.createElement(q,{color:p,isVideo:r,label:a}),o.a.createElement(S,{role:"heading","aria-level":"1",styles:h(l,d)},i),o.a.createElement(x,null,o.a.createElement(z.UpdatedTimeProvider,{updatedTime:u},o.a.createElement(z.ArticleFlags,{color:p,flags:n}))),o.a.createElement(Q,{color:p,standfirst:s})))})};ee.defaultProps={backgroundColour:{rgba:{alpha:1,blue:255,green:255,red:255}},flags:[],hasVideo:!1,label:null,longRead:!1,standfirst:null,textColour:{rgba:{alpha:1,blue:0,green:0,red:0}},updatedTime:null};var te=ee;function ne(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 re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}re(re({},{analyticsStream:g.a.func.isRequired,article:g.a.shape({}),error:g.a.shape({graphQLErrors:g.a.array,message:g.a.string,networkError:g.a.shape({message:g.a.string})}),isLoading:g.a.bool,onImagePress:g.a.func,receiveChildList:g.a.func.isRequired}),{},{navigationMode:g.a.shape({}).isRequired});const ie=re({},{article:null,error:null,isLoading:!1,onImagePress:null});function ae(){return(ae=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)}class ce extends r.Component{constructor(e){super(e),this.renderHeader=this.renderHeader.bind(this)}renderHeader(){const e=this.props.article,t=e.backgroundColour,n=e.bylines,a=e.expirableFlags,l=e.hasVideo,u=e.headline,d=e.label,f=e.publicationName,p=e.publishedTime,m=e.shortHeadline,h=e.standfirst,g=e.textColour,b=e.updatedTime;return o.a.createElement(r.Fragment,null,o.a.createElement(te,{backgroundColour:t,flags:a,hasVideo:l,headline:Object(c.getHeadline)(u,m),label:d,standfirst:h,textColour:g,updatedTime:b}),o.a.createElement(P,ae({},Object(c.getLeadAsset)(e),{renderCaption:e=>{let t=e.caption;return o.a.createElement(s.CentredCaption,t)},style:R.leadAsset})),o.a.createElement(i.ArticleKeylineItem,null,o.a.createElement(F,{backgroundColour:t,bylines:n,publicationName:f,publishedTime:p,textColour:g})))}render(){const e=this.props,t=e.article,n=e.analyticsStream,r=e.error,i=e.isLoading,c=e.logoUrl,s=e.navigationMode,l=e.receiveChildList,u=e.commentingConfig,d=e.isPreview,f=e.swgProductId;return r||i?null:o.a.createElement(a.a,{analyticsStream:n,data:t,Header:this.renderHeader,logoUrl:c,receiveChildList:l,navigationMode:s,commentingConfig:u,isPreview:d,swgProductId:f})}}ce.defaultProps=ie,t.default=ce}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(57)},function(e,t){e.exports=n(217)},function(e,t){e.exports=n(85)},function(e,t){e.exports=n(135)},function(e,t){e.exports=n(151)},function(e,t){e.exports=n(134)},function(e,t){e.exports=n(137)},function(e,t){e.exports=n(138)},function(e,t){e.exports=n(139)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(9),a=n.n(i),c=n(3),s=n(10),l=n(5),u=n.n(l),d=n(7),f=n(0),p=n(11),m=n.n(p),h=n(12),g=n.n(h),b=n(1),y=n.n(b);function v(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}y.a.bool,y.a.string;var S=function(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){j(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}({},{articleHeadline:w(w({},Object(f.fontFactory)({font:"headline",fontSize:"headline"})),{},{color:f.colours.functional.brandColour,marginBottom:Object(f.spacing)(2),textAlign:"center"}),container:{alignItems:"center",marginBottom:Object(f.spacing)(5),paddingLeft:Object(f.spacing)(2),paddingRight:Object(f.spacing)(2),paddingTop:Object(f.spacing)(7)},datePublication:w(w({},Object(f.fontFactory)({font:"supporting",fontSize:"cardMeta"})),{},{color:f.colours.functional.secondary,marginTop:Object(f.spacing)(3)}),datePublicationTablet:{marginTop:"auto"},label:{marginBottom:Object(f.spacing)(2)},leadAssetContainer:{marginBottom:Object(f.spacing)(4)},leadAssetContainerTablet:{paddingLeft:Object(f.spacing)(2),paddingRight:Object(f.spacing)(2)},meta:{flexDirection:"row",flexWrap:"wrap"},metaContainer:{alignItems:"center"},metaContainerTablet:{flexDirection:"row",justifyContent:"center"},metaTablet:{paddingTop:Object(f.spacing)(1)},separator:{borderRightColor:f.colours.functional.keyline,borderRightWidth:1,height:Object(f.spacing)(3),marginLeft:Object(f.spacing)(2),marginRight:Object(f.spacing)(2)},standFirst:w(w({},Object(f.fontFactory)({font:"headlineRegular",fontSize:"smallestHeadline"})),{},{color:f.colours.functional.primary,marginBottom:Object(f.spacing)(3),paddingLeft:Object(f.spacing)(2),paddingRight:Object(f.spacing)(2),textAlign:"center"})});const _=e=>{let t=e.isVideo,n=e.label;if(!t&&!n)return null;const r=t?g.a:m.a;return o.a.createElement(u.a.Consumer,null,e=>{let t=e.theme.sectionColour;return o.a.createElement(c.TcView,{style:S.label},o.a.createElement(r,{color:t||f.colours.section.default,title:n}))})};_.defaultProps={isVideo:!1,label:null};var E=_,k=n(8),C=n(13),P=n.n(C);y.a.arrayOf(y.a.shape({})).isRequired,y.a.string.isRequired,y.a.string.isRequired;var T=n(4),I=n.n(T),A=n(6),D=n.n(A);const N=I()(c.TcText).withConfig({displayName:"responsive__DatePublicationContainer",componentId:"iv7rgu-0"})(["",";flex-direction:row;flex-wrap:wrap;margin-top:",";@media (min-width:","px){margin-top:0;}"],e=>e.styles&&e.styles,Object(f.spacing)(3),f.breakpoints.medium),M=I()(c.TcView).withConfig({displayName:"responsive__FlagsContainer",componentId:"iv7rgu-1"})(["padding-top:",";padding-bottom:",";@media (min-width:","px){padding-top:0;}"],Object(f.spacing)(1),Object(f.spacing)(3),f.breakpoints.medium),R=I()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"iv7rgu-2"})(["order:2;@media (min-width:","px){width:80.8%;margin-top:0;margin-left:auto;margin-right:auto;margin-bottom:",";}@media (min-width:","px){width:56.2%;}"],f.breakpoints.medium,Object(f.spacing)(6),f.breakpoints.wide),F=I.a.h1.withConfig({displayName:"responsive__HeadlineContainer",componentId:"iv7rgu-3"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;"," @media (min-width:","px){font-size:","px;line-height:50px;margin-bottom:",";}"],e=>e.styles&&e.styles,f.breakpoints.medium,f.fontSizes.articleHeadline,Object(f.spacing)(1)),z=(I()(c.TcView).withConfig({displayName:"responsive__LabelContainer",componentId:"iv7rgu-4"})(["@media (min-width:","px){margin-top:0px;}"],f.breakpoints.wide),I()(c.TcView).withConfig({displayName:"responsive__Meta",componentId:"iv7rgu-5"})(["max-width:100%;justify-content:center;@media (min-width:","px){margin-top:0;}"],f.breakpoints.medium)),L=I()(c.TcView).withConfig({displayName:"responsive__MetaContainer",componentId:"iv7rgu-6"})(["align-items:center;justify-content:center;@media (min-width:","px){flex-direction:row;flex-wrap:wrap;}"],f.breakpoints.medium),H=I()(c.TcView).withConfig({displayName:"responsive__Separator",componentId:"iv7rgu-7"})(["display:none;@media (min-width:","px){background-color:",";display:flex;height:",";margin:0 ",";width:1px;}"],f.breakpoints.medium,f.colours.functional.keyline,Object(f.spacing)(3),Object(f.spacing)(2)),U=I.a.h2.withConfig({displayName:"responsive__StandfirstContainer",componentId:"iv7rgu-8"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;"," @media (min-width:","px){font-size:","px;line-height:","px;margin-bottom:",";}@media (min-width:","px){margin-bottom:",";}"],e=>e.styles&&e.styles,f.breakpoints.medium,f.fontSizes.infoTitle,Object(f.lineHeight)({font:"bodyRegular",fontSize:"infoTitle"}),Object(f.spacing)(5),f.breakpoints.wide,Object(f.spacing)(4));I()(D.a).withConfig({displayName:"responsive__LeadAsset",componentId:"iv7rgu-9"})(["order:2;@media (min-width:","px){margin-bottom:",";}@media (min-width:","px){width:56.2%;margin-left:auto;margin-right:auto;}"],f.breakpoints.medium,Object(f.spacing)(6),f.breakpoints.wide);var B=e=>{let t=e.bylines,n=e.publicationName,i=e.publishedTime;return o.a.createElement(L,null,Object(k.hasBylineData)(t)&&o.a.createElement(r.Fragment,null,o.a.createElement(z,{style:S.meta},o.a.createElement(u.a.Consumer,null,e=>{let n=e.theme.sectionColour;return o.a.createElement(k.ArticleBylineWithLinks,{ast:t,color:n||f.colours.section.default})})),o.a.createElement(H,null)),o.a.createElement(z,{style:S.meta},o.a.createElement(N,{styles:Object(c.checkStylesForUnits)(S.datePublication)},o.a.createElement(P.a,{date:i,publication:n}))))};const W=e=>{let t=e.standfirst;return t?o.a.createElement(U,{role:"heading","aria-level":"2",styles:Object(c.checkStylesForUnits)(S.standFirst),testID:"standfirst"},t):null};W.defaultProps={standfirst:null};var Y=W;function q(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 V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}y.a.arrayOf(y.a.shape({})).isRequired,y.a.arrayOf(y.a.shape({expiryTime:y.a.string,type:y.a.string})),y.a.bool,y.a.string.isRequired,y.a.string,y.a.bool,y.a.string.isRequired,y.a.string.isRequired,y.a.string,y.a.string;const $=(e,t)=>Object(c.checkStylesForUnits)(V(V({},S.articleHeadline),{},{fontFamily:e?f.fontsWithFallback[e]:null,textTransform:t||null})),X=e=>{let t=e.bylines,n=e.flags,r=e.hasVideo,i=e.headline,a=e.label,c=e.publicationName,s=e.publishedTime,l=e.standfirst,f=e.updatedTime;return o.a.createElement(u.a.Consumer,null,e=>{let u=e.theme,p=u.headlineFont,m=u.headlineCase;return o.a.createElement(R,{style:S.container},o.a.createElement(E,{isVideo:r,label:a}),o.a.createElement(F,{role:"heading","aria-level":"1",styles:$(p,m)},i),o.a.createElement(M,null,o.a.createElement(d.UpdatedTimeProvider,{updatedTime:f},o.a.createElement(d.ArticleFlags,{flags:n}))),o.a.createElement(Y,{standfirst:l}),o.a.createElement(B,{bylines:t,publicationName:c,publishedTime:s}))})};X.defaultProps={flags:[],hasVideo:!1,label:null,longRead:!1,standfirst:null,updatedTime:null};var Q=X;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 Z(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){J(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 J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Z(Z({},{analyticsStream:y.a.func.isRequired,article:y.a.shape({}),error:y.a.shape({graphQLErrors:y.a.array,message:y.a.string,networkError:y.a.shape({message:y.a.string})}),isLoading:y.a.bool,onImagePress:y.a.func,receiveChildList:y.a.func.isRequired}),{},{navigationMode:y.a.shape({}).isRequired});const ee=Z({},{article:null,error:null,isLoading:!1,onImagePress:null});function te(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 ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oe(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 ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ae=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{articleHeadline:ne(ne({},Object(f.fontFactory)({font:"headline",fontSize:"headline"})),{},{color:f.colours.functional.brandColour,marginBottom:Object(f.spacing)(2),textAlign:"center"}),container:{alignItems:"center",marginBottom:Object(f.spacing)(5),paddingLeft:Object(f.spacing)(2),paddingRight:Object(f.spacing)(2),paddingTop:Object(f.spacing)(7)},datePublication:ne(ne({},Object(f.fontFactory)({font:"supporting",fontSize:"cardMeta"})),{},{color:f.colours.functional.secondary,marginTop:Object(f.spacing)(3)}),datePublicationTablet:{marginTop:"auto"},label:{marginBottom:Object(f.spacing)(2)},leadAssetContainer:{marginBottom:Object(f.spacing)(4)},leadAssetContainerTablet:{paddingLeft:Object(f.spacing)(2),paddingRight:Object(f.spacing)(2)},meta:{flexDirection:"row",flexWrap:"wrap"},metaContainer:{alignItems:"center"},metaContainerTablet:{flexDirection:"row",justifyContent:"center"},metaTablet:{paddingTop:Object(f.spacing)(1)},separator:{borderRightColor:f.colours.functional.keyline,borderRightWidth:1,height:Object(f.spacing)(3),marginLeft:Object(f.spacing)(2),marginRight:Object(f.spacing)(2)},standFirst:ne(ne({},Object(f.fontFactory)({font:"headlineRegular",fontSize:"smallestHeadline"})),{},{color:f.colours.functional.primary,marginBottom:Object(f.spacing)(3),paddingLeft:Object(f.spacing)(2),paddingRight:Object(f.spacing)(2),textAlign:"center"})});I()(c.TcText).withConfig({displayName:"responsive__DatePublicationContainer",componentId:"bpd0t9-0"})(["flex-direction:row;flex-wrap:wrap;margin-top:",";@media (min-width:","px){margin-top:0;}"],Object(f.spacing)(3),f.breakpoints.medium),I()(c.TcView).withConfig({displayName:"responsive__FlagsContainer",componentId:"bpd0t9-1"})(["padding-top:",";padding-bottom:",";@media (min-width:","px){padding-top:0;}"],Object(f.spacing)(1),Object(f.spacing)(3),f.breakpoints.medium),I()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"bpd0t9-2"})(["order:2;@media (min-width:","px){width:80.8%;margin-top:0;margin-left:auto;margin-right:auto;margin-bottom:",";}@media (min-width:","px){width:56.2%;}"],f.breakpoints.medium,Object(f.spacing)(6),f.breakpoints.wide),I()(c.TcText).withConfig({displayName:"responsive__HeadlineContainer",componentId:"bpd0t9-3"})(["font-weight:400;@media (min-width:","px){font-size:","px;line-height:50px;margin-bottom:",";}"],f.breakpoints.medium,f.fontSizes.articleHeadline,Object(f.spacing)(1)),I()(c.TcView).withConfig({displayName:"responsive__LabelContainer",componentId:"bpd0t9-4"})(["@media (min-width:","px){margin-top:0px;}"],f.breakpoints.wide),I()(c.TcView).withConfig({displayName:"responsive__Meta",componentId:"bpd0t9-5"})(["max-width:100%;justify-content:center;@media (min-width:","px){margin-top:0;}"],f.breakpoints.medium),I()(c.TcView).withConfig({displayName:"responsive__MetaContainer",componentId:"bpd0t9-6"})(["align-items:center;justify-content:center;@media (min-width:","px){flex-direction:row;flex-wrap:wrap;}"],f.breakpoints.medium),I()(c.TcView).withConfig({displayName:"responsive__Separator",componentId:"bpd0t9-7"})(["display:none;@media (min-width:","px){background-color:",";display:flex;height:",";margin:0 ",";width:1px;}"],f.breakpoints.medium,f.colours.functional.keyline,Object(f.spacing)(3),Object(f.spacing)(2)),I()(c.TcText).withConfig({displayName:"responsive__StandfirstContainer",componentId:"bpd0t9-8"})(["font-weight:400;@media (min-width:","px){font-size:","px;line-height:","px;margin-bottom:",";}@media (min-width:","px){margin-bottom:",";}"],f.breakpoints.medium,f.fontSizes.infoTitle,Object(f.lineHeight)({font:"bodyRegular",fontSize:"infoTitle"}),Object(f.spacing)(5),f.breakpoints.wide,Object(f.spacing)(4));const ce=I()(D.a).withConfig({displayName:"responsive__LeadAsset",componentId:"bpd0t9-9"})(["order:2;@media (min-width:","px){margin-bottom:",";}@media (min-width:","px){width:56.2%;margin-left:auto;margin-right:auto;}"],f.breakpoints.medium,Object(f.spacing)(6),f.breakpoints.wide);function se(){return(se=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)}class le extends r.Component{constructor(e){super(e),this.renderHeader=this.renderHeader.bind(this)}renderHeader(){const e=this.props.article,t=e.bylines,n=e.expirableFlags,i=e.hasVideo,a=e.headline,l=e.label,u=e.publicationName,d=e.publishedTime,f=e.shortHeadline,p=e.standfirst,m=e.updatedTime;return o.a.createElement(r.Fragment,null,o.a.createElement(Q,{bylines:t,flags:n,hasVideo:i,headline:Object(c.getHeadline)(a,f),label:l,publicationName:u,publishedTime:d,standfirst:p,updatedTime:m}),o.a.createElement(ce,se({},Object(c.getLeadAsset)(e),{getImageCrop:c.getStandardTemplateCrop,renderCaption:e=>{let t=e.caption;return o.a.createElement(s.CentredCaption,t)},style:ae.leadAssetContainer})))}render(){const e=this.props,t=e.article,n=e.analyticsStream,r=e.error,i=e.isLoading,c=e.logoUrl,s=e.navigationMode,l=e.receiveChildList,u=e.commentingConfig,d=e.paidContentClassName,f=e.isPreview,p=e.swgProductId;return r||i?null:o.a.createElement(a.a,{analyticsStream:n,data:t,Header:this.renderHeader,logoUrl:c,receiveChildList:l,navigationMode:s,commentingConfig:u,paidContentClassName:d,isPreview:f,swgProductId:p})}}le.defaultProps=ee,t.default=le}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(85)},function(e,t){e.exports=n(314)},function(e,t){e.exports=n(135)},function(e,t){e.exports=n(151)},function(e,t){e.exports=n(97)},function(e,t){e.exports=n(137)},function(e,t){e.exports=n(138)},function(e,t){e.exports=n(57)},function(e,t){e.exports=n(139)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(8),a=n.n(i),c=n(3),s=n(5),l=n(6),u=n(9),d=n.n(u),f=n(10),p=n.n(f),m=n(11),h=n.n(m),g=n(12),b=n.n(g),y=n(0),v=n(1),w=n.n(v);function O(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(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 _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}w.a.bool,w.a.string;var E=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{articleHeadline:x(x({},Object(y.fontFactory)({font:"headline",fontSize:"headline"})),{},{color:y.colours.functional.brandColour,marginBottom:Object(y.spacing)(2),textAlign:"center"}),articleHeadlineTablet:x({},Object(y.fontFactory)({font:"headline",fontSize:"articleHeadline"})),authorImage:{marginBottom:Object(y.spacing)(5)},container:{alignItems:"center",paddingLeft:Object(y.spacing)(2),paddingRight:Object(y.spacing)(2)},datePublication:x(x({},Object(y.fontFactory)({font:"supporting",fontSize:"cardMeta"})),{},{color:y.colours.functional.secondary,marginTop:Object(y.spacing)(1)}),datePublicationTablet:{marginTop:"auto"},header:{marginBottom:Object(y.spacing)(3),paddingBottom:Object(y.spacing)(4),paddingTop:Object(y.spacing)(7)},label:{marginBottom:Object(y.spacing)(2)},meta:{flexDirection:"row",flexWrap:"wrap"},metaContainer:{alignItems:"center",width:"100%",paddingTop:Object(y.spacing)(2),paddingBottom:Object(y.spacing)(2),borderBottomColor:y.colours.functional.keyline,borderBottomWidth:1,borderTopColor:y.colours.functional.keyline,borderTopWidth:1},metaContainerTablet:{flexDirection:"row",justifyContent:"center"},separator:{borderRightColor:y.colours.functional.keyline,borderRightWidth:1,height:Object(y.spacing)(3),marginLeft:Object(y.spacing)(2),marginRight:Object(y.spacing)(2)},standFirst:x(x({},Object(y.fontFactory)({font:"headlineRegular",fontSize:"smallestHeadline"})),{},{color:y.colours.functional.primary,marginBottom:Object(y.spacing)(3),paddingLeft:Object(y.spacing)(2),paddingRight:Object(y.spacing)(2),textAlign:"center"})});const k=e=>{let t=e.isVideo,n=e.label;if(!t&&!n)return null;const r=t?h.a:p.a;return o.a.createElement(b.a.Consumer,null,e=>{let t=e.theme.sectionColour;return o.a.createElement(c.TcView,{style:E.label},o.a.createElement(r,{color:t||y.colours.section.default,title:n}))})};k.defaultProps={isVideo:!1,label:null};var C=k,P=n(7),T=n(13),I=n.n(T);w.a.arrayOf(w.a.shape({})).isRequired,w.a.string.isRequired,w.a.string.isRequired;var A=n(4),D=n.n(A);const N=D()(c.TcView).withConfig({displayName:"responsive__AuthorImageContainer",componentId:"ba1gpd-0"})(["border-radius:50%;height:100px;overflow:hidden;width:100px;@media (min-width:","px){height:118px;width:118px;}"],y.breakpoints.medium),M=D()(c.TcText).withConfig({displayName:"responsive__DatePublicationContainer",componentId:"ba1gpd-1"})(["",";flex-direction:row;flex-wrap:wrap;margin-top:",";@media (min-width:","px){margin-top:0;}"],e=>e.styles&&e.styles,Object(y.spacing)(3),y.breakpoints.medium),R=D()(c.TcView).withConfig({displayName:"responsive__FlagsContainer",componentId:"ba1gpd-2"})(["padding-top:",";padding-bottom:",";@media (min-width:","px){padding-top:0;}"],Object(y.spacing)(1),Object(y.spacing)(3),y.breakpoints.medium),F=D()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"ba1gpd-3"})(["order:2;z-index:1;@media (min-width:","px){width:80.8%;margin:0 auto ",";margin-left:auto;margin-right:auto;}@media (min-width:","px){width:56.2%;}"],y.breakpoints.medium,Object(y.spacing)(2),y.breakpoints.wide),z=D.a.h1.withConfig({displayName:"responsive__HeadlineContainer",componentId:"ba1gpd-4"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;",";@media (min-width:","px){font-size:","px;line-height:50px;margin-bottom:",";}"],e=>e.styles&&e.styles,y.breakpoints.medium,y.fontSizes.articleHeadline,Object(y.spacing)(1)),L=(D()(c.TcView).withConfig({displayName:"responsive__LabelContainer",componentId:"ba1gpd-5"})(["@media (min-width:","px){margin-top:0px;}"],y.breakpoints.wide),D()(c.TcView).withConfig({displayName:"responsive__Meta",componentId:"ba1gpd-6"})([""," max-width:100%;justify-content:center;@media (min-width:","px){margin-top:0;}"],e=>e.styles&&e.styles,y.breakpoints.medium)),H=D()(c.TcView).withConfig({displayName:"responsive__MetaContainer",componentId:"ba1gpd-7"})(["align-items:center;justify-content:center;@media (min-width:","px){flex-direction:row;flex-wrap:wrap;}"],y.breakpoints.medium),U=D()(c.TcView).withConfig({displayName:"responsive__Separator",componentId:"ba1gpd-8"})(["display:none;@media (min-width:","px){background-color:",";display:flex;height:",";margin:0 ",";width:1px;}"],y.breakpoints.medium,y.colours.functional.keyline,Object(y.spacing)(3),Object(y.spacing)(2)),B=D.a.h2.withConfig({displayName:"responsive__StandfirstContainer",componentId:"ba1gpd-9"})(["border:0px solid black;box-sizing:border-box;display:inline;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;",";@media (min-width:","px){font-size:","px;line-height:","px;margin-bottom:",";}@media (min-width:","px){margin-bottom:",";}"],e=>e.styles&&e.styles,y.breakpoints.medium,y.fontSizes.infoTitle,Object(y.lineHeight)({font:"bodyRegular",fontSize:"infoTitle"}),Object(y.spacing)(5),y.breakpoints.wide,Object(y.spacing)(4));var W=e=>{let t=e.bylines,n=e.publicationName,i=e.publishedTime;return o.a.createElement(H,null,Object(P.hasBylineData)(t)&&o.a.createElement(r.Fragment,null,o.a.createElement(L,{styles:E.meta},o.a.createElement(P.ArticleBylineWithLinks,{ast:t})),o.a.createElement(U,null)),o.a.createElement(L,{styles:E.meta},o.a.createElement(M,{styles:Object(c.checkStylesForUnits)(E.datePublication)},o.a.createElement(I.a,{date:i,publication:n}))))};const Y=e=>{let t=e.standfirst;return t?o.a.createElement(B,{role:"heading","aria-level":"2",styles:Object(c.checkStylesForUnits)(E.standFirst),testID:"standfirst"},t):null};Y.defaultProps={standfirst:null};var q=Y;function V(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 G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}w.a.string.isRequired,w.a.arrayOf(w.a.shape({})).isRequired,w.a.arrayOf(w.a.shape({expiryTime:w.a.string,type:w.a.string})),w.a.bool,w.a.string.isRequired,w.a.string,w.a.bool,w.a.string.isRequired,w.a.string.isRequired,w.a.bool,w.a.string,w.a.string;const X=e=>{let t=e.authorImage,n=e.bylines,r=e.flags,i=e.hasVideo,a=e.headline,u=e.label,f=e.publicationName,p=e.showAudioPlayer,m=e.publishedTime,h=e.standfirst,g=e.updatedTime;return o.a.createElement(F,{style:G(G({},E.header),E.container)},o.a.createElement(N,{style:E.authorImage},o.a.createElement(d.a,{aspectRatio:1,uri:t,accessibilityLabel:"author-image"})),o.a.createElement(C,{isVideo:i,label:u}),o.a.createElement(z,{role:"heading","aria-level":"1",styles:Object(c.checkStylesForUnits)(E.articleHeadline)},a),o.a.createElement(R,null,o.a.createElement(s.UpdatedTimeProvider,{updatedTime:g},o.a.createElement(s.ArticleFlags,{flags:r}))),o.a.createElement(q,{standfirst:h}),o.a.createElement(W,{bylines:n,publicationName:f,publishedTime:m}),p&&o.a.createElement(l.TCThemeProvider,null,o.a.createElement(l.InArticleAudio,{src:"https://ncu-newskit-docs.s3.eu-west-1.amazonaws.com/storybook-assets/audio_file_1.mp3",readyToPlayText:"Listen to article",playingText:"Playing",narrator:"James Marriott",headline:"Sorry, we can’t all be destined for greatness",feedback:{requestFeedback:!0,feedbackMessage:"Want to listen to more articles? Give your feedback below or email",thankyouMessage:"Thank you for your feedback. We're always trying to give you the best possible experience – your feedback helps us do this."}})))};X.defaultProps={flags:[],hasVideo:!1,label:null,longRead:!1,standfirst:null,updatedTime:null};var Q=X;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 Z(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){J(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 J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Z(Z({},{analyticsStream:w.a.func.isRequired,article:w.a.shape({}),error:w.a.shape({graphQLErrors:w.a.array,message:w.a.string,networkError:w.a.shape({message:w.a.string})}),isLoading:w.a.bool,onImagePress:w.a.func,receiveChildList:w.a.func.isRequired,zephrDivs:w.a.bool,showAudioPlayer:w.a.bool}),{},{navigationMode:w.a.shape({}).isRequired});const ee=Z({},{article:null,error:null,isLoading:!1,onImagePress:null,showAudioPlayer:!1});class te extends r.Component{constructor(e){super(e),this.renderHeader=this.renderHeader.bind(this)}renderHeader(){const e=this.props,t=e.article,n=e.showAudioPlayer,r=t.bylines,i=t.expirableFlags,a=t.hasVideo,s=t.headline,l=t.label,u=t.publicationName,d=t.publishedTime,f=t.shortHeadline,p=t.standfirst,m=t.updatedTime,h=r&&r.length>0&&r[0].image&&0!==Object.keys(r[0].image).length&&r[0].image.crop?r[0].image.crop.url:null;return o.a.createElement(Q,{authorImage:h,bylines:r,flags:i,hasVideo:a,headline:Object(c.getHeadline)(s,f),label:l,publicationName:u,publishedTime:d,standfirst:p,updatedTime:m,showAudioPlayer:n})}render(){const e=this.props,t=e.article,n=e.analyticsStream,r=e.error,i=e.isLoading,c=e.logoUrl,s=e.navigationMode,l=e.receiveChildList,u=e.commentingConfig,d=e.paidContentClassName,f=e.isPreview,p=e.showAudioPlayer,m=e.swgProductId,h=e.zephrDivs;return r||i?null:o.a.createElement(a.a,{analyticsStream:n,data:t,Header:this.renderHeader,logoUrl:c,receiveChildList:l,navigationMode:s,commentingConfig:u,paidContentClassName:d,isPreview:f,swgProductId:m,zephrDivs:h,showAudioPlayer:p})}}te.defaultProps=ee,t.default=te}])},,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(492),o=n.n(r);function i(e,t,n){var r=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return r.formatToParts?function(e,t){var n=e.formatToParts(t);return n[n.length-1].value}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,t)}function a(e,t){var n=function(e){if(!s[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;s[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return s[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o<n.length;o++){var i=c[n[o].type];i>=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(n,e)}var c={year:0,month:1,day:2,hour:3,minute:4,second:5};var s={};function l(e,t,n,r,o,i,a){var c=new Date(0);return c.setUTCFullYear(e,t,n),c.setUTCHours(r,o,i,a),c}var u={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function d(e,t,n){var r,o,i;if(""===e)return 0;if(r=u.timezoneZ.exec(e))return 0;if(r=u.timezoneHH.exec(e))return p(i=parseInt(r[1],10))?-36e5*i:NaN;if(r=u.timezoneHHMM.exec(e)){i=parseInt(r[1],10);var a=parseInt(r[2],10);return p(i,a)?(o=36e5*Math.abs(i)+6e4*a,i>0?-o:o):NaN}if(function(e){if(m[e])return!0;try{return Intl.DateTimeFormat(void 0,{timeZone:e}),m[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var c=f(n?t:function(e){return l(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),e);return-(n?c:function(e,t,n){var r=e.getTime()-t,o=f(new Date(r),n);if(t===o)return t;r-=o-t;var i=f(new Date(r),n);if(o===i)return o;return Math.max(o,i)}(t,c,e))}return NaN}function f(e,t){var n=a(e,t),r=l(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return r-(o-=i>=0?i:1e3+i)}function p(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var m={};function h(e,t){var n=e?d(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function g(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}function b(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+g(Math.floor(o/60),2)+n+g(Math.floor(o%60),2)}function y(e,t){return e%60==0?(e>0?"-":"+")+g(Math.abs(e)/60,2):b(e,t)}var v={X:function(e,t,n,r){var o=h(r.timeZone,r._originalDate||e);if(0===o)return"Z";switch(t){case"X":return y(o);case"XXXX":case"XX":return b(o);case"XXXXX":case"XXX":default:return b(o,":")}},x:function(e,t,n,r){var o=h(r.timeZone,r._originalDate||e);switch(t){case"x":return y(o);case"xxxx":case"xx":return b(o);case"xxxxx":case"xxx":default:return b(o,":")}},O:function(e,t,n,r){var o=h(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+g(i,2)}(o,":");case"OOOO":default:return"GMT"+b(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return i("short",o,r);case"zzzz":default:return i("long",o,r)}}},w=n(107),O=n.n(w),x=n(225),j=n.n(x),S=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,_={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:S};function E(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?2:O()(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o=k(e),i=C(o.date,r),a=i.year,c=i.restDateString,s=P(c,a);if(isNaN(s))return new Date(NaN);if(s){var l,u=s.getTime(),f=0;if(o.time&&(f=T(o.time),isNaN(f)))return new Date(NaN);if(o.timeZone||n.timeZone){if(l=d(o.timeZone||n.timeZone,new Date(u+f)),isNaN(l))return new Date(NaN)}else l=j()(new Date(u+f)),l=j()(new Date(u+f+l));return new Date(u+f+l)}return new Date(NaN)}function k(e){var t,n={},r=_.dateTimePattern.exec(e);if(r?(n.date=r[1],t=r[3]):(r=_.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e),t){var o=_.timeZone.exec(t);o?(n.time=t.replace(o[1],""),n.timeZone=o[1].trim()):n.time=t}return n}function C(e,t){var n,r=_.YYY[t],o=_.YYYYY[t];if(n=_.YYYY.exec(e)||o.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=_.YY.exec(e)||r.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}function P(e,t){if(null===t)return null;var n,r,o,i;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=_.MM.exec(e))return r=new Date(0),M(t,o=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=_.DDD.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=N(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=_.MMDD.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var c=parseInt(n[2],10);return M(t,o,c)?(r.setUTCFullYear(t,o,c),r):new Date(NaN)}if(n=_.Www.exec(e))return R(t,i=parseInt(n[1],10)-1)?I(t,i):new Date(NaN);if(n=_.WwwD.exec(e)){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return R(t,i,s)?I(t,i,s):new Date(NaN)}return null}function T(e){var t,n,r;if(t=_.HH.exec(e))return F(n=parseFloat(t[1].replace(",",".")))?n%24*36e5:NaN;if(t=_.HHMM.exec(e))return F(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*36e5+6e4*r:NaN;if(t=_.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return F(n,r,o)?n%24*36e5+6e4*r+1e3*o:NaN}return null}function I(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}var A=[31,28,31,30,31,30,31,31,30,31,30,31],D=[31,29,31,30,31,30,31,31,30,31,30,31];function N(e){return e%400==0||e%4==0&&e%100!=0}function M(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=N(e);if(r&&n>D[t])return!1;if(!r&&n>A[t])return!1}return!0}function R(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function F(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var z=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function L(e,t,n){var r=String(t),i=n||{},a=r.match(z);if(a){var c=E(e,i);r=a.reduce((function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],o=e.replace(t,"'"+v[t[0]](c,t,null,i)+"'");return r?o.substring(0,n-1)+o.substring(n+1):o}),r)}return o()(e,r,i)}var H=n(226),U=n.n(H);function B(e,t,n){var r=E(e,n),o=d(t,r,!0),i=new Date(r.getTime()-o);return new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds())}function W(e,t,n,r){var o=U()(r);return o.timeZone=t,L(B(e,t),n,o)}function Y(e,t){return-d(e,t)}function q(e,t,n){if("string"==typeof e&&!e.match(S)){var r=U()(n);return r.timeZone=t,E(e,r)}var o=E(e,n),i=l(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()).getTime(),a=d(t,new Date(i));return new Date(i+a)}n.d(t,"format",(function(){return L})),n.d(t,"formatInTimeZone",(function(){return W})),n.d(t,"getTimezoneOffset",(function(){return Y})),n.d(t,"toDate",(function(){return E})),n.d(t,"utcToZonedTime",(function(){return B})),n.d(t,"zonedTimeToUtc",(function(){return q}))},,,function(e,t,n){"use strict";n.r(t);var r=n(16),o=n(3),i=n.n(o),a=n(0),c=n.n(a);function s(){return(s=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)}var l={preventDefaultTouchmoveEvent:!1,delta:10,rotationAngle:0,trackMouse:!1,trackTouch:!0},u={xy:[0,0],swiping:!1,eventData:void 0,start:void 0};function d(e,t){if(0===t)return e;var n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function f(e,t){var n=function(t){t.touches&&t.touches.length>1||e((function(e,n){n.trackMouse&&(document.addEventListener("mousemove",r),document.addEventListener("mouseup",a));var o=t.touches?t.touches[0]:t,i=d([o.clientX,o.clientY],n.rotationAngle);return s({},e,u,{eventData:{initial:[].concat(i),first:!0},xy:i,start:t.timeStamp||0})}))},r=function(t){e((function(e,n){if(!e.xy[0]||!e.xy[1]||t.touches&&t.touches.length>1)return e;var r=t.touches?t.touches[0]:t,o=d([r.clientX,r.clientY],n.rotationAngle),i=o[0],a=o[1],c=e.xy[0]-i,l=e.xy[1]-a,u=Math.abs(c),f=Math.abs(l),p=(t.timeStamp||0)-e.start,m=Math.sqrt(u*u+f*f)/(p||1);if(u<n.delta&&f<n.delta&&!e.swiping)return e;var h=function(e,t,n,r){return e>t?n>0?"Left":"Right":r>0?"Up":"Down"}(u,f,c,l),g=s({},e.eventData,{event:t,absX:u,absY:f,deltaX:c,deltaY:l,velocity:m,dir:h});n.onSwiping&&n.onSwiping(g);var b=!1;return(n.onSwiping||n.onSwiped||n["onSwiped"+h])&&(b=!0),b&&n.preventDefaultTouchmoveEvent&&n.trackTouch&&t.cancelable&&t.preventDefault(),s({},e,{eventData:s({},g,{first:!1}),swiping:!0})}))},o=function(t){e((function(e,n){var r;return e.swiping&&(r=s({},e.eventData,{event:t}),n.onSwiped&&n.onSwiped(r),n["onSwiped"+r.dir]&&n["onSwiped"+r.dir](r)),s({},e,u,{eventData:r})}))},i=function(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)},a=function(e){i(),o(e)},c=function(e){if(e&&e.addEventListener){var t=[["touchstart",n],["touchmove",r],["touchend",o]];return t.forEach((function(t){var n=t[0],r=t[1];return e.addEventListener(n,r)})),function(){return t.forEach((function(t){var n=t[0],r=t[1];return e.removeEventListener(n,r)}))}}},l={ref:function(t){null!==t&&e((function(e,n){if(e.el===t)return e;var r={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),r.cleanUpTouch=null),n.trackTouch&&t&&(r.cleanUpTouch=c(t)),s({},e,{el:t},r)}))}};return t.trackMouse&&(l.onMouseDown=n),[l,c]}function p(e,t,n){var r={};return!t.trackTouch&&e.cleanUpTouch?(e.cleanUpTouch(),r.cleanUpTouch=null):t.trackTouch&&!e.cleanUpTouch&&e.el&&(r.cleanUpTouch=n(e.el)),s({},e,r)}var m=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this)._set=function(e){n.transientState=e(n.transientState,n.props)},n.transientState=s({},u,{type:"class"}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.className,n=e.style,r=e.nodeName,o=void 0===r?"div":r,i=e.innerRef,a=e.children,l=e.trackMouse,u=f(this._set,{trackMouse:l}),d=u[0],m=u[1];this.transientState=p(this.transientState,this.props,m);var h=i?function(e){return i(e),d.ref(e)}:d.ref;return c.a.createElement(o,s({},d,{className:t,style:n,ref:h}),a)},r}(c.a.PureComponent);m.propTypes={onSwiped:i.a.func,onSwiping:i.a.func,onSwipedUp:i.a.func,onSwipedRight:i.a.func,onSwipedDown:i.a.func,onSwipedLeft:i.a.func,delta:i.a.number,preventDefaultTouchmoveEvent:i.a.bool,nodeName:i.a.string,trackMouse:i.a.bool,trackTouch:i.a.bool,innerRef:i.a.func,rotationAngle:i.a.number},m.defaultProps=l;var h=n(493),g=n.n(h),b=n(494),y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),w=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},O=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},x=function(e){function t(){return y(this,t),O(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),v(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.when,r=e.hiddenMode,o=e.className,i=c.a.Children.only(t),a=i.props,s=a.style,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(a,["style"]),u=w({},l),d=r&&"withNull"!==r;d&&("withCss"===r?u.className=u.className+" "+o:u.style=w({},s,"withDisplay"===r&&{display:"none"},"withVisibility"===r&&{visibility:"hidden"}));var f=c.a.cloneElement(i,u);return n?i:d?f:null}}]),t}(a.Component);x.defaultProps={hiddenMode:"withNull",className:"r-o_hidden"},x.propTypes={children:i.a.element.isRequired,when:i.a.bool.isRequired,hiddenMode:i.a.oneOf(["withNull","withDisplay","withVisibility","withCss"]),className:i.a.string};var j=x;function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t,n){return t&&_(e.prototype,t),n&&_(e,n),e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return(C=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 P(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?P(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?M(e):t}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var o=A(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function z(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function L(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}function U(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}function B(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=H(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}n.d(t,"consts",(function(){return X}));var W=function(){},Y=function(e){return L(Array(e).keys())},q=function(){for(var e="rec",t=" ",n="".concat(e),r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.reduce((function(n,r){return r&&(n+="".concat(t).concat(e,"-").concat(r)),n}),"");return n+=a},V=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(e,t){return t(e)}),e)}};function G(){var e=z(["\n box-sizing: border-box;\n transition: all 0.3s ease;\n font-size: 1.6em;\n background-color: rgba(103, 58, 183, 0.1);\n color: ",";\n box-shadow: 0 0 2px 0px #333;\n border-radius: 50%;\n border: none;\n padding: 0;\n width: 50px;\n height: 50px;\n min-width: 50px;\n line-height: 50px;\n align-self: center;\n cursor: pointer;\n outline: none;\n &:hover:enabled,\n &:focus:enabled {\n color: #fff;\n background-color: rgba(103, 58, 183, 1);\n box-shadow: 0 0 2px 0 #333;\n }\n &:disabled {\n cursor: not-allowed;\n }\n"]);return G=function(){return e},e}var $=r.default.button.attrs((function(e){var t=e.type;return{type:void 0===t?"button":t}})).withConfig({displayName:"indexes__Button",componentId:"jxyyo8-0"})(G(),(function(e){return e.disabled?"#999":"#333"})),X={PREV:"PREV",NEXT:"NEXT",START:"flex-start",CENTER:"center",END:"flex-end"};function Q(){var e=z(["\n box-sizing: border-box;\n display: flex;\n overflow: hidden;\n user-select: none;\n justify-content: ",";\n"]);return Q=function(){return e},e}var K=r.default.div.attrs((function(e){return{style:e.style,className:q("item-wrapper")}})).withConfig({displayName:"indexes__ItemWrapper",componentId:"jxyyo8-1"})(Q(),(function(e){return e.itemPosition}));function Z(){var e=z(["\n overflow: hidden;\n position: relative;\n width: 100%;\n margin: 0 10px;\n"]);return Z=function(){return e},e}K.defaultProps={style:{},itemPosition:X.CENTER},K.propTypes={children:i.a.element.isRequired,style:i.a.object,itemPosition:i.a.oneOf([X.START,X.CENTER,X.END])};var J=r.default.div.withConfig({displayName:"indexes__SliderContainer",componentId:"jxyyo8-2"})(Z());function ee(){var e=z(["\n position: absolute;\n display: flex;\n flex-direction: ",";\n ",";\n ",";\n"]);return ee=function(){return e},e}var te=function(e){var t=e.isRTL,n=e.verticalMode,r=e.isSwiping,o=e.swipedSliderPosition,i=e.sliderPosition;return n||t?"auto":"".concat(r?o:i,"px")},ne=function(e){var t=e.isRTL,n=e.verticalMode,r=e.isSwiping,o=e.swipedSliderPosition,i=e.sliderPosition;return!n&&t?"".concat(r?o:i,"px"):"auto"},re=function(e){var t=e.verticalMode,n=e.isSwiping,r=e.swipedSliderPosition,o=e.sliderPosition;return t?"".concat(n?r:o,"px"):"auto"},oe=r.default.div.attrs((function(e){return{style:{transition:(t=e,n=t.isSwiping,r=t.transitionMs,o=t.easing,i=t.tiltEasing,a=n?i:o,"all ".concat(n?0:r,"ms ").concat(a)),left:te(e),right:ne(e),top:re(e)}};var t,n,r,o,i,a})).withConfig({displayName:"indexes__Slider",componentId:"jxyyo8-3"})(ee(),(function(e){return e.verticalMode?"column":"row"}),(function(e){return e.verticalMode?"min-height: 100%;":""}),(function(e){var t=e.verticalMode,n=e.outerSpacing;return t?"":"margin: 0 ".concat(n,"px;")}));function ie(){var e=z(["\n display: flex;\n flex-direction: row;\n width: 100%;\n"]);return ie=function(){return e},e}var ae=r.default.div.attrs((function(e){return{style:{height:e.size.height}}})).withConfig({displayName:"indexes__StyledCarousel",componentId:"jxyyo8-4"})(ie());function ce(){var e=z(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n direction: ",";\n"]);return ce=function(){return e},e}var se=r.default.div.withConfig({displayName:"indexes__CarouselWrapper",componentId:"jxyyo8-5"})(ce(),(function(e){return e.isRTL?"rtl":"ltr"})),le=function(e){I(n,e);var t=F(n);function n(){var e;S(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return k(M(e=t.call.apply(t,[this].concat(o))),"onClick",(function(){var t=e.props;(0,t.onClick)(t.id)})),e}return E(n,[{key:"render",value:function(){return c.a.createElement(K,C({},this.props,{onClick:this.onClick}))}}]),n}(c.a.Component);le.defaultProps={onClick:W},le.propTypes={id:i.a.oneOfType([i.a.string,i.a.number]),onClick:i.a.func};var ue=function(e){var t=e.children,n=e.childWidth,r=e.autoTabIndexVisibleItems,o=e.enableSwipe,i=e.enableMouseSwipe,a=e.preventDefaultTouchmoveEvent,s=e.itemsToShow,l=e.itemsToScroll,u=e.currentItem,d=e.itemPosition,f=e.itemPadding,p=e.onSwiped,h=e.onSwiping,g=e.verticalMode,b=e.onItemClick,y="".concat(n,"px"),v="".concat(f.join("px "),"px"),w=u,O=u+s,x=w-l,j=O+l,S=c.a.Children.map(t,(function(e,t){var n=t>=w&&t<O,o=!n&&t>=x&&t<u,i=!n&&t<j&&t>u,a="carousel-item",s=r?c.a.cloneElement(e,{tabIndex:n?0:-1}):e;return c.a.createElement("div",{className:q(a,"".concat(a,"-").concat(t),"".concat(a,"-").concat(n?"visible":"hidden"),o&&"".concat(a,"-prev"),i&&"".concat(a,"-next"))},c.a.createElement(le,{id:t,itemPosition:d,style:{width:y,padding:v},key:t,onClick:b},s))}));return o?c.a.createElement(m,{style:{display:"flex",flexDirection:g?"column":"row"},stopPropagation:!0,preventDefaultTouchmoveEvent:a,trackMouse:i,onSwiped:p,onSwiping:h,className:q("swipable")},S):S};ue.propTypes={children:i.a.array.isRequired,itemsToShow:i.a.number.isRequired,noAutoTabbedItems:i.a.bool,currentItem:i.a.number.isRequired,itemPosition:i.a.string,itemPadding:i.a.array,childWidth:i.a.number,verticalMode:i.a.bool,enableSwipe:i.a.bool,enableMouseSwipe:i.a.bool,preventDefaultTouchmoveEvent:i.a.bool,onSwiped:i.a.func,onSwiping:i.a.func,onItemClick:i.a.func};var de={left:"❮",right:"❯",up:"❮",down:"❯"},fe=q("arrow"),pe=function(e){var t=e.direction,n=e.onClick,r=e.icons,o=e.style,i=N(e,["direction","onClick","icons","style"]),a=T(T({},de),r),s=T(T({},function(e){var t={};return e!==pe.up&&e!==pe.down||(t.transform="rotate(90deg)"),t}(t)),o);return c.a.createElement($,C({tabIndex:0,onClick:n,className:g()(fe,"".concat(fe,"-").concat(t)),style:s},i),a[t])};pe.left="left",pe.right="right",pe.up="up",pe.down="down",pe.propTypes={direction:i.a.oneOf(["left","right","up","down"]).isRequired,icons:i.a.object,style:i.a.object,onClick:i.a.func};var me=function(e,t){var n=t.limit,r=t.itemsToScroll;switch(t.type){case"NEXT_ITEM":var o=e+r;return n>=o?o:n;case"PREV_ITEM":var i=e-r;return i>=n?i:n;default:return e}},he=function(e,t){return{type:"NEXT_ITEM",limit:e,itemsToScroll:t}},ge=function(e,t){return{type:"PREV_ITEM",limit:e,itemsToScroll:t}};function be(){var e=z(["\n box-sizing: border-box;\n padding: 0;\n transition: all 250ms ease;\n border: none;\n margin: 5px;\n background-color: ",';\n font-size: 1.3em;\n content: "";\n height: 10px;\n width: 10px;\n box-shadow: ',";\n border-radius: 50%;\n outline: none;\n &:hover,\n &:focus {\n cursor: pointer;\n box-shadow: ",";\n }\n"]);return be=function(){return e},e}var ye=r.default.button.attrs((function(e){var t=e.type;return{type:void 0===t?"button":t}})).withConfig({displayName:"indexes__Dot",componentId:"jxyyo8-6"})(be(),(function(e){return e.active?"rgba(103,58,183,.5)":"transparent"}),(function(e){return e.active?"0 0 1px 3px rgba(103,58,183,1)":"0 0 1px 2px rgba(0, 0, 0, 0.5)"}),(function(e){return e.active?"0 0 1px 3px rgba(103,58,183,1)":"0 0 1px 3px rgba(103,58,183,.5)"})),ve=function(e){I(n,e);var t=F(n);function n(){var e;S(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return k(M(e=t.call.apply(t,[this].concat(o))),"onClick",(function(){var t=e.props;(0,t.onClick)(t.id)})),e}return E(n,[{key:"render",value:function(){var e=this.props.active;return c.a.createElement(ye,{tabIndex:e?-1:0,onClick:this.onClick,active:e,className:"".concat(q("dot")," ").concat(e?q("dot_active"):"")})}}]),n}(c.a.Component);function we(){var e=z(["\n display: flex;\n flex-wrap: wrap;\n margin-top: 15px;\n"]);return we=function(){return e},e}ve.propTypes={id:i.a.oneOfType([i.a.string,i.a.number]),active:i.a.bool,onClick:i.a.func};var Oe=r.default.div.withConfig({displayName:"indexes__Indicators",componentId:"jxyyo8-7"})(we()),xe=function(e){I(n,e);var t=F(n);function n(){return S(this,n),t.apply(this,arguments)}return E(n,[{key:"render",value:function(){var e=this.props,t=e.numOfPages,n=e.activePage,r=e.onClick,o=Y(t);return c.a.createElement(Oe,{className:q("pagination")},o.map((function(e,t){return c.a.createElement(ve,{key:t,id:t,active:t===n,onClick:r})})))}}]),n}(c.a.Component);xe.defaultProps={onClick:W},xe.propTypes={numOfPages:i.a.number.isRequired,activePage:i.a.number.isRequired,onClick:i.a.func};var je=function(e){I(n,e);var t=F(n);function n(){var e;S(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return k(M(e=t.call.apply(t,[this].concat(o))),"isComponentMounted",!1),k(M(e),"state",{rootHeight:0,childHeight:0,sliderPosition:0,swipedSliderPosition:0,isSwiping:!1,transitioning:!1,transitionMs:e.props.transitionMs,activeIndex:e.props.initialActiveIndex||e.props.initialFirstItem,pages:[],activePage:0,sliderContainerWidth:0}),k(M(e),"setRef",(function(t){return function(n){return e[t]=n}})),k(M(e),"initResizeObserver",(function(){e.ro=new b.a((function(t,n){var r,o=B(t);try{var i=function(){var t=r.value;t.target===e.sliderContainer&&window.requestAnimationFrame((function(){e.onContainerResize(t)})),t.target===e.slider&&window.requestAnimationFrame((function(){e.onSliderResize(t)}))};for(o.s();!(r=o.n()).done;)i()}catch(e){o.e(e)}finally{o.f()}})),e.ro.observe(e.sliderContainer),e.ro.observe(e.slider)})),k(M(e),"unSubscribeObserver",(function(){return e.ro.disconnect()})),k(M(e),"setAutoPlay",(function(){var t=e.getDerivedPropsFromBreakPoint().autoPlaySpeed;e.autoPlayIntervalId=setInterval((function(){e.isComponentMounted&&(e.state.transitioning||e.slideNext())}),t)})),k(M(e),"removeAutoPlay",(function(){e.autoPlayIntervalId&&(clearInterval(e.autoPlayIntervalId),e.autoPlayIntervalId=null)})),k(M(e),"setPages",(function(){var t=e.getNumOfPages(),n=Y(t);e.setState({pages:n})})),k(M(e),"onSliderTransitionEnd",(function(t){e.slider.addEventListener("transitionend",t)})),k(M(e),"removeSliderTransitionHook",(function(t){e.slider.removeEventListener("transitionend",t)})),k(M(e),"getDerivedPropsFromBreakPoint",(function(){var t,n=e.props,r=n.breakPoints,o=N(n,["breakPoints"]),i=e.state.sliderContainerWidth;return r&&r.length>0&&((t=r.slice().reverse().find((function(e){return e.width<=i})))||(t=r[0])),T(T({},o),t)})),k(M(e),"updateSliderPosition",(function(){e.setState((function(t){var n=e.getDerivedPropsFromBreakPoint(),r=n.children,o=n.verticalMode,i=n.itemsToShow,c=n.transitionMs,s=t.childHeight,l=t.activeIndex,u=e.calculateChildWidth(),d=a.Children.toArray(r).length,f=-1*l,p=i-(d-l);p>0&&d-i>0&&(f=p+-1*l);var m=(o?s:u)*f,h=p>0?l-p:l;return window.requestAnimationFrame((function(){e.isComponentMounted&&e.setState({transitionMs:c})})),{sliderPosition:m,activeIndex:h<0?0:h}}))})),k(M(e),"onSliderResize",(function(t){if(e.isComponentMounted){var n=e.getDerivedPropsFromBreakPoint(),r=n.verticalMode,o=n.children,i=n.itemsToShow,c=t.contentRect.height,s={},l=a.Children.toArray(o).length;if(r){var u=c/l;s.rootHeight=u*Math.min(l,i),s.childHeight=u}else s.rootHeight=c;e.setState(s)}})),k(M(e),"calculateChildWidth",(function(){var t=e.state.sliderContainerWidth,n=e.getDerivedPropsFromBreakPoint(),r=n.verticalMode,o=n.itemsToShow,i=n.showEmptySlots,c=n.children,s=a.Children.toArray(c).length||1;return r?t:t/(i?o:Math.min(s,o))})),k(M(e),"onContainerResize",(function(t){var n=t.contentRect.width,r=e.getDerivedPropsFromBreakPoint(),o=r.outerSpacing,i=n-(r.verticalMode?0:2*o);e.isComponentMounted&&e.state.sliderContainerWidth!==n&&e.setState({sliderContainerWidth:i,transitionMs:0},(function(){var t=e.getDerivedPropsFromBreakPoint(),n=t.onResize,r=t.itemsToShow,o=t.children,i=a.Children.toArray(o).length||1;e.setState((function(e){var t=e.activeIndex,n=Math.min(i,r),o=i-n;return t>o&&(t=o),{activeIndex:t}}),(function(){e.updateSliderPosition();var t=e.getDerivedPropsFromBreakPoint();n(t)}))}))})),k(M(e),"tiltMovement",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:150;e.setState((function(e){return{isSwiping:!0,swipedSliderPosition:t-n}})),setTimeout((function(){e.setState({isSwiping:!1,swipedSliderPosition:0})}),r)})),k(M(e),"convertChildToCbObj",(function(t){var n=e.getDerivedPropsFromBreakPoint().children,r=Math.round(t);return{item:a.Children.toArray(n)[r].props,index:r}})),k(M(e),"getNextItemIndex",(function(t,n){var r=e.getDerivedPropsFromBreakPoint(),o=r.children,i=r.itemsToShow,c=r.itemsToScroll,s=a.Children.toArray(o).length||1,l=n?0:s-i;i>s&&(l=0);var u=n?ge(0,c):he(l,c);return me(t,u)})),k(M(e),"getNextItemObj",(function(t){var n=e.getDerivedPropsFromBreakPoint().children,r=e.state.activeIndex,o=e.getNextItemIndex(r,t),i=Math.round(o);return{item:a.Children.toArray(n)[i].props,index:i}})),k(M(e),"resetSwipe",(function(){e.setState({swipedSliderPosition:0,transitioning:!1,isSwiping:!1})})),k(M(e),"onSwiping",(function(t){var n=t.deltaX,r=t.absX,o=t.deltaY,i=t.absY,c=t.dir;e.setState((function(t){var s=t.childHeight,l=t.activeIndex,u=t.sliderPosition,d=e.getDerivedPropsFromBreakPoint(),f=d.itemsToShow,p=d.verticalMode,m=d.children,h=d.isRTL,g=e.calculateChildWidth(),b=a.Children.toArray(m).length||1,y=!p&&"Left"===c&&!h||!p&&"Right"===c&&h||p&&"Up"===c,v=!p&&"Right"===c&&!h||!p&&"Left"===c&&h||p&&"Down"===c,w="Left"===c||"Right"===c,O="Up"===c||"Down"===c,x=!p,j=0,S=g/2,_=s/2;p?O&&(y?j=b*s-s*l-f*s+_:v&&(j=s*l+_)):w&&(y?j=b*g-g*l-f*g+S:v&&(j=g*l+S));if(!(x&&O||x&&w&&r>j)&&!(p&&w||p&&O&&i>j))return{swipedSliderPosition:w?h?u+n:u-n:u-o,isSwiping:!0,transitioning:!0}}))})),k(M(e),"onSwiped",(function(t){var n=t.absX,r=t.absY,o=t.dir,i=e.state,a=i.childHeight,c=i.activeIndex,s=e.getDerivedPropsFromBreakPoint(),l=s.verticalMode,u=s.isRTL,d=s.itemsToScroll,f=e.calculateChildWidth(),p=e.resetSwipe,m=f/5,h=a/5,g="Left"===o,b="Right"===o,y="Up"===o,v="Down"===o,w=!1;if((l&&(y||v)&&r>h||!l&&(b||g)&&n>m)&&(w=!0),w)if(l){var O=Math.ceil((r-h)/a),x=Math.max(d,O),j=c-x,S=c+x;v&&(p=function(){return e.goTo(j)}),y&&(p=function(){return e.goTo(S)})}else{var _=Math.ceil((n-m)/f),E=Math.max(d,_),k=c-E,C=c+E;u?(g&&(p=function(){return e.goTo(k)}),b&&(p=function(){return e.goTo(C)})):(g&&(p=function(){return e.goTo(C)}),b&&(p=function(){return e.goTo(k)}))}e.setState({isSwiping:!1,transitioning:!1}),p({skipTilt:!0})})),k(M(e),"onNextStart",(function(t){var n=e.getDerivedPropsFromBreakPoint().onNextStart,r=e.state.activeIndex,o=e.getNextItemObj();n(e.convertChildToCbObj(r),o),e.slideNext(t)})),k(M(e),"onPrevStart",(function(t){var n=e.getDerivedPropsFromBreakPoint().onPrevStart,r=e.state.activeIndex,o=e.getNextItemObj(!0);n(e.convertChildToCbObj(r),o),e.slidePrev(t)})),k(M(e),"slideNext",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.skipTilt,r=e.getDerivedPropsFromBreakPoint(),o=r.enableTilt,i=e.state,a=i.activeIndex,c=i.sliderPosition,s=e.getNextItemIndex(a,!1);a!==s?e.goTo(s):o&&!n&&e.tiltMovement(c,20,150)})),k(M(e),"slidePrev",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.skipTilt,r=e.state.activeIndex,o=e.getDerivedPropsFromBreakPoint(),i=o.enableTilt,a=e.getNextItemIndex(r,!0);r!==a?e.goTo(a):i&&!n&&e.tiltMovement(0,-20,150)})),k(M(e),"onNextEnd",(function(){var t=e.getDerivedPropsFromBreakPoint(),n=t.onNextEnd,r=t.onChange,o=e.state,i=o.activeIndex,a=o.activePage,c=e.convertChildToCbObj(i);e.removeSliderTransitionHook(e.onNextEnd),e.setState({transitioning:!1}),r&&r(c,a),n(c,a)})),k(M(e),"onPrevEnd",(function(){var t=e.getDerivedPropsFromBreakPoint(),n=t.onPrevEnd,r=t.onChange,o=e.state,i=o.activeIndex,a=o.activePage,c=e.convertChildToCbObj(i);e.removeSliderTransitionHook(e.onPrevEnd),e.setState({transitioning:!1}),r&&r(c,a),n(c,a)})),k(M(e),"generatePositionUpdater",(function(t,n,r,o){return function(i){var a=i.sliderPosition,c=i.childHeight,s=i.activeIndex,l=e.calculateChildWidth(),u=r?c:l;return T({sliderPosition:t===X.NEXT?a-u*(n-s):a+u*(s-n),activeIndex:n,swipedSliderPosition:0,isSwiping:!1},o)}})),k(M(e),"goTo",(function(t){var n=e.getDerivedPropsFromBreakPoint(),r=n.children,o=n.verticalMode,i=n.itemsToShow,c=e.state.activeIndex,s=a.Children.toArray(r).length,l=Math.max(0,t),u=c>l;if(!(e.getNextItemIndex(c,u)===c)){l+i>=s&&(l=Math.max(0,s-i));var d=X.NEXT,f=e.onNextEnd;u&&(d=X.PREV,f=e.onPrevEnd);var p=e.generatePositionUpdater(d,l,o,{transitioning:!0});e.setState(p,(function(){V(e.updateActivePage(),e.onSliderTransitionEnd(f))}))}})),k(M(e),"getNumOfPages",(function(){var t=e.getDerivedPropsFromBreakPoint(),n=t.children,r=t.itemsToShow,o=a.Children.toArray(n).length,i=Math.max(r,1);return Math.ceil(o/i)||1})),k(M(e),"updateActivePage",(function(){e.setState((function(t){var n=e.getDerivedPropsFromBreakPoint(),r=n.itemsToShow,o=n.children,i=t.activeIndex,c=t.activePage,s=e.getNumOfPages(),l=a.Children.toArray(o).length,u=Math.min(l,r),d=Math.max(u,1),f=Math.ceil(i/d),p=Math.min(s-1,f);if(c!==p)return{activePage:p}}))})),k(M(e),"onIndicatorClick",(function(t){var n=t*e.getDerivedPropsFromBreakPoint().itemsToShow;e.setState({activePage:t}),e.goTo(n)})),e}return E(n,[{key:"componentDidMount",value:function(){this.isComponentMounted=!0,this.initResizeObserver(),this.updateActivePage(),this.setPages()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.enableAutoPlay,o=n.children,i=n.itemsToShow,c=n.itemsToScroll,s=n.breakPoints,l=this.state,u=l.activeIndex,d=l.sliderContainerWidth,f=this.getNextItemIndex(u,!1),p=a.Children.toArray(o).length,m=a.Children.toArray(e.children).length;if(m===p&&e.itemsToShow===i&&e.itemsToScroll===c&&e.breakPoints===s&&d===t.sliderContainerWidth||(this.onContainerResize({contentRect:{width:d}}),this.setPages(),this.updateActivePage()),u===f?this.removeAutoPlay():r&&!this.autoPlayIntervalId?this.setAutoPlay():!r&&this.autoPlayIntervalId&&this.removeAutoPlay(),m!==p){var h=this.getDerivedPropsFromBreakPoint().itemsToShow;u+h>p-1&&this.goTo(Math.max(0,p-h))}}},{key:"componentWillUnmount",value:function(){this.isComponentMounted=!1,this.removeAutoPlay(),this.unSubscribeObserver()}},{key:"render",value:function(){var e=this.state,t=e.activePage,n=e.isSwiping,r=e.sliderPosition,o=e.swipedSliderPosition,i=e.rootHeight,s=e.pages,l=e.activeIndex,u=e.transitionMs,d=this.getDerivedPropsFromBreakPoint(),f=d.className,p=d.style,m=d.itemsToShow,h=d.itemsToScroll,g=d.verticalMode,b=d.isRTL,y=d.easing,v=d.tiltEasing,w=d.children,O=d.focusOnSelect,x=d.autoTabIndexVisibleItems,S=d.itemPosition,_=d.itemPadding,E=d.outerSpacing,k=d.enableSwipe,C=d.enableMouseSwipe,P=d.pagination,T=d.showArrows,I=d.disableArrowsOnEnd,A=d.preventDefaultTouchmoveEvent,D=d.renderArrow,N=d.renderPagination,M=this.calculateChildWidth(),R=this.getNumOfPages(),F=l!==this.getNextItemIndex(l,!0),z=l!==this.getNextItemIndex(l,!1),L=!F&&I,H=!z&&I;return c.a.createElement(se,{isRTL:b,className:"".concat(q("carousel-wrapper")," ").concat(f),style:p},c.a.createElement(ae,{className:q("carousel"),size:{height:i}},c.a.createElement(j,{when:T},D?D({type:X.PREV,onClick:this.onPrevStart,isEdge:!F}):c.a.createElement(pe,{onClick:this.onPrevStart,direction:g?pe.up:pe.left,disabled:L})),c.a.createElement(J,{className:q("slider-container"),ref:this.setRef("sliderContainer")},c.a.createElement(oe,{verticalMode:g,isRTL:b,easing:y,sliderPosition:r,swipedSliderPosition:o,isSwiping:n,transitionMs:u,tiltEasing:v,className:q("slider"),ref:this.setRef("slider"),outerSpacing:E},c.a.createElement(ue,{verticalMode:g,children:a.Children.toArray(w),childWidth:M,currentItem:l,autoTabIndexVisibleItems:x,itemsToShow:m,itemsToScroll:h,itemPosition:S,itemPadding:_,enableSwipe:k,enableMouseSwipe:C,preventDefaultTouchmoveEvent:A,onSwiped:this.onSwiped,onSwiping:this.onSwiping,onItemClick:O?this.goTo:void 0}))),c.a.createElement(j,{when:T},D?D({type:X.NEXT,onClick:this.onNextStart,isEdge:!z}):c.a.createElement(pe,{onClick:this.onNextStart,direction:g?pe.down:pe.right,disabled:H}))),c.a.createElement(j,{when:P},N?N({pages:s,activePage:t,onClick:this.onIndicatorClick}):c.a.createElement(xe,{numOfPages:R,activePage:t,onClick:this.onIndicatorClick})))}}]),n}(c.a.Component);je.defaultProps={className:"",style:{},verticalMode:!1,isRTL:!1,initialFirstItem:0,initialActiveIndex:0,showArrows:!0,showEmptySlots:!1,disableArrowsOnEnd:!0,pagination:!0,easing:"ease",tiltEasing:"ease",transitionMs:500,enableTilt:!0,enableSwipe:!0,enableMouseSwipe:!0,preventDefaultTouchmoveEvent:!1,focusOnSelect:!1,autoTabIndexVisibleItems:!0,itemsToShow:1,itemsToScroll:1,itemPosition:X.CENTER,itemPadding:[0,0,0,0],outerSpacing:0,enableAutoPlay:!1,autoPlaySpeed:2e3,onChange:W,onNextEnd:W,onPrevEnd:W,onNextStart:W,onPrevStart:W,onResize:W},je.propTypes={children:i.a.node.isRequired,className:i.a.string,style:i.a.object,verticalMode:i.a.bool,isRTL:i.a.bool,pagination:i.a.bool,transitionMs:i.a.number,easing:i.a.string,tiltEasing:i.a.string,enableTilt:i.a.bool,itemsToShow:i.a.number,itemsToScroll:i.a.number,breakPoints:i.a.arrayOf(i.a.shape({width:i.a.number.isRequired,itemsToShow:i.a.number,itemsToScroll:i.a.number})),initialActiveIndex:i.a.number,initialFirstItem:i.a.number,showArrows:i.a.bool,showEmptySlots:i.a.bool,disableArrowsOnEnd:i.a.bool,focusOnSelect:i.a.bool,autoTabIndexVisibleItems:i.a.bool,renderArrow:i.a.func,renderPagination:i.a.func,itemPosition:i.a.oneOf([X.START,X.CENTER,X.END]),itemPadding:i.a.array,outerSpacing:i.a.number,enableSwipe:i.a.bool,enableMouseSwipe:i.a.bool,preventDefaultTouchmoveEvent:i.a.bool,enableAutoPlay:i.a.bool,autoPlaySpeed:i.a.number,onChange:i.a.func,onNextStart:i.a.func,onPrevStart:i.a.func,onNextEnd:i.a.func,onPrevEnd:i.a.func,onResize:i.a.func};t.default=je}]));
|
|
16
|
+
*/var r=/["'&<>]/;e.exports=function(e){var t,n=""+e,o=r.exec(n);if(!o)return n;var i="",a=0,c=0;for(a=o.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}c!==a&&(i+=n.substring(c,a)),c=a+1,i+=t}return c!==a?i+n.substring(c,a):i}},function(e,t,n){"use strict";function r(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=function(e){return e()},s=function(e){return e.forEach(c)},l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"store",{}),a(this,"callbacks",[])}var t,n,r;return t=e,(n=[{key:"has",value:function(e){return void 0!==this.store[e]}},{key:"set",value:function(e,t){this.store[e]=o(o({},t),{},{used:!0,groupId:t.groupId}),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(s,50,this.callbacks)}},{key:"update",value:function(e,t){this.store[e]=o(o({},this.store[e]),t)}},{key:"get",value:function(e){var t=this.store[e];return t&&(t.used=!0),t}},{key:"getAll",value:function(){return this.store}},{key:"reset",value:function(){this.store={}}},{key:"markAllUnused",value:function(){var e=this;Object.keys(this.store).forEach((function(t){e.store[t].used=!1}))}},{key:"subscribe",value:function(e){this.callbacks.push(e)}},{key:"unsubscribe",value:function(e){var t=this.callbacks.indexOf(e);this.callbacks.splice(t,1)}}])&&i(t.prototype,n),r&&i(t,r),e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializers=t.serializers=t.converters=void 0;var r=function(){},o={jsonParse:function(e){return JSON.parse(e)},jsonStringify:function(e){return JSON.stringify(e)},simple:function(e){return e},stringifyIfSet:function(e){return null==e?"":String(e)},stringifyIfTruthy:function(e){return e?String(e):null},toArray:function(e){return Array.isArray(e)?e:e.split(",")},toBoolean:function(e){return"true"===e},toDate:function(e){return new Date(e).getTime()||(new Date).getTime()},toFloat:function(e){return""===e?null:parseFloat(e)}};t.converters=o;var i={array:o.simple,boolean:o.stringifyIfTruthy,button:r,checkbox:o.simple,color:o.simple,date:o.toDate,files:r,number:o.stringifyIfSet,object:o.jsonStringify,options:o.simple,radios:o.simple,select:o.simple,text:o.simple};t.serializers=i;var a={array:o.toArray,boolean:o.toBoolean,button:r,checkbox:o.simple,color:o.simple,date:o.toDate,files:r,number:o.toFloat,object:o.jsonParse,options:o.simple,radios:o.simple,select:o.simple,text:o.simple};t.deserializers=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(0)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(0);const a={cultureMagazine:104,dropCap:110,stMagazine:105,styleMagazine:103},c={cultureMagazine:.85,dropCap:.55,stMagazine:.7,styleMagazine:.8},s={cultureMagazine:-.06,dropCap:.2,stMagazine:.065,styleMagazine:-.01},l=o.a.p.withConfig({displayName:"responsive__Paragraph",componentId:"sc-1pktst5-0"})(["color:",";display:block;font-family:",";line-height:26px;font-size:","px;margin:0 auto ",";padding-right:",";padding-left:",';&:first-of-type:after{content:"";clear:both;display:table;}@media (min-width:',"px){font-size:","px;line-height:30px;padding-left:0;padding-right:0;width:80.8%;}@media (min-width:","px){width:56.2%;}"],i.colours.functional.primary,i.fontsWithFallback.bodyRegular,i.fontSizes.bodyMobile,Object(i.spacing)(5),Object(i.spacing)(2),Object(i.spacing)(2),i.breakpoints.medium,i.fontSizes.body,i.breakpoints.wide),u=o.a.span.withConfig({displayName:"responsive__DropCap",componentId:"sc-1pktst5-1"})(["float:left;color:",";padding-right:10px;line-height:1em;",";"],i.colours.functional.primary,e=>{let t=e.font,n=void 0===t?"dropCap":t;return Object(r.css)(["margin-top:","em;line-height:","em;font-size:","px;font-family:",";"],s[n],c[n],a[n],i.fontsWithFallback[n])});var d=l,f=n(3),p=n.n(f),m=n(1),h=n.n(m);function g(e){let t=e.colour,n=e.children,r=e.font;return p.a.createElement(u,{font:r,style:{color:t}},n)}h.a.string,h.a.string,g.defaultProps={colour:"black",font:"dropCap"};var b=g;n.d(t,"DropCapView",(function(){return b})),t.default=d}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(15)},function(e,t){e.exports=n(124)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(1166)},function(e,t){e.exports=n(1167)},function(e,t){e.exports=n(321)},function(e,t){e.exports=n(476)},function(e,t){e.exports=n(85)},function(e,t){e.exports=n(477)},function(e,t){e.exports=n(17)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=(n(4),n(2)),a=n.n(i),c=n(5),s=n.n(c),l=n(6),u=n.n(l),d=n(7),f=n(8),p=n.n(f),m=n(9),h=n(10),g=n.n(h),b=n(11),y=n(3),v=n.n(y),w=n(1),O=v()(b.TcView).withConfig({displayName:"responsive",componentId:"rerzrc-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(w.spacing)(2),Object(w.spacing)(2),w.breakpoints.medium,w.breakpoints.wide);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 j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(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){j(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}({},{topicsContainer:{borderTopColor:w.colours.functional.keyline,borderTopWidth:1},topicsContainerTablet:{alignSelf:"center",width:w.tabletWidth},topicsMetaContainer:{justifyContent:"flex-start"}});const _=e=>{let t=e.topics;return t&&t.length>0?o.a.createElement(O,null,o.a.createElement("nav",{"data-cy":"topic-tags"},o.a.createElement(g.a,{style:S.topicsContainer,topics:t}))):null};_.defaultProps={topics:null};var E=_;const k=v.a.div.withConfig({displayName:"responsive__ShareAndSaveContainer",componentId:"hqs3q1-0"})(["border-top-color:",";border-top-style:solid;border-top-width:1px;width:56.2%;margin:0 auto;@media (max-width:","px){display:none;}",";"],w.colours.functional.keyline,w.breakpoints.huge,e=>e.showBottomBorder&&"border-bottom-color: ".concat(w.colours.functional.keyline,";\n border-bottom-style: solid;\n border-bottom-width: 1px;")),C={clear:"both"},P=e=>{let t=e.analyticsStream,n=e.articleId,r=e.commentsEnabled,i=e.registerNode,c=e.savingEnabled,l=e.sharingEnabled,f=e.articleUrl,h=e.section,g=e.articleHeadline,b=e.relatedArticleSlice,y=e.relatedArticlesVisible,v=e.commentingConfig,w=e.topics,O=e.isSharingSavingEnabled,x=e.isCommentEnabled;const j=e=>o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{id:"related-articles",ref:e=>i(e)},o.a.createElement(u.a,{analyticsStream:t,isVisible:y,slice:b}),e&&o.a.createElement(m.RecommendedFetch,{articleId:n,articleHeadline:g,articleSection:h})),o.a.createElement("div",{id:"sponsored-article-container"},o.a.createElement("div",{id:"sponsored-article"})));return o.a.createElement(a.a,{state:a.a.showArticleExtras,fallback:j(!1)},o.a.createElement("div",{style:C}),o.a.createElement(E,{topics:w}),O&&o.a.createElement(a.a,{state:a.a.showSaveAndShareBar},o.a.createElement(d.MessageContext.Consumer,null,e=>{let t=e.showMessage;return o.a.createElement(k,{showBottomBorder:!b},o.a.createElement(p.a,{articleId:n,articleHeadline:g,articleUrl:f,onCopyLink:()=>t("Article link copied"),onSaveToMyArticles:()=>{},onShareOnEmail:()=>{},savingEnabled:c,sharingEnabled:l}))})),j(!0),o.a.createElement(s.a,{articleId:n,isEnabled:r,commentingConfig:v,isCommentEnabled:x}))};P.defaultProps={relatedArticleSlice:null,topics:null,isSharingSavingEnabled:!0,isCommentEnabled:!0};var T=P;t.default=T}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(124)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(87)},function(e,t){e.exports=n(73)},function(e,t){e.exports=n(85)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=(n(4),n(2)),a=n.n(i),c=n(3),s=n.n(c),l=n(0);const u=s.a.div.withConfig({displayName:"responsive__CommentContainer",componentId:"sc-2j1dkf-0"})(["margin-left:auto;margin-right:auto;@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}"],l.breakpoints.medium,l.breakpoints.wide),d=(s.a.p.withConfig({displayName:"responsive__CommentEnabledGuidelines",componentId:"sc-2j1dkf-1"})(["color:",";font-family:",";font-size:","px;margin:0 0 "," 0;padding-left:7px;padding-top:",";"],l.colours.functional.secondary,l.fontsWithFallback.supporting,l.fontSizes.commentsGuidelines,Object(l.spacing)(-2),Object(l.spacing)(6)),s.a.p.withConfig({displayName:"responsive__CommentDisabledGuidelines",componentId:"sc-2j1dkf-2"})(["color:",";font-family:",";font-size:","px;margin:0;padding-bottom:",";padding-top:",";text-align:center;"],l.colours.functional.secondary,l.fontsWithFallback.supporting,l.fontSizes.commentsGuidelines,Object(l.spacing)(6),Object(l.spacing)(1))),f=s.a.p.withConfig({displayName:"responsive__CommentDisabledHeadline",componentId:"sc-2j1dkf-3"})(["color:",";font-family:",";font-size:","px;margin:0;padding-bottom:",";padding-top:",";text-align:center;"],l.colours.functional.primary,l.fontsWithFallback.headline,l.fontSizes.commentsHeadline,Object(l.spacing)(1),Object(l.spacing)(6));function p(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}function m(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}const h={gb:"https://thetimes.co.uk/subscribe/digital?ILC=GB-TNL_The_Times-Conversion_Page-Homepage-2020",ie:"https://store.thetimes.ie/?ILC=IE-TNL_The_Times-Conversion_Page-Homepage-2020",global:"https://globalstore.thetimes.co.uk/?ILC=INTL-TNL_The_Times-Conversion_Page-Homepage-2020"},g=function(){var e,t=(e=function*(e){if(!e)return!1;const t="/api/comments/display-names-pseudonyms?username=".concat(e),n=fetch(t).then(e=>e.json()).then(e=>e);return(yield n).isPseudonym||!1},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){m(i,r,o,a,c,"next",e)}function c(e){m(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),b=e=>e?(e=>e.split("&").reduce((e,t)=>{const n=function(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){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(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.")}()}(t.split("="),2),r=n[0],o=n[1];return e[r]=o,e},{}))(e).eid:void 0,y=(e,t)=>((e,t)=>{const n=new XMLHttpRequest;n.addEventListener("load",()=>{const e=(200===n.status?JSON.parse(n.response):{}).spotimCodeB;e&&t(e)}),n.open("GET",e),n.send()})("/api/comments/loginv2?codeA=".concat(encodeURIComponent(e)),t);var v=()=>{if(window.SPOTIM&&window.SPOTIM.startSSO){const e=window&&window.nuk&&window.nuk.getCookieValue&&window.nuk.getCookieValue("acs_tnl"),t="".concat(b(e),"_v2");window.SPOTIM.startSSO({callback:y,userId:t})}},w=n(5);function O(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}class x extends r.Component{constructor(){super(),this.container=null}componentDidMount(){this.initialiseComments()}componentWillUnmount(){this.disposeComments()}initialiseComments(){const e=this.props,t=e.articleId,n=e.isReadOnly,r=e.commentingConfig,o=e.onCommentStart,i=e.onCommentPost,a=e.onCommentNotification,c=e.onCommentFilterNewest,s=e.onCommentFilterMostRecommended,l=e.onCommentFilterOldest,u=e.onCommentReplyClick,d=e.onCommentShareLink,f=e.onCommentShareTwitter,p=e.onCommentShareEmail,m=e.onCommentShareFacebook,h=e.onCommentRecommend,b=e.onCommentNotificationClicked,y=e.onCommentUsernameClicked,w=e.onCommentSettingsClicked;if(!this.container||!t||!r)return;document.addEventListener("spot-im-current-user-typing-start",function(){var e,t=(e=function*(e){o(e);const t=(()=>{const e=window.localStorage.getItem("SPOTIM_CURRENT_USER");return e&&(e&&JSON.parse(e)).data.displayName||!1})();t&&(yield g(t))&&window.dispatchEvent(new CustomEvent("SHOW_REAL_NAME_COMMENTING_BANNER",{}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){O(i,r,o,a,c,"next",e)}function c(e){O(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),{once:!0}),document.addEventListener("spot-im-current-user-sent-message",i),document.addEventListener("spot-im-notification-drop-down-link",a),document.addEventListener("spot-im-user-up-vote-click",h),document.addEventListener("spot-im-sort-by-select",e=>(e=>{switch(e.detail.sortedBy){case"best":return s(e);case"oldest":return l(e);case"newest":return c(e);default:return null}})(e)),document.addEventListener("spot-im-user-clicked-reply",u),document.addEventListener("spot-im-clicked-settings",w),document.addEventListener("spot-im-user-notifications-click",b),document.addEventListener("spot-im-open-user-profile",y),document.addEventListener("spot-im-share-type",e=>(e=>{switch(e.detail.type){case"link":return d(e);case"email":return p(e);case"twitter":return f(e);case"facebook":return m(e);default:return null}})(e)),n||(window.SPOTIM&&window.SPOTIM.startSSO?v():document.addEventListener("spot-im-api-ready",()=>{v()}));const x=document.createElement("script");x.setAttribute("async","async"),x.setAttribute("src","https://launcher.spot.im/spot/".concat(r.account)),x.setAttribute("data-spotim-module","spotim-launcher"),x.setAttribute("data-post-id",t),x.setAttribute("data-post-url","https://www.thetimes.co.uk/article/".concat(t)),x.setAttribute("data-seo-enabled",!0),x.setAttribute("data-livefyre-url",t),this.container.appendChild(x)}disposeComments(){this.container&&(this.container.innerHTML="")}render(){const e=this.props,t=e.onCommentStart,n=e.onCommentPost,r=e.onCommentNotification,i=e.onCommentFilterNewest,a=e.onCommentFilterMostRecommended,c=e.onCommentFilterOldest,s=e.onCommentReplyClick,l=e.onCommentShareLink,d=e.onCommentShareTwitter,f=e.onCommentShareEmail,p=e.onCommentShareFacebook,m=e.onCommentRecommend,h=e.onCommentNotificationClicked,g=e.onCommentUsernameClicked,b=e.onCommentSettingsClicked;return o.a.createElement(u,{id:"comments-container",onCommentStart:t,onCommentPost:n,onCommentNotification:r,onCommentReplyClick:s,onCommentFilterNewest:i,onCommentFilterMostRecommended:a,onCommentFilterOldest:c,onCommentShareLink:l,onCommentShareTwitter:d,onCommentShareEmail:f,onCommentShareFacebook:p,onCommentRecommend:m,onCommentNotificationClicked:h,onCommentUsernameClicked:g,onCommentSettingsClicked:b},o.a.createElement("div",{ref:e=>{this.container=e}}))}}x.defaultProps={onCommentStart:()=>{},onCommentPost:()=>{},onCommentNotification:()=>{},onCommentReplyClick:()=>{},onCommentFilterNewest:()=>{},onCommentFilterMostRecommended:()=>{},onCommentFilterOldest:()=>{},onCommentShareLink:()=>{},onCommentShareTwitter:()=>{},onCommentShareEmail:()=>{},onCommentShareFacebook:()=>{},onCommentRecommend:()=>{},onCommentNotificationClicked:()=>{},onCommentUsernameClicked:()=>{},onCommentSettingsClicked:()=>{}};var j,S=(j=x,Object(w.withTrackEvents)(j,{analyticsEvents:[{actionName:"navigation",eventName:"onCommentStart",trackingName:"spot im : comment : start"},{actionName:"navigation",eventName:"onCommentPost",trackingName:"spot im : comment : complete"},{actionName:"navigation",eventName:"onCommentNotification",trackingName:"spot im : notification"},{actionName:"navigation",eventName:"onCommentFilterNewest",trackingName:"spot im : sort : newest"},{actionName:"navigation",eventName:"onCommentFilterMostRecommended",trackingName:"spot im : sort : best"},{actionName:"navigation",eventName:"onCommentFilterOldest",trackingName:"spot im : sort : oldest"},{actionName:"navigation",eventName:"onCommentReplyClick",trackingName:"spot im : reply"},{actionName:"navigation",eventName:"onCommentSettingsClicked",trackingName:"spot im : settings button clicked"},{actionName:"navigation",eventName:"onCommentShareLink",trackingName:"spot im : comment : share : copy link"},{actionName:"navigation",eventName:"onCommentShareEmail",trackingName:"spot im : comment : share : email"},{actionName:"navigation",eventName:"onCommentShareTwitter",trackingName:"spot im : comment : share : twitter"},{actionName:"navigation",eventName:"onCommentShareFacebook",trackingName:"spot im : comment : share : facebook"},{actionName:"navigation",eventName:"onCommentRecommend",trackingName:"spot im : vote up"},{actionName:"navigation",eventName:"onCommentUsernameClicked",trackingName:"spot im : username clicked"},{actionName:"navigation",eventName:"onCommentNotificationClicked",trackingName:"spot im : notification clicked"}]})),_=n(6);function E(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?E(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P={button:{marginBottom:Object(l.spacing)(0),marginTop:Object(l.spacing)(5),maxWidth:215},container:{alignItems:"center",borderStyle:"solid",borderTopColor:l.colours.functional.keyline,borderTopWidth:1,marginBottom:Object(l.spacing)(10),width:"100%"},headline:k(k({color:l.colours.functional.primary},Object(l.fontFactory)({font:"headline",fontSize:"commentsHeadline"})),{},{maxWidth:315,paddingBottom:Object(l.spacing)(2),paddingTop:Object(l.spacing)(6),textAlign:"center"}),link:{color:l.colours.functional.action},supporting:k(k({},Object(l.fontFactory)({font:"supporting",fontSize:"tertiary"})),{},{color:l.colours.functional.secondary,maxWidth:280,textAlign:"center"})};function T(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 I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=I(I({},P),{},{link:I(I({},P.link),{},{fontFamily:l.fontsWithFallback.supporting,fontSize:l.fontSizes.commentsGuidelines})}),N=()=>o.a.createElement(u,null,o.a.createElement(f,null,"Comments for this article have been turned off"),o.a.createElement(d,null,"Comments are subject to our community guidelines, which can be viewed"," ",o.a.createElement(_.TextLink,{style:D.link,url:"https://www.thetimes.co.uk/article/f4024fbe-d989-11e6-9063-500e6740fc32"},"here"),".")),M=n(7);function R(){const e=window.nuk&&window.nuk.user&&window.nuk.user.isLightPackUser,t=e?null:(()=>{const e="undefined"!=typeof window&&window.nuk&&window.nuk.region;return h[e]||h.gb})(),n=e?()=>document&&document.dispatchEvent(new Event("show::upgrade::modal")):null;return o.a.createElement(M.InlineDialog,{title:"Join the conversation",buttonText:"View offers",href:t,onClick:n},"Commenting is only available to unlimited access subscribers. Upgrade your subscription to have your say.")}const F=e=>{let t=e.articleId,n=e.isEnabled,r=e.isReadOnly,i=e.commentingConfig,c=e.isCommentEnabled;return n&&c?o.a.createElement(o.a.Fragment,null,o.a.createElement(a.a,{state:a.a.showJoinTheConversationDialog},o.a.createElement(R,null)),o.a.createElement(a.a,{state:a.a.showCommentingModule},o.a.createElement(S,{articleId:t,isReadOnly:r,commentingConfig:i}))):o.a.createElement(N,null)};F.defaultProps={isReadOnly:!1,isCommentEnabled:!0},t.default=F}])},function(e,t,n){(function(t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}([function(e,t){e.exports=n(3)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(15)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(111)},function(e,t){e.exports=n(87)},function(e,t){e.exports=n(473)},function(e,n){var r,o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/,a=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,u="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,f=u||d||Function("return this")(),p=Array.prototype,m=Function.prototype,h=Object.prototype,g=f["__core-js_shared__"],b=(r=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",y=m.toString,v=h.hasOwnProperty,w=h.toString,O=RegExp("^"+y.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=f.Symbol,j=p.splice,S=N(f,"Map"),_=N(Object,"create"),E=x?x.prototype:void 0,k=E?E.toString:void 0;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 P(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 T(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,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function A(e,t){for(var n,r=0,a=(t=function(e,t){if(z(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!H(e))||(i.test(e)||!o.test(e)||null!=t&&e in Object(t))}(t,e)?[t]:z(n=t)?n:M(n)).length;null!=e&&r<a;)e=e[R(t[r++])];return r&&r==a?e:void 0}function D(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function N(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!L(e)||(t=e,b&&b in t))&&(function(e){var t=L(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)?O:l).test(function(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(n)?n:void 0}C.prototype.clear=function(){this.__data__=_?_(null):{}},C.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},C.prototype.get=function(e){var t=this.__data__;if(_){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return v.call(t,e)?t[e]:void 0},C.prototype.has=function(e){var t=this.__data__;return _?void 0!==t[e]:v.call(t,e)},C.prototype.set=function(e,t){return this.__data__[e]=_&&void 0===t?"__lodash_hash_undefined__":t,this},P.prototype.clear=function(){this.__data__=[]},P.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))},P.prototype.get=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},P.prototype.has=function(e){return I(this.__data__,e)>-1},P.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},T.prototype.clear=function(){this.__data__={hash:new C,map:new(S||P),string:new C}},T.prototype.delete=function(e){return D(this,e).delete(e)},T.prototype.get=function(e){return D(this,e).get(e)},T.prototype.has=function(e){return D(this,e).has(e)},T.prototype.set=function(e,t){return D(this,e).set(e,t),this};var M=F((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(H(e))return k?k.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return a.test(e)&&n.push(""),e.replace(c,(function(e,t,r,o){n.push(r?o.replace(s,"$1"):t||e)})),n}));function R(e){if("string"==typeof e||H(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function F(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(F.Cache||T),n}F.Cache=T;var z=Array.isArray;function L(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function H(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:A(e,t);return void 0===r?n:r}},function(e,t){e.exports=n(1168)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(57)},function(e,t){e.exports=n(73)},function(e,t){e.exports=n(474)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(3),a=n(8),c=n(9),s=n.n(c),l=n(0),u=n.n(l),d=n(2);function f(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?f(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h={byline:{marginBottom:0},headline:p(p({color:d.colours.functional.primary},Object(d.fontFactory)({font:"headline",fontSize:"smallHeadline"})),{},{fontWeight:"400",marginBottom:Object(d.spacing)(1),marginTop:0}),opinionByline:{lineHeight:24,marginBottom:0,marginTop:0},title:p({color:d.colours.functional.primary},Object(d.fontFactory)({font:"headline",fontSize:"pageComponentHeadline"})),titleContainer:{alignItems:"center",borderBottomColor:d.colours.functional.keyline,borderBottomWidth:1,borderStyle:"solid",borderTopColor:d.colours.functional.keyline,borderTopWidth:1,display:"flex",justifyContent:"center",padding:Object(d.spacing)(2)}};function g(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=b(b({},h),{},{title:b(b({},h.title),{},{paddingTop:Object(d.spacing)(1)}),titleContainer:b(b({},h.titleContainer),{},{padding:Object(d.spacing)(3)})}),w=s.a.h3.withConfig({displayName:"related-articles-heading__HeadingForRelatedArticles",componentId:"sc-1m1bjcq-0"})(["border:0px solid black;box-sizing:border-box;display:inline;font-size:14px;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;",";"],(function(e){return e.styles&&e.styles})),O=function(e){var t=e.heading;return o.a.createElement(i.TcView,{style:v.titleContainer},o.a.createElement(w,{role:"heading","aria-level":"3",styles:Object(i.checkStylesForUnits)(v.title)},t))};O.defaultProps={heading:"Related articles"};var x=O,j=n(10),S=n.n(j),_=n(11),E=n.n(_),k=n(7),C=n.n(k),P=n(6),T=n.n(P),I=n(12),A=n.n(I),D=n(4);function N(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 M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=M(M({},{article:u.a.shape({bylines:u.a.arrayOf(D.propTypes),hasVideo:u.a.bool,headline:u.a.string,label:u.a.string,publishedTime:u.a.string.isRequired,shortHeadline:u.a.string,summary105:u.a.arrayOf(D.propTypes),summary125:u.a.arrayOf(D.propTypes).isRequired,summary145:u.a.arrayOf(D.propTypes),summary160:u.a.arrayOf(D.propTypes),summary175:u.a.arrayOf(D.propTypes),summary225:u.a.arrayOf(D.propTypes),url:u.a.string}),imageConfig:u.a.shape({cropSize:u.a.string,imageRatio:u.a.number,style:u.a.object}),isOpinionByline:u.a.bool,isReversed:u.a.bool,showImage:u.a.bool,showSummary:u.a.bool,summaryConfig:u.a.shape({lengths:u.a.arrayOf(u.a.number),style:u.a.object,type:u.a.string})}),{},{bylineClass:u.a.string,contentContainerClass:u.a.string,headlineClass:u.a.string,imageContainerClass:u.a.string}),z=M(M({},{article:null,hasVideo:!1,imageConfig:{},isOpinionByline:!1,isReversed:!1,showImage:!0,showSummary:!0,summary105:[],summary145:[],summary160:[],summary175:[],summary225:[],summaryConfig:{}}),{},{bylineClass:"",contentContainerClass:"",headlineClass:"",imageContainerClass:""}),L=function(e,t){return t||e};function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e,t){return!t||"object"!==H(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(c,e);var t,n,a=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return W(this,n)}}(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).node=Object(r.createRef)(),t.state={highResSize:null},t}return t=c,(n=[{key:"componentDidMount",value:function(){this.props.imageConfig.showHiRes&&this.setHighResSize()}},{key:"componentDidUpdate",value:function(e){var t=this.props.imageConfig;e.imageConfig.showHiRes!==t.showHiRes&&t.showHiRes&&this.setHighResSize()}},{key:"setHighResSize",value:function(){this.setState({highResSize:this.node.current.clientWidth})}},{key:"render",value:function(){var e=this.props,t=e.article,n=t.bylines,r=t.hasVideo,a=t.headline,c=t.label,s=t.leadAsset,l=t.publishedTime,u=t.section,f=t.shortHeadline,p=e.bylineClass,m=e.children,h=e.contentContainerClass,g=e.headlineClass,b=e.imageConfig,y=b.cropSize,w=void 0===y?"169":y,O=b.imageRatio,x=void 0===O?16/9:O,j=b.style,S=void 0===j?{}:j,_=e.imageContainerClass,E=e.isOpinionByline,k=e.isReversed,I=e.leadAssetOverride,D=e.onPress,N=e.showImage,M=e.showSummary,R=e.summaryConfig,F=R.lengths,z=void 0===F?[]:F,H=R.style,U=void 0===H?{}:H,B=R.type,W=this.props.article,Y=this.state.highResSize,q=function(e,t,n){var r=t||e;return r?r.posterImage?C()(r,"posterImage.crop".concat(n,".url")):C()(r,"crop".concat(n,".url")):null}(s,I,w);return m({article:W,card:o.a.createElement(i.TcView,{ref:this.node},o.a.createElement(A.a,{contentContainerClass:h,highResSize:Y,imageContainerClass:_,imageAccessibilityLabel:f,imageRatio:x,imageStyle:S,imageUri:q,isReversed:k,lowResQuality:3,lowResSize:200,relatedArticle:!0,showImage:N},o.a.createElement(T.a,{bylineProps:{ast:n,bylineClass:p,color:d.colours.section[u]||d.colours.section.default,isOpinionByline:E},content:M&&o.a.createElement(i.TcView,{style:U},z.map((function(e){var t="".concat(e,"Class"),n=B?"".concat(B,"Summary"):"summary";return o.a.createElement(P.ArticleSummaryContent,{ast:W["summary".concat(e)],className:"summaryHidden ".concat(n).concat(t),key:e})}))),datePublicationProps:{date:l,showDay:!1},headline:o.a.createElement(P.ArticleSummaryHeadline,{className:g,headline:L(a,f),style:v.headline}),labelProps:{color:d.colours.section[u]||d.colours.section.default,isVideo:r,title:c}}))),onPress:D})}}])&&U(t.prototype,n),c}(r.Component);q.defaultProps=z;var V=q,G=n(5),$=function(e){return o.a.createElement("div",{"data-testid":"related-article-item"},o.a.createElement(V,e,(function(e){var t=e.article,n=e.card,r=e.onPress;return o.a.createElement(S.a.Consumer,null,(function(e){var i=e.makeArticleUrl;return o.a.createElement(E.a,{linkStyle:{padding:10},onPress:function(e){return r(e,{url:i(t)})},url:i(t)},n)}))})))};$.displayName="RelatedArticleItem";var X,Q=(X=$,Object(G.withTrackEvents)(X,{analyticsEvents:[{actionName:"Pressed",eventName:"onPress",getAttrs:function(e){var t=e.article,n=t.headline,r=t.id,o=t.url;return{targetArticleHeadline:t.shortHeadline||n,targetArticleId:r,targetArticleUrl:o}}}]})),K=(u.a.shape({items:u.a.arrayOf(u.a.shape({article:F.article})),sliceName:u.a.string.isRequired}).isRequired,["standard-1","standard-2","standard-3"]);function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(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 ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(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}function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ie(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(c,e);var t,n,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ae(e);if(t){var o=ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ie(this,n)}}(c);function c(){return ne(this,c),r.apply(this,arguments)}return t=c,(n=[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.isVisible,r=t.slice;return e.isVisible!==n||e.slice!==r}},{key:"render",value:function(){var e=this.props,t=e.isVisible,n=e.onPress,r=e.slice,c=e.heading;if(!r)return null;var s=r.items,l=r.sliceName;return!l||"StandardSlice"!==l&&"DraftStandardSlice"!==l||!s?null:o.a.createElement(i.TcView,null,o.a.createElement(x,{heading:c}),o.a.createElement(a.StandardSlice,{itemCount:s.length,renderItems:function(e){return s.map((function(r){return function(e,r,i){var a=e.bylineClass,c=void 0===a?"":a,s=e.contentContainerClass,l=e.headlineClass,u=void 0===l?"":l,d=e.imageConfig,f=void 0===d?{}:d,p=e.imageContainerClass,m=e.isOpinionByline,h=void 0!==m&&m,g=e.isReversed,b=void 0!==g&&g,y=e.showImage,v=void 0===y||y,w=e.showSummary,O=void 0!==w&&w,x=e.summaryConfig,j=void 0===x?{}:x;return o.a.createElement(Q,{article:r,bylineClass:c,contentContainerClass:s,headlineClass:u,id:r.id,imageConfig:ee(ee({},f),{},{showHiRes:t}),imageContainerClass:p,isOpinionByline:h,isReversed:b,key:r.id,leadAssetOverride:i,onPress:n,showImage:v,showSummary:O,summaryConfig:j})}(e,r.article,r.leadAsset)}))}}))}}])&&re(t.prototype,n),c}(r.Component);t.default=function(e){return Object(G.withTrackingContext)(e,{getAttrs:function(e){var t=e.slice,n=t.items,r=t.sliceName;if(!r)return null;var o={articles:[],template:r};return n?(o.articles=n.map((function(e,t){var n=e.article,r=n.headline,o=n.id,i=n.shortHeadline;return{headline:L(r,i),id:o,role:K[t]}})),o):o},trackingObjectName:"Article"})}(ce)}])}).call(this,n(33))},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),i=(n(4),n(2)),a=n(1),c=n.n(a),s=n(0),l=c()(i.TcView).withConfig({displayName:"responsive__SliceContainer",componentId:"sc-1kirgpc-0"})(["align-items:center;border-bottom-color:",";border-bottom-width:1px;border-style:solid;flex:1;justify-content:center;@media (-webkit-min-device-pixel-ratio:2){border-bottom-width:0.5px;}"],s.colours.functional.keyline),u=c()(i.TcView).withConfig({displayName:"responsive__ChildContainer",componentId:"sc-1lqbq6a-0"})(["flex:1;padding-left:",";padding-right:",";@media (min-width:","px){flex-basis:0 !important;padding-left:0;padding-right:0;}"],Object(s.spacing)(2),Object(s.spacing)(2),s.breakpoints.medium),d={1:[125],2:[125],3:[125,145]};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(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}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=(!0,c()(i.TcView).withConfig({displayName:"responsive",componentId:"sc-1kirgpc-1"})(["border-bottom-color:",";border-bottom-style:solid;border-bottom-width:1px;flex:1;margin-bottom:",";margin-top:",";min-width:auto;@media (min-width:","px){border-bottom:none;border-right-color:",";border-right-style:solid;border-right-width:1px;flex:0 !important;margin:",";}"],s.colours.functional.keyline,Object(s.spacing)(2),Object(s.spacing)(2),s.breakpoints.medium,s.colours.functional.keyline,"0 ".concat(Object(s.spacing)(2)))),v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(a,e);var t,n,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=(t=r.call(this,e)).props.itemCount;return t.ConfigWrapper=function(e){var t=e.itemCount,n=c()(i.TcView).withConfig({displayName:"config__Base",componentId:"bs1997-0"})([".imageContainerClass{display:",";}.summaryHidden{display:none;}.summary125Class{display:block;}@media (min-width:","px){.imageContainerClass{display:block;}.headlineClass{font-size:25px;line-height:28px;margin-top:",";}}"],t>=3?"none":"block",s.breakpoints.medium,Object(s.spacing)(1));return 1===t&&(n=c()(n).withConfig({displayName:"config__Base",componentId:"bs1997-1"})(["@media (min-width:","px){.imageContainerClass{flex:1;margin-bottom:0;min-width:auto;padding-right:",";}.contentContainerClass{flex-basis:0 !important;flex-grow:1;min-width:300px;}}"],s.breakpoints.medium,Object(s.spacing)(2))),c()(n).withConfig({displayName:"config__Base",componentId:"bs1997-2"})(["@media (min-width:","px){.summary125Class{display:",";}.summary145Class{display:",";}}"],s.breakpoints.wide,3===t?"none":"block",3===t?"block":"none")}({itemCount:n}),t.config=function(e){return{contentContainerClass:"contentContainerClass",headlineClass:"headlineClass",imageContainerClass:"imageContainerClass",summaryConfig:{lengths:d[e.itemCount]}}}({itemCount:n}),t.ChildrenContainer=function(e){var t=e.childCount,n=c()(i.TcView).withConfig({displayName:"responsive__Base",componentId:"sc-1lqbq6a-1"})(["flex:1;flex-direction:column;flex-wrap:wrap;padding-bottom:",";padding-top:",";width:100%;@media (min-width:","px){flex-direction:row;}"],Object(s.spacing)(2),Object(s.spacing)(2),s.breakpoints.medium);return n=t>=3?c()(n).withConfig({displayName:"responsive__Base",componentId:"sc-1lqbq6a-2"})(["@media (min-width:","px){padding-left:",";padding-right:",";width:100%;}"],s.breakpoints.medium,Object(s.spacing)(4),Object(s.spacing)(4)):c()(n).withConfig({displayName:"responsive__Base",componentId:"sc-1lqbq6a-3"})(["@media (min-width:","px){width:80.8%;}"],s.breakpoints.medium),c()(n).withConfig({displayName:"responsive__Base",componentId:"sc-1lqbq6a-4"})(["@media (min-width:","px){width:",";}"],s.breakpoints.wide,t>=3?"100%":"56.2%")}({childCount:n}),t}return t=a,(n=[{key:"render",value:function(){var e=(0,this.props.renderItems)(this.config);if(0===e.length)return null;var t=this.ChildrenContainer,n=this.ConfigWrapper;return o.a.createElement(n,null,o.a.createElement(l,null,o.a.createElement(t,null,e.map((function(e){return o.a.createElement(u,{key:e.props.id},e)})).reduce((function(e,t){return[].concat(function(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.length>0?e:[e]),[o.a.createElement(y,{key:"separator-".concat(t.key)}),t])})))))}}])&&m(t.prototype,n),a}(r.Component);n.d(t,"StandardSlice",(function(){return v}))}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(134)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(97)},function(e,t){e.exports=n(57)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(4),a=n(2),c=n.n(a),s=n(7),l=n.n(s),u=n(6),d=n.n(u),f=n(3),p=n.n(f);function m(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}h(h({},a.propTypes),{},{CaptionComponent:p.a.func.isRequired});var b=h(h({},a.defaultProps),{},{CaptionComponent:c.a}),y=n(5),v=n.n(y),w=n(0),O=v()(i.TcView).withConfig({displayName:"responsive__InsetCaptionContainerStyle",componentId:"sc-1io40fc-0"})(["display:inline-block;margin-top:",";padding-bottom:",";padding-left:",";padding-right:",";padding-top:0;vertical-align:top;width:50%;@media (min-width:","px){clear:left;float:left;margin-top:0px;padding-bottom:",";padding-left:0px;padding-top:0px;padding-right:",";width:30%;}@media (min-width:","px){padding-left:0px;width:35.71429%;}"],Object(w.spacing)(-2),Object(w.spacing)(4),Object(w.spacing)(2),Object(w.spacing)(2),w.breakpoints.medium,Object(w.spacing)(4),Object(w.spacing)(4),w.breakpoints.wide),x=v()(i.TcView).withConfig({displayName:"responsive__InsetImageStyle",componentId:"sc-1io40fc-1"})(["display:inline-block;padding-bottom:",";vertical-align:top;width:50%;@media (min-width:","px){clear:left;float:left;padding-bottom:0px;padding-top:",";padding-right:",";width:30%;}@media (min-width:","px){clear:left;width:35.71429%;}"],Object(w.spacing)(4),w.breakpoints.medium,Object(w.spacing)(1),Object(w.spacing)(4),w.breakpoints.wide),j=v()(i.TcView).withConfig({displayName:"responsive__InsetCaptionStyle",componentId:"sc-1io40fc-2"})(["padding-left:",";@media (min-width:","px){padding-left:0px;}"],Object(w.spacing)(2),w.breakpoints.medium),S=v.a.div.withConfig({displayName:"responsive__FullWidthCaptionContainer",componentId:"sc-1io40fc-3"})(["padding-left:",";padding-right:",";margin:auto;text-align:center;@media (min-width:","px){padding-left:0px;padding-right:0px;width:80.8%;}@media (min-width:","px){width:56.2%;}"],Object(w.spacing)(2),Object(w.spacing)(2),w.breakpoints.medium,w.breakpoints.wide),_=function(e){var t=e.text,n=e.credits,r=e.CaptionComponent;return o.a.createElement(j,null,o.a.createElement(r,{credits:n,text:t}))};_.defaultProps=b;var E=_,k=(p.a.shape({caption:p.a.string,credits:p.a.string}),p.a.shape({display:p.a.oneOf(["primary","secondary","inline","fullwidth"]),highResSize:p.a.number,lowResQuality:p.a.number,lowResSize:p.a.number,ratio:p.a.string,uri:p.a.string.isRequired}).isRequired,p.a.func,{captionOptions:{caption:null,credits:null},onImagePress:null});function C(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}var P=function(e){var t=e.imageOptions,n=e.captionOptions,r=t.display,i=t.highResSize,a=t.lowResSize,s=t.lowResQuality,l=t.ratio,u=t.uri,f=n.caption,p=function(e,t,n){return t||n?o.a.createElement(O,{key:"caption"},o.a.createElement("figcaption",null,o.a.createElement(c.a,{credits:n,text:t}))):null}(0,f,n.credits);if(!r||!l)return p;var m=function(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){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(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.")}()}(l.split(":"),2),h=m[0]/m[1];return o.a.createElement("figure",{style:{margin:0}},o.a.createElement(x,{key:"img"},o.a.createElement(d.a,{accessibilityLabel:f,aspectRatio:h,highResSize:i,lowResSize:a,lowResQuality:s,uri:u})),p)};P.defaultProps=k;var T=P;function I(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 A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}A({},a.propTypes);var N=A({},a.defaultProps),M=function(e){return o.a.createElement(S,null,o.a.createElement(c.a,e))};M.defaultProps=N;var R=M;function F(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?F(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H={alignSelf:"center",width:w.tabletWidth-w.tabletRowPadding},U={container:{paddingTop:0},fullwidthCaption:{alignSelf:"center",maxWidth:w.tabletWidth-w.tabletRowPadding},fullwidthContainer:{marginBottom:Object(w.spacing)(2),marginLeft:"auto",marginRight:"auto",maxWidth:w.tabletWidthMax},inlineCaption:{paddingLeft:Object(w.spacing)(2),paddingTop:0},inlineContainer:{flexDirection:"row",flexWrap:"nowrap",paddingBottom:Object(w.spacing)(5),paddingLeft:Object(w.spacing)(2),paddingRight:Object(w.spacing)(2),width:"100%"},inlineContainerTablet:z(z({},H),{},{flexDirection:"column",marginTop:0,paddingBottom:0,paddingLeft:Object(w.spacing)(0),paddingTop:0,width:"100%"}),inlineImage:{width:"100%"},primaryContainer:{flexDirection:"column",paddingBottom:Object(w.spacing)(3),width:"100%"},primaryContainerTablet:z({},H),secondaryCaption:{paddingLeft:Object(w.spacing)(2),paddingTop:0,width:"50%"},secondaryContainer:{flexDirection:"row",flexWrap:"nowrap",paddingBottom:Object(w.spacing)(4),paddingLeft:Object(w.spacing)(2),paddingRight:Object(w.spacing)(2),width:"100%"},secondaryContainerTablet:z(z({},H),{},{paddingLeft:Object(w.spacing)(0),paddingRight:Object(w.spacing)(0)}),secondaryImage:{width:"50%"}};function B(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}var W={secondary:{container:{paddingTop:0}}},Y=function(e,t,n,r){var a=function(e){return"primary"===e?E:"fullwidth"===e?R:c.a}(n);if(!e&&!t)return null;var s=o.a.createElement(a,{credits:t,style:W[n],text:e});return"fullwidth"===n?s:o.a.createElement(i.TcView,{style:U["".concat(n,"Caption")]},s)},q=function(e){var t=e.imageOptions,n=e.captionOptions,a=e.onImagePress,s=e.images,d=t.display,f=t.highResSize,p=t.index,m=t.lowResQuality,h=t.lowResSize,g=t.ratio,b=t.uri,y=t.relativeHeight,v=t.relativeWidth,w=t.relativeHorizontalOffset,O=t.relativeVerticalOffset,x=n.caption,j=n.credits;if("inline"===d)return o.a.createElement(T,{captionOptions:n,imageOptions:t,onImagePress:a});var S=o.a.createElement(l.a.Consumer,null,(function(e){return e.theme,Y(x,j,d)}));if(!d||!g)return S;var _=function(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){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(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.")}()}(g.split(":"),2),E=_[0]/_[1];return o.a.createElement(r.Fragment,null,o.a.createElement(i.TcView,{style:U["".concat(d,"Image")]},o.a.createElement(u.ModalImage,{accessibilityLabel:x,aspectRatio:E,caption:o.a.createElement(c.a,{credits:j,text:x}),highResSize:f,index:p,images:s,lowResSize:h,lowResQuality:m,onImagePress:a,uri:b,relativeWidth:v,relativeHeight:y,relativeHorizontalOffset:w,relativeVerticalOffset:O})),S)};q.defaultProps=k;var V=q;t.default=V}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(97)},function(e,t,n){"use strict";n.r(t),n.d(t,"polyfillWCIfNecessary",(function(){return s})),n.d(t,"default",(function(){return l}));var r=n(0),o=n.n(r),i=(n(3),n(1));function a(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function c(e,t){return document.body.querySelector(e)?Promise.resolve(null):new Promise((e,n)=>{const r=t();r.onload=e,r.onerror=n,document.body.appendChild(r)})}function s(){const e="import"in document.createElement("link"),t=!!document.registerElement;return e&&t?Promise.resolve():Promise.all([(n="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.24/webcomponents-lite.min.js",c('script[src="'.concat(n,'"]'),()=>{const e=document.createElement("script");return e.setAttribute("async","async"),e.setAttribute("src",n),e})),new Promise(e=>{window.addEventListener("WebComponentsReady",e)})]);var n}class l extends r.Component{constructor(e){super(e),this.placeholder=o.a.createRef(null),this.component=o.a.createRef(null)}componentDidMount(){(0,this.props.fetchPolyfill)().then(()=>{this.insertComponent()})}componentDidUpdate(){this.insertComponent()}insertComponent(){var e,t=this;return(e=function*(){const e=t.props,n=e.attributes,r=e.element,o=e.source,i=t.placeholder.current,a=t.component.current;a.innerHTML="",i.style.cssText+="display: block !important",a.innerHTML="";const s=document.createElement(r);var l;Object.keys(n).forEach(e=>s.setAttribute(e,n[e])),a.appendChild(s),s.outerHTML+="",i.style.cssText+="display: none !important",yield(l=o,c('link[href="'.concat(l,'"]'),()=>{const e=document.createElement("link");return e.setAttribute("href",l),e.setAttribute("rel","import"),e}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(e){a(i,r,o,c,s,"next",e)}function s(e){a(i,r,o,c,s,"throw",e)}c(void 0)}))})()}render(){return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{ref:this.placeholder,style:{height:150,position:"relative"}},o.a.createElement(i.Placeholder,null)),o.a.createElement("div",{ref:this.component}))}}l.defaultProps={attributes:{},fetchPolyfill:s}},function(e,t){e.exports=n(3)}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(85)},function(e,t){e.exports=n(111)},function(e,t){e.exports=n(136)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(5),a=n(6),c=n(7),s=n.n(c),l=n(4),u=n(2),d=n.n(u),f=(d.a.number.isRequired,d.a.object.isRequired,d.a.func.isRequired,n(3)),p=n.n(f),m=n(0);const h=p.a.a.withConfig({displayName:"styles__KeyFactTextLink",componentId:"sc-1shod7b-0"})(["color:inherit;cursor:pointer;text-decoration:underline;&:hover{color:",";}&:active{color:",";}"],m.colours.functional.brandColour,m.colours.functional.brandColour),g=p.a.div.withConfig({displayName:"styles__BulletContainer",componentId:"sc-1shod7b-1"})(["display:flex;flex-direction:row;margin-bottom:",";padding-left:",";width:100%;:last-of-type{margin-bottom:0px;}"],Object(m.spacing)(4),Object(m.spacing)(1)),b=p.a.div.withConfig({displayName:"styles__Bullet",componentId:"sc-1shod7b-2"})(["height:6px;width:6px;margin-top:2px;background-color:#9f0000;"]),y=p.a.h2.withConfig({displayName:"styles__KeyFactsTitle",componentId:"sc-1shod7b-3"})(["font-family:",";font-size:","px;font-weight:400;margin:0px 0px 20px 0px;color:",";"],m.fontsWithFallback.headline,m.fontSizes.keyFactsTitle,m.colours.functional.brandColour),v=p.a.span.withConfig({displayName:"styles__Text",componentId:"sc-1shod7b-4"})(["color:",";font-family:",";font-size:","px;margin-top:-8px;padding-left:",";width:95%;line-height:28px;"],m.colours.functional.primary,m.fontsWithFallback.bodyRegular,m.fontSizes.infoSubText,Object(m.spacing)(3)),w=p.a.div.withConfig({displayName:"styles__KeyFactsContainer",componentId:"sc-1shod7b-5"})(["margin:0 auto 20px auto;padding:16px 20px;background-color:",";border-top:2px solid #9f0000;@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}"],m.colours.functional.backgroundPrimary,m.breakpoints.medium,m.breakpoints.wide);function O(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=e=>{let t=e.listIndex,n=e.keyFactItem,r=e.fireAnalyticsEvent,i=e.articleFlag;return o.a.createElement(g,{key:"key-facts-".concat(t)},o.a.createElement(b,null),o.a.createElement(v,null,n.children.map((e,n)=>Object(a.renderTree)(e,x(x({},s.a),{},{link(t,n,a){const c=n.href,s=(e=>{if(1===e.children.length&&e.children[0].attributes)return e.children[0].attributes.value;const t=e.children.map(e=>e.attributes?e.attributes.value:e.attributes).join(" ");return t.length>0?t:" "})(e);return o.a.createElement(h,{key:t,onClick:e=>{Object(l.handleOnClickScrollTo)(e,c),((e,t,n)=>{e&&e({action:"Clicked",attrs:{event_navigation_name:"in-article component clicked : key moments",event_navigation_browsing_method:"click",article_parent_name:t,article_flag:n}})})(r,s,i)},href:Object(l.handleHrefScrollTo)(c)},a)}}),"key-facts-".concat(t,"-").concat(n)))))};d.a.object.isRequired,d.a.string,d.a.string,d.a.string,t.default=e=>{let t=e.ast,n=e.section,r=e.headline,a=e.isLiveOrBreaking;const c=t.children,s=t.attributes.title,l=c[0].children,u=a?a.toLowerCase():"no flag";return o.a.createElement(i.TrackingContextProvider,{context:{object:"KeyMoments",attrs:{component_type:"in-article component: key moments: interactive",event_navigation_action:"navigation",component_name:s,section_details:"section : ".concat(n),article_name:r,article_flag:u}},scrolledEvent:{action:"Scrolled",attrs:{event_navigation_name:"in-article component displayed : key moments",event_navigation_browsing_method:"scroll"}}},e=>{let t=e.fireAnalyticsEvent,n=e.intersectObserverRef;return o.a.createElement(w,{ref:n},s&&o.a.createElement(y,null,s),l.map((e,n)=>o.a.createElement(S,{listIndex:n,keyFactItem:e,fireAnalyticsEvent:t,articleFlag:u})))})}}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(73)},function(e,t){e.exports=n(110)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(2),a=n(4),c=n.n(a),s=n(0),l=c()(i.TcText).withConfig({displayName:"responsive__PullQuoteContent",componentId:"sc-25h5bn-0"})(["color:",";font-family:",";font-size:","px;line-height:30px;cite{font-style:normal;}@media (min-width:","px){font-size:","px;line-height:35px;}"],s.colours.functional.primary,s.fontsWithFallback.headlineRegular,s.fontSizes.pageComponentHeadline,s.breakpoints.medium,s.fontSizes.headline),u=n(5),d=n(6),f=n(3),p=n.n(f);p.a.func,p.a.string;const m={twitter:""};var h=e=>e?"https://twitter.com/".concat(e):"";function g(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v={caption:b(b({},Object(s.fontFactory)({font:"supporting",fontSize:"caption"})),{},{color:"#696969",marginBottom:0}),captionContainer:{alignItems:"center",display:"flex",flexDirection:"row",height:20,marginTop:Object(s.spacing)(2)},container:{marginBottom:Object(s.spacing)(6),marginTop:0},content:b(b({},Object(s.fontFactory)({font:"headlineRegular",fontSize:"pageComponentHeadline"})),{},{color:s.colours.functional.primary}),link:b(b({},Object(s.fontFactory)({font:"supporting",fontSize:"caption"})),{},{color:s.colours.functional.action,marginLeft:4,textDecorationLine:"none"}),text:b(b({},Object(s.fontFactory)({font:"supporting",fontSize:"caption"})),{},{color:s.colours.functional.secondary,marginBottom:0}),twitterContainer:{alignItems:"center",borderLeftColor:s.colours.functional.keyline,borderLeftWidth:1,display:"flex",flexDirection:"row",height:13,marginLeft:7,paddingLeft:7}};function w(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 O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=O(O({},v),{},{container:O(O({},v.container),{},{marginBottom:Object(s.spacing)(3)})});const S=e=>{let t=e.onTwitterLinkPress,n=e.twitter;if(!n)return null;const r=h(n);return o.a.createElement(i.TcView,{style:j.twitterContainer},o.a.createElement(d.IconTwitter,{height:10,width:11}),o.a.createElement(u.TextLink,{className:"pullQuoteTwitterLink",key:r,onPress:e=>t(e,{twitter:n,url:r}),style:j.link,target:"_blank",url:r},n))};S.defaultProps=m;var _=S;p.a.string,p.a.oneOfType([p.a.node,p.a.string]).isRequired,p.a.string,p.a.string,p.a.string;const E={caption:"",font:null,quoteColour:s.colours.functional.secondary,text:"",twitter:m.twitter};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 C(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){P(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 P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T={cultureMagazine:{marginLeft:-3},stMagazine:{marginLeft:-2},styleMagazine:{marginLeft:-5}};function I(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 A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N=(e,t)=>A(A({},(e=>C(C({},T[e]||{}),{},{fontFamily:s.fontsWithFallback[e]||s.fontsWithFallback.headlineRegular,fontSize:75,marginBottom:Object(s.spacing)(-8),marginTop:0}))(e)),{},{color:t}),M=e=>{let t=e.caption,n=e.children,r=e.font,a=e.onTwitterLinkPress,c=e.quoteColour,s=e.text,u=e.twitter;return o.a.createElement(i.TcView,{style:j.container},o.a.createElement(i.TcText,{style:N(r,c)},"“"),o.a.createElement(l,null,n),o.a.createElement(i.TcView,{style:j.captionContainer},o.a.createElement(i.TcText,{style:Object(i.checkStylesForUnits)(j.caption)},t),o.a.createElement(i.TcText,{style:Object(i.checkStylesForUnits)(j.text)},t&&s?", ".concat(s):s),o.a.createElement(_,{onTwitterLinkPress:a,twitter:u})))};M.defaultProps=E;var R=M;const F=e=>{let t=e.children,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children"]);const r=n.twitter;return o.a.createElement("blockquote",{url:r?h(r):""},o.a.createElement(R,n,o.a.createElement("cite",null,t)))};F.defaultProps=E,t.default=F}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(57)},function(e,t){e.exports=n(85)},function(e,t){e.exports=n(135)},function(e,t){e.exports=n(151)},function(e,t){e.exports=n(134)},function(e,t){e.exports=n(97)},function(e,t){e.exports=n(137)},function(e,t){e.exports=n(138)},function(e,t){e.exports=n(139)},function(e,t){e.exports=n(217)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(8),a=n.n(i),c=n(3),s=n(9),l=n(5),u=n.n(l),d=n(10),f=n.n(d),p=n(6),m=n(0),h=n(11),g=n.n(h),b=n(12),y=n.n(b),v=n(1),w=n.n(v);function O(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(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 _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}w.a.bool,w.a.string;var E=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{articleHeadline:x(x({},Object(m.fontFactory)({font:"headline",fontSize:"headline"})),{},{color:m.colours.functional.brandColour,marginBottom:Object(m.spacing)(2),textAlign:"center"}),authorImage:{marginBottom:Object(m.spacing)(5)},container:{alignItems:"center",marginBottom:Object(m.spacing)(5),marginLeft:Object(m.spacing)(2),marginRight:Object(m.spacing)(2),paddingTop:Object(m.spacing)(7)},containerTablet:{alignSelf:"center",width:m.tabletWidth},datePublication:x(x({},Object(m.fontFactory)({font:"supporting",fontSize:"cardMeta"})),{},{color:m.colours.functional.secondary,marginTop:Object(m.spacing)(3)}),datePublicationTablet:{marginTop:"auto"},label:{marginBottom:Object(m.spacing)(2)},leadAssetContainer:{marginBottom:Object(m.spacing)(4)},leadAssetContainerTablet:{alignSelf:"center",width:m.tabletWidth-m.tabletRowPadding},meta:{flexDirection:"row",flexWrap:"wrap"},metaContainer:{alignItems:"center"},metaContainerTablet:{flexDirection:"row",justifyContent:"center"},metaTablet:{paddingTop:Object(m.spacing)(1)},separator:{borderRightColor:m.colours.functional.keyline,borderRightWidth:1,height:Object(m.spacing)(3),marginLeft:Object(m.spacing)(2),marginRight:Object(m.spacing)(2)},standFirst:x(x({},Object(m.fontFactory)({font:"headlineRegular",fontSize:"smallestHeadline"})),{},{color:m.colours.functional.primary,marginBottom:Object(m.spacing)(3),paddingLeft:Object(m.spacing)(2),paddingRight:Object(m.spacing)(2),textAlign:"center"})});const k=e=>{let t=e.isVideo,n=e.label;if(!t&&!n)return null;const r=t?y.a:g.a;return o.a.createElement(u.a.Consumer,null,e=>{let t=e.theme.sectionColour;return o.a.createElement(c.TcView,{style:E.label},o.a.createElement(r,{color:t||m.colours.section.default,title:n}))})};k.defaultProps={isVideo:!1,label:null};var C=k,P=n(7),T=n(13),I=n.n(T);w.a.arrayOf(w.a.shape({})).isRequired,w.a.string.isRequired,w.a.string.isRequired;var A=n(4),D=n.n(A),N=n(14),M=n.n(N);const R=D()(c.TcView).withConfig({displayName:"responsive__AuthorImageContainer",componentId:"sc-15qf29k-0"})(["border-radius:50%;height:100px;overflow:hidden;width:100px;@media (min-width:","px){height:118px;width:118px;}"],m.breakpoints.medium),F=D()(c.TcText).withConfig({displayName:"responsive__DatePublicationContainer",componentId:"sc-15qf29k-1"})(["",";flex-direction:row;flex-wrap:wrap;margin-top:",";@media (min-width:","px){margin-top:0;}"],e=>e.styles&&e.styles,Object(m.spacing)(3),m.breakpoints.medium),z=D()(c.TcView).withConfig({displayName:"responsive__FlagsContainer",componentId:"sc-15qf29k-2"})(["padding-top:",";padding-bottom:",";@media (min-width:","px){padding-top:0;}"],Object(m.spacing)(1),Object(m.spacing)(3),m.breakpoints.medium),L=D()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"sc-15qf29k-3"})([""," order:2;@media (min-width:","px){width:80.8%;margin-top:0;margin-left:auto;margin-right:auto;margin-bottom:",";}@media (min-width:","px){width:56.2%;}"],e=>e.styles&&e.styles,m.breakpoints.medium,Object(m.spacing)(6),m.breakpoints.wide),H=D.a.h1.withConfig({displayName:"responsive__HeadlineContainer",componentId:"sc-15qf29k-4"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;"," @media (min-width:","px){font-size:","px;line-height:50px;margin-bottom:",";}"],e=>e.styles&&e.styles,m.breakpoints.medium,m.fontSizes.articleHeadline,Object(m.spacing)(1)),U=(D()(c.TcView).withConfig({displayName:"responsive__LabelContainer",componentId:"sc-15qf29k-5"})(["@media (min-width:","px){margin-top:0px;}"],m.breakpoints.wide),D()(c.TcView).withConfig({displayName:"responsive__Meta",componentId:"sc-15qf29k-6"})([""," max-width:100%;justify-content:center;@media (min-width:","px){margin-top:0;}"],e=>e.styles&&e.styles,m.breakpoints.medium)),B=D()(c.TcView).withConfig({displayName:"responsive__MetaContainer",componentId:"sc-15qf29k-7"})(["align-items:center;justify-content:center;@media (min-width:","px){flex-direction:row;flex-wrap:wrap;}"],m.breakpoints.medium),W=D()(c.TcView).withConfig({displayName:"responsive__Separator",componentId:"sc-15qf29k-8"})(["display:none;@media (min-width:","px){background-color:",";display:flex;height:",";margin:0 ",";width:1px;}"],m.breakpoints.medium,m.colours.functional.keyline,Object(m.spacing)(3),Object(m.spacing)(2)),Y=D.a.h2.withConfig({displayName:"responsive__StandfirstContainer",componentId:"sc-15qf29k-9"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;"," @media (min-width:","px){font-size:","px;line-height:","px;margin-bottom:",";}@media (min-width:","px){margin-bottom:",";}"],e=>e.styles&&e.styles,m.breakpoints.medium,m.fontSizes.infoTitle,Object(m.lineHeight)({font:"bodyRegular",fontSize:"infoTitle"}),Object(m.spacing)(5),m.breakpoints.wide,Object(m.spacing)(4)),q=D()(M.a).withConfig({displayName:"responsive__LeadAsset",componentId:"sc-15qf29k-10"})(["order:2;@media (min-width:","px){margin-bottom:",";}@media (min-width:","px){width:56.2%;margin-left:auto;margin-right:auto;}"],m.breakpoints.medium,Object(m.spacing)(6),m.breakpoints.wide);var V=e=>{let t=e.bylines,n=e.publicationName,i=e.publishedTime;return o.a.createElement(B,null,Object(P.hasBylineData)(t)&&o.a.createElement(r.Fragment,null,o.a.createElement(U,{styles:E.meta},o.a.createElement(P.ArticleBylineWithLinks,{ast:t})),o.a.createElement(W,null)),o.a.createElement(U,{styles:E.meta},o.a.createElement(F,{styles:Object(c.checkStylesForUnits)(E.datePublication)},o.a.createElement(I.a,{date:i,publication:n}))))};const G=e=>{let t=e.standfirst;return t?o.a.createElement(Y,{role:"heading","aria-level":"2",styles:Object(c.checkStylesForUnits)(E.standFirst),testID:"standfirst"},t):null};G.defaultProps={standfirst:null};var $=G;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 Q(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){K(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 K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}w.a.string.isRequired,w.a.arrayOf(w.a.shape({})).isRequired,w.a.arrayOf(w.a.shape({expiryTime:w.a.string,type:w.a.string})),w.a.bool,w.a.string.isRequired,w.a.string,w.a.bool,w.a.string.isRequired,w.a.string.isRequired,w.a.string,w.a.string;const Z=(e,t)=>Object(c.checkStylesForUnits)(Q(Q({},E.articleHeadline),{},{fontFamily:e?m.fontsWithFallback[e]:null,textTransform:t||null})),J=e=>{let t=e.authorImage,n=e.bylines,r=e.flags,i=e.hasVideo,a=e.headline,c=e.label,s=e.publicationName,l=e.publishedTime,d=e.standfirst,m=e.updatedTime;return o.a.createElement(u.a.Consumer,null,e=>{let u=e.theme,h=u.headlineFont,g=u.headlineCase;return o.a.createElement(L,{styles:E.container},o.a.createElement(R,{style:E.authorImage},o.a.createElement(f.a,{aspectRatio:1,uri:t,accessibilityLabel:"author-image"})),o.a.createElement(C,{isVideo:i,label:c}),o.a.createElement(H,{role:"heading","aria-level":"1",styles:Z(h,g)},a),o.a.createElement(z,null,o.a.createElement(p.UpdatedTimeProvider,{updatedTime:m},o.a.createElement(p.ArticleFlags,{flags:r}))),o.a.createElement($,{standfirst:d}),o.a.createElement(V,{bylines:n,publicationName:s,publishedTime:l}))})};J.defaultProps={flags:[],hasVideo:!1,label:null,longRead:!1,standfirst:null,updatedTime:null};var ee=J;function te(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 ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ne(ne({},{analyticsStream:w.a.func.isRequired,article:w.a.shape({}),error:w.a.shape({graphQLErrors:w.a.array,message:w.a.string,networkError:w.a.shape({message:w.a.string})}),isLoading:w.a.bool,onImagePress:w.a.func,receiveChildList:w.a.func.isRequired}),{},{commentingConfig:w.a.shape({account:w.a.string.isRequired}).isRequired,navigationMode:w.a.shape({}).isRequired});const oe=ne({},{article:null,error:null,isLoading:!1,onImagePress:null});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)}class ae extends r.Component{constructor(e){super(e),this.renderHeader=this.renderHeader.bind(this)}renderHeader(){const e=this.props.article,t=e.bylines,n=e.expirableFlags,i=e.hasVideo,a=e.headline,l=e.label,u=e.publicationName,d=e.publishedTime,f=e.shortHeadline,p=e.standfirst,m=e.updatedTime,h=t&&t.length>0&&t[0].image&&0!==Object.keys(t[0].image).length&&t[0].image.crop?t[0].image.crop.url:null;return o.a.createElement(r.Fragment,null,o.a.createElement(ee,{authorImage:h,bylines:t,flags:n,hasVideo:i,headline:Object(c.getHeadline)(a,f),label:l,publicationName:u,publishedTime:d,standfirst:p,updatedTime:m}),o.a.createElement(q,ie({},Object(c.getLeadAsset)(e),{getImageCrop:c.getStandardTemplateCrop,renderCaption:e=>{let t=e.caption;return o.a.createElement(s.CentredCaption,t)},style:E.leadAssetContainer})))}render(){const e=this.props,t=e.article,n=e.analyticsStream,r=e.error,i=e.isLoading,c=e.logoUrl,s=e.navigationMode,l=e.receiveChildList,u=e.commentingConfig,d=e.paidContentClassName,f=e.isPreview,p=e.swgProductId;return r||i?null:o.a.createElement(a.a,{analyticsStream:n,data:t,Header:this.renderHeader,logoUrl:c,receiveChildList:l,navigationMode:s,commentingConfig:u,paidContentClassName:d,isPreview:f,swgProductId:p})}}ae.defaultProps=oe,t.default=ae}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(57)},function(e,t){e.exports=n(151)},function(e,t){e.exports=n(135)},function(e,t){e.exports=n(85)},function(e,t){e.exports=n(134)},function(e,t){e.exports=n(139)},function(e,t){e.exports=n(217)},function(e,t){e.exports=n(137)},function(e,t){e.exports=n(138)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(6),a=n.n(i),c=n(3),s=n(9),l=n(7),u=n(5),d=n.n(u),f=n(10),p=n.n(f),m=n(0),h=n(1),g=n.n(h);g.a.arrayOf(g.a.shape({})).isRequired,g.a.string.isRequired,g.a.string.isRequired;var b=n(4),y=n.n(b),v=n(11),w=n.n(v);const O=y()(c.TcText).withConfig({displayName:"responsive__DatePublicationContainer",componentId:"sc-3t8ix5-0"})(["",";flex-direction:row;flex-wrap:wrap;margin-top:",";@media (min-width:","px){margin-top:0;}"],e=>e.styles&&e.styles,Object(m.spacing)(1),m.breakpoints.medium),x=y()(c.TcView).withConfig({displayName:"responsive__FlagsContainer",componentId:"sc-3t8ix5-1"})(["padding-top:",";padding-bottom:",";@media (min-width:","px){padding-top:0;}"],Object(m.spacing)(1),Object(m.spacing)(3),m.breakpoints.medium),j=y()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"sc-3t8ix5-2"})([""," order:2;@media (min-width:","px){width:80.8%;margin-top:0;margin-left:auto !important;margin-right:auto !important;}@media (min-width:","px){width:56.2%;}"],e=>e.styles&&e.styles,m.breakpoints.medium,m.breakpoints.wide),S=y.a.h1.withConfig({displayName:"responsive__HeadlineContainer",componentId:"sc-3t8ix5-3"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;"," @media (min-width:","px){font-size:","px;line-height:50px;margin-bottom:",";}"],e=>e.styles&&e.styles,m.breakpoints.medium,m.fontSizes.articleHeadline,Object(m.spacing)(1)),_=(y()(c.TcView).withConfig({displayName:"responsive__LabelContainer",componentId:"sc-3t8ix5-4"})(["@media (min-width:","px){margin-top:0px;}"],m.breakpoints.wide),y()(c.TcView).withConfig({displayName:"responsive__Meta",componentId:"sc-3t8ix5-5"})(["max-width:100%;@media (min-width:","px){margin-top:0;}"],m.breakpoints.medium)),E=y()(c.TcView).withConfig({displayName:"responsive__MetaContainer",componentId:"sc-3t8ix5-6"})(["align-items:center;@media (min-width:","px){flex-direction:row;flex-wrap:wrap;}"],m.breakpoints.medium),k=y()(c.TcView).withConfig({displayName:"responsive__Separator",componentId:"sc-3t8ix5-7"})(["display:none;@media (min-width:","px){background-color:",";display:flex;height:",";margin:0 ",";width:1px;}"],m.breakpoints.medium,m.colours.functional.keyline,Object(m.spacing)(3),Object(m.spacing)(2)),C=y.a.h2.withConfig({displayName:"responsive__StandfirstContainer",componentId:"sc-3t8ix5-8"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;"," @media (min-width:","px){font-size:","px;line-height:","px;margin-bottom:",";}@media (min-width:","px){margin-bottom:",";}"],e=>e.styles&&e.styles,m.breakpoints.medium,m.fontSizes.infoTitle,Object(m.lineHeight)({font:"bodyRegular",fontSize:"infoTitle"}),Object(m.spacing)(5),m.breakpoints.wide,Object(m.spacing)(4)),P=y()(w.a).withConfig({displayName:"responsive__LeadAsset",componentId:"sc-3t8ix5-9"})(["order:2;@media (min-width:","px){width:100%;margin-left:auto;margin-right:auto;}"],m.breakpoints.wide);function T(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 I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}y()(c.TcView).withConfig({displayName:"responsive__LeadAssetCaptionContainer",componentId:"sc-3t8ix5-10"})(["display:flex;"]);var R=N(N({},{articleHeadline:I(I({},Object(m.fontFactory)({font:"headline",fontSize:"headline"})),{},{fontWeight:400,color:m.colours.functional.brandColour,marginBottom:Object(m.spacing)(2),textAlign:"center"}),container:{alignItems:"center",paddingBottom:Object(m.spacing)(9),paddingLeft:Object(m.spacing)(4),paddingRight:Object(m.spacing)(4),paddingTop:Object(m.spacing)(12)},containerTablet:{alignSelf:"center",maxWidth:m.tabletWidthMax},datePublication:I(I({},Object(m.fontFactory)({font:"supporting",fontSize:"cardMeta"})),{},{color:m.colours.functional.secondary,marginTop:Object(m.spacing)(1)}),datePulicationTablet:{marginTop:Object(m.spacing)(0)},headerText:{alignItems:"center"},headerTextTablet:{width:m.tabletWidth},label:{marginBottom:Object(m.spacing)(2)},leadAsset:{marginBottom:Object(m.spacing)(0)},leadAssetTablet:{alignSelf:"center",maxWidth:m.tabletWidthMax,width:"100%"},meta:{flexDirection:"row",flexWrap:"wrap",justifyContent:"center"},metaContainer:{alignItems:"center",marginLeft:Object(m.spacing)(2),marginRight:Object(m.spacing)(2),paddingBottom:Object(m.spacing)(2),paddingTop:Object(m.spacing)(2),borderBottomColor:m.colours.functional.keyline,borderBottomWidth:1,borderTopColor:m.colours.functional.keyline,borderTopWidth:1,marginBottom:Object(m.spacing)(4)},metaContainerTablet:{alignSelf:"center",width:m.tabletWidth},metaContainerTabletFlow:{alignItems:"center",flexDirection:"row",justifyContent:"center",width:"100%"},separator:{borderRightColor:m.colours.functional.keyline,borderRightWidth:1,height:Object(m.spacing)(3),marginRight:Object(m.spacing)(2),paddingLeft:Object(m.spacing)(2)},standFirst:I(I({},Object(m.fontFactory)({font:"headlineRegular",fontSize:"smallestHeadline"})),{},{fontWeight:400,color:m.colours.functional.primary,marginBottom:Object(m.spacing)(3),paddingLeft:Object(m.spacing)(2),paddingRight:Object(m.spacing)(2),textAlign:"center"})}),{},{leadAsset:{marginBottom:Object(m.spacing)(4)},metaContainer:{justifyContent:"center",paddingTop:Object(m.spacing)(2),paddingBottom:Object(m.spacing)(2)}}),F=e=>{let t=e.bylines,n=e.publicationName,i=e.publishedTime;return o.a.createElement(E,{style:R.metaContainer},Object(l.hasBylineData)(t)&&o.a.createElement(r.Fragment,null,o.a.createElement(_,{style:R.meta},o.a.createElement(d.a.Consumer,null,e=>{let n=e.theme.sectionColour;return o.a.createElement(l.ArticleBylineWithLinks,{ast:t,color:n||m.colours.section.default})})),o.a.createElement(k,null)),o.a.createElement(_,{style:R.meta},o.a.createElement(O,{styles:Object(c.checkStylesForUnits)(R.datePublication)},o.a.createElement(p.a,{date:i,publication:n}))))},z=n(8),L=n(12),H=n.n(L),U=n(13),B=n.n(U);g.a.string,g.a.bool,g.a.string;const W={color:m.colours.section.default,isVideo:!1,label:null},Y=e=>{let t=e.color,n=e.isVideo,r=e.label;if(!n&&!r)return null;const i=n?B.a:H.a;return o.a.createElement(c.TcView,{style:R.label},o.a.createElement(i,{color:t,title:r}))};Y.defaultProps=W;var q=Y;function V(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 G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const X=e=>{let t=e.standfirst,n=e.color;return t?o.a.createElement(C,{role:"heading","aria-level":"2",styles:G(G({},Object(c.checkStylesForUnits)(R.standFirst)),{},{color:n}),testID:"standfirst"},t):null};X.defaultProps={color:m.colours.functional.white,standfirst:null};var Q=X;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 Z(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){J(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 J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}g.a.shape({rgba:g.a.shape({alpha:g.a.number,blue:g.a.number,green:g.a.number,red:g.a.number})}),g.a.arrayOf(g.a.shape({expiryTime:g.a.string,type:g.a.string})),g.a.bool,g.a.string.isRequired,g.a.string,g.a.bool,g.a.string,g.a.shape({rgba:g.a.shape({alpha:g.a.number,blue:g.a.number,green:g.a.number,red:g.a.number})}),g.a.string;const ee=e=>{let t=e.backgroundColour,n=e.flags,r=e.hasVideo,i=e.headline,a=e.label,s=e.standfirst,l=e.textColour,u=e.updatedTime;const f=Object(c.gqlRgbaToStyle)(t),p=Object(c.gqlRgbaToStyle)(l),h=(e,t)=>Object(c.checkStylesForUnits)(Z(Z({},R.articleHeadline),{},{color:p,fontFamily:e?m.fontsWithFallback[e]:null,textTransform:t||null}));return o.a.createElement(d.a.Consumer,null,e=>{let t=e.theme,l=t.headlineFont,d=t.headlineCase;return o.a.createElement(c.TcView,{style:{backgroundColor:f,order:2,width:"100%"}},o.a.createElement(j,{styles:R.container},o.a.createElement(q,{color:p,isVideo:r,label:a}),o.a.createElement(S,{role:"heading","aria-level":"1",styles:h(l,d)},i),o.a.createElement(x,null,o.a.createElement(z.UpdatedTimeProvider,{updatedTime:u},o.a.createElement(z.ArticleFlags,{color:p,flags:n}))),o.a.createElement(Q,{color:p,standfirst:s})))})};ee.defaultProps={backgroundColour:{rgba:{alpha:1,blue:255,green:255,red:255}},flags:[],hasVideo:!1,label:null,longRead:!1,standfirst:null,textColour:{rgba:{alpha:1,blue:0,green:0,red:0}},updatedTime:null};var te=ee;function ne(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 re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}re(re({},{analyticsStream:g.a.func.isRequired,article:g.a.shape({}),error:g.a.shape({graphQLErrors:g.a.array,message:g.a.string,networkError:g.a.shape({message:g.a.string})}),isLoading:g.a.bool,onImagePress:g.a.func,receiveChildList:g.a.func.isRequired}),{},{navigationMode:g.a.shape({}).isRequired});const ie=re({},{article:null,error:null,isLoading:!1,onImagePress:null});function ae(){return(ae=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)}class ce extends r.Component{constructor(e){super(e),this.renderHeader=this.renderHeader.bind(this)}renderHeader(){const e=this.props.article,t=e.backgroundColour,n=e.bylines,a=e.expirableFlags,l=e.hasVideo,u=e.headline,d=e.label,f=e.publicationName,p=e.publishedTime,m=e.shortHeadline,h=e.standfirst,g=e.textColour,b=e.updatedTime;return o.a.createElement(r.Fragment,null,o.a.createElement(te,{backgroundColour:t,flags:a,hasVideo:l,headline:Object(c.getHeadline)(u,m),label:d,standfirst:h,textColour:g,updatedTime:b}),o.a.createElement(P,ae({},Object(c.getLeadAsset)(e),{renderCaption:e=>{let t=e.caption;return o.a.createElement(s.CentredCaption,t)},style:R.leadAsset})),o.a.createElement(i.ArticleKeylineItem,null,o.a.createElement(F,{backgroundColour:t,bylines:n,publicationName:f,publishedTime:p,textColour:g})))}render(){const e=this.props,t=e.article,n=e.analyticsStream,r=e.error,i=e.isLoading,c=e.logoUrl,s=e.navigationMode,l=e.receiveChildList,u=e.commentingConfig,d=e.isPreview,f=e.swgProductId,p=e.hasUpdate;return r||i?null:o.a.createElement(a.a,{analyticsStream:n,data:t,Header:this.renderHeader,logoUrl:c,receiveChildList:l,navigationMode:s,commentingConfig:u,isPreview:d,swgProductId:f,hasUpdate:p})}}ce.defaultProps=ie,t.default=ce}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(57)},function(e,t){e.exports=n(217)},function(e,t){e.exports=n(85)},function(e,t){e.exports=n(135)},function(e,t){e.exports=n(151)},function(e,t){e.exports=n(134)},function(e,t){e.exports=n(137)},function(e,t){e.exports=n(138)},function(e,t){e.exports=n(139)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(9),a=n.n(i),c=n(3),s=n(10),l=n(5),u=n.n(l),d=n(7),f=n(0),p=n(11),m=n.n(p),h=n(12),g=n.n(h),b=n(1),y=n.n(b);function v(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}y.a.bool,y.a.string;var S=function(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){j(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}({},{articleHeadline:w(w({},Object(f.fontFactory)({font:"headline",fontSize:"headline"})),{},{color:f.colours.functional.brandColour,marginBottom:Object(f.spacing)(2),textAlign:"center"}),container:{alignItems:"center",marginBottom:Object(f.spacing)(5),paddingLeft:Object(f.spacing)(2),paddingRight:Object(f.spacing)(2),paddingTop:Object(f.spacing)(7)},datePublication:w(w({},Object(f.fontFactory)({font:"supporting",fontSize:"cardMeta"})),{},{color:f.colours.functional.secondary,marginTop:Object(f.spacing)(3)}),datePublicationTablet:{marginTop:"auto"},label:{marginBottom:Object(f.spacing)(2)},leadAssetContainer:{marginBottom:Object(f.spacing)(4)},leadAssetContainerTablet:{paddingLeft:Object(f.spacing)(2),paddingRight:Object(f.spacing)(2)},meta:{flexDirection:"row",flexWrap:"wrap"},metaContainer:{alignItems:"center"},metaContainerTablet:{flexDirection:"row",justifyContent:"center"},metaTablet:{paddingTop:Object(f.spacing)(1)},separator:{borderRightColor:f.colours.functional.keyline,borderRightWidth:1,height:Object(f.spacing)(3),marginLeft:Object(f.spacing)(2),marginRight:Object(f.spacing)(2)},standFirst:w(w({},Object(f.fontFactory)({font:"headlineRegular",fontSize:"smallestHeadline"})),{},{color:f.colours.functional.primary,marginBottom:Object(f.spacing)(3),paddingLeft:Object(f.spacing)(2),paddingRight:Object(f.spacing)(2),textAlign:"center"})});const _=e=>{let t=e.isVideo,n=e.label;if(!t&&!n)return null;const r=t?g.a:m.a;return o.a.createElement(u.a.Consumer,null,e=>{let t=e.theme.sectionColour;return o.a.createElement(c.TcView,{style:S.label},o.a.createElement(r,{color:t||f.colours.section.default,title:n}))})};_.defaultProps={isVideo:!1,label:null};var E=_,k=n(8),C=n(13),P=n.n(C);y.a.arrayOf(y.a.shape({})).isRequired,y.a.string.isRequired,y.a.string.isRequired;var T=n(4),I=n.n(T),A=n(6),D=n.n(A);const N=I()(c.TcText).withConfig({displayName:"responsive__DatePublicationContainer",componentId:"iv7rgu-0"})(["",";flex-direction:row;flex-wrap:wrap;margin-top:",";@media (min-width:","px){margin-top:0;}"],e=>e.styles&&e.styles,Object(f.spacing)(3),f.breakpoints.medium),M=I()(c.TcView).withConfig({displayName:"responsive__FlagsContainer",componentId:"iv7rgu-1"})(["padding-top:",";padding-bottom:",";@media (min-width:","px){padding-top:0;}"],Object(f.spacing)(1),Object(f.spacing)(3),f.breakpoints.medium),R=I()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"iv7rgu-2"})(["order:2;@media (min-width:","px){width:80.8%;margin-top:0;margin-left:auto;margin-right:auto;margin-bottom:",";}@media (min-width:","px){width:56.2%;}"],f.breakpoints.medium,Object(f.spacing)(6),f.breakpoints.wide),F=I.a.h1.withConfig({displayName:"responsive__HeadlineContainer",componentId:"iv7rgu-3"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;"," @media (min-width:","px){font-size:","px;line-height:50px;margin-bottom:",";}"],e=>e.styles&&e.styles,f.breakpoints.medium,f.fontSizes.articleHeadline,Object(f.spacing)(1)),z=(I()(c.TcView).withConfig({displayName:"responsive__LabelContainer",componentId:"iv7rgu-4"})(["@media (min-width:","px){margin-top:0px;}"],f.breakpoints.wide),I()(c.TcView).withConfig({displayName:"responsive__Meta",componentId:"iv7rgu-5"})(["max-width:100%;justify-content:center;@media (min-width:","px){margin-top:0;}"],f.breakpoints.medium)),L=I()(c.TcView).withConfig({displayName:"responsive__MetaContainer",componentId:"iv7rgu-6"})(["align-items:center;justify-content:center;@media (min-width:","px){flex-direction:row;flex-wrap:wrap;}"],f.breakpoints.medium),H=I()(c.TcView).withConfig({displayName:"responsive__Separator",componentId:"iv7rgu-7"})(["display:none;@media (min-width:","px){background-color:",";display:flex;height:",";margin:0 ",";width:1px;}"],f.breakpoints.medium,f.colours.functional.keyline,Object(f.spacing)(3),Object(f.spacing)(2)),U=I.a.h2.withConfig({displayName:"responsive__StandfirstContainer",componentId:"iv7rgu-8"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;"," @media (min-width:","px){font-size:","px;line-height:","px;margin-bottom:",";}@media (min-width:","px){margin-bottom:",";}"],e=>e.styles&&e.styles,f.breakpoints.medium,f.fontSizes.infoTitle,Object(f.lineHeight)({font:"bodyRegular",fontSize:"infoTitle"}),Object(f.spacing)(5),f.breakpoints.wide,Object(f.spacing)(4));I()(D.a).withConfig({displayName:"responsive__LeadAsset",componentId:"iv7rgu-9"})(["order:2;@media (min-width:","px){margin-bottom:",";}@media (min-width:","px){width:56.2%;margin-left:auto;margin-right:auto;}"],f.breakpoints.medium,Object(f.spacing)(6),f.breakpoints.wide);var B=e=>{let t=e.bylines,n=e.publicationName,i=e.publishedTime;return o.a.createElement(L,null,Object(k.hasBylineData)(t)&&o.a.createElement(r.Fragment,null,o.a.createElement(z,{style:S.meta},o.a.createElement(u.a.Consumer,null,e=>{let n=e.theme.sectionColour;return o.a.createElement(k.ArticleBylineWithLinks,{ast:t,color:n||f.colours.section.default})})),o.a.createElement(H,null)),o.a.createElement(z,{style:S.meta},o.a.createElement(N,{styles:Object(c.checkStylesForUnits)(S.datePublication)},o.a.createElement(P.a,{date:i,publication:n}))))};const W=e=>{let t=e.standfirst;return t?o.a.createElement(U,{role:"heading","aria-level":"2",styles:Object(c.checkStylesForUnits)(S.standFirst),testID:"standfirst"},t):null};W.defaultProps={standfirst:null};var Y=W;function q(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 V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}y.a.arrayOf(y.a.shape({})).isRequired,y.a.arrayOf(y.a.shape({expiryTime:y.a.string,type:y.a.string})),y.a.bool,y.a.string.isRequired,y.a.string,y.a.bool,y.a.string.isRequired,y.a.string.isRequired,y.a.string,y.a.string;const $=(e,t)=>Object(c.checkStylesForUnits)(V(V({},S.articleHeadline),{},{fontFamily:e?f.fontsWithFallback[e]:null,textTransform:t||null})),X=e=>{let t=e.bylines,n=e.flags,r=e.hasVideo,i=e.headline,a=e.label,c=e.publicationName,s=e.publishedTime,l=e.standfirst,f=e.updatedTime;return o.a.createElement(u.a.Consumer,null,e=>{let u=e.theme,p=u.headlineFont,m=u.headlineCase;return o.a.createElement(R,{style:S.container},o.a.createElement(E,{isVideo:r,label:a}),o.a.createElement(F,{role:"heading","aria-level":"1",styles:$(p,m)},i),o.a.createElement(M,null,o.a.createElement(d.UpdatedTimeProvider,{updatedTime:f},o.a.createElement(d.ArticleFlags,{flags:n}))),o.a.createElement(Y,{standfirst:l}),o.a.createElement(B,{bylines:t,publicationName:c,publishedTime:s}))})};X.defaultProps={flags:[],hasVideo:!1,label:null,longRead:!1,standfirst:null,updatedTime:null};var Q=X;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 Z(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){J(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 J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Z(Z({},{analyticsStream:y.a.func.isRequired,article:y.a.shape({}),error:y.a.shape({graphQLErrors:y.a.array,message:y.a.string,networkError:y.a.shape({message:y.a.string})}),isLoading:y.a.bool,onImagePress:y.a.func,receiveChildList:y.a.func.isRequired}),{},{navigationMode:y.a.shape({}).isRequired});const ee=Z({},{article:null,error:null,isLoading:!1,onImagePress:null});function te(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 ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oe(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 ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ae=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{articleHeadline:ne(ne({},Object(f.fontFactory)({font:"headline",fontSize:"headline"})),{},{color:f.colours.functional.brandColour,marginBottom:Object(f.spacing)(2),textAlign:"center"}),container:{alignItems:"center",marginBottom:Object(f.spacing)(5),paddingLeft:Object(f.spacing)(2),paddingRight:Object(f.spacing)(2),paddingTop:Object(f.spacing)(7)},datePublication:ne(ne({},Object(f.fontFactory)({font:"supporting",fontSize:"cardMeta"})),{},{color:f.colours.functional.secondary,marginTop:Object(f.spacing)(3)}),datePublicationTablet:{marginTop:"auto"},label:{marginBottom:Object(f.spacing)(2)},leadAssetContainer:{marginBottom:Object(f.spacing)(4)},leadAssetContainerTablet:{paddingLeft:Object(f.spacing)(2),paddingRight:Object(f.spacing)(2)},meta:{flexDirection:"row",flexWrap:"wrap"},metaContainer:{alignItems:"center"},metaContainerTablet:{flexDirection:"row",justifyContent:"center"},metaTablet:{paddingTop:Object(f.spacing)(1)},separator:{borderRightColor:f.colours.functional.keyline,borderRightWidth:1,height:Object(f.spacing)(3),marginLeft:Object(f.spacing)(2),marginRight:Object(f.spacing)(2)},standFirst:ne(ne({},Object(f.fontFactory)({font:"headlineRegular",fontSize:"smallestHeadline"})),{},{color:f.colours.functional.primary,marginBottom:Object(f.spacing)(3),paddingLeft:Object(f.spacing)(2),paddingRight:Object(f.spacing)(2),textAlign:"center"})});I()(c.TcText).withConfig({displayName:"responsive__DatePublicationContainer",componentId:"bpd0t9-0"})(["flex-direction:row;flex-wrap:wrap;margin-top:",";@media (min-width:","px){margin-top:0;}"],Object(f.spacing)(3),f.breakpoints.medium),I()(c.TcView).withConfig({displayName:"responsive__FlagsContainer",componentId:"bpd0t9-1"})(["padding-top:",";padding-bottom:",";@media (min-width:","px){padding-top:0;}"],Object(f.spacing)(1),Object(f.spacing)(3),f.breakpoints.medium),I()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"bpd0t9-2"})(["order:2;@media (min-width:","px){width:80.8%;margin-top:0;margin-left:auto;margin-right:auto;margin-bottom:",";}@media (min-width:","px){width:56.2%;}"],f.breakpoints.medium,Object(f.spacing)(6),f.breakpoints.wide),I()(c.TcText).withConfig({displayName:"responsive__HeadlineContainer",componentId:"bpd0t9-3"})(["font-weight:400;@media (min-width:","px){font-size:","px;line-height:50px;margin-bottom:",";}"],f.breakpoints.medium,f.fontSizes.articleHeadline,Object(f.spacing)(1)),I()(c.TcView).withConfig({displayName:"responsive__LabelContainer",componentId:"bpd0t9-4"})(["@media (min-width:","px){margin-top:0px;}"],f.breakpoints.wide),I()(c.TcView).withConfig({displayName:"responsive__Meta",componentId:"bpd0t9-5"})(["max-width:100%;justify-content:center;@media (min-width:","px){margin-top:0;}"],f.breakpoints.medium),I()(c.TcView).withConfig({displayName:"responsive__MetaContainer",componentId:"bpd0t9-6"})(["align-items:center;justify-content:center;@media (min-width:","px){flex-direction:row;flex-wrap:wrap;}"],f.breakpoints.medium),I()(c.TcView).withConfig({displayName:"responsive__Separator",componentId:"bpd0t9-7"})(["display:none;@media (min-width:","px){background-color:",";display:flex;height:",";margin:0 ",";width:1px;}"],f.breakpoints.medium,f.colours.functional.keyline,Object(f.spacing)(3),Object(f.spacing)(2)),I()(c.TcText).withConfig({displayName:"responsive__StandfirstContainer",componentId:"bpd0t9-8"})(["font-weight:400;@media (min-width:","px){font-size:","px;line-height:","px;margin-bottom:",";}@media (min-width:","px){margin-bottom:",";}"],f.breakpoints.medium,f.fontSizes.infoTitle,Object(f.lineHeight)({font:"bodyRegular",fontSize:"infoTitle"}),Object(f.spacing)(5),f.breakpoints.wide,Object(f.spacing)(4));const ce=I()(D.a).withConfig({displayName:"responsive__LeadAsset",componentId:"bpd0t9-9"})(["order:2;@media (min-width:","px){margin-bottom:",";}@media (min-width:","px){width:56.2%;margin-left:auto;margin-right:auto;}"],f.breakpoints.medium,Object(f.spacing)(6),f.breakpoints.wide);function se(){return(se=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)}class le extends r.Component{constructor(e){super(e),this.renderHeader=this.renderHeader.bind(this)}renderHeader(){const e=this.props.article,t=e.bylines,n=e.expirableFlags,i=e.hasVideo,a=e.headline,l=e.label,u=e.publicationName,d=e.publishedTime,f=e.shortHeadline,p=e.standfirst,m=e.updatedTime;return o.a.createElement(r.Fragment,null,o.a.createElement(Q,{bylines:t,flags:n,hasVideo:i,headline:Object(c.getHeadline)(a,f),label:l,publicationName:u,publishedTime:d,standfirst:p,updatedTime:m}),o.a.createElement(ce,se({},Object(c.getLeadAsset)(e),{getImageCrop:c.getStandardTemplateCrop,renderCaption:e=>{let t=e.caption;return o.a.createElement(s.CentredCaption,t)},style:ae.leadAssetContainer})))}render(){const e=this.props,t=e.article,n=e.analyticsStream,r=e.error,i=e.isLoading,c=e.logoUrl,s=e.navigationMode,l=e.receiveChildList,u=e.commentingConfig,d=e.paidContentClassName,f=e.isPreview,p=e.swgProductId;return r||i?null:o.a.createElement(a.a,{analyticsStream:n,data:t,Header:this.renderHeader,logoUrl:c,receiveChildList:l,navigationMode:s,commentingConfig:u,paidContentClassName:d,isPreview:f,swgProductId:p})}}le.defaultProps=ee,t.default=le}])},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t){e.exports=n(15)},function(e,t){e.exports=n(3)},function(e,t){e.exports=n(0)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(16)},function(e,t){e.exports=n(85)},function(e,t){e.exports=n(314)},function(e,t){e.exports=n(135)},function(e,t){e.exports=n(151)},function(e,t){e.exports=n(97)},function(e,t){e.exports=n(137)},function(e,t){e.exports=n(138)},function(e,t){e.exports=n(57)},function(e,t){e.exports=n(139)},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(8),a=n.n(i),c=n(3),s=n(5),l=n(6),u=n(9),d=n.n(u),f=n(10),p=n.n(f),m=n(11),h=n.n(m),g=n(12),b=n.n(g),y=n(0),v=n(1),w=n.n(v);function O(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(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 _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}w.a.bool,w.a.string;var E=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{articleHeadline:x(x({},Object(y.fontFactory)({font:"headline",fontSize:"headline"})),{},{color:y.colours.functional.brandColour,marginBottom:Object(y.spacing)(2),textAlign:"center"}),articleHeadlineTablet:x({},Object(y.fontFactory)({font:"headline",fontSize:"articleHeadline"})),authorImage:{marginBottom:Object(y.spacing)(5)},container:{alignItems:"center",paddingLeft:Object(y.spacing)(2),paddingRight:Object(y.spacing)(2)},datePublication:x(x({},Object(y.fontFactory)({font:"supporting",fontSize:"cardMeta"})),{},{color:y.colours.functional.secondary,marginTop:Object(y.spacing)(1)}),datePublicationTablet:{marginTop:"auto"},header:{marginBottom:Object(y.spacing)(3),paddingBottom:Object(y.spacing)(4),paddingTop:Object(y.spacing)(7)},label:{marginBottom:Object(y.spacing)(2)},meta:{flexDirection:"row",flexWrap:"wrap"},metaContainer:{alignItems:"center",width:"100%",paddingTop:Object(y.spacing)(2),paddingBottom:Object(y.spacing)(2),borderBottomColor:y.colours.functional.keyline,borderBottomWidth:1,borderTopColor:y.colours.functional.keyline,borderTopWidth:1},metaContainerTablet:{flexDirection:"row",justifyContent:"center"},separator:{borderRightColor:y.colours.functional.keyline,borderRightWidth:1,height:Object(y.spacing)(3),marginLeft:Object(y.spacing)(2),marginRight:Object(y.spacing)(2)},standFirst:x(x({},Object(y.fontFactory)({font:"headlineRegular",fontSize:"smallestHeadline"})),{},{color:y.colours.functional.primary,marginBottom:Object(y.spacing)(3),paddingLeft:Object(y.spacing)(2),paddingRight:Object(y.spacing)(2),textAlign:"center"})});const k=e=>{let t=e.isVideo,n=e.label;if(!t&&!n)return null;const r=t?h.a:p.a;return o.a.createElement(b.a.Consumer,null,e=>{let t=e.theme.sectionColour;return o.a.createElement(c.TcView,{style:E.label},o.a.createElement(r,{color:t||y.colours.section.default,title:n}))})};k.defaultProps={isVideo:!1,label:null};var C=k,P=n(7),T=n(13),I=n.n(T);w.a.arrayOf(w.a.shape({})).isRequired,w.a.string.isRequired,w.a.string.isRequired;var A=n(4),D=n.n(A);const N=D()(c.TcView).withConfig({displayName:"responsive__AuthorImageContainer",componentId:"ba1gpd-0"})(["border-radius:50%;height:100px;overflow:hidden;width:100px;@media (min-width:","px){height:118px;width:118px;}"],y.breakpoints.medium),M=D()(c.TcText).withConfig({displayName:"responsive__DatePublicationContainer",componentId:"ba1gpd-1"})(["",";flex-direction:row;flex-wrap:wrap;margin-top:",";@media (min-width:","px){margin-top:0;}"],e=>e.styles&&e.styles,Object(y.spacing)(3),y.breakpoints.medium),R=D()(c.TcView).withConfig({displayName:"responsive__FlagsContainer",componentId:"ba1gpd-2"})(["padding-top:",";padding-bottom:",";@media (min-width:","px){padding-top:0;}"],Object(y.spacing)(1),Object(y.spacing)(3),y.breakpoints.medium),F=D()(c.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"ba1gpd-3"})(["order:2;z-index:1;@media (min-width:","px){width:80.8%;margin:0 auto ",";margin-left:auto;margin-right:auto;}@media (min-width:","px){width:56.2%;}"],y.breakpoints.medium,Object(y.spacing)(2),y.breakpoints.wide),z=D.a.h1.withConfig({displayName:"responsive__HeadlineContainer",componentId:"ba1gpd-4"})(["border:0px solid black;box-sizing:border-box;display:inline;font-family:sans-serif;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;",";@media (min-width:","px){font-size:","px;line-height:50px;margin-bottom:",";}"],e=>e.styles&&e.styles,y.breakpoints.medium,y.fontSizes.articleHeadline,Object(y.spacing)(1)),L=(D()(c.TcView).withConfig({displayName:"responsive__LabelContainer",componentId:"ba1gpd-5"})(["@media (min-width:","px){margin-top:0px;}"],y.breakpoints.wide),D()(c.TcView).withConfig({displayName:"responsive__Meta",componentId:"ba1gpd-6"})([""," max-width:100%;justify-content:center;@media (min-width:","px){margin-top:0;}"],e=>e.styles&&e.styles,y.breakpoints.medium)),H=D()(c.TcView).withConfig({displayName:"responsive__MetaContainer",componentId:"ba1gpd-7"})(["align-items:center;justify-content:center;@media (min-width:","px){flex-direction:row;flex-wrap:wrap;}"],y.breakpoints.medium),U=D()(c.TcView).withConfig({displayName:"responsive__Separator",componentId:"ba1gpd-8"})(["display:none;@media (min-width:","px){background-color:",";display:flex;height:",";margin:0 ",";width:1px;}"],y.breakpoints.medium,y.colours.functional.keyline,Object(y.spacing)(3),Object(y.spacing)(2)),B=D.a.h2.withConfig({displayName:"responsive__StandfirstContainer",componentId:"ba1gpd-9"})(["border:0px solid black;box-sizing:border-box;display:inline;margin:0px;padding:0px;white-space:pre-wrap;overflow-wrap:break-word;font-weight:400;",";@media (min-width:","px){font-size:","px;line-height:","px;margin-bottom:",";}@media (min-width:","px){margin-bottom:",";}"],e=>e.styles&&e.styles,y.breakpoints.medium,y.fontSizes.infoTitle,Object(y.lineHeight)({font:"bodyRegular",fontSize:"infoTitle"}),Object(y.spacing)(5),y.breakpoints.wide,Object(y.spacing)(4));var W=e=>{let t=e.bylines,n=e.publicationName,i=e.publishedTime;return o.a.createElement(H,null,Object(P.hasBylineData)(t)&&o.a.createElement(r.Fragment,null,o.a.createElement(L,{styles:E.meta},o.a.createElement(P.ArticleBylineWithLinks,{ast:t})),o.a.createElement(U,null)),o.a.createElement(L,{styles:E.meta},o.a.createElement(M,{styles:Object(c.checkStylesForUnits)(E.datePublication)},o.a.createElement(I.a,{date:i,publication:n}))))};const Y=e=>{let t=e.standfirst;return t?o.a.createElement(B,{role:"heading","aria-level":"2",styles:Object(c.checkStylesForUnits)(E.standFirst),testID:"standfirst"},t):null};Y.defaultProps={standfirst:null};var q=Y;function V(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 G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}w.a.string.isRequired,w.a.arrayOf(w.a.shape({})).isRequired,w.a.arrayOf(w.a.shape({expiryTime:w.a.string,type:w.a.string})),w.a.bool,w.a.string.isRequired,w.a.string,w.a.bool,w.a.string.isRequired,w.a.string.isRequired,w.a.bool,w.a.string,w.a.string;const X=e=>{let t=e.authorImage,n=e.bylines,r=e.flags,i=e.hasVideo,a=e.headline,u=e.label,f=e.publicationName,p=e.showAudioPlayer,m=e.publishedTime,h=e.standfirst,g=e.updatedTime;return o.a.createElement(F,{style:G(G({},E.header),E.container)},o.a.createElement(N,{style:E.authorImage},o.a.createElement(d.a,{aspectRatio:1,uri:t,accessibilityLabel:"author-image"})),o.a.createElement(C,{isVideo:i,label:u}),o.a.createElement(z,{role:"heading","aria-level":"1",styles:Object(c.checkStylesForUnits)(E.articleHeadline)},a),o.a.createElement(R,null,o.a.createElement(s.UpdatedTimeProvider,{updatedTime:g},o.a.createElement(s.ArticleFlags,{flags:r}))),o.a.createElement(q,{standfirst:h}),o.a.createElement(W,{bylines:n,publicationName:f,publishedTime:m}),p&&o.a.createElement(l.TCThemeProvider,null,o.a.createElement(l.InArticleAudio,{src:"https://ncu-newskit-docs.s3.eu-west-1.amazonaws.com/storybook-assets/audio_file_1.mp3",readyToPlayText:"Listen to article",playingText:"Playing",narrator:"James Marriott",headline:"Sorry, we can’t all be destined for greatness",feedback:{requestFeedback:!0,feedbackMessage:"Want to listen to more articles? Give your feedback below or email",thankyouMessage:"Thank you for your feedback. We're always trying to give you the best possible experience – your feedback helps us do this."}})))};X.defaultProps={flags:[],hasVideo:!1,label:null,longRead:!1,standfirst:null,updatedTime:null};var Q=X;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 Z(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){J(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 J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Z(Z({},{analyticsStream:w.a.func.isRequired,article:w.a.shape({}),error:w.a.shape({graphQLErrors:w.a.array,message:w.a.string,networkError:w.a.shape({message:w.a.string})}),isLoading:w.a.bool,onImagePress:w.a.func,receiveChildList:w.a.func.isRequired,zephrDivs:w.a.bool,showAudioPlayer:w.a.bool}),{},{navigationMode:w.a.shape({}).isRequired});const ee=Z({},{article:null,error:null,isLoading:!1,onImagePress:null,showAudioPlayer:!1});class te extends r.Component{constructor(e){super(e),this.renderHeader=this.renderHeader.bind(this)}renderHeader(){const e=this.props,t=e.article,n=e.showAudioPlayer,r=t.bylines,i=t.expirableFlags,a=t.hasVideo,s=t.headline,l=t.label,u=t.publicationName,d=t.publishedTime,f=t.shortHeadline,p=t.standfirst,m=t.updatedTime,h=r&&r.length>0&&r[0].image&&0!==Object.keys(r[0].image).length&&r[0].image.crop?r[0].image.crop.url:null;return o.a.createElement(Q,{authorImage:h,bylines:r,flags:i,hasVideo:a,headline:Object(c.getHeadline)(s,f),label:l,publicationName:u,publishedTime:d,standfirst:p,updatedTime:m,showAudioPlayer:n})}render(){const e=this.props,t=e.article,n=e.analyticsStream,r=e.error,i=e.isLoading,c=e.logoUrl,s=e.navigationMode,l=e.receiveChildList,u=e.commentingConfig,d=e.paidContentClassName,f=e.isPreview,p=e.showAudioPlayer,m=e.swgProductId,h=e.zephrDivs;return r||i?null:o.a.createElement(a.a,{analyticsStream:n,data:t,Header:this.renderHeader,logoUrl:c,receiveChildList:l,navigationMode:s,commentingConfig:u,paidContentClassName:d,isPreview:f,swgProductId:m,zephrDivs:h,showAudioPlayer:p})}}te.defaultProps=ee,t.default=te}])},,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(492),o=n.n(r);function i(e,t,n){var r=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return r.formatToParts?function(e,t){var n=e.formatToParts(t);return n[n.length-1].value}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,t)}function a(e,t){var n=function(e){if(!s[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;s[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return s[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o<n.length;o++){var i=c[n[o].type];i>=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(n,e)}var c={year:0,month:1,day:2,hour:3,minute:4,second:5};var s={};function l(e,t,n,r,o,i,a){var c=new Date(0);return c.setUTCFullYear(e,t,n),c.setUTCHours(r,o,i,a),c}var u={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function d(e,t,n){var r,o,i;if(""===e)return 0;if(r=u.timezoneZ.exec(e))return 0;if(r=u.timezoneHH.exec(e))return p(i=parseInt(r[1],10))?-36e5*i:NaN;if(r=u.timezoneHHMM.exec(e)){i=parseInt(r[1],10);var a=parseInt(r[2],10);return p(i,a)?(o=36e5*Math.abs(i)+6e4*a,i>0?-o:o):NaN}if(function(e){if(m[e])return!0;try{return Intl.DateTimeFormat(void 0,{timeZone:e}),m[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var c=f(n?t:function(e){return l(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),e);return-(n?c:function(e,t,n){var r=e.getTime()-t,o=f(new Date(r),n);if(t===o)return t;r-=o-t;var i=f(new Date(r),n);if(o===i)return o;return Math.max(o,i)}(t,c,e))}return NaN}function f(e,t){var n=a(e,t),r=l(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return r-(o-=i>=0?i:1e3+i)}function p(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var m={};function h(e,t){var n=e?d(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function g(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}function b(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+g(Math.floor(o/60),2)+n+g(Math.floor(o%60),2)}function y(e,t){return e%60==0?(e>0?"-":"+")+g(Math.abs(e)/60,2):b(e,t)}var v={X:function(e,t,n,r){var o=h(r.timeZone,r._originalDate||e);if(0===o)return"Z";switch(t){case"X":return y(o);case"XXXX":case"XX":return b(o);case"XXXXX":case"XXX":default:return b(o,":")}},x:function(e,t,n,r){var o=h(r.timeZone,r._originalDate||e);switch(t){case"x":return y(o);case"xxxx":case"xx":return b(o);case"xxxxx":case"xxx":default:return b(o,":")}},O:function(e,t,n,r){var o=h(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+g(i,2)}(o,":");case"OOOO":default:return"GMT"+b(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return i("short",o,r);case"zzzz":default:return i("long",o,r)}}},w=n(107),O=n.n(w),x=n(225),j=n.n(x),S=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,_={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:S};function E(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?2:O()(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o=k(e),i=C(o.date,r),a=i.year,c=i.restDateString,s=P(c,a);if(isNaN(s))return new Date(NaN);if(s){var l,u=s.getTime(),f=0;if(o.time&&(f=T(o.time),isNaN(f)))return new Date(NaN);if(o.timeZone||n.timeZone){if(l=d(o.timeZone||n.timeZone,new Date(u+f)),isNaN(l))return new Date(NaN)}else l=j()(new Date(u+f)),l=j()(new Date(u+f+l));return new Date(u+f+l)}return new Date(NaN)}function k(e){var t,n={},r=_.dateTimePattern.exec(e);if(r?(n.date=r[1],t=r[3]):(r=_.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e),t){var o=_.timeZone.exec(t);o?(n.time=t.replace(o[1],""),n.timeZone=o[1].trim()):n.time=t}return n}function C(e,t){var n,r=_.YYY[t],o=_.YYYYY[t];if(n=_.YYYY.exec(e)||o.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=_.YY.exec(e)||r.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}function P(e,t){if(null===t)return null;var n,r,o,i;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=_.MM.exec(e))return r=new Date(0),M(t,o=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=_.DDD.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=N(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=_.MMDD.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var c=parseInt(n[2],10);return M(t,o,c)?(r.setUTCFullYear(t,o,c),r):new Date(NaN)}if(n=_.Www.exec(e))return R(t,i=parseInt(n[1],10)-1)?I(t,i):new Date(NaN);if(n=_.WwwD.exec(e)){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return R(t,i,s)?I(t,i,s):new Date(NaN)}return null}function T(e){var t,n,r;if(t=_.HH.exec(e))return F(n=parseFloat(t[1].replace(",",".")))?n%24*36e5:NaN;if(t=_.HHMM.exec(e))return F(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*36e5+6e4*r:NaN;if(t=_.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return F(n,r,o)?n%24*36e5+6e4*r+1e3*o:NaN}return null}function I(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}var A=[31,28,31,30,31,30,31,31,30,31,30,31],D=[31,29,31,30,31,30,31,31,30,31,30,31];function N(e){return e%400==0||e%4==0&&e%100!=0}function M(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=N(e);if(r&&n>D[t])return!1;if(!r&&n>A[t])return!1}return!0}function R(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function F(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var z=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function L(e,t,n){var r=String(t),i=n||{},a=r.match(z);if(a){var c=E(e,i);r=a.reduce((function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],o=e.replace(t,"'"+v[t[0]](c,t,null,i)+"'");return r?o.substring(0,n-1)+o.substring(n+1):o}),r)}return o()(e,r,i)}var H=n(226),U=n.n(H);function B(e,t,n){var r=E(e,n),o=d(t,r,!0),i=new Date(r.getTime()-o);return new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds())}function W(e,t,n,r){var o=U()(r);return o.timeZone=t,L(B(e,t),n,o)}function Y(e,t){return-d(e,t)}function q(e,t,n){if("string"==typeof e&&!e.match(S)){var r=U()(n);return r.timeZone=t,E(e,r)}var o=E(e,n),i=l(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()).getTime(),a=d(t,new Date(i));return new Date(i+a)}n.d(t,"format",(function(){return L})),n.d(t,"formatInTimeZone",(function(){return W})),n.d(t,"getTimezoneOffset",(function(){return Y})),n.d(t,"toDate",(function(){return E})),n.d(t,"utcToZonedTime",(function(){return B})),n.d(t,"zonedTimeToUtc",(function(){return q}))},,,function(e,t,n){"use strict";n.r(t);var r=n(16),o=n(3),i=n.n(o),a=n(0),c=n.n(a);function s(){return(s=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)}var l={preventDefaultTouchmoveEvent:!1,delta:10,rotationAngle:0,trackMouse:!1,trackTouch:!0},u={xy:[0,0],swiping:!1,eventData:void 0,start:void 0};function d(e,t){if(0===t)return e;var n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function f(e,t){var n=function(t){t.touches&&t.touches.length>1||e((function(e,n){n.trackMouse&&(document.addEventListener("mousemove",r),document.addEventListener("mouseup",a));var o=t.touches?t.touches[0]:t,i=d([o.clientX,o.clientY],n.rotationAngle);return s({},e,u,{eventData:{initial:[].concat(i),first:!0},xy:i,start:t.timeStamp||0})}))},r=function(t){e((function(e,n){if(!e.xy[0]||!e.xy[1]||t.touches&&t.touches.length>1)return e;var r=t.touches?t.touches[0]:t,o=d([r.clientX,r.clientY],n.rotationAngle),i=o[0],a=o[1],c=e.xy[0]-i,l=e.xy[1]-a,u=Math.abs(c),f=Math.abs(l),p=(t.timeStamp||0)-e.start,m=Math.sqrt(u*u+f*f)/(p||1);if(u<n.delta&&f<n.delta&&!e.swiping)return e;var h=function(e,t,n,r){return e>t?n>0?"Left":"Right":r>0?"Up":"Down"}(u,f,c,l),g=s({},e.eventData,{event:t,absX:u,absY:f,deltaX:c,deltaY:l,velocity:m,dir:h});n.onSwiping&&n.onSwiping(g);var b=!1;return(n.onSwiping||n.onSwiped||n["onSwiped"+h])&&(b=!0),b&&n.preventDefaultTouchmoveEvent&&n.trackTouch&&t.cancelable&&t.preventDefault(),s({},e,{eventData:s({},g,{first:!1}),swiping:!0})}))},o=function(t){e((function(e,n){var r;return e.swiping&&(r=s({},e.eventData,{event:t}),n.onSwiped&&n.onSwiped(r),n["onSwiped"+r.dir]&&n["onSwiped"+r.dir](r)),s({},e,u,{eventData:r})}))},i=function(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)},a=function(e){i(),o(e)},c=function(e){if(e&&e.addEventListener){var t=[["touchstart",n],["touchmove",r],["touchend",o]];return t.forEach((function(t){var n=t[0],r=t[1];return e.addEventListener(n,r)})),function(){return t.forEach((function(t){var n=t[0],r=t[1];return e.removeEventListener(n,r)}))}}},l={ref:function(t){null!==t&&e((function(e,n){if(e.el===t)return e;var r={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),r.cleanUpTouch=null),n.trackTouch&&t&&(r.cleanUpTouch=c(t)),s({},e,{el:t},r)}))}};return t.trackMouse&&(l.onMouseDown=n),[l,c]}function p(e,t,n){var r={};return!t.trackTouch&&e.cleanUpTouch?(e.cleanUpTouch(),r.cleanUpTouch=null):t.trackTouch&&!e.cleanUpTouch&&e.el&&(r.cleanUpTouch=n(e.el)),s({},e,r)}var m=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this)._set=function(e){n.transientState=e(n.transientState,n.props)},n.transientState=s({},u,{type:"class"}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.className,n=e.style,r=e.nodeName,o=void 0===r?"div":r,i=e.innerRef,a=e.children,l=e.trackMouse,u=f(this._set,{trackMouse:l}),d=u[0],m=u[1];this.transientState=p(this.transientState,this.props,m);var h=i?function(e){return i(e),d.ref(e)}:d.ref;return c.a.createElement(o,s({},d,{className:t,style:n,ref:h}),a)},r}(c.a.PureComponent);m.propTypes={onSwiped:i.a.func,onSwiping:i.a.func,onSwipedUp:i.a.func,onSwipedRight:i.a.func,onSwipedDown:i.a.func,onSwipedLeft:i.a.func,delta:i.a.number,preventDefaultTouchmoveEvent:i.a.bool,nodeName:i.a.string,trackMouse:i.a.bool,trackTouch:i.a.bool,innerRef:i.a.func,rotationAngle:i.a.number},m.defaultProps=l;var h=n(493),g=n.n(h),b=n(494),y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),w=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},O=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},x=function(e){function t(){return y(this,t),O(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),v(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.when,r=e.hiddenMode,o=e.className,i=c.a.Children.only(t),a=i.props,s=a.style,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(a,["style"]),u=w({},l),d=r&&"withNull"!==r;d&&("withCss"===r?u.className=u.className+" "+o:u.style=w({},s,"withDisplay"===r&&{display:"none"},"withVisibility"===r&&{visibility:"hidden"}));var f=c.a.cloneElement(i,u);return n?i:d?f:null}}]),t}(a.Component);x.defaultProps={hiddenMode:"withNull",className:"r-o_hidden"},x.propTypes={children:i.a.element.isRequired,when:i.a.bool.isRequired,hiddenMode:i.a.oneOf(["withNull","withDisplay","withVisibility","withCss"]),className:i.a.string};var j=x;function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t,n){return t&&_(e.prototype,t),n&&_(e,n),e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return(C=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 P(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?P(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?M(e):t}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var o=A(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function z(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function L(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}function U(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}function B(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=H(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}n.d(t,"consts",(function(){return X}));var W=function(){},Y=function(e){return L(Array(e).keys())},q=function(){for(var e="rec",t=" ",n="".concat(e),r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.reduce((function(n,r){return r&&(n+="".concat(t).concat(e,"-").concat(r)),n}),"");return n+=a},V=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(e,t){return t(e)}),e)}};function G(){var e=z(["\n box-sizing: border-box;\n transition: all 0.3s ease;\n font-size: 1.6em;\n background-color: rgba(103, 58, 183, 0.1);\n color: ",";\n box-shadow: 0 0 2px 0px #333;\n border-radius: 50%;\n border: none;\n padding: 0;\n width: 50px;\n height: 50px;\n min-width: 50px;\n line-height: 50px;\n align-self: center;\n cursor: pointer;\n outline: none;\n &:hover:enabled,\n &:focus:enabled {\n color: #fff;\n background-color: rgba(103, 58, 183, 1);\n box-shadow: 0 0 2px 0 #333;\n }\n &:disabled {\n cursor: not-allowed;\n }\n"]);return G=function(){return e},e}var $=r.default.button.attrs((function(e){var t=e.type;return{type:void 0===t?"button":t}})).withConfig({displayName:"indexes__Button",componentId:"jxyyo8-0"})(G(),(function(e){return e.disabled?"#999":"#333"})),X={PREV:"PREV",NEXT:"NEXT",START:"flex-start",CENTER:"center",END:"flex-end"};function Q(){var e=z(["\n box-sizing: border-box;\n display: flex;\n overflow: hidden;\n user-select: none;\n justify-content: ",";\n"]);return Q=function(){return e},e}var K=r.default.div.attrs((function(e){return{style:e.style,className:q("item-wrapper")}})).withConfig({displayName:"indexes__ItemWrapper",componentId:"jxyyo8-1"})(Q(),(function(e){return e.itemPosition}));function Z(){var e=z(["\n overflow: hidden;\n position: relative;\n width: 100%;\n margin: 0 10px;\n"]);return Z=function(){return e},e}K.defaultProps={style:{},itemPosition:X.CENTER},K.propTypes={children:i.a.element.isRequired,style:i.a.object,itemPosition:i.a.oneOf([X.START,X.CENTER,X.END])};var J=r.default.div.withConfig({displayName:"indexes__SliderContainer",componentId:"jxyyo8-2"})(Z());function ee(){var e=z(["\n position: absolute;\n display: flex;\n flex-direction: ",";\n ",";\n ",";\n"]);return ee=function(){return e},e}var te=function(e){var t=e.isRTL,n=e.verticalMode,r=e.isSwiping,o=e.swipedSliderPosition,i=e.sliderPosition;return n||t?"auto":"".concat(r?o:i,"px")},ne=function(e){var t=e.isRTL,n=e.verticalMode,r=e.isSwiping,o=e.swipedSliderPosition,i=e.sliderPosition;return!n&&t?"".concat(r?o:i,"px"):"auto"},re=function(e){var t=e.verticalMode,n=e.isSwiping,r=e.swipedSliderPosition,o=e.sliderPosition;return t?"".concat(n?r:o,"px"):"auto"},oe=r.default.div.attrs((function(e){return{style:{transition:(t=e,n=t.isSwiping,r=t.transitionMs,o=t.easing,i=t.tiltEasing,a=n?i:o,"all ".concat(n?0:r,"ms ").concat(a)),left:te(e),right:ne(e),top:re(e)}};var t,n,r,o,i,a})).withConfig({displayName:"indexes__Slider",componentId:"jxyyo8-3"})(ee(),(function(e){return e.verticalMode?"column":"row"}),(function(e){return e.verticalMode?"min-height: 100%;":""}),(function(e){var t=e.verticalMode,n=e.outerSpacing;return t?"":"margin: 0 ".concat(n,"px;")}));function ie(){var e=z(["\n display: flex;\n flex-direction: row;\n width: 100%;\n"]);return ie=function(){return e},e}var ae=r.default.div.attrs((function(e){return{style:{height:e.size.height}}})).withConfig({displayName:"indexes__StyledCarousel",componentId:"jxyyo8-4"})(ie());function ce(){var e=z(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n direction: ",";\n"]);return ce=function(){return e},e}var se=r.default.div.withConfig({displayName:"indexes__CarouselWrapper",componentId:"jxyyo8-5"})(ce(),(function(e){return e.isRTL?"rtl":"ltr"})),le=function(e){I(n,e);var t=F(n);function n(){var e;S(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return k(M(e=t.call.apply(t,[this].concat(o))),"onClick",(function(){var t=e.props;(0,t.onClick)(t.id)})),e}return E(n,[{key:"render",value:function(){return c.a.createElement(K,C({},this.props,{onClick:this.onClick}))}}]),n}(c.a.Component);le.defaultProps={onClick:W},le.propTypes={id:i.a.oneOfType([i.a.string,i.a.number]),onClick:i.a.func};var ue=function(e){var t=e.children,n=e.childWidth,r=e.autoTabIndexVisibleItems,o=e.enableSwipe,i=e.enableMouseSwipe,a=e.preventDefaultTouchmoveEvent,s=e.itemsToShow,l=e.itemsToScroll,u=e.currentItem,d=e.itemPosition,f=e.itemPadding,p=e.onSwiped,h=e.onSwiping,g=e.verticalMode,b=e.onItemClick,y="".concat(n,"px"),v="".concat(f.join("px "),"px"),w=u,O=u+s,x=w-l,j=O+l,S=c.a.Children.map(t,(function(e,t){var n=t>=w&&t<O,o=!n&&t>=x&&t<u,i=!n&&t<j&&t>u,a="carousel-item",s=r?c.a.cloneElement(e,{tabIndex:n?0:-1}):e;return c.a.createElement("div",{className:q(a,"".concat(a,"-").concat(t),"".concat(a,"-").concat(n?"visible":"hidden"),o&&"".concat(a,"-prev"),i&&"".concat(a,"-next"))},c.a.createElement(le,{id:t,itemPosition:d,style:{width:y,padding:v},key:t,onClick:b},s))}));return o?c.a.createElement(m,{style:{display:"flex",flexDirection:g?"column":"row"},stopPropagation:!0,preventDefaultTouchmoveEvent:a,trackMouse:i,onSwiped:p,onSwiping:h,className:q("swipable")},S):S};ue.propTypes={children:i.a.array.isRequired,itemsToShow:i.a.number.isRequired,noAutoTabbedItems:i.a.bool,currentItem:i.a.number.isRequired,itemPosition:i.a.string,itemPadding:i.a.array,childWidth:i.a.number,verticalMode:i.a.bool,enableSwipe:i.a.bool,enableMouseSwipe:i.a.bool,preventDefaultTouchmoveEvent:i.a.bool,onSwiped:i.a.func,onSwiping:i.a.func,onItemClick:i.a.func};var de={left:"❮",right:"❯",up:"❮",down:"❯"},fe=q("arrow"),pe=function(e){var t=e.direction,n=e.onClick,r=e.icons,o=e.style,i=N(e,["direction","onClick","icons","style"]),a=T(T({},de),r),s=T(T({},function(e){var t={};return e!==pe.up&&e!==pe.down||(t.transform="rotate(90deg)"),t}(t)),o);return c.a.createElement($,C({tabIndex:0,onClick:n,className:g()(fe,"".concat(fe,"-").concat(t)),style:s},i),a[t])};pe.left="left",pe.right="right",pe.up="up",pe.down="down",pe.propTypes={direction:i.a.oneOf(["left","right","up","down"]).isRequired,icons:i.a.object,style:i.a.object,onClick:i.a.func};var me=function(e,t){var n=t.limit,r=t.itemsToScroll;switch(t.type){case"NEXT_ITEM":var o=e+r;return n>=o?o:n;case"PREV_ITEM":var i=e-r;return i>=n?i:n;default:return e}},he=function(e,t){return{type:"NEXT_ITEM",limit:e,itemsToScroll:t}},ge=function(e,t){return{type:"PREV_ITEM",limit:e,itemsToScroll:t}};function be(){var e=z(["\n box-sizing: border-box;\n padding: 0;\n transition: all 250ms ease;\n border: none;\n margin: 5px;\n background-color: ",';\n font-size: 1.3em;\n content: "";\n height: 10px;\n width: 10px;\n box-shadow: ',";\n border-radius: 50%;\n outline: none;\n &:hover,\n &:focus {\n cursor: pointer;\n box-shadow: ",";\n }\n"]);return be=function(){return e},e}var ye=r.default.button.attrs((function(e){var t=e.type;return{type:void 0===t?"button":t}})).withConfig({displayName:"indexes__Dot",componentId:"jxyyo8-6"})(be(),(function(e){return e.active?"rgba(103,58,183,.5)":"transparent"}),(function(e){return e.active?"0 0 1px 3px rgba(103,58,183,1)":"0 0 1px 2px rgba(0, 0, 0, 0.5)"}),(function(e){return e.active?"0 0 1px 3px rgba(103,58,183,1)":"0 0 1px 3px rgba(103,58,183,.5)"})),ve=function(e){I(n,e);var t=F(n);function n(){var e;S(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return k(M(e=t.call.apply(t,[this].concat(o))),"onClick",(function(){var t=e.props;(0,t.onClick)(t.id)})),e}return E(n,[{key:"render",value:function(){var e=this.props.active;return c.a.createElement(ye,{tabIndex:e?-1:0,onClick:this.onClick,active:e,className:"".concat(q("dot")," ").concat(e?q("dot_active"):"")})}}]),n}(c.a.Component);function we(){var e=z(["\n display: flex;\n flex-wrap: wrap;\n margin-top: 15px;\n"]);return we=function(){return e},e}ve.propTypes={id:i.a.oneOfType([i.a.string,i.a.number]),active:i.a.bool,onClick:i.a.func};var Oe=r.default.div.withConfig({displayName:"indexes__Indicators",componentId:"jxyyo8-7"})(we()),xe=function(e){I(n,e);var t=F(n);function n(){return S(this,n),t.apply(this,arguments)}return E(n,[{key:"render",value:function(){var e=this.props,t=e.numOfPages,n=e.activePage,r=e.onClick,o=Y(t);return c.a.createElement(Oe,{className:q("pagination")},o.map((function(e,t){return c.a.createElement(ve,{key:t,id:t,active:t===n,onClick:r})})))}}]),n}(c.a.Component);xe.defaultProps={onClick:W},xe.propTypes={numOfPages:i.a.number.isRequired,activePage:i.a.number.isRequired,onClick:i.a.func};var je=function(e){I(n,e);var t=F(n);function n(){var e;S(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return k(M(e=t.call.apply(t,[this].concat(o))),"isComponentMounted",!1),k(M(e),"state",{rootHeight:0,childHeight:0,sliderPosition:0,swipedSliderPosition:0,isSwiping:!1,transitioning:!1,transitionMs:e.props.transitionMs,activeIndex:e.props.initialActiveIndex||e.props.initialFirstItem,pages:[],activePage:0,sliderContainerWidth:0}),k(M(e),"setRef",(function(t){return function(n){return e[t]=n}})),k(M(e),"initResizeObserver",(function(){e.ro=new b.a((function(t,n){var r,o=B(t);try{var i=function(){var t=r.value;t.target===e.sliderContainer&&window.requestAnimationFrame((function(){e.onContainerResize(t)})),t.target===e.slider&&window.requestAnimationFrame((function(){e.onSliderResize(t)}))};for(o.s();!(r=o.n()).done;)i()}catch(e){o.e(e)}finally{o.f()}})),e.ro.observe(e.sliderContainer),e.ro.observe(e.slider)})),k(M(e),"unSubscribeObserver",(function(){return e.ro.disconnect()})),k(M(e),"setAutoPlay",(function(){var t=e.getDerivedPropsFromBreakPoint().autoPlaySpeed;e.autoPlayIntervalId=setInterval((function(){e.isComponentMounted&&(e.state.transitioning||e.slideNext())}),t)})),k(M(e),"removeAutoPlay",(function(){e.autoPlayIntervalId&&(clearInterval(e.autoPlayIntervalId),e.autoPlayIntervalId=null)})),k(M(e),"setPages",(function(){var t=e.getNumOfPages(),n=Y(t);e.setState({pages:n})})),k(M(e),"onSliderTransitionEnd",(function(t){e.slider.addEventListener("transitionend",t)})),k(M(e),"removeSliderTransitionHook",(function(t){e.slider.removeEventListener("transitionend",t)})),k(M(e),"getDerivedPropsFromBreakPoint",(function(){var t,n=e.props,r=n.breakPoints,o=N(n,["breakPoints"]),i=e.state.sliderContainerWidth;return r&&r.length>0&&((t=r.slice().reverse().find((function(e){return e.width<=i})))||(t=r[0])),T(T({},o),t)})),k(M(e),"updateSliderPosition",(function(){e.setState((function(t){var n=e.getDerivedPropsFromBreakPoint(),r=n.children,o=n.verticalMode,i=n.itemsToShow,c=n.transitionMs,s=t.childHeight,l=t.activeIndex,u=e.calculateChildWidth(),d=a.Children.toArray(r).length,f=-1*l,p=i-(d-l);p>0&&d-i>0&&(f=p+-1*l);var m=(o?s:u)*f,h=p>0?l-p:l;return window.requestAnimationFrame((function(){e.isComponentMounted&&e.setState({transitionMs:c})})),{sliderPosition:m,activeIndex:h<0?0:h}}))})),k(M(e),"onSliderResize",(function(t){if(e.isComponentMounted){var n=e.getDerivedPropsFromBreakPoint(),r=n.verticalMode,o=n.children,i=n.itemsToShow,c=t.contentRect.height,s={},l=a.Children.toArray(o).length;if(r){var u=c/l;s.rootHeight=u*Math.min(l,i),s.childHeight=u}else s.rootHeight=c;e.setState(s)}})),k(M(e),"calculateChildWidth",(function(){var t=e.state.sliderContainerWidth,n=e.getDerivedPropsFromBreakPoint(),r=n.verticalMode,o=n.itemsToShow,i=n.showEmptySlots,c=n.children,s=a.Children.toArray(c).length||1;return r?t:t/(i?o:Math.min(s,o))})),k(M(e),"onContainerResize",(function(t){var n=t.contentRect.width,r=e.getDerivedPropsFromBreakPoint(),o=r.outerSpacing,i=n-(r.verticalMode?0:2*o);e.isComponentMounted&&e.state.sliderContainerWidth!==n&&e.setState({sliderContainerWidth:i,transitionMs:0},(function(){var t=e.getDerivedPropsFromBreakPoint(),n=t.onResize,r=t.itemsToShow,o=t.children,i=a.Children.toArray(o).length||1;e.setState((function(e){var t=e.activeIndex,n=Math.min(i,r),o=i-n;return t>o&&(t=o),{activeIndex:t}}),(function(){e.updateSliderPosition();var t=e.getDerivedPropsFromBreakPoint();n(t)}))}))})),k(M(e),"tiltMovement",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:150;e.setState((function(e){return{isSwiping:!0,swipedSliderPosition:t-n}})),setTimeout((function(){e.setState({isSwiping:!1,swipedSliderPosition:0})}),r)})),k(M(e),"convertChildToCbObj",(function(t){var n=e.getDerivedPropsFromBreakPoint().children,r=Math.round(t);return{item:a.Children.toArray(n)[r].props,index:r}})),k(M(e),"getNextItemIndex",(function(t,n){var r=e.getDerivedPropsFromBreakPoint(),o=r.children,i=r.itemsToShow,c=r.itemsToScroll,s=a.Children.toArray(o).length||1,l=n?0:s-i;i>s&&(l=0);var u=n?ge(0,c):he(l,c);return me(t,u)})),k(M(e),"getNextItemObj",(function(t){var n=e.getDerivedPropsFromBreakPoint().children,r=e.state.activeIndex,o=e.getNextItemIndex(r,t),i=Math.round(o);return{item:a.Children.toArray(n)[i].props,index:i}})),k(M(e),"resetSwipe",(function(){e.setState({swipedSliderPosition:0,transitioning:!1,isSwiping:!1})})),k(M(e),"onSwiping",(function(t){var n=t.deltaX,r=t.absX,o=t.deltaY,i=t.absY,c=t.dir;e.setState((function(t){var s=t.childHeight,l=t.activeIndex,u=t.sliderPosition,d=e.getDerivedPropsFromBreakPoint(),f=d.itemsToShow,p=d.verticalMode,m=d.children,h=d.isRTL,g=e.calculateChildWidth(),b=a.Children.toArray(m).length||1,y=!p&&"Left"===c&&!h||!p&&"Right"===c&&h||p&&"Up"===c,v=!p&&"Right"===c&&!h||!p&&"Left"===c&&h||p&&"Down"===c,w="Left"===c||"Right"===c,O="Up"===c||"Down"===c,x=!p,j=0,S=g/2,_=s/2;p?O&&(y?j=b*s-s*l-f*s+_:v&&(j=s*l+_)):w&&(y?j=b*g-g*l-f*g+S:v&&(j=g*l+S));if(!(x&&O||x&&w&&r>j)&&!(p&&w||p&&O&&i>j))return{swipedSliderPosition:w?h?u+n:u-n:u-o,isSwiping:!0,transitioning:!0}}))})),k(M(e),"onSwiped",(function(t){var n=t.absX,r=t.absY,o=t.dir,i=e.state,a=i.childHeight,c=i.activeIndex,s=e.getDerivedPropsFromBreakPoint(),l=s.verticalMode,u=s.isRTL,d=s.itemsToScroll,f=e.calculateChildWidth(),p=e.resetSwipe,m=f/5,h=a/5,g="Left"===o,b="Right"===o,y="Up"===o,v="Down"===o,w=!1;if((l&&(y||v)&&r>h||!l&&(b||g)&&n>m)&&(w=!0),w)if(l){var O=Math.ceil((r-h)/a),x=Math.max(d,O),j=c-x,S=c+x;v&&(p=function(){return e.goTo(j)}),y&&(p=function(){return e.goTo(S)})}else{var _=Math.ceil((n-m)/f),E=Math.max(d,_),k=c-E,C=c+E;u?(g&&(p=function(){return e.goTo(k)}),b&&(p=function(){return e.goTo(C)})):(g&&(p=function(){return e.goTo(C)}),b&&(p=function(){return e.goTo(k)}))}e.setState({isSwiping:!1,transitioning:!1}),p({skipTilt:!0})})),k(M(e),"onNextStart",(function(t){var n=e.getDerivedPropsFromBreakPoint().onNextStart,r=e.state.activeIndex,o=e.getNextItemObj();n(e.convertChildToCbObj(r),o),e.slideNext(t)})),k(M(e),"onPrevStart",(function(t){var n=e.getDerivedPropsFromBreakPoint().onPrevStart,r=e.state.activeIndex,o=e.getNextItemObj(!0);n(e.convertChildToCbObj(r),o),e.slidePrev(t)})),k(M(e),"slideNext",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.skipTilt,r=e.getDerivedPropsFromBreakPoint(),o=r.enableTilt,i=e.state,a=i.activeIndex,c=i.sliderPosition,s=e.getNextItemIndex(a,!1);a!==s?e.goTo(s):o&&!n&&e.tiltMovement(c,20,150)})),k(M(e),"slidePrev",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.skipTilt,r=e.state.activeIndex,o=e.getDerivedPropsFromBreakPoint(),i=o.enableTilt,a=e.getNextItemIndex(r,!0);r!==a?e.goTo(a):i&&!n&&e.tiltMovement(0,-20,150)})),k(M(e),"onNextEnd",(function(){var t=e.getDerivedPropsFromBreakPoint(),n=t.onNextEnd,r=t.onChange,o=e.state,i=o.activeIndex,a=o.activePage,c=e.convertChildToCbObj(i);e.removeSliderTransitionHook(e.onNextEnd),e.setState({transitioning:!1}),r&&r(c,a),n(c,a)})),k(M(e),"onPrevEnd",(function(){var t=e.getDerivedPropsFromBreakPoint(),n=t.onPrevEnd,r=t.onChange,o=e.state,i=o.activeIndex,a=o.activePage,c=e.convertChildToCbObj(i);e.removeSliderTransitionHook(e.onPrevEnd),e.setState({transitioning:!1}),r&&r(c,a),n(c,a)})),k(M(e),"generatePositionUpdater",(function(t,n,r,o){return function(i){var a=i.sliderPosition,c=i.childHeight,s=i.activeIndex,l=e.calculateChildWidth(),u=r?c:l;return T({sliderPosition:t===X.NEXT?a-u*(n-s):a+u*(s-n),activeIndex:n,swipedSliderPosition:0,isSwiping:!1},o)}})),k(M(e),"goTo",(function(t){var n=e.getDerivedPropsFromBreakPoint(),r=n.children,o=n.verticalMode,i=n.itemsToShow,c=e.state.activeIndex,s=a.Children.toArray(r).length,l=Math.max(0,t),u=c>l;if(!(e.getNextItemIndex(c,u)===c)){l+i>=s&&(l=Math.max(0,s-i));var d=X.NEXT,f=e.onNextEnd;u&&(d=X.PREV,f=e.onPrevEnd);var p=e.generatePositionUpdater(d,l,o,{transitioning:!0});e.setState(p,(function(){V(e.updateActivePage(),e.onSliderTransitionEnd(f))}))}})),k(M(e),"getNumOfPages",(function(){var t=e.getDerivedPropsFromBreakPoint(),n=t.children,r=t.itemsToShow,o=a.Children.toArray(n).length,i=Math.max(r,1);return Math.ceil(o/i)||1})),k(M(e),"updateActivePage",(function(){e.setState((function(t){var n=e.getDerivedPropsFromBreakPoint(),r=n.itemsToShow,o=n.children,i=t.activeIndex,c=t.activePage,s=e.getNumOfPages(),l=a.Children.toArray(o).length,u=Math.min(l,r),d=Math.max(u,1),f=Math.ceil(i/d),p=Math.min(s-1,f);if(c!==p)return{activePage:p}}))})),k(M(e),"onIndicatorClick",(function(t){var n=t*e.getDerivedPropsFromBreakPoint().itemsToShow;e.setState({activePage:t}),e.goTo(n)})),e}return E(n,[{key:"componentDidMount",value:function(){this.isComponentMounted=!0,this.initResizeObserver(),this.updateActivePage(),this.setPages()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.enableAutoPlay,o=n.children,i=n.itemsToShow,c=n.itemsToScroll,s=n.breakPoints,l=this.state,u=l.activeIndex,d=l.sliderContainerWidth,f=this.getNextItemIndex(u,!1),p=a.Children.toArray(o).length,m=a.Children.toArray(e.children).length;if(m===p&&e.itemsToShow===i&&e.itemsToScroll===c&&e.breakPoints===s&&d===t.sliderContainerWidth||(this.onContainerResize({contentRect:{width:d}}),this.setPages(),this.updateActivePage()),u===f?this.removeAutoPlay():r&&!this.autoPlayIntervalId?this.setAutoPlay():!r&&this.autoPlayIntervalId&&this.removeAutoPlay(),m!==p){var h=this.getDerivedPropsFromBreakPoint().itemsToShow;u+h>p-1&&this.goTo(Math.max(0,p-h))}}},{key:"componentWillUnmount",value:function(){this.isComponentMounted=!1,this.removeAutoPlay(),this.unSubscribeObserver()}},{key:"render",value:function(){var e=this.state,t=e.activePage,n=e.isSwiping,r=e.sliderPosition,o=e.swipedSliderPosition,i=e.rootHeight,s=e.pages,l=e.activeIndex,u=e.transitionMs,d=this.getDerivedPropsFromBreakPoint(),f=d.className,p=d.style,m=d.itemsToShow,h=d.itemsToScroll,g=d.verticalMode,b=d.isRTL,y=d.easing,v=d.tiltEasing,w=d.children,O=d.focusOnSelect,x=d.autoTabIndexVisibleItems,S=d.itemPosition,_=d.itemPadding,E=d.outerSpacing,k=d.enableSwipe,C=d.enableMouseSwipe,P=d.pagination,T=d.showArrows,I=d.disableArrowsOnEnd,A=d.preventDefaultTouchmoveEvent,D=d.renderArrow,N=d.renderPagination,M=this.calculateChildWidth(),R=this.getNumOfPages(),F=l!==this.getNextItemIndex(l,!0),z=l!==this.getNextItemIndex(l,!1),L=!F&&I,H=!z&&I;return c.a.createElement(se,{isRTL:b,className:"".concat(q("carousel-wrapper")," ").concat(f),style:p},c.a.createElement(ae,{className:q("carousel"),size:{height:i}},c.a.createElement(j,{when:T},D?D({type:X.PREV,onClick:this.onPrevStart,isEdge:!F}):c.a.createElement(pe,{onClick:this.onPrevStart,direction:g?pe.up:pe.left,disabled:L})),c.a.createElement(J,{className:q("slider-container"),ref:this.setRef("sliderContainer")},c.a.createElement(oe,{verticalMode:g,isRTL:b,easing:y,sliderPosition:r,swipedSliderPosition:o,isSwiping:n,transitionMs:u,tiltEasing:v,className:q("slider"),ref:this.setRef("slider"),outerSpacing:E},c.a.createElement(ue,{verticalMode:g,children:a.Children.toArray(w),childWidth:M,currentItem:l,autoTabIndexVisibleItems:x,itemsToShow:m,itemsToScroll:h,itemPosition:S,itemPadding:_,enableSwipe:k,enableMouseSwipe:C,preventDefaultTouchmoveEvent:A,onSwiped:this.onSwiped,onSwiping:this.onSwiping,onItemClick:O?this.goTo:void 0}))),c.a.createElement(j,{when:T},D?D({type:X.NEXT,onClick:this.onNextStart,isEdge:!z}):c.a.createElement(pe,{onClick:this.onNextStart,direction:g?pe.down:pe.right,disabled:H}))),c.a.createElement(j,{when:P},N?N({pages:s,activePage:t,onClick:this.onIndicatorClick}):c.a.createElement(xe,{numOfPages:R,activePage:t,onClick:this.onIndicatorClick})))}}]),n}(c.a.Component);je.defaultProps={className:"",style:{},verticalMode:!1,isRTL:!1,initialFirstItem:0,initialActiveIndex:0,showArrows:!0,showEmptySlots:!1,disableArrowsOnEnd:!0,pagination:!0,easing:"ease",tiltEasing:"ease",transitionMs:500,enableTilt:!0,enableSwipe:!0,enableMouseSwipe:!0,preventDefaultTouchmoveEvent:!1,focusOnSelect:!1,autoTabIndexVisibleItems:!0,itemsToShow:1,itemsToScroll:1,itemPosition:X.CENTER,itemPadding:[0,0,0,0],outerSpacing:0,enableAutoPlay:!1,autoPlaySpeed:2e3,onChange:W,onNextEnd:W,onPrevEnd:W,onNextStart:W,onPrevStart:W,onResize:W},je.propTypes={children:i.a.node.isRequired,className:i.a.string,style:i.a.object,verticalMode:i.a.bool,isRTL:i.a.bool,pagination:i.a.bool,transitionMs:i.a.number,easing:i.a.string,tiltEasing:i.a.string,enableTilt:i.a.bool,itemsToShow:i.a.number,itemsToScroll:i.a.number,breakPoints:i.a.arrayOf(i.a.shape({width:i.a.number.isRequired,itemsToShow:i.a.number,itemsToScroll:i.a.number})),initialActiveIndex:i.a.number,initialFirstItem:i.a.number,showArrows:i.a.bool,showEmptySlots:i.a.bool,disableArrowsOnEnd:i.a.bool,focusOnSelect:i.a.bool,autoTabIndexVisibleItems:i.a.bool,renderArrow:i.a.func,renderPagination:i.a.func,itemPosition:i.a.oneOf([X.START,X.CENTER,X.END]),itemPadding:i.a.array,outerSpacing:i.a.number,enableSwipe:i.a.bool,enableMouseSwipe:i.a.bool,preventDefaultTouchmoveEvent:i.a.bool,enableAutoPlay:i.a.bool,autoPlaySpeed:i.a.number,onChange:i.a.func,onNextStart:i.a.func,onPrevStart:i.a.func,onNextEnd:i.a.func,onPrevEnd:i.a.func,onResize:i.a.func};t.default=je}]));
|
|
17
17
|
//# sourceMappingURL=article.react.bundle.js.map
|