1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7226],{7226:(e,t,n)=>{n.d(t,{A:()=>I});var a=n(66352),r=n(95132),i=n(48172),l=n(3075),o=n.n(l),s=n(56625),d=n(89615),c=n(41566);let u=o()(()=>Promise.all([n.e(8597),n.e(2091)]).then(n.bind(n,64472)),{loadableGenerated:{webpack:()=>[64472]}}),p=({data:e,menus:t})=>{let{push:n,query:i}=(0,d.useRouter)();return((0,r.useEffect)(()=>{if(e?.data?.type==="redirect"){let t=e.data.destination;if(void 0!==i.preview&&i.domain){let e=t.startsWith("http"),a=e?new URL(t):new URL(t,"http://localhost");a.searchParams.set("domain",i.domain),a.searchParams.set("preview",""),i.previewMode&&a.searchParams.set("previewMode",i.previewMode),n(e?a.toString():a.pathname+a.search)}else n(t)}e?.data?.type==="NOT_FOUND"&&n("/"),"err"===e&&n("/"),e||n("/")},[e,n,i.domain,i.preview,i.previewMode]),e?.data.type==="section")?(0,a.jsx)(c.L8,{config:e.addConfig,children:(0,a.jsx)(u,{menus:t,data:e})}):e?.data?.type==="topic"||e?.data.type==="author"?(0,a.jsx)(u,{menus:t,data:e}):null},f=o()(()=>Promise.all([n.e(8597),n.e(5618),n.e(5771)]).then(n.bind(n,55771)),{loadableGenerated:{webpack:()=>[55771]}}),m=({data:e,menus:t})=>{if(e?.data?.type==="article"){let n=e.data.extra.isDisableAllAds;return(0,a.jsx)(c.L8,{disableAllAds:n,config:e.addConfig,children:(0,a.jsx)(f,{menus:t,article:e})})}return null};var x=n(43591),g=n(59085);let h=[1,8],v="https://u3wfofa5j7e36crifvabwovrea0sbflx.lambda-url.eu-west-1.on.aws/";function w(){return"u">typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function _(e,t){let n;try{n=new URL(e,t)}catch{return null}if(n.origin!==t)return null;let a=n.pathname.replace(/\/$/,"").match(/-(\d+)$/);return a?a[1]:null}function y(e,t){let n=[],a=new Set;return e.querySelectorAll("a[href]").forEach(function(e){if(e.closest("[data-slot-ignore]"))return;let r=_(e.href,t);!r||a.has(r)||(a.add(r),n.push({id:r,el:e}))}),n}function b(e){let t=e.getAttribute("data-slot-component");if(!t)return;let n=e.getAttribute("data-slot-cindex")??"0";return`${t}-${n}`}let S=({articleId:e})=>{let{publication:t}=(0,r.useContext)(g.I),[n,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e,t;if(!v)return;let n=(t,n)=>{if(!n||!t||"tcloaded"!==t.eventStatus&&"useractioncomplete"!==t.eventStatus)return;e=t.listenerId;let r=t.purpose?.consents??{};a(h.every(e=>r[e]))},r=()=>!!window.__tcfapi&&(window.__tcfapi("addEventListener",2,n),!0);if(!r()){let e=0;t=setInterval(()=>{(r()||++e>50)&&clearInterval(t)},100)}return()=>{t&&clearInterval(t),null!=e&&window.__tcfapi&&window.__tcfapi("removeEventListener",2,()=>{},e)}},[]),(0,r.useEffect)(()=>{if(n&&v&&e&&t)return function(e){let{url:t,clientId:n,articleId:a}=e;if(!t||!n||!a)return()=>{};let r=sessionStorage.getItem("bs_sid")||w();sessionStorage.setItem("bs_sid",r);let i=navigator.userAgent,l=/tablet|ipad|playbook|silk/i.test(i)?"tablet":/mobile|iphone|ipod|android|blackberry|iemobile|opera mini/i.test(i)?"mobile":"desktop",o=localStorage.getItem("bs_rid"),s=o||w();o||localStorage.setItem("bs_rid",s);let d=!o,c=new Date,u=`${c.getFullYear()}-${String(c.getMonth()+1).padStart(2,"0")}-${String(c.getDate()).padStart(2,"0")}`,p=localStorage.getItem("bs_last_seen")!==u;p&&localStorage.setItem("bs_last_seen",u);let f=0,m=function(){let{scrollTop:e,scrollHeight:t,clientHeight:n}=document.documentElement,a=t-n;a>0&&(f=Math.max(f,Math.min(100,Math.round(e/a*100))))};window.addEventListener("scroll",m,{passive:!0}),m();let x=function(){document.hidden||navigator.sendBeacon(t,JSON.stringify({article_id:a,session_id:r,reader_id:s,is_new_reader:d,is_first_today:p,device:l,referrer:document.referrer,scroll_pct:f,client_id:n}))};x();let g=setInterval(x,3e4),h=function(e){let i,l=e.target;for(;l&&"A"!==l.tagName;)l=l.parentElement;let o=l;if(!o?.href)return;let d=_(o.href,window.location.origin);if(!d)return;let c=o.closest("[data-slot-ignore]")?null:o.closest("[data-slot-component]");if(c){let e=y(c,window.location.origin).findIndex(e=>e.id===d);e>=0&&(i=String(e))}navigator.sendBeacon(t,JSON.stringify({article_id:a,session_id:r,reader_id:s,client_id:n,event_type:"click",clicked_article_id:d,slot_component:c?b(c):void 0,slot_index:i}))};document.addEventListener("click",h,{passive:!0,capture:!0});let v=null,S=null;if("u">typeof IntersectionObserver){let e=[],i=function(){if(S=null,!e.length)return;let i=e;e=[],navigator.sendBeacon(t,JSON.stringify({article_id:a,session_id:r,client_id:n,event_type:"impression",slots:i}))},l=new Map;v=new IntersectionObserver(function(t){for(let n of t){if(!n.isIntersecting||n.intersectionRatio<.5)continue;let t=l.get(n.target);t&&(l.delete(n.target),v?.unobserve(n.target),e.push({component:t.component,index:t.index}),S||(S=setTimeout(i,1e3)))}},{threshold:.5}),document.querySelectorAll("[data-slot-component]").forEach(function(e){let t=b(e);
1t&&y(e,window.location.origin).forEach(function(e,n){l.set(e.el,{component:t,index:String(n)}),v?.observe(e.el)})})}return function(){clearInterval(g),window.removeEventListener("scroll",m),document.removeEventListener("click",h,{capture:!0}),v&&v.disconnect(),S&&clearTimeout(S)}}({url:v,clientId:t,articleId:e})},[n,e,t]),null};o()(()=>Promise.all([n.e(8597),n.e(2091)]).then(n.bind(n,64472)),{loadableGenerated:{webpack:()=>[64472]}}),o()(()=>Promise.all([n.e(8597),n.e(5618),n.e(5771)]).then(n.bind(n,55771)),{loadableGenerated:{webpack:()=>[55771]}});let I=({data:e,menus:t})=>{var n;let{setDataLayer:l}=(0,r.useContext)(x.D);return((0,r.useEffect)(()=>{if(!e?.data)return;let{type:t,sections:n,section:a,authors:r,topics:i,publish:o}=e.data;l?.(()=>({page_type:"article"===t?"article":"non-article",section:a?.name||(n&&n.length>0?n[0].name:void 0),author:Array.isArray(r)?r.map(({name:e})=>e).join(", "):void 0,keywords:Array.isArray(i)?i.map(({name:e})=>e).join(", "):void 0,publish_date:o?new Date(1e3*o).toISOString():void 0,paywall:!1}))},[e,l]),e)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S,{articleId:(n=e.data)?"article"===n.type&&null!=n.id&&""!==n.id?String(n.id):n.path??null:null}),e.data?.articleTypes&&e.data?.articleTypes[0]?.name==="Service"?(0,a.jsx)(s.A,{article:e,menus:t}):e?.data?.type==="redirect"?(0,a.jsx)(i.A,{destination:e?.data?.destination}):e?.data?.type==="topic"||e?.data?.type==="section"||e?.data?.type==="author"?(0,a.jsx)(p,{menus:t,data:e}):e?.data?.type==="article"?(0,a.jsx)(m,{menus:t,data:e}):(0,a.jsx)(i.A,{destination:"/"})]}):(0,a.jsx)(i.A,{destination:"/"})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.