-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug: https://github.com/guardian/actions-riff-raff/pull/191 #604
Conversation
@@ -0,0 +1,2 @@ | |||
"use strict";(self.webpackChunk_guardian_dotcom_rendering=self.webpackChunk_guardian_dotcom_rendering||[]).push([[3577],{53348:(e,n,t)=>{t.r(n),t.d(n,{Dropdown:()=>D});var r=t(22820),o=t(50484),i=t(24017),a=t(65656),c=t(81477),s=t(71653),d=t(50641),l=t(72657),u=t(67400),p=t(85918),f=t(24755),m=t(88528),x=t(95131),v=t(7693);function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var h=(0,i.css)("z-index:",(0,f.f)("dropdown"),";list-style:none;li::before{content:'\\200B';display:block;height:0;width:0;}background-color:white;padding:6px 0;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.1);",c.TG.tablet,"{position:fixed;border-radius:0;top:32px;left:0;right:0;width:auto;max-height:calc(100% - 50px);overflow:auto;}",c.HT.tablet,"{position:absolute;top:100%;width:200px;border-radius:3px;}"),b={name:"bjn8wh",styles:"position:relative"},y={name:"4zleql",styles:"display:block"},w={name:"eivff4",styles:"display:none"},k=(0,i.css)(s.PSs,";color:",d.M.neutral[7],";transition:color 80ms ease-out;margin:-1px 0 0 0;text-decoration:none;display:flex;align-items:flex-start;justify-content:space-between;padding:10px 18px 15px 30px;:hover{background-color:",d.M.neutral[93],";text-decoration:none;}:focus{text-decoration:underline;}:before{content:'';border-top:1px solid ",d.M.neutral[86],";display:block;position:absolute;top:0px;left:30px;right:0px;}"),A=(0,i.css)("font-weight:bold;:after{content:'';border:2px solid ",d.M.news[400],";border-top:0px;border-right:0px;position:absolute;top:19px;left:12px;width:10px;height:4px;transform:rotate(-45deg);}"),j={name:"1mx8uxy",styles:":before{content:none;}"},I=(0,i.css)(s.NA0,";display:block;cursor:pointer;background:none;border:none;line-height:1.2;color:",d.M.neutral[100],";transition:color 80ms ease-out;padding:0px 10px 6px 5px;margin:1px 0 0;text-decoration:none;position:relative;:hover{color:",d.M.brandAlt[400],";:after{transform:translateY(0) rotate(45deg);}}:after{content:'';display:inline-block;width:5px;height:5px;transform:translateY(-2px) rotate(45deg);border:1px solid currentColor;border-left:transparent;border-top:transparent;margin-left:5px;vertical-align:middle;transition:transform 250ms ease-out;}"),E={name:"1baa2f8",styles:":hover:after{transform:translateY(-1px) rotate(-135deg);}:after{transform:translateY(1px) rotate(-135deg);}"},T=d.M.error[400],C=(0,i.css)("background-color:",T,";color:",d.M.neutral[100],";text-align:center;display:flex;justify-content:center;align-items:center;",s.WuG,";line-height:1;flex-shrink:0;"),S={name:"1l2bf3g",styles:"position:absolute;top:0;left:0;margin-left:-10px;margin-top:-3px"},M=(0,i.css)(s.Ikj,";"),H=function(e){var n=e.diameter;return(0,o.jsx)("div",{css:C,style:{width:"".concat(n,"px"),height:"".concat(n,"px"),borderRadius:"".concat(n,"px")},children:(0,o.jsx)("span",{children:"!"})})},L=function(e){var n=e.notification.message;return(0,o.jsx)("div",{css:M,children:n})},N=function(e){var n,t=e.link,i=e.index,c=(0,u.useMemo)((function(){return function(e){if(e.notifications&&e.notifications.length>0)return{componentType:"RETENTION_HEADER",id:e.id,labels:e.notifications.map((function(e){return e.ophanLabel}))}}(t)}),[t]),s=(0,v.U)().renderingTarget,d=(0,m.E)({debounce:!0}),l=(0,r.A)(d,2),f=l[0],h=l[1],y=(0,u.useState)(!1),w=(0,r.A)(y,2),I=w[0],E=w[1];(0,u.useEffect)((function(){if(f&&c&&t.notifications&&t.notifications.length>0&&!I){E(!0);var e,n=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return g(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);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(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}(t.notifications);try{for(n.s();!(e=n.n()).done;){var r,o=e.value;null===(r=o.logImpression)||void 0===r||r.call(o)}}catch(e){n.e(e)}finally{n.f()}(0,p.u_)({component:c,action:"VIEW"},s)}}),[f,c,t.notifications,I,t.id,s]),(0,x.H)((function(){c&&(0,p.u_)({component:c,action:"INSERT"},s)}),[c]);var T=c?function(e,n){var t=encodeURIComponent(JSON.stringify({source:"GUARDIAN_WEB",componentId:n.id,componentType:n.componentType,campaignCode:n.id,referrerPageviewId:window.guardian.config.ophan.pageViewId,referrerUrl:window.location.origin+window.location.pathname,labels:n.labels})),r=e.includes("?")?"&":"?";return"".concat(e).concat(r,"acquisitionData=").concat(t)}(t.url,c):t.url,C=!(0,a.b)(t.notifications)&&t.notifications.length>0;return(0,o.jsx)("li",{css:b,ref:h,children:(0,o.jsxs)("a",{href:T,css:[k,!!t.isActive&&A,0===i&&j],"data-link-name":t.dataLinkName,onClick:function(){c&&(0,p.u_)({component:c,action:"CLICK"},s)},children:[(0,o.jsxs)("div",{children:[t.title,null===(n=t.notifications)||void 0===n?void 0:n.map((function(e){return(0,o.jsx)(L,{notification:e},e.id)}))]}),C&&(0,o.jsx)(H,{diameter:22})]})},t.title)},D=function(e){var n=e.id,t=e.label,a=e.links,c=e.dataLinkName,s=e.cssOverrides,d=e.children,p=(0,u.useState)(!1),f=(0,r.A)(p,2),m=f[0],x=f[1],v=(0,u.useState)(!0),g=(0,r.A)(v,2),b=g[0],T=g[1],C=(0,u.useState)(null),M=(0,r.A)(C,2),L=M[0],D=M[1];(0,u.useEffect)((function(){T(!1)}),[]),(0,u.useEffect)((function(){var e=function(e){m&&"Escape"===e.code&&x(!1)};return document.addEventListener("keydown",e,!1),function(){return document.removeEventListener("keydown",e)}}),[m]),(0,u.useEffect)((function(){if(m&&L){var e=function(e){L!==e.target&&(e.stopPropagation(),x(!1))};return document.addEventListener("click",e,!1),function(){return document.removeEventListener("click",e)}}}),[m,L]);var _="dropbox-id-".concat(n),O="checkbox-id-".concat(n),R=function(e){return e.reduce((function(e,n){var t,r;return e+(null!==(t=null===(r=n.notifications)||void 0===r?void 0:r.length)&&void 0!==t?t:0)}),0)}(a);return(0,o.jsx)(o.Fragment,{children:b?(0,o.jsxs)("div",{css:(0,i.css)("#".concat(O),"{",l.Q,";}","#".concat(_),"{display:none;}","#".concat(O),":checked+","#".concat(_),"{display:block;}"),children:[(0,o.jsx)("label",{htmlFor:O,css:[I,s],children:t}),(0,o.jsx)("input",{type:"checkbox",id:O,"aria-checked":"false",tabIndex:-1}),(0,o.jsx)("ul",{id:_,css:[h,s],children:a.map((function(e,n){return(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:e.url,css:[k,!!e.isActive&&A,0===n&&j],"data-link-name":e.dataLinkName,children:e.title})},e.title)}))})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("button",{onClick:function(){x(!m)},css:[I,s,m&&E],"aria-expanded":m?"true":"false","data-link-name":c,"data-testid":"dropdown-button",type:"button",ref:D,children:[t,R>0&&(0,o.jsx)("div",{css:S,children:(0,o.jsx)(H,{diameter:18})})]}),(0,o.jsx)("div",{css:m?y:w,children:d?(0,o.jsx)(o.Fragment,{children:d}):(0,o.jsx)("ul",{css:[h,s],"data-testid":"dropdown-options",children:a.map((function(e,n){return(0,o.jsx)(N,{link:e,index:n},e.id)}))})})]})})}},41183:(e,n,t)=>{t.d(n,{xA:()=>c});var r=t(24017),o=t(81477),i=(0,r.css)("display:grid;grid-auto-rows:auto;grid-template-columns:[viewport-start] 0 [content-start main-column-start] repeat(4, minmax(0, 1fr)) [content-end main-column-end] 0 [viewport-end];column-gap:10px;",o.HT.mobileLandscape,"{column-gap:20px;}",o.HT.tablet,"{grid-template-columns:[viewport-start] minmax(0, 1fr) [content-start main-column-start] repeat(12, 40px) [content-end main-column-end] minmax(0, 1fr) [viewport-end];}",o.HT.desktop,"{grid-template-columns:[viewport-start] minmax(0, 1fr) [content-start main-column-start] repeat(12, 60px) [content-end main-column-end] minmax(0, 1fr) [viewport-end];}"),a=(0,r.css)(o.HT.leftCol,"{grid-template-columns:[viewport-start] minmax(0, 1fr) [content-start left-column-start] repeat(2, 60px) [left-column-end main-column-start] repeat(12, 60px) [content-end main-column-end] minmax(0, 1fr) [viewport-end];}",o.HT.wide,"{grid-template-columns:[viewport-start] minmax(0, 1fr) [content-start left-column-start] repeat(3, 60px) [left-column-end main-column-start] repeat(12, 60px) [main-column-end] repeat(1, 60px) [content-end] minmax(0, 1fr) [viewport-end];}"),c=function(e){var n=e.type,t=void 0===n?"div":n,o=e.style,c=e.hasPageSkin,s=e.children;return(0,r.jsx)(t,{css:[i,!c&&a],style:o},s)};o.HT.leftCol,o.HT.leftCol},64241:(e,n,t)=>{t.d(n,{r:()=>o});var r=t(94568),o=function(e){var n=e.base,t=e.componentType,o=e.componentId,i=e.campaignCode,a=e.abTest,c=e.pageViewId,s=e.referrerUrl;if(n.search(/(support.theguardian.com)(\/[a-z]*)?\/(contribute|subscribe)/)>=0){var d={source:"GUARDIAN_WEB",componentId:o,componentType:t,campaignCode:i,abTest:a,referrerPageviewId:c,referrerUrl:s},l={REFPVID:c,INTCMP:i,acquisitionData:JSON.stringify(d)};return"".concat(n).concat(n.includes("?")?"&":"?").concat((0,r.G)(l))}return n}},24755:(e,n,t)=>{t.d(n,{f:()=>o});var r=["lightbox","youTubeFullscreen","sticky-video-button","sticky-video","banner","dropdown","burger","mastheadVeggieBurgerExpandedMobile","expanded-veggie-menu-wrapper","expanded-veggie-menu","fullPageInteractiveHeaderWrapper","mobileSticky","stickyAdWrapperLabsHeader","stickyAdWrapper","stickyAdWrapperNav","mastheadMyAccountDropdown","mastheadEditionDropdown","editionDropdown","summaryDetails","toast","onwardsCarousel","myAccountDropdown","searchHeaderLink","TheGuardian","editionSwitcherBanner","expandableMarketingCardOverlay","tableOfContents","articleHeadline","immersiveBlackBox","bodyArea","rightColumnArea","mainMedia","card-nested-link","card-link"],o=function(e){var n=r.indexOf(e);return-1===n?-1:r.length-n}},80971:(e,n,t)=>{t.d(n,{K:()=>r});var r=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.join(" : ")}},94568:(e,n,t)=>{t.d(n,{G:()=>r});var r=function(e){return Object.keys(e).map((function(n){var t,r=null!==(t=e[n])&&void 0!==t?t:"undefined",o=Array.isArray(r)?r.map((function(e){return encodeURIComponent(e)})).join(","):encodeURIComponent(r);return"".concat(n,"=").concat(o)})).join("&")}},88528:(e,n,t)=>{t.d(n,{E:()=>c});var r=t(22820),o=t(44165),i=t.n(o),a=t(67400),c=function(e){var n,t=(0,a.useState)(!1),o=(0,r.A)(t,2),c=o[0],s=o[1],d=(0,a.useState)(null!==(n=e.node)&&void 0!==n?n:null),l=(0,r.A)(d,2),u=l[0],p=l[1],f=(0,a.useRef)(null),m=(0,a.useCallback)((function(n){var t=(0,r.A)(n,1)[0];t&&(t.isIntersecting?s(!0):e.repeat&&s(!1))}),[e.repeat]),x=e.debounce?i()(m,200):m;return(0,a.useEffect)((function(){e.node&&p(e.node)}),[e.node]),(0,a.useEffect)((function(){if(u&&"IntersectionObserver"in window)return f.current=new window.IntersectionObserver(x,e),f.current.observe(u),function(){var e;return null===(e=f.current)||void 0===e?void 0:e.disconnect()}}),[u,e,x]),(0,a.useEffect)((function(){var n;!e.repeat&&c&&(null===(n=f.current)||void 0===n||n.disconnect())}),[c,e.repeat]),[c,p]}},95131:(e,n,t)=>{t.d(n,{H:()=>a});var r=t(22820),o=t(65656),i=t(67400),a=function(e,n){var t=(0,i.useState)(!1),a=(0,r.A)(t,2),c=a[0],s=a[1],d=n.every((function(e){return!(0,o.b)(e)}));(0,i.useEffect)((function(){!c&&d&&(e(),s(!0))}),[c,d,e])}},78561:(e,n,t)=>{t.d(n,{L:()=>a});var r=t(22820),o=t(67400),i=t(85918),a=function(e){var n=(0,o.useState)(),t=(0,r.A)(n,2),a=t[0],c=t[1];return(0,o.useEffect)((function(){(0,i.V5)(e).then((function(e){var n=e.pageViewId;c(n)})).catch((function(){c("no-page-view-id-available")}))}),[e]),a}},1954:(e,n,t)=>{t.d(n,{M:()=>r});var r=function(e){return"var(".concat(e,")")}}}]); |
Check failure
Code scanning / CodeQL
Incomplete regular expression for hostnames High
Copilot Autofix AI 17 days ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
@@ -0,0 +1,2 @@ | |||
"use strict";(self.webpackChunk_guardian_dotcom_rendering=self.webpackChunk_guardian_dotcom_rendering||[]).push([[5307],{53419:(t,n,e)=>{e.d(n,{xA:()=>p});var r=e(24017),i=e(99923);function o(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function s(){const t=o(["\n\tdisplay: grid;\n\tgrid-auto-rows: auto;\n\n\tgrid-template-columns:\n\t\t[viewport-start]\n\t\t0\n\t\t[content-start main-column-start]\n\t\trepeat(4, minmax(0, 1fr))\n\t\t[content-end main-column-end]\n\t\t0\n\t\t[viewport-end];\n\n\tcolumn-gap: 10px;\n\n\t"," {\n\t\tcolumn-gap: 20px;\n\t}\n\n\t"," {\n\t\tgrid-template-columns:\n\t\t\t[viewport-start]\n\t\t\tminmax(0, 1fr)\n\t\t\t[content-start main-column-start]\n\t\t\trepeat(12, 40px)\n\t\t\t[content-end main-column-end]\n\t\t\tminmax(0, 1fr)\n\t\t\t[viewport-end];\n\t}\n\n\t"," {\n\t\tgrid-template-columns:\n\t\t\t[viewport-start]\n\t\t\tminmax(0, 1fr)\n\t\t\t[content-start main-column-start]\n\t\t\trepeat(12, 60px)\n\t\t\t[content-end main-column-end]\n\t\t\tminmax(0, 1fr)\n\t\t\t[viewport-end];\n\t}\n"]);return s=function(){return t},t}function a(){const t=o(["\n\t"," {\n\t\tgrid-template-columns:\n\t\t\t[viewport-start]\n\t\t\tminmax(0, 1fr)\n\t\t\t[content-start left-column-start]\n\t\t\trepeat(2, 60px)\n\t\t\t[left-column-end main-column-start]\n\t\t\trepeat(12, 60px)\n\t\t\t[content-end main-column-end]\n\t\t\tminmax(0, 1fr)\n\t\t\t[viewport-end];\n\t}\n\n\t"," {\n\t\tgrid-template-columns:\n\t\t\t[viewport-start]\n\t\t\tminmax(0, 1fr)\n\t\t\t[content-start left-column-start]\n\t\t\trepeat(3, 60px)\n\t\t\t[left-column-end main-column-start]\n\t\t\trepeat(12, 60px)\n\t\t\t[main-column-end]\n\t\t\trepeat(1, 60px)\n\t\t\t[content-end]\n\t\t\tminmax(0, 1fr)\n\t\t\t[viewport-end];\n\t}\n"]);return a=function(){return t},t}function c(){const t=o(["\n\tdisplay: none;\n\t"," {\n\t\tdisplay: block;\n\t}\n"]);return c=function(){return t},t}function l(){const t=o(["\n\tdisplay: none;\n\t"," {\n\t\tdisplay: block;\n\t}\n"]);return l=function(){return t},t}const d=(0,r.css)(s(),i.HT.mobileLandscape,i.HT.tablet,i.HT.desktop),u=(0,r.css)(a(),i.HT.leftCol,i.HT.wide),p=t=>{let{type:n="div",style:e,hasPageSkin:i,children:o}=t;return(0,r.jsx)(n,{css:[d,!i&&u],style:e},o)};(0,r.css)(c(),i.HT.leftCol),(0,r.css)(l(),i.HT.leftCol)},94573:(t,n,e)=>{e.r(n),e.d(n,{Titlepiece:()=>Or});var r=e(50484),i=e(24017),o=e(99923),s=e(96378),a=e(7351),c=e(70991),l=e(33151),d=e(66023),u=e(53694);const p="header-nav-input-checkbox",f="header-veggie-burger",h="header-expanded-menu-root",g=108,m=125,b=136,x="10px",v="".concat(s.x[5],"px");var w=e(54163),k=e(82871),y=e(93937);function T(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function j(){const t=T(["\n\tz-index: ",";\n\tdisplay: flex;\n\t/** Required to absolutely position the dropdown menu */\n\tposition: relative;\n\tcolor: ",";\n\t","\n\tmargin-top: ","px;\n\n\tul {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: unset;\n\t\tmax-height: unset;\n\t\tmin-width: 200px;\n\n\t\t"," {\n\t\t\tleft: unset;\n\t\t\tright: 0;\n\t\t}\n\t}\n"]);return j=function(){return t},t}function O(){const t=T(["\n\t"," {\n\t\tul {\n\t\t\tposition: absolute;\n\t\t\tleft: 0;\n\t\t\tright: unset;\n\t\t\ttop: ","px;\n\t\t\tmax-height: unset;\n\t\t\tmin-width: 200px;\n\t\t}\n\t}\n"]);return O=function(){return t},t}function I(){const t=T(["\n\t\tpadding: 0;\n\t\tmargin-top: 0;\n\t"]);return I=function(){return t},t}function S(){const t=T(["\n\t","\n\t"," {\n\t\t","\n\t}\n\tcolor: ",";\n\tpadding: 6px 0 0 0;\n\tmargin-top: ","px;\n\n\t&:not(ul):hover {\n\t\tcolor: ",";\n\t\ttext-decoration: underline;\n\t}\n\n\t","\n"]);return S=function(){return t},t}const M=(0,i.css)(j(),(0,k.f)("mastheadEditionDropdown"),(0,u.M)("--masthead-nav-link-text"),a.NA0,s.x[1],o.HT.mobileMedium),H=(0,i.css)(O(),o.TG.tablet,s.x[6]),P=t=>(0,i.css)(S(),a.WuG,o.HT.leftCol,a.NA0,(0,u.M)("--masthead-nav-link-text"),s.x[1],(0,u.M)("--masthead-nav-link-text"),t&&(0,i.css)(I())),L=t=>{let{editionId:n,dataLinkName:e,showCurrentEdition:i=!0,showSlimNav:o=!1}=t;const s=t=>({id:t.editionId,url:t.url,title:t.longTitle,shortTitle:t.shortTitle,dataLinkName:(0,l.K)("header","titlepiece","edition-picker: ".concat(t.editionId)),isActive:n===t.editionId}),a=s((0,w.iR)(n)),c=[a,...w.T$.map(s).filter((t=>{let{isActive:n}=t;return!n}))];var d;const u=i?null!==(d=a.shortTitle)&&void 0!==d?d:a.id:"Edition";return(0,r.jsx)("div",{css:[M,o&&H],children:(0,r.jsx)(y.Dropdown,{label:u,links:c,id:"masthead-edition",dataLinkName:e,cssOverrides:P(o)})})};var C=e(3959);function E(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function z(){const t=E(["\n\tlist-style: none;\n\t/* https://developer.mozilla.org/en-US/docs/Web/CSS/list-style#accessibility_concerns */\n\t/* Needs double escape char: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#es2018_revision_of_illegal_escape_sequences */\n\t&::before {\n\t\tcontent: '\\200B'; /* Zero width space */\n\t\tdisplay: block;\n\t\theight: 0;\n\t\twidth: 0;\n\t}\n"],["\n\tlist-style: none;\n\t/* https://developer.mozilla.org/en-US/docs/Web/CSS/list-style#accessibility_concerns */\n\t/* Needs double escape char: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#es2018_revision_of_illegal_escape_sequences */\n\t&::before {\n\t\tcontent: '\\\\200B'; /* Zero width space */\n\t\tdisplay: block;\n\t\theight: 0;\n\t\twidth: 0;\n\t}\n"]);return z=function(){return t},t}function N(){const t=E(["\n\t"," {\n\t\tdisplay: none;\n\t}\n"]);return N=function(){return t},t}function A(){const t=E(["\n\tposition: relative;\n\tdisplay: inline-block;\n\ttext-align: left;\n\tbox-sizing: border-box;\n\tborder: 0;\n\toutline: none;\n\tcursor: pointer;\n\twidth: 100%;\n\tcolor: ",";\n\ttext-decoration: none;\n\tpadding: ","px ","px ","px ","px;\n\n\t> * {\n\t\tpointer-events: none;\n\t}\n\n\t"," {\n\t\tpadding-left: 60px;\n\t}\n\n\t"," {\n\t\tpadding: 6px 0;\n\t}\n\n\t:hover,\n\t:focus {\n\t\tcolor: ",";\n\t}\n"]);return A=function(){return t},t}const D=(0,i.css)(z()),B=(0,i.css)(N(),o.HT.desktop),_=(0,i.css)(A(),(0,u.M)("--masthead-nav-link-text"),s.x[2],s.x[8],s.x[2],s.x[12],o.HT.tablet,o.HT.desktop,(0,u.M)("--masthead-nav-link-text-hover"));function R(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function U(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function G(){const t=U(["\n\t"," {\n\t\tdisplay: none;\n\t}\n"]);return G=function(){return t},t}function K(){const t=U(["\n\t",";\n\t",";\n\tmargin: 0;\n\tpadding-bottom: 10px;\n\tposition: relative;\n\n\t/* Remove the border from the top item on mobile */\n\t:first-of-type:after {\n\t\tcontent: none;\n\t}\n\n\t"," {\n\t\twidth: ","px;\n\t\tfloat: left;\n\t\tposition: relative;\n\n\t\t:after {\n\t\t\tcontent: none;\n\t\t}\n\t}\n"]);return K=function(){return t},t}function F(){const t=U(["\n\t"," {\n\t\twidth: ","px;\n\t}\n\t"," {\n\t\twidth: ","px;\n\t}\n"]);return F=function(){return t},t}function V(){const t=U(["\n\t"," {\n\t\t:before {\n\t\t\tcontent: '';\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\tright: 0;\n\t\t\ttop: 0;\n\t\t\tbottom: 0;\n\t\t\twidth: 1px;\n\t\t\theight: auto;\n\t\t\tbackground-color: ",";\n\t\t}\n\t}\n"]);return V=function(){return t},t}function Q(){const t=U(["\n\t"," {\n\t\t:after {\n\t\t\tcontent: '';\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\tright: 0;\n\t\t\ttop: 0;\n\t\t\tbottom: 0;\n\t\t\tleft: 0;\n\t\t\twidth: 1px;\n\t\t\theight: auto;\n\t\t\tbackground-color: ",";\n\t\t}\n\t}\n"]);return Q=function(){return t},t}function W(){const t=U(["\n\t",";\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\t",";\n\tmargin: 0;\n\tpadding: 0 0 ","px;\n\tposition: relative;\n\t"," {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex-wrap: nowrap;\n\t\torder: 1;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t\tpadding: 0 ","px;\n\t}\n"]);return W=function(){return t},t}function J(){const t=U(["\n\t",";\n\t",";\n\n\t:hover,\n\t:focus {\n\t\ttext-decoration: underline;\n\t}\n"]);return J=function(){return t},t}function $(){const t=U(["\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\tposition: relative;\n\twidth: 100%;\n\t"," {\n\t\tdisplay: list-item;\n\t}\n"]);return $=function(){return t},t}const q=(0,i.css)(G(),o.HT.desktop),Y=(0,i.css)(K(),a.NA0,D,o.HT.desktop,g),Z=(0,i.css)(F(),o.HT.leftCol,m,o.HT.wide,b),X=(0,i.css)(V(),o.HT.desktop,(0,u.M)("--masthead-nav-lines")),tt=(0,i.css)(Q(),o.HT.desktop,(0,u.M)("--masthead-nav-lines")),nt=(0,i.css)(W(),a.NA0,D,s.x[3],o.HT.desktop,s.x[2]),et=(0,i.css)(J(),_,a.PSs),rt=(0,i.css)($(),o.HT.desktop),it=t=>{let{otherLinks:n,brandExtensions:e,hasPageSkin:i}=t;const o=[...e.map((t=>{return n=function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){R(t,n,e[n])}))}return t}({},t),e=null!=(e={mobileOnly:!0})?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):function(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e.push.apply(e,r)}return e}(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})),n;var n,e})),...n];return(0,r.jsx)("li",{css:[Y,!i&&Z,X,tt],role:"none",children:(0,r.jsx)("ul",{css:nt,role:"menu",id:"moreLinks",children:o.map((t=>(0,r.jsx)("li",{css:[rt,!!t.mobileOnly&&q],role:"none",children:(0,r.jsx)("a",{className:"selectableMenuItem",css:et,href:t.url,role:"menuitem","data-link-name":(0,l.K)("header","secondary",t.longTitle),"data-testid":"column-collapse-sublink-".concat(t.title),tabIndex:-1,children:t.longTitle})},t.title.toLowerCase())))})})};function ot(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function st(){const t=ot(["\n\t/*\n IMPORTANT NOTE:\n we need to specify the adjacent path to the a (current) tag\n to apply styles to the nested tabs due to the fact we use ~\n to support NoJS\n */\n\t/* stylelint-disable-next-line selector-type-no-unknown */\n\t",":checked ~ & {\n\t\t:before {\n\t\t\tmargin-top: ","px;\n\t\t\ttransform: rotate(-135deg);\n\t\t}\n\t}\n"]);return st=function(){return t},t}function at(){const t=ot(["\n\t",";\n\n\t",";\n\tpadding: ","px ","px ","px ","px;\n\n\tdisplay: block;\n\n\tuser-select: none;\n\ttext-transform: capitalize;\n\n\t:before {\n\t\tmargin-top: ","px;\n\t\tleft: ","px;\n\t\tposition: absolute;\n\t\tborder: 2px solid currentColor;\n\t\tborder-top: 0;\n\t\tborder-left: 0;\n\t\tcontent: '';\n\t\tdisplay: inline-block;\n\t\ttransform: rotate(45deg);\n\t\theight: 10px;\n\t\twidth: 10px;\n\t}\n"]);return at=function(){return t},t}function ct(){const t=ot(["\n\ttext-transform: none;\n\t",";\n"]);return ct=function(){return t},t}const lt=t=>(0,i.css)(st(),"#".concat(t),s.x[2]),dt=(0,i.css)(at(),a.OAJ,_,s.x[2],s.x[8],s.x[2],s.x[12],s.x[1],s.x[6]),ut=(0,i.css)(ct(),a.NA0),pt=t=>{let{title:n,columnInputId:e,collapseColumnInputId:i,ariaControls:o}=t;return(0,r.jsx)("label",{id:i,className:"selectableMenuItem",css:[dt,n.includes("edition")&&ut,lt(e),B],"aria-label":"Toggle ".concat(n),htmlFor:e,"aria-haspopup":"true","aria-controls":o,tabIndex:-1,role:"menuitem","data-testid":"column-collapse-".concat(n),"data-link-name":(0,l.K)("header","secondary",n),children:n})};function ft(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function ht(){const t=ft(["\n\t"," {\n\t\t:before {\n\t\t\tcontent: '';\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\tright: 0;\n\t\t\ttop: 0;\n\t\t\tbottom: 0;\n\t\t\twidth: 1px;\n\t\t\tbackground-color: ",";\n\t\t}\n\t}\n"]);return ht=function(){return t},t}function gt(){const t=ft(["\n\t",";\n\n\t",";\n\n\t:hover,\n\t:focus {\n\t\ttext-decoration: underline;\n\t}\n"]);return gt=function(){return t},t}function mt(){const t=ft(["\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\tposition: relative;\n\twidth: 100%;\n\t"," {\n\t\tdisplay: list-item;\n\t}\n"]);return mt=function(){return t},t}function bt(){const t=ft(["\n\t",";\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\t",";\n\n\tmargin: 0;\n\tpadding: 0 0 ","px;\n\tposition: relative;\n\t"," {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex-wrap: nowrap;\n\t\torder: 1;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t\tpadding: 0 ","px;\n\t}\n"]);return bt=function(){return t},t}function xt(){const t=ft(["\n\t"," {\n\t\tpadding-left: 0;\n\t}\n\t"," {\n\t\tbackground: ",";\n\t}\n"]);return xt=function(){return t},t}function vt(){const t=ft(["\n\t"," {\n\t\tbackground: ",";\n\t}\n"]);return vt=function(){return t},t}function wt(){const t=ft(["\n\t"," {\n\t\t",":checked ~ & {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n"]);return wt=function(){return t},t}function kt(){const t=ft(["\n\t"," {\n\t\t",":not(:checked) ~ & {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n"]);return kt=function(){return t},t}function yt(){const t=ft(["\n\t"," {\n\t\tdisplay: none;\n\t}\n\tbackground-color: ",";\n\tcontent: '';\n\tdisplay: block;\n\theight: 1px;\n\tmargin-left: 50px;\n\tright: 0;\n"]);return yt=function(){return t},t}function Tt(){const t=ft(["\n\t",";\n\n\t",";\n\n\tmargin: 0;\n\tpadding-bottom: 10px;\n\tposition: relative;\n\n\t"," {\n\t\twidth: ","px;\n\t\tfloat: left;\n\t\tposition: relative;\n\t\tborder-left: 1px solid ",";\n\n\t\t:first-of-type {\n\t\t\tborder-left: none;\n\t\t\twidth: calc(","px - 2px);\n\t\t}\n\t}\n"]);return Tt=function(){return t},t}function jt(){const t=ft(["\n\t"," {\n\t\twidth: ","px;\n\t\t:first-of-type {\n\t\t\twidth: calc(","px - 2px);\n\t\t}\n\t}\n\t"," {\n\t\twidth: ","px;\n\t\t:first-of-type {\n\t\t\twidth: calc(","px - 2px);\n\t\t}\n\t}\n"]);return jt=function(){return t},t}function Ot(){const t=ft(["\n\t\t\t\t\t",";\n\t\t\t\t"]);return Ot=function(){return t},t}const It=(0,i.css)(ht(),o.HT.desktop,(0,u.M)("--masthead-nav-lines")),St=(0,i.css)(gt(),a.PSs,_),Mt=(0,i.css)(mt(),o.HT.desktop),Ht=(0,i.css)(bt(),a.PSs,D,s.x[3],o.HT.desktop,s.x[2]),Pt=(0,i.css)(xt(),o.HT.desktop,o.TG.tablet,(0,u.M)("--masthead-nav-background")),Lt=(0,i.css)(vt(),o.TG.tablet,(0,u.M)("--masthead-nav-background")),Ct=t=>(0,i.css)(wt(),o.TG.desktop,"#".concat(t)),Et=t=>(0,i.css)(kt(),o.TG.desktop,"#".concat(t)),zt=(0,i.css)(yt(),o.HT.desktop,(0,u.M)("--masthead-nav-border")),Nt=(0,i.css)(Tt(),a.PSs,D,o.HT.desktop,g,(0,u.M)("--masthead-nav-lines"),g),At=(0,i.css)(jt(),o.HT.leftCol,m,m,o.HT.wide,b,b),Dt=t=>{let{column:n,index:e,showLineBelow:o,hasPageSkin:s}=t;const a=n.title.split(" ").join("-"),d="".concat(a,"-checkbox-input"),u="".concat(a,"-button"),p="".concat(a.toLowerCase(),"Links");var f;return(0,r.jsxs)("li",{css:[Nt,!s&&At,It],role:"none",children:[(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"document.addEventListener('DOMContentLoaded', function(){\n var columnInput = document.getElementById('".concat(u,"');\n\n\t\t\t\t\t\tif (!columnInput) return; // Sticky nav replaces the nav so element no longer exists for users in test.\n\n\t\t\t\t\t\tcolumnInput.addEventListener('keydown', function(e){\n // keyCode: 13 => Enter key | keyCode: 32 => Space key\n if (e.keyCode === 13 || e.keyCode === 32) {\n e.preventDefault()\n document.getElementById('").concat(d,"').click();\n }\n })\n })")}}),(0,r.jsx)("input",{type:"checkbox",css:(0,i.css)(Ot(),c.Q),id:d,tabIndex:-1,"aria-hidden":"true"},"OpenExpandedMenuCheckbox"),(0,r.jsx)(pt,{collapseColumnInputId:u,title:n.title,columnInputId:d,ariaControls:p}),(0,r.jsx)("ul",{css:[Ht,0===e&&Pt,!!n.children&&Lt,Et(d)],role:"menu",id:p,"data-testid":p,children:(null!==(f=n.children)&&void 0!==f?f:[]).map((t=>(0,r.jsx)("li",{css:[Mt,!!t.mobileOnly&&B],role:"none",children:(0,r.jsx)("a",{className:"selectableMenuItem",css:St,href:t.url,role:"menuitem","data-link-name":(0,l.K)("header","secondary",t.longTitle),"data-testid":"column-collapse-sublink-".concat(t.title),tabIndex:-1,children:t.longTitle})},t.title.toLowerCase())))}),o&&(0,r.jsx)("div",{css:[Ct(d),zt]})]})};var Bt=e(67400),_t=e(25421),Rt=e(40901),Ut=e(15593);function Gt(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function Kt(){const t=Gt(["\n\t","\n\tcolor: ",";\n\t","\n\n\t"," {\n\t\t","\n\t}\n\n\t:hover,\n\t:focus {\n\t\ttext-decoration: underline;\n\t}\n"]);return Kt=function(){return t},t}function Ft(){const t=Gt(["\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\tposition: relative;\n\twidth: 100%;\n\t"," {\n\t\tdisplay: list-item;\n\t}\n"]);return Ft=function(){return t},t}const Vt=(0,i.css)(Kt(),_,(0,u.M)("--nav-reader-revenue-link-text"),a.WYI,o.HT.desktop,a.NA0),Qt=(0,i.css)(Ft(),o.HT.desktop),Wt=t=>{let{readerRevenueLinks:n,editionId:e}=t;const{renderingTarget:i}=(0,Ut.U)(),o=(0,Rt.L)(i),[s,a]=(0,Bt.useState)("");(0,Bt.useEffect)((()=>{a(window.location.origin+window.location.pathname)}),[]);const c=(0,_t.r)({base:"https://support.theguardian.com/subscribe".concat("UK"===e?"":"/weekly"),componentType:"ACQUISITIONS_HEADER",componentId:"PrintSubscriptionsHeaderLink",pageViewId:o,referrerUrl:s}),d=[{longTitle:"Support us",title:"Support us",mobileOnly:!0,url:n.sideMenu.support},{longTitle:"Print subscriptions",title:"Print subscriptions",mobileOnly:!0,url:c},..."US"===e?[{longTitle:"Newsletters",title:"Newsletters",mobileOnly:!0,url:"/email-newsletters"},{longTitle:"Download the app",title:"Download the app",mobileOnly:!0,url:"https://app.adjust.com/1hskf6nd?adgroup=USHeader"}]:[]];return(0,r.jsx)("ul",{css:B,role:"menu",children:d.map((t=>(0,r.jsx)("li",{css:[Qt,!!t.mobileOnly&&B],role:"none",children:(0,r.jsx)("a",{className:"selectableMenuItem",css:Vt,href:t.url,role:"menuitem","data-link-name":(0,l.K)("header","secondary",t.longTitle),"data-testid":"column-collapse-sublink-".concat(t.title),tabIndex:-1,children:t.longTitle})},t.title.toLowerCase())))})};var Jt=e(32444),$t=e(75321),qt=e(40368),Yt=e(27123),Zt=e(15168);function Xt(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function tn(){const t=Xt(["\n\tbox-sizing: border-box;\n\tdisplay: block;\n\tmargin-left: ","px;\n\tmax-width: 380px;\n\tposition: relative;\n\tmargin-bottom: 24px;\n\tmargin-right: 41px;\n\tpadding-bottom: 15px;\n\t"," {\n\t\tmargin: 0;\n\t}\n"]);return tn=function(){return t},t}function nn(){const t=Xt(["\n\t","\n\tbackground-color: ",";\n\tborder: 0;\n\tborder-radius: 1000px;\n\tbox-sizing: border-box;\n\tcolor: ",";\n\theight: 36px;\n\tpadding-left: 38px;\n\tvertical-align: middle;\n\twidth: 100%;\n\t&::placeholder {\n\t\tcolor: ",";\n\t}\n\t&:focus {\n\t\tpadding-right: 40px;\n\t\t&::placeholder {\n\t\t\topacity: 0;\n\t\t}\n\t}\n\t&:focus ~ button {\n\t\tbackground-color: transparent;\n\t\topacity: 1;\n\t\tpointer-events: all;\n\t}\n"]);return nn=function(){return t},t}function en(){const t=Xt(["\n\tposition: absolute;\n\tleft: 7px;\n\ttop: 7px;\n\tfill: ",";\n"]);return en=function(){return t},t}function rn(){const t=Xt(["\n\tbackground: transparent;\n\tborder: 0;\n\tbottom: 0;\n\tcursor: pointer;\n\tdisplay: block;\n\topacity: 0;\n\tpointer-events: none;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n\twidth: 50px;\n\tfill: ",";\n\t&:focus,\n\t&:active {\n\t\topacity: 0;\n\t\tpointer-events: all;\n\t}\n\t&:before {\n\t\theight: 12px;\n\t\ttop: ","px;\n\t\twidth: 12px;\n\t}\n\t&:after {\n\t\tborder-right: 0;\n\t\ttop: 17px;\n\t\twidth: 20px;\n\t}\n"]);return rn=function(){return t},t}const on=(0,i.css)(tn(),s.x[4],o.HT.desktop),sn=(0,i.css)(nn(),a.PSs,(0,u.M)("--nav-search-bar-background"),(0,u.M)("--nav-search-bar-text"),(0,u.M)("--nav-search-bar-text")),an=(0,i.css)(en(),(0,u.M)("--nav-search-bar-icon")),cn=(0,i.css)(rn(),(0,u.M)("--nav-search-bar-icon"),s.x[3]),ln=()=>{const t="gu-search";return(0,r.jsxs)("form",{css:on,action:"https://www.google.co.uk/search",children:[(0,r.jsx)(Jt.k,{hideLabel:!0,label:"Search input",cssOverrides:sn,name:"q",placeholder:"Search the Guardian","data-link-name":(0,l.K)("header","search"),className:"selectableMenuItem",tabIndex:-1,id:t}),(0,r.jsx)($t.J,{hideLabel:!0,text:"google-search",htmlFor:t,children:(0,r.jsx)("div",{css:an,children:(0,r.jsx)(qt.y,{isAnnouncedByScreenReader:!0,size:"medium"})})}),(0,r.jsx)(Yt.$,{icon:(0,r.jsx)(Zt._,{isAnnouncedByScreenReader:!1,size:"medium"}),"aria-label":"Search with Google",cssOverrides:cn,"data-link-name":(0,l.K)("header","search","submit"),type:"submit",tabIndex:-1}),(0,r.jsx)("input",{type:"hidden",name:"as_sitesearch",value:"www.theguardian.com"})]})};function dn(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function un(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){dn(t,n,e[n])}))}return t}function pn(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function fn(){const t=pn(["\n\tbox-sizing: border-box;\n\tmax-width: none;\n\t"," {\n\t\tmax-width: 980px;\n\t\tpadding: 0 ","px;\n\t\tposition: relative;\n\t\tmargin: 0 auto;\n\t\tdisplay: flex;\n\t\tborder-right: 1px solid ",";\n\t\tborder-top: 1px solid ",";\n\n\t\t&:first-of-type {\n\t\t\tborder-left: 1px solid ",";\n\t\t}\n\t}\n"]);return fn=function(){return t},t}function hn(){const t=pn(["\n\t"," {\n\t\tmax-width: 1140px;\n\t}\n\t"," {\n\t\tmax-width: 1300px;\n\t}\n"]);return hn=function(){return t},t}function gn(){const t=pn(["\n\tdisplay: none;\n\t"," {\n\t\tdisplay: block;\n\t}\n\tpadding: ","px;\n"]);return gn=function(){return t},t}function mn(){const t=pn(["\n\t",";\n\t","\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex-wrap: wrap;\n\tmargin: 0;\n\tpadding-bottom: 0;\n"]);return mn=function(){return t},t}function bn(){const t=pn(["\n\t"," {\n\t\twidth: 140px;\n\t}\n\t"," {\n\t\twidth: 300px;\n\t}\n"]);return bn=function(){return t},t}function xn(){const t=pn(["\n\tmargin-right: 0;\n\tmargin-top: -6px;\n\tpadding-bottom: 0;\n"]);return xn=function(){return t},t}function vn(){const t=pn(["\n\t","\n\t",";\n\ttext-decoration: none;\n\n\t"," {\n\t\tpadding-left: 60px;\n\t}\n\t"," {\n\t\tpadding: 6px 0;\n\t}\n"]);return vn=function(){return t},t}function wn(){const t=pn(["\n\t"," {\n\t\t",";\n\t}\n"]);return wn=function(){return t},t}const kn=(0,i.css)(fn(),o.HT.desktop,s.x[5],(0,u.M)("--masthead-nav-lines"),(0,u.M)("--masthead-nav-lines"),(0,u.M)("--masthead-nav-lines")),yn=(0,i.css)(hn(),o.HT.leftCol,o.HT.wide),Tn=(0,i.css)(gn(),o.HT.desktop,s.x[2]),jn=(0,i.css)(mn(),a.NA0,D),On=(0,i.css)(bn(),o.HT.leftCol,o.HT.wide),In=(0,i.css)(xn()),Sn=(0,i.css)(vn(),_,a.aal,o.HT.tablet,o.HT.desktop),Mn=(0,i.css)(wn(),o.HT.wide,a.OAJ),Hn=t=>{let{nav:n,editionId:e,hasPageSkin:i}=t;return(0,r.jsxs)("ul",{css:[kn,!i&&yn],role:"menubar","data-testid":"nav-menu-columns",children:[n.pillars.map(((t,e)=>{const o={title:t.title,longTitle:"View all ".concat(t.title),url:t.url,children:[],mobileOnly:!0},s=t.children&&[o,...t.children];return(0,r.jsx)(Dt,{column:(a=un({},t),c={children:s},c=null!=c?c:{},Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):function(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e.push.apply(e,r)}return e}(Object(c)).forEach((function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(c,t))})),a),index:e,showLineBelow:e!==n.pillars.length-1,hasPageSkin:i},t.title.toLowerCase());var a,c})),(0,r.jsx)(C.L,{from:"desktop",children:(0,r.jsx)("li",{role:"none",children:(0,r.jsx)(ln,{})})}),(0,r.jsx)("div",{css:zt}),(0,r.jsx)(Wt,{readerRevenueLinks:n.readerRevenueLinks,editionId:e}),(0,r.jsx)(it,{otherLinks:n.otherLinks,brandExtensions:n.brandExtensions,hasPageSkin:i},"more"),(0,r.jsxs)("li",{css:Tn,role:"none",children:[(0,r.jsx)(ln,{}),(0,r.jsx)("ul",{css:[jn,!i&&On],role:"menu",children:n.brandExtensions.map((t=>(0,r.jsx)("li",{css:In,children:(0,r.jsx)("a",{className:"selectableMenuItem",css:[Sn,!i&&Mn],href:t.url,role:"menuitem","data-link-name":(0,l.K)("header","brand extension",t.longTitle),tabIndex:-1,children:t.longTitle},t.title)},t.title)))})]})]})};function Pn(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function Ln(){const t=Pn(["\n\t"," {\n\t\t/* the negative translateX makes the nav hide to the side */\n\t\ttransform: translateX(-110%);\n\t\ttransition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);\n\t\tbottom: 0;\n\t\theight: 100%;\n\t\toverflow: auto;\n\t\tposition: fixed;\n\t\tright: 0;\n\t\twill-change: transform;\n\t}\n\t"," {\n\t\tdisplay: none;\n\t}\n"]);return Ln=function(){return t},t}function Cn(){const t=Pn(["\n\t"," {\n\t\t/* menu appears from left of screen on mobile when translateX is set to 0% */\n\t\ttransform: translateX(0%);\n\t}\n\t"," {\n\t\tdisplay: block;\n\t\toverflow: visible;\n\t}\n"]);return Cn=function(){return t},t}function En(){const t=Pn(["\n\tz-index: ",";\n\tleft: 0;\n\ttop: 0;\n\n\t","\n\n\t/*\n\tIMPORTANT NOTE:\n\twe need to specify the adjacent path to the a (current) tag\n\tto apply styles to the nested tabs due to the fact we use ~\n\tto support NoJS\n\n\tThe following styles apply if the menu is open (checkbox is checked)\n\t*/\n\t",":checked ~ div & {\n\t\t","\n\t}\n"]);return En=function(){return t},t}function zn(){const t=Pn(["\n\tbackground-color: ",";\n\t",";\n\tz-index: ",";\n\tleft: 0;\n\ttop: 0;\n\tbox-sizing: border-box;\n\n\tposition: absolute;\n\tmargin-right: 28px;\n\tbox-shadow: 28px 0 rgba(0, 0, 0, 0.4);\n\t"," {\n\t\tmargin-right: 40px;\n\t\tbox-shadow: 40px 0 rgba(0, 0, 0, 0.4);\n\t}\n\t"," {\n\t\tmargin-right: 100px;\n\t\tbox-shadow: 100px 0 rgba(0, 0, 0, 0.4);\n\t}\n\t"," {\n\t\tbox-shadow: none;\n\t\tposition: absolute;\n\t\tpadding-bottom: 0;\n\t\tpadding-top: 0;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\twidth: 100%;\n\t\t@supports (width: 100vw) {\n\t\t\tleft: 50%;\n\t\t\tright: 50%;\n\t\t\twidth: 100vw;\n\t\t\tmargin-left: -50vw;\n\t\t\tmargin-right: -50vw;\n\t\t}\n\t}\n"]);return zn=function(){return t},t}function Nn(){const t=Pn(["\n\t\t\t\t\t"," {\n\t\t\t\t\t\tposition: relative;\n\t\t\t\t\t}\n\t\t\t\t"]);return Nn=function(){return t},t}const An=(0,i.css)(Ln(),o.TG.desktop,o.HT.desktop),Dn=(0,i.css)(Cn(),o.TG.desktop,o.HT.desktop),Bn=(0,i.css)(En(),(0,k.f)("expanded-veggie-menu-wrapper"),An,"#".concat(p),Dn),_n=(0,i.css)(zn(),(0,u.M)("--masthead-nav-background"),a.Pgx,(0,k.f)("expanded-veggie-menu"),o.HT.mobileLandscape,o.HT.tablet,o.HT.desktop),Rn=t=>{let{nav:n,editionId:e,hasPageSkin:s}=t;return(0,r.jsx)("div",{id:"header-expanded-menu","data-testid":"expanded-menu",css:Bn,children:(0,r.jsx)("div",{css:(0,i.css)(Nn(),o.HT.desktop),children:(0,r.jsx)("div",{css:_n,children:(0,r.jsx)(Hn,{editionId:e,nav:n,hasPageSkin:s})})})})};var Un=e(53419),Gn=e(99134);function Kn(){const t=(n=["\n\t\t\t\t",";\n\t\t\t"],e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}})));var n,e;return Kn=function(){return t},t}const Fn=()=>(0,r.jsxs)("a",{href:"/","data-link-name":(0,l.K)("header","logo"),children:[(0,r.jsx)("span",{css:(0,i.css)(Kn(),c.Q),children:"The Guardian - Back to home"}),(0,r.jsx)(Gn.D,{textColor:(0,u.M)("--masthead-nav-link-text")})]});var Vn=e(77907),Qn=e(16632);function Wn(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function Jn(){const t=Wn(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\twidth: fit-content;\n\tpointer-events: auto;\n"]);return Jn=function(){return t},t}function $n(){const t=Wn(["\n\tdisplay: flex;\n\tposition: relative;\n\toverflow: hidden;\n\n\theight: 28px;\n\twidth: fit-content;\n\n\t"," {\n\t\theight: 34px;\n\t}\n\n\t"," {\n\t\theight: 37px;\n\t}\n\n\t"," {\n\t\twidth: ","px;\n\t}\n\n\t"," {\n\t\theight: 40px;\n\t}\n"]);return $n=function(){return t},t}function qn(){const t=Wn(["\n\t"," {\n\t\theight: 52px;\n\t\twidth: ","px;\n\t}\n\n\t"," {\n\t\twidth: ","px;\n\t}\n"]);return qn=function(){return t},t}function Yn(){const t=Wn(["\n\t:after {\n\t\theight: ","px;\n\t\t/* This CSS var is dynamically set via the style attribute*/\n\t\tbackground-color: var(--pillar-underline);\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\n\t\t/*\n\t\tThis is 100% width of pillar block minus the left margin\n\t\tand 1px border on the right\n\t\t*/\n\t\twidth: calc(100% - ","px - 1px);\n\t\tmargin-left: ","px;\n\t\ttransition: transform 0.3s ease-in-out;\n\n\t\t/*\n\t\tThis hides the pillar underline below the pillar block until\n\t\tready to view, either by hovering or forcing the underline (when selected)\n\t\t*/\n\t\tmargin-bottom: -","px;\n\t}\n"]);return Yn=function(){return t},t}function Zn(){const t=Wn(["\n\t:after {\n\t\ttransform: translateY(-","px);\n\t}\n\t:focus:after {\n\t\ttransform: translateY(-","px);\n\t}\n\t:hover {\n\t\ttext-decoration: none;\n\t}\n\t:hover:after {\n\t\ttransform: translateY(-","px);\n\t}\n"]);return Zn=function(){return t},t}function Xn(){const t=Wn(["\n\t","\n\ttext-decoration: none;\n\n\tbackground-color: ",";\n\tcolor: ",";\n\n\t/** Allow the anchor tag to fill the whole pillar area */\n\tflex-grow: 1;\n\tpadding-left: ","px;\n\tpadding-right: ","px;\n\n\t"," {\n\t\t","\n\t\t/** This overrides the font size to 15\n\t\t TODO: export headlineBold15 from source */\n\t\tfont-size: 0.9375rem;\n\t\tpadding-right: ","px;\n\t}\n\t"," {\n\t\t","\n\t}\n\n\t"," {\n\t\t","\n\t}\n\n\t:focus:after {\n\t\ttransform: translateY(-","px);\n\t}\n\t:hover {\n\t\ttext-decoration: none;\n\t}\n\t:hover:after {\n\t\ttransform: translateY(-","px);\n\t}\n"]);return Xn=function(){return t},t}function te(){const t=Wn(["\n\t"," {\n\t\t","\n\t}\n"]);return te=function(){return t},t}function ne(){const t=Wn(["\n\ta {\n\t\tpadding-left: 0;\n\n\t\t:after {\n\t\t\twidth: calc(100% - 1px);\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"]);return ne=function(){return t},t}function ee(){const t=Wn(["\n\t:after {\n\t\tcontent: '';\n\t\tborder-left: 1px solid ",";\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\theight: calc(100% - ","px);\n\t\tmargin-top: ","px;\n\t}\n"]);return ee=function(){return t},t}const re=(0,i.css)(Jn()),ie=(0,i.css)($n(),o.HT.mobileMedium,o.HT.mobileLandscape,o.HT.tablet,g,o.HT.desktop),oe=(0,i.css)(qn(),o.HT.leftCol,m,o.HT.wide,b),se=s.x[1]+1,ae=(0,i.css)(Yn(),se,6,6,se),ce=(0,i.css)(Zn(),se,se,se),le=(0,i.css)(Xn(),a.jQM,(0,u.M)("--masthead-nav-background"),(0,u.M)("--masthead-nav-link-text"),6,s.x[1],o.HT.mobileMedium,a.jQM,s.x[2],o.HT.mobileLandscape,a.ccz,o.HT.desktop,a.aal,se,se),de=(0,i.css)(te(),o.HT.leftCol,a.OAJ),ue=(0,i.css)(ne()),pe=(0,i.css)(ee(),(0,u.M)("--masthead-nav-lines"),s.x[1],s.x[1]),fe=t=>{let{pillars:n,selectedPillar:e,dataLinkName:i,hasPageSkin:o=!1,isTopNav:s=!0}=t;return(0,r.jsx)("ul",{css:re,children:n.map(((t,a)=>{const c=t.pillar===e,d=((t,n)=>t!==n-1)(a,n.length),u=(t=>{switch(t){case Qn.B0.News:return Vn.M.news[500];case Qn.B0.Opinion:return Vn.M.opinion[500];case Qn.B0.Sport:return Vn.M.sport[500];case Qn.B0.Culture:return Vn.M.culture[500];case Qn.B0.Lifestyle:return Vn.M.lifestyle[500];default:return}})(t.pillar);return(0,r.jsx)("li",{css:[ie,!o&&oe,D,d&&pe,0===a&&ue],children:(0,r.jsx)("a",{href:t.url,css:[le,!o&&de,ae,c&&ce],style:{"--pillar-underline":u},id:s&&0===a?"navigation":void 0,"data-link-name":(0,l.K)(i,"primary",t.title),children:t.title})},t.title)}))})};function he(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function ge(){const t=he(["\n\t","\n\tdisplay: flex;\n\tcolumn-gap: ","px;\n\tcolor: inherit;\n\tmin-height: 28px;\n\twidth: 100%;\n\tmargin-top: ","px;\n\n\t"," {\n\t\tmargin-top: ","px;\n\t}\n\t"," {\n\t\tmin-height: 30px;\n\t}\n"]);return ge=function(){return t},t}function me(){const t=he(["\n\t"," {\n\t\tmargin-top: 14px;\n\t}\n"]);return me=function(){return t},t}function be(){const t=he(["\n\toverflow-x: scroll;\n\n\t@supports selector(::-webkit-scrollbar) {\n\t\t&::-webkit-scrollbar {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\tscrollbar-width: none; /* Firefox */\n"]);return be=function(){return t},t}function xe(){const t=he(["\n\twhite-space: nowrap;\n"]);return xe=function(){return t},t}function ve(){const t=he(["\n\tcolor: ",";\n\ttext-decoration: none;\n\tpadding-right: ","px;\n\n\t&:hover {\n\t\ttext-decoration: underline;\n\t\tcolor: ",";\n\t}\n"]);return ve=function(){return t},t}function we(){const t=he(["\n\t","\n"]);return we=function(){return t},t}const ke=(0,i.css)(ge(),a.WuG,s.x[2],s.x[2],o.HT.mobileMedium,s.x[3],o.HT.tablet),ye=(0,i.css)(me(),o.HT.leftCol),Te=(0,i.css)(be()),je=(0,i.css)(xe()),Oe=(0,i.css)(ve(),(0,u.M)("--masthead-nav-link-text"),s.x[1],(0,u.M)("--masthead-nav-link-text-hover")),Ie=(0,i.css)(we(),a.rS6),Se=t=>{let{hasPageSkin:n,subNavSections:e,currentNavLink:i}=t;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("ul",{css:[ke,!n&&ye,Te],role:"list",style:{"--sub-nav-link":(0,u.M)("--sub-nav-link-header")},children:[e.parent&&(0,r.jsx)("li",{css:je,children:(0,r.jsx)("a",{"data-src-focus-disabled":!0,css:Oe,href:e.parent.url,children:e.parent.title})},e.parent.url),e.links.map((t=>{let{title:n,longTitle:e,url:o}=t;return(0,r.jsx)("li",{css:je,children:(0,r.jsx)("a",{css:Oe,"data-src-focus-disabled":!0,href:o,"data-link-name":(0,l.K)("header","subnav",e),children:n===i?(0,r.jsx)("span",{css:Ie,children:n}):n})},o)}))]})})};var Me=e(65036),He=e(56607);function Pe(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function Le(){const t=Pe(["\n\tposition: relative;\n\tz-index: 1;\n\t",":checked ~ div & {\n\t\t"," {\n\t\t\t/* Bump the z-index of the burger menu when expanded */\n\t\t\tz-index: ",";\n\t\t}\n\t}\n"]);return Le=function(){return t},t}function Ce(){const t=Pe(["\n\t",";\n"]);return Ce=function(){return t},t}function Ee(){const t=Pe(["\n\t",":checked ~ div & {\n\t\t/* Hide the expand menu SVG if already expanded */\n\t\tdisplay: none;\n\t}\n"]);return Ee=function(){return t},t}function ze(){const t=Pe(["\n\t",":not(:checked) ~ div & {\n\t\t/* Hide the collapse menu SVG if already collapsed */\n\t\tdisplay: none;\n\t}\n"]);return ze=function(){return t},t}function Ne(){const t=Pe(["\n\tcursor: pointer;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 40px;\n\theight: 40px;\n\tborder-radius: 50%;\n\tbackground-color: ",";\n\n\t:hover {\n\t\tbackground-color: ",";\n\t}\n\t:focus {\n\t\toutline: none;\n\t}\n"]);return Ne=function(){return t},t}const Ae=(0,i.css)(Le(),"#".concat(p),o.TG.desktop,(0,k.f)("mastheadVeggieBurgerExpandedMobile")),De=(0,i.css)(Ce(),c.Q),Be=(0,i.css)(Ee(),"#".concat(p)),_e=(0,i.css)(ze(),"#".concat(p)),Re=(0,i.css)(Ne(),(0,u.M)("--masthead-veggie-burger-background"),(0,u.M)("--masthead-veggie-burger-background-hover")),Ue=()=>(0,r.jsxs)("label",{id:f,css:Ae,"aria-label":"Toggle main menu",htmlFor:p,"data-link-name":(0,l.K)("header","veggie-burger","show"),tabIndex:0,role:"button","data-testid":"veggie-burger",children:[(0,r.jsxs)("span",{css:[Re,Be],children:[(0,r.jsx)("span",{css:De,children:"Show more"}),(0,r.jsx)(Me.E,{size:"small",theme:{fill:(0,u.M)("--masthead-veggie-burger-icon")}})]}),(0,r.jsxs)("span",{css:[Re,_e],children:[(0,r.jsx)("span",{css:De,children:"Hide expanded menu"}),(0,r.jsx)(He.F,{size:"small",theme:{fill:(0,u.M)("--masthead-veggie-burger-icon")}})]})]},"OpenExpandedMenuButton");function Ge(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function Ke(){const t=Ge(["\n\tgrid-column: content-start / content-end;\n"]);return Ke=function(){return t},t}function Fe(){const t=Ge(["\n\tgrid-column: main-column-start / main-column-end;\n"]);return Fe=function(){return t},t}function Ve(){const t=Ge(["\n\t","\n\tgrid-row: 1;\n\t"," {\n\t\tjustify-self: end;\n\t}\n\twidth: fit-content;\n"]);return Ve=function(){return t},t}function Qe(){const t=Ge(["\n\t"," {\n\t\tjustify-self: start;\n\t}\n"]);return Qe=function(){return t},t}function We(){const t=Ge(["\n\t","\n\tgrid-row: 1;\n\tposition: relative;\n\tdisplay: flex;\n\tjustify-self: end;\n\talign-self: end;\n\tmargin-top: ","px;\n\tmargin-bottom: 6px;\n\tright: ","px;\n\t"," {\n\t\tright: 0;\n\t}\n\t"," {\n\t\tmargin-bottom: ","px;\n\t}\n\n\tsvg {\n\t\twidth: 152px;\n\t\t"," {\n\t\t\twidth: 207px;\n\t\t}\n\t\t"," {\n\t\t\twidth: 252px;\n\t\t}\n\t\t"," {\n\t\t\twidth: 291px;\n\t\t}\n\t}\n"]);return We=function(){return t},t}function Je(){const t=Ge(["\n\tsvg {\n\t\t"," {\n\t\t\twidth: 324px;\n\t\t}\n\t}\n"]);return Je=function(){return t},t}function $e(){const t=Ge(["\n\tposition: relative;\n\tmargin-top: ","px;\n\tmargin-bottom: ","px;\n\tright: ","px;\n\n\t"," {\n\t\tright: ","px;\n\t}\n\t"," {\n\t\tright: ","px;\n\t}\n\t"," {\n\t\tmargin-top: ","px;\n\t\tmargin-bottom: ","px;\n\t}\n\t"," {\n\t\tright: ","px;\n\t}\n\t"," {\n\t\tright: ","px;\n\t}\n\tsvg {\n\t\twidth: 130px;\n\t\t"," {\n\t\t\twidth: 130px;\n\t\t}\n\t\t"," {\n\t\t\twidth: 86px;\n\t\t}\n\t\t"," {\n\t\t\twidth: 130px;\n\t\t}\n\t\t"," {\n\t\t\twidth: 140px;\n\t\t}\n\t\t"," {\n\t\t\twidth: 145px;\n\t\t}\n\t}\n"]);return $e=function(){return t},t}function qe(){const t=Ge(["\n\t","\n\tgrid-row: 2;\n\talign-self: end;\n\n\t","\n\tmargin-top: ","px;\n\n\t"," {\n\t\tgrid-row: 1 / 2;\n\t\tli:last-of-type {\n\t\t\t","\n\t\t}\n\t}\n\tpointer-events: none;\n"]);return qe=function(){return t},t}function Ye(){const t=Ge(["\n\tgrid-row: 1;\n\t"," {\n\t\tdisplay: none;\n\t}\n"]);return Ye=function(){return t},t}function Ze(){const t=Ge(["\n\t","\n\tgrid-row: 1;\n\talign-self: center;\n\t"," {\n\t\tgrid-row: 1 / 3;\n\t\talign-self: end;\n\t}\n\tjustify-content: center;\n\tdisplay: flex;\n\tjustify-self: end;\n\tposition: relative;\n\tbottom: 2px;\n\t"," {\n\t\tbottom: ","px;\n\t}\n\t"," {\n\t\tright: 354px;\n\t\tbottom: 6px;\n\t}\n"]);return Ze=function(){return t},t}function Xe(){const t=Ge(["\n\t"," {\n\t\tright: 430px;\n\t\tbottom: 14px;\n\t}\n\t"," {\n\t\tright: 534px;\n\t}\n"]);return Xe=function(){return t},t}function tr(){const t=Ge(["\n\tposition: relative;\n\tgrid-row: 1;\n\talign-self: end;\n\tbottom: ","px;\n\n\t"," {\n\t\tgrid-row: 1;\n\t\talign-self: end;\n\t}\n\n\t"," {\n\t\tright: 136px;\n\t}\n\t"," {\n\t\tright: 356px;\n\t}\n\t"," {\n\t\tright: 430px;\n\t}\n\t"," {\n\t\tright: 534px;\n\t}\n"]);return tr=function(){return t},t}function nr(){const t=Ge(["\n\t","\n\tgrid-row: 2;\n\tmargin-top: -1px;\n"]);return nr=function(){return t},t}function er(){const t=Ge(["\n\tposition: relative;\n\t&::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tborder-bottom: 1px solid ",";\n\t\tbottom: 0;\n\t\tright: -",";\n\t\tleft: -",";\n\n\t\t"," {\n\t\t\tleft: -",";\n\t\t\tright: -",";\n\t\t}\n\t}\n"]);return er=function(){return t},t}function rr(){const t=Ge(["\n\t&::after {\n\t\t"," {\n\t\t\tright: 0;\n\t\t\tleft: 0;\n\t\t}\n\t}\n"]);return rr=function(){return t},t}function ir(){const t=Ge(["\n\t/** Relative positioning needed on the wrapper to allow\n\t the pseudo after element to position absolutely */\n\tposition: relative;\n\t","\n\tgrid-row: 3;\n\n\t/** We increase the width of the subnav to let it overflow\n\t on the right to help indicate scrollability */\n\twidth: calc(100% + ",");\n\t"," {\n\t\twidth: calc(100% + ",");\n\t}\n\t"," {\n\t\twidth: 100%;\n\t}\n\n\t"," {\n\t\t:before {\n\t\t\tcontent: '';\n\t\t\tborder-left: 1px solid ",";\n\t\t\tposition: absolute;\n\t\t\tleft: -",";\n\t\t\ttop: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t:after {\n\t\t\tcontent: '';\n\t\t\tborder-left: 1px solid ",";\n\t\t\tposition: absolute;\n\t\t\tright: -",";\n\t\t\ttop: 0;\n\t\t\tbottom: 0;\n\t\t}\n\t}\n\n\t/** This additional padding on the right of the subnav list allows\n\t the list items to remain visible with the fade overlay */\n\tul {\n\t\tpadding-right: ","px;\n\t\tposition: relative;\n\t}\n"]);return ir=function(){return t},t}function or(){const t=Ge(["\n\tposition: absolute;\n\twidth: ","px;\n\theight: 100%;\n\tright: 0;\n\ttop: 0;\n\tbottom: 0;\n\tbackground: linear-gradient(\n\t\tto right,\n\t\ttransparent 0%,\n\t\t"," 100%\n\t);\n"]);return or=function(){return t},t}function sr(){const t=Ge(["\n\t\t\t\t\t/* We apply this style when the side navigation is open the prevent the document body from scrolling */\n\t\t\t\t\t/* See Nav.tsx */\n\t\t\t\t\t.nav-is-open {\n\t\t\t\t\t\t"," {\n\t\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t\t\theight: 100vh;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t"]);return sr=function(){return t},t}function ar(){const t=Ge(["\n\t\t\t\t\t",";\n\t\t\t\t"]);return ar=function(){return t},t}const cr=(0,i.css)(Ke()),lr=(0,i.css)(Fe()),dr=(0,i.css)(Ve(),lr,o.HT.mobileMedium),ur=(0,i.css)(Qe(),o.TG.tablet),pr=(0,i.css)(We(),lr,s.x[2],40+s.x[3],o.HT.mobileMedium,o.HT.mobileLandscape,s.x[2],o.HT.mobileMedium,o.HT.tablet,o.HT.desktop),fr=(0,i.css)(Je(),o.HT.leftCol),hr=(0,i.css)($e(),s.x[2],s.x[2],46,o.HT.mobile,46,o.HT.mobileMedium,46,o.HT.mobileLandscape,s.x[1],s.x[2],o.HT.tablet,s.x[8],o.HT.desktop,s.x[10],o.HT.mobile,o.HT.tablet,o.HT.desktop,o.HT.leftCol,o.HT.wide),gr=(0,i.css)(qe(),cr,a.jQM,s.x[2],o.HT.desktop,pe),mr=(0,i.css)(Ye(),o.TG.tablet),br=(0,i.css)(Ze(),cr,o.HT.mobileMedium,o.HT.mobileMedium,s.x[1],o.HT.desktop),xr=(0,i.css)(Xe(),o.HT.leftCol,o.HT.wide),vr=(0,i.css)(tr(),s.x[1],o.HT.mobileMedium,o.HT.tablet,o.HT.desktop,o.HT.leftCol,o.HT.wide),wr=(0,i.css)(nr(),cr),kr=(0,i.css)(er(),(0,u.M)("--masthead-nav-lines"),x,x,o.HT.mobileLandscape,v,v),yr=(0,i.css)(rr(),o.HT.tablet),Tr=(0,i.css)(ir(),cr,x,o.HT.mobileLandscape,v,o.HT.tablet,o.HT.tablet,(0,u.M)("--masthead-nav-lines"),v,(0,u.M)("--masthead-nav-lines"),v,s.x[8]),jr=(0,i.css)(or(),s.x[10],(0,u.M)("--masthead-nav-background")),Or=t=>{let{nav:n,editionId:e,showSubNav:s,showSlimNav:a,hasPageSkin:g,pageId:m=""}=t;const{showBanner:b}=(0,d.z)(m,e);return(0,r.jsxs)(Un.xA,{type:"nav",style:{backgroundColor:(0,u.M)("--masthead-nav-background"),color:(0,u.M)("--masthead-nav-link-text")},hasPageSkin:g,children:[(0,r.jsx)(i.Global,{styles:(0,i.css)(sr(),o.TG.desktop)}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"document.addEventListener('DOMContentLoaded', function () {\n\n\t\t\t\t\t/** The checkbox input element used to toggle the navigation menu. */\n\t\t\t\t\tconst navInputCheckbox = document.getElementById('".concat(p,"');\n\n\t\t\t\t\t/** The veggie burger button element used to open/close the menu. */\n\t\t\t\t\tconst veggieBurger = document.getElementById('").concat(f,"');\n\n\t\t\t\t\t/** List of menu items that should be selectable when the menu is open. */\n\t\t\t\t\tconst expandedMenuClickableTags = document.querySelectorAll(\n\t\t\t\t\t\t'.selectableMenuItem',\n\t\t\t\t\t);\n\n\t\t\t\t\t/** The root element of the expanded menu. */\n\t\t\t\t\tconst expandedMenu = document.getElementById('").concat(h,"');\n\n\t\t\t\t\t/** The label for the first column in the menu, assumed to be \"News\".*/\n\t\t\t\t\tconst firstColLabel = document.getElementById('News-button');\n\n\t\t\t\t\t/** The link element in the second list item under news links. */\n\t\t\t\t\tconst firstColLink = document.querySelector(\n\t\t\t\t\t\t'#newsLinks > li:nth-of-type(2) > a',\n\t\t\t\t\t);\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Focuses on the first navigation element depending on whether the first column label is visible.\n\t\t\t\t\t *\n\t\t\t\t\t * If the first column label is not visible, the function focuses on the first link element.\n\t\t\t\t\t * Otherwise, it focuses on the first column label.\n\t\t\t\t\t */\n\t\t\t\t\tconst focusOnFirstNavElement = () => {\n\t\t\t\t\t\tif (window.getComputedStyle(firstColLabel).display === 'none') {\n\t\t\t\t\t\t\tfirstColLink.focus();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfirstColLabel.focus();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Updates ARIA attributes and tabindex values based on whether the menu is open or closed.\n\t\t\t\t\t */\n\t\t\t\t\tconst updateAttributesForMenu = (isOpen) => {\n\t\t\t\t\t\tfirstColLabel.setAttribute('aria-expanded', isOpen ? 'true' : 'false');\n\t\t\t\t\t\tveggieBurger.setAttribute(\n\t\t\t\t\t\t\t'data-link-name',\n\t\t\t\t\t\t\tisOpen\n\t\t\t\t\t\t\t\t? 'header : veggie-burger : hide'\n\t\t\t\t\t\t\t\t: 'header : veggie-burger : show',\n\t\t\t\t\t\t);\n\t\t\t\t\t\texpandedMenuClickableTags.forEach((tag) => {\n\t\t\t\t\t\t\ttag.setAttribute('tabindex', isOpen ? '0' : '-1');\n\t\t\t\t\t\t});\n\t\t\t\t\t};\n\n\t\t\t\t\t/** Toggles the navigation menu by simulating a click on the checkbox. */\n\t\t\t\t\tconst toggleMainMenu = () => {\n\t\t\t\t\t\tif (navInputCheckbox) {\n\t\t\t\t\t\t\tnavInputCheckbox.click();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Handles keydown events to toggle the menu when the Enter or Space key is pressed.\n\t\t\t\t\t */\n\t\t\t\t\tconst keydownToggleMainMenu = (e) => {\n\t\t\t\t\t\tif (e.key === 'Enter' || e.key === ' ') {\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\ttoggleMainMenu();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t/**\n\t\t\t\t\t * Handles click events to manage the state of the navigation menu.\n\t\t\t\t\t *\n\t\t\t\t\t * - Toggles the menu open/close state when the menu button (veggieBurger) is clicked.\n\t\t\t\t\t */\n\t\t\t\t\t\tconst handleMenuClick = (e) => {\n\t\t\t\t\t\t\tconst menuButtonClicked = navInputCheckbox === e.target;\n\t\t\t\t\t\t\tconst clickInsideMenu = expandedMenu.contains(e.target);\n\t\t\t\t\t\t\tconst menuIsOpen = navInputCheckbox.checked\n\t\t\t\t\t\t\tif (menuButtonClicked && !menuIsOpen) {\n\t\t\t\t\t\t document.body.classList.toggle('nav-is-open')\n\n\t\t\t\t\t\t\tfirstColLabel.setAttribute('aria-expanded', 'false')\n veggieBurger.setAttribute('data-link-name','header : veggie-burger : show')\n expandedMenuClickableTags.forEach(function($selectableElement){\n $selectableElement.setAttribute('tabindex','-1')\n })\n } else if (menuButtonClicked && menuIsOpen) {\n\t\t\t\t\t\t document.body.classList.toggle('nav-is-open')\n\t\t\t\t\t\t\tfirstColLabel.setAttribute('aria-expanded', 'true')\n veggieBurger.setAttribute('data-link-name','header : veggie-burger : hide')\n expandedMenuClickableTags.forEach(function($selectableElement){\n $selectableElement.setAttribute('tabindex','0')\n })\n focusOnFirstNavElement()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\n\t\t\t\t\t/** Adds event listeners to manage the navigation menu. */\n\t\t\t\t\tif (navInputCheckbox) {\n\t\t\t\t\t\tnavInputCheckbox.addEventListener('click', handleMenuClick);\n\t\t\t\t\t\tveggieBurger.addEventListener('keydown', keydownToggleMainMenu);\n\t\t\t\t\t\tdocument.addEventListener('keydown', (e) => {\n\t\t\t\t\t\t\tif (e.key === 'Escape' && navInputCheckbox.checked) {\n\t\t\t\t\t\t\t\ttoggleMainMenu();\n\t\t\t\t\t\t\t\tveggieBurger.focus();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t/**\n\t\t\t\t\t * Handles mouse down events to manage the state of the navigation menu.\n\t\t\t\t\t *\n\t\t\t\t\t * - Closes the menu if the click occurs outside both the menu button and the expanded menu.\n\t\t\t\t\t */\n\t\t\t\t\tdocument.addEventListener('mousedown', function(e){\n\t\t\t\t\t\tif(navInputCheckbox.checked && !expandedMenu.contains(e.target) && !veggieBurger.contains(e.target)){\n\t\t\t\t\t\ttoggleMainMenu()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});")}}),(0,r.jsx)("div",{css:[dr,a&&ur],children:(0,r.jsx)(L,{editionId:e,dataLinkName:(0,l.K)("header","titlepiece","edition-picker: toggle"),showCurrentEdition:!b,showSlimNav:a})}),(0,r.jsx)("div",{css:[pr,!g&&fr,a&&hr],children:(0,r.jsx)(Fn,{})}),(0,r.jsx)("input",{type:"checkbox",css:(0,i.css)(ar(),c.Q),id:p,name:"more",tabIndex:-1,"aria-hidden":"true",role:"button","aria-expanded":"false","aria-haspopup":"true"},"OpenExpandedMenuCheckbox"),(0,r.jsx)("div",{css:[gr,kr,a&&mr,a&&yr],children:(0,r.jsx)(fe,{pillars:n.pillars,dataLinkName:(0,l.K)("header","titlepiece","nav"),selectedPillar:n.selectedPillar,hasPageSkin:g})}),(0,r.jsx)("div",{css:[br,!g&&xr,a&&vr],children:(0,r.jsx)(Ue,{})}),(0,r.jsx)("div",{id:h,css:wr,children:(0,r.jsx)(Rn,{nav:n,editionId:e,hasPageSkin:g})}),s&&n.subNavSections&&(0,r.jsxs)("div",{css:Tr,"data-print-layout":"hide","data-testid":"sub-nav","data-component":"sub-nav",children:[(0,r.jsx)(Se,{subNavSections:n.subNavSections,currentNavLink:n.currentNavLink}),(0,r.jsx)("div",{css:jr})]})]})}},25421:(t,n,e)=>{e.d(n,{r:()=>i});var r=e(41124);const i=t=>{let{base:n,componentType:e,componentId:i,campaignCode:o,abTest:s,pageViewId:a,referrerUrl:c}=t;if(n.search(/(support.theguardian.com)(\/[a-z]*)?\/(contribute|subscribe)/)>=0){const t={source:"GUARDIAN_WEB",componentId:i,componentType:e,campaignCode:o,abTest:s,referrerPageviewId:a,referrerUrl:c},l={REFPVID:a,INTCMP:o,acquisitionData:JSON.stringify(t)};return"".concat(n).concat(n.includes("?")?"&":"?").concat((0,r.G)(l))}return n}},16632:(t,n,e)=>{e.d(n,{A$:()=>s,B0:()=>o,M2:()=>d,Ns:()=>i,vw:()=>r});var r=function(t){return t[t.Standard=0]="Standard",t[t.Picture=1]="Picture",t[t.Gallery=2]="Gallery",t[t.Audio=3]="Audio",t[t.Video=4]="Video",t[t.Review=5]="Review",t[t.Analysis=6]="Analysis",t[t.Explainer=7]="Explainer",t[t.Comment=8]="Comment",t[t.Letter=9]="Letter",t[t.Feature=10]="Feature",t[t.LiveBlog=11]="LiveBlog",t[t.DeadBlog=12]="DeadBlog",t[t.Recipe=13]="Recipe",t[t.MatchReport=14]="MatchReport",t[t.Interview=15]="Interview",t[t.Editorial=16]="Editorial",t[t.Quiz=17]="Quiz",t[t.Interactive=18]="Interactive",t[t.PhotoEssay=19]="PhotoEssay",t[t.Obituary=20]="Obituary",t[t.Correction=21]="Correction",t[t.FullPageInteractive=22]="FullPageInteractive",t[t.NewsletterSignup=23]="NewsletterSignup",t[t.Timeline=24]="Timeline",t[t.Profile=25]="Profile",t}({}),i=function(t){return t[t.Standard=0]="Standard",t[t.Immersive=1]="Immersive",t[t.Showcase=2]="Showcase",t[t.NumberedList=3]="NumberedList",t}({}),o=function(t){return t[t.News=0]="News",t[t.Opinion=1]="Opinion",t[t.Sport=2]="Sport",t[t.Culture=3]="Culture",t[t.Lifestyle=4]="Lifestyle",t}({}),s=function(t){return t[t.SpecialReport=5]="SpecialReport",t[t.Labs=6]="Labs",t[t.SpecialReportAlt=7]="SpecialReportAlt",t}({});const a=t=>{let{design:n}=t;switch(n){case"ArticleDesign":default:return 0;case"PictureDesign":return 1;case"GalleryDesign":return 2;case"AudioDesign":return 3;case"VideoDesign":return 4;case"ReviewDesign":return 5;case"AnalysisDesign":return 6;case"CommentDesign":return 8;case"LetterDesign":return 9;case"FeatureDesign":return 10;case"LiveBlogDesign":return 11;case"DeadBlogDesign":return 12;case"RecipeDesign":return 13;case"MatchReportDesign":return 14;case"InterviewDesign":return 15;case"EditorialDesign":return 16;case"QuizDesign":return 17;case"InteractiveDesign":return 18;case"PhotoEssayDesign":return 19;case"ObituaryDesign":return 20;case"FullPageInteractiveDesign":return 22;case"NewsletterSignupDesign":return 23;case"ExplainerDesign":return 7;case"TimelineDesign":return 24;case"ProfileDesign":return 25}},c=t=>{let{display:n,design:e}=t;switch(n){case"StandardDisplay":default:return 0;case"ImmersiveDisplay":return"CommentDesign"===e?0:1;case"ShowcaseDisplay":return 2;case"NumberedListDisplay":return 3}},l=t=>{let{theme:n}=t;switch(n){case"NewsPillar":default:return 0;case"OpinionPillar":return 1;case"SportPillar":return 2;case"CulturePillar":return 3;case"LifestylePillar":return 4;case"SpecialReportTheme":return 5;case"SpecialReportAltTheme":return 7;case"Labs":return 6}},d=t=>({design:a(t),display:c(t),theme:l(t)})},54163:(t,n,e)=>{e.d(n,{T$:()=>i,b1:()=>a,iR:()=>s,y4:()=>c});var r=e(92582);const i=[{url:"/preference/edition/uk",editionId:"UK",pageId:"uk",longTitle:"UK edition",title:"UK edition",dateLocale:"en-gb",timeZone:"Europe/London",langLocale:"en-GB",hasEditionalisedPages:!0,shortTitle:"UK"},{url:"/preference/edition/us",editionId:"US",pageId:"us",longTitle:"US edition",title:"US edition",dateLocale:"en-us",timeZone:"America/New_York",langLocale:"en-US",hasEditionalisedPages:!0,shortTitle:"US"},{url:"/preference/edition/au",editionId:"AU",pageId:"au",longTitle:"Australia edition",title:"AU edition",dateLocale:"en-au",timeZone:"Australia/Sydney",langLocale:"en-AU",hasEditionalisedPages:!0,shortTitle:"Aus"},{url:"/preference/edition/eur",editionId:"EUR",pageId:"europe",longTitle:"Europe edition",title:"Europe edition",dateLocale:"en-gb",timeZone:"Europe/Paris",langLocale:"en-EU",hasEditionalisedPages:!1,shortTitle:"Eur"},{url:"/preference/edition/int",editionId:"INT",pageId:"international",longTitle:"International edition",title:"International edition",dateLocale:"en-gb",timeZone:"Europe/London",langLocale:"en",hasEditionalisedPages:!1,shortTitle:"Int"}],[o]=i,s=t=>{var n;return null!==(n=i.find((n=>n.editionId===t)))&&void 0!==n?n:o},a=t=>i.find((n=>n.pageId===t)),c=((0,r.E)(i.map((t=>{let{editionId:n}=t;return n}))),t=>i.some((n=>n.pageId===t)))},33151:(t,n,e)=>{e.d(n,{K:()=>r});const r=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.join(" : ")}},41124:(t,n,e)=>{e.d(n,{G:()=>r});const r=t=>Object.keys(t).map((n=>{var e;const r=null!==(e=t[n])&&void 0!==e?e:"undefined",i=Array.isArray(r)?r.map((t=>encodeURIComponent(t))).join(","):encodeURIComponent(r);return"".concat(n,"=").concat(i)})).join("&")},66023:(t,n,e)=>{e.d(n,{E:()=>f,z:()=>p});var r=e(11735),i=e(96811),o=e(18411),s=e(67400),a=e(29273),c=e(54163);const l="edition-switcher-banner",d=new Promise((()=>{})),u=()=>new URLSearchParams(window.location.search).get("edition-switcher-banner"),p=(t,n)=>{var e;const p=null===(e=(0,c.b1)(t))||void 0===e?void 0:e.editionId,f=(0,c.y4)(t)&&p!==n,[h,g]=(0,s.useState)(f),{data:m}=(0,a.Ay)(l,(()=>d)),b=!!(null==m?void 0:m.hidden);return(0,s.useEffect)((()=>{g(f&&!(()=>{const t=u(),n=(0,o.R)({name:"gu_hide_edition_switcher_banner"});return"hide"===t||"true"===n&&"unhide"!==t})())}),[f]),(0,s.useEffect)((()=>{(()=>{const t=u();"hide"===t?(0,r.T)({name:"gu_hide_edition_switcher_banner",value:"true"}):"unhide"===t&&(0,i.z)({name:"gu_hide_edition_switcher_banner"})})()}),[]),{showBanner:h,isBannerClosed:b}},f=()=>{(0,a.Tk)(l,{hidden:!0},!1)}},40901:(t,n,e)=>{e.d(n,{L:()=>o});var r=e(67400),i=e(50026);const o=t=>{const[n,e]=(0,r.useState)();return(0,r.useEffect)((()=>{(0,i.V5)(t).then((t=>{let{pageViewId:n}=t;e(n)})).catch((()=>{e("no-page-view-id-available")}))}),[t]),n}},53694:(t,n,e)=>{e.d(n,{M:()=>r});const r=t=>"var(".concat(t,")")}}]); |
Check failure
Code scanning / CodeQL
Incomplete regular expression for hostnames High
Copilot Autofix AI 17 days ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
@@ -0,0 +1,2 @@ | |||
(self.webpackChunk_guardian_dotcom_rendering=self.webpackChunk_guardian_dotcom_rendering||[]).push([[2118,4490,5427],{44165:(t,e,n)=>{var r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype.toString,p=Math.max,f=Math.min,m=function(){return u.Date.now()};function b(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function g(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==d.call(t)}(t))return NaN;if(b(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=b(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var n=o.test(t);return n||a.test(t)?s(t.slice(2),n?2:8):i.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,o,a,s,c,l=0,u=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function w(e){var n=r,o=i;return r=i=void 0,l=e,a=t.apply(o,n)}function v(t){var n=t-c;return void 0===c||n>=e||n<0||d&&t-l>=o}function y(){var t=m();if(v(t))return x(t);s=setTimeout(y,function(t){var n=e-(t-c);return d?f(n,o-(t-l)):n}(t))}function x(t){return s=void 0,h&&r?w(t):(r=i=void 0,a)}function j(){var t=m(),n=v(t);if(r=arguments,i=this,c=t,n){if(void 0===s)return function(t){return l=t,s=setTimeout(y,e),u?w(t):a}(c);if(d)return s=setTimeout(y,e),w(c)}return void 0===s&&(s=setTimeout(y,e)),a}return e=g(e)||0,b(n)&&(u=!!n.leading,o=(d="maxWait"in n)?p(g(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h),j.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0},j.flush=function(){return void 0===s?a:x(m())},j}},53419:(t,e,n)=>{"use strict";n.d(e,{xA:()=>p});var r=n(24017),i=n(99923);function o(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function a(){const t=o(["\n\tdisplay: grid;\n\tgrid-auto-rows: auto;\n\n\tgrid-template-columns:\n\t\t[viewport-start]\n\t\t0\n\t\t[content-start main-column-start]\n\t\trepeat(4, minmax(0, 1fr))\n\t\t[content-end main-column-end]\n\t\t0\n\t\t[viewport-end];\n\n\tcolumn-gap: 10px;\n\n\t"," {\n\t\tcolumn-gap: 20px;\n\t}\n\n\t"," {\n\t\tgrid-template-columns:\n\t\t\t[viewport-start]\n\t\t\tminmax(0, 1fr)\n\t\t\t[content-start main-column-start]\n\t\t\trepeat(12, 40px)\n\t\t\t[content-end main-column-end]\n\t\t\tminmax(0, 1fr)\n\t\t\t[viewport-end];\n\t}\n\n\t"," {\n\t\tgrid-template-columns:\n\t\t\t[viewport-start]\n\t\t\tminmax(0, 1fr)\n\t\t\t[content-start main-column-start]\n\t\t\trepeat(12, 60px)\n\t\t\t[content-end main-column-end]\n\t\t\tminmax(0, 1fr)\n\t\t\t[viewport-end];\n\t}\n"]);return a=function(){return t},t}function s(){const t=o(["\n\t"," {\n\t\tgrid-template-columns:\n\t\t\t[viewport-start]\n\t\t\tminmax(0, 1fr)\n\t\t\t[content-start left-column-start]\n\t\t\trepeat(2, 60px)\n\t\t\t[left-column-end main-column-start]\n\t\t\trepeat(12, 60px)\n\t\t\t[content-end main-column-end]\n\t\t\tminmax(0, 1fr)\n\t\t\t[viewport-end];\n\t}\n\n\t"," {\n\t\tgrid-template-columns:\n\t\t\t[viewport-start]\n\t\t\tminmax(0, 1fr)\n\t\t\t[content-start left-column-start]\n\t\t\trepeat(3, 60px)\n\t\t\t[left-column-end main-column-start]\n\t\t\trepeat(12, 60px)\n\t\t\t[main-column-end]\n\t\t\trepeat(1, 60px)\n\t\t\t[content-end]\n\t\t\tminmax(0, 1fr)\n\t\t\t[viewport-end];\n\t}\n"]);return s=function(){return t},t}function c(){const t=o(["\n\tdisplay: none;\n\t"," {\n\t\tdisplay: block;\n\t}\n"]);return c=function(){return t},t}function l(){const t=o(["\n\tdisplay: none;\n\t"," {\n\t\tdisplay: block;\n\t}\n"]);return l=function(){return t},t}const u=(0,r.css)(a(),i.HT.mobileLandscape,i.HT.tablet,i.HT.desktop),d=(0,r.css)(s(),i.HT.leftCol,i.HT.wide),p=t=>{let{type:e="div",style:n,hasPageSkin:i,children:o}=t;return(0,r.jsx)(e,{css:[u,!i&&d],style:n},o)};(0,r.css)(c(),i.HT.leftCol),(0,r.css)(l(),i.HT.leftCol)},31492:(t,e,n)=>{"use strict";n.r(e),n.d(e,{TopBar:()=>nt});var r=n(50484),i=n(24017),o=n(99923),a=n(96378),s=n(3959),c=n(67400),l=n(25421),u=n(33151),d=n(14374),p=n(40901),f=n(53694),m=n(15593),b=n(53419),g=n(7351);function h(){const t=(e=["\n\tdisplay: flex;\n\talign-items: center;\n\t",";\n\n\tcolor: ",";\n\ttransition: color 80ms ease-out;\n\ttext-decoration: none;\n\n\tpadding: ","px;\n\n\t:hover,\n\t:focus {\n\t\ttext-decoration: underline;\n\t}\n\n\tsvg {\n\t\tfill: currentColor;\n\t\tfloat: left;\n\t\theight: 18px;\n\t\twidth: 18px;\n\t\tmargin: 0 ","px 0 0;\n\t}\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));var e,n;return h=function(){return t},t}const w=(0,i.css)(h(),g.keT,(0,f.M)("--masthead-top-bar-link-text"),a.x[1],a.x[1]),v=t=>{let{href:e,dataLinkName:n,children:i}=t;return(0,r.jsx)("a",{href:e,css:w,"data-link-name":n,children:i})};var y=n(88482),x=n(82871),j=n(54684);function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const k=t=>Boolean(t.extras.message)&&Boolean(t.extras.target)&&Boolean(t.extras.ophanLabel),P=(t,e)=>{const n=(t=>t.reduce(((t,e)=>{var n;return t[e.target]=(null!==(n=t[e.target])&&void 0!==n?n:[]).concat(e),t}),{}))(e);return t.map((t=>{var e,r;const i=(null!==(e=t.notifications)&&void 0!==e?e:[]).concat(null!==(r=n[t.id])&&void 0!==r?r:[]);return 0===i.length?t:(o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){O(t,e,n[e])}))}return t}({},t),a=null!=(a={notifications:i})?a:{},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(a)).forEach((function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(a,t))})),o);var o,a}))};var S,C=n(6576),U=n(37438);function I(){return I=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},I.apply(null,arguments)}const T=function(t){return c.createElement("svg",I({width:14,height:14,viewBox:"0 0 14 14"},t),S||(S=c.createElement("path",{d:"M7 0C3.1 0 0 3.1 0 7c0 2 .9 3.9 2.4 5.2C3.6 13.4 5.3 14 7 14c1.7 0 3.4-.6 4.7-1.8C13.2 10.9 14 9 14 7c0-3.9-3.1-7-7-7zm0 1.8c1.3 0 2.1.8 2.1 2.1S8 6.3 7 6.3c-.8 0-2-1.1-2-2.4 0-1.4.7-2.1 2-2.1zm0 11.6c-1.7 0-3.3-.7-4.5-1.8l.8-3.2.5-.5c1-.4 2.1-.5 3.1-.5 1.1 0 2.1.2 3.1.5l.5.5.9 3.2c-1.1 1.2-2.7 1.8-4.4 1.8z"})))};var z=n(93937);function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){M(t,e,n[e])}))}return t}function E(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function A(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function L(){const t=A(["\n\tdisplay: flex;\n\t/** Required to absolutely position the dropdown menu */\n\tposition: relative;\n\talign-items: center;\n\t",";\n\n\tcolor: ",";\n\ttransition: color 80ms ease-out;\n\ttext-decoration: none;\n\n\tpadding: ","px 0 ","px ","px;\n\n\t:hover,\n\t:focus {\n\t\ttext-decoration: underline;\n\t}\n\n\tsvg {\n\t\tfill: currentColor;\n\t\tfloat: left;\n\t\theight: 18px;\n\t\twidth: 18px;\n\t\tmargin: 0 ","px 0 0;\n\t}\n\n\tz-index: ",";\n"]);return L=function(){return t},t}function R(){const t=A(["\n\tcolor: ",";\n\tpadding-right: 0;\n\tpadding-bottom: 0;\n\tmargin-top: 0;\n\n\tfont-weight: bold;\n\n\t&:not(ul):hover {\n\t\tcolor: ",";\n\t\ttext-decoration: underline;\n\t}\n\n\t/** Handles case of *new* top bar being 52px high until tablet */\n\t&:not(button) {\n\t\t"," {\n\t\t\ttop: 44px;\n\t\t}\n\n\t\t"," {\n\t\t\tright: 0;\n\t\t\ttop: 52px;\n\t\t}\n\n\t\t"," {\n\t\t\ttop: 56px;\n\t\t}\n\t}\n"]);return R=function(){return t},t}const D=(0,i.css)(L(),g.keT,(0,f.M)("--masthead-top-bar-link-text"),a.x[1],a.x[1],a.x[1],a.x[1],(0,x.f)("mastheadMyAccountDropdown")),N=t=>{let{idUrl:e}=t;return(0,r.jsxs)("a",{css:D,href:"".concat(e,"/signin?INTCMP=DOTCOM_NEWHEADER_SIGNIN&ABCMP=ab-sign-in&").concat((0,j.h)("guardian_signin_header")),"data-link-name":(0,u.K)("header","topbar","signin"),children:[(0,r.jsx)(T,{})," Sign in"]})},H=(0,i.css)(R(),(0,f.M)("--masthead-top-bar-link-text"),(0,f.M)("--masthead-top-bar-link-text"),o.TG.tablet,o.HT.tablet,o.HT.desktop),W=t=>{let e,{mmaUrl:n,idUrl:i,discussionApiUrl:o,notifications:a,authStatus:s}=t;const{data:c,error:l}=(0,C.g)("SignedInWithCookies"===s.kind?(0,y.w)(o,"profile/me?strict_sanctions_check=false"):void 0,{},{credentials:"include"});if("SignedInWithCookies"===s.kind&&c&&(e=c.userProfile.userId),"SignedInWithOkta"===s.kind&&(e=s.idToken.claims.legacy_identity_id),!e||l)return(0,r.jsx)(N,{idUrl:i});const d=((t,e,n)=>[{id:"account_overview",url:"".concat(t,"/"),title:"Account overview"},{id:"billing",url:"".concat(t,"/billing"),title:"Billing"},{id:"edit_profile",url:"".concat(t,"/public-settings"),title:"Profile"},{id:"email_prefs",url:"".concat(t,"/email-prefs"),title:"Emails & marketing"},{id:"data_privacy",url:"".concat(t,"/data-privacy"),title:"Data privacy"},{id:"settings",url:"".concat(t,"/account-settings"),title:"Settings"},{id:"help",url:"".concat(t,"/help"),title:"Help"},{id:"comment_activity",url:"".concat(e,"/user/id/").concat(n),title:"Comments & replies"},{id:"sign_out",url:"".concat(e,"/signout"),title:"Sign out"}].map((t=>E(_({},t),{dataLinkName:(0,u.K)("header","topbar",t.id.replaceAll("_"," "))}))))(n,i,e),p=P(d,a);return(0,r.jsxs)("div",{css:D,children:[(0,r.jsx)(T,{}),(0,r.jsx)(z.Dropdown,{label:"My account",links:p,id:"topbar-my-account",dataLinkName:(0,u.K)("header","topbar","my account"),cssOverrides:H})]})},B=t=>{var{idApiUrl:e,authStatus:n,renderingTarget:i}=t,o=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,["idApiUrl","authStatus","renderingTarget"]);const{brazeCards:a}=(0,U.m)(e,i),[s,l]=(0,c.useState)([]);return(0,c.useEffect)((()=>{if(a){const t=a.getCardsForProfileBadge().filter(k).map((t=>({id:t.id,target:t.extras.target,message:t.extras.message,ophanLabel:t.extras.ophanLabel,logImpression:()=>{t.logImpression()}})));t.length&&l(t)}}),[a]),(0,r.jsx)(W,E(_({},o),{notifications:s,authStatus:n}))},V=t=>{let{mmaUrl:e,idUrl:n,discussionApiUrl:i,idApiUrl:o,authStatus:a}=t;const{renderingTarget:s}=(0,m.U)();return(0,r.jsx)(r.Fragment,{children:"SignedInWithOkta"===a.kind||"SignedInWithCookies"===a.kind?(0,r.jsx)(B,{mmaUrl:e,idUrl:n,discussionApiUrl:i,idApiUrl:o,authStatus:a,renderingTarget:s}):(0,r.jsx)(N,{idUrl:n})})};var G=n(46649);function K(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function q(){const t=K(["\n\tgrid-column: content-start / main-column-end;\n\tbackground-color: ",";\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: flex-end;\n\tbox-sizing: border-box;\n\theight: 52px;\n\t"," {\n\t\theight: 60px;\n\t}\n\t"," {\n\t\theight: 64px;\n\t}\n"]);return q=function(){return t},t}function F(){const t=K(["\n\theight: 100%;\n\tdisplay: flex;\n"]);return F=function(){return t},t}function J(){const t=K(["\n\tmargin-right: auto;\n"]);return J=function(){return t},t}function $(){const t=K(["\n\t"," {\n\t\t:before {\n\t\t\tcontent: '';\n\t\t\tborder-left: 1px solid\n\t\t\t\t",";\n\t\t\theight: 38px;\n\t\t}\n\t}\n"]);return $=function(){return t},t}function Y(){const t=K(["\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t "]);return Y=function(){return t},t}const Q=(0,i.css)(q(),(0,f.M)("--masthead-top-bar-background"),o.HT.tablet,o.HT.desktop),X=(0,i.css)(F()),Z=(0,i.css)(J()),tt=(0,i.css)($(),o.HT.desktop,(0,f.M)("--masthead-top-bar-vertical-divider")),et=t=>{let{alignLeft:e=!1,showVerticalDivider:n=!0,isLastChild:o=!1,children:s}=t;return(0,r.jsx)("div",{css:[X,e&&Z,n?tt:(0,i.css)(Y())],style:{paddingRight:o?0:"".concat(a.x[3],"px")},children:s})},nt=t=>{let{editionId:e,idUrl:n,mmaUrl:i,discussionApiUrl:o,idApiUrl:a,contributionsServiceUrl:f,hasPageSkin:g=!1}=t;const h=(0,d.w)(),{renderingTarget:w}=(0,m.U)(),y=(0,p.L)(w),[x,j]=(0,c.useState)("");(0,c.useEffect)((()=>{j(window.location.origin+window.location.pathname)}),[]);const O=(0,l.r)({base:"https://support.theguardian.com/subscribe".concat("UK"===e?"":"/weekly"),componentType:"ACQUISITIONS_HEADER",componentId:"PrintSubscriptionsHeaderLink",pageViewId:y,referrerUrl:x});return(0,r.jsx)(b.xA,{type:"div",hasPageSkin:g,children:(0,r.jsxs)("div",{css:Q,children:[(0,r.jsx)(et,{showVerticalDivider:!1,alignLeft:!0,children:(0,r.jsx)(G.TopBarSupport,{contributionsServiceUrl:f})}),(0,r.jsx)(s.L,{until:"desktop",children:(0,r.jsx)(et,{children:(0,r.jsx)(v,{dataLinkName:(0,u.K)("header","topbar","printsubs"),href:O,children:"Print subscriptions"})})}),(0,r.jsx)(s.L,{until:"desktop",children:(0,r.jsx)(et,{children:["AU","US"].includes(e)?(0,r.jsx)(v,{dataLinkName:(0,u.K)("header","topbar","newsletters"),href:"/email-newsletters",children:"Newsletters"}):(0,r.jsx)(v,{dataLinkName:(0,u.K)("header","topbar","job-cta"),href:"https://jobs.theguardian.com",children:"Search jobs"})})}),(0,r.jsx)(et,{isLastChild:!0,children:(0,r.jsx)(V,{mmaUrl:null!=i?i:"https://manage.theguardian.com",idUrl:null!=n?n:"https://profile.theguardian.com",discussionApiUrl:o,idApiUrl:a,authStatus:h})})]})})}},46649:(t,e,n)=>{"use strict";n.r(e),n.d(e,{TopBarSupport:()=>x});var r=n(50484),i=n(24017),o=n(9474),a=n(18411),s=n(29995),c=n(67400),l=n(50026),u=n(36226),d=n(20522),p=n(14374),f=n(75747),m=n(40901),b=n(15593);function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){g(t,e,n[e])}))}return t}function w(){const t=(e=["\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\toverflow-wrap: nowrap;\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));var e,n;return w=function(){return t},t}const v=(0,i.css)(w()),y=t=>{let{countryCode:e,pageViewId:i,contributionsServiceUrl:f}=t;const[m,g]=(0,c.useState)(null),[w,y]=(0,c.useState)(null),x=(0,p.T)(),{renderingTarget:j}=(0,b.U)();return(0,c.useEffect)((()=>{if((0,o.b)(e)||"Pending"===x)return;const t=(0,u.h3)(x);if("Pending"===t)return;(0,d.q)();const r={tracking:{ophanPageId:i,platformId:"GUARDIAN_WEB",referrerUrl:window.location.origin+window.location.pathname,clientName:"dcr"},targeting:{showSupportMessaging:!t,countryCode:e,mvtId:Number((0,a.R)({name:"GU_mvt_id",shouldMemoize:!0})),purchaseInfo:(0,u.q6)(),isSignedIn:x}};(0,s._b)(f,r).then((t=>{if(!t.data)return null;const{module:e}=t.data;return g(e),("SignInPromptHeader"===e.name?Promise.all([n.e(4684),n.e(9288),n.e(7350)]).then(n.bind(n,77350)):Promise.all([n.e(4684),n.e(9288),n.e(342)]).then(n.bind(n,30342))).then((t=>{y((()=>{var n;return null!==(n=t[e.name])&&void 0!==n?n:null}))}))})).catch((t=>{const e="Error importing RR header links: ".concat(String(t));console.log(e),window.guardian.modules.sentry.reportError(new Error(e),"rr-header-links")}))}),[e,x,f,i]),null!==w&&m?(0,r.jsx)("div",{css:v,children:(0,r.jsx)(w,h({submitComponentEvent:t=>{(0,l.u_)(t,j)}},m.props))}):null},x=t=>{let{contributionsServiceUrl:e}=t;const{renderingTarget:n}=(0,b.U)(),i=(0,f.F)("support-the-Guardian"),a=(0,m.L)(n);return(0,o.b)(i)||(0,o.b)(a)?null:(0,r.jsx)(y,{countryCode:i,pageViewId:a,contributionsServiceUrl:e})}},25421:(t,e,n)=>{"use strict";n.d(e,{r:()=>i});var r=n(41124);const i=t=>{let{base:e,componentType:n,componentId:i,campaignCode:o,abTest:a,pageViewId:s,referrerUrl:c}=t;if(e.search(/(support.theguardian.com)(\/[a-z]*)?\/(contribute|subscribe)/)>=0){const t={source:"GUARDIAN_WEB",componentId:i,componentType:n,campaignCode:o,abTest:a,referrerPageviewId:s,referrerUrl:c},l={REFPVID:s,INTCMP:o,acquisitionData:JSON.stringify(t)};return"".concat(e).concat(e.includes("?")?"&":"?").concat((0,r.G)(l))}return e}},36226:(t,e,n)=>{"use strict";n.d(e,{Jj:()=>h,Pp:()=>l,VF:()=>u,Vi:()=>c,Xr:()=>y,_f:()=>j,h3:()=>p,mG:()=>v,mV:()=>g,n8:()=>x,q6:()=>k,tZ:()=>O,yw:()=>w});var r=n(18411),i=n(9474),o=n(61082),a=n(9092),s=n(67400);const c="gu_hide_support_messaging",l="gu_recurring_contributor",u="gu.contributions.contrib-timestamp",d="gu.noRRBanner",p=t=>{const e=(t=>{switch((0,r.R)({name:c})){case"true":return!0;case"false":return!1;default:return!!t&&"Pending"}})(t);return"Pending"===e?"Pending":e||(()=>{const t=(()=>{const t=(0,r.R)({name:u});if(t)return(t?parseInt(t,10):0)||void 0})();return!(0,i.b)(t)&&((t,e)=>{const n=Date.now()-t;return Math.floor(n/864e5)})(t)<=90})()},f=[1,3,7],m=[1,3,5,7],b=()=>null!==(0,r.R)({name:"gu_article_count_opt_out"}),g=()=>new Promise((t=>{(0,r.R)({name:"gu-cmp-disabled",shouldMemoize:!0})&&t(!0),(0,a.Ym)((e=>{let{usnat:n,tcfv2:r,aus:i}=e;if(null!=n?n:i)t(!0);else if(r){const e=f.every((t=>r.consents[t]));e||o.I.local.remove("gu.history.weeklyArticleCount"),t(e)}}))})),h=async()=>!await g()||b(),w=async()=>!await g()||b(),v=()=>{const[t,e]=(0,s.useState)("Pending");return(0,s.useEffect)((()=>{h().then(e).catch((()=>e(!0)))}),[]),t},y=()=>new Promise((t=>{(0,r.R)({name:"gu-cmp-disabled",shouldMemoize:!0})&&t(!0),(0,a.Ym)((e=>{let{usnat:n,tcfv2:r,aus:i}=e;if(null!=n?n:i)t(!0);else if(r){const e=m.every((t=>r.consents[t]));t(e)}}))})),x=()=>!!o.I.local.get(d),j=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();return o.I.local.set(d,!0,t+12e5)},O=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();return!!t&&e-new Date(t).getTime()<36e5},k=()=>{const t=(0,r.R)({name:"GU_CO_COMPLETE",shouldMemoize:!0});if(!t)return;let e;try{e=JSON.parse(decodeURIComponent(t))}catch(t){}return e}},47513:(t,e,n)=>{"use strict";n.d(e,{J:()=>s,h:()=>c});var r=n(88482);function i(t){if(!t.ok)throw Error(t.statusText||"getIdApiUserData | An api call returned HTTP status ".concat(t.status));return t}const o=t=>fetch(t,{credentials:"include"}).then(i).then((t=>t.json())),a={},s=t=>{if(!a.idapiUserMeResponse){const e=(0,r.w)(t,"user/me");a.idapiUserMeResponse=o(e)}return a.idapiUserMeResponse},c=t=>{if(!a.idapiUserIdentifiersResponse){const e=(0,r.w)(t,"user/me/identifiers");a.idapiUserIdentifiersResponse=o(e)}return a.idapiUserIdentifiersResponse}},54684:(t,e,n)=>{"use strict";n.d(e,{h:()=>i});var r=n(41124);const i=(t,e)=>{const n={componentType:"identityauthentication",componentId:t};return e&&(n.viewId=e),"componentEventParams=".concat(encodeURIComponent((0,r.G)(n)))}},33151:(t,e,n)=>{"use strict";n.d(e,{K:()=>r});const r=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.join(" : ")}},41124:(t,e,n)=>{"use strict";n.d(e,{G:()=>r});const r=t=>Object.keys(t).map((e=>{var n;const r=null!==(n=t[e])&&void 0!==n?n:"undefined",i=Array.isArray(r)?r.map((t=>encodeURIComponent(t))).join(","):encodeURIComponent(r);return"".concat(e,"=").concat(i)})).join("&")},20522:(t,e,n)=>{"use strict";n.d(e,{q:()=>s});var r=n(24017),i=n(50484),o=n(67400);let a=!1;const s=()=>{a||(window.guardian.automat={emotionReact:r,emotionReactJsxRuntime:i,react:o.default},a=!0)}},6576:(t,e,n)=>{"use strict";n.d(e,{g:()=>a});var r=n(9474),i=n(29273);function o(t){if(!t.ok)throw Error(t.statusText||"useApi | An api call returned HTTP status ".concat(t.status));return t}const a=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const{data:a,error:s}=(0,i.Ay)(t,(t=>e=>fetch(e,t).then(o).then((t=>t.json())))(n),e);return{data:a,error:s,loading:!!t&&(0,r.b)(s)&&(0,r.b)(a)}}},14374:(t,e,n)=>{"use strict";n.d(e,{T:()=>o,w:()=>a});var r=n(67400),i=n(97656);const o=()=>{switch(a().kind){case"Pending":return"Pending";case"SignedInWithCookies":case"SignedInWithOkta":return!0;case"SignedOutWithCookies":case"SignedOutWithOkta":return!1}},a=()=>{const[t,e]=(0,r.useState)({kind:"Pending"});return(0,r.useEffect)((()=>{(0,i.kU)((t=>{e((0,i.dx)(t))}),(()=>e((0,i.Hn)()))).catch((t=>{console.error(t)}))}),[]),t}},37438:(t,e,n)=>{"use strict";n.d(e,{m:()=>y});var r=n(6506),i=n(53994),o=n(61082),a=n(60439),s=n(88793),c=n(50026);const l="gu.brazeUserSet";var u=n(47513),d=n(97656);const p=async t=>(0,d.kU)((t=>{var e;return null===(e=t.idToken)||void 0===e?void 0:e.claims.braze_uuid}),(()=>(0,u.h)(t).then((t=>t.brazeUuid)).catch((t=>{window.guardian.modules.sentry.reportError(t,"getBrazeUuid")}))));var f=n(9092);const m=(t,e,n)=>({isSuccessful:!1,failure:{field:t,data:e},data:n});var b=n(9474);const g={enableLogging:!0,noCookies:!0,baseUrl:"https://sdk.fra-01.braze.eu/api/v3",sessionTimeoutInSeconds:1,minimumIntervalBetweenTriggerActionsInSeconds:0,devicePropertyAllowlist:[]},h=(()=>{let t;return e=>((0,b.b)(t)&&(t=(async t=>{const e=await n.e(7659).then(n.t.bind(n,14844,23));return e.setLogger((t=>(0,a.Rm)("tx",t))),e.initialize(t,g),e})(e)),t)})(),w=async(t,e,n)=>{if(!o.I.local.isAvailable())return{brazeMessages:new r._v,brazeCards:new r.ho};const i=await(async(t,e)=>{const n=((t,e)=>[{name:"apiKey",value:Promise.resolve(window.guardian.config.page.brazeApiKey)},{name:"brazeSwitch",value:Promise.resolve(window.guardian.config.switches.brazeSwitch)},{name:"brazeUuid",value:t?p(e):Promise.resolve(null)},{name:"consent",value:new Promise(((t,e)=>{(0,f.Ym)((n=>{try{t((0,f.gS)("braze",n))}catch(t){e(t)}}))}))},{name:"isNotPaidContent",value:Promise.resolve(!window.guardian.config.page.isPaidContent)}])(t,e),r={};for(const{name:t,value:e}of n)try{const n=await e;if(!n)return m(t,n,r);r[t]=n}catch(e){return m(t,e instanceof Error?e.message:e,r)}return{isSuccessful:!0,data:r}})(e,t);if(!i.isSuccessful){const{failure:t,data:e}=i;return(0,a.Rm)("tx","Not attempting to show Braze messages. Dependency ".concat(t.field," failed with ").concat(String(t.data),".")),await(async(t,e,n,i)=>{const a="true"===o.I.local.getRaw(l);if(!e&&a||!n&&a||!i&&a)try{t&&(await h(t)).wipeData(),r.tP.clear(),o.I.local.remove(l)}catch(t){window.guardian.modules.sentry.reportError(t,"braze-maybeWipeUserData")}})(e.apiKey,e.brazeUuid,e.consent,e.brazeSwitch),{brazeMessages:new r._v,brazeCards:new r.ho}}try{const{endPerformanceMeasure:t}=(0,s.h)("tx","braze-sdk-load"),e=await h(i.data.apiKey),a=t();(await(0,c.V5)(n)).record({component:"braze-sdk-load-timing",value:a});const u=(t,e)=>{window.guardian.modules.sentry.reportError(t,e)};o.I.local.setRaw(l,"true"),e.changeUser(i.data.brazeUuid),e.openSession();const d=window.guardian.config.switches.brazeContentCards?new r.ue(e,u):new r.ho;return{brazeMessages:new r.xK(e,r.tP,u,r.Aw),brazeCards:d}}catch(t){return{brazeMessages:new r._v,brazeCards:new r.ho}}};var v=n(14374);const y=(t,e)=>{const n=(0,v.w)(),o="SignedInWithOkta"===n.kind||"SignedInWithCookies"===n.kind,{data:a,error:s}=(0,i.A)("Pending"!==n.kind?"braze-message":null,(()=>w(t,o,e)));return s?{brazeMessages:new r._v,brazeCards:new r.ho}:{brazeMessages:null==a?void 0:a.brazeMessages,brazeCards:null==a?void 0:a.brazeCards}}},75747:(t,e,n)=>{"use strict";n.d(e,{F:()=>a});var r=n(9786),i=n(67400),o=n(2899);const a=t=>{const[e,n]=(0,i.useState)();return(0,i.useEffect)((()=>{(0,o.C)().then((t=>{(0,r.R)(t)&&n(t)})).catch((e=>{const n="Error fetching country code: ".concat(String(e));window.guardian.modules.sentry.reportError(new Error(n),t)}))}),[t]),e}},40901:(t,e,n)=>{"use strict";n.d(e,{L:()=>o});var r=n(67400),i=n(50026);const o=t=>{const[e,n]=(0,r.useState)();return(0,r.useEffect)((()=>{(0,i.V5)(t).then((t=>{let{pageViewId:e}=t;n(e)})).catch((()=>{n("no-page-view-id-available")}))}),[t]),e}},53694:(t,e,n)=>{"use strict";n.d(e,{M:()=>r});const r=t=>"var(".concat(t,")")},92280:(t,e,n)=>{"use strict";n.d(e,{f:()=>r});const r={desktop:980,leftCol:1140,mobile:320,mobileLandscape:480,mobileMedium:375,phablet:660,tablet:740,wide:1300}},70991:(t,e,n)=>{"use strict";n.d(e,{Q:()=>r});const r="\n\tposition: absolute;\n\toverflow: hidden; /* gets rid of horizontal scrollbar that appears in some circumstances */\n\twhite-space: nowrap; /* The white-space property forces the content to render on one line. */\n\twidth: 1px; /* ensures content is announced by VoiceOver. */\n\theight: 1px; /* ensures content is announced by VoiceOver. */\n\tmargin: -1px; /* hide or clip content that does not fit into a 1-pixel visible area. */\n\tpadding: 0; /* hide or clip content that does not fit into a 1-pixel visible area. */\n\tborder: 0;\n\tclip: rect(1px, 1px, 1px, 1px); /* clip removes any visible trace of the element */\n\t-webkit-clip-path: inset(50%); /* clip removes any visible trace of the element */\n\tclip-path: inset(50%); /* clip removes any visible trace of the element */\n"},99923:(t,e,n)=>{"use strict";n.d(e,{HT:()=>s,TG:()=>c,Tq:()=>l});var r=n(92280);const i=t=>"@media (min-width: ".concat("".concat(t,"px"),")"),o=t=>"@media (max-width: ".concat("".concat(t-.1,"px"),")"),a=(t,e)=>"@media (min-width: ".concat("".concat(t,"px"),") and (max-width: ").concat("".concat(e-.1,"px"),")"),s={mobile:i(r.f.mobile),mobileMedium:i(r.f.mobileMedium),mobileLandscape:i(r.f.mobileLandscape),phablet:i(r.f.phablet),tablet:i(r.f.tablet),desktop:i(r.f.desktop),leftCol:i(r.f.leftCol),wide:i(r.f.wide)},c={mobile:o(r.f.mobile),mobileMedium:o(r.f.mobileMedium),mobileLandscape:o(r.f.mobileLandscape),phablet:o(r.f.phablet),tablet:o(r.f.tablet),desktop:o(r.f.desktop),leftCol:o(r.f.leftCol),wide:o(r.f.wide)},l={mobile:{and:{mobileMedium:a(r.f.mobile,r.f.mobileMedium),mobileLandscape:a(r.f.mobile,r.f.mobileLandscape),phablet:a(r.f.mobile,r.f.phablet),tablet:a(r.f.mobile,r.f.tablet),desktop:a(r.f.mobile,r.f.desktop),leftCol:a(r.f.mobile,r.f.leftCol),wide:a(r.f.mobileMedium,r.f.wide)}},mobileMedium:{and:{mobileLandscape:a(r.f.mobileMedium,r.f.mobileLandscape),phablet:a(r.f.mobileMedium,r.f.phablet),tablet:a(r.f.mobileMedium,r.f.tablet),desktop:a(r.f.mobileMedium,r.f.desktop),leftCol:a(r.f.mobileMedium,r.f.leftCol),wide:a(r.f.mobileMedium,r.f.wide)}},mobileLandscape:{and:{phablet:a(r.f.mobileLandscape,r.f.phablet),tablet:a(r.f.mobileLandscape,r.f.tablet),desktop:a(r.f.mobileLandscape,r.f.desktop),leftCol:a(r.f.mobileLandscape,r.f.leftCol),wide:a(r.f.mobileLandscape,r.f.wide)}},phablet:{and:{tablet:a(r.f.phablet,r.f.tablet),desktop:a(r.f.phablet,r.f.desktop),leftCol:a(r.f.phablet,r.f.leftCol),wide:a(r.f.phablet,r.f.wide)}},tablet:{and:{desktop:a(r.f.tablet,r.f.desktop),leftCol:a(r.f.tablet,r.f.leftCol),wide:a(r.f.tablet,r.f.wide)}},desktop:{and:{leftCol:a(r.f.desktop,r.f.leftCol),wide:a(r.f.desktop,r.f.wide)}},leftCol:{and:{wide:a(r.f.leftCol,r.f.wide)}}}},3959:(t,e,n)=>{"use strict";n.d(e,{L:()=>l});var r=n(50484),i=n(24017),o=n(99923);function a(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function s(){const t=a(["\n\t\t\t"," {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t"]);return s=function(){return t},t}function c(){const t=a(["\n\t\t\t","\n\t\t\t"," {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t"]);return c=function(){return t},t}const l=t=>{let e,{children:n,above:a,below:l,from:u=a,until:d=l}=t;return d&&(e=(0,i.css)(s(),o.TG[d])),u&&(e=(0,i.css)(c(),e,o.HT[u])),(0,r.jsx)("span",{css:e,children:n})}}}]); |
Check failure
Code scanning / CodeQL
Incomplete regular expression for hostnames High
Copilot Autofix AI 17 days ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
d;f[e]=E},b(a){function b(a,b){let e; let c; let d; let r; let h;for(h in a){d=a[h];w(d,"String")&&(d={ path:a[h] });d.name=d.name||h;r=f;c=G(z(d.name));e=c.h;if(c=c.f)r=g[c],r||(r=g[c]=A(f),r.c=A(f.c),r.g=[]),delete a[h];c=d;const m=b; let l=void 0;c.path=z(c.path||c.location||"");m&&(l=c.main||"./main",l.charAt(0)=="."||(l=`./${l}`),c.S=H(l,`${c.name}/`));c.b=c.config;c.b&&(c.b=A(f,c.b));c.Y=e.split("/").length;e?(r.c[e]=c,r.g.push(e)):r.s=k.W(d.path,f)}}function e(a){const b=a.c;a.U=new RegExp(`^(${a.g.sort(function(a, | ||
c){return b[c].Y-b[a].Y}).join("|").replace(/\/|\./g,"\\$&")})(?=\\/|$)`);delete a.g}let c; let f; let g; let d;"baseUrl"in a&&(a.s=a.baseUrl);"main"in a&&(a.S=a.main);"preloads"in a&&(a.va=a.preloads);"pluginPath"in a&&(a.V=a.pluginPath);if("dontAddFileExt"in a||a.i)a.i=new RegExp(a.dontAddFileExt||a.i);c=t;f=A(c,a);f.c=A(c.c);g=a.plugins||{};f.plugins=A(c.plugins);f.D=A(c.D,a.D);f.C=A(c.C,a.C);f.g=[];b(a.packages,!0);b(a.paths,!1);for(d in g)a=k.o(`${d}!`,"",f),f.plugins[a.substr(0,a.length-1)]=g[d];g=f.plugins; |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 18 days ago
To fix the problem, we need to ensure that all occurrences of special characters, including backslashes, are properly escaped in the input string. This can be achieved by using a regular expression with the global flag to replace all occurrences of the characters that need to be escaped. Additionally, we should ensure that backslashes themselves are escaped correctly.
The best way to fix this issue without changing existing functionality is to modify the regular expression used in the sorting function to include backslashes and ensure it has the global flag. This will ensure that all occurrences of the characters are replaced correctly.
-
Copy modified lines R12-R13
@@ -11,4 +11,4 @@ | ||
exports:k.P(a),config(){return a.b} },b.a=b.exports);return b},R(a){return a.url||(a.url=k.J(a.G.toUrl(a.id),a.b))},X(a){let b; let e; let c; let f; let g;b="curl";e="define";c=f=n;if(a&&(g=a.overwriteApi||a.ua,b=a.apiName||a.pa||b,c=a.apiContext||a.oa||c,e=a.defineName||a.ra||e,f=a.defineContext||a.qa||f,I&&w(I,"Function")&&(n.curl=I),I=null,L&&w(L,"Function")&&(n.define=L),L=null,!g)){if(c[b]&&c[b]!=d)throw Error(`${b} already exists`);if(f[e]&&f[e]!=E)throw Error(`${e} already exists`);}c[b]= | ||
d;f[e]=E},b(a){function b(a,b){let e; let c; let d; let r; let h;for(h in a){d=a[h];w(d,"String")&&(d={ path:a[h] });d.name=d.name||h;r=f;c=G(z(d.name));e=c.h;if(c=c.f)r=g[c],r||(r=g[c]=A(f),r.c=A(f.c),r.g=[]),delete a[h];c=d;const m=b; let l=void 0;c.path=z(c.path||c.location||"");m&&(l=c.main||"./main",l.charAt(0)=="."||(l=`./${l}`),c.S=H(l,`${c.name}/`));c.b=c.config;c.b&&(c.b=A(f,c.b));c.Y=e.split("/").length;e?(r.c[e]=c,r.g.push(e)):r.s=k.W(d.path,f)}}function e(a){const b=a.c;a.U=new RegExp(`^(${a.g.sort(function(a, | ||
c){return b[c].Y-b[a].Y}).join("|").replace(/\/|\./g,"\\$&")})(?=\\/|$)`);delete a.g}let c; let f; let g; let d;"baseUrl"in a&&(a.s=a.baseUrl);"main"in a&&(a.S=a.main);"preloads"in a&&(a.va=a.preloads);"pluginPath"in a&&(a.V=a.pluginPath);if("dontAddFileExt"in a||a.i)a.i=new RegExp(a.dontAddFileExt||a.i);c=t;f=A(c,a);f.c=A(c.c);g=a.plugins||{};f.plugins=A(c.plugins);f.D=A(c.D,a.D);f.C=A(c.C,a.C);f.g=[];b(a.packages,!0);b(a.paths,!1);for(d in g)a=k.o(`${d}!`,"",f),f.plugins[a.substr(0,a.length-1)]=g[d];g=f.plugins; | ||
d;f[e]=E},b(a){function b(a,b){let e; let c; let d; let r; let h;for(h in a){d=a[h];w(d,"String")&&(d={ path:a[h] });d.name=d.name||h;r=f;c=G(z(d.name));e=c.h;if(c=c.f)r=g[c],r||(r=g[c]=A(f),r.c=A(f.c),r.g=[]),delete a[h];c=d;const m=b; let l=void 0;c.path=z(c.path||c.location||"");m&&(l=c.main||"./main",l.charAt(0)=="."||(l=`./${l}`),c.S=H(l,`${c.name}/`));c.b=c.config;c.b&&(c.b=A(f,c.b));c.Y=e.split("/").length;e?(r.c[e]=c,r.g.push(e)):r.s=k.W(d.path,f)}}function e(a){const b=a.c;a.U=new RegExp(`^(${ a.g.sort(function(a, | ||
c){return b[c].Y-b[a].Y}).join("|").replace(/([\/.\\])/g,"\\$1")})(?=\\/|$)`);delete a.g}let c; let f; let g; let d;"baseUrl"in a&&(a.s=a.baseUrl);"main"in a&&(a.S=a.main);"preloads"in a&&(a.va=a.preloads);"pluginPath"in a&&(a.V=a.pluginPath);if("dontAddFileExt"in a||a.i)a.i=new RegExp(a.dontAddFileExt||a.i);c=t;f=A(c,a);f.c=A(c.c);g=a.plugins||{};f.plugins=A(c.plugins);f.D=A(c.D,a.D);f.C=A(c.C,a.C);f.g=[];b(a.packages,!0);b(a.paths,!1);for(d in g)a=k.o(`${d}!`,"",f),f.plugins[a.substr(0,a.length-1)]=g[d];g=f.plugins; | ||
for(d in g)if(g[d]=A(f,g[d]),a=g[d].g)g[d].g=a.concat(f.g),e(g[d]);for(d in c.c)f.c.hasOwnProperty(d)||f.g.push(d);e(f);return f},j(a,b){let e; let c; let f; let g;e=b.c;f=T.test(a)?a:a.replace(b.U,function(a){c=e[a]||{};g=c.b;return c.path||""});return{ b:g||t,url:k.W(f,b) }},W(a,b){const e=b.s;return e&&!T.test(a)?`${z(e)}/${a}`:a},J(a,b){return a+((b||t).i.test(a)?"":".js")},A(a,b,e){const c=l.createElement("script");c.onload=c.onreadystatechange=function(e){e=e||n.event;if(e.type== |
d;f[e]=E},b(a){function b(a,b){let e; let c; let d; let r; let h;for(h in a){d=a[h];w(d,"String")&&(d={ path:a[h] });d.name=d.name||h;r=f;c=G(z(d.name));e=c.h;if(c=c.f)r=g[c],r||(r=g[c]=A(f),r.c=A(f.c),r.g=[]),delete a[h];c=d;const m=b; let l=void 0;c.path=z(c.path||c.location||"");m&&(l=c.main||"./main",l.charAt(0)=="."||(l=`./${l}`),c.S=H(l,`${c.name}/`));c.b=c.config;c.b&&(c.b=A(f,c.b));c.Y=e.split("/").length;e?(r.c[e]=c,r.g.push(e)):r.s=k.W(d.path,f)}}function e(a){const b=a.c;a.U=new RegExp(`^(${a.g.sort(function(a, | ||
c){return b[c].Y-b[a].Y}).join("|").replace(/\/|\./g,"\\$&")})(?=\\/|$)`);delete a.g}let c; let f; let g; let d;"baseUrl"in a&&(a.s=a.baseUrl);"main"in a&&(a.S=a.main);"preloads"in a&&(a.va=a.preloads);"pluginPath"in a&&(a.V=a.pluginPath);if("dontAddFileExt"in a||a.i)a.i=new RegExp(a.dontAddFileExt||a.i);c=t;f=A(c,a);f.c=A(c.c);g=a.plugins||{};f.plugins=A(c.plugins);f.D=A(c.D,a.D);f.C=A(c.C,a.C);f.g=[];b(a.packages,!0);b(a.paths,!1);for(d in g)a=k.o(`${d}!`,"",f),f.plugins[a.substr(0,a.length-1)]=g[d];g=f.plugins; | ||
for(d in g)if(g[d]=A(f,g[d]),a=g[d].g)g[d].g=a.concat(f.g),e(g[d]);for(d in c.c)f.c.hasOwnProperty(d)||f.g.push(d);e(f);return f},j(a,b){let e; let c; let f; let g;e=b.c;f=T.test(a)?a:a.replace(b.U,function(a){c=e[a]||{};g=c.b;return c.path||""});return{ b:g||t,url:k.W(f,b) }},W(a,b){const e=b.s;return e&&!T.test(a)?`${z(e)}/${a}`:a},J(a,b){return a+((b||t).i.test(a)?"":".js")},A(a,b,e){const c=l.createElement("script");c.onload=c.onreadystatechange=function(e){e=e||n.event;if(e.type== | ||
"load"||X[c.readyState])delete M[a.id],c.onload=c.onreadystatechange=c.onerror="",b()};c.onerror=function(){e(Error(`Syntax or http error: ${a.url}`))};c.type=a.T||"text/javascript";c.charset="utf-8";c.async=!a.la;c.src=a.url;M[a.id]=c;P.insertBefore(c,W);return c},ba(a){const b=[]; let e;(typeof a==="string"?a:a.toSource?a.toSource():a.toString()).replace(Y,"").replace(Z,function(a,f,g,d){d?e=e==d?x:e:e||b.push(g);return""});return b},ga(a){let b; let e; let c; let f; let d; let r;d=a.length;c=a[d-1];f=w(c,"Function")? |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium
DOM text
Copilot Autofix AI 17 days ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
12baa00
to
11ba85a
Compare
dotcom:rendering-all
artifact files
v4.1.1 of
guardian/actions-riff-raff
saw an increase inRequestTimeout
errors. This can be seen in this build fromguardian/dotcom-rendering
.This PR is for debugging purposes to see if the changes in guardian/actions-riff-raff#191 resolve this issue. Specifically the setting of the
requestTimeout
property.The build of
guardian/dotcom-rendering
is quite complex with multiple steps. For this change, we're only interested in the step that executesguardian/actions-riff-raff
. To create a shorter feedback loop this branch adds all the static asset files fromguardian/dotcom-rendering
to the Riff-Raff bundle of this repository and switches to usingguardian/actions-riff-raff
from guardian/actions-riff-raff#191.