1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[781],{9545:(e,a,t)=>{t.d(a,{Ay:()=>i});let n={"misc/unknown":{message:"An unknown error has occurred",responseStatusCode:500,shouldNotify:!0},"misc/network-error":{message:"Failed to connect.",responseStatusCode:500,shouldNotify:!0},"misc/unexpected-type":{message:"An unexpected type was encountered, so action may not have completed successfully",shouldNotify:!0},"search/failed-to-get-intent":{message:"Failed to get search intent",responseStatusCode:500,shouldNotify:!0},"search/unknown":{message:"Search doesn't seem to be working, we're looking into it.",shouldNotify:!0},"search/unknown-filter-type":{message:"Unknown search filter type",shouldNotify:!0},"hubspot/invalid-email":{message:"Thank you, that's been received, but please check as your email doesn't look quite right.",shouldNotify:!1},"hubspot/unknown":{message:"Sorry, we couldn't sign you up just now, try again later.",shouldNotify:!0},"hubspot/contacts":{message:"Could not get Hubspot contact information for user",shouldNotify:!0},"hubspot/subscription":{message:"Could not get Hubspot subscription status for user",shouldNotify:!0},"hubspot/not-loaded":{message:"Hubspot not properly instantiated",shouldNotify:!0},"hubspot/script-failed-to-load":{message:"Hubspot script failed to load. Likely a browser connection issue, or script src misconfigured",shouldNotify:!0},"hubspot/lost-information":{message:"Information is being lost when sending to hubspot",shouldNotify:!0},"hubspot/identify-no-email":{message:"Identify is being called without an email address",shouldNotify:!0},"misc/import-count":{message:"File imported more times than allowed",shouldNotify:!0},"video/unknown":{message:"Sorry this video couldn't play, please try again",shouldNotify:!0},"video/persistent-unknown":{message:"Sorry this video couldn't play persistently, please try again",shouldNotify:!0},"video/fetch-signed-token":{message:"Failed to fetch signed video token",shouldNotify:!0},"preview/invalid-token":{message:"Invalid CMS preview token provided",responseStatusCode:401,shouldNotify:!1},"preview/zod-error":{message:"Zod error parsing preview data from CMS",responseStatusCode:500,shouldNotify:!1},"cms/invalid-reference-data":{message:"Couldn't find a matching portable text reference",shouldNotify:!0,responseStatusCode:500},"cms/invalid-hubspot-form":{message:"Error fetching or parsing referenced hubspot form",shouldNotify:!0,responseStatusCode:500},"getRefreshedMVTime/params-incorrect":{message:"The params provided are incorrect",shouldNotify:!0,responseStatusCode:404},"curriculum-api/not-found":{message:"Resource not found",shouldNotify:!1,responseStatusCode:404},"curriculum-api/uniqueness-assumption-violated":{message:"Multiple resources were found when maximum 1 was expected",shouldNotify:!0},"curriculum-api/params-incorrect":{message:"The params provided are incorrect",shouldNotify:!0,responseStatusCode:404},"curriculum-api/internal-error":{message:"Internal error in the curriculum API",shouldNotify:!0,responseStatusCode:500},"school-picker/fetch-suggestions":{message:"Error fetching suggested schools list",shouldNotify:!0},"urls/failed-to-resolve":{message:"Failed to resolve URL. Likely caused by either an empty param (e.g. slug) or a mismatch between the TS types and the pathPattern",shouldNotify:!0},"downloads/failed-to-fetch":{message:"Failed to fetch downloads",shouldNotify:!0},"downloads/generation-failed":{message:"Failed to generate curriculum insight downloads",responseStatusCode:500,shouldNotify:!0},"downloads/check-files-failed":{message:"Failed to check file existence",shouldNotify:!0},"downloads/missing-auth-token":{message:"Missing auth token for download",shouldNotify:!0},"onboarding/request-error":{message:"Onboarding request failed",shouldNotify:!0},"oak-components/invalid-icon-name":{message:"Invalid icon name provided to OakIcon",shouldNotify:!0},"educator-api/failed-to-get-saved-units":{message:"Failed to fetch user content data from the educator API",shouldNotify:!0},"educator-api/failed-to-save-unit":{message:"Failed to save unit to the educator API",shouldNotify:!0},"educator-api/failed-to-unsave-unit":{message:"Failed to unsave unit from the educator API",shouldNotify:!0},"cms/missing-programme-page-data":{message:"Could not find programme page data for subject phase",shouldNotify:!0},"graphql/timeout":{message:"Graphql timeout error",shouldNotify:!0},"analytics/teacher-browse":{message:"Invalid browse level for analytics event",shouldNotify:!0},"mathjax/startup":{message:"Something went wrong loading mathjax",shouldNotify:!0}},r=e=>n[e],s=e=>r(e.code).message;
1class o extends Error{constructor(e){let a=function(e){if(!e.meta)return e;let a=function e(a){let t={};for(let n in a)t[n]=function(a){return"string"==typeof a?[/[^@\s]+@[^@\s]+/g].some(e=>e.test(a))?"[REDACTED]":a:"object"!=typeof a||null===a||Array.isArray(a)?a:e(a)}(a[n]);return t}(e.meta);return{...e,meta:a}}(e);super(s(a)),this._hasBeenReported=!1,this.errorInfo=a,e.originalError instanceof o&&e.originalError.hasBeenReported&&(this.hasBeenReported=!0)}get code(){return this.errorInfo.code}get meta(){return this.errorInfo.meta}get originalError(){return this.errorInfo.originalError}get message(){return s(this.errorInfo)}get config(){return r(this.code)}set hasBeenReported(e){this._hasBeenReported=e}get hasBeenReported(){return this._hasBeenReported}toJSON(){return{code:this.code,message:this.message}}}let i=o},33695:(e,a,t)=>{t.d(a,{jL:()=>h,ZR:()=>g,az:()=>b,TX:()=>y});var n=t(33625);function r(e){return e?new URLSearchParams(Object.entries(Object.entries(e).reduce((e,a)=>{let[t,n]=a;return null!=n&&(e[t]=n),e},{})).reduce((e,a)=>{let[t,n]=a,r=Array.isArray(n)?n.toString():n;return r&&e.push([t,r]),e},[])).toString():""}var s=t(52839),o=t(72630),i=t(41264),l=t(9545),u=t(51026);let c=(0,i.Ay)("urls.ts"),g=e=>{if(e.startsWith("#")||e.startsWith("/"))return!1;try{if(new URL(e).hostname===(o.A?window.location.hostname:(0,u.A)("clientAppBaseUrl")))return!1}catch(a){c(a,{href:e})}return!0};function p(e){switch(e.configType){case"external":return{...e,matchHref:()=>!1,resolveHref:a=>{if("query"in a&&a.query){let t=r(a.query);if(t)return`${e.url}?${t}`}return e.url}};case"internal":return{...e,matchHref:(0,n.YW)(e.pathPattern,{decode:decodeURIComponent}),resolveHref:a=>{let t=(0,n.wE)(e.pathPattern,{encode:encodeURIComponent})(a);return"search"in a?`${t}?${r(a.search)}`:"query"in a?`${t}?${r(a.query)}`:t}};case"internal-custom-resolve":return{...e}}}let d=e=>a=>{let t="blog-index"===e?"/blog":"/webinars";return(0,n.YW)(`${t}`)(a)?(0,n.YW)(t)(a):!!(0,n.YW)(`${t}/categories/:category`)(a)&&(0,n.YW)(`${t}/categories/:category`)(a)},m=e=>a=>{let t="blog-index"===e?"/blog":"/webinars";if(a.categorySlug&&(t=`${t}/categories/${a.categorySlug}`),!a.search)return t;let n=r(a.search);return n?`${t}?${n}`:t},h={"about-who-we-are":p({pathPattern:"/about-us/who-we-are",analyticsPageName:"About Us: Who We Are",configType:"internal",pageType:"about-who-we-are"}),"about-meet-the-team":p({pathPattern:"/about-us/meet-the-team",analyticsPageName:"About Us: Meet the team",configType:"internal",pageType:"about-meet-the-team"}),"about-meet-the-team-bio":p({pathPattern:"/about-us/meet-the-team/:slug",analyticsPageName:"About Us: Meet the team Bio",configType:"internal",pageType:"about-meet-the-team-bio"}),"about-get-involved":p({pathPattern:"/about-us/get-involved",analyticsPageName:"About Us: Get Involved",configType:"internal",pageType:"about-get-involved"}),"about-oaks-curricula":p({pathPattern:"/about-us/oaks-curricula",analyticsPageName:"About Us: Oak's curricula",configType:"internal",pageType:"about-oaks-curricula"}),"about-oaks-impact":p({pathPattern:"/about-us/oaks-impact",analyticsPageName:"About Us: Oak's Impact",configType:"internal",pageType:"about-oaks-impact"}),"about-case-study":p({pathPattern:"/about-us/case-studies/:slug",analyticsPageName:"About Us: Case Study",configType:"internal",pageType:"about-case-study"}),"about-case-study-library":p({pathPattern:"/about-us/case-studies",analyticsPageName:"About Us: Case Study Library",configType:"internal",pageType:"about-case-study-library"}),careers:p({url:"https://app.beapplied.com/org/1574/oak-national-academy",analyticsPageName:"[external] Careers",configType:"external",pageType:"careers"}),contact:p({pathPattern:"/contact-us",analyticsPageName:"Contact Us",configType:"internal",pageType:"contact"}),help:p({url:"https://support.thenational.academy",analyticsPageName:"[external] Help",configType:"external",pageType:"help"}),"pupil-help":p({url:"https://support.thenational.academy/our-pupil-area",analyticsPageName:"[external] Help",configType:"external",pageType:"pupil-help"}),"guide-to-oak":p({url:"https://support.thenational.academy/guide-how-to-use-oak",analyticsPageName:"[external] Help",configType:"external",pageType:"guide-to-oak"}),"help-font":p({url:"https://support.thenational.academy/how-to-install-the-google-fonts-lexend-and-kalan",analyticsPageName:"[external] Help",configType:"external",pageType:"help-font"}),home:p({pathPattern:"/",analyticsPageName:"Homepage",configType:"internal",pageType:"home"}),"lesson-planning":p({pathPattern:"/lesson-planning",analyticsPageName:"Plan a Lesson",configType:"internal",pageType:"lesson-planning"}),"curriculum-change-explained":p({pathPattern:(0,s.G7)(),analyticsPageName:"Landing Page",configType:"internal",pageType:"curriculum-change-explained"}),legal:p({pathPattern:"/legal/:legalSlug",analyticsPageName:"Legal",configType:"internal",pageType:"legal"}),classroom:p({url:"https://classroom.thenational.academy",analyticsPageName:"[external] Classroom",configType:"external",pageType:"classroom"}),labs:p({url:"https://labs.thenational.academy",analyticsPageName:"[external] Labs",configType:"external",pageType:"labs"}),"labs-teaching-materials":p({url:"https://labs.thenational.academy/aila/teaching-materials",analyticsPageName:"[external] Labs",configType:"external",pageType:"labs-teaching-materials"}),"our-teachers":p({url:"https://classroom.thenational.academy/teachers",analyticsPageName:"[external] Our teachers",configType:"external",pageType:"our-teachers"}),"teacher-hub":p({url:"https://teachers.thenational.academy",analyticsPageName:"[external] Teacher hub",configType:"external",pageType:"teacher-hub"}),"oak-curriculum":p({url:"https://teachers.thenational.academy/oaks-curricula",analyticsPageName:"[external] Our curriculum",configType:"external",pageType:"oak-curriculum"}),"blog-index":p({analyticsPageName:"Blog Listing",configType:"internal-custom-resolve",pageType:"blog-index",matchHref:d("blog-index"),resolveHref:m("blog-index")}),"webinar-index":p({analyticsPageName:"Webinar Listing",configType:"internal-custom-resolve",pageType:"webinar-index",matchHref:d("webinar-index"),resolveHref:m("webinar-index")}),"unit-overview":p({pathPattern:"/teachers/programmes/:programmeSlug/units/:unitSlug/lessons",analyticsPageName:"Lesson Listing",configType:"internal",pageType:"unit-overview"}),"lesson-overview":p({pathPattern:"/teachers/programmes/:programmeSlug/units/:unitSlug/lessons/:lessonSlug",analyticsPageName:"Lesson",configType:"internal",pageType:"lesson-overview"}),"lesson-downloads":p({pathPattern:"/teachers/programmes/:programmeSlug/units/:unitSlug/lessons/:lessonSlug/downloads",analyticsPageName:"Lesson Download",configType:"internal",pageType:"lesson-downloads"}),"lesson-downloads-success":p({pathPattern:"/teachers/programmes/:programmeSlug/units/:unitSlug/lessons/:lessonSlug/downloads/success",analyticsPageName:"Lesson Download",configType:"internal",pageType:"lesson-downloads-success"}),"lesson-media":p({pathPattern:"/teachers/programmes/:programmeSlug/units/:unitSlug/lessons/:lessonSlug/media",analyticsPageName:"Lesson Media",configType:"internal",pageType:"lesson-media"}),"pupil-lesson":p({pathPattern:"/pupils/programmes/:programmeSlug/units/:unitSlug/lessons/:lessonSlug",analyticsPageName:"Lesson",configType:"internal",pageType:"pupil-lesson"}),"pupil-lesson-results":p({pathPattern:"/pupils/programmes/:programmeSlug/units/:unitSlug/lessons/:lessonSlug/results/:attemptId",analyticsPageName:"Lesson",configType:"internal",pageType:"pupil-lesson-results"}),"pupil-lesson-results-canonical-share":p({pathPattern:"/pupils/lessons/:lessonSlug/results/:attemptId/share",analyticsPageName:"Lesson",configType:"internal",pageType:"pupil-lesson-results-canonical-share"}),"pupil-lesson-results-canonical-printable":p({pathPattern:"/pupils/lessons/:lessonSlug/results/:attemptId/printable",analyticsPageName:"Lesson",configType:"internal",pageType:"pupil-lesson-results-canonical-printable"}),"pupil-lesson-canonical":p({pathPattern:"/pupils/lessons/:lessonSlug",analyticsPageName:"Lesson",configType:"internal",pageType:"pupil-lesson-canonical"}),"pupil-lesson-canonical-shared":p({pathPattern:"/pupils/lessons/:lessonSlug/shared/:shareVariant/overview",analyticsPageName:"Lesson",configType:"internal",pageType:"pupil-lesson-canonical-shared"}),"pupil-lesson-index":p({pathPattern:"/pupils/programmes/:programmeSlug/units/:unitSlug/lessons",analyticsPageName:"Lesson Listing",configType:"internal",pageType:"pupil-lesson-index"}),"pupil-unit-index":p({pathPattern:"/pupils/programmes/:programmeSlug/units",analyticsPageName:"Unit Listing",configType:"internal",pageType:"pupil-unit-index"}),"pupil-programme-index":p({pathPattern:"/pupils/programmes/:programmeSlug/:optionSlug",analyticsPageName:"Programme Listing",configType:"internal",pageType:"pupil-programme-index"}),"pupil-subject-index":p({pathPattern:"/pupils/years/:yearSlug/subjects",analyticsPageName:"Subject Listing",configType:"internal",pageType:"pupil-subject-index"}),"pupil-year-index":p({pathPattern:"/pupils/years",analyticsPageName:"Subject Listing",configType:"internal",pageType:"pupil-year-index"}),"lesson-overview-canonical":p({pathPattern:"/teachers/lessons/:lessonSlug",analyticsPageName:"Lesson",configType:"internal",pageType:"lesson-overview-canonical"}),"lesson-downloads-canonical":p({pathPattern:"/teachers/lessons/:lessonSlug/:downloads",analyticsPageName:"Lesson Download",configType:"internal",pageType:"lesson-downloads-canonical"}),"lesson-media-canonical":p({pathPattern:"/teachers/lessons/:lessonSlug/media",analyticsPageName:"Lesson Media",configType:"internal",pageType:"lesson-media-canonical"}),"lesson-share":p({pathPattern:"/teachers/programmes/:programmeSlug/units/:unitSlug/lessons/:lessonSlug/share",analyticsPageName:"Lesson Share",configType:"internal",pageType:"lesson-share"}),search:p({pathPattern:"/teachers/search",analyticsPageName:"Search",configType:"internal",pageType:"search"}),"blog-single":p({pathPattern:"/blog/:blogSlug",analyticsPageName:"Blog",configType:"internal",pageType:"blog-single"}),"campaign-single":p({analyticsPageName:"Campaign",configType:"internal",pageType:"campaign-single",pathPattern:"/campaigns/:campaignSlug"}),"webinar-single":p({pathPattern:"/webinars/:webinarSlug",analyticsPageName:"Webinar",configType:"internal",pageType:"webinar-single"}),"landing-page":p({pathPattern:"/lp/:lpSlug",analyticsPageName:"Landing Page",configType:"internal",pageType:"landing-page"}),onboarding:p({pathPattern:"/onboarding",analyticsPageName:"Onboarding: Work In School",configType:"internal",pageType:"onboarding"}),"onboarding-school-selection":p({pathPattern:"/onboarding/school-selection",analyticsPageName:"Onboarding: School Selection",configType:"internal",pageType:"onboarding-school-selection"}),"onboarding-role-selection":p({pathPattern:"/onboarding/role-selection",analyticsPageName:"Onboarding: Role Selection",configType:"internal",pageType:"onboarding-role-selection"}),"onboarding-use-of-oak":p({pathPattern:"/onboarding/how-can-oak-support-you",analyticsPageName:"Onboarding: Use Of Oak",configType:"internal",pageType:"onboarding-use-of-oak"}),"teachers-home-page":p({pathPattern:"/",analyticsPageName:"Homepage",configType:"internal",pageType:"teachers-home-page"}),"my-library":p({pathPattern:"/teachers/my-library",analyticsPageName:"My library",configType:"internal",pageType:"my-library"}),"teacher-programme":p({pathPattern:"/teachers/programmes/:subjectPhaseSlug/:tab",analyticsPageName:"Curriculum Unit Sequence",configType:"internal",pageType:"teacher-programme"}),"classroom-sign-in":p({pathPattern:"/classroom/sign-in",analyticsPageName:"Classroom: Sign In",configType:"internal",pageType:"classroom-sign-in"}
1),"classroom-browse":p({pathPattern:"/classroom/browse",analyticsPageName:"Classroom: Browse Years",configType:"internal",pageType:"classroom-browse"}),"classroom-subjects":p({pathPattern:"/classroom/browse/years/:yearSlug/subjects",analyticsPageName:"Classroom: Subjects",configType:"internal",pageType:"classroom-subjects"}),"classroom-options":p({pathPattern:"/classroom/browse/programmes/:programmeSlug/options",analyticsPageName:"Classroom: Programme Options",configType:"internal",pageType:"classroom-options"}),"classroom-units":p({pathPattern:"/classroom/browse/programmes/:programmeSlug/units",analyticsPageName:"Classroom: Units",configType:"internal",pageType:"classroom-units"}),"classroom-lessons":p({pathPattern:"/classroom/browse/programmes/:programmeSlug/units/:unitSlug/lessons",analyticsPageName:"Classroom: Lessons",configType:"internal",pageType:"classroom-lessons"}),"classroom-auth-success":p({pathPattern:"/classroom/auth/success",analyticsPageName:"Classroom: Auth Success",configType:"internal",pageType:"classroom-auth-success"}),"classroom-pupil-sign-in":p({pathPattern:"/classroom/pupil/sign-in",analyticsPageName:"Classroom: Pupil Sign In",configType:"internal",pageType:"classroom-pupil-sign-in"}),"eyfs-page":p({pathPattern:"/teachers/eyfs/:subjectSlug",analyticsPageName:"Unit Listing",configType:"internal",pageType:"eyfs-page"}),"teach-with-oak":p({pathPattern:"/teachers/teach-with-oak",analyticsPageName:"Teach With Oak",configType:"internal",pageType:"teach-with-oak"}),"teach-with-oak-download":p({pathPattern:"/teachers/teach-with-oak/downloads",analyticsPageName:"Teach With Oak",configType:"internal",pageType:"teach-with-oak-download"}),"teach-with-oak-download-success":p({pathPattern:"/teachers/teach-with-oak/downloads/success",analyticsPageName:"Teach With Oak",configType:"internal",pageType:"teach-with-oak-download-success"})};function y(e){try{return h[e.page].resolveHref(e)}catch(a){return c(new l.Ay({code:"urls/failed-to-resolve",originalError:a,meta:e})),"/"}}function b(e,a){return h[a].matchHref(e)}},41264:(e,a,t)=>{t.d(a,{Ay:()=>n.A,TZ:()=>d,X$:()=>y});var n=t(84328),r=t(14635),s=t.n(r),o=t(65685),i=t.n(o),l=t(51026);let u=/Edge?\/(14[2-9]|1[5-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Firefox\/(14[6-9]|1[5-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Chrom(ium|e)\/(13[1-9]|1[4-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|(Maci|X1{2}).+ Version\/(16\.\d+|(1[7-9]|[2-9]\d|\d{3,})\.\d+)([,.]\d+|)( \(\w+\)|)( Mobile\/\w+|) Safari\/|(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS|CPU iPad OS)[ +]+(16[._]\d+|(1[7-9]|[2-9]\d|\d{3,})[._]\d+)([._]\d+|)|Android.+Chrom(ium|e)\/(14[4-9]|1[5-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|SamsungBrowser\/(29|[3-9]\d|\d{3,})\.\d+/,c=[/OAK_TEST_ERROR_STACKTRACE_FILE/i,/\/\/[a-zA-Z0-9-]+\.hubspot\.com/i,/\/\/[a-zA-Z0-9-]+\.hsleadflows\.net/i],g=[/Test error/i,/Multiple lead flow scripts are trying to run on the current page/i,/t.report is not a function/i,/null is not an object (evaluating 'e.portalId')/i,/Hubspot script failed to load/i,/undefined is not an object (evaluating 'e.find(e=>e.startsWith("#EXT-X-TARGETDURATION")).split')/i],p=e=>!(![/Detectify/i,/Percy/i].some(a=>a.test(e))&&u.test(e)),d=e=>{let a=(e=>{let{apiKey:a,appVersion:t,releaseStage:n,userId:r}=e;return{apiKey:a,appVersion:t,plugins:[new(i())],releaseStage:n,collectUserIp:!1,user:{id:r||void 0},endpoints:{notify:"https://bugsnag-notify.thenational.academy",sessions:"https://bugsnag-sessions.thenational.academy"},autoTrackSessions:!1,onError:function(){let{logger:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{logger:console};return function(a){let{userAgent:t}=a.device;if(t&&p(t))return!1;let n=a?.errors[0];if(void 0!==n&&(c.some(e=>n.stacktrace.some(a=>e.test(a.file)))||g.some(e=>e.test(n.errorMessage))))return e.warn(`Ignoring known issue: ${n.errorMessage}`),!1}}()}})({apiKey:(0,l.A)("bugsnagApiKey"),appVersion:(0,l.A)("appVersion"),releaseStage:(0,l.A)("releaseStage"),userId:e});return s().start(a),s().startSession(),s()};var m=t(12135);let h=function(){let{logger:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{logger:console};return a=>{let t=a.request?.headers?.["User-Agent"];if(t&&p(t))return console.debug(`Ignoring error for user agent: ${t}`),null;let n=a.exception?.values?.[0];return n&&(c.some(e=>n.stacktrace?.frames?.some(a=>a.filename&&e.test(a.filename)))||g.some(e=>n.value&&e.test(n.value)))?(e.warn(`Ignoring known issue: ${n.value}`),null):a}},y=e=>{let a=(e=>{let{dsn:a,environment:t,release:n,userId:r}=e;return{dsn:a,release:n,environment:t,beforeSend:h(),sendDefaultPii:!1,tracesSampleRate:.2,initialScope:{user:r?{id:r}:void 0}}})({dsn:(0,l.A)("sentryDsn"),environment:(0,l.A)("releaseStage"),release:(0,l.A)("appVersion"),userId:e});m.TsN(a)}},47970:(e,a,t)=>{t.d(a,{i:()=>n});let n={POSTHOG:"statistics",GLEAP:"statistics",BUGSNAG:"statistics",SENTRY:"statistics",HUBSPOT:"statistics"}},51026:(e,a,t)=>{t.d(a,{A:()=>o});
1var n=t(72630),r=t(55036);let s={clientAppBaseUrl:{value:"https://www.thenational.academy",envName:"NEXT_PUBLIC_CLIENT_APP_BASE_URL",required:!0,availableInBrowser:!0,default:"http://localhost:3000"},releaseStage:{value:"production",envName:"NEXT_PUBLIC_RELEASE_STAGE",required:!0,availableInBrowser:!0,default:"development"},appVersion:{value:"0.0.0",envName:"NEXT_PUBLIC_APP_VERSION",required:!0,availableInBrowser:!0,default:null},bugsnagApiKey:{value:"88cca94d839a45bf1aa579997d8faeac",envName:"NEXT_PUBLIC_BUGSNAG_API_KEY",required:!0,availableInBrowser:!0,default:null},vercelApiUrl:{value:"https://api.thenational.academy",envName:"NEXT_PUBLIC_VERCEL_API_URL",required:!0,availableInBrowser:!0,default:null},downloadApiUrl:{value:"https://downloads-api.thenational.academy",envName:"NEXT_PUBLIC_DOWNLOAD_API_URL",required:!0,availableInBrowser:!0,default:null},seoAppName:{value:"Oak National Academy",envName:"NEXT_PUBLIC_SEO_APP_NAME",required:!1,availableInBrowser:!0,default:null},seoAppDescription:{value:"Browse and download Oak National Academy's lesson planning resources, find curriculum plans, and explore our AI lesson assistant - all completely free.",envName:"NEXT_PUBLIC_SEO_APP_DESCRIPTION",required:!1,availableInBrowser:!0,default:null},seoAppLocale:{value:"en_GB",envName:"NEXT_PUBLIC_SEO_APP_LOCALE",required:!1,availableInBrowser:!0,default:null},seoAppUrl:{value:"https://www.thenational.academy",envName:"NEXT_PUBLIC_SEO_APP_URL",required:!1,availableInBrowser:!0,default:null},seoAppLogo:{value:"/images/oak-national-academy-logo-512.png",envName:"NEXT_PUBLIC_SEO_APP_LOGO",required:!1,availableInBrowser:!0,default:null},seoAppFacebook:{value:"https://www.facebook.com/oaknationalacademy/",envName:"NEXT_PUBLIC_SEO_APP_FACEBOOK",required:!1,availableInBrowser:!0,default:null},seoAppTwitter:{value:"https://twitter.com/OakNational",envName:"NEXT_PUBLIC_SEO_APP_TWITTER",required:!1,availableInBrowser:!0,default:null},seoAppTwitterHandle:{value:"@oaknational",envName:"NEXT_PUBLIC_SEO_APP_TWITTER_HANDLE",required:!1,availableInBrowser:!0,default:null},searchApiUrl2023:{value:"https://curriculum-search-api.thenational.academy/v2",envName:"NEXT_PUBLIC_SEARCH_API_URL_2023",required:!0,availableInBrowser:!0,default:null},hubspotFormSubmissionUrl:{value:"https://hubspot-forms.thenational.academy/submissions/v3/integration/submit",envName:"NEXT_PUBLIC_HUBSPOT_FORM_SUBMISSION_URL",required:!0,availableInBrowser:!0,default:null},hubspotPortalId:{value:"19961797",envName:"NEXT_PUBLIC_HUBSPOT_PORTAL_ID",required:!0,availableInBrowser:!0,default:null},hubspotNewsletterFormId:{value:"9d8d9543-ba23-4196-9b7a-45bfb00b88e7",envName:"NEXT_PUBLIC_HUBSPOT_NEWSLETTER_FORM_ID",required:!0,availableInBrowser:!0,default:null},hubspotDownloadsFormId:{value:"6b69f4e5-298a-4caf-9229-4981feadac22",envName:"NEXT_PUBLIC_HUBSPOT_DOWNLOADS_FORM_ID",required:!0,availableInBrowser:!0,default:null},hubspotOnboardingFormId:{value:"be58fe9c-563c-4a8b-a5db-2d10b4d28d6c",envName:"NEXT_PUBLIC_HUBSPOT_ONBOARDING_FORM_ID",required:!0,availableInBrowser:!0,default:null},hubspotFallbackFormId:{value:"4597efba-476d-4296-97a6-e814f4e3363d",envName:"NEXT_PUBLIC_HUBSPOT_FALLBACK_FORM_ID",required:!0,availableInBrowser:!0,default:null},hubspotCurriculumDownloadsFormId:{value:"a572e8ef-5cfb-4f44-827a-014f347b1197",envName:"NEXT_PUBLIC_HUBSPOT_CURRICULUM_DOWNLOADS_FORM_ID",required:!0,availableInBrowser:!0,default:null},hubspotScriptDomain:{value:"js.hs-scripts.com",envName:"NEXT_PUBLIC_HUBSPOT_SCRIPT_DOMAIN",required:!0,availableInBrowser:!0,default:null},posthogApiKey:{value:"phc_LCrtgEAumOz4qgXuJNqMK2xisQ4mGaApixHEPXeRRoN",envName:"NEXT_PUBLIC_POSTHOG_API_KEY",required:!0,availableInBrowser:!0,default:null},posthogApiHost:{value:"https://ph-eu-api.thenational.academy",envName:"NEXT_PUBLIC_POSTHOG_API_HOST",required:!0,availableInBrowser:!0,default:null},sanityProjectId:{value:"cuvjke51",envName:"NEXT_PUBLIC_SANITY_PROJECT_ID",required:!0,availableInBrowser:!0,default:null},sanityDataset:{value:"production",envName:"NEXT_PUBLIC_SANITY_DATASET",required:!0,availableInBrowser:!0,default:null},sanityRevalidateSeconds:{value:r.env.SANITY_REVALIDATE_SECONDS?Number.parseInt(r.env.SANITY_REVALIDATE_SECONDS,10):void 0,envName:"SANITY_REVALIDATE_SECONDS",required:!0,availableInBrowser:!0,default:60},sanityAssetCDNHost:{value:"sanity-asset-cdn.thenational.academy",envName:"NEXT_PUBLIC_SANITY_ASSET_CDN_HOST",required:!0,availableInBrowser:!0,default:null},pingdomUptimeId:{value:r.env.NEXT_PUBLIC_PINGDOM_UPTIME_ID,envName:"NEXT_PUBLIC_PINGDOM_UPTIME_ID",required:!0,availableInBrowser:!0,default:"d6-7d-b6-4b-74-15-da-2e-2c-3c-00-34-3b-5f-f5-44-03-0f-fc-9f-c9-ce-16-7c-97-42-16-ab-1a-2e-82-5d"}
1,gleapApiKey:{value:"0Qx0gN2UW6fzml9p9JzRK2sRcLDRRYmd",envName:"NEXT_PUBLIC_GLEAP_API_KEY",required:!0,availableInBrowser:!0,default:null},gleapApiUrl:{value:"https://feedback-api.thenational.academy",envName:"NEXT_PUBLIC_GLEAP_API_URL",required:!0,availableInBrowser:!0,default:null},gleapFrameUrl:{value:"https://gleap-messenger.thenational.academy",envName:"NEXT_PUBLIC_GLEAP_FRAME_URL",required:!0,availableInBrowser:!0,default:null},axeA11yLogging:{value:r.env.NEXT_PUBLIC_AXE_A11Y_LOGGING,envName:"NEXT_PUBLIC_AXE_A11Y_LOGGING",required:!1,availableInBrowser:!0,allowedValues:["on","off"],default:"off",description:"Logs accessibility concerns to the console. Should be disabled in production"},webinarSignUpUrl:{value:"https://share.hsforms.com/1USsrkazESq2Il8lxUx_vPgbvumd",envName:"NEXT_PUBLIC_WEBINAR_SIGN_UP_URL",required:!0,availableInBrowser:!0,description:"Sign up link for upcoming webinars",default:null},oakComponentsAssetsHost:{value:"res.cloudinary.com",envName:"NEXT_PUBLIC_OAK_ASSETS_HOST",required:!0,availableInBrowser:!0,default:null,description:"Host for assets needed by the oak-components package"},oakComponentsAssetsPath:{value:"oak-web-application/image/upload",envName:"NEXT_PUBLIC_OAK_ASSETS_PATH",required:!0,availableInBrowser:!0,default:null,description:"Remote path to assets served from `oakAssetsHost`. Required by the oak-components package"},cloudinaryCloudName:{value:"oaknationalacademy",envName:"NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME",required:!0,availableInBrowser:!0,default:null,description:"The secure Cloudinary instance serving user generated content"},cloudinarySecureDistribution:{value:"cloudinary-res.thenational.academy",envName:"NEXT_PUBLIC_CLOUDINARY_SECURE_DISTRIBUTION",required:!0,availableInBrowser:!0,default:null,description:"The private Cloudinary origin from which to serve user generated content"},oakConsentPoliciesUrl:{value:"https://consent.thenational.academy/v1/policies/",envName:"NEXT_PUBLIC_OAK_CONSENT_POLICIES_URL",required:!0,availableInBrowser:!0,default:null,description:"URL from which to fetch consent policies"},oakConsentLogUrl:{value:"https://consent.thenational.academy/v1/consent/",envName:"NEXT_PUBLIC_OAK_CONSENT_LOG_URL",required:!0,availableInBrowser:!0,default:null,description:"URL to log consent choices to"},oakUserLogUrl:{value:"https://consent.thenational.academy/v1/user/",envName:"NEXT_PUBLIC_OAK_USER_LOG_URL",required:!0,availableInBrowser:!0,default:null,description:"URL to log the first user visit to"},oakGetLessonAttemptUrl:{value:"https://pupil-api.thenational.academy/v1/get-lesson-attempt",envName:"NEXT_PUBLIC_GET_LESSON_ATTEMPT_URL",required:!0,availableInBrowser:!0,default:null,description:"URL to get the lesson attempt"},oakLogLessonAttemptUrl:{value:"https://pupil-api.thenational.academy/v1/log-lesson-attempt",envName:"NEXT_PUBLIC_LOG_LESSON_ATTEMPT_URL",required:!0,availableInBrowser:!0,default:null,description:"URL to log the lesson attempt"},oakGetTeacherNoteUrl:{value:"https://pupil-api.thenational.academy/v1/get-teacher-note",envName:"NEXT_PUBLIC_GET_TEACHER_NOTE_URL",required:!0,availableInBrowser:!0,default:null,description:"URL to get the teacher note"},oakAddTeacherNoteUrl:{value:"https://pupil-api.thenational.academy/v1/add-teacher-note",envName:"NEXT_PUBLIC_ADD_TEACHER_NOTE_URL",required:!0,availableInBrowser:!0,default:null,description:"URL to add the teacher note"},developmentUserRegion:{value:r.env.DEVELOPMENT_USER_REGION,envName:"DEVELOPMENT_USER_REGION",required:!1,availableInBrowser:!1,default:null,description:"The region to use in authentication when running in development mode"},sentryOrganisationIdentifier:{value:"oak-national-academy",envName:"NEXT_PUBLIC_SENTRY_ORGANISATION_IDENTIFIER",required:!0,availableInBrowser:!0,default:null,description:"The slug identifying the organisation within Sentry"},sentryProjectIdentifier:{value:"oak-web-application",envName:"NEXT_PUBLIC_SENTRY_PROJECT_IDENTIFIER",required:!0,availableInBrowser:!0,default:null,description:"The slug identifying the project within Sentry"},sentryDsn:{value:"https://b5bd9e9e1805b38c5e7a1d10d101e7f4@o4507089578754048.ingest.de.sentry.io/4508795238088785",envName:"NEXT_PUBLIC_SENTRY_DSN",required:!0,availableInBrowser:!0,default:null,description:"The DSN for the Sentry project"},sentryEnabled:{value:"undefined",envName:"NEXT_PUBLIC_SENTRY_ENABLED",required:!0,availableInBrowser:!0,default:"false",description:"Whether sentry is enabled or not"}};for(let[,e]of Object.entries(s)){let{value:a,required:t,availableInBrowser:r,default:s,envName:o}=e,i=t&&(!n.A||r),l=!!(a||s);if(i&&!l&&console.error(`- - - WARNING (getBrowserConfig): No config value found for required env var: 2- - - ${o}`),"allowedValues"in e&&a){let{allowedValues:t}=e;
2if(!t.includes(a))throw Error(`- - - ERROR invalid value found for env var: 3- - - ${o} 4- - - Found value: ${a} 5- - - Allowed values: ${t.join(", ")}`)}}let o=e=>{let{value:a,default:t,envName:r,required:o,availableInBrowser:i}=s[e]||{},l=(e=>{if("undefined"!==e)return e})(a),u=o&&(!n.A||i);if(void 0!==l&&!(u&&""===l))return l;if(null!=t)return t;throw Error(`getBrowserConfig('${e}') failed because there is no env value ${r}`)}},51784:(e,a,t)=>{t.d(a,{consentClient:()=>l});var n=t(14635),r=t.n(n),s=t(8530),o=t(51026),i=t(47970);let l=new s.$_({appSlug:"owa",policiesUrl:(0,o.A)("oakConsentPoliciesUrl"),consentLogUrl:(0,o.A)("oakConsentLogUrl"),userLogUrl:(0,o.A)("oakUserLogUrl"),onError(e){console.error("`OakConsentClient` error",e),e instanceof Error&&"granted"===l.getConsent(i.i.BUGSNAG)&&r().notify(e)}})},52839:(e,a,t)=>{t.d(a,{G7:()=>i,J9:()=>u,UE:()=>l,aG:()=>c,lg:()=>o,nd:()=>g});var n=t(69496);let r="/teachers/national-curriculum-insights",s=e=>{let a=n.pj.safeParse(e);if(!a.success)throw Error("National Curriculum Insights phase is invalid");return a.data},o=()=>r,i=()=>"/curriculum-change-explained/guidance",l=e=>`${r}/${encodeURIComponent((e=>{let a=n.s7.safeParse({subjectSlug:e});if(!a.success)throw Error("National Curriculum Insights subject slug is invalid");return a.data.subjectSlug})(e))}`,u=(e,a)=>`${l(e)}/${encodeURIComponent(s(a))}`,c=(e,a,t)=>{let r=s(a);return`${u(e,r)}/${encodeURIComponent(((e,a)=>{let t=n.uB.safeParse(a);if(!t.success)throw Error("National Curriculum Insights key stage is invalid");let r=(0,n.B_)(t.data);if(!n.Lj[e].includes(r))throw Error("National Curriculum Insights key stage does not belong to the phase");return t.data})(r,t))}`},g=(e,a)=>"overview"===a?l(e):u(e,a)},69496:(e,a,t)=>{t.d(a,{B_:()=>f,NY:()=>b,uB:()=>h,Lj:()=>y,pj:()=>d,s7:()=>T});var n=t(48885);let r=n.array(n.any()),s=n.object({id:n.string()}),o=n.object({current:n.string().min(1)}).transform(e=>e.current);n.preprocess(e=>{if("string"==typeof e||e instanceof Date)return new Date(e)},n.date()),n.object({text:n.string(),attribution:n.string().nullish(),role:n.string().nullish(),organisation:n.string().nullish()});let i=n.object({_id:n.string(),url:n.string()}),l=n.object({altText:n.string().min(1).nullish(),isPresentational:n.boolean().nullish(),asset:i.nullish(),hotspot:n.object({x:n.number(),y:n.number(),width:n.number(),height:n.number()}).nullish()});n.object({altText:n.string().min(1).nullish(),isPresentational:n.boolean().nullish(),asset:i.nullish(),hotspot:n.object({x:n.number(),y:n.number(),width:n.number(),height:n.number()}).nullish(),darkModeImage:n.object({asset:i.nullish()})});let u=n.object({title:n.string(),transcript:r.nullish(),video:n.object({asset:n.object({assetId:n.string(),playbackId:n.string(),thumbTime:n.number().nullish().transform(e=>void 0===e?null:e)})})});n.object({title:n.string(),slug:o});let c=n.object({asset:n.object({extension:n.string(),size:n.number(),url:n.string()})}),g=n.object({title:n.string(),file:c});n.object({title:n.string()});let p=[n.object({contentType:n.literal("webinar"),slug:o}).merge(s),n.object({contentType:n.literal("newsPost"),slug:o}).merge(s),n.object({contentType:n.literal("policyPage"),slug:o}).merge(s),n.object({contentType:n.literal("landingPage"),slug:o}).merge(s),n.object({contentType:n.literal("homepage")}).merge(s),n.object({contentType:n.literal("aboutCorePage")}).merge(s),n.object({contentType:n.literal("aboutCorePage.whoWeAre")}).merge(s),n.object({contentType:n.literal("aboutCorePage.board")}).merge(s),n.object({contentType:n.literal("aboutCorePage.leadership")}).merge(s),n.object({contentType:n.literal("aboutCorePage.partners")}).merge(s),n.object({contentType:n.literal("aboutCorePage.workWithUs")}).merge(s),n.object({contentType:n.literal("planningCorePage")}).merge(s),n.object({contentType:n.literal("contactCorePage")}).merge(s),n.object({contentType:n.literal("webinarListingPage")}).merge(s),n.object({contentType:n.literal("newsListingPage")}).merge(s),n.object({contentType:n.literal("attachment")}).merge(g).merge(s)];n.discriminatedUnion("contentType",[...p]),n.discriminatedUnion("contentType",[...p,n.object({contentType:n.literal("sanity.imageAsset"),_type:n.literal("sanity.imageAsset")}).merge(i).merge(s),n.object({contentType:n.literal("video"),_type:n.literal("video")}
5).merge(u).merge(s)]),n.object({title:n.string().nullish(),description:n.string().nullish(),canonicalURL:n.string().nullish()});let d=n.enum(["primary","secondary"]),m=n.enum(["KS1","KS2","KS3","KS4"]),h=n.enum(["key-stage-1","key-stage-2","key-stage-3","key-stage-4"]),y={primary:["KS1","KS2"],secondary:["KS3","KS4"]},b=e=>`key-stage-${e.slice(2)}`,f=e=>`KS${e.slice(10)}`;n.enum(["overview","primary","secondary"]);let T=n.object({subjectSlug:n.string().min(1).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)}),N=n.object({rows:n.array(n.object({cells:n.array(n.string())})).min(1)}),v=n.object({__typename:n.literal("NationalCurriculumInsightsHeroSection"),heading:n.string().min(1),bodyPortableText:r,image:l.nullable().optional(),authorName:n.string().min(1).nullable().optional(),authorRole:n.string().min(1).nullable().optional(),authorImage:l.nullable().optional(),statusHeading:n.string().min(1).nullable().optional(),statusMessage:n.string().min(1).nullable().optional(),ctaLabel:n.string().min(1).nullable().optional(),ctaHref:n.string().min(1).nullable().optional()}),P=n.object({__typename:n.literal("NationalCurriculumInsightsOverviewSection"),heading:n.string().min(1),bodyPortableText:r}),_=n.object({phase:d,heading:n.string().min(1),linkLabel:n.string().min(1)}),I=n.object({__typename:n.literal("NationalCurriculumInsightsPhaseCardsSection"),cards:n.array(_).min(1).max(2)}),S=n.object({keyStage:m,heading:n.string().min(1),linkLabel:n.string().min(1)}),w=n.object({__typename:n.literal("NationalCurriculumInsightsKeyStageCardsSection"),cards:n.array(S).min(1)}),E=n.object({__typename:n.literal("NationalCurriculumInsightsPromotionalHeadingSection"),heading:n.string().min(1),variant:n.enum(["explorer","keyStage"]).nullable().optional()}),L=n.object({__typename:n.literal("NationalCurriculumInsightsPhaseNavigationSection"),overviewLabel:n.string().min(1),primaryLabel:n.string().min(1),secondaryLabel:n.string().min(1)}),A=n.object({__typename:n.literal("NationalCurriculumInsightsSubjectNavigationSection"),phases:n.array(d).min(1),primaryHeading:n.string().min(1),secondaryHeading:n.string().min(1)}),C=n.object({__typename:n.literal("NationalCurriculumInsightsNewsletterSection"),heading:n.string().min(1),introduction:n.string().min(1),benefitsHeading:n.string().min(1).nullable().optional(),benefits:n.array(n.string().min(1)).min(1),illustration:l,privacyPortableText:r,formId:n.string().nullable().optional(),buttonLabel:n.string().min(1)}),U=n.object({__typename:n.literal("NationalCurriculumInsightsFaqSection"),heading:n.string().min(1),items:n.array(n.object({question:n.string().min(1),answerPortableText:r})).min(1)}),B=n.object({__typename:n.literal("NationalCurriculumInsightsRichTextSection"),heading:n.string().min(1),headingStyle:n.enum(["section","detail"]).default("section"),contentPortableText:r}),k=n.object({__typename:n.literal("NationalCurriculumInsightsImageTextSection"),heading:n.string().min(1),bodyPortableText:r,image:l,imagePosition:n.enum(["left","right"]),mirrorImage:n.boolean().nullable().optional(),background:n.enum(["white","turquoise","yellow"]),ctaLabel:n.string().min(1).nullable().optional(),ctaHref:n.string().min(1).nullable().optional()}),j=n.object({__typename:n.literal("NationalCurriculumInsightsGuidanceIntroSection"),heading:n.string().min(1),mobileHeading:n.string().nullable().optional(),image:l,bodyPortableText:r,statusLabel:n.string().min(1).nullable().optional()}),O=n.object({__typename:n.literal("NationalCurriculumInsightsVideoCardsSection"),heading:n.string().min(1),illustration:l.nullable().optional(),introductionPortableText:r.nullable().optional(),posts:n.array(n.object({id:n.string().min(1),title:n.string().min(1),summary:n.string().min(1),slug:n.string().min(1),image:l,video:u.nullable().optional()})).optional(),cards:n.array(n.object({heading:n.string().min(1),description:n.string().min(1),image:l,videoUrl:n.url(),duration:n.string().min(1).nullable().optional()})).optional()}).refine(e=>{let{posts:a,cards:t}=e;return Array.isArray(a)||!!t?.length},"A video cards section must contain at least one blog post or legacy card"),R=n.object({__typename:n.literal("NationalCurriculumInsightsQuoteSection"),quote:n.string().min(1),attribution:n.string().min(1),role:n.string().min(1).nullable().optional(),image:l.nullable().optional()}),x=n.object({__typename:n.literal("NationalCurriculumInsightsTableSection"),heading:n.string().min(1),table:N}),q=n.object({__typename:n.literal("NationalCurriculumInsightsDownloadSection"),barHeading:n.string().min(1),barCtaLabel:n.string().min(1),detailsHeading:n.string().min(1),downloadsHeading:n.string().min(1),downloadsIntroduction:n.string().min(1),downloadButtonLabel:n.string().min(1)}),D=n.discriminatedUnion("__typename",[v,P,I,w,E,L,A,C,U,B,k,j,O,R,x,q]),H=n.object({title:n.string().min(1),summary:n.string().min(1),modules:n.array(D).min(1)}),X=n.object({pageType:n.literal("keyStage"),keyStage:m,...H.shape,...s.shape}),G=n.object({keyStage:m,label:n.string().min(1),page:X}).superRefine((e,a)=>{let{keyStage:t,page:n}=e;n.keyStage!==t&&a.addIssue({code:"custom",path:["page","keyStage"],message:"The referenced page key stage must match its entry"})}),M=n.object({pageType:d,keyStages:n.array(G),...H.shape,...s.shape}).superRefine((e,a)=>{let{id:t,keyStages:n,pageType:r}=e;new Set(n.map(e=>{let{keyStage:a}=e;return a})).size!==n.length&&a.addIssue({code:"custom",path:["keyStages"],message:"Key stages must be unique within a phase"}),new Set(n.map(e=>{let{page:a}=e;return a.id.replace(/^drafts\./,"")})).size!==n.length&&a.addIssue({code:"custom",path:["keyStages"],message:"Every key stage must own a separate page"}
5),n.forEach((e,t)=>{let{keyStage:n}=e;y[r].includes(n)||a.addIssue({code:"custom",path:["keyStages",t,"keyStage"],message:`${n} is not valid below ${r}`})}),t||a.addIssue({code:"custom",message:"A phase page requires a stable document id"})}),F=n.object({pageType:d,title:n.string().min(1),...s.shape}),$=(e,a)=>{new Set(e.map(e=>{let{kind:a}=e;return a})).size!==e.length&&a.addIssue({code:"custom",message:"Subject phases must be unique"}),new Set(e.map(e=>{let{page:a}=e;return a.id})).size!==e.length&&a.addIssue({code:"custom",message:"Each subject phase must have its own page"}),e.forEach((e,t)=>{e.page.pageType!==e.kind&&a.addIssue({code:"custom",path:[t,"page","pageType"],message:"The referenced page type must match its tab"})})},K=n.object({kind:d,label:n.string().min(1),page:M}),W=n.object({kind:d,label:n.string().min(1),page:F});n.object({pageType:n.literal("overview"),title:n.string().min(1),summary:n.string().min(1),illustration:l.nullish(),modules:n.array(D).min(1),slug:o,curriculumSubjectSlugs:n.array(n.string().min(1)).min(1),tabs:n.array(K).max(2).superRefine($),...s.shape});let Y=n.object({title:n.string().min(1),slug:o,illustration:l.nullish(),curriculumSubjectSlugs:n.array(n.string().min(1)).min(1),tabs:n.array(W).max(2).superRefine($),...s.shape});n.object({title:n.string().min(1),summary:n.string().min(1),subjects:n.array(Y),modules:n.array(D).min(1),...s.shape}).superRefine((e,a)=>{let{subjects:t}=e,n=t.map(e=>{let{id:a}=e;return a.replace(/^drafts\./,"")}),r=t.map(e=>{let{slug:a}=e;return a}),s=t.flatMap(e=>{let{tabs:a}=e;return a.map(e=>{let{page:a}=e;return a.id.replace(/^drafts\./,"")})});new Set(n).size!==n.length&&a.addIssue({code:"custom",path:["subjects"],message:"Hub subjects must be unique"}),new Set(r).size!==r.length&&a.addIssue({code:"custom",path:["subjects"],message:"Hub subject slugs must be unique"}),r.includes("guidance")&&a.addIssue({code:"custom",path:["subjects"],message:"The guidance slug is reserved for the practical guidance page"}),new Set(s).size!==s.length&&a.addIssue({code:"custom",path:["subjects"],message:"Every subject phase must own a separate page"})}),n.object({pageType:n.literal("guidance"),title:n.string().min(1),summary:n.string().min(1),modules:n.array(D).min(1),...s.shape})},72630:(e,a,t)=>{t.d(a,{A:()=>n});let n=!0},80781:(e,a,t)=>{t.d(a,{TX:()=>n.TX,ZR:()=>n.ZR,az:()=>n.az,jL:()=>n.jL});var n=t(33695);t(52839)},84328:(e,a,t)=>{t.d(a,{A:()=>p});var n=t(86194),r=t(5489),s=t(72630),o=t(9545),i=t(14635),l=t.n(i),u=t(51784),c=t(47970),g=t(51026);let p=function(e,a){let{logger:t}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{logger:console};return async(i,p)=>{try{if(t.error(i),t.log(e,a,p),function e(a){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!(t>9)&&(t+=1,"object"==typeof a&&null!==a)&&("hasBeenReported"in a?!!a.hasBeenReported:"originalError"in a&&e(a.originalError,t))}(i))return void t.warn("Error already reported, aborting reportError()");if(i instanceof o.Ay&&!i.config.shouldNotify){t.log("Error should not be reported, aborting reportError()"),t.error(i);return}if(s.A){let e=u.consentClient.getConsent(c.i.BUGSNAG);if("granted"!==e)return}p=p||{};let d=(e=>{if(e instanceof Error)return e;try{let a=JSON.stringify(e);return Error(a)}catch(a){return Error(`Failed to stringify maybeError, type: ${typeof e}`)}})(i),m=i instanceof o.Ay?i.originalError:void 0,h=i instanceof o.Ay?i.meta:void 0,{severity:y,groupingHash:b,...f}={...a,...p};if(f.originalError=m,f.oakErrorMeta=h,"true"===(0,g.A)("sentryEnabled"))n.v4(a=>{a.setTag("context",e),y&&a.setLevel(y),b&&a.setFingerprint([b]),Object.entries(f).forEach(e=>{let[t,n]=e;a.setExtra(t,n)}),r.Cp(d)});else{let a;await (a=a=>{"object"==typeof i&&null!==i&&"hasBeenReported"in i&&(i.hasBeenReported=!0),a.context=e,b&&(a.groupingHash=b),y&&(a.severity=y),a.addMetadata("Meta",f)},new Promise(e=>l().notify(d,a,e)))}}catch(e){t.log("Failed to send error to bugsnag:"),t.error(e),t.log("Original error:"),t.error(i)}}}}}]); 6//# sourceMappingURL=781-41736b578b827c17.js.map
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.