PageSourceSearch

https://www.aqa.org.uk/_next/static/chunks/5305cac0141b8260.js

js aqa.org.uk collected 2026-10-01 10:19:48 UTC 22,396 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23251,e=>{"use strict";var l=e.i(438232);e.s(["default",0,({...e})=>(0,l.jsx)("svg",{...e,height:"10",viewBox:"0 0 16 10",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M15.5745 0.780038L15.7092 0.91479C15.4113 0.631102 15.0567 0.489258 14.6596 0.489258C14.2482 0.489258 13.9078 0.631102 13.6241 0.91479L7.99291 6.53181L2.37589 0.91479C2.0922 0.631102 1.73759 0.489258 1.34043 0.489258C0.943263 0.489258 0.588652 0.631102 0.290779 0.91479L0.140625 1.12598C0.140625 1.12598 0 1.41834 0 1.82968C0 2.24103 0.141844 2.59564 0.439716 2.86514L6.95745 9.38288C7.24113 9.68075 7.58156 9.82259 7.99291 9.82259C8.40425 9.82259 8.74468 9.68075 9.04255 9.38288L15.5745 2.87933C15.8582 2.59564 16 2.24103 16 1.84387C16 1.43252 15.8582 1.07791 15.5745 0.780038Z"})})])},240485,e=>{"use strict";function l(e,t=!1){return e&&"string"==typeof e?t?e.replace(/(^\s*\w|[.!?]\s*\w)/g,e=>e.toUpperCase()):e.replace(/\b\w+/g,l=>{switch(l.toLowerCase()){case"gcse":return"GCSE";case"as":return"AS";case"aqa":return"AQA";case"fcse":return"FCSE";case"elc":return"ELC";case"epq":return"EPQ";case"uas":return"UAS";case"and":return"and";default:if(!isNaN(Number(e.charAt(0))))return l;return l.charAt(0).toUpperCase()+l.substring(1).toLowerCase()}}):""}e.s(["titleCase",()=>l])},741517,e=>{"use strict";var l=e.i(438232),t=e.i(15010),r=e.i(618566),i=e.i(363512),s=e.i(745011),a=e.i(55579);let n=({currentPage:e,items:t,variant:r,color:n="white"})=>(0,l.jsx)("div",{className:(0,s.cn)("hidden lg:block relative wrapper px-5 lg:px-10 xl:px-0","secondary"===r&&"py-2"),children:(0,l.jsx)("nav",{className:(0,s.cn)("flex flex-row gap-4","primary"===r&&"absolute top-4 z-10"),children:(0,l.jsxs)("ol",{className:(0,s.cn)("flex gap-4 shrink-0 items-center","white"===n&&"text-white fill-white","neutral"===n&&"text-neutral fill-neutral"),children:[(0,l.jsx)("li",{children:(0,l.jsx)(i.default,{className:"hover:underline",href:"/",children:"Home"})},"home"),t.map((e,t)=>(0,l.jsxs)("li",{className:"flex flex-row items-center gap-3",children:[(0,l.jsx)(a.default,{className:"h-3 opacity-50"}),(0,l.jsx)("div",{children:(0,l.jsx)(i.default,{className:"hover:underline",href:e.link,children:e.label})})]},`${e.label}-${t}`)),(0,l.jsxs)("li",{className:"flex flex-row items-center gap-3",children:[(0,l.jsx)(a.default,{className:"h-3 opacity-50"}),(0,l.jsx)("div",{children:e})]},`current-${e}`)]})})}),c=(e,l,t=[])=>{for(let r of e?.subpages??[])if(l.startsWith(r.slug.current)){if(r.slug.current===l)return{id:r._id,segments:[...t,{id:r._id,slug:r.slug.current,title:r.title}]};let e=c(r,l.slice(r.slug.current.length),[...t,{id:r._id,slug:r.slug.current,title:r.title}]);if(e)return e}return null};var o=e.i(240485);e.s(["default",0,({color:e="white",currentPage:i,page:s,pageType:a,pathname:d,variant:p})=>{let u=(0,r.usePathname)(),{title:h,breadcrumbs:x}=(0,t.useMemo)(()=>{if(s?.type==="nested"){let{segments:e=[]}=c(s,u.substring(s.slug.current.length),[{id:s._id,slug:s.slug.current,title:s.title}])??{},l=e.pop();return{title:l?.title??i,breadcrumbs:e.map((l,t)=>({link:e.slice(0,t+1).map(e=>e.slug).join(""),label:l.title}))}}let e=d.split("/").filter(e=>e);e.pop();let l=e.map((l,t)=>({link:"/"+e.slice(0,t+1).join("/"),label:"aqi"===l?"AQi":(0,o.titleCase)(l.replace(/-/g," "))}));return"qualification"===a&&l.length>0&&l.pop(),{title:i,breadcrumbs:l}},[i,s,a,d,u]);return(0,l.jsx)(n,{color:e,currentPage:h,items:x,variant:p})}],741517)},763170,e=>{"use strict";var l=e.i(438232),t=e.i(15010),r=e.i(657688),i=e.i(745011);let s=({...e})=>(0,l.jsx)("svg",{...e,height:"180",viewBox:"0 0 898 180",width:"898",children:(0,l.jsx)("path",{d:"M169.323 179.751L0.49707 0.746094H728.809L897.759 179.7
151H169.323Z"})}),a=({maskId:e,...t})=>(0,l.jsx)("svg",{...t,fill:"white",height:"288",viewBox:"0 0 1441.8 288",width:"1403.5",children:(0,l.jsx)("mask",{id:e,children:(0,l.jsx)("path",{d:"M 268.745 287.86 L 0.999 1.804 L 1164.862 1.804 L 1432.805 287.86 L 268.745 287.86 Z"})})}),n=(0,t.forwardRef)(({variant:e,className:t,title:n,...c},o)=>{let{subtitle:d,primaryColor:p,secondaryColor:u,textColor:h="white"}=c,{color:x}=c,{image:g,imageAlt:m}=c,{description:f}=c;return(0,l.jsxs)("header",{className:(0,i.cn)("z-0 flex overflow-hidden relative","primary"===e&&"fill-[color:var(--title-bar-secondary-color)] bg-[color:var(--title-bar-primary-color)] text-[color:var(--title-bar-text-color)]","secondary"===e&&"purple"===x&&"fill-purple-20 bg-purple text-white","secondary"===e&&"white"===x&&"fill-grey bg-white","tertiary"===e&&"bg-purple text-white",t),ref:o,style:{"--title-bar-primary-color":p,"--title-bar-secondary-color":u,"--title-bar-text-color":h},children:[g?(0,l.jsxs)("div",{className:(0,i.cn)("absolute top-0 h-full","tertiary"===e?"left-[60%] w-2/5 hidden md:block":"left-1/2 w-1/2"),children:[(0,l.jsx)("div",{className:"relative aspect-[16/9]  size-full overflow-hidden",children:(0,l.jsx)(r.default,{alt:m||"",className:"size-full object-cover",height:400,src:g,style:{mask:"url(#polygon-rhombus-mask)"},width:1200})}),(0,l.jsx)(a,{className:"h-full w-auto",maskId:"polygon-rhombus-mask"})]}):(0,l.jsx)("div",{className:"absolute left-1/2 top-0 z-20 h-full w-1/2",children:(0,l.jsx)(s,{className:"h-full w-auto"})}),(0,l.jsxs)("div",{className:(0,i.cn)("wrapper gap-2 z-30 pb-[16px] pt-[22px] md:pt-16 md:pb-[36px]","primary"===e&&"min-h-20 md:min-h-40 lg:min-h-[180px]","secondary"===e&&"min-h-[240px] md:min-h-[208px] lg:min-h-[240px]","tertiary"===e&&"min-h-[148px] md:min-h-[232px] lg:min-h-[288px]"),children:[(0,l.jsxs)("h1",{className:(0,i.cn)("secondary"===e&&"white"===x&&"text-purple"),children:[n,d&&(0,l.jsx)("sub",{className:"bottom-0 left-[0.25em] text-[0.625em] font-semibold leading-[1.4] lg:bottom-[-0.05em] lg:left-[0.75em] lg:text-[0.34375em] lg:leading-[1.454545]",children:d})]}),f&&(0,l.jsx)("p",{className:(0,i.cn)("lead line-clamp-4 md:line-clamp-2","secondary"===e&&"lg:max-w-[924px]","tertiary"===e&&"w-4/5"),children:f})]})]})});n.displayName="TitleBar",e.s(["default",0,n],763170)},275099,e=>{"use strict";var l=e.i(438232),t=e.i(15010),r=e.i(618566);e.s(["default",0,()=>{let e=(0,r.usePathname)();return(0,t.useEffect)(()=>{let e=()=>{let e=document.querySelector(".page-header");e&&document.body.style.setProperty("--header-height",`${e.clientHeight}px`),document.body.style.setProperty("--body-height",`${document.body.clientHeight}px`)};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[e]),(0,l.jsx)(l.Fragment,{})}])},729120,e=>{"use strict";var l=e.i(438232),t=e.i(15010),r=e.i(618566),i=e.i(363512),s=e.i(745011),a=e.i(23251);e.s(["SubNavigation",0,({activeLinkIndex:e,color:n,links:c})=>{let[o,d]=(0,t.useState)(!1),p=(0,r.usePathname)(),u=c[e??0];return(0,t.useEffect)(()=>{d(!1)},[p]),(0,l.jsxs)("div",{className:(0,s.cn)("wrapper border-b-[4px] lg:border-b-0 relative transition-colors",o?"border-transparent":"border-[color:var(--border-color)]"),style:{"--border-color":n},children:[!!u&&(0,l.jsxs)("button",{className:"z-10 flex flex-row items-center bg-white px-4 pb-[14px] pt-[18px] text-left text-base font-semibold text-neutral lg:hidden",onClick:()=>d(e=>!e),type:"button",children:[(0,l.jsx)("span",{className:"inline-block",children:u.title}),(0,l.jsx)(a.default,{className:"ml-[25px] inline-block [&_path]:fill-purple"})]}),(0,l.jsx)("nav",{className:(0,s.cn)("flex flex-col absolute left-0 right-0 top-[56px] lg:left-auto lg:right-auto lg:top-auto bg-white lg:bg-transparent lg:translate-y-0 transition-all lg:transition-none z-20","lg:relative lg:flex-row lg:gap-8 border-b-[4px] lg:border-b-0 border-[color:var(--border-color)] pt-[26px] lg:pt-0 pb-[10px] lg:pb-0 lg:opacity-100 lg:pointer-events-auto",o?"translate-y-0 pointer-events-auto opacity-100":"translate-y-[-56px] pointer-events-none opacity-0"),children:c.map((t,r)=>(0,l.jsx)(i.default,{className:(0,s.cn)("inline-block lg:border-b-4 pt-[10px] lg:pt-[18px] pb-[14px] text-base lg:text-lg text-neutral font-semibold","px-9 lg:px-0",r===e?"border-[color:var(--border-color)]":"border-transparent opacity-50"),href:t.url,target:t.target,children:t.title},r))}),(0,l.jsx)("div",{className:(0,s.cn)("block lg:hidden absolute left-0 top-[56px] right-0 transition-opacity bg-neutral z-10 h-[calc(var(--body-height,100svh)-56px-var(--header-height,0px))]",o?"opacity-50":"opacity-0 pointer-events-none"),onClick:()=>d(!1),role:"presentation"})]})}])},532229,e=>{"use strict";var l=e.i(438232);e.s(["default",0,({...e})=>(0,l.jsx)("svg",{...e,fill:"none",height:"32",viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{clipRule:"evenodd",d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32ZM22.1354 15.9011L21.4873 19.934H18.3186V30.0881C17.5265 30.2322 16.7343 30.3042 15.9421 30.3042C15.15 30.3042 14.3578 30.2322 13.5656 30.0881V19.934H9.96484V15.9011H13.5656V12.7324C13.5656 9.13166 15.8701 7.11523 19.1828 7.11523C20.191 7.11523 21.3433 7.25926 22.3515 7.4033V11.0761H20.4791C18.7507 11.0761 18.3
1186 11.9403 18.3186 13.0925V15.9011H22.1354Z",fill:e.fill,fillRule:"evenodd"})})])},585643,711682,e=>{"use strict";var l=e.i(438232);e.s(["default",0,({...e})=>(0,l.jsxs)("svg",{...e,height:"40",viewBox:"0 0 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_669_9525)",children:[(0,l.jsx)("mask",{height:"40",id:"mask0_669_9525",maskUnits:"userSpaceOnUse",width:"40",x:"0",y:"0",children:(0,l.jsx)("path",{d:"M0 0H40V40H0V0Z",fill:"white"})}),(0,l.jsx)("g",{mask:"url(#mask0_669_9525)",children:(0,l.jsx)("path",{clipRule:"evenodd",d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40ZM10.3304 29.9998H14.4768V16.6471H10.3304V29.9998ZM10 12.4016C10 13.7275 11.0754 14.8257 12.4013 14.8257C13.7268 14.8257 14.8027 13.7275 14.8027 12.4016C14.8027 11.7647 14.5497 11.1539 14.0993 10.7036C13.649 10.2532 13.0382 10.0002 12.4013 10.0002C11.7645 10.0002 11.1537 10.2532 10.7033 10.7036C10.253 11.1539 10 11.7647 10 12.4016ZM25.858 29.9998H30V22.665C30 19.0757 29.2286 16.3123 25.0321 16.3123C23.0147 16.3123 21.6625 17.4194 21.1089 18.4685H21.0509V16.6471H17.0741V29.9998H21.2161V23.3882C21.2161 21.6471 21.5464 19.9641 23.7022 19.9641C25.8268 19.9641 25.858 21.9507 25.858 23.4998V29.9998Z",fill:e.fill,fillRule:"evenodd"})})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_669_9525",children:(0,l.jsx)("rect",{fill:"white",height:"40",width:"40"})})})]})],585643),e.s(["default",0,({...e})=>(0,l.jsxs)("svg",{...e,height:"38",viewBox:"0 0 38 38",width:"38",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_669_9522)",children:[(0,l.jsx)("path",{d:"M19 38C29.4934 38 38 29.4934 38 19C38 8.50659 29.4934 0 19 0C8.50659 0 0 8.50659 0 19C0 29.4934 8.50659 38 19 38Z",fill:e.fill}),(0,l.jsx)("path",{d:"M25.8996 8H29.5815L21.5398 17.189L31 29.6949H23.5945L17.7901 22.1121L11.1565 29.6949H7.46936L16.0691 19.8644L7 8H14.5932L19.8344 14.9309L25.8996 8ZM24.6063 27.4941H26.6454L13.4824 10.086H11.292L24.6063 27.4941Z",fill:"white"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_669_9522",children:(0,l.jsx)("rect",{fill:"white",height:"38",width:"38"})})})]})],711682)},631393,e=>{"use strict";var l=e.i(438232);e.s(["default",0,({...e})=>(0,l.jsx)("svg",{...e,fill:"none",height:"32",viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{clipRule:"evenodd",d:"M16 31.9941C24.8366 31.9941 32 24.8307 32 15.9941C32 7.15758 24.8366 -0.00585938 16 -0.00585938C7.16344 -0.00585938 0 7.15758 0 15.9941C0 24.8307 7.16344 31.9941 16 31.9941ZM15.8222 6.15625C18.3739 6.15716 20.7687 7.15058 22.5694 8.95356V8.95401C24.3705 10.757 25.3616 13.1532 25.3607 15.7021C25.3589 20.9615 21.0792 25.2407 15.8222 25.2407H15.8181C14.2218 25.2402 12.653 24.84 11.2599 24.0799L6.20312 25.4062L7.5565 20.4629C6.72179 19.0167 6.28225 17.3756 6.28317 15.6943C6.285 10.435 10.5642 6.15625 15.8222 6.15625ZM15.819 23.6298H15.8222V23.6294C20.192 23.6294 23.7485 20.0728 23.7503 15.7012C23.7512 13.5831 22.9275 11.5908 21.4305 10.0924C19.9335 8.59361 17.943 7.76804 15.8254 7.76712C11.452 7.76712 7.89541 11.3237 7.89358 15.6948C7.89267 17.1927 8.31208 18.6518 9.10563 19.9141L9.29407 20.2141L8.49321 23.14L11.494 22.3528L11.7836 22.5248C13.0011 23.247 14.3965 23.6294 15.819 23.6298ZM18.5422 16.9169C18.7608 16.9965 19.9326 17.5728 20.1709 17.6922L20.1705 17.6931C20.2169 17.7163 20.2603 17.7373 20.3005 17.7568C20.467 17.8373 20.5795 17.8917 20.6274 17.9716C20.6868 18.0709 20.6868 18.5484 20.4883 19.105C20.2898 19.6616 19.3376 20.1698 18.8797 20.2384C18.469 20.2997 17.9495 20.3253 17.3786 20.1437C17.0324 20.0339 16.5883 19.8871 16.0198 19.6415C13.7867 18.6768 12.2771 16.513 11.9905 16.1022C11.9702 16.0732 11.9561 16.0529 11.9482 16.0424L11.9468 16.0405C11.822 15.8742 10.9749 14.7447 10.9749 13.5767C10.9749 12.479 11.5143 11.9034 11.7626 11.6385C11.7796 11.6204 11.7952 11.6038 11.8092 11.5885C12.0278 11.3497 12.2858 11.2903 12.4449 11.2903C12.6041 11.2903 12.7628 11.2917 12.9019 11.2985C12.9191 11.2994 12.937 11.2994 12.9556 11.2993C13.0942 11.2987 13.2673 11.2981 13.4379 11.7079C13.5069 11.8734 13.6094 12.1228 13.7163 12.3829C13.9174 12.8723 14.1341 13.3995 14.1729 13.4774C14.2323 13.5969 14.2722 13.7359 14.1925 13.895C14.1801 13.9199 14.1686 13.9433 14.1577 13.9656C14.0987 14.0859 14.055 14.1752 13.9542 14.2925C13.9137 14.3397 13.8719 14.3906 13.83 14.4414C13.7486 14.5405 13.6673 14.6394 13.5966 14.7101C13.4777 14.8285 13.3533 14.9575 13.4923 15.1963C13.6313 15.435 14.1098 16.2153 14.8183 16.8474C15.5797 17.5262 16.2414 17.8133 16.5771 17.959C16.6428 17.9875 16.6961 18.0106 16.7351 18.0301C16.9734 18.1496 17.1124 18.1299 17.2515 17.9707C17.3905 17.812 17.8474 17.2751 18.0061 17.0363C18.1649 16.7976 18.3236 16.8373 18.5422 16.9169Z",fill:e.fill,fillRule:"evenodd"})})])},546824,e=>{"use strict";var l=e.i(438232),t=e.i(618566),r=e.i(363512),i=e.i(631393),s=e.i(532229),a=e.i(585643),n=e.i(711682);let c=({items:e})=>{let t={whatsapp:{component:(0,l.jsx)(i.default,{className:"size-8 fill-purple hover:fill-purple-40"}),title:"WhatsApp"},linkedin:{component:(0,l.jsx)(a.default,{className:"size-8 fill-purple hover:fill-purple-40"}),title:"LinkedIn"},facebook:{component:(0,l.jsx)(s.default,{className:"size-8 fill-purple hover:fill-purple-40"}),title:"Facebook"},x:{component:(0,l.jsx)(n.default,{className:"size-8 fill-purple hover:fill-purple-40"}),title:"X"}},c=e.map((e,i)=>{let s=Object.keys(t).find(l=>e.identifier===l);return s&&e.enabled?(0,l.jsx)("li",{children:(0,l.jsxs)(r.default,{href:e.shareLink,target:"_blank",children:[t[s]?.component,(0,l.jsx)("span",{className:"sr-only",children:t[s]?.title})]})},e.identifier||i):null});return(0,l.jsx)("div",{className:"bg-white",children:(0,l.jsx)("div",{className:"wrapper px-5 py-2 lg:px-10 xl:px-0",children:(0,l.jsx)("div",{className:"flex flex-col items-end",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,l.jsx)("p",{className:"font-semibold text-purple",children:"Share this page"}),(0,l.jsx)("ul",{className:"flex shrink-0 gap-4",children:c})]})})})})};e.s(["default",0,({baseUrl:e,socialShare:r})=>{let i=(0,t.usePathname)(),s=`${e}${i}`;return(0,l.jsx)(c,{items:r?.icons.map(e=>({identifier:e.identifier,shareLink:`${e.shareLink}${s}`,sharingText:e.sharingText,enabled:e.enabled}))??[]})}],546824)},336319,(e,l,t)=>{var r=e.r(372537),i=e.r(284357),s=e.r(491777),a=e.r(34170),n=e.r(702922),c=/^\s+/;l.exports=function(e,l,t){if((e=n(e))&&(t||void 0===l))return e.replace(c,"");if(!e||!(l=r(l)))return e;var o=a(e),d=s(o,a(l));return i(o,d).join("")}},992156,(e,l,t)=>{var r=e.r(372537),i=e.r(284357),s=e.r(735440),a=e.r(34170),n=e.r(702922),c=e.r(748891);l.exports=function(e,l,t){if((e=n(e))&&(t||void 0===l))return e.slice(0,c(e)+1);if(!e||!(l=r(l)))return e;var o=a(e),d=s(o,a(l))+1;return i(o,0,d).join("")}},741359,e=>{"use strict";var l=e.i(438232);e.s(["default",0,({...e})=>(0,l.jsx)("svg",{...e,fill:"none",height:"12",viewBox:"0 0 16 12",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{clipRule:"evenodd",d:"M0 0.117188H16V1.68336H0V0.117188ZM0 5.21642H16V6.78259H0V5.21642ZM16 10.3157H0V11.8818H16V10.3157Z",fill:"#371376",fillRule:"evenodd"})})])},305838,e=>{"use strict";var l=e.i(438232),t=e.i(336319),r=e.i(546824),i=e.i(763170),s=e.i(741517),a=e.i(275099),n=e.i(15010),c=e.i(207670),o=e.i(741359),d=e.i(992156),p=e.i(618566),u=e.i(363512),h=e.i(580914),x=e.i(745011);let g=e=>e.subpages?.filter(e=>{let l=e.options?.map(e=>(0,h.vercelStegaSplit)(e).cleaned);return l?.includes("menu-item")})||[],m=({isActive:e,parent:t,pathname:r,rootUrl:i})=>
1{let[s,a]=(0,n.useState)(0),[o,m]=(0,n.useState)(null),f=(0,p.usePathname)(),v=(e,t)=>(0,l.jsx)(l.Fragment,{children:g(e).map((e,i)=>{let{cleaned:s}=(0,h.vercelStegaSplit)(e.slug.current),{cleaned:a}=(0,h.vercelStegaSplit)(e.title),{cleaned:n}=(0,h.vercelStegaSplit)(e.key||""),c=(0,d.default)(`${t}${s}`,"/"),o=r===c;return(0,l.jsxs)("div",{className:"block",children:[(0,l.jsx)(u.default,{className:(0,x.cn)("inline-block text-base font-semibold transition-colors duration-300",o?"text-[color:var(--subject-color-primary)]":"text-neutral hover:text-[var(--subject-color-secondary)]"),href:c,children:a}),!!g(e)?.length&&(0,l.jsx)("div",{className:"py-4 pl-4",children:v(e,c)})]},`${n}-${i}`)})});return(0,n.useEffect)(()=>{o&&a(o.scrollHeight)},[f,o]),(0,l.jsx)("div",{className:(0,c.default)("h-full overflow-hidden transition-[max-height,opacity,padding] duration-300",e?"max-h-[var(--subnav-height)] opacity-100":"max-h-0 opacity-0"),style:{"--subnav-height":`${s}px`},children:(0,l.jsx)("nav",{className:"flex flex-col gap-4 p-4",ref:m,children:v(t,(0,d.default)(`${i}${(0,h.vercelStegaSplit)(t.slug.current).cleaned}`,"/"))})})},f=({page:e})=>{let t=(0,p.usePathname)(),r=e.subpages?.map(e=>({...e,options:e.options?.map(()=>"menu-item"),title:(0,h.vercelStegaSplit)(e.title).cleaned,key:e.key?(0,h.vercelStegaSplit)(e.key).cleaned:void 0,subpages:e.subpages}));return(0,l.jsx)("nav",{className:"flex flex-col gap-2",children:r?.filter(e=>e.options?.includes("menu-item")).map((r,i)=>{let s=!!r.subpages?.length,a=(0,d.default)(`${(0,h.vercelStegaSplit)(e.slug.current).cleaned}${r.slug.current}`,"/"),n=t===a||r.subpages?.length&&`${t}/`.startsWith(`${a}/`);return(0,l.jsxs)("div",{className:"block",children:[(0,l.jsxs)(u.default,{className:(0,x.cn)("flex flex-row items-center px-4 py-[18px] text-base font-semibold transition-colors duration-300",n?"bg-[var(--subject-color-primary)] text-white":"group/nav-link bg-white text-neutral hover:bg-[var(--subject-color-secondary)] hover:text-white"),href:a,children:[(0,l.jsx)("span",{className:"grow",children:r.title}),s&&(n?(0,l.jsx)("svg",{fill:"none",height:"4",viewBox:"0 0 17 4",width:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M0.796875 0.148438H16.7969V3.34844H0.796875V0.148438Z",fill:"white"})}):(0,l.jsx)("svg",{className:"-translate-y-px",fill:"none",height:"17",viewBox:"0 0 17 17",width:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{className:"fill-[var(--subject-color-primary)] transition-colors duration-300 group-hover/nav-link:fill-white",clipRule:"evenodd",d:"M7.19688 10.3484V16.75H10.3969V10.3484H16.7969V7.14844H10.3969V0.75H7.19688V7.14844H0.796875V10.3484H7.19688Z",fillRule:"evenodd"})}))]}),s&&(0,l.jsx)(m,{isActive:!!n,parent:r,pathname:t,rootUrl:e.slug.current})]},`${r.key}-${i}`)})})};var v=e.i(718813);let b=({page:e,isTopPage:t})=>{let[r,i]=(0,n.useState)(!1),{cleaned:s}=(0,h.vercelStegaSplit)(e.menuOption??"sidebar");return(0,l.jsxs)("div",{className:(0,x.cn)("min-w-0 basis-auto lg:min-w-[321px] lg:basis-[321px]",t&&"subpages-sidebar"===s&&"hidden"),children:[(0,l.jsx)("div",{className:"mb-4 border-y-2 border-white py-2 lg:hidden",children:(0,l.jsxs)(v.Button,{className:"items-center",color:"purple-80",mode:"button",onClick:()=>i(e=>!e),variant:"icon",children:[(0,l.jsxs)("span",{children:[r?"Hide":"Show"," Menu"]}),(0,l.jsx)(o.default,{className:(0,x.cn)("ml-2 fill-purple")})]})}),(0,l.jsx)("div",{className:(0,c.default)("mb-6 flex-col gap-6 lg:mb-0 lg:flex",r?"flex":"hidden"),children:(0,l.jsx)(f,{page:e})})]})};var j=e.i(729120);let w=({page:e})=>{let t=(0,p.usePathname)(),{index:r,links:i}=(0,n.useMemo)(()=>{let l=(e.subpages??[]).filter(e=>e.options?.includes("menu-item")).map(l=>({title:l.title,url:(0,d.default)(`${e.slug.current}${l.slug.current}`,"/")}));return{index:l.findIndex(e=>t.startsWith(e.url)),links:l}},[e,t]);return(0,l.jsx)(j.SubNavigation,{activeLinkIndex:r,color:e.colour?.primary,links:i})};var C=e.i(591692);let y={page:null},N=(0,n.createContext)([y,C.default]),k=({children:e,initialState:t=y})=>
1{let[r,i]=(0,n.useState)(t),s=(0,n.useMemo)(()=>[r,i],[r,i]);return(0,l.jsx)(N.Provider,{value:s,children:e})},H=({baseUrl:e,children:c,socialShare:o})=>{let[{page:d}]=(0,n.useContext)(N),u=(0,p.usePathname)()===d?.slug.current;if(!d)return(0,l.jsx)(l.Fragment,{});let{cleaned:g}=(0,h.vercelStegaSplit)(d.menuOption??"sidebar");return(0,l.jsxs)("main",{className:(0,x.cn)(("sidebar"===g||!u&&"top"!==g)&&"page-nested"),style:{"--subject-color-primary":d.colour?.primary,"--subject-color-secondary":d.colour?.secondary,"--subject-color-tertiary":d.colour?.tertiary},children:[(0,l.jsx)(s.default,{color:d.header?.variant=="purple"?"white":"neutral",currentPage:d.title,page:d,pageType:"dynamic",pathname:`/${(0,t.default)(d.slug.current,"/")}`,variant:"primary"}),!!d.header?.headline&&(0,l.jsx)(i.default,{color:d.header?.variant??"purple",description:d.header?.description,title:d.header.headline,variant:"secondary"}),!!o&&(0,l.jsx)(r.default,{baseUrl:e,socialShare:o}),"top"===g&&(0,l.jsx)(w,{page:d}),(0,l.jsx)("div",{className:(0,x.cn)("bg-grey"),children:"top"===g?c:(0,l.jsxs)("div",{className:"wrapper flex flex-col py-4 lg:flex-row lg:gap-10 lg:py-12",children:[(0,l.jsx)(b,{isTopPage:u,page:d}),(0,l.jsx)("div",{className:(0,x.cn)("flex grow flex-col"),children:c})]})}),(0,l.jsx)(a.default,{})]})};e.s(["default",0,({children:e,page:t,baseUrl:r,socialShare:i})=>(0,l.jsx)(k,{initialState:{page:t},children:(0,l.jsx)(H,{baseUrl:r,socialShare:i,children:e})})],305838)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.