1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];if(null!=s)for(var n in s)s.hasOwnProperty(n)&&(e[n]=s[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:sme-site":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d923bb93-2048-44ef-adb6-d9adbfec90ad",e._sentryDebugIdIdentifier="sentry-dbid-d923bb93-2048-44ef-adb6-d9adbfec90ad")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2821],{48:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var n=s(26514),i=s(69001),r=s.n(i),a=s(24569),l=s(34118),o=s.n(l);let c=e=>{let{pills:t,component:s="Pill",classNames:i="",size:l="xs"}=e,c={GradientPill:e=>(0,n.jsx)(a.A,{variant:"gradient",size:l,...e}),Pill:e=>(0,n.jsx)(a.A,{size:l,...e})};return(0,n.jsx)("ul",{className:r()(o().pillGroup,i),children:t.map((e,t)=>(0,n.jsx)("li",{children:c[s](e)},"pill-".concat(t,"-").concat(e.text)))})}},1262:e=>{e.exports={step:"LessonExplanationStep_step__VzwcZ",section:"LessonExplanationStep_section__Vkpwy",sectionHeader:"LessonExplanationStep_sectionHeader__QYraO",sectionIcon:"LessonExplanationStep_sectionIcon__DUCcC",sectionTitle:"LessonExplanationStep_sectionTitle__YDHjl",divider:"LessonExplanationStep_divider__WOWGZ",footer:"LessonExplanationStep_footer__zbm5G",footerSplit:"LessonExplanationStep_footerSplit__ES9Nj",footerCenter:"LessonExplanationStep_footerCenter__jLuUL"}},1267:e=>{e.exports={wrapper:"LimitWall_wrapper__qvq9S",signUpWrapper:"LimitWall_signUpWrapper__num4B",freewallIllustration:"LimitWall_freewallIllustration__YoAPT",alert:"LimitWall_alert__5Nk_i"}},2740:(e,t,s)=>{"use strict";s.d(t,{A:()=>iI});var n,i,r,a,l,o,c,d=s(26514),u=s(80769),p=s(69001),h=s.n(p),m=s(46225),g=s(75834),x=s(97315),v=s(5908),C=s(21015),f=s(13347),b=s(92957),y=s(96456),_=s.n(y),j=s(89130),N=s(7970),w=s.n(N);let A=e=>{let{children:t,author:s,role:n,className:i=""}=e;return(0,d.jsx)(j.A,{className:h()(w().reviewCard,i),children:(0,d.jsxs)("figure",{children:[(0,d.jsx)("blockquote",{children:t}),(0,d.jsxs)("figcaption",{children:[(0,d.jsx)("small",{className:w().author,children:s}),(0,d.jsx)("br",{}),(0,d.jsx)("small",{children:n})]})]})})};var k=s(58780),S=s(7787),T=s(71944),E=s(35297),I=s(95922),W=s(14939),R=s(3816),L=s(43518),V=s(15475),P=s(94920),M=s(87698),O=s(85212),F=s(9231);let H=()=>{let{user:e}=(0,L.Jd)(),t=(0,V.A)(),s=O.G.WEEK,n=F.D,i=t&&(0,M.y)(P.R.revisionNoteViews,{frequency:s})||[],r=i.length>=n.loggedOut.amount?n.loggedOut.amount:i.length,a=i.length>=n.registered.amount?n.registered.amount:i.length;return{limit:{current:e?n.registered.amount:n.loggedOut.amount,loggedOut:n.loggedOut.amount,registered:n.registered.amount},usage:e?a:r,upsellAt:e?n.registered.upsellAt:n.loggedOut.upsellAt,countdownAt:e?n.registered.countdownAt:n.loggedOut.countdownAt,resetFrequency:s}};var q=s(21614),D=s(5222),U=s(17537),B=s(8163),z=s(65700),Q=s(93541),Y=s(27623),Z=s(11813),G=s(48),X=s(27072),J=s(13980),K=s.n(J);let $=e=>{let{slides:t}=e;return(0,d.jsx)(X.h,{options:{md:{columns:2},lg:{columns:2},indicators:!1},items:t.map((e,t)=>(0,d.jsx)("div",{className:h()(K().slideItem),children:e},"slider-slide-".concat(t)))})};var ee=s(808),et=s(2853),es=s.n(et);let en=e=>{let{icon:t,title:s,link:n,features:i,subtitle:r,slides:a,signUpOptionsTitle:l}=e,{user:o,isRegisteredFreeUser:c}=(0,L.Jd)(),u=(0,Q.h)();return(0,d.jsxs)("div",{className:es().container,children:[t&&(0,d.jsx)("div",{className:es().icon,children:t}),(0,d.jsxs)("div",{className:es().title,children:[s,i.length>0&&(0,d.jsx)(G.A,{pills:i,component:"GradientPill",size:"lg"})]}),(0,d.jsxs)("div",{className:es().sliderContainer,children:[(0,d.jsxs)("div",{className:"d-flex flex-column gap-3 w-100",children:[(0,d.jsx)("div",{className:es().subtitle,children:r}),(0,d.jsx)($,{slides:a})]}),(0,d.jsxs)("div",{className:es().buttonWrapper,children:[o&&!c&&(0,d.jsx)(k.A,{tag:_(),href:n.href,variant:"gradient",className:es().button,ariaLabel:n.text,onClick:n.onClick,icon:void 0,iconOnlyOnMobile:void 0,children:n.text}),c&&(0,d.jsx)(Y.A,{href:n.href,label:n.text,onClick:n.onClick,wide:!0,trigger:U.W7.shownRegistrationFormTrigger.rnFooterCTA}),!o&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.A,{variant:"gradient",className:es().button,onClick:()=>{u.show(),n.onClick()},children:"Join now for free"}),(0,d.jsx)(ee.A,{modal:u,trigger:U.W7.shownRegistrationFormTrigger.rnFooterCTA,title:l,method:Z.pE.CONTENT})]})]})]})]})};var ei=s(67862),er=s.n(ei);let ea=[{author:"Beth",role:"IGCSE Student",body:(0,d.jsxs)("p",{children:["I would just like to say a massive thank you for putting together such a brilliant, easy to use website.",(0,d.jsx)("span",{className:"highlighter highlighter-blue",children:"I really think using this site helped me secure my top grades"}),"in science and maths. You really did save my exams! Thank you."]})},{author:"Fathima",role:"A Level Student",body:(0,d.jsxs)("p",{children:["This website is soooo useful and I canât ever thank you enough for organising questions by topic like this. Furthermore, the name of the website could not have been more appropriate as it"," ",(0,d.jsx)("span",{className:"highlighter highlighter-blue",children:"literally did SAVE MY EXAMS!"})]})},{author:"Kate",role:"GCSE Student",body:(0,d.jsxs)("p",{children:["Incredible!"," ",(0,d.jsx)("span",{className:"highlighter highlighter-blue",children:"SO worth my money"}),", the revision notes have everything I need to know and are so easy to understand."," ",(0,d.jsx)("span",{className:"highlighter highlighter-blue",children:"I actually enjoy revising!"})," ","It makes me feel a lot more confident for my GCSEs in a few months."]})},{author:"Sameera",role:"Parent",body:(0,d.jsxs)("p",{children:["Absolutely brilliant, both my girls used it for A levels and GCSE. It's saves on paper copies, also beneficial exam questions ranked from easy to hard."," ",(0,d.jsx)("span",{className:"highlighter highlighter-blue",children:"It's removed a lot of stress from the exams."})]})},{author:"Mark",role:"Chemistry Teacher",body:(0,d.jsxs)("p",{children:["Just to say that"," ",(0,d.jsx)("span",{className:"highlighter highlighter-blue",children:"your resources are the best I have seen"})," ","and I have been teaching chemistry at different levels"," ",(0,d.jsx)("span",{className:"highlighter highlighter-blue",children:"for about 40 years"})]})}],el=e=>{let{onButtonClick:t}=e,{user:s}=(0,L.Jd)(),n=(0,z.Ym)(),{copy:i,href:r}=(0,q.Ay)(),a=(0,B.vg)(W.Rx.revisionNotes,n,{case:"lower"}),l=H(),o=l.limit.current<l.limit.registered,c=o?"Unlock more, it's free!":R.p,u=ea.map((e,t)=>(0,d.jsx)(A,{author:e.author,role:e.role,children:e.body},"review-card-".concat(e.author,"-").concat(e.role,"-").concat(t)));return(0,d.jsx)(en,{icon:(0,d.jsx)(T.A,{path:"/images/illustrations/",filename:"high-five",extension:"svg",width:64,height:64,includeDarkVariant:!0,includeTeacherVariant:!0,alt:""}),title:(0,d.jsx)("div",{className:er().titleWrapper,children:(0,d.jsx)("h3",{className:er().titleMain,children:s?"Get unlimited access":c})}),features:s?[{text:"Downloadable PDFs",icon:(0,d.jsx)(S.A,{variant:"success",Icon:b.A,className:"me-2",size:"XS"})},{text:"Unlimited ".concat((0,B.vg)(W.Rx.revisionNotes,n)),icon:(0,d.jsx)(S.A,{variant:"success",Icon:b.A,className:"me-2",size:"XS"})},{text:"Exam Questions",icon:(0,d.jsx)(S.A,{variant:"success",Icon:b.A,className:"me-2",size:"XS"})},{text:"Past Papers",icon:(0,d.jsx)(S.A,{variant:"success",Icon:b.A,className:"me-2",size:"XS"})},{text:"Model Answers",icon:(0,d.jsx)(S.A,{variant:"success",Icon:b.A,className:"me-2",size:"XS"})},{text:"Videos (Maths and Science)",icon:(0,d.jsx)(S.A,{variant:"success",Icon:b.A,className:"me-2",size:"XS"})}]:[],subtitle:(0,d.jsxs)("div",{className:er().subtitleWrapper,children:[(0,d.jsxs)("h4",{className:er().subtitle,children:["Join the ",I.Pe,"+ Students that â¤ï¸ Save My Exams"]}),(0,d.jsx)(E.EY,{className:er().supplementaryText,children:"the (exam) results speak for themselves:"})]}),link:{onClick:()=>{D.SO(P.R.joinPageViewTrigger,U.W7.viewJoinPageTriggers.revisionNotesFo
1oterCTA),t()},text:i,href:r},slides:[...u,(0,d.jsxs)(j.A,{className:er().trustPilotCard,children:[(0,d.jsxs)("div",{className:er().trustPilotRating,children:[(0,d.jsx)(E.EY,{className:er().trustPilotRatingText,children:"Excellent"}),(0,d.jsx)(T.A,{path:"/illustrations/temp/",filename:"trustpilot",extension:"svg",className:er().stars,width:200,height:85,includeDarkVariant:!0,includeTeacherVariant:!1,alt:"Our rating represented in Trustpilot stars"})]}),(0,d.jsx)(k.A,{href:"https://www.trustpilot.com/review/www.savemyexams.co.uk",target:"_blank",rel:"noopener noreferrer",tag:_(),variant:"light",size:"M",ariaLabel:void 0,className:void 0,icon:void 0,iconOnlyOnMobile:void 0,children:"Read more reviews"})]},"trust-pilot-review-card")],signUpOptionsTitle:o?"Unlock more ".concat(a,". It's free!"):R.p})};var eo=s(86201),ec=s(33640);let ed=(0,g.createContext)(void 0),eu=()=>{let e=(0,g.useContext)(ed);if(void 0===e)throw Error("useNotesContext must be used within a NotesProvider");return e},ep=(e,t)=>{switch(t.type){case"SET_REVISION_NOTE_UNREAD":return{...e,readMarkers:e.readMarkers.filter(e=>e.id!==t.readMarker.id)};case"SET_REVISION_NOTE_READ":return{...e,readMarkers:[...e.readMarkers,t.readMarker]};case"SET_STATE":return t.payload;default:return e}},eh=e=>{let{children:t,pageProps:s}=e,[n,i]=(0,g.useReducer)(ep,s),r=(0,g.useCallback)(async e=>{let{subtopicId:t}=e;if(!n.readMarkers.some(e=>{var s;return(null==(s=e.relationships.subtopic)?void 0:s.data.id)===t})){let e=await (0,ec.YI)(t);e&&i({type:"SET_REVISION_NOTE_READ",readMarker:e})}},[n.readMarkers,i]),a=(0,g.useCallback)(async e=>{let{subtopicId:t}=e,s=n.readMarkers.find(e=>{var s;return(null==(s=e.relationships.subtopic)?void 0:s.data.id)===t});if(s){let{error:e}=await (0,ec.zP)(s.id);e||i({type:"SET_REVISION_NOTE_UNREAD",readMarker:s})}},[n.readMarkers,i]),l=(0,g.useCallback)(e=>i({type:"SET_STATE",payload:e}),[i]);return(0,g.useEffect)(()=>
1{l(s)},[s]),(0,d.jsx)(ed.Provider,{value:{state:n,actions:{setRevisionNoteRead:r,setRevisionNoteUnread:a}},children:t})},em=e=>{let{children:t}=e;return t(eu())};var eg=s(18569),ex=s(94070),ev=s(75303),eC=s(6249),ef=s(74240),eb=s(89873),ey=s(9760),e_=s(99560),ej=s(84394),eN=s(97239),ew=s(13958),eA=s(17684),ek=s(16061),eS=s(97730),eT=s.n(eS);let eE="SME.hide-revision-notes-download-ribbon",eI=e=>{let{breadcrumbs:t,pageHasVideo:s,subtopic:n}=e,i=(0,z.Ym)(),[r,a]=(0,g.useState)(!0),{showUpsellModal:l,signUpModal:o,upgradeModal:c}=(0,ey.W)(),u=(0,ej.a)({subject:t.slugs.subject}),{isInTreatment:p,expose:h}=(0,eC.A)({expose:!1}),m=(0,eb._W)(p,{locale:i,isIelts:u}),x=(0,eN.Ay)();return((0,g.useEffect)(()=>{a(!!window.sessionStorage.getItem(eE))},[]),r)?null:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ee.A,{modal:o,trigger:U.W7.shownRegistrationFormTrigger.rnDownloadPdf,method:Z.pE.CONTENT,...u&&e_.n$}),(0,d.jsx)(ef.A,{modal:c,trigger:U.W7.shownRegistrationFormTrigger.rnDownloadPdf,...m,onShow:()=>{(0,ek.F)({...t.titles,resourceType:U.W7.resourceType.revisionNote,paywallType:U.W7.paywallType.premiumContent,trigger:U.W7.downloadPdfInteraction.downloadPdf})},onHide:()=>{(0,ek.V)({...t.titles,resourceType:U.W7.resourceType.revisionNote,interaction:U.W7.limitingInteraction.closedPaywall,paywallType:U.W7.paywallType.premiumContent,trigger:U.W7.downloadPdfInteraction.downloadPdf})},onCtaClick:()=>{(0,ek.V)({...t.titles,resourceType:U.W7.resourceType.revisionNote,interaction:x?U.W7.limitingInteraction.clickedStartFreeTrial:U.W7.limitingInteraction.clickedUpgrade,paywallType:U.W7.paywallType.premiumContent,trigger:U.W7.downloadPdfInteraction.downloadPdf})}}),(0,d.jsxs)("div",{className:eT().wrapper,children:[(0,d.jsx)("button",{className:eT().close,"aria-label":"Close",type:"button",onClick:()=>{window.sessionStorage.setItem(eE,"true"),a(!0)},children:(0,d.jsx)(ev.A,{svg:eg.A,size:"S"})}),(0,d.jsxs)("button",{className:eT().cta,onClick:()=>{h(),l(),(0,ew.F0)({...t.titles,interaction:U.W7.engageRevisionNoteInteraction.downloadPdf,contentAccess:U.W7.contentAccess.paid,outcome:U.W7.outcome.unsuccessful,hasVideo:s}),(0,eA.j5)({...t.titles,interaction:U.W7.downloadPdfInteraction.downloadPdfBanner,resourceType:U.W7.resourceType.revisionNote,contentAccess:U.W7.contentAccess.paid,outcome:U.W7.outcome.unsuccessful})},children:[(0,d.jsx)(ev.A,{svg:ex.A,className:"me-2"})," Download notes on ",n]}),(0,d.jsx)("div",{className:eT().invisible})]})]})};var eW=s(88342),eR=s(74652),eL=s(4801),eV=s(54),eP=s(1267),eM=s.n(eP);let eO=e=>{let{breadcrumbs:t,pageHasVideo:s,className:n}=e,{user:i}=(0,L.Jd)(),{hasAccess:r}
1=(0,eW.A)({entitlementKey:eV.py.REVISION_NOTES_VIEW}),a=(0,z.Ym)(),l=H(),o=(0,ej.a)({subject:t.slugs.subject}),c=l.limit.current<l.limit.registered?"Unlock more ".concat((0,B.vg)(W.Rx.revisionNotes,a,{case:"lower"}),". Itâs free!"):R.p,u=(0,eb.y4)({locale:a,isIelts:o}),p=(0,eN.Ay)();return((0,g.useEffect)(()=>{i&&!r&&setTimeout(()=>{(0,ek.F)({...t.titles,resourceType:U.W7.resourceType.revisionNote,paywallType:U.W7.paywallType.meteredContent,trigger:U.W7.limitingTrigger.reachedMeteredLimit,hasVideo:s,meteredLimit:l.limit.registered,meteredContentType:U.W7.resourceType.revisionNote})},0)},[t]),r)?null:(0,d.jsxs)("div",{className:h()(eM().signUpWrapper,n),children:[!i&&(0,d.jsx)(eR.A,{signUpProps:{title:c,trigger:U.W7.shownRegistrationFormTrigger.rnReachedLimit,method:Z.pE.CONTENT,...o&&e_.n$}}),i&&(0,d.jsx)(eL.A,{...u,trigger:U.W7.shownRegistrationFormTrigger.rnReachedLimit,onClick:()=>{(0,ek.V)({...t.titles,resourceType:U.W7.resourceType.revisionNote,interaction:p&&!o?U.W7.limitingInteraction.clickedStartFreeTrial:U.W7.limitingInteraction.clickedUpgrade,paywallType:U.W7.paywallType.meteredContent,trigger:U.W7.limitingTrigger.reachedMeteredLimit,hasVideo:s,meteredLimit:l.limit.registered,meteredContentType:U.W7.resourceType.revisionNote})}})]})};var eF=s(48752),eH=s(25971),eq=s(80198),eD=s(61298),eU=s(92689),eB=s(99298);let ez=()=>(0,M.y)(P.R.revisionNotePdfDownloads,{frequency:null});var eQ=s(55866),eY=s(68560);let eZ=e=>{let{breadcrumbs:t,pageHasVideo:s,pdfUrl:n,revisionNoteId:i}=e,r=(0,z.Ym)(),{isStaff:a}=(0,L.Jd)(),{hasAccess:l}
1=(0,eW.A)({entitlementKey:eV.py.REVISION_NOTES_ALL}),{showUpsellModal:o,signUpModal:c,upgradeModal:u}=(0,ey.W)(),p=(0,ej.a)({subject:t.slugs.subject}),m=(0,Q.h)(),x=(e=>{var t;let{id:s}=e,n=ez(),[i,r]=(0,g.useState)(n.length),a=(0,eB.A)(),l=null==a||null==(t=a.attributes)?void 0:t.free_trial_ended_at,o=!!l&&(0,eU.Y)(new Date,new Date(l)),{isInTreatment:c}=(0,eC.A)({expose:o}),d=a?o?eQ.t:1/0:0;return(0,g.useEffect)(()=>{r(n.length)},[s]),{usage:i,allowance:d,addDownload:()=>{let e=ez(),t=e.some(e=>e.id===s),n=o&&!t,i=e.length;n&&i<d&&(i=(0,M.v)(P.R.revisionNotePdfDownloads,s,{frequency:null}).length);r(i);let a=n&&i===eQ.i,l=n&&e.length>=eQ.t;return{showUpsellModal:c&&a,showPaywall:c&&l}}}})({id:i}),v=(0,eN.Ay)(),{isInTreatment:C,expose:f}=(0,eC.A)({expose:!1}),b=(0,eb._W)(C,{locale:r,isIelts:p});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(eD.A,{modal:m,usage:x.usage,allowance:x.allowance,resourceType:W.Rx.revisionNotes,trackInteraction:e=>{(0,eA.NB)({...t.titles,resourceType:U.W7.resourceType.revisionNote,interaction:e,popupType:U.W7.popupType.pdfDownloadLimit,trigger:x.usage>=x.allowance?U.W7.limitingTrigger.reachedMeteredLimit:U.W7.limitingTrigger.approachedMeteredLimit})}}),(0,d.jsx)(ee.A,{modal:c,trigger:U.W7.shownRegistrationFormTrigger.rnDownloadPdf,method:Z.pE.CONTENT,...p&&e_.n$}),(0,d.jsx)(ef.A,{modal:u,trigger:U.W7.shownRegistrationFormTrigger.rnDownloadPdf,...b,onShow:()=>{f(),(0,ek.F)({...t.titles,resourceType:U.W7.resourceType.revisionNote,paywallType:U.W7.paywallType.premiumContent,trigger:U.W7.downloadPdfInteraction.downloadPdf})},onHide:()=>{(0,ek.V)({...t.titles,resourceType:U.W7.resourceType.revisionNote,interaction:U.W7.limitingInteraction.closedPaywall,paywallType:U.W7.paywallType.premiumContent,trigger:U.W7.downloadPdfInteraction.downloadPdf})},onCtaClick:()=>{(0,ek.V)({...t.titles,resourceType:U.W7.resourceType.revisionNote,interaction:v?U.W7.limitingInteraction.clickedStartFreeTrial:U.W7.limitingInteraction.clickedUpgrade,paywallType:U.W7.paywallType.premiumContent,trigger:U.W7.downloadPdfInteraction.downloadPdf})}}),(0,d.jsxs)("div",{className:h()("d-flex gap-2",{"text-nowrap":a}),children:[(0,d.jsx)(k.A,{ariaLabel:"Download notes",variant:"primary",onClick:()=>{let e=a;if(l){let{showUpsellModal:s,showPaywall:n}=x.addDownload();e=!n,(s||n)&&(m.show(),(0,eA.h6)({...t.titles,resourceType:U.W7.resourceType.revisionNote,popupType:U.W7.popupType.pdfDownloadLimit,trigger:x.usage>=x.allowance?U.W7.limitingTrigger.reachedMeteredLimit:U.W7.limitingTrigger.approachedMeteredLimit}))}(0,ew.F0)({...t.titles,interaction:U.W7.engageRevisionNoteInteraction.downloadPdf,contentAccess:U.W7.contentAccess.paid,outcome:e?U.W7.outcome.successful:U.W7.outcome.unsuccessful,hasVideo:s}),(0,eA.j5)({...t.titles,interaction:U.W7.downloadPdfInteraction.downloadPdf,resourceType:U.W7.resourceType.revisionNote,contentAccess:U.W7.contentAccess.paid,outcome:e?U.W7.outcome.successful:U.W7.outcome.unsuccessful}),n&&e?window.open(n,"_blank"):l||o()},children:"Download PDF"}),(0,d.jsx)(eY.lX,{responsive:!0,title:"".concat(t.titles.subtopic," Revision Notes"),onInteraction:e=>(0,ew.F0)({...t.titles,interaction:e,hasVideo:s})}),a&&(0,d.jsx)(eH.A,{icon:(0,d.jsx)(ev.A,{svg:eF.A}),ariaLabel:"Update PDF (Only visible to SME staff)",variant:"shadow",tag:n?eq.A:void 0,href:"".concat(n,"&update=true"),target:n?"_blank":void 0})]})]})},eG=e=>{let{pdfUrl:t,breadcrumbs:s,pageHasVideo:n,revisionNoteId:i,className:r=""}=e;return(0,d.jsx)("div",{className:r,children:(0,d.jsx)(eZ,{breadcrumbs:s,pageHasVideo:n,pdfUrl:t,revisionNoteId:i})})};var eX=s(62828);let eJ=e=>{let{author:t,reviewer:s,updatedAt:n,breadcrumbs:i}=e;return(0,d.jsx)(eX.A,{author:{...t,onBioLinkClick:()=>{(0,ew.F0)({...i.titles,interaction:U.W7.engageRevisionNoteInteraction.author})}},reviewer:s?{...s,onBioLinkClick:()=>{(0,ew.F0)({...i.titles,interaction:U.W7.engageRevisionNoteInteraction.reviewerTop})}}:null,onReviewerImageClick:()=>{(0,ew.F0)({...i.titles,interaction:U.W7.engageRevisionNoteInteraction.openedContentQualityModal})},updatedAt:n})};var eK=s(40298),e$=s(81637),e1=s(12833),e2=s(60900),e0=s(42207),e3=s(3687);let e4=e=>{var t,s,n,i,r;let a,{revisionNote:l,blockClassName:o}=e,{state:{breadcrumbs:c}}=eu(),{hasAccess:u}
1=(0,eW.A)({entitlementKey:eV.py.REVISION_NOTES_VIEW}),p=(0,e$.Fo)(l.attributes.content);t=p,s=c,n=u,t.filter(e=>e.type===e$.y2.VIDEO).forEach(e=>{let{content:t}=e;t.forEach(e=>(e.events={trackWatched:(e,t,i)=>{void 0===i&&(i=(0,e3.SX)(e,t)),(0,e2.X)({...s.titles,resourceType:U.W7.resourceType.revisionNote,isMember:n,interaction:U.W7.watchVideoInteraction.watchVideo,outcome:i>99?U.W7.outcome.successful:U.W7.outcome.unsuccessful,duration:e,videoPlayTime:t,percent:i.toString()})},trackFirstPlay:()=>{(0,ew.F0)({...s.titles,interaction:U.W7.engageRevisionNoteInteraction.watchVideo,contentAccess:U.W7.contentAccess.paid,outcome:n?U.W7.outcome.successful:U.W7.outcome.unsuccessful,hasVideo:!0})},trackUnload:(t,s,n)=>{e.events.trackWatched(t,s,n),e1.IU(e1.rS.IN_PROGRESS)}},e))}),i=p,r=c,a=e=>{e.forEach(e=>{e.type===e0.T.AUDIO&&(e.events={trackFirstPlay:()=>{(0,ew.F0)({...r.titles,interaction:U.W7.engageRevisionNoteInteraction.playedAudioFile})}}),Array.isArray(e.content)&&a(e.content)})},i.forEach(e=>{let{content:t}=e;return a(t)});let m=p.findIndex(e=>(0,e$.Z2)(e.content,[e0.T.FIGURE]));return(0,d.jsx)(eo.A,{className:"mb-4",children:(0,d.jsx)("div",{className:"row g-4",children:p.map((e,t)=>(0,d.jsx)("div",{className:h()("col-12",o),children:(0,d.jsx)(eK.eB,{type:e.type,items:e.content,priority:t===m})},t))})})};var e5=s(25334),e7=s(66011),e8=s(47049),e6=s(97238);let e9=e=>{let{breadcrumbs:t,pageHasVideo:s}=e,n=(0,e8.OF)(),i=(0,e7.U)("(max-width: 767px)",{initializeWithValue:!1}),r=(0,ej.a)({subject:t.slugs.subject});return(0,d.jsx)(e5.A,{text:r?"Was this study material helpful?":"Was this revision note helpful?",onPositiveClick:()=>{var e;(0,e6.t)({...t.titles,feedback:U.W7.submittedQuickFeedbackType.thumbsUp,feedbackMethod:U.W7.submittedQuickFeedbackMethod.thumbs,feedbackResourceType:U.W7.submittedQuickFeedbackResourceType.revisionNotePage,feedbackPageType:U.W7.submittedQuickFeedbackPageType.resource,hasVideo:s}),null==n||null==(e=n.logEvent)||e.call(n,e8.qY.revisionNoteThumbUpClick.name)},onNegativeClick:()=>{var e;(0,e6.t)({...t.titles,feedback:U.W7.submittedQuickFeedbackType.thumbsDown,feedbackMethod:U.W7.submittedQuickFeedbackMethod.thumbs,feedbackResourceType:U.W7.submittedQuickFeedbackResourceType.revisionNotePage,feedbackPageType:U.W7.submittedQuickFeedbackPageType.resource,hasVideo:s}),null==n||null==(e=n.logEvent)||e.call(n,e8.qY.revisionNoteThumbDownClick.name)},stretch:i})};var te=s(24322),tt=s.n(te),ts=s(84086);let tn="revision-note-content",ti=e=>{let{title:t,author:s,updatedAt:n,isIelts:i}=e,r={"@context":"http://schema.org","@type":"LearningResource",name:t,learningResourceType:["study guide","educational material","creative work"],audience:{"@type":"EducationalAudience",educationalRole:"student, teacher, tutor",...(0,z.Ym)()===z.Ql&&{geographicArea:{"@type":"Country",name:"United States"}}},educationalUse:"exam preparation, teaching, self-study, review, practice, personal interest",headline:t,interactivityType:"expositive",author:(0,ts.$E)(s),dateModified:n,...i&&{isAccessibleForFree:!1,hasPart:{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(tn)}}};return(0,d.jsx)(tt(),{children:(0,d.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})})};var tr=s(86959),ta=s(59840),tl=s(17582),to=s(22900),tc=s(29123);let td=e=>{let{id:t}=e,s=(0,tc.A)(),n=(0,V.A)(),i=H(),{isStaff:r}=(0,L.Jd)(),{hasAccess:a}
1=(0,eW.A)({entitlementKey:eV.py.REVISION_NOTES_VIEW}),[l,o]=(0,g.useState)(s&&!a&&!r),[c,d]=(0,g.useState)(s),u=!a&&!r,p=i.limit.current,h=(0,M.y)(P.R.revisionNoteViews,{frequency:i.resetFrequency}),m=h.map(e=>e.id).join("");return(0,g.useEffect)(()=>{if(!n)return;if(s){o(u),d(!0);return}let e=!h.some(e=>e.id===t),r=u&&e&&h.length>=p;u&&e&&h.length<p&&(0,M.v)(P.R.revisionNoteViews,t,{frequency:i.resetFrequency}),o(r),d(!0)},[n,t,u,m,p,s,r]),{isNotesPaywallReady:c,showPaywall:l}};var tu=s(58935),tp=s(11745);let th=e=>{var t,s,n,i,r,a,l,o,c,d,u,p;let h=(0,tp.E0)(e);(0,tu.u4)(U.Ru.interactedWithRevisionNoteLessonPage,{...h,sessionId:e.sessionId,lessonId:null!=(t=e.lessonId)?t:null,interaction:e.interaction,stepType:null!=(s=e.stepType)?s:null,lessonTitle:null!=(n=e.lessonTitle)?n:null,questionNumber:null!=(i=e.questionNumber)?i:null,toolType:null!=(r=e.toolType)?r:null,isAnswerCorrect:null!=(a=e.isAnswerCorrect)?a:null,answerProvided:null!=(l=e.answerProvided)?l:null,selfAssessment:null!=(o=e.selfAssessment)?o:null,confidencePhase:null!=(c=e.confidencePhase)?c:null,confidenceLevel:null!=(d=e.confidenceLevel)?d:null,sectionNumber:null!=(u=e.sectionNumber)?u:null,totalSections:null!=(p=e.totalSections)?p:null})};var tm=s(97842),tg=s(39188);let tx=function(){let{expose:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,tm._P)(tg.f1.key,{expose:e,variant:tg.f1.variants.treatment})},tv=(0,g.createContext)(null),tC=e=>{let{revisionNoteId:t,lessonsAvailable:s,breadcrumbTitles:n,children:i}=e,r=(0,m.useRouter)(),[a,l]=(0,g.useState)(!1),[o,c]=(0,g.useState)(null),u=(0,g.useCallback)(()=>{o&&th({...n,sessionId:o,interaction:U.W7.revisionNoteLessonPage.interaction.closedSession}),c(null),l(!1)},[o,n]),p=(0,g.useRef)(!1);(0,g.useEffect)(()=>(r.beforePopState(()=>p.current?(p.current=!1,!1):!a||(p.current=!0,window.history.forward(),u(),!1)),()=>{r.beforePopState(()=>!0)}),[r,a,u]);let[h,x]=(0,g.useState)(t);t!==h&&(x(t),c(null),l(!1));let v=(0,g.useMemo)(()=>({revisionNoteId:t,lessonsAvailable:s,breadcrumbTitles:n,sessionId:o,isStarted:a,start:()=>{c("".concat(Date.now().toString(36),"-").concat(Math.random().toString(36).slice(2))),l(!0)},close:u}),[t,s,n,o,a,u]);return(0,d.jsx)(tv.Provider,{value:v,children:i})},tf=()=>{let e=(0,g.useContext)(tv);if(!e)throw Error("useRevisionNoteLessonsSession must be used within a RevisionNoteLessonsProvider");return e};var tb=s(49317),ty=s.n(tb),t_=s(75851),tj=s(97858),tN=s(52333);let tw=e=>{var t;let{data:s,isLoading:n,mutate:i}=(0,t_.u)(e?"".concat(tj.Ay.API.REVISION_NOTE_LESSONS,"?revisionNoteId=").concat(e):null,tN.A.get,{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnMount:!0,revalidateOnReconnect:!1,errorRetryCount:0});return{lessons:null!=(t=null==s?void 0:s.data)?t:[],isLoading:n,mutate:i}},tA=()=>{let{revisionNoteId:e,lessonsAvailable:t,breadcrumbTitles:s,start:n}=tf(),i=tx({expose:t}),{showPaywall:r}=td({id:e}),{showUpsellModal:a,signUpModal:l,upgradeModal:o}=(0,ey.W)(),c=t&&i;return(tw(c&&!r?e:null),(0,g.useEffect)(()=>{let e;c&&(e=(0,tp.E0)(s),(0,tu.u4)(U.Ru.shownRevisionNoteLessonBanner,e))},[c,s]),c)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:ty().banner,children:[(0,d.jsxs)("div",{className:ty().content,children:[(0,d.jsx)(ev.A,{svg:to.A,size:"M"}),(0,d.jsxs)("div",{className:ty().text,children:[(0,d.jsx)("p",{className:ty().title,children:"Guided study available on this topic"}),(0,d.jsx)("p",{className:ty().subtitle,children:"Understand this topic with deeper explanations and understanding checks."})]})]}),(0,d.jsx)(k.A,{variant:"primary",className:ty().button,onClick:()=>{var e;let t;(e={...s,interaction:U.W7.revisionNoteLessonBanner.interaction.start,outcome:r?U.W7.outcome.unsuccessful:U.W7.outcome.successful},t=(0,tp.E0)(e),(0,tu.u4)(U.Ru.interactedWithRevisionNoteLessonBanner,{...t,interaction:e.interaction,outcome:e.outcome}),r)?a():n()},children:"Start guided study"})]}),(0,d.jsx)(ee.A,{modal:l,trigger:U.W7.shownRegistrationFormTrigger.revisionNoteLessonStart,title:"Sign up to unlock more guided study. Itâs free!",method:Z.pE.CONTENT}),(0,d.jsx)(ef.A,{modal:o,...eb.sK,trigger:U.W7.shownRegistrationFormTrigger.revisionNoteLessonStart})]}):null},tk=e=>{let{children:t}=e,{isStarted:s}=tf();return s?null:(0,d.jsx)(d.Fragment,{children:t})};var tS=s(17994);let tT="confidence",tE="explanation",tI="freeText",tW="review",tR="high",tL="incorrect",tV=(e,t,s)=>Math.max(t,Math.min(s,e)),tP=e=>{var t;let s=e.find(e=>e.kind===tE);return null!=(t=null==s?void 0:s.chunks.length)?t:0},tM=(e,t)=>{let s=e.steps.length-1;switch(t.type){case"NEXT":if(null!==e.returnToStepIndex)return{...e,currentStepIndex:tV(e.returnToStepIndex,0,s),returnToStepIndex:null};return{...e,currentStepIndex:tV(e.currentStepIndex+1,0,s)};case"SKIP_TO_QUESTIONS":{let t=e.steps.findIndex(e=>"mcq"===e.kind||e.kind===tI);if(-1===t)return e;return{...e,currentStepIndex:t,returnToStepIndex:null}}case"REVIEW_EXPLANATION":{let t=e.steps.findIndex(e=>e.kind===tE);if(-1===t)return e;let s=e.steps[e.currentStepIndex].kind===tW;return{...e,returnToStepIndex:s?null:e.currentStepIndex,currentStepIndex:t,explanationRevealed:!0,explanationRevealedCount:tP(e.steps)}}case"REVEAL_EXPLANATION":return{...e,explanationRevealed:!0};case"REVEAL_EXPLANATION_CHUNK":return{...e,explanationRevealedCount:tV(e.explanationRevealedCount+1,1,tP(e.steps))};case"SET_CONFIDENCE":return"initial"===t.phase?{...e,startingConfidence:t.level}:{...e,endingConfidence:t.level};case"SET_RESPONSE":return{...e,responses:{...e.responses,[t.id]:t.response}};default:return e}};var tO=s(92260);let tF=e=>e.type===tO.kq.REVISION_NOTE_LESSON_CHUNK,tH=e=>e.type===tO.kq.QUESTION,tq=e=>e.attributes.chunk_type===tO.F6.CONTENT,tD=(0,g.createContext)(null),tU=e=>{let{lesson:t,initialState:s,onStateChange:n,onExit:i,children:r}=e,a=(0,g.useMemo)(()=>{let e,s,n,i,r,a;return e=new Map(t.included.filter(tH).map(e=>[e.id,e])),n=(s=[...t.included.filter(tF)].sort(B.I5)).filter(e=>tq(e)&&!e.relationships.follow_up_for),i=new Map(s.filter(e=>tq(e)&&e.relationships.follow_up_for).map(e=>[e.relationships.follow_up_for.data.id,e])),r=0,a=s.filter(e=>!tq(e)).flatMap(t=>{var s,n,a;let l=null==(n=t.relationships.question)?void 0:n.data.id,o=l?e.get(l):void 0;return o?(r+=1,t.attributes.tool_type===tO.qU.MULTIPLE_CHOICE)?[{kind:"mcq",id:t.id,question:o,helper:null!=(a=i.get(t.id))?a:null,questionNumber:r}]:[{kind:tI,id:t.id,toolType:t.attributes.tool_type,question:o,helper:null!=(s=i.get(t.id))?s:null,questionNumber:r}]:[]}),[{kind:tT,id:"confidence-initial",phase:"initial"},...n.length?[{kind:tE,id:"explanation",chunks:n}]:[],...a,{kind:tT,id:"confidence-revisited",phase:"revisited"},{kind:tW,id:"review"}]},[t]),[l,o]=(0,g.useReducer)(tM,a,e=>null!=s?s:{steps:e,currentStepIndex:0,returnToStepIndex:null,startingConfidence:null,endingConfidence:null,explanationRevealed:!1,explanationRevealedCount:1,responses:{},totalQuestions:e.filter(e=>"mcq"===e.kind||e.kind===tI).length});(0,g.useEffect)(()=>{null==n||n(l)},[l,n]);let c=(0,g.useMemo)(()=>({lesson:t,steps:l.steps,currentStep:l.steps[l.currentStepIndex],currentStepIndex:l.currentStepIndex,totalSteps:l.steps.length,totalQuestions:l.totalQuestions,isLastStep:l.currentStepIndex===l.steps.length-1,next:()=>
1o({type:"NEXT"}),skipToQuestions:()=>o({type:"SKIP_TO_QUESTIONS"}),setConfidence:(e,t)=>o({type:"SET_CONFIDENCE",phase:e,level:t}),startingConfidence:l.startingConfidence,endingConfidence:l.endingConfidence,responses:l.responses,setResponse:(e,t)=>o({type:"SET_RESPONSE",id:e,response:t}),reviewExplanation:()=>o({type:"REVIEW_EXPLANATION"}),isExplanationRevealed:l.explanationRevealed,markExplanationRevealed:()=>o({type:"REVEAL_EXPLANATION"}),explanationRevealedCount:l.explanationRevealedCount,revealExplanationChunk:()=>o({type:"REVEAL_EXPLANATION_CHUNK"}),exit:i}),[t,l,i]);return(0,d.jsx)(tD.Provider,{value:c,children:r})},tB=()=>{let e=(0,g.useContext)(tD);if(!e)throw Error("useRevisionNoteLessonFlow must be used within a RevisionNoteLessonFlowProvider");return e};var tz=s(74275),tQ=s(54417),tY=s(24569),tZ=s(56177),tG=s(96387),tX=s(13797),tJ=s(42748),tK=s(82403),t$=s(42829);let t1=tJ.enum(Object.values(t$.Ty)),t2=tJ.strictObject({type:tJ.literal(t$.Ty.TEXT),text:tJ.string(),marks:tJ.array(tJ.unknown()).optional()}),t0=tJ.strictObject({type:tJ.literal(t$.Ty.SPEC_POINT),attrs:tJ.strictObject({id:tJ.string().optional(),name:tJ.string(),video:tJ.strictObject({id:tJ.string(),source:tJ.union([tJ.literal(tG.mW.VIMEO),tJ.literal(tG.mW.YOUTUBE)]),metadata:tJ.record(tJ.string(),tJ.unknown()).optional()}).nullable().optional()}),content:tJ.lazy(()=>tJ.array(t3))}),t3=tJ.union([t2,t0,tJ.strictObject({type:t1,attrs:tJ.record(tJ.string(),tJ.unknown()).optional(),marks:tJ.array(tJ.unknown()).optional(),content:tJ.lazy(()=>tJ.array(t3)).optional()}).superRefine((e,t)=>{if(e.type===t$.Ty.TEXT){let s=t2.safeParse(e);s.success||s.error.issues.forEach(e=>t.addIssue({...e}))}if(e.type===t$.Ty.SPEC_POINT){let s=t0.safeParse(e);s.success||s.error.issues.forEach(e=>t.addIssue({...e}))}})]),t4=tJ.union([t2,tJ.strictObject({type:t1,attrs:tJ.record(tJ.string(),tJ.unknown()).optional(),marks:tJ.array(tJ.unknown()).optional(),content:tJ.lazy(()=>tJ.array(t4)).optional()}).superRefine((e,t)=>{if(e.type===t$.Ty.TEXT){let s=t2.safeParse(e);s.success||s.error.issues.forEach(e=>t.addIssue({...e}))}})]),t5=tJ.array(t3);tK.bl(t5,{target:"draft-07"});let t7=(0,tX.k)(["revision_note_lesson_chunks","revision_note_lesson_chunks.questions"]);tZ.Ay$.strictObject({filter:tZ.Ay$.strictObject({id:tZ.Ay$.string().optional(),status:tZ.Ay$.enum(tG.XQ).optional(),revision_note:tZ.Ay$.strictObject({id:tZ.Ay$.string()})}),include:t7}),tZ.Ay$.strictObject({type:tZ.Ay$.literal(tG.kq.REVISION_NOTE_LESSON),attributes:tZ.Ay$.strictObject({title:tZ.Ay$.string().optional(),description:tZ.Ay$.string().optional(),overview:tZ.Ay$.array(t3).optional(),prior_knowledge:tZ.Ay$.array(t3).nullable().optional(),status:tZ.Ay$.enum(tG.XQ).optional(),tier:tZ.Ay$.string().nullable().optional(),order:tZ.Ay$.number().int().nonnegative().optional()}).optional(),relationships:tZ.Ay$.strictObject({spec_points:tZ.Ay$.strictObject({data:tZ.Ay$.array(tZ.Ay$.strictObject({id:tZ.Ay$.string(),type:tZ.Ay$.literal(tG.kq.SPEC_POINT)}))}).optional()}).optional()});var t8=s(97594),t6=s(94491),t9=s.n(t6);let se=[{name:"Extended",variant:"soft-red"},{name:"Higher",variant:"soft-red"}],st=e=>{let{lessons:t,onSelect:s,onClose:n,feedback:i}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"d-flex gap-2 align-items-center mb-4",children:[(0,d.jsx)(eH.A,{ariaLabel:"Close guided study",icon:(0,d.jsx)(ev.A,{svg:eg.A}),variant:"clear-outlined",onClick:n}),(0,d.jsx)("span",{className:"small",children:"Guided study"})]}),(0,d.jsxs)(E.DZ,{tag:"h3",children:["Choose a concept you donât understand"," ",(0,d.jsx)(tY.A,{variant:"brand",text:"Beta",size:"md",className:"align-middle ms-1"})]}),(0,d.jsx)(E.EY,{children:"Weâll explain it simply and check your understanding."}),(0,d.jsx)("ul",{className:"list-unstyled d-flex flex-column gap-3",children:t.map((e,t)=>{let n=(e=>{var t;if(!e)return null;let s=e.replace(/\s*tier\s*$/i,"").trim().toLowerCase();return null!=(t=se.find(e=>e.name.toLowerCase()===s))?t:null})(e.attributes.tier),i=e.attributes.status===t8.XQ.UNPUBLISHED;return(0,d.jsx)("li",{children:(0,d.jsxs)("button",{type:"button",onClick:()=>s(e.id),className:t9().lessonButton,children:[(0,d.jsx)(tQ.A,{variant:"light",value:t+1}),(0,d.jsxs)("div",{className:"flex-grow-1",children:[(0,d.jsxs)("span",{className:"d-flex align-items-center gap-2 mb-1 flex-wrap",children:[(0,d.jsx)("span",{className:t9().lessonTitle,children:e.attributes.title}),n&&(0,d.jsx)(tY.A,{variant:n.variant,text:n.name}),i&&(0,d.jsx)(tr.A,{color:"orange",size:"S",text:"Unpublished"})]}),(0,d.jsx)("span",{className:"small text-muted",children:e.attributes.description})]}),(0,d.jsx)(ev.A,{svg:tz.A,className:t9().chevron})]})},e.id)})}),t.length>1&&(0,d.jsx)(k.A,{variant:"link-primary",onClick:()=>s(t[0].id),flush:!0,children:"Not sure? Start from the beginning"}),i]})};var ss=s(5014),sn=s.n(ss);let si=()=>(0,d.jsxs)("div",{className:"placeholder-glow",role:"status","aria-live":"polite","aria-busy":"true","aria-label":"Loading concepts",children:[(0,d.jsxs)("div",{className:"d-flex gap-2 align-items-center mb-4",children:[(0,d.jsx)("span",{className:h()("placeholder rounded-circle",sn().shimmer),style:{width:"2.5rem",height:"2.5rem"}}),(0,d.jsx)("span",{className:h()("placeholder rounded-2",sn().shimmer),style:{width:"8rem",height:"1.25rem"}})]}),(0,d.jsxs)("div",{className:"d-flex flex-column gap-2 mb-4",children:[(0,d.jsx)("span",{className:h()("placeholder rounded-2 col-9",sn().shimmer),style:{height:"2rem"}}),(0,d.jsx)("span",{className:h()("placeholder rounded-2 col-6",sn().shimmer),style:{height:"1.25rem"}})]}),(0,d.jsx)("div",{className:"d-flex flex-column gap-3",children:Array.from({length:3},(e,t)=>(0,d.jsxs)("div",{className:sn().card,children:[(0,d.jsx)("span",{className:h()("placeholder rounded-circle",sn().shimmer),style:{width:"2.5rem",height:"2.5rem"}}),(0,d.jsxs)("div",{className:"flex-grow-1 d-flex flex-column gap-2",children:[(0,d.jsx)("span",{className:h()("placeholder rounded-2 col-6",sn().shimmer),style:{height:"1.5rem"}}),(0,d.jsx)("span",{className:h()("placeholder rounded-2 col-12",sn().shimmer),style:{height:"1rem"}}),(0,d.jsx)("span",{className:h()("placeholder rounded-2 col-8",sn().shimmer),style:{height:"1rem"}})]})]},t))})]});var sr=s(13610),sa=s(718);let{revisionNoteLessonPage:sl}=U.W7,so={[tT]:sl.stepType.confidenceCheck,[tE]:sl.stepType.explanation,mcq:sl.stepType.mcqQuestion,[tI]:sl.stepType.freeTextQuestion,[tW]:sl.stepType.review},sc={low:sl.confidenceLevel.low,medium:sl.confidenceLevel.medium,high:sl.confidenceLevel.high},sd={initial:sl.confidencePhase.initial,revisited:sl.confidencePhase.revisited},su={incorrect:sl.selfAssessment.incorrect,partial:sl.selfAssessment.partial,correct:sl.selfAssessment.correct},sp={[tO.qU.RECALL]:sl.toolType.recall,[tO.qU.EXPLAIN_WHY]:sl.toolType.explainWhy,[tO.qU.APPLICATION]:sl.toolType.application},sh={low:1,medium:2,high:3},sm=()=>{let{sessionId:e,breadcrumbTitles:t}=tf(),{lesson:s,currentStep:n,startingConfidence:i,endingConfidence:r}=tB();return{trackChunkFeedback:(e,s,n)=>{(0,e6.t)({...t,feedback:s,feedbackMethod:U.W7.submittedQuickFeedbackMethod.thumbs,feedbackResource:n,feedbackResourceType:U.W7.submittedQuickFeedbackResourceType.revisionNoteLessonChunk,feedbackPageType:U.W7.submittedQuickFeedbackPageType.resource,revisionNoteLessonChunkId:e})},trackInteraction:function(i){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&th({...t,sessionId:e,lessonId:s.id,interaction:i,...{stepType:so[n.kind],questionNumber:"questionNumber"in n?n.questionNumber:null,toolType:n.kind===tI?sp[n.toolType]:null},...r})},trackReviewScreenShown:()=>
1{if(e){var n;let a;n={...t,sessionId:e,lessonId:s.id,lessonTitle:s.attributes.title,startingConfidence:i?sc[i]:null,endingConfidence:r?sc[r]:null,confidenceDelta:i&&r?sh[r]-sh[i]:null},a=(0,tp.E0)(n),(0,tu.u4)(U.Ru.shownRevisionNoteLessonReviewScreen,{...a,sessionId:n.sessionId,lessonId:n.lessonId,lessonTitle:n.lessonTitle,startingConfidence:n.startingConfidence,endingConfidence:n.endingConfidence,confidenceDelta:n.confidenceDelta})}}}};var sg=s(14858),sx=s.n(sg);let sv=()=>{let{currentStep:e,currentStepIndex:t,lesson:s,totalSteps:n,exit:i}=tB(),{trackInteraction:r}=sm(),{title:a,description:l}=((e,t)=>{switch(e.kind){case tT:return"initial"===e.phase?{title:"Confidence check",description:"Tell us your confidence level against the key points"}:{title:"Confidence check",description:"Review your confidence from the start of the guided session"};case tE:return{title:t.attributes.title,description:t.attributes.description};case"mcq":case tI:return{title:t.attributes.title,description:"Letâs check your understanding with some guided questions."};case tW:return{title:"Review your progress",description:"See how it went and how your confidence changed."}}})(e,s);return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"d-flex gap-2 align-items-center mb-4",children:[(0,d.jsx)(eH.A,{ariaLabel:"Back to concepts",icon:(0,d.jsx)(ev.A,{svg:sa.A}),variant:"clear-outlined",onClick:()=>{r(U.W7.revisionNoteLessonPage.interaction.exitedToConceptSelect),i()}}),(0,d.jsx)("span",{className:sx().backText,children:"Back to concepts"})]}),(0,d.jsx)(E.DZ,{tag:"h2",size:"h3",className:"mb-2",children:a}),(0,d.jsx)(E.EY,{children:l}),(0,d.jsx)(sr.A,{currentStep:t+1,totalSteps:n,className:sx().progressBar})]})};var sC=s(13916),sf=s(65915),sb=s(22298),sy=s.n(sb),s_=s(88028),sj=s.n(s_);let sN=e=>{let{className:t,confidence:s}=e;return(0,d.jsx)("span",{className:h()(sj().badge,sj()[s],t),children:sy()(s)})};var sw=s(70517),sA=s.n(sw);let sk=[{level:"low",label:"Low"},{level:"medium",label:"Medium"},{level:tR,label:"High"}],sS=e=>{let{step:t}=e,{lesson:s,startingConfidence:n,endingConfidence:i,setConfidence:r,next:a,skipToQuestions:l}=tB(),{trackInteraction:o}=sm(),{interaction:c}=U.W7.revisionNoteLessonPage,{overview:u,prior_knowledge:p}=s.attributes,m=p&&(null==p?void 0:p.length)>0,g="initial"===t.phase,x=g?n:i,v=()=>{x&&o(c.submittedConfidence,{confidencePhase:sd[t.phase],confidenceLevel:sc[x]})};return(0,d.jsxs)("div",{children:[g?m&&(0,d.jsxs)("section",{children:[(0,d.jsx)(E.DZ,{tag:"h3",size:"h6",children:"What you know already"}),(0,d.jsx)(eK.Vw,{items:p})]}):n&&(0,d.jsxs)("section",{className:"mb-3",children:[(0,d.jsx)(E.DZ,{tag:"h3",size:"h6",children:"Starting confidence"}),(0,d.jsx)(sN,{confidence:n})]}),(0,d.jsxs)("section",{children:[(0,d.jsx)(E.DZ,{tag:"h3",size:"h6",children:"Key points of understanding"}),(0,d.jsx)(eK.Vw,{items:u})]}),(0,d.jsxs)("div",{className:"d-flex flex-column flex-sm-row justify-content-between align-items-sm-end gap-3 flex-wrap border-top pt-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)(E.EY,{className:sA().confidence,children:[g?"Select":"Adjust"," confidence level"]}),(0,d.jsx)("div",{className:"d-flex gap-2",children:sk.map(e=>{let{level:s,label:n}=e;return(0,d.jsx)(sf.A,{type:"radio",id:"level_".concat(s),label:n,isChecked:x===s,onChange:()=>r(t.phase,s)},s)})})]}),(0,d.jsxs)("div",{className:h()(sA().buttons,"d-flex flex-column flex-sm-row flex-wrap"),children:[g&&n===tR&&(0,d.jsx)(k.A,{type:"button",onClick:()=>{v(),o(c.skippedToQuestions),l()},variant:"light",children:"Skip to questions"}),(0,d.jsx)(k.A,{type:"button",disabled:!x,onClick:()=>{v(),a()},variant:"primary",icon:(0,d.jsx)(ev.A,{svg:sC.A}),children:"Continue"})]})]})]})};var sT=s(73737);let sE={[tO.qU.RECALL]:"Recall check",[tO.qU.EXPLAIN_WHY]:"Explain why",[tO.qU.APPLICATION]:"Application"},sI=[{value:tL,label:"No"},{value:"partial",label:"Mostly"},{value:"correct",label:"Yes"}],sW=Object.fromEntries(sI.map(e=>{let{value:t,label:s}=e;return[t,s]}));function sR(){return(sR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(null,arguments)}let sL=e=>g.createElement("svg",sR({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),n||(n=g.createElement("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})));var sV=s(84686);let sP=e=>{let{className:t,chunkId:s,feedbackResource:n}=e,{trackChunkFeedback:i}=sm();return(0,d.jsx)("div",{className:h()("d-flex justify-content-end",t),children:(0,d.jsx)(e5.A,{shrink:!0,onPositiveClick:()=>i(s,U.W7.submittedQuickFeedbackType.thumbsUp,n),onNegativeClick:()=>i(s,U.W7.submittedQuickFeedbackType.thumbsDown,n)})})};var sM=s(36801),sO=s.n(sM);let sF=e=>{var t;let{step:s,helperVisible:n,helperScrollIntoView:i=!1,continueEnabled:r,children:a,title:l}=e,o=(0,g.useRef)(null),{next:c,reviewExplanation:u,totalQuestions:p}=tB(),{trackInteraction:m}=sm(),{interaction:x}=U.W7.revisionNoteLessonPage;return(0,g.useEffect)(()=>
1{if(n&&i){var e;null==o||null==(e=o.current)||e.scrollIntoView({behavior:"smooth",block:"nearest"})}},[o,n,i]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:h()(sO().header,"d-flex justify-content-between align-items-center border-bottom"),children:[(0,d.jsxs)(E.DZ,{tag:"h3",size:"h6",className:"d-flex align-items-center gap-2 mb-0",children:[(0,d.jsx)(ev.A,{svg:sL,size:"S",className:sO().icon}),l]}),(0,d.jsxs)(E.EY,{size:"S",className:"text-muted mb-0",children:[s.questionNumber," of ",p]})]}),a,s.helper&&n&&(0,d.jsxs)("section",{ref:o,className:h()(sO().example,"bg-body-secondary border rounded-3"),children:[(0,d.jsxs)(E.DZ,{tag:"h4",size:"h6",className:"d-flex align-items-center gap-1",children:[(0,d.jsx)(ev.A,{svg:sV.A,size:"S",className:sO().icon}),"An example"]}),(0,d.jsx)(eK.Vw,{items:null!=(t=s.helper.attributes.content)?t:[],className:sO().blocks}),(0,d.jsx)(sP,{chunkId:s.helper.id,feedbackResource:U.W7.submittedQuickFeedbackResource.lessonFollowUpChunk,className:"mt-2"})]}),(0,d.jsxs)("div",{className:sO().buttons,children:[(0,d.jsx)(k.A,{type:"button",variant:"light",onClick:()=>{m(x.reviewedExplanation),u()},children:"Review explanation"}),(0,d.jsx)(k.A,{type:"button",variant:"primary",onClick:()=>{m(x.continuedToNextStep),c()},icon:(0,d.jsx)(ev.A,{svg:sC.A}),disabled:!r,children:s.questionNumber===p?"Continue":"Next question"})]})]})};var sH=s(19038),sq=s.n(sH);let sD=e=>{var t;let{step:s}=e,{responses:n,setResponse:i}=tB(),[r]=s.question.attributes.parts,a=n[s.id],l=(null==a?void 0:a.kind)===tI?a:null,o=null!=(t=null==l?void 0:l.selfAssessment)?t:null,[c,u]=(0,g.useState)((null==l?void 0:l.answer)||""),{trackInteraction:p}=sm(),{interaction:m}=U.W7.revisionNoteLessonPage;return(0,d.jsxs)(sF,{step:s,title:sE[s.toolType],helperVisible:o===tL,helperScrollIntoView:!0,continueEnabled:!!o,children:[(0,d.jsx)(eK.Vw,{items:r.problem,className:h()(sq().blocks,"mb-3")}),(0,d.jsx)(sT.A,{textAlign:"start","aria-label":"Your answer",className:sq().textarea,onChange:e=>u(e.target.value),disabled:!!l,value:c}),!l&&(0,d.jsx)("div",{className:"d-flex align-items-end",children:(0,d.jsx)(k.A,{type:"button",variant:"primary",onClick:()=>{p(m.submittedAnswer,{answerProvided:c.trim().length>0}),i(s.id,{kind:"freeText",answer:c,selfAssessment:null})},className:"ms-auto",children:"Submit answer"})}),l&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("section",{className:sq().answer,children:[(0,d.jsx)(E.DZ,{tag:"h4",size:"h6",children:"Model answer"}),(0,d.jsx)(eK.Vw,{items:r.solution,className:sq().blocks})]}),(0,d.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(E.EY,{className:sq().assessment,children:"Did your answer match?"}),(0,d.jsx)("div",{className:"d-flex gap-2 flex-wrap",children:sI.map(e=>{let{value:t,label:n}=e;return(0,d.jsx)(sf.A,{type:"radio",id:"assessment_".concat(t),label:n,isChecked:o===t,onChange:()=>{l&&(p(m.submittedSelfAssessment,{selfAssessment:su[t]}),i(s.id,{...l,selfAssessment:t}))}},t)})})]}),(0,d.jsx)(sP,{chunkId:s.id,feedbackResource:U.W7.submittedQuickFeedbackResource.lessonQuestionChunk,className:"align-self-end"})]})]})]})};var sU=s(87457),sB=s(7804);function sz(){return(sz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(null,arguments)}var sQ=s(1262),sY=s.n(sQ);let sZ={[tO.qU.EXPLAIN]:{icon:e=>g.createElement("svg",sz({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),i||(i=g.createElement("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2m0 16H5V7h14zm-2-7H7v-2h10zm-4 4H7v-2h6z"}))),title:"In plain words"},[tO.qU.EXAMPLE]:{icon:sV.A,title:"An example"},[tO.qU.KEY_TERMINOLOGY]:{icon:sB.A,title:"Helpful terms"}},sG=e=>e.attributes.tool_type===tO.qU.EXAMPLE,sX=e=>{let{step:t}=e,{chunks:s}=t,{next:n,isExplanationRevealed:i,markExplanationRevealed:r,explanationRevealedCount:a,revealExplanationChunk:l}=tB(),o=(0,g.useRef)(null),c=s[a-1],u=s.slice(a),p=a>=s.length,m=sG(c)&&u.length>0&&u.every(sG),x=!p&&!m;(0,g.useEffect)(()=>{x||i||r()},[x,i,r]),(0,g.useEffect)(()=>{var e;null==(e=o.current)||e.scrollIntoView({behavior:"smooth",block:"start"})},[a]);let v=s.slice(0,a),{trackInteraction:C}=sm(),{interaction:f}=U.W7.revisionNoteLessonPage,b=e=>{C(e,{sectionNumber:Math.min(a+1,s.length),totalSections:s.length}),l()};return(0,d.jsxs)("div",{className:sY().step,children:[v.map((e,t)=>{var s;let n=sZ[e.attributes.tool_type],i=t===v.length-1,r=0===t?null:v[t-1],a=e.attributes.tool_type===(null==r?void 0:r.attributes.tool_type);return(0,d.jsxs)(g.Fragment,{children:[t>0&&(0,d.jsx)("hr",{className:sY().divider}),(0,d.jsxs)("section",{ref:i?o:void 0,className:sY().section,children:[n&&!a&&
1(0,d.jsxs)("div",{className:sY().sectionHeader,children:[(0,d.jsx)(ev.A,{svg:n.icon,size:"M",className:sY().sectionIcon}),(0,d.jsx)("h3",{className:sY().sectionTitle,children:n.title})]}),(0,d.jsx)(eK.Vw,{items:null!=(s=e.attributes.content)?s:[]}),(0,d.jsx)(sP,{chunkId:e.id,feedbackResource:U.W7.submittedQuickFeedbackResource.lessonContentChunk})]})]},e.id)}),(0,d.jsx)("hr",{className:sY().divider}),(0,d.jsxs)("div",{className:h()(sY().footer,{[sY().footerSplit]:m,[sY().footerCenter]:x}),children:[m&&(0,d.jsx)(k.A,{variant:"light",onClick:()=>b(f.showedAnotherExample),children:"Show another example"}),x?(0,d.jsx)(k.A,{variant:"light",icon:(0,d.jsx)(ev.A,{svg:sU.A}),onClick:()=>b(f.revealedExplanationSection),children:"Continue"}):(0,d.jsx)(k.A,{variant:"primary",icon:(0,d.jsx)(ev.A,{svg:sC.A}),onClick:()=>{C(f.continuedToQuestions),r(),n()},children:"Check understanding"})]})]})};var sJ=s(73736);let sK=e=>{var t,s,n;let{step:i}=e,{responses:r,setResponse:a}=tB(),l=i.question.attributes.parts[0],o=null!=(t=null==l?void 0:l.choices)?t:[],c=r[i.id],u=(null==c?void 0:c.kind)==="mcq",[p,h]=(0,g.useState)(null),m=u?c.selectedChoiceId:p,{trackInteraction:x}=sm();return(0,d.jsxs)(sF,{step:i,title:"Multiple choice",helperVisible:!!u&&!c.correct,continueEnabled:u,children:[(0,d.jsx)(sJ.v.Part,{problem:null!=(s=null==l?void 0:l.problem)?s:[],children:(0,d.jsx)(sJ.v.Part.MultipleChoiceInput,{choices:o,solution:null!=(n=null==l?void 0:l.solution)?n:[],isAnswering:!u,selectedChoiceId:m,onClick:e=>h(e.id),onSubmit:()=>{let e=o.find(e=>{let{id:t}=e;return t===m});e&&(x(U.W7.revisionNoteLessonPage.interaction.submittedAnswer,{isAnswerCorrect:e.is_correct}),a(i.id,{kind:"mcq",selectedChoiceId:e.id,correct:e.is_correct}))},includeDivider:!0})}),u&&(0,d.jsx)(sP,{chunkId:i.id,feedbackResource:U.W7.submittedQuickFeedbackResource.lessonQuestionChunk,className:"mt-2"})]})};function s$(){return(s$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(null,arguments)}function s1(){return(s1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(null,arguments)}var s2=s(86338),s0=s(49551),s3=s.n(s0);let s4={correct:{svg:e=>g.createElement("svg",s1({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),a||(a=g.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}))),className:s3().correct},partial:{svg:s2.A,className:s3().partial},incorrect:{svg:e=>g.createElement("svg",s$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),r||(r=g.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}))),className:s3().incorrect}},s5=()=>{let{steps:e,responses:t,startingConfidence:s,endingConfidence:n,exit:i,reviewExplanation:r}=tB(),a=e.flatMap(e=>{let s=t[e.id];return"mcq"===e.kind&&(null==s?void 0:s.kind)==="mcq"?[{id:e.id,typeLabel:"Multiple choice",status:s.correct?"correct":"incorrect",outcomeLabel:s.correct?"Correct":"Incorrect"}]:e.kind===tI&&(null==s?void 0:s.kind)===tI&&s.selfAssessment?[{id:e.id,typeLabel:sE[e.toolType],status:s.selfAssessment,outcomeLabel:sW[s.selfAssessment]}]:[]}),{trackInteraction:l,trackReviewScreenShown:o}=sm(),{interaction:c}=U.W7.revisionNoteLessonPage;return(0,g.useEffect)(()=>{o()},[]),(0,d.jsxs)("div",{className:s3().wrapper,children:[s&&n&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(E.DZ,{tag:"h3",size:"h6",children:"Confidence"}),(0,d.jsxs)("div",{className:s3().confidences,children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(E.EY,{size:"S",className:"small text-muted mb-2",children:"Start"}),(0,d.jsx)(sN,{confidence:s})]}),(0,d.jsx)("div",{className:s3().arrow}),(0,d.jsxs)("div",{children:[(0,d.jsx)(E.EY,{size:"S",className:"small text-muted mb-2 text-end",children:"Now"}),(0,d.jsx)(sN,{confidence:n})]})]})]}),(0,d.jsx)(E.DZ,{tag:"h3",size:"h6",children:"Answers"}),(0,d.jsx)("ul",{className:"list-unstyled mb-4",children:a.map(e=>{let{id:t,typeLabel:s,status:n,outcomeLabel:i}=e,{svg:r,className:a}=s4[n];return(0,d.jsxs)("li",{className:s3().answer,children:[(0,d.jsx)(ev.A,{svg:r,className:a}),(0,d.jsx)("span",{children:s}),(0,d.jsx)("span",{className:"ms-auto small text-muted",children:i})]},t)})}),(0,d.jsxs)("div",{className:"d-flex flex-column flex-sm-row flex-wrap justify-content-between gap-3",children:[(0,d.jsx)(k.A,{variant:"light",type:"button",onClick:()=>{l(c.reviewedExplanation),r()},children:"Review explanation"}),(0,d.jsx)(k.A,{variant:"primary",type:"button",onClick:()=>{l(c.exitedToConceptSelect),i()},children:"Choose another concept"})]})]})},s7=e=>{let{step:t}=e;switch(t.kind){case tT:return(0,d.jsx)(sS,{step:t});case tE:return(0,d.jsx)(sX,{step:t});case"mcq":return(0,d.jsx)(sK,{step:t});case tI:return(0,d.jsx)(sD,{step:t});case tW:return(0,d.jsx)(s5,{})}},s8=e=>{let{children:t}=e;return(0,d.jsx)("section",{className:"bg-body-secondary rounded-3 p-4",children:t})},s6=()=>{let{currentStep:e,currentStepIndex:t}=tB();return(0,g.useEffect)(()=>{(0,tS.e)()},[t]),(0,d.jsxs)("div",{children:[(0,d.jsx)(sv,{}),(0,d.jsx)(s8,{children:(0,d.jsx)(s7,{step:e},e.id)})]})},s9=e=>{let{className:t}=e,{breadcrumbTitles:s}=tf(),n=(0,e8.OF)(),i=e=>{(0,e6.t)({...s,feedback:e,feedbackMethod:U.W7.submittedQuickFeedbackMethod.thumbs,feedbackResourceType:U.W7.submittedQuickFeedbackResourceType.revisionNoteLessonPage,feedbackPageType:U.W7.submittedQuickFeedbackPageType.resource})};return(0,d.jsx)(e5.A,{className:t,text:"Was the guided study feature helpful?",onPositiveClick:()=>i(U.W7.submittedQuickFeedbackType.thumbsUp),onNegativeClick:()=>i(U.W7.submittedQuickFeedbackType.thumbsDown),onSubmitClick:e=>{var t,s;e===e5.n.POSITIVE?null==n||null==(t=n.logEvent)||t.call(n,e8.qY.revisionNoteLessonThumbUpClick.name):null==n||null==(s=n.logEvent)||s.call(n,e8.qY.revisionNoteLessonThumbDownClick.name)}})};var ne=s(81564),nt=s.n(ne);let{revisionNoteLessonPage:ns}=U.W7,nn=e=>{var t;let{revisionNoteId:s,onClose:n}=e,{lessons:i,isLoading:r}=tw(s),{sessionId:a,breadcrumbTitles:l}=tf(),o=(0,e8.OF)(),[c,u]=(0,g.useState)(null),[p,m]=(0,g.useState)(!1),x=(0,g.useRef)(new Map);(0,g.useEffect)(()=>{(0,tS.e)()},[c]);let v=(0,g.useCallback)(e=>{c&&x.current.set(c,e)},[c]),C=(0,g.useCallback)(()=>u(null),[]),f=(0,g.useCallback)(()=>
1{if([...x.current.values()].some(e=>Object.keys(e.responses).length>0)){var e;null==o||null==(e=o.logEvent)||e.call(o,e8.qY.revisionNoteLessonSatisfactionSurveyLaunch.name)}n()},[o,n]);if(r)return(0,d.jsx)("div",{className:h()("container",nt().wrapper),children:(0,d.jsx)(si,{})});let b=null!=(t=i.find(e=>e.id===c))?t:null;return(0,d.jsx)("div",{className:h()("container",nt().wrapper),children:b?(0,d.jsx)(tU,{lesson:b,initialState:x.current.get(b.id),onStateChange:v,onExit:C,children:(0,d.jsx)(s6,{})},b.id):(0,d.jsx)(st,{lessons:i,onSelect:e=>{let t=i.find(t=>{let{id:s}=t;return s===e});t&&a&&th({...l,sessionId:a,lessonId:e,interaction:x.current.has(e)?ns.interaction.resumedLesson:ns.interaction.startedLesson,stepType:ns.stepType.conceptSelect,lessonTitle:t.attributes.title}),u(e),m(!0)},onClose:f,feedback:p?(0,d.jsx)(s9,{className:"mt-4"}):null})})},ni=e=>{let{children:t}=e,{isStarted:s,revisionNoteId:n,close:i}=tf();return s?(0,d.jsx)(nn,{revisionNoteId:n,onClose:i}):(0,d.jsx)(d.Fragment,{children:t})};var nr=s(14692),na=s(64611),nl=s.n(na);let no=()=>{let{isDarkMode:e}=(0,nr.D)(),t=e?"white":"black";return(0,d.jsx)("div",{className:nl().badge,role:"img","aria-label":"Endorsed for Pearson Edexcel Qualifications",children:(0,d.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"130",height:"45",viewBox:"0 0 130 45",fill:"none","aria-hidden":"true",children:[(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.64168 29.8059C7.92195 29.8059 9.07629 30.1114 10.1043 30.7231C11.1323 31.3286 11.9141 32.1804 12.4502 33.2778C12.9926 34.369 13.2643 35.6021 13.2643 36.9771C13.2643 38.1187 13.0905 39.1468 12.7436 40.0613C12.3967 40.9695 11.8732 41.7612 11.1731 42.436C12.0245 43.0226 12.8098 43.4512 13.5288 43.7224L12.9895 45C11.993 44.6405 10.9996 44.0728 10.0095 43.297C8.9814 43.871 7.84602 44.1581 6.60354 44.1581C5.34846 44.158 4.21007 43.8551 3.18834 43.2496C2.16656 42.6441 1.37791 41.7924 0.822876 40.6949C0.274214 39.5975 0 38.3613 0 36.9864C1.31998e-05 35.6177 0.27763 34.3721 0.832654 33.2495C1.38769 32.1268 2.17588 31.272 3.19763 30.6855C4.22571 30.0989 5.37392 29.8059 6.64168 29.8059ZM6.65097 31.3856C5.28233 31.3856 4.14698 31.8555 3.24505 32.7952C2.34313 33.7287 1.89219 35.1258 1.89217 36.9864C1.89217 38.7902 2.33666 40.1749 3.22599 41.1399C4.12161 42.1049 5.26337 42.5871 6.65097 42.5871C7.30681 42.5871 7.92483 42.4644 8.505 42.2185C7.93107 41.8464 7.32561 41.5811 6.68861 41.4234L7.13354 40.0896C8.1931 40.3861 9.06677 40.8276 9.75423 41.4142C10.8327 40.4302 11.3721 38.9512 11.3721 36.9771C11.3721 35.8544 11.1794 34.8735 10.7947 34.0347C10.4162 33.1958 9.85802 32.5462 9.12008 32.0858C8.38847 31.6191 7.56547 31.3857 6.65097 31.3856Z",fill:t}),(0,d.jsx)("path",{d:"M16.7254 39.4462C16.7254 40.3355 16.7602 40.935 16.8296 41.244C16.9368 41.6917 17.1638 42.045 17.5107 42.3035C17.8575 42.5557 18.2863 42.6819 18.7971 42.682C19.3079 42.682 19.7877 42.5528 20.2355 42.2942C20.6833 42.0293 20.9987 41.6727 21.1816 41.2249C21.3708 40.7708 21.4652 40.1147 21.4652 39.257V33.8738H23.1681V43.9214H21.6451V42.4453C20.863 43.5806 19.8001 44.1482 18.4568 44.1483C17.8639 44.1483 17.3086 44.035 16.7915 43.808C16.2806 43.5809 15.8991 43.2968 15.6469 42.9563C15.4009 42.6094 15.2275 42.1867 15.1266 41.6885C15.0573 41.3542 15.0225 40.8242 15.0225 40.0989V33.8738H16.7254V39.4462Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M29.6284 33.647C30.4861 33.647 31.183 33.7478 31.7191 33.9496C32.2551 34.1514 32.6495 34.4068 32.9018 34.7158C33.1541 35.0185 33.3309 35.4034 33.4318 35.8701C33.4886 36.1603 33.5169 36.6838 33.5169 37.4406V39.7112C33.5169 41.2942 33.5517 42.297 33.621 42.7196C33.6967 43.1359 33.8418 43.5367 34.0562 43.9214H32.2775C32.1009 43.5682 31.9876 43.155 31.9372 42.682C31.3064 43.2181 30.6976 43.5965 30.111 43.8173C29.5308 44.038 28.9064 44.1483 28.2379 44.1483C27.1341 44.1483 26.2859 43.8801 25.693 43.344C25.1001 42.8016 24.8036 42.1112 24.8036 41.2724C24.8036 40.7804 24.9139 40.3324 25.1346 39.9288C25.3616 39.5189 25.6548 39.191 26.0142 38.945C26.38 38.6991 26.7902 38.5128 27.2444 38.3867C27.5787 38.2984 28.0833 38.2135 28.7581 38.1315C30.133 37.9675 31.1452 37.7718 31.7949 37.5447C31.8012 37.3114 31.8047 37.1629 31.8047 37.0998C31.8046 36.4061 31.6437 35.9173 31.3221 35.6335C30.8869 35.2488 30.2403 35.0566 29.3825 35.0566C28.5815 35.0566 27.9885 35.1986 27.6037 35.4824C27.2254 35.7599 26.9447 36.2548 26.7618 36.9673L25.
10965 36.7404C25.2479 36.0277 25.4972 35.4536 25.8441 35.0184C26.191 34.577 26.6926 34.2397 27.3485 34.0063C28.0044 33.7667 28.7644 33.647 29.6284 33.647ZM31.7949 38.8785C31.1768 39.1308 30.2495 39.3454 29.0133 39.522C28.3133 39.6229 27.8181 39.7366 27.528 39.8628C27.238 39.9889 27.0143 40.1748 26.8566 40.4206C26.699 40.6603 26.62 40.9285 26.62 41.2249C26.62 41.6791 26.7903 42.0575 27.1309 42.3602C27.4778 42.6629 27.9825 42.8145 28.6447 42.8145C29.3005 42.8144 29.8838 42.6724 30.3946 42.3886C30.9055 42.0985 31.2809 41.7041 31.5206 41.2059C31.7035 40.8211 31.7949 40.2534 31.7949 39.5029V38.8785Z",fill:t}),(0,d.jsx)("path",{d:"M56.2347 33.647C57.3258 33.647 58.2183 33.9241 58.9121 34.4791C59.6059 35.0278 60.0504 35.8101 60.2459 36.8255L58.5904 37.0812C58.4327 36.4064 58.1521 35.8983 57.7485 35.5577C57.3511 35.2172 56.8683 35.0468 56.3007 35.0468C55.443 35.0468 54.7461 35.3562 54.21 35.9743C53.674 36.5861 53.4058 37.5576 53.4058 38.8883C53.4058 40.2379 53.6646 41.2185 54.1817 41.8302C54.6989 42.442 55.3738 42.748 56.2064 42.748C56.8749 42.748 57.4332 42.5433 57.881 42.1334C58.3287 41.7234 58.6123 41.0926 58.7322 40.2412L60.4068 40.4588C60.2239 41.6129 59.754 42.5179 58.9972 43.1738C58.2467 43.8234 57.3228 44.1482 56.2254 44.1483C54.8505 44.1483 53.7435 43.7003 52.9046 42.8047C52.0721 41.9028 51.6559 40.613 51.6559 38.9353C51.6559 37.8505 51.8357 36.9013 52.1951 36.0877C52.5547 35.2741 53.1 34.6652 53.8316 34.2615C54.5695 33.8516 55.3707 33.647 56.2347 33.647Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M65.6467 33.647C66.5045 33.647 67.2018 33.7478 67.7379 33.9496C68.2738 34.1514 68.6678 34.4068 68.9201 34.7158C69.1724 35.0185 69.3492 35.4034 69.4501 35.8701C69.5069 36.1603 69.5352 36.6838 69.5352 37.4406V39.7112C69.5352 41.2941 69.57 42.2969 69.6393 42.7196C69.715 43.1359 69.86 43.5367 70.0745 43.9214H68.2957C68.1191 43.5682 68.0059 43.155 67.9554 42.682C67.3247 43.2181 66.7158 43.5965 66.1293 43.8173C65.549 44.038 64.9247 44.1483 64.2562 44.1483C63.1524 44.1483 62.3041 43.8801 61.7113 43.344C61.1184 42.8016 60.8219 42.1112 60.8219 41.2724C60.8219 40.7804 60.9322 40.3324 61.1529 39.9288C61.38 39.5188 61.6735 39.191 62.033 38.945C62.3988 38.6991 62.8086 38.5128 63.2627 38.3867C63.5969 38.2984 64.1015 38.2135 64.7764 38.1315C66.1512 37.9675 67.1635 37.7718 67.8132 37.5447C67.8195 37.3114 67.8229 37.1629 67.8229 37.0998C67.8229 36.4061 67.662 35.9173 67.3404 35.6335C66.9052 35.2488 66.2585 35.0566 65.4008 35.0566C64.5998 35.0566 64.0068 35.1986 63.622 35.4824C63.2437 35.7599 62.963 36.2548 62.7801 36.9673L61.1153 36.7404C61.2666 36.0278 61.5155 35.4536 61.8623 35.0184C62.2092 34.5769 62.7109 34.2397 63.3668 34.0063C64.0227 33.7667 64.7827 33.647 65.6467 33.647ZM67.8132 38.8785C67.1951 39.1308 66.2681 39.3454 65.0321 39.522C64.3321 39.6229 63.8369 39.7366 63.5467 39.8628C63.2566 39.9889 63.0326 40.1747 62.8749 40.4206C62.7173 40.6603 62.6383 40.9285 62.6383 41.2249C62.6383 41.6791 62.8086 42.0575 63.1492 42.3602C63.4961 42.663 64.0007 42.8145 64.663 42.8145C65.3189 42.8145 65.9025 42.6724 66.4133 42.3886C66.9242 42.0985 67.2992 41.7041 67.5389 41.2059C67.7218 40.8211 67.8132 40.2534 67.8132 39.5029V38.8785Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M84.5738 33.647C85.955 33.647 87.084 34.1009 87.9607 35.0091C88.8374 35.9111 89.2759 37.1601 89.2759 38.7558C89.2759 40.0487 89.0802 41.0674 88.6892 41.8117C88.3044 42.5496 87.7397 43.1233 86.9955 43.5332C86.2576 43.9431 85.4505 44.1483 84.5738 44.1483C83.1673 44.1483 82.0285 43.6973 81.1581 42.7954C80.2941 41.8935 79.8625 40.5942 79.8624 38.8976C79.8624 37.037 80.3794 35.6588 81.4138 34.7632C82.2779 34.0189 83.3313 33.647 84.5738 33.647ZM84.5738 35.0566C83.7223 35.0566 83.0156 35.3749 82.4543 36.0119C81.893 36.649 81.6123 37.611 81.6123 38.8976C81.6124 40.1842 81.893 41.1493 82.4543 41.7926C83.0156 42.4296 83.7223 42.748 84.5738 42.748C85.4189 42.7479 86.1222 42.4266 86.6836 41.7833C87.2449 41.14 87.5255 40.1591 87.5255 38.8409C87.5255 37.5984 87.2419 36.6583 86.6743 36.0212C86.113 35.3779 85.4126 35.0566 84.5738 35.0566Z",fill:t}),(0,d.jsx)("path",{d:"M104.439 33.647C105.227 33.647 105.918 33.7602 106.511 33.9873C107.11 34.2143 107.552 34.5237 107.835 34.9148C108.119 35.2995 108.314 35.8166 108.422 36.4661L106.757 36.693C106.681 36.1759 106.46 35.7725 106.094 35.4824C105.735 35.1923 105.224 35.0468 104.561 35.0468C103.78 35.0468 103.222 35.1765 102.887 35.435C102.553 35.6935 102.386 35.9961 102.386 36.3429
1C102.386 36.5637 102.455 36.7624 102.594 36.9389C102.733 37.1219 102.95 37.2733 103.247 37.3932C103.417 37.4562 103.918 37.6013 104.751 37.8283C105.955 38.15 106.795 38.4152 107.268 38.6233C107.747 38.8252 108.122 39.1217 108.393 39.5127C108.664 39.9037 108.8 40.3895 108.8 40.9697C108.8 41.5373 108.633 42.0733 108.299 42.5778C107.971 43.0761 107.495 43.464 106.87 43.7415C106.246 44.0127 105.539 44.1483 104.751 44.1483C103.445 44.1482 102.449 43.8771 101.761 43.3347C101.08 42.7923 100.645 41.9882 100.456 40.9223L102.14 40.6573C102.234 41.3321 102.496 41.8492 102.925 42.2087C103.36 42.5682 103.966 42.748 104.741 42.748C105.523 42.748 106.104 42.5905 106.482 42.2752C106.861 41.9535 107.05 41.578 107.05 41.1492C107.05 40.7645 106.883 40.4619 106.548 40.2412C106.315 40.0898 105.735 39.8971 104.808 39.6638C103.559 39.3484 102.691 39.0773 102.206 38.8502C101.727 38.6169 101.361 38.2984 101.109 37.8948C100.863 37.4849 100.739 37.0339 100.739 36.5419C100.739 36.0942 100.84 35.6809 101.042 35.3025C101.25 34.9178 101.531 34.5994 101.884 34.3471C102.149 34.1516 102.509 33.9872 102.963 33.8548C103.423 33.716 103.915 33.647 104.439 33.647Z",fill:t}),(0,d.jsx)("path",{d:"M73.7249 33.8738H75.4376V35.1983H73.7249V41.0734C73.7249 41.5589 73.7532 41.8714 73.8099 42.0102C73.873 42.1489 73.9709 42.2592 74.1033 42.3412C74.2421 42.4232 74.4377 42.4644 74.69 42.4644C74.8792 42.4644 75.1286 42.442 75.4376 42.3979L75.6835 43.9023C75.2042 44.0033 74.7751 44.0539 74.3967 44.0539C73.7786 44.0539 73.2993 43.956 72.9587 43.7606C72.6181 43.565 72.3782 43.3093 72.2395 42.9939C72.1008 42.6721 72.0317 42.0005 72.0317 40.979V35.1983H70.7825V33.8738H72.0317V31.3856L73.7249 30.3638V33.8738Z",fill:t}),(0,d.jsx)("path",{d:"M37.3658 43.9214H35.6628V30.0518H37.3658V43.9214Z",fill:t}),(0,d.jsx)("path",{d:"M41.2626 43.9214H39.5596V33.8738H41.2626V43.9214Z",fill:t}),(0,d.jsx)("path",{d:"M46.5876 29.8152C47.0669 29.8152 47.5969 29.8718 48.1771 29.9853L47.9214 31.4707C47.5682 31.4077 47.2339 31.3763 46.9186 31.3763C46.4014 31.3764 46.0354 31.4866 45.8209 31.7074C45.6066 31.9281 45.4997 32.3414 45.4997 32.9468V33.8738H47.4579V35.1983H45.4997V43.9214H43.806V35.1983H42.3016V33.8738H43.806V32.8045C43.806 32.1298 43.8661 31.6285 43.986 31.3006C44.1499 30.8591 44.4366 30.5025 44.8465 30.2313C45.2628 29.9537 45.8433 29.8152 46.5876 29.8152Z",fill:t}),(0,d.jsx)("path",{d:"M50.0394 43.9214H48.3365V33.8738H50.0394V43.9214Z",fill:t}),(0,d.jsx)("path",{d:"M78.3595 43.9214H76.6565V33.8738H78.3595V43.9214Z",fill:t}),(0,d.jsx)("path",{d:"M95.547 33.647C96.1524 33.647 96.7073 33.7573 97.2118 33.978C97.7226 34.1924 98.1046 34.476 98.3569 34.8292C98.6091 35.1824 98.7855 35.6021 98.8864 36.0877C98.9494 36.4031 98.9812 36.9549 98.9812 37.7432V43.9214H97.2783V37.8097C97.2783 37.1159 97.2122 36.5985 97.0798 36.2579C96.9473 35.911 96.7104 35.6368 96.3698 35.435C96.0356 35.2269 95.6416 35.1226 95.1876 35.1226C94.4623 35.1226 93.8345 35.353 93.3047 35.8134C92.7812 36.2739 92.5195 37.1474 92.5195 38.4341V43.9214H90.8165V33.8738H92.3493V35.3025C93.0873 34.1988 94.1531 33.647 95.547 33.647Z",fill:t}),(0,d.jsx)("path",{d:"M41.2626 32.01H39.5596V30.0518H41.2626V32.01Z",fill:t}),(0,d.jsx)("path",{d:"M50.0394 32.01H48.3365V30.0518H50.0394V32.01Z",fill:t}),(0,d.jsx)("path",{d:"M78.3595 32.01H76.6565V30.0518H78.3595V32.01Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M89.5252 24.6457H88.1127V23.5123C87.5432 24.4032 86.7057 24.8485 85.6006 24.8486C84.8844 24.8486 84.2243 24.6512 83.6209 24.2565C83.0232 23.8618 82.5581 23.3117 82.2255 22.6068C81.8985 21.8964 81.7346 21.0817 81.7346 20.1627C81.7346 19.266 81.8841 18.4537 82.1829 17.7263C82.4818 16.9933 82.9303 16.4325 83.528 16.0434C84.1257 15.6543 84.7939 15.4596 85.5326 15.4596C86.0739 15.4596 86.556 15.5751 86.9789 15.8063C87.4018 16.0318 87.746 16.3281 88.011 16.6946V12.2453H89.5252V24.6457ZM85.6764 16.7201C84.9997 16.7201 84.4331 16.9962 83.9763 17.5488C83.5252 18.1014 83.2997 18.9728 83.2997 20.1627C83.2997 21.3129 83.5423 22.1727 84.0272 22.7423C84.5121 23.3118 85.0845 23.5969 85.7443 23.5969C86.4097 23.5969 86.9737 23.3261 87.436 22.7848C87.9041 22.2378 88.1381 21.4058 88.1381 20.2893C88.1381 19.06 87.9009 18.1577 87.4272 17.5826C86.9536 17.00
175 86.3699 16.7201 85.6764 16.7201Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95.4418 15.4596C96.6429 15.4596 97.6244 15.8682 98.3857 16.6858C99.147 17.5035 99.5274 18.6542 99.5274 20.1372C99.5274 20.2274 99.5247 20.3627 99.5191 20.543H92.8197C92.8761 21.5299 93.1553 22.2858 93.6572 22.8102C94.1591 23.3346 94.7852 23.5969 95.5352 23.5969C96.0934 23.5969 96.5697 23.45 96.9644 23.1569C97.3591 22.8637 97.6724 22.3955 97.9036 21.7527L99.477 21.9473C99.2289 22.8664 98.7692 23.5798 98.0982 24.0873C97.4272 24.5948 96.5696 24.8486 95.5264 24.8486C94.2126 24.8485 93.1693 24.4453 92.3968 23.639C91.6299 22.827 91.2468 21.6906 91.2468 20.2301C91.2468 18.7189 91.6357 17.5458 92.4139 16.7113C93.192 15.8768 94.2014 15.4597 95.4418 15.4596ZM95.4589 16.7113C94.7597 16.7113 94.1703 16.9453 93.691 17.4134C93.2173 17.8814 92.955 18.5076 92.9043 19.2914H97.9202C97.8526 18.5358 97.661 17.9692 97.3453 17.5914C96.8603 17.0049 96.2315 16.7113 95.4589 16.7113Z",fill:t}),(0,d.jsx)("path",{d:"M113.341 15.4596C114.316 15.4596 115.114 15.7075 115.735 16.2038C116.355 16.6944 116.752 17.3939 116.927 18.3018L115.447 18.5301C115.306 17.9268 115.055 17.4729 114.694 17.1684C114.339 16.8639 113.907 16.7113 113.4 16.7113C112.633 16.7113 112.01 16.9879 111.531 17.5405C111.051 18.0875 110.811 18.9558 110.811 20.1455C110.811 21.3522 111.043 22.229 111.505 22.776C111.968 23.323 112.571 23.5969 113.315 23.5969C113.913 23.5969 114.412 23.4134 114.812 23.0469C115.213 22.6803 115.467 22.1164 115.574 21.3552L117.071 21.5498C116.907 22.5816 116.487 23.3909 115.811 23.9773C115.14 24.5581 114.314 24.8486 113.332 24.8486C112.103 24.8486 111.113 24.448 110.363 23.6473C109.619 22.8409 109.247 21.6879 109.247 20.1881C109.247 19.2182 109.408 18.3691 109.729 17.6417C110.05 16.9144 110.538 16.37 111.192 16.0092C111.852 15.6427 112.568 15.4596 113.341 15.4596Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M121.888 15.4596C123.089 15.4596 124.07 15.8683 124.832 16.6858C125.593 17.5035 125.974 18.6542 125.974 20.1372C125.974 20.2274 125.971 20.3627 125.965 20.543H119.266C119.323 21.5299 119.602 22.2858 120.104 22.8102C120.605 23.3345 121.231 23.5969 121.981 23.5969C122.539 23.5969 123.016 23.4501 123.411 23.1569C123.806 22.8637 124.118 22.3955 124.35 21.7527L125.923 21.9473C125.675 22.8664 125.215 23.5798 124.544 24.0873C123.873 24.5948 123.016 24.8486 121.973 24.8486C120.659 24.8486 119.616 24.4454 118.843 23.639C118.076 22.827 117.693 21.6906 117.693 20.2301C117.693 18.7189 118.082 17.5458 118.86 16.7113C119.638 15.8768 120.648 15.4596 121.888 15.4596ZM121.905 16.7113C121.206 16.7113 120.617 16.9454 120.137 17.4134C119.664 17.8814 119.401 18.5075 119.351 19.2914H124.367C124.299 18.5358 124.107 17.9692 123.791 17.5914C123.306 17.0049 122.678 16.7113 121.905 16.7113Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.0835 15.7251C17.2498 15.7251 18.2025 16.1221 18.9418 16.9161C19.681 17.7101 20.0507 18.8272 20.0507 20.2673C20.0507 20.3549 20.0479 20.4866 20.0424 20.6619H13.5371C13.5919 21.6201 13.8629 22.3538 14.3502 22.863C14.8376 23.3723 15.4456 23.6272 16.1739 23.6272C16.716 23.6272 17.1787 23.4846 17.562 23.1999C17.9453 22.9152 18.2494 22.4605 18.4739 21.8363L20.0013 22.0255C19.7603 22.918 19.3142 23.6107 18.6626 24.1035C18.011 24.5963 17.1786 24.8427 16.1656 24.8427C14.8898 24.8427 13.8766 24.4513 13.1264 23.6683C12.3817 22.8798 12.0092 21.776 12.0092 20.3577C12.0092 18.8902 12.3869 17.751 13.1425 16.9406C13.8982 16.1301 14.8787 15.7251 16.0835 15.7251ZM16.0996 16.9406C15.4207 16.9406 14.8484 17.1682 14.383 17.6226C13.9231 18.0771 13.6686 18.6848 13.6193 19.4459H18.49C18.4243 18.7123 18.2382 18.1621 17.9316 17.7952C17.4607 17.2257 16.8498 16.9406 16.0996 16.9406Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M26.0587 15.7251C26.8034 15.7251 27.4087 15.8129 27.8741 15.9881C28.3395 16.1633 28.6818 16.3848 28.9009 16.6531C29.1199 16.9159 29.2733 17.2502 29.361 17.6554C29.4102 17.9073 29.4348 18.3619 29.4348 19.019V20.9904C29.4348 22.3647 29.465 23.2354 29.5252 23.6023C29.591 23.9637 29.717 24.3116 29.9032 24.6457H28.3586C28.2053 24.339 28.1071 23.9802 28.0633 23.5695C27.5157 24.035 26.987 24.3636 26.4777 24.5552C25.974 24.7469 25.4319 24.8427 24.8515 24.8427C23.8933 24.8427 23.1568 24.6099 22.642 24.1445C22.1273 23.6736 21.8695 23.074 21.8695 22.3457C21.8695 21.9186 21.9654 21.5296 22.157 21.1791C22.3542 20.8232 22.6091 20.5385 22.9212 20.325C23.2388 20.1114 23.5948 19.95 23.989 19.8404C24.2793 19.7638 24.7174 19.6897 25.3033 19.6185C26.497 19.4761 27.3761 19.3066 27.9401 19.1095C27.9456 18.9069 27.9479 18.778 27.9479 18.7232C27.9479 18.121 27.8086 17.6965 27.5294 17.45C27.1516 17.116 26.5902 16.9489 25.8455 16.9489C25.1501 16.9489 24.635 17.0721 24.301 17.3185C23.9724 17.5595 23.7288 17.9896 23.57 18.6083L22.1243 18.4113C22.2557 17.7926 22.4719 17.294 22.7731 16.9161C23.0743 16.5328 23.51 16.2396 24.0795 16.037C24.6489 15.829 25.3087 15.7251 26.0587 15.7251ZM27.9401 20.2673C27.4035 20.4863 26.5981 20.6728 25.5248 20.8261C24.9171 20.9137 24.4873 21.0124 24.2355 21.1219C23.9836 21.2315 23.7891 21.3929 23.6522 21.6065C23.5153 21.8145 23.4468 22.0473 23.4468 22.3047C23.4469 22.6989 23.5946 23.0275 23.8903 23.2904C24.1915 23.5532 24.6296 23.6844 25.2045 23.6844C25.774 23.6844 26.2806 23.5612 26.7241 23.3148C27.1677 23.0629 27.4934 22.7206 27.7015 22.288C27.8603 21.954 27.9401 21.4612 27.9401 20.8095V20.2673Z",fill:t}),(0,d.jsx)("path",{d:"M41.2127 15.7251C41.8972 15.7251 42.4972 15.8238 43.012 16.0209C43.5321 16.218 43.9156 16.4862 44.162 16.8257C44.4083 17.1597 44.5779 17.6088 44.6709 18.1727L43.2252 18.3702C43.1595 17.9212 42.9678 17.5704 42.6502 17.3185C42.3381 17.0667 41.8946 16.9406 41.3198 16.9406C40.6408 16.9406 40.1559 17.0529 39.8657 17.2775C39.5755 17.502 39.4306 17.7649 39.4306 18.0661C39.4306 18.2577 39.4906 18.4301 39.611 18.5834C39.7314 18.7422 39.9208 18.8739 40.1781 18.978C40.3262 19.0328 40.7616 19.1589 41.4841 19.3559C42.5299 19.6352 43.2584 19.8651 43.6691 20.0458C44.0852 20.221 44.4111 20.4784 44.6465 20.8178C44.8819 21.1573 44.9995 21.579 44.9995 22.0827C44.9995 22.5755 44.8545 23.041 44.5644 23.4791C44.2796 23.9117 43.8661 24.2488 43.3239 24.4897C42.7818 24.7252 42.1685 24.8427 41.4841 24.8427C40.3505 24.8427 39.4852 24.6072 38.8883 24.1362C38.2969 23.6653 37.9193 22.9671 37.755 22.0416L39.2169 21.8118C39.299 22.3977 39.5262 22.8467 39.8985 23.1588C40.2763 23.471 40.8022 23.6272 41.4758 23.6272C42.1547 23.6272 42.6585 23.4902 42.9871 23.2165C43.3156 22.9373 43.4799 22.611 43.4799 22.2387C43.4799 21.9048 43.3348 21.6421 43.0448 21.4505C42.8422 21.3191 42.3383 21.1519 41.5335 20.9493C40.4494 20.6756 39.6963 20.44 39.2746 20.2428C38.8584 20.0402 38.5407 19.7636 38.3217 19.4131C38.1081 19.0572 38.0014 18.6658 38.0014 18.2387C38.0014 17.8499 38.0887 17.4911 38.264 17.1626C38.4447 16.8285 38.6883 16.5519 38.9949 16.3328C39.2249 16.1631 39.5374 16.021 39.9317 15.906C40.3314 15.7856 40.7583 15.7251 41.2127 15.7251Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M50.8022 15.7251C52.0014 15.7251 52.9819 16.1193 53.7431 16.9078C54.5043 17.6909 54.8848 18.7753 54.8848 20.1607C54.8848 21.2832 54.7148 22.1675 54.3753 22.8137C54.0413 23.4544 53.5513 23.9529 52.9051 24.3088C52.2644 24.6647 51.5633 24.8427 50.8022 24.8427C49.5812 24.8427 48.5929 24.4512 47.8373 23.6683C47.0871 22.8852 46.7118 21.757 46.7118 20.2839C46.7118 18.6685 47.1607 17.4718 48.0588 16.6942C48.8089 16.048 49.7235 15.7251 50.8022 15.7251ZM50.8022 16.9489C50.063 16.9489 49.4497 17.2256 48.9623 17.7786C48.475 18.3317 48.2314 19.1668 48.2314 20.2839C48.2314 21.401 48.475 22.239 48.9623 22.797
15C49.4496 23.3505 50.063 23.6272 50.8022 23.6272C51.536 23.6272 52.1468 23.3478 52.6342 22.7892C53.1216 22.2306 53.3652 21.379 53.3652 20.2345C53.3652 19.1558 53.1187 18.34 52.6259 17.7869C52.1385 17.2284 51.5305 16.9489 50.8022 16.9489Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.50833 12.6037C6.30772 12.6037 6.91824 12.642 7.33987 12.7186C7.93125 12.8172 8.42698 13.0061 8.82672 13.2853C9.22647 13.5591 9.54702 13.9453 9.78796 14.4436C10.0344 14.9419 10.1576 15.4896 10.1576 16.0864C10.1576 17.1104 9.83138 17.9786 9.17973 18.6905C8.52805 19.3968 7.3506 19.75 5.64767 19.75H2.55957V24.6457H0.965644V12.6037H5.50833ZM2.55957 18.3291H5.67261C6.70188 18.3291 7.43286 18.1373 7.86548 17.7542C8.29808 17.3708 8.51478 16.8312 8.51478 16.1358C8.51478 15.632 8.3859 15.2019 8.12852 14.846C7.87664 14.4846 7.54235 14.2466 7.12621 14.1317C6.85787 14.0605 6.36245 14.0246 5.63985 14.0246H2.55957V18.3291Z",fill:t}),(0,d.jsx)("path",{d:"M35.4428 15.7251C35.9411 15.7251 36.4477 15.8838 36.9624 16.2013L36.4534 17.5733C36.092 17.3597 35.7304 17.253 35.369 17.253C35.0459 17.253 34.7555 17.3517 34.4982 17.5488C34.2409 17.7405 34.0576 18.0087 33.9481 18.3536C33.7839 18.8793 33.7017 19.4543 33.7017 20.0786V24.6457H32.2232V15.9221H33.5536V17.2447C33.8931 16.6259 34.2056 16.218 34.4904 16.0209C34.7805 15.8238 35.0979 15.7251 35.4428 15.7251Z",fill:t}),(0,d.jsx)("path",{d:"M61.238 15.7251C61.7636 15.7251 62.2457 15.8209 62.6838 16.0126C63.1272 16.1987 63.4583 16.4453 63.6773 16.7519C63.8963 17.0585 64.0497 17.4225 64.1374 17.8441C64.1921 18.1179 64.2195 18.5972 64.2195 19.2816V24.6457H62.741V19.3393C62.741 18.737 62.6834 18.288 62.5684 17.9923C62.4534 17.6911 62.248 17.4527 61.9523 17.2775C61.6621 17.0968 61.3198 17.0066 60.9256 17.0066C60.2959 17.0066 59.751 17.2063 59.291 17.606C58.8365 18.0058 58.6095 18.7644 58.6095 19.8815V24.6457H57.1309V15.9221H58.4613V17.1626C59.102 16.2042 60.0278 15.7251 61.238 15.7251Z",fill:t}),(0,d.jsx)("path",{d:"M80.0981 13.7087H72.7729V17.5068H79.6326V18.9613H72.7729V23.1823H80.3856V24.6457H71.132V12.2453H80.0981V13.7087Z",fill:t}),(0,d.jsx)("path",{d:"M103.736 17.7688C103.995 18.1692 104.204 18.5049 104.362 18.7755C104.61 18.4034 104.838 18.073 105.047 17.7855L106.561 15.6625H108.38L105.275 19.8918L108.617 24.6457H106.747L104.903 21.8544L104.412 21.1014L102.053 24.6457H100.208L103.491 19.9764L100.454 15.6625H102.357L103.736 17.7688Z",fill:t}),(0,d.jsx)("path",{d:"M129.159 24.6457H127.636V12.2453H129.159V24.6457Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.383 6.02073H13.697V5.47019C13.4205 5.9028 13.0138 6.1195 12.4771 6.1195C12.1295 6.11948 11.8092 6.02355 11.5163 5.832C11.2262 5.64038 11.0002 5.37327 10.8387 5.03113C10.6799 4.68614 10.6001 4.2903 10.6001 3.844C10.6001 3.40866 10.673 3.01447 10.8181 2.66127C10.9633 2.30533 11.1807 2.03269 11.4709 1.84377C11.7611 1.65485 12.0857 1.56068 12.4443 1.56068C12.7071 1.56068 12.9411 1.61667 13.1465 1.72887C13.3518 1.83838 13.5189 1.98216 13.6476 2.16011V0H14.383V6.02073ZM12.5143 2.17233C12.1857 2.17233 11.9102 2.30641 11.6885 2.57473C11.4694 2.84305 11.3599 3.26627 11.3599 3.844C11.3599 4.40256 11.4779 4.82011 11.7134 5.09665C11.9488 5.37315 12.2267 5.51126 12.547 5.51126C12.8701 5.51126 13.1439 5.38003 13.3684 5.11718C13.5957 4.85159 13.7092 4.44773 13.7092 3.9056C13.7092 3.30878 13.5945 2.87063 13.3645 2.59135C13.1345 2.3121 12.851 2.17236 12.5143 2.17233Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.3195 1.56068C17.9191 1.5607 18.4092 1.75758 18.7897 2.1518C19.1703 2.54334 19.3608 3.08576 19.3608 3.77848C19.3608 4.33968 19.2758 4.78191 19.1061 5.10496C18.939 5.42529 18.6938 5.67457 18.3707 5.85254C18.0504 6.03044 17.7 6.11948 17.3195 6.1195C16.7089 6.1195 16.2144 5.92334 15.8366 5.5318C15.4616 5.1403 15.2743 4.5764 15.2743 3.84009C15.2743 3.03243 15.4986 2.43401 15.9476 2.04521C16.3227 1.72212 16.7801 1.56068 17.3195 1.56068ZM17.3195 2.17233C16.9499 2.17233 16.643 2.3109 16.3993 2.58744C16.1557 2.86398 16.0341 3.28163 16.0341 3.84009C16.0341 4.39851 16.1557 4.8174 16.3993 5.09665C16.643 5.37319 16.9499 5.51126 17.3195 5.51126C17.6863 5.51124 17.9916 5.37191 18.2353 5.09273C18.479 4.81346 18.601 4.3874 18.601 3.81515C18.601 3.27587 18.4777 2.86787 18.2314 2.59135C17.9877 2.3121 17.6836 2.17236 17.3195 2.17233Z",fill:t}),(0,d.jsx)("path",{d:"M24.4658 1.56068C24.8079 1.56069 25.1076 1.60982 25.3649 1.70833C25.6249 1.80687 25.8167 1.94104 25.9399 2.11073C26.0631 2.27775 26.1481 2.50246 26.1946 2.78448L25.472 2.88275C25.4391 2.65833 25.3432 2.48307 25.1845 2.35715C25.0284 2.2312 24.8065 2.16842 24.5191 2.16842C24.1795 2.16842 23.9371 2.22436 23.792 2.33661C23.6469 2.44887 23.5744 2.5806 23.5744 2.73118C23.5745 2.82694 23.6047 2.91322 23.6649 2.98983C23.7251 3.06915 23.8194 3.13488 23.948 3.18687C24.0219 3.21425 24.2398 3.27704 24.6012 3.3756C25.124 3.5152 25.4881 3.63044 25.6935 3.72079C25.9016 3.8084 26.0647 3.93729 26.1824 4.10704C26.3001 4.27676 26.3589 4.48745 26.3589 4.73924C26.3589 4.98563 26.2864 5.21841 26.1413 5.43743C25.999 5.65367 25.7923 5.82204 25.5214 5.9425C25.2503 6.06024 24.9434 6.1195 24.6012 6.1195C24.0345 6.1195 23.602 6.00143 23.3036 5.766C23.0079 5.53053 22.8185 5.18143 22.7364 4.7187L23.4678 4.6038C23.5089 4.89676 23.6225 5.12149 23.8086 5.27755C23.9975 5.43353 24.2606 5.51126 24.5973 5.51126C24.9367 5.51124 25.1884 5.44278 25.3527 5.30591C25.5169 5.1663 25.5991 5.00359 25.5991 4.81746C25.5991 4.65044 25.5266 4.51873 25.3815 4.42289C25.2802 4.35719 25.028 4.27384 24.6256 4.17256C24.0836 4.03568 23.707 3.91811 23.4962 3.81955C23.2882 3.71825 23.1295 3.57966 23.02 3.40445C22.9132 3.22649 22.8596 3.03077 22.8596 2.81724C22.8596 2.62291 22.9036 2.44364 22.9911 2.27941C23.0815 2.11239 23.2035 1.97383 23.3569 1.8643C23.4718 1.77948 23.6278 1.70811 23.8248 1.65064C24.0246 1.5904 24.2385 1.56068 24.4658 1.56068Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M29.0285 1.56068C29.6117 1.56068 30.088 1.75918 30.4576 2.1562C30.8273 2.55321 31.0121 3.11168 31.0121 3.83177C31.0121 3.87558 31.0109 3.94126 31.0082 4.02881H27.7553C27.7827 4.50797 27.9184 4.87477 28.1621 5.1294C28.4058 5.38404 28.7098 5.51126 29.074 5.51126C29.3449 5.51123 29.5762 5.44035 29.7678 5.29809C29.9594 5.15571 30.1117 4.92816 30.2239 4.61602L30.9876 4.71039
1C30.8672 5.15669 30.6441 5.50344 30.3183 5.74986C29.9925 5.99627 29.5761 6.1195 29.0696 6.1195C28.4316 6.11948 27.925 5.92332 27.55 5.5318C27.1777 5.13753 26.9916 4.58581 26.9916 3.87676C26.9916 3.14304 27.1805 2.57363 27.5583 2.16842C27.9361 1.76321 28.4262 1.5607 29.0285 1.56068ZM29.0368 2.16842C28.6973 2.16842 28.411 2.28195 28.1782 2.50921C27.9483 2.73645 27.821 3.04054 27.7964 3.42107H30.2318C30.1989 3.05417 30.1059 2.77871 29.9526 2.59526C29.7171 2.31061 29.4118 2.16842 29.0368 2.16842Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M35.4355 6.02073H34.7495V5.47019C34.473 5.90275 34.0667 6.11944 33.5301 6.1195C33.1824 6.1195 32.8618 6.02362 32.5689 5.832C32.2787 5.64037 32.0527 5.37331 31.8912 5.03113C31.7324 4.68614 31.6531 4.2903 31.6531 3.844C31.6531 3.40868 31.7256 3.01445 31.8707 2.66127C32.0158 2.30532 32.2336 2.03269 32.5239 1.84377C32.814 1.65496 33.1383 1.56071 33.4969 1.56068C33.7597 1.56068 33.9941 1.61661 34.1995 1.72887C34.4048 1.83839 34.5719 1.98216 34.7006 2.16011V0H35.4355V6.02073ZM33.5668 2.17233C33.2383 2.17236 32.9632 2.30653 32.7415 2.57473C32.5224 2.84305 32.4129 3.26627 32.4129 3.844C32.4129 4.40252 32.5305 4.82011 32.7659 5.09665C33.0013 5.37313 33.2793 5.51121 33.5995 5.51126C33.9226 5.51126 34.1964 5.37997 34.4209 5.11718C34.6482 4.85159 34.7622 4.44773 34.7622 3.9056C34.7622 3.30871 34.647 2.87063 34.417 2.59135C34.187 2.31207 33.9035 2.17233 33.5668 2.17233Z",fill:t}),(0,d.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M42.9709 1.64037C43.5598 1.64039 44.041 1.83401 44.4147 2.22123C44.7885 2.60577 44.9756 3.13825 44.9756 3.81857C44.9755 4.36962 44.8923 4.80384 44.7257 5.12109C44.5617 5.43571 44.3209 5.68068 44.0036 5.85547C43.689 6.03025 43.3447 6.11752 42.9709 6.11754C42.3713 6.11754 41.886 5.92511 41.5149 5.5406C41.1465 5.15605 40.9619 4.60209 40.9619 3.87871C40.9619 3.08553 41.1825 2.49795 41.6234 2.11611C41.9918 1.79879 42.4412 1.64037 42.9709 1.64037ZM42.9709 2.24127C42.6079 2.24127 42.3067 2.37698 42.0674 2.64855C41.8281 2.92014 41.7085 3.33019 41.7085 3.87871C41.7085 4.4273 41.828 4.83898 42.0674 5.11327C42.3067 5.38479 42.6079 5.52055 42.9709 5.52055C43.3312 5.52053 43.6313 5.38361 43.8706 5.10936C44.1099 4.83509 44.2294 4.41672 44.2294 3.85475C44.2294 3.32499 44.1082 2.92407 43.8662 2.65247C43.6269 2.37829 43.3285 2.2413 42.9709 2.24127Z",fill:t}),(0,d.jsx)("path",{d:"M5.03944 0.710421H1.48245V2.55419H4.81355V3.2607H1.48245V5.31031H5.17879V6.02073H0.685974V0H5.03944V0.710421Z",fill:t}),(0,d.jsx)("path",{d:"M8.23853 1.56068C8.50139 1.56068 8.74263 1.60859 8.96167 1.70442C9.18337 1.79751 9.34893 1.92076 9.45842 2.07406C9.56791 2.22737 9.64491 2.40941 9.68871 2.6202C9.71607 2.75712 9.72978 2.99678 9.72978 3.33893V6.02073H8.99051V3.36778C8.99051 3.06659 8.96147 2.84188 8.90397 2.69403C8.84647 2.54345 8.74379 2.42423 8.59595 2.33661C8.45085 2.24631 8.27965 2.20118 8.08256 2.20118C7.76781 2.2012 7.49549 2.30113 7.26556 2.5009C7.0383 2.70077 6.92428 3.08009 6.92428 3.63865V6.02073H6.18501V1.65895H6.85045V2.27941C7.17077 1.80031 7.63353 1.56073 8.23853 1.56068Z",fill:t}),(0,d.jsx)("path",{d:"M21.8328 1.56068C22.082 1.56068 22.3353 1.64002 22.5927 1.79879L22.3384 2.48476C22.1577 2.378 21.9769 2.32441 21.7962 2.32439C21.6346 2.32439 21.4892 2.37348 21.3605 2.47205C21.2319 2.56788 21.1405 2.70245 21.0858 2.87493C21.0036 3.13775 20.9625 3.42532 20.9625 3.73741V6.02073H20.2233V1.65895H20.8882V2.32048C21.058 2.01108 21.2143 1.8069 21.3566 1.70833C21.5017 1.6098 21.6604 1.56071 21.8328 1.56068Z",fill:t}),(0,d.jsx)("path",{d:"M40.2925 0.00635614C40.4969 0.00636398 40.7228 0.0308107 40.9702 0.0792073L40.8612 0.712377C40.7107 0.685503 40.5682 0.672299 40.4338 0.672284C40.2135 0.672284 40.0574 0.719093 39.9659 0.813097C39.8745 0.907217 39.8285 1.08348 39.8285 1.34163V1.73718H40.6636V2.3019H39.8285V6.02073H39.1064V2.3019H38.4654V1.73718H39.1064V1.28101C39.1064 0.993484 39.1321 0.779834 39.1832 0.640014C39.2531 0.451775 39.3756 0.299472 39.5503 0.183839C39.7278 0.0655728 39.9753 0.00635614 40.2925 0.00635614Z",fill:t}),(0,d.jsx)("path",{d:"M47.4041 1.64037C47.6487 1.64042 47.8975 1.71816 48.1502 1.87408L47.8999 2.54783C47.7224 2.44298 47.5449 2.3904 47.3674 2.3904C47.2088 2.39043 47.0664 2.43886 46.9401 2.53561C46.8137 2.62973 46.7235 2.76174 46.6697 2.93116C46.5891 3.18925 46.5489 3.47152 46.5489 3.77799V6.02073H45.8229V1.73718H46.4761V2.38649C46.6428 2.08261 46.7963 1.8824 46.9362 1.78559C47.0787 1.68879 47.2347 1.64037 47.4041 1.64037Z",fill:t})]})})},nc=["/a-level/business/edexcel/17/","/a-level/maths/edexcel/18/pure/","/igcse/maths/edexcel/a/18/higher/","/gcse/maths/edexcel/22/"];var nd=s(95026),nu=s(89959),np=s(40331),nh=s(88162),nm=s(92551),ng=s(75218),nx=s(15412),nv=s(84622),nC=s(36687),nf=s(7222),nb=s(29699),ny=s(60851),n_=s(71622),nj=s(66151),nN=s.n(nj),nw=s(21246),nA=s(79872),nk=s(98750),nS=s(32044),nT=s(2758),nE=s.n(nT);let nI=e=>{let{selectionRect:t,onClick:s}=e;if(!t)return null;let n={top:Math.max(8,t.top-40-8),left:Math.max(8,Math.min(t.left+t.width/2,window.innerWidth-8))};return(0,ny.createPortal)((0,d.jsx)("div",{className:nE().popover,style:n,children:(0,d.jsxs)("button",{type:"button",className:nE().button,onClick:s,children:[(0,d.jsx)(ev.A,{svg:nS.A,size:"XS"}),(0,d.jsx)("span",{children:"Help me understand"})]})}),document.body)};var nW=s(84552),nR=s(55971),nL=s.n(nR);let nV=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],[s,n]=(0,g.useState)(null),[i,r]=(0,g.useState)(null),a=(0,g.useRef)(null),l=(0,g.useRef)(null),o=()=>{null!==a.current&&(a.current=null,l.current=null,n(null),r(null))},c=()=>{let e=window.getSelection();if(!e||e.isCollapsed||0===e.rangeCount)return;let t=e.getRangeAt(0).getBoundingClientRect();l.current&&t.top===l.current.top&&t.left===l.current.left&&t.width===l.current.width&&t.height===l.current.height||(l.current=t,r(t))},d=(0,g.useCallback)(nL()(()=>{let t=window.getSelection();if(!t||t.isCollapsed||!e.current)return o();let{anchorNode:s,focusNode:i}=t,r=s&&i,l=e.current.contains(s)&&e.current.contains(i);if(!r||!l)return o();let d=t.toString().trim();if(!d||d.length>1e3)return o();d!==a.current&&(a.current=d,n(d)),c()},50),[]);return(0,g.useEffect)(()=>
1{if(!t)return;let e=()=>{null!==a.current&&c()};return document.addEventListener("selectionchange",d),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e,{passive:!0}),()=>{d.cancel(),document.removeEventListener("selectionchange",d),window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[e,t]),{selectedText:s,selectionRect:i,clearSelection:()=>{var e;null==(e=window.getSelection())||e.removeAllRanges(),o()}}};var nP=s(5194),nM=s(57384),nO=s(77088),nF=s(1767),nH=s.n(nF),nq=s(69245),nD=s(60186);function nU(){return(nU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(null,arguments)}function nB(){return(nB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(null,arguments)}var nz=s(34012);function nQ(){return(nQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(null,arguments)}var nY=s(41725);let nZ=[{title:"Definitions",description:"Define the key terms in this revision note",message:nY.g[nY.k.KEY_TERMS],icon:e=>g.createElement("svg",nU({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960"},e),l||(l=g.createElement("path",{d:"M240-80q-50 0-85-35t-35-85v-560q0-50 35-85t85-35h360q24.75 0 42.38 17.62Q660-844.75 660-820v500q0 24.75-17.62 42.37Q624.75-260 600-260H240q-25.5 0-42.75 17.5T180-200t17.25 42.5T240-140h540v-630q0-12.75 8.68-21.38 8.67-8.62 21.5-8.62 12.82 0 21.32 8.62 8.5 8.63 8.5 21.38v630q0 24.75-17.62 42.37Q804.75-80 780-80zm0-240h360v-500H240q-25.5 0-42.75 17.25T180-760v457q13-8 27.88-12.5Q222.77-320 240-320m52.09-100q8.34 0 14.08-4t7.83-11l20-56h113l18.82 56.21q1.89 6.9 7.53 10.85Q479-420 486.5-420q12.86 0 20.18-10t2.32-21l-88.86-234q-2.02-7-8.08-11t-13.89-4h-17.63q-7.83 0-13.71 4-5.87 4-7.83 11l-88 235q-5 11 1.78 20.5 6.79 9.5 19.31 9.5M348-532l41.49-116h2.02L433-532zM180-303v-517z"}))),interaction:U.W7.chatInteraction.chatStartedDefinitionsPrompt},{title:"Summary",description:"Summarise the key points",message:nY.g[nY.k.SUMMARY],icon:nz.A,interaction:U.W7.chatInteraction.chatStartedSummaryPrompt},{title:"Pitfalls",description:"Examine common misconceptions",message:nY.g[nY.k.PITFALLS],icon:e=>g.createElement("svg",nQ({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960"},e),c||(c=g.createElement("path",{d:"m503-242-128-97q-8-7-14.5-15t-8.5-19l-50-219-105 90 25 118q2 13-4.5 23.5T198-348t-23.5-4.5T162-372l-24-117q-3-16 2-30.5t17-25.5l148-132q21-19 49-15t55 15q34 14 70 20.5t72 1.5q26-4 48-15t43-26q11-8 23.5-7t20.5 11 6.5 22-12.5 20q-22 16-44.5 28.5T587-601q-35 10-72 8t-72-11l33 150 129-25q12-2 23.5.5T650-469l151 107q11 8 12.5 20t-6.5 23q-8 10-19.5 12t-21.5-5L622-413l-170 34 91 67q14 11 20 26.5t3 32.5L537-92q-2 13-12.5 19.5T501-68t-19.5-12.5T477-104zM270.5-780.5Q250-801 250-830t20.5-49.5T320-900t49.5 20.5T390-830t-20.5 49.5T320-760t-49.5-20.5"}
1))),interaction:U.W7.chatInteraction.chatStartedPitfallsPrompt},{title:"Exam help",description:"Tips for understanding this topic",message:nY.g[nY.k.TOP_TIPS],icon:e=>g.createElement("svg",nB({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960"},e),o||(o=g.createElement("path",{d:"m222-299 158-158q9-9 21-8.5t21.39 9.5q8.61 9 8.61 21t-9 21L243-235q-9 9-21 9t-21-9L101-335q-9-9-9-21t9-21 21-8.5 21 8.5zm0-320 158-158q9-9 21-8.5t21.39 9.5q8.61 9 8.61 21t-9 21L243-555q-9 9-21 9t-21-9L101-655q-9-9-9-21t9-21 21-8.5 21 8.5zm328 329q-12.75 0-21.37-8.68-8.63-8.67-8.63-21.5 0-12.82 8.63-21.32 8.62-8.5 21.37-8.5h300q12.75 0 21.38 8.68 8.62 8.67 8.62 21.5 0 12.82-8.62 21.32-8.63 8.5-21.38 8.5zm0-320q-12.75 0-21.37-8.68-8.63-8.67-8.63-21.5 0-12.82 8.63-21.32 8.62-8.5 21.37-8.5h300q12.75 0 21.38 8.68 8.62 8.67 8.62 21.5 0 12.82-8.62 21.32-8.63 8.5-21.38 8.5z"}))),interaction:U.W7.chatInteraction.chatStartedExamHelpPrompt}];var nG=s(95196),nX=s(52132),nJ=s(54723),nK=s(17480),n$=s(21964),n1=s.n(n$);let n2=e=>{let{variant:t}=e,s=(0,nK.Ym)(),n=(0,tc.A)(),i=(0,B.vg)(W.Rx.revisionNotes,s,{case:"lower",number:"singular",isIelts:n}),{title:r,description:a}={regwall:{title:"Stuck on a concept?",description:"Get instant explanations trained on examiner-written content, matched to your exam."},paywall:{title:"Not sure you get it?",description:n?"Get expert explanations on every ".concat(i,", all trained on examiner-written content."):"Get expert explanations on every ".concat(i,", unlock all subjects, all trained on examiner-written content.")}}[t];return(0,d.jsxs)("div",{className:n1().container,children:[(0,d.jsx)(T.A,{path:"/images/illustrations/",filename:"studying-on-ipad",extension:"png",width:163,height:163,alt:"An illustration of a person studying on a tablet",className:n1().illustration,includeTeacherVariant:!0,includeDarkVariant:!0}),(0,d.jsx)(E.DZ,{tag:"h4",className:n1().title,children:r}),(0,d.jsx)("p",{className:n1().description,children:a}),(0,d.jsxs)("ul",{className:n1().suggestionList,children:[(0,d.jsxs)("li",{className:n1().suggestionItem,children:[(0,d.jsx)(ev.A,{size:"M",svg:nX.A}),(0,d.jsxs)("span",{children:["Summarise the key points in a ",i]})]}),(0,d.jsxs)("li",{className:n1().suggestionItem,children:[(0,d.jsx)(ev.A,{size:"M",svg:nG.A}),(0,d.jsx)("span",{children:"Explain a concept in a different way"})]}),(0,d.jsxs)("li",{className:n1().suggestionItem,children:[(0,d.jsx)(ev.A,{size:"M",svg:nJ.A}),(0,d.jsx)("span",{children:"Generate quiz questions to check your understanding"})]})]})]})},n0={[W.Rx.flashcards]:U.W7.chatInteraction.chatClickedFlashcardsLink,[W.Rx.topicQuestions]:U.W7.chatInteraction.chatClickedExamQuestionsLink,[W.Rx.mockExams]:U.W7.chatInteraction.chatClickedMockExamsLink,[W.Rx.pastPapers]:U.W7.chatInteraction.chatClickedPastPapersLink},n3=(0,g.forwardRef)((e,t)=>{let{revisionNoteId:s,subtopicId:n,appearance:i,chatAccess:r,isExpanded:a,selectedText:l,onClearSelectedText:o,onClose:c,toggleIsExpanded:u}=e,p=(0,tc.A)(),[m,x]=(0,g.useState)(null),[v,f]=(0,g.useState)([]),[b,y]=(0,g.useState)(!1),[_,j]=(0,g.useState)([]),N=(0,g.useRef)(null),w=(0,g.useRef)(null),A=(0,e8.OF)(),{state:{breadcrumbs:S}}=eu(),{hasAccess:T,showSignUpButton:E,upgradeLink:I,signUpModal:W}=r,[R,L]=(0,g.useState)(T),V=(0,e7.U)("(max-width:768px)",{initializeWithValue:!1});(0,g.useImperativeHandle)(t,()=>({focusInput:()=>{var e;null==(e=N.current)||e.focus()}})),(0,g.useEffect)(()=>{var e;if(!V){w.current&&(w.current.style.height="");return}return P(),null==(e=window.visualViewport)||e.addEventListener("resize",P),()=>{var e;null==(e=window.visualViewport)||e.removeEventListener("resize",P)}},[V]);let P=()=>{w.current&&window.visualViewport&&(w.current.style.height="".concat(window.visualViewport.height,"px"))},M=()=>{x(null),j([]),y(!1)},O=async()=>{L(!0);try{var e;let{data:t}=await (0,ec.ou)({filter:{revision_note:{id:s}},include:"messages",page:{size:20}}),n=(null!=(e=null==t?void 0:t.data)?e:[]).map(e=>({id:e.id,last_message_at:e.attributes.last_message_at,messages:e.included.filter(e=>e.type===nD.kq.REVISION_NOTE_CONVERSATION_MESSAGE).map(e=>({id:e.id,role:e.attributes.role,content_plain:e.attributes.content_plain,content_tiptap:e.attributes.content_tiptap,order:e.attributes.order,feedback_type:e.attributes.feedback_type,created_at:e.attributes.created_at}))}));f(n);let i=n[0];if(!i)return;x(i.id),j(i.messages)}finally{L(!1)}};(0,g.useEffect)(()=>{M(),f([]),T&&O()},[s,n,T]);
1let F=_.some(e=>e.isLoading),H=[...v].sort((e,t)=>new Date(t.last_message_at).getTime()-new Date(e.last_message_at).getTime()),q=()=>{f(e=>e.map(e=>e.id===m?{...e,messages:_}:e))},D=async(e,t)=>{if(!e.trim())return;let i={id:"user-".concat(Date.now()),role:nD.TI.USER,content_plain:e,content_tiptap:null,order:m?_.length+1:1,created_at:new Date().toISOString()},r={id:"loading-".concat(Date.now()),role:nD.TI.ASSISTANT,content_plain:"",content_tiptap:null,order:m?_.length+2:2,created_at:new Date().toISOString(),isLoading:!0};m?j(e=>[...e,i,r]):(j([i,r]),y(!0));try{let r=m;if(!r){(0,ew.F0)({...S.titles,interaction:null!=t?t:U.W7.chatInteraction.chatStartedFreeText});let e=await (0,ec.B5)({type:nD.kq.REVISION_NOTE_CONVERSATION,relationships:{revision_note:{data:{id:s,type:nD.kq.REVISION_NOTE}},subtopic:{data:{id:n,type:nD.kq.SUBTOPIC}}}});if(!e.data)throw Error("Failed to create conversation");let i=e.data.data;r=i.id,x(i.id),f(e=>[{id:i.id,last_message_at:i.attributes.last_message_at,messages:[]},...e])}if(!r)throw Error("Conversation ID missing after creation");let a=await (0,ec.Px)(r,{type:nD.kq.REVISION_NOTE_CONVERSATION_MESSAGE,attributes:{content_plain:e}});if(a.data){(0,ew.F0)({...S.titles,interaction:U.W7.chatInteraction.chatSentMessage});let e={id:a.data.data.id,role:a.data.data.attributes.role,content_plain:a.data.data.attributes.content_plain,content_tiptap:a.data.data.attributes.content_tiptap,order:a.data.data.attributes.order,feedback_type:a.data.data.attributes.feedback_type,created_at:a.data.data.attributes.created_at};m?j(t=>[...t.filter(e=>!e.isLoading),e]):j([i,e]),f(t=>t.map(t=>t.id===r?{...t,last_message_at:e.created_at}:t))}}catch(e){console.error("Failed to send message:",e),m?j(e=>e.filter(e=>!e.isLoading)):(j([]),x(null))}finally{m||y(!1)}},B=async(e,t)=>{var s;if(!m)return;let n=await (0,ec.hj)(m,e,{type:nD.kq.REVISION_NOTE_CONVERSATION_MESSAGE,attributes:{feedback_type:t}});n.data&&(s={feedback_type:n.data.data.attributes.feedback_type},j(t=>t.map(t=>t.id===e?{...t,...s}:t))),t&&(0,ew.F0)({...S.titles,interaction:t===nD.Np.THUMBS_UP?U.W7.chatInteraction.chatRatedResponsePositive:U.W7.chatInteraction.chatRatedResponseNegative})};return(0,d.jsxs)("div",{ref:w,className:h()(nH().panel,{[nH().expanded]:a}),children:[(0,d.jsxs)("div",{className:h()(nH().header,"d-flex justify-content-between align-items-center p-3"),children:[(0,d.jsxs)("div",{className:"d-flex align-items-center gap-1",children:[(0,d.jsx)(ev.A,{svg:nS.A,className:nH().headerIcon}),(0,d.jsx)("span",{className:nH().headerTitle,children:i.headerTitle})]}),(0,d.jsxs)("div",{className:"d-flex align-items-center",children:[(0,d.jsx)(n_.sH,{className:nH().headerButton,items:H,currentId:m,disabled:!T||R||F,onSelect:e=>{if(e===m||F)return;let t=v.find(t=>t.id===e);t&&(q(),x(t.id),j(t.messages),(0,ew.F0)({...S.titles,interaction:U.W7.chatInteraction.chatSelectedPreviousChat}))},onOpen:()=>(0,ew.F0)({...S.titles,interaction:U.W7.chatInteraction.chatOpenedPreviousChats})}),(0,d.jsx)(eH.A,{className:nH().headerButton,ariaLabel:"New chat",icon:(0,d.jsx)(ev.A,{svg:nM.A,className:"text-body"}),onClick:()=>{var e;F||(q(),M(),null==o||o(),(0,ew.F0)({...S.titles,interaction:U.W7.chatInteraction.chatNewConversation}),null==(e=N.current)||e.focus())},size:"XS",variant:"clear",disabled:!m||F}),(0,d.jsx)(eH.A,{className:h()(nH().headerButton,nH().expandButton),ariaLabel:a?"Collapse chat":"Expand chat",icon:(0,d.jsx)(ev.A,{svg:a?C.dL:C.mS,className:"text-body"}),onClick:()=>{(0,ew.F0)({...S.titles,interaction:a?U.W7.chatInteraction.chatCollapsed:U.W7.chatInteraction.chatExpanded}),u()},size:"XS",variant:"clear"}),(0,d.jsx)(eH.A,{className:nH().headerButton,ariaLabel:"Close chat",icon:(0,d.jsx)(ev.A,{svg:nP.A,className:"text-body"}),onClick:()=>{if((0,ew.F0)({...S.titles,interaction:U.W7.chatInteraction.chatClosed}),_.some(e=>e.role===nD.TI.USER)){var e;null==A||null==(e=A.logEvent)||e.call(A,e8.qY.rnChatSatisfactionSurveyLaunch.name)}null==o||o(),c()},size:"XS",variant:"clear"})]})]}),T?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:nH().warningBanner,children:[(0,d.jsx)(ev.A,{svg:nO.A,className:nH().warningIcon}),(0,d.jsx)("span",{children:"Chat can make mistakes. Please check all responses carefully."})]}),(0,d.jsx)("div",{className:"flex-grow-1 overflow-hidden d-flex flex-column",children:R?null:m?(0,d.jsx)(n_.Mf,{messages:_,replyAvatar:i.replyAvatar,loadingMessages:i.loadingMessages,onFeedback:B,onResourceLinkClick:e=>{var t;if(!(e.target instanceof HTMLElement))return;let s=e.target.closest("a");if(!(null==s?void 0:s.href))return;let n=null==(t=Object.entries(n0).find(e=>{let[t]=e;return s.href.includes("/".concat(t,"/"))}))?void 0:t[1];n&&(0,ew.F0)({...S.titles,interaction:n})}}
1,m):(0,d.jsxs)("div",{className:nH().emptyStateBody,children:[i.openStateAvatar&&(0,d.jsx)(n_.Vu,{avatar:i.openStateAvatar,title:"What would you like to know?",subtitle:"Matched to ".concat((0,nq.CJ)(S))}),(0,d.jsx)(n_.pg,{prompts:nZ,onPromptClick:(e,t)=>{null==o||o(),D(e,t)}})]})})]}):(0,d.jsx)(n2,{variant:E?"regwall":"paywall"}),(0,d.jsx)("div",{className:nH().footer,children:T?(0,d.jsx)(n_.Ep,{ref:N,className:"align-self-stretch",placeholder:i.inputPlaceholder,onSendMessage:D,disabled:b||R,selectedText:l,onClearSelectedText:o}):E?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.A,{variant:"primary",onClick:W.show,children:"Sign up"}),(0,d.jsx)(ee.A,{modal:W,centered:!0,trigger:U.W7.shownRegistrationFormTrigger.rnChat,method:Z.pE.CONTENT,...p&&e_.n$})]}):(0,d.jsx)(Y.A,{trigger:U.W7.shownRegistrationFormTrigger.rnChat,href:I.href,label:I.copy,variant:I.variant})})]})});n3.displayName="ChatPanel";let n4=e=>{let{revisionNoteId:t,subtopicId:s,contentRef:n}=e,{state:{breadcrumbs:i}}=eu(),[r,a]=(0,g.useState)(!1),[l,o]=(0,g.useState)(!1),c=(0,g.useRef)(null),u=(0,e7.U)("(max-width:768px)",{initializeWithValue:!1}),p=!u,m=(e=>{let{user:t}=(0,L.Jd)(),{showPaywall:s}=td({id:e}),n=(0,Q.h)(),i=!t;return{hasAccess:!i&&!s,showSignUpButton:i,showUpgradeButton:s,upgradeLink:(0,q.Ay)(),signUpModal:n}})(t),x=(0,nw.n)(),{user:v,isMember:C}=(0,L.Jd)(),f=(0,nk.H)({expose:r&&null!==v})&&v?nA._i:nA.iP,b=(0,tm.GA)(tg.Qv.key,tg.Qv.variants.on);(e=>{var t,s;let{revisionNoteId:n,fetch:i}=e,{data:r,isLoading:a}=(0,t_.u)(i?(0,nW.lt)(nW.JZ.progress.revisionNoteConversationPrompts.list,{query:{filter:{revision_note:{id:n}},include:"spec_point"}}):null,tN.A.get,{revalidateOnFocus:!1,revalidateOnReconnect:!1});return null==r||null==(s=r.data)||null==(t=s.data)||t[0]})({revisionNoteId:t,fetch:m.hasAccess&&r&&b&&C});let[y,_]=(0,g.useState)(null),{selectedText:j,selectionRect:N,clearSelection:w}=nV(n,p),[A,k]=(0,g.useState)(null),S=()=>{r||((0,ew.F0)({...i.titles,interaction:U.W7.chatInteraction.chatOpened}),a(!0))},T=()=>{a(!1)};(0,g.useEffect)(()=>{_(document.getElementById("chat-button-portal"))},[]),(0,g.useEffect)(()=>(r?setTimeout(()=>{var e;null==(e=c.current)||e.focusInput()},100):o(!1),document.body.classList.toggle(nN().isOpen,r),()=>{document.body.classList.remove(nN().isOpen)}),[r]),(0,g.useEffect)(()=>{a(!1)},[t,s]);let E=(0,d.jsx)(n3,{ref:c,revisionNoteId:t,subtopicId:s,appearance:f,chatAccess:m,isExpanded:l,selectedText:A,onClearSelectedText:()=>{(0,ew.F0)({...i.titles,interaction:U.W7.chatInteraction.chatClearedSelectedText}),k(null)},toggleIsExpanded:()=>o(e=>!e),onClose:T});return(0,d.jsxs)(d.Fragment,{children:[!r&&y&&(0,ny.createPortal)((0,d.jsx)("div",{className:nN().button,children:(0,d.jsx)(n_.VV,{...x,isMobile:u,onClick:()=>{r?T():S()}})}),y),p&&r&&(0,d.jsx)("div",{className:h()(nN().panel,{[nN().expanded]:l}),children:E}),p&&(0,d.jsx)(nI,{selectionRect:N,onClick:()=>{(0,ew.F0)({...i.titles,interaction:U.W7.chatInteraction.chatClickedSelectedTextButton}),k(j),w(),S()}}),u&&(0,d.jsx)(nb.A,{className:nN().offcanvas,show:r,placement:"bottom",onHide:T,children:(0,d.jsx)(nb.A.Body,{className:nN().offcanvasBody,children:E})})]})};var n5=s(68442),n7=s(17444),n8=s(8480),n6=s(68780),n9=s(2243),ie=s(63863),it=s(95289),is=s(11012),ii=s(80766),ir=s(98193),ia=s(41512),il=s.n(ia),io=s(16743),ic=s(26865),id=s(95985);let iu=()=>{let{open:e}=(0,io.T)();return(0,d.jsx)(id.A.ButtonLink,{icon:ic.A,onClick:e,children:"Search"})};var ip=s(96208),ih=s(10712),im=s(61415),ig=s(42618),ix=s(15274),iv=s(71584),iC=s.n(iv);let ib=e=>{let{breadcrumbs:t,alternateCourseRevisionNotes:s,compact:n,className:i}=e,r=(0,m.useRouter)().asPath.split("?")[0],a=e=>{(0,ew.F0)({...t.titles,contentAccess:U.W7.contentAccess.free,interaction:e,outcome:U.W7.outcome.successful})};return(0,d.jsxs)(ix.A,{id:"select-exam-board",onOpen:()=>a(U.W7.engageRevisionNoteInteraction.altRevisionNoteDropdownOpen),onLinkClick:()=>a(U.W7.engageRevisionNoteInteraction.altRevisionNoteDropdownClick),className:h()(iC().dropdown,i),toggleClassName:iC().dropdownToggle,items:[{url:r,courseName:(0,nq.CJ)({titles:{level:"",board:t.titles.board,subject:t.titles.subject,module:t.titles.module,subjectAlias:t.titles.subjectAlias}})},...s].map(e=>({href:e.url,label:e.courseName,current:e.url===r})),children:[(0,d.jsx)("span",{className:"fw-bold",children:"Exam board: "}),!n&&(0,d.jsx)("br",{}),(0,d.jsx)("span",{children:t.titles.board})]})};
1var iy=s(12322),i_=s(38127);let ij=e=>{let{basePath:t,subtopic:s,included:n}=e,{topic:i}=(0,i_.qB)(s,n),{section:r}=(0,i_.qB)(i,n);return"".concat(t).concat(r.attributes.slug,"/").concat(i.attributes.slug,"/").concat(s.attributes.slug,"/")},iN=e=>{let{basePath:t,currentSubtopic:s,onNextClick:n,onPreviousClick:i}=e,r=(0,e7.U)("(max-width: 768px)",{initializeWithValue:!1}),{next:a,previous:l}=(e=>{let{subtopic:t,basePath:s}=e,n=t.included.filter(e=>"section"===e.type).sort(B.I5).flatMap(e=>t.included.filter(e=>"topic"===e.type).filter(t=>t.relationships.section.data.id===e.id).sort(B.I5).flatMap(e=>t.included.filter(e=>"subtopic"===e.type).filter(t=>t.relationships.topic.data.id===e.id).sort(B.I5))),i=n.findIndex(e=>e.id===t.id),r=i+1<n.length?n[i+1]:null,a=i>0?n[i-1]:null;return{next:r?{title:r.attributes.name,path:ij({basePath:s,subtopic:r,included:t.included})}:null,previous:a?{title:a.attributes.name,path:ij({basePath:s,subtopic:a,included:t.included})}:null}})({subtopic:s,basePath:t});return l||a?(0,d.jsxs)(eo.A,{className:"border-top mt-3 mb-4 pt-4 d-flex align-items-center",children:[l&&(0,d.jsx)("span",{className:"me-auto",children:(0,d.jsx)(iy.A,{direction:"previous",title:r?"Previous":l.title,subtitle:r?null:"Previous:",onClick:i,href:l.path,"aria-label":"Go to previous revision note"})}),a&&(0,d.jsx)("span",{className:"ms-auto",children:(0,d.jsx)(iy.A,{direction:"next",title:r?"Next":a.title,subtitle:r?null:"Next:",onClick:n,href:a.path,"aria-label":"Go to next revision note"})})]}):null};var iw=s(68854);let iA=async e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,interaction:U.W7.engageRevisionNoteInteraction.author,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})},ik=async e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,interaction:U.W7.engageRevisionNoteInteraction.reviewerTab,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})},iS=async e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,interaction:U.W7.engageRevisionNoteInteraction.reviewerFooter,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})},iT=e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,interaction:U.W7.courseNavigationInteraction.expandedCourseNavigation,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})},iE=e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,interaction:U.W7.courseNavigationInteraction.collapsedCourseNavigation,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})};function iI(e){let{author:t,authorUrl:s,reviewer:n,basePath:i,breadcrumbs:r,course:a,flashcardCollectionPath:l,pdfUrl:o,readMarkers:c,subtopic:u,syllabusVersions:p,revisionNote:h,title:m,alternateCourseRevisionNotes:g,relatedTopicQuestions:x,relatedFlashcards:v,availableCourseResources:C,courseStructure:f,syllabusVersion:b,section:y,currentTopicQuestionSetLink:_,module:j,glossaryEntries:N}=e,{isStaff:w}=(0,L.Jd)();return(0,d.jsx)(eh,{pageProps:{authorUrl:s,breadcrumbs:r,readMarkers:c},children:(0,d.jsx)(em,{children:()=>{var e;return(0,d.jsx)(tC,{revisionNoteId:h.id,lessonsAvailable:w&&!!(null==(e=h.relationships.revision_note_lessons)?void 0:e.data.length)||b.attributes.revision_note_lessons_enabled&&h.attributes.has_published_lessons,breadcrumbTitles:r.titles,children:(0,d.jsx)(iR,{basePath:i,authorUrl:s,author:t,course:a,reviewer:n,flashcardCollectionPath:l,pdfUrl:o,subtopic:u,syllabusVersions:p,revisionNote:h,title:m,alternateCourseRevisionNotes:g,relatedTopicQuestions:x,relatedFlashcards:v,availableCourseResources:C,courseStructure:f,syllabusVersion:b,currentTopicQuestionSetLink:_,module:j,section:y,glossaryEntries:N})})}})})}let iW=e=>{let{glossaryEntries:t,relatedTopicQuestions:s,relatedFlashcards:n,breadcrumbs:i,pageHasVideo:r}=e;return(0,d.jsxs)(nv.qM,{children:[t.length>0&&(0,d.jsxs)("div",{children:[(0,d.jsx)(nv.nz,{title:"Related ".concat(i.titles.level," ").concat(i.titles.subject," glossary terms"),type:"checkmark"}),(0,d.jsx)(n7.A,{levelName:i.titles.level,subjectName:i.titles.subject,levelSlug:i.slugs.level,subjectSlug:i.slugs.subject,glossaryEntries:t})]}),s.links.length>0&&(0,d.jsx)(nv.Ay,{type:"topic-questions",resources:s,onTitleClick:()=>(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,hasVideo:s,interaction:U.W7.engageRevisionNoteInteraction.clickedRelatedTopicQuestionsOverview})})({titles:i.titles,hasVideo:r}),onLinkClick:()=>(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,hasVideo:s,interaction:U.W7.engageRevisionNoteInteraction.clickedRelatedTopicQuestionsLink})})({titles:i.titles,hasVideo:r})}),n.links.length>0&&(0,d.jsx)(nv.Ay,{type:"flashcards",resources:n,onTitleClick:()=>(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,hasVideo:s,interaction:U.W7.engageRevisionNoteInteraction.clickedRelatedFlashcardsOverview})})({titles:i.titles,hasVideo:r}),onLinkClick:()=>(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,hasVideo:s,interaction:U.W7.engageRevisionNoteInteraction.clickedRelatedFlashcardsLink}
1)})({titles:i.titles,hasVideo:r})})]})},iR=e=>{let t,s,{authorUrl:n,author:i,reviewer:r,basePath:a,course:l,flashcardCollectionPath:o,pdfUrl:c,subtopic:p,syllabusVersions:b,revisionNote:y,currentTopicQuestionSetLink:_,title:j,alternateCourseRevisionNotes:N,relatedTopicQuestions:w,relatedFlashcards:A,availableCourseResources:S,courseStructure:T,syllabusVersion:E,section:I,module:R,glossaryEntries:V}=e,P=(0,m.useRouter)(),M=(0,g.useRef)(null),{user:O,isStaff:F}=(0,L.Jd)(),{hasAccess:H}=(0,eW.A)({entitlementKey:eV.py.REVISION_NOTES_VIEW}),{hasAccess:q}=(0,eW.A)({entitlementKey:eV.py.REVISION_NOTES_ALL}),D=(0,is.A)(),Q=(0,z.Ym)(),Y=(0,ii.S)(),Z=eu(),[G,X]=(0,x.Wx)(),[J,K]=(0,x.Wx)(),[$,ee]=(0,x.Wx)(),{breadcrumbs:et}=Z.state,{addLatestResourceView:es}=(0,it.A)(),en=(0,ej.a)({subject:et.slugs.subject}),{isStarted:ei}=tf(),er=!O&&N.length>0,ea=(0,ip.Op)({syllabus_versions:b,slugs:et.slugs})||[],ec=ea.length>1,ed=y.attributes.content.some(e=>"specPoint"===e.type&&!!e.attrs.video)||(0,eK.Z2)(y.attributes.content,["video","attachedVideo"]),ep=y.id,{showPaywall:eh,isNotesPaywallReady:em}=td({id:ep}),{trackProgress:eg}=(e=>{let[t,s]=(0,g.useState)(!1),{user:n}=(0,L.Jd)(),{showPaywall:i}=td({id:e});return(0,g.useEffect)(()=>{s(!!n&&!i)},[n,i]),{trackProgress:t}})(ep),ex=S[im.Ty.TEST_BUILDER],eC=!H&&!F&&!eh,ef=!eh,eb=!!S[im.Ty.SMART_LESSON],ey=(0,nd.A)(),e_=eb&&!ey?"".concat((0,ig.G)(et.slugs),"?topic=").concat(p.relationships.topic.data.id):null;(0,ir.K)(),(0,g.useEffect)(()=>{em&&(es({syllabusVersion:E,courseModule:R,breadcrumbs:et,resource:y,subtopic:p}),eh&&(0,ew.sQ)({...et.titles,hasVideo:ed,hasMultipleSyllabusVersions:ec,outcome:U.W7.outcome.unsuccessful,unsuccessfulViewReason:U.W7.revisionNotePageView.contentBehindPaywall}),eh||(0,ew.sQ)({...et.titles,hasVideo:ed,hasMultipleSyllabusVersions:ec,outcome:U.W7.outcome.successful}))},[em,et]),(0,g.useEffect)(()=>{Y.actions.addRevisionNoteView(P.asPath)},[P.asPath]),(0,g.useEffect)(()=>{Y.actions.setLastViewedResource({resource:im.Ty.REVISION_NOTES,slugs:et.slugs})},[et]),(0,g.useEffect)(()=>{X&&eg&&Z.actions.setRevisionNoteRead({subtopicId:p.id})},[X]),(0,g.useEffect)(()=>{eC&&K&&(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,hasVideo:s,interaction:U.W7.engageRevisionNoteInteraction.viewedFooterCTA})})({titles:et.titles,hasVideo:ed})},[K]),(0,g.useEffect)(()=>{ee&&(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,hasVideo:s,interaction:U.W7.engageRevisionNoteInteraction.viewedRnEnd})})({titles:et.titles,hasVideo:ed})},[ee]);let eN=(0,e7.U)("(min-width: 992px)",{initializeWithValue:!1}),eA=(0,ie.A)(),ek=(0,n9.A)(),eS=(t=(0,m.useRouter)(),s=nc.some(e=>t.asPath.startsWith(e)),(0,tm._P)(tg.ET.key,{expose:s,variant:tg.ET.variants.treatment}));return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.A,{hidePromotion:!0,hideFooter:ei,children:(0,d.jsxs)("div",{className:il().wrapper,children:[(0,d.jsxs)(nm.A,{className:il().content,children:[(0,d.jsxs)(np.A,{breadcrumbs:et,availableResources:S,courseStructure:T,currentCourse:{syllabusVersionId:E.id,courseModuleId:null==R?void 0:R.id},onExpand:()=>iT({titles:et.titles,hasVideo:ed}),onStudyToolsTabExpand:()=>{(0,ew.F0)({...et.titles,interaction:U.W7.courseNavigationInteraction.expandedStudyTools,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:ed})},onStudyToolsTabCollapse:()=>{(0,ew.F0)({...et.titles,interaction:U.W7.courseNavigationInteraction.collapsedStudyTools,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:ed})},onCourseDetailsExpand:()=>{(0,ew.F0)({...et.titles,interaction:U.W7.courseNavigationInteraction.expandedCourseDetails,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:ed})},onCourseDetailsCollapse:()=>{(0,ew.F0)({...et.titles,interaction:U.W7.courseNavigationInteraction.collapsedCourseDetails,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:ed})},onCollapse:()=>iE({titles:et.titles,hasVideo:ed}),onCourseClick:()=>{(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,interaction:U.W7.courseNavigationInteraction.clickedCourseOverviewLinkFromCourseNavigation,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})})({titles:et.titles,hasVideo:ed})},onResourceClick:e=>(e=>{let{titles:t,hasVideo:s,resourceType:n}=e;return(0,ew.F0)({...t,interaction:U.W7.courseNavigationInteraction.byResourceType[n],contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})})({titles:et.titles,hasVideo:ed,resourceType:e}),additionalTabs:[(0,d.jsx)(ng.A,{breadcrumbs:et,resourceTitle:(0,B.vg)(im.Ty.REVISION_NOTES,Q,{isIelts:en}),onExpand:()=>iT({titles:et.titles,hasVideo:ed}),onCollapse:()=>iE({titles:et.titles,hasVideo:ed}),children:e=>(0,d.jsx)(iV,{stickyHeader:!0,basePath:a,subtopic:p,trackProgress:eg,pageHasVideo:ed,onClick:e})},"all-topics-tab")],children:[ec&&(0,d.jsx)(nC.A,{compact:!0,breadcrumbs:et,className:"mb-3 d-none d-lg-block",syllabusVersions:ea,pageType:"Revision note page"}),(0,d.jsx)(iV,{autoScrollActiveItem:!0,stickyHeader:!0,trackProgress:eg,basePath:a,subtopic:p,pageHasVideo:ed})]}),(0,d.jsxs)(nh.A,{children:[(0,d.jsx)(ti,{title:j,author:i,updatedAt:y.attributes.updated_at,isIelts:en}),(0,d.jsxs)(ni,{children:[(0,d.jsx)("div",{className:"container",children:(0,d.jsxs)("div",{className:"row",children:[(0,d.jsxs)("div",{className:h()("col-12",il().pageContent),children:[(0,d.jsxs)("main",{className:il().content,children:[(0,d.jsx)(ta.A,{contentTitle:(0,ih.m)(et.titles.subtopic),breadcrumbs:et,className:"pt-4 mb-3",resourceType:W.Rx.revisionNotes,showHomeCrumb:!1,onCrumbClick:()=>(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,interaction:U.W7.engageRevisionNoteInteraction.breadcrumb,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})})({titles:et.titles,hasVideo:ed}),courseTitleSuffix:(0,ih.ES)((0,B.vg)(et.slugs.resource,Q,{isIelts:en}
1))}),ec&&(0,d.jsx)(nC.A,{compact:!0,breadcrumbs:et,className:"mb-3 d-lg-none",syllabusVersions:ea,pageType:"Revision note page"}),(0,d.jsxs)(eo.A,{className:"d-flex flex-wrap justify-content-between align-items-center gap-2 mb-3",children:[(0,d.jsx)(nx.A,{className:"mb-0 me-auto",value:l.attributes.exam_code}),(0,d.jsx)(eG,{pdfUrl:c,breadcrumbs:et,pageHasVideo:ed,revisionNoteId:ep}),F&&(0,d.jsx)(n5.A,{resourceType:tO.kq.REVISION_NOTE,courseId:l.id,syllabusVersionId:E.id,moduleId:null==R?void 0:R.id,sectionId:I.id,subtopicId:p.id,topicId:p.relationships.topic.data.id})]}),(0,d.jsx)(tl.A,{variant:"horizontal",className:il().rule,flush:!0}),(i||er)&&(0,d.jsxs)("div",{className:"d-flex flex-wrap justify-content-between align-items-start gap-3",children:[i&&(0,d.jsx)(eJ,{author:i,reviewer:null!=r?r:null,updatedAt:y.attributes.updated_at,breadcrumbs:et}),(0,d.jsxs)("div",{className:"d-flex flex-wrap justify-content-between align-items-start gap-3",children:[eS&&(0,d.jsx)(no,{}),er&&(0,d.jsx)(ib,{breadcrumbs:et,alternateCourseRevisionNotes:N})]})]}),F&&p.attributes.status===t8.XQ.UNPUBLISHED&&(0,d.jsx)("div",{className:"d-flex justify-content-end",children:(0,d.jsx)(tr.A,{color:"orange",text:"Unpublished"})}),(0,d.jsx)(tA,{}),(0,d.jsxs)(eo.A,{className:"mb-4",children:[(0,d.jsx)("div",{ref:M,children:(0,d.jsx)(eo.A,{className:h()("mb-4 ".concat(tn),{[il().blur]:eh&&!en,"d-none":eh&&en}),children:(0,d.jsx)(e4,{revisionNote:y})})}),eh&&(0,d.jsx)(eO,{breadcrumbs:et,pageHasVideo:ed,className:"my-4"})]}),ex&&(0,d.jsx)(v.A,{className:"mb-4",path:ex,syllabusVersion:E,onInteraction:()=>(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,hasVideo:s,interaction:U.W7.engageRevisionNoteInteraction.clickedTestBuilderCalloutLink})})({titles:et.titles,hasVideo:ed})}),eC&&!en&&!D&&(0,d.jsx)(eo.A,{className:"mb-4 w-100",children:(0,d.jsx)("div",{ref:J,children:(0,d.jsx)(el,{onButtonClick:()=>(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,interaction:U.W7.engageRevisionNoteInteraction.clickedFooterCTA,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})})({titles:et.titles,hasVideo:ed})})})}),(0,d.jsx)("div",{ref:$}),(0,d.jsxs)("div",{ref:G,className:"d-flex flex-wrap align-items-center justify-content-between gap-3 mb-5",children:[!ef&&(0,d.jsxs)("div",{className:"d-flex gap-3",children:[_&&(0,d.jsx)(k.A,{variant:"light",iconAtStart:!0,icon:(0,d.jsx)(ev.A,{svg:u.A}),tag:eq.A,href:_,size:"M",onClick:()=>{(e=>{let{buttonPosition:t,titles:s,hasVideo:n}=e,i="top"===t?U.W7.engageRevisionNoteInteraction.testYourselfTop:U.W7.engageRevisionNoteInteraction.testYourselfBottom;return(0,ew.F0)({...s,interaction:i,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:n})})({buttonPosition:"bottom",titles:et.titles,hasVideo:ed})},children:"Test yourself"}),o&&(0,d.jsx)(k.A,{iconAtStart:!0,href:o,icon:(0,d.jsx)(ev.A,{svg:C.X3}),tag:eq.A,variant:"light",onClick:()=>(e=>{let{buttonPosition:t,titles:s,hasVideo:n}=e,i="top"===t?U.W7.engageRevisionNoteInteraction.flashcardsTop:U.W7.engageRevisionNoteInteraction.flashcardsBottom;return(0,ew.F0)({...s,interaction:i,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:n})})({buttonPosition:"bottom",titles:et.titles,hasVideo:ed}),children:"Flashcards"})]}),(0,d.jsx)(e9,{breadcrumbs:et,pageHasVideo:ed},et.titles.subtopic)]}),ef&&(0,d.jsx)(nf.A,{className:"mb-4",examQuestionLink:_,flashcardsLink:o,smartLessonLink:e_,onExamQuestionClick:()=>(0,ew.F0)({...et.titles,interaction:U.W7.engageRevisionNoteInteraction.testYourselfNextSteps,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:ed}),onFlashcardsClick:()=>(0,ew.F0)({...et.titles,interaction:U.W7.engageRevisionNoteInteraction.testYourselfNextSteps,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:ed}),onSmartLessonClick:()=>(0,ew.F0)({...et.titles,interaction:U.W7.engageRevisionNoteInteraction.smartLessonNextSteps,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:ed})}),(0,d.jsx)(iN,{currentSubtopic:p,basePath:a,onNextClick:()=>(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,interaction:U.W7.engageRevisionNoteInteraction.nextTopic,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})})({titles:et.titles,hasVideo:ed}),onPreviousClick:()=>(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,interaction:U.W7.engageRevisionNoteInteraction.previousTopic,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})})({titles:et.titles,hasVideo:ed})})]}),eN&&(0,d.jsx)(iW,{glossaryEntries:V,relatedTopicQuestions:w,relatedFlashcards:A,breadcrumbs:et,pageHasVideo:ed})]}
1),!O&&!eN&&(0,d.jsxs)(eo.A,{tag:"nav",className:"col-12 pb-4 overflow-hidden",children:[(0,d.jsx)(iV,{basePath:a,subtopic:p,trackProgress:eg,pageHasVideo:ed}),(0,d.jsx)(iW,{glossaryEntries:V,relatedTopicQuestions:w,relatedFlashcards:A,breadcrumbs:et,pageHasVideo:ed})]})]})}),!O&&i&&(0,d.jsx)(nu.A,{author:i,reviewer:r||null,authorUrl:n||null,onAuthorLinkClick:()=>iA({titles:et.titles,hasVideo:ed}),onReviewerTabClick:()=>ik({titles:et.titles,hasVideo:ed}),onReviewerLinkClick:()=>iS({titles:et.titles,hasVideo:ed})}),(0,d.jsxs)("div",{className:il().stickyFooter,children:[(0,d.jsx)("div",{id:"chat-button-portal"}),!q&&(0,d.jsx)(eI,{breadcrumbs:et,subtopic:et.titles.subtopic,pageHasVideo:ed})]})]})]})]}),(0,d.jsx)(tk,{children:(0,d.jsx)(n4,{revisionNoteId:y.id,subtopicId:p.id,contentRef:M})})]})}),(0,d.jsx)(n8.A,{show:eA,...iL(et),...n6.qD}),(0,d.jsx)(n8.A,{show:ek,...iL(et),...n6.PK})]})},iL=e=>({trigger:U.W7.conversionTriggers.returningUserUpsellPopup,onShow:()=>(0,eA.h6)({...e,popupType:U.W7.popupType.returningUserUpsell,trigger:U.W7.conversionTriggers.returningUserUpsellPopup,resourceType:U.W7.resourceType.revisionNote}),onCtaClick:()=>(0,eA.NB)({...e,popupType:U.W7.popupType.returningUserUpsell,resourceType:U.W7.resourceType.revisionNote,interaction:U.W7.popupInteraction.clicked}),onHide:()=>(0,eA.NB)({...e,popupType:U.W7.popupType.returningUserUpsell,resourceType:U.W7.resourceType.revisionNote,interaction:U.W7.popupInteraction.dismiss})}),iV=e=>{let{autoScrollActiveItem:t,stickyHeader:s,basePath:n,subtopic:i,trackProgress:r,pageHasVideo:a,onClick:l}=e,o=eu(),c=(0,z.Ym)(),{courseStructure:u}=(0,io.T)(),{breadcrumbs:p,readMarkers:h}=o.state,m=async(e,t)=>((e=>{let{titles:t,hasVideo:s,isChecked:n}=e,i=n?U.W7.engageRevisionNoteInteraction.progressTrackingRead:U.W7.engageRevisionNoteInteraction.progressTrackingUnread;(0,ew.F0)({...t,interaction:i,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})})({titles:p.titles,hasVideo:a,isChecked:t}),t?await o.actions.setRevisionNoteRead({subtopicId:e}):await o.actions.setRevisionNoteUnread({subtopicId:e}));return(0,d.jsx)(iw.A,{basePath:n,searchTrigger:u?(0,d.jsx)(iu,{}):void 0,readMarkers:h,resourceTitle:(0,B.vg)(im.Ty.REVISION_NOTES,c),trackProgress:r,currentSubtopic:{...i,included:[]},autoScrollActiveItem:t,stickyHeader:s,subtopics:i.included.filter(e=>e.type===tO.kq.SUBTOPIC),topics:i.included.filter(e=>e.type===tO.kq.TOPIC),sections:i.included.filter(e=>e.type===tO.kq.SECTION),onLinkClick:e=>{1===e?(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,interaction:U.W7.engageRevisionNoteInteraction.clickedAllTopicsLinkFromCourseNavigation,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})})({titles:p.titles,hasVideo:a}):(e=>{let{titles:t,hasVideo:s}=e;return(0,ew.F0)({...t,interaction:U.W7.engageRevisionNoteInteraction.clickedSubtopicLinkFromCourseNavigation,contentAccess:U.W7.contentAccess.free,outcome:U.W7.outcome.successful,hasVideo:s})})({titles:p.titles,hasVideo:a}),null==l||l()},onCheck:m})};iI.getLayout=e=>e},2758:e=>{e.exports={popover:"SelectionPopover_popover__0EYOP",fadeIn:"SelectionPopover_fadeIn__DJ4u2",button:"SelectionPopover_button__Ozgg_"}},2853:e=>{e.exports={container:"FeatureSliderCTA_container__1Rqfu",icon:"FeatureSliderCTA_icon__4NBQU",button:"FeatureSliderCTA_button__7rBhb",title:"FeatureSliderCTA_title__RSrt_",subtitle:"FeatureSliderCTA_subtitle__g3G5S",buttonWrapper:"FeatureSliderCTA_buttonWrapper__DuNVT",sliderContainer:"FeatureSliderCTA_sliderContainer__cIPx4"}},5014:e=>{e.exports={shimmer:"LessonSelectSkeleton_shimmer__QBxF8",card:"LessonSelectSkeleton_card__0l_Ep"}},5319:(e,t,s)=>{"use strict";s.d(t,{q:()=>a});var n=s(26514),i=s(8824),r=s(36721);let a=e=>{let{date:t,dateFormat:s="dynamic"}=e,a=new Date(t),l=(0,i.GP)(a,"MMMM d',' yyyy',' h:mm a"),o="dynamic"===s?(0,r.m)(a,{addSuffix:!0}):(0,i.GP)(a,"d MMMM yyyy");return(0,n.jsx)("time",{dateTime:a.toISOString(),title:l,children:o})}},5688:e=>{e.exports={imageWrapper:"ImageFill_imageWrapper__QqPWZ",image:"ImageFill_image__5gQqc",rounded:"ImageFill_roun
1ded__JTtp8",circle:"ImageFill_circle__cjb6n"}},7222:(e,t,s)=>{"use strict";s.d(t,{A:()=>C});var n=s(26514),i=s(75630),r=s(69001),a=s.n(r),l=s(21015),o=s(17582),c=s(35297),d=s(74275),u=s(75303),p=s(80198),h=s(93030),m=s.n(h);let g=e=>{let{className:t,description:s,href:i,icon:r,onClick:l,title:o}=e;return(0,n.jsxs)(p.A,{href:i,onClick:l,className:a()(m().link,t),children:[(0,n.jsx)("span",{"aria-hidden":"true",className:m().iconWrapper,children:(0,n.jsx)(u.A,{svg:r,size:"M"})}),(0,n.jsxs)("span",{className:m().text,children:[(0,n.jsx)("span",{className:m().title,children:o}),(0,n.jsx)("span",{className:m().description,children:s})]}),(0,n.jsx)(u.A,{svg:d.A,className:m().chevron})]})};var x=s(68385),v=s.n(x);let C=e=>{let{className:t,examQuestionLink:s,flashcardsLink:r,smartLessonLink:d,onExamQuestionClick:u,onFlashcardsClick:p,onSmartLessonClick:h}=e;return s||r||d?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.A,{variant:"horizontal",className:a()(v().rule,"mb-4"),flush:!0}),(0,n.jsxs)("section",{className:a()(v().container,t),children:[(0,n.jsx)(c.EY,{className:v().heading,children:"Build on this topic"}),(0,n.jsxs)("div",{className:v().list,children:[s&&(0,n.jsx)(g,{href:s,icon:i.A,title:"Check your understanding",description:"Try an Exam Question on this topic",onClick:u}),r&&(0,n.jsx)(g,{href:r,icon:l.X3,title:"Test your recall",description:"Reinforce key facts and definitions with Flashcards",onClick:p}),d&&(0,n.jsx)(g,{href:d,icon:l.vg,title:"Learn at your level",description:"Take a Smart Lesson that adapts to your performance",onClick:h})]})]})]}):null}},7970:e=>{e.exports={reviewCard:"ReviewCard_reviewCard__K2c8d",author:"ReviewCard_author__ysfGS"}},9231:(e,t,s)=>{"use strict";s.d(t,{D:()=>n});let n={loggedOut:{amount:1,upsellAt:null,countdownAt:null},registered:{amount:5,upsellAt:null,countdownAt:2}}},9760:(e,t,s)=>{"use strict";s.d(t,{W:()=>r});var n=s(93541),i=s(43518);let r=()=>{let{user:e}=(0,i.Jd)(),t=(0,n.h)(),s=(0,n.h)(),r=!e;return{showUpsellModal:()=>{r?t.show():s.show()},hideUpsellModal:()=>{r?t.hide():s.hide()},signUpModal:t,upgradeModal:s}}},13610:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var n=s(26514),i=s(69001),r=s.n(i),a=s(82708),l=s.n(a);let o=e=>{let{currentStep:t,totalSteps:s=1,markerPosition:i,className:a}=e,o=100*t/s,c=void 0!==i?100*i/s:null;return(0,n.jsxs)("div",{role:"progressbar",className:r()(l().progress,a),"aria-valuemax":s,"aria-valuenow":t,"aria-valuetext":"".concat(o,"%"),style:{"--progress":"".concat(o,"%"),"--marker-position":"".concat(null!=c?c:0,"%")},children:[(0,n.jsx)("div",{className:l().inner}),null!==c&&o<=c&&(0,n.jsx)("div",{className:r()(l().marker,{[l().active]:void 0!==i&&t>=i})})]})}},13980:e=>{e.exports={slideItem:"Slider_slideItem__qARss"}},14858:e=>{e.exports={progressBar:"StepHeader_progressBar__9EvyQ",backText:"StepHeader_backText__R_niJ"}},16900:(e,t,s)=>{var n=s(28041),i=s(88418),r=s(94516);e.exports=function(e,t){return r(e,i(n(t)))}},17444:(e,t,s)=>{"use strict";s.d(t,{A:()=>N});var n=s(26514),i=s(13916),r=s(62938),a=s(74275),l=s(82942),o=s(69001),c=s.n(o),d=s(96456),u=s.n(d),p=s(75834),h=s(48613),m=s(25971),g=s(75303),x=s(92850),v=s(38127),C=s(66011),f=s(18474),b=s.n(f);let y=e=>{let{glossaryEntry:t,levelName:s,subjectName:r,levelSlug:a,subjectSlug:o}=e,{author:c}=(0,v.qB)(t);return(0,n.jsxs)(u(),{className:b().card,href:(0,l.j1)({levelSlug:a,subjectSlug:o,entrySlug:t.attributes.slug}),children:[(0,n.jsxs)("span",{className:"d-flex flex-column gap-3 justify-content-between",children:[(0,n.jsxs)("span",{className:"fw-bold lh-sm",children:[t.attributes.term,": ",s," ",r," Definition"]}),c&&(0,n.jsxs)("span",{className:"d-flex gap-2 align-items-center",children:[(0,n.jsx)(x.A,{shape:"circle",src:c.attributes.image_url,sizes:"32px",alt:c.attributes.name,className:b().image}),(0,n.jsxs)("span",{className:"lh-sm",children:[c.attributes.name,", ",c.attributes.subject_name]})]})]}),(0,n.jsx)(g.A,{svg:i.A,className:b().arrow})]})},_=e=>{let{levelName:t,subjectName:s,levelSlug:i,subjectSlug:l,glossaryEntries:o}=e,[d,u]=(0,p.useState)(0),x=(0,p.useRef)(null),v=o.reduce((e,t,s)=>s%2?e:[...e,o.slice(s,s+2)],[]),C=0===d,f=d===v.length-1;return(0,n.jsxs)("div",{className:"position-relative",children:[!C&&(0,n.jsx)(m.A,{type:"button",variant:"shadow",icon:(0,n.jsx)(g.A,{svg:r.A}),onClick:()=>{var e;return null==x||null==(e=x.current)?void 0:e.prev()},ariaLabel:"Previous glossary entries",className:c()(b().button,b().previous)}),(0,n.jsx)(h.A,{ref:x,controls:!1,indicators:!1,interval:null,draggable:!1,activeIndex:d,onSelect:e=>u(e),children:v.map((e,r)=>(0,n.jsx)(h.A.Item,{children:(0,n.jsx)("ul",{className:c()("list-unstyled mb-0",b().grid,{[b().firstSlide]:C,[b().lastSlide]:f}),children:e.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(y,{glossaryEntry:e,levelName:t,levelSlug:i,subjectName:s,subjectSlug:l})},e.id))})},"group-".concat(r)))}),!f&&(0,n.jsx)(m.A,{type:"button",variant:"shadow",icon:(0,n.jsx)(g.A,{svg:a.A}),onClick:()=>{var e;return null==x||null==(e=x.current)?void 0:e.next()},ariaLabel:"Next glossary entries",className:c()(b().button,b().next)})]})},j=e=>{let{levelName:t,subjectName:s,levelSlug:i,subjectSlug:r,glossaryEntries:a}=e;return(0,n.jsx)("div",{className:b().swiper,children:a.map(e=>(0,n.jsx)(y,{glossaryEntry:e,levelName:t,levelSlug:i,subjectName:s,subjectSlug:r},e.id))})},N=e=>(0,C.U)("(max-width:575px)",{initializeWithValue:!1})?(0,n.jsx)(j,{...e}):(0,n.jsx)(_,{...e})},17994:(e,t,s)=>{"use strict";s.d(t,{e:()=>n});let n=()=>{var e;null==(e=window)||e.scrollTo({top:0,left:0,behavior:"smooth"})}},18474:e=>
1{e.exports={grid:"GlossaryEntriesCarousel_grid__szxo9",firstSlide:"GlossaryEntriesCarousel_firstSlide__Ewq71",lastSlide:"GlossaryEntriesCarousel_lastSlide__ffFMA",button:"GlossaryEntriesCarousel_button__IDf7b",previous:"GlossaryEntriesCarousel_previous__2H1_F",next:"GlossaryEntriesCarousel_next__qzB35",card:"GlossaryEntriesCarousel_card__AS_iL",arrow:"GlossaryEntriesCarousel_arrow__oHFev",image:"GlossaryEntriesCarousel_image__Hx8wV",swiper:"GlossaryEntriesCarousel_swiper__DUqH_"}},19038:e=>{e.exports={answer:"FreeTextStep_answer__HxO_y",textarea:"FreeTextStep_textarea__aTRLW",assessment:"FreeTextStep_assessment__5UJeM",blocks:"FreeTextStep_blocks__xzxYj"}},21952:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var n,i=s(75834);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(null,arguments)}let a=e=>i.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),n||(n=i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"})))},22298:(e,t,s)=>{var n=s(66632),i=s(45018);e.exports=function(e){return i(n(e).toLowerCase())}},23536:e=>{e.exports={newest:"Syllabus_newest__sFOiz",oldest:"Syllabus_oldest__1F0IU",buttonGroup:"Syllabus_buttonGroup__cM3Mf"}},29431:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var n,i=s(75834);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(null,arguments)}let a=e=>i.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),n||(n=i.createElement("path",{d:"M12 3 1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9zm6.82 6L12 12.72 5.18 9 12 5.28zM17 15.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73z"})))},34118:e=>{e.exports={pillGroup:"PillGroup_pillGroup__stmn5"}},36687:(e,t,s)=>{"use strict";s.d(t,{A:()=>N});var n=s(26514),i=s(69001),r=s.n(i),a=s(58780),l=s(93541),o=s(14207),c=s(35297),d=s(86201),u=s(17537),p=s(58935),h=s(11745);let m=e=>{(0,p.u4)(u.Ru.interactedWithSyllabusModal,{...(0,h.E0)(e),alternativeSyllabusYear:e.alternativeSyllabusYear,interaction:e.interaction})};var g=s(46225),x=s(23923),v=s(49654),C=s.n(v);let f=e=>{let{syllabus:t}=e;return(0,n.jsxs)(d.A,{className:r()({[C().newest]:t.newest,[C().oldest]:!t.newest},"rounded-3 p-3 mb-3 text-black mx-auto"),children:[(0,n.jsxs)(c.EY,{className:"mb-0",children:["First teaching ",t.firstTeachingYear]})," ",(0,n.jsxs)(c.EY,{children:[t.newest?"First":"Last"," exams ",t.examYear]})]})},b=e=>{let{breadcrumbs:t,syllabusVersions:s,hide:i}=e,l=(0,g.useRouter)(),o=(0,x.g)(),p=s.find(e=>{var s;let{year:n}=e;return n===(null==(s=t.slugs)?void 0:s.year)}),h=s.find(e=>{var s;let{year:n}=e;return n!==(null==(s=t.slugs)?void 0:s.year)});return p&&h&&t.titles?(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)(c.DZ,{tag:"h4",children:"Make sure youâre reading the right syllabus"}),(0,n.jsxs)(c.EY,{children:[t.titles.board," have an updated version of their syllabus. The syllabus you are currently reading was first taught in"," ",p.firstTeachingYear,", with"," ",p.newest?"first":"last"," exams in"," ",p.examYear,". Please ensure youâre reading the right syllabus for you"]}),(0,n.jsxs)("div",{className:r()(C().coursesBox,"d-flex justify-content-center flex-column flex-sm-row gap-4"),children:[(0,n.jsxs)(d.A,{className:C().current,children:[(0,n.jsx)(f,{syllabus:p}),(0,n.jsx)(a.A,{variant:"light",onClick:()=>{i(),m({...t.titles,alternativeSyllabusYear:h.year,interaction:u.W7.syllabusModalInteraction.stayHere})},children:"Stay here"})]}),(0,n.jsxs)(d.A,{children:[(0,n.jsx)(f,{syllabus:h}),(0,n.jsx)(a.A,{onClick:()=>{if(i(),m({...t.titles,alternativeSyllabusYear:h.year,interaction:u.W7.syllabusModalInteraction.switch}),l.query.section)return void o.push("/".concat(h.basePath,"/"));let e=l.query.resource?"/".concat(h.basePath,"/").concat(l.query.resource,"/"):"/".concat(h.basePath,"/");o.push(e)},variant:"light",children:"Switch"})]})]})]}):null};var y=s(23536),_=s.n(y),j=s(1334);let N=e=>{let{breadcrumbs:t,className:s,compact:i,pageType:m,syllabusVersions:g}=e,x=(0,l.h)();if(g.length<2||g.map(e=>e.newest||null!==e.examYear?void 0!==e.firstTeachingYear&&void 0:((0,j.N)(Error('[Content] Syllabus with basePath "'.concat(e.basePath,'" requires a "year_last_examined".'))),!1)).includes(!1))return null;let v=g.find(e=>{let{year:s}=e;return s===t.slugs.year});if(!v)return null;let C=g.filter(e=>{let{year:s}=e;return s!==t.slugs.year}).sort((e,t)=>
1parseInt(String(t.examYear),10)-parseInt(String(e.examYear),10))[0];return(0,n.jsxs)(d.A,{className:r()("bg-body-secondary mx-auto rounded-3 p-3 shadow",s,{[_().newest]:v.newest,[_().oldest]:!v.newest}),children:[(0,n.jsxs)(d.A,{className:"mb-2 d-flex gap-3",children:[(0,n.jsx)(o.A,{size:"S",subject:v.newest?"newest-syllabus":"oldest-syllabus"}),(0,n.jsxs)(d.A,{children:[(0,n.jsx)(c.EY,{className:"text-body-secondary mb-0",size:"S",children:"Syllabus Edition"}),(0,n.jsxs)(d.A,{className:r()("d-flex flex-column",{"flex-sm-row":!i}),children:[(0,n.jsxs)(c.EY,{strong:!0,className:"mb-0",children:["First teaching ",v.firstTeachingYear]}),!i&&(0,n.jsx)("span",{className:"d-none d-sm-inline mx-1",children:"\xb7"}),(0,n.jsxs)(c.EY,{strong:!0,children:[v.newest?"First":"Last"," exams"," ",v.examYear]})]})]})]}),(0,n.jsx)("div",{className:r()({[_().buttonGroup]:!i}),children:(0,n.jsx)(a.A,{flush:!0,variant:"link-primary",onClick:()=>{var e,s;return e=u.W7.viewedSyllabusModalTrigger.notYourSyllabus,void(x.show(),s={...t.titles,trigger:e,pageType:m,alternativeSyllabusYear:C.year},(0,p.u4)(u.Ru.viewedSyllabusModal,{...(0,h.E0)(s),alternativeSyllabusYear:s.alternativeSyllabusYear,trigger:s.trigger,pageType:s.pageType}))},children:"Not your syllabus?"})}),(0,n.jsx)(l.A,{...x,centered:!0,content:(0,n.jsx)(b,{breadcrumbs:t,syllabusVersions:g,hide:x.hide})})]})}},36801:e=>{e.exports={header:"QuestionStep_header__7jzg0",icon:"QuestionStep_icon__A3tpH",example:"QuestionStep_example__MS_h8",blocks:"QuestionStep_blocks__4oXLx",buttons:"QuestionStep_buttons__pmMYf"}},41512:e=>{e.exports={wrapper:"revision-notes_wrapper__jwHMO",content:"revision-notes_content__Wn8XQ",blur:"revision-notes_blur__iugNW",title:"revision-notes_title__6HjJl",subtitle:"revision-notes_subtitle__F1pT4",rule:"revision-notes_rule__rGuC_",nav:"revision-notes_nav__RK26J",titleCourseInfo:"revision-notes_titleCourseInfo__bVDOm",lastUpdated:"revision-notes_lastUpdated__awJvw",border:"revision-notes_border__iQISG",stickyFooter:"revision-notes_stickyFooter__8TbYw",pageContent:"revision-notes_pageContent__pQkjT"}},42782:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[level]/[subject]/[board]/[aliasOrYear]/revision-notes/[section]/[topic]/[subtopic]",function(){return s(86973)}])},49317:e=>{e.exports={banner:"EntryBanner_banner__pQk0Q",content:"EntryBanner_content__V_duO",text:"EntryBanner_text___0UyR",title:"EntryBanner_title__R7Tnp",subtitle:"EntryBanner_subtitle__A16aX",button:"EntryBanner_button__N_6iE"}},49551:e=>{e.exports={wrapper:"Review_wrapper__z8wZs",confidences:"Review_confidences__kXQq8",arrow:"Review_arrow__lUeal",answer:"Review_answer__Fwzxt",correct:"Review_correct__MLhG8",partial:"Review_partial__YYOKY",incorrect:"Review_incorrect__A90po"}},49654:e=>{e.exports={newest:"SyllabusModal_newest__jVdT1",oldest:"SyllabusModal_oldest__2NqdW",current:"SyllabusModal_current__Yg35w",coursesBox:"SyllabusModal_coursesBox__YFy5w"}},54244:(e,t,s)=>{"use strict";s.d(t,{HC:()=>c,hj:()=>o});var n=s(58128),i=s(74025),r=s(1334),a=s(54);let l=a.LN.IE,o=e=>{let{filter:t}=e,s=[];if(t.country_code===a.LN.GB)s=a.Vt.list({filter:{...t,country_code:a.LN.GB}}).filter(e=>(0,a.q3)(e.product.key));else{var n;0===(s=a.Vt.list({filter:{...t,country_code:null!=(n=t.country_code)?n:l}})).length&&(s=a.Vt.list({filter:{...t,country_code:l}}))}return s.map(i.$g).sort((e,t)=>e.monthlyAmount-t.monthlyAmount)},c=e=>{let{subscriptionId:t,countryPrices:s,plan:n}=e,i=d({plan:n,countryPrices:s,productKey:a.li.PREMIUM});if(i)return i;let l=u({plan:n,productKey:a.li.PREMIUM});return l?(0,r.N)(Error("unable to find upgrade price, using fallback"),{extra:{subscriptionId:t,offerLookupKey:l.offerLookupKey}}):(0,r.N)(Error("unable to find upgrade price"),{extra:{subscriptionId:t}}),l},d=e=>{let{plan:t,countryPrices:s,productKey:i}=e,r=(0,n.m)(t.interval,t.interval_count),l=i===a.li.PREMIUM,o=s.filter(e=>{let s=l?t.amount<e.cycleSubunits:t.amount>e.cycleSubunits;return e.productKey===i&&e.cycle===r&&e.currency===t.currency&&s});return 1===o.length?o[0]:null},u=e=>{let{plan:t,productKey:s}=e;if(!(0,a.ou)(t.currency))return null;let r=(0,n.m)(t.interval,t.interval_count),l=s===a.li.PREMIUM,o=t.amount*(l?2:.5),c=a.Vt.list({filter:{product_key:s,cycle:r,currency:t.currency,experiment_key:null,
1state:"listed"}}).map(i.$g).filter(e=>l?t.amount<e.cycleSubunits:t.amount>e.cycleSubunits);if(0===c.length)return null;let[d]=c.sort((e,t)=>Math.abs(e.cycleSubunits-o)-Math.abs(t.cycleSubunits-o)||e.cycleSubunits-t.cycleSubunits);return d}},62828:(e,t,s)=>{"use strict";s.d(t,{A:()=>_});var n=s(26514),i=s(7787),r=s(94741),a=s(57907),l=s(69001),o=s.n(l),c=s(96456),d=s.n(c),u=s(58780),p=s(5319),h=s(92850),m=s(71944),g=s(93541),x=s(97858),v=s(90736),C=s.n(v);let f="https://cdn.savemyexams.com/favicon/apple-touch-icon.png",b=()=>(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)(m.A,{className:"mb-3",path:"/images/illustrations/",filename:"high-five",extension:"svg",width:100,height:100,includeDarkVariant:!0,includeTeacherVariant:!0,alt:""}),(0,n.jsx)("p",{className:"h5",children:"Our Commitment to Content Excellence"}),(0,n.jsx)("p",{children:"At Save My Exams, we understand the pivotal role educational content plays in shaping the academic success of students worldwide. That's why we've implemented a robust Content Quality Index (CQI) to ensure that our revision materials not only meet but exceed the highest standards of quality, accuracy, and educational value."}),(0,n.jsx)(u.A,{tag:d(),href:"".concat(x.Ay.PAGES.BLOG,"support/content-creation-integrity/"),variant:"primary",size:"L",className:"mt-4 px-5",children:"Find out more"})]}),y=e=>{let{author:t}=e;return"published"===t.attributes.status?(0,n.jsx)(d(),{href:"/authors/".concat(t.attributes.slug,"/"),className:"link-body-emphasis text-decoration-underline",onClick:t.onBioLinkClick,children:t.attributes.name}):t.attributes.name},_=e=>{let{author:t,reviewer:s,updatedAt:l,onReviewerImageClick:c,authorLabel:d="Written by:"}=e,u=(0,g.h)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"d-flex flex-wrap flex-md-nowrap row-gap-2 column-gap-3",children:[(0,n.jsxs)("div",{className:"d-flex flex-row-reverse justify-content-end",children:[s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{className:o()(C().imageContainer,C().reviewerContainer,{[C().overlap]:!!t}),onClick:()=>{null==c||c(),u.show()},children:[(0,n.jsx)(h.A,{src:s.attributes.image_url||f,shape:"circle",sizes:"50px",alt:s.attributes.name,className:C().authorImage}),(0,n.jsx)(i.A,{Icon:r.A,className:o()(C().icon,C().checkIcon),size:"XS",variant:"success"}),(0,n.jsx)(i.A,{Icon:a.A,className:o()(C().icon,C().infoIcon),size:"XS",variant:"success"})]}),(0,n.jsx)(g.A,{...u,content:(0,n.jsx)(b,{})})]}),t&&(0,n.jsx)("div",{className:o()(C().imageContainer,C().authorContainer),children:(0,n.jsx)(h.A,{src:t.attributes.image_url||f,shape:"circle",sizes:"50px",alt:t.attributes.name,className:C().authorImage})})]}),(0,n.jsxs)("div",{className:"d-flex flex-column align-items-start justify-content-center",children:[t&&(0,n.jsxs)("p",{className:"mb-0",children:[(0,n.jsx)("strong",{children:d})," ",(0,n.jsx)(y,{author:t})]}),s&&(0,n.jsxs)("p",{className:"mb-0",children:[(0,n.jsx)("strong",{children:"Reviewed by:"})," ",(0,n.jsx)(y,{author:s})]}),l&&(0,n.jsxs)("p",{className:"text-body-secondary small mt-1 mb-0",children:["Updated on ",(0,n.jsx)(p.q,{date:l,dateFormat:"static"})]})]})]})})}},64611:e=>{e.exports={badge:"EndorsementBadge_badge__1dDmQ"}},64791:e=>{e.exports={nav:"AuthorCard_nav__JD3ay",navLink:"AuthorCard_navLink__xNtdR",navItem:"AuthorCard_navItem__aj4ej",content:"AuthorCard_content__mFDTU"}},65915:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var n=s(26514),i=s(75303),r=s(92957),a=s(77688),l=s(69001),o=s.n(l),c=s(94465),d=s.n(c);let u=e=>{let{id:t,label:s,colour:l="default",isChecked:c,onChange:u,onClick:p,disabled:h,showIcon:m,type:g="checkbox",className:x}=e;return(0,n.jsxs)("label",{htmlFor:t,children:[(0,n.jsx)("input",{className:d().checkboxInput,type:g,id:t,checked:c,onChange:()=>null==u?void 0:u(!c),onClick:p,role:"option","aria-selected":c,"aria-checked":c,disabled:h}),(0,n.jsxs)("span",{className:o()(d().checkboxPill,"rounded-pill",d()[l],x),children:[(0,n.jsx)("span",{className:"text-truncate",children:s}),m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.A,{svg:a.A,className:o()(d().plus)}),(0,n.jsx)(i.A,{svg:r.A,className:o()(d().check)})]})]})]})}},67862:e=>{e.exports={titleWrapper:"JoinCTA_titleWrapper__j4_Xa",subtitleWrapper:"JoinCTA_subtitleWrapper__5Em1p",subtitle:"JoinCTA_subtitle__wfFMc",titleMain:"JoinCTA_titleMain__kWcvs",supplementaryText:"JoinCTA_supplementaryText__GRl26",trustPilotCard:"JoinCTA_trustPilotCard__Do0oM",trustPilotRating:"JoinCTA_trustPilotRating__4piEa",trustPilotRatingText:"JoinCTA_trustPilotRatingText__xAyt8"}},68385:e=>{e.exports={container:"NextSteps_container__5xOtm",heading:"NextSteps_heading__LqiVj",list:"NextSteps_list__areK0"}},70517:e=>{e.exports={confidence:"ConfidenceCheck_confidence__Fk_Rv",buttons:"ConfidenceCheck_buttons__9Hh8f"}},71584:e=>{e.exports={dropdown:"AltCourseDropdown_dropdown__UzLrr",dropdownToggle:"AltCourseDropdown_dropdownToggle__GjZLv"}},81564:e=>{e.exports={wrapper:"RevisionNoteLessonExperience_wrapper__q7TND"}},82708:e=>{e.exports={progress:"ProgressBar_progress__5w3cQ",inner:"ProgressBar_inner__2OyZS",marker:"ProgressBar_marker__o2I9d",active:"ProgressBar_active__iDMBZ"}},82942:(e,t,s)=>{"use strict";s.d(t,{TU:()=>i,j1:()=>a,v_:()=>r});let n="/glossary/",i=e=>"".concat(n).concat(e,"/"),r=e=>{let{levelSlug:t,subjectSlug:s}=e;return"".concat(n).concat(t,"/").concat(s,"/")},a=e=>{let{levelSlug:t,subjectSlug:s,entrySlug:i}=e;return"".concat(n).concat(t,"/").concat(s,"/").concat(i,"/")}},84086:(e,t,s)=>{"use strict";s.d(t,{$E:()=>p,NP:()=>h,nK:()=>C,ti:()=>v});var n=s(16900),i=s.n(n),r=s(54034),a=s(91321),l=s(97858),o=s(54244),c=s(74025);let{baseUrl:d}=(0,a.i6)(),u="".concat(d,"/#educationalOrganization"),p=e=>{var t,s;if(!e)return;let n={"@context":"http://schema.org","@type":"Person",alternateName:e.attributes.alternate_name,honorificSuffix:e.attributes.honorific_suffix,jobTitle:e.attributes.subject_name,image:e.attributes.image_url,knowsAbout:e.attributes.knows_about,name:e.attributes.name,sameAs:[...(null==(t=e.attributes.social_links)?void 0:t.map(e=>e.url))||[],...(null==(s=e.attributes.publishing_links)?void 0:s.map(e=>e.url))||[]],url:"published"===e.attributes.status?"".concat(d,"/authors/").concat(e.attributes.slug,"/"):void 0,worksFor:{"@id":u}};return i()(n,e=>!e||Array.isArray(e)&&0===e.length)}
1,h=e=>({"@context":"https://schema.org","@graph":e.filter(e=>e.reviewUrl&&e.datePublished&&e.authorName).map(e=>({"@type":"Review","@id":e.reviewUrl,url:e.reviewUrl,author:{"@type":"Person",name:e.authorName},publisher:{"@type":"Organization",name:"Trustpilot"},datePublished:e.datePublished,reviewBody:e.quote,reviewRating:{"@type":"Rating",ratingValue:5,bestRating:5,worstRating:1},itemReviewed:{"@id":u,"@type":"EducationalOrganization",name:"Save My Exams"}}))}),m="".concat(d).concat(l.Ay.PAGES.JOIN),g={monthly:{name:"Monthly",billingDuration:"P1M",billed:()=>"billed monthly"},quarterly:{name:"3 Months",billingDuration:"P3M",billed:e=>"billed ".concat(e," every 3 months")},annual:{name:"Annual",billingDuration:"P1Y",billed:e=>"billed ".concat(e," annually")}},x=(e,t)=>new Intl.NumberFormat("en-US",{style:"currency",currency:t.toUpperCase(),trailingZeroDisplay:"stripIfInteger"}).format(e),v=e=>{let{countryCode:t}=e,s={"@type":"Organization","@id":u,name:"Save My Exams"},n="".concat(new Date().getFullYear(),"-12-31"),i=(0,c.AJ)(t),a=(0,o.hj)({filter:{country_code:t,experiment_key:null,state:"listed"}}).map(e=>{let t=g[e.cycle],a=e.currency.toUpperCase(),l=(0,c.bQ)({price:e,isEligibleForTrial:i})?". Includes a ".concat(r.K.DEFAULT,"-day free trial."):".";return{"@type":"Offer",name:"".concat(e.productName," â ").concat(t.name),url:m,category:"https://schema.org/Subscription",price:e.cycleAmount.toFixed(2),priceCurrency:a,priceValidUntil:n,availability:"https://schema.org/InStock",priceSpecification:{"@type":"UnitPriceSpecification",price:e.monthlyAmount.toFixed(2),priceCurrency:a,referenceQuantity:{"@type":"QuantitativeValue",value:"1",unitCode:"MON"},billingDuration:t.billingDuration,description:"".concat(x(e.monthlyAmount,e.currency),"/month, ").concat(t.billed(x(e.cycleAmount,e.currency))).concat(l)},seller:s}});return{"@context":"https://schema.org","@type":"Product",name:"Save My Exams Membership",description:"Exam-board-specific revision notes, exam questions and mock exams for IGCSE, GCSE, A Level and IB.",brand:{"@type":"Brand",name:"Save My Exams"},url:m,offers:a}},C=e=>JSON.stringify(e).replace(/</g,"\\u003c")},85212:(e,t,s)=>{"use strict";s.d(t,{G:()=>n.GK});var n=s(50871)},86973:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>i,default:()=>r});var n=s(2740),i=!0;let r=n.A},87411:e=>{e.exports={imageWrapper:"AuthorDetails_imageWrapper__CMEwl",image:"AuthorDetails_image__JghCt",textWrapper:"AuthorDetails_textWrapper__okwl3",checkIcon:"AuthorDetails_checkIcon__hgh3_"}},87698:(e,t,s)=>{"use strict";s.d(t,{v:()=>c,y:()=>o});var n=s(99795),i=s(66028),r=s.n(i),a=s(5222);let l=e=>!!e&&"object"==typeof e&&"id"in e&&"string"==typeof e.id&&"viewedAt"in e&&"string"==typeof e.viewedAt&&!isNaN(new Date(e.viewedAt).getTime()),o=(e,t)=>{let{frequency:s}=t,i=a.Gq(e);if(!Array.isArray(i))return[];let o=i.filter(l);if(!s)return r()(o,"id");let c=new Date,d={month:new Date(c.getFullYear(),c.getMonth(),1),week:(0,n.k)(c,{weekStartsOn:1})};return r()(o.filter(e=>{let{viewedAt:t}=e;return new Date(t)>d[s]}),"id")},c=(e,t,s)=>{let{frequency:n}=s,i=o(e,{frequency:n}),r=i.some(e=>e.id===t);if(!t||r)return i;let l=[...i,{id:t,viewedAt:new Date().toISOString()}];return a.SO(e,JSON.stringify(l)),l}},88028:e=>{e.exports={badge:"ConfidenceBadge_badge__1XEou",low:"ConfidenceBadge_low__jSHKd",medium:"ConfidenceBadge_medium__j7FMV",high:"ConfidenceBadge_high__T9am7"}},88418:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},89959:(e,t,s)=>{"use strict";s.d(t,{A:()=>A});var n=s(26514),i=s(21952),r=s(29431),a=s(69001),l=s.n(a),o=s(61640),c=s(96759),d=s(75303),u=s(86201),p=s(94741),h=s(96456),m=s.n(h),g=s(7787),x=s(92850),v=s(35297),C=s(97858),f=s(87411),b=s.n(f);let y=e=>{let{author:t,authorUrl:s,isReviewer:i,onAuthorLinkClick:r,authorLabel:a="Author"}=e,l=t.attributes.slug&&"published"===t.attributes.status?"/authors/".concat(t.attributes.slug,"/"):null;return(0,n.jsxs)(u.A,{className:"d-sm-flex align-items-start",children:[(0,n.jsxs)("div",{className:b().imageWrapper,children:[(0,n.jsx)(x.A,{alt:t.attributes.name,shape:"circle",src:t.attributes.image_url||"https://cdn.savemyexams.com/logo/sme-logo-fluro-navy.png",className:b().image,sizes:"(max-width: 991px) 90px, 124px"}),i&&(0,n.jsx)(g.A,{variant:"success",Icon:p.A,className:b().checkIcon})]}),(0,n.jsxs)(u.A,{className:b().textWrapper,children:[(0,n.jsxs)(v.DZ,{tag:"h3",children:[i?"Reviewer":a,":"," ",(0,n.jsx)(m(),{className:"link-body-emphasis fw-semibold",href:l||s||C.Ay.PAGES.ABOUT,onClick:()=>null==r?void 0:r(),children:t.attributes.name})]}),t.attributes.subject_name&&(0,n.jsxs)(v.EY,{className:"mb-2",children:[(0,n.jsx)("strong",{children:"Expertise:"})," ",t.attributes.subject_name]}),t.attributes.mini_biography&&(0,n.jsx)(v.EY,{children:t.attributes.mini_biography})]})]})};var _=s(64791),j=s.n(_);let N="author",w="reviewer",A=e=>{let{author:t,reviewer:s,authorUrl:a,onAuthorLinkClick:p,onReviewerTabClick:h,onReviewerLinkClick:m,authorLabel:g="Author"}=e;return t||s?(0,n.jsx)(u.A,{className:"bg-body-secondary",children:(0,n.jsxs)(c.A.Container,{defaultActiveKey:t?N:w,children:[t&&s&&(0,n.jsx)("div",{className:"container",children:(0,n.jsxs)(o.A,{className:l()(j().nav,"nav-underline"),children:[t&&(0,n.jsx)(o.A.Item,{className:j().navItem,children:(0,n.jsxs)(o.A.Link,{eventKey:N,className:j().navLink,children:[(0,n.jsx)(d.A,{svg:r.A,className:"me-2"}),g]})}),s&&(0,n.jsx)(o.A.Item,{className:j().navItem,children:(0,n.jsxs)(o.A.Link,{eventKey:w,className:j().navLink,onClick:h,children:[(0,n.jsx)(d.A,{svg:i.A,className:"me-2"}),"Reviewer"]})})]})}
1),(0,n.jsxs)(c.A.Content,{className:j().content,children:[t&&(0,n.jsx)(c.A.Pane,{eventKey:N,className:"container py-4",children:(0,n.jsx)(y,{author:t,authorUrl:a,onAuthorLinkClick:p,authorLabel:g})}),s&&(0,n.jsx)(c.A.Pane,{eventKey:w,className:"container py-4",children:(0,n.jsx)(y,{author:s,authorUrl:null,isReviewer:!0,onAuthorLinkClick:m})})]})]})}):null}},90736:e=>{e.exports={authorImage:"AuthorReviewer_authorImage__9iLgv",imageContainer:"AuthorReviewer_imageContainer__lBJAn",reviewerContainer:"AuthorReviewer_reviewerContainer__ie_NZ",authorContainer:"AuthorReviewer_authorContainer__zsCXC",infoIcon:"AuthorReviewer_infoIcon__KQGKH",checkIcon:"AuthorReviewer_checkIcon__aE4UZ",overlap:"AuthorReviewer_overlap__JsBDW",icon:"AuthorReviewer_icon__K4Dm3"}},92850:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var n=s(26514),i=s(75834),r=s(69001),a=s.n(r),l=s(74737),o=s(5688),c=s.n(o);let d=e=>{let{alt:t,aspectRatio:s="1:1",className:r,priority:o=!1,shape:d="rounded",src:u,sizes:p}=e,h=(0,i.useMemo)(()=>{let[e,t]=s.split(":").map(Number);return t/e*100},[s]);return(0,n.jsx)("div",{className:a()(c().imageWrapper,r),style:{"--padding-block-end":"".concat(h,"%")},children:(0,n.jsx)(l.A,{src:u,fill:!0,alt:t,priority:o,width:0,height:0,className:a()(c().image,c()[d]),sizes:p})})}},93030:e=>{e.exports={link:"NextStepResourceLink_link__c12ij",iconWrapper:"NextStepResourceLink_iconWrapper__8_QP8",text:"NextStepResourceLink_text__k555K",title:"NextStepResourceLink_title__HBy4c",description:"NextStepResourceLink_description__bicDr",chevron:"NextStepResourceLink_chevron___rDe1"}},94465:e=>{e.exports={checkboxInput:"SelectButton_checkboxInput__Uy4cN",check:"SelectButton_check__pTxx_",plus:"SelectButton_plus__5fQXD",checkboxPill:"SelectButton_checkboxPill__z3nSO",default:"SelectButton_default__hI5bx",green:"SelectButton_green__Q_h0e",amber:"SelectButton_amber__MompF",red:"SelectButton_red__cv9HF",purple:"SelectButton_purple__R32TA"}},94491:e=>{e.exports={lessonButton:"LessonSelect_lessonButton__KhW7K",lessonTitle:"LessonSelect_lessonTitle__PiJQR",chevron:"LessonSelect_chevron__IWI4d"}},94516:(e,t,s)=>{var n=s(62016),i=s(28041),r=s(13052),a=s(15017);e.exports=function(e,t){if(null==e)return{};var s=n(a(e),function(e){return[e]});return t=i(t),r(e,s,function(e,s){return t(e,s[0])})}},97730:e=>{e.exports={wrapper:"DownloadRibbon_wrapper__so48d",cta:"DownloadRibbon_cta__Y_Q_E",invisible:"DownloadRibbon_invisible__PQYNG",close:"DownloadRibbon_close__2zEsO"}}},e=>{e.O(0,[2540,7372,6405,390,4486,6031,6361,6412,3423,2157,1840,955,7970,4835,3794,6721,9224,2178,9112,8706,8941,6420,5629,1687,3570,3906,636,6593,8792],()=>e(e.s=42782)),_N_E=e.O()}]);
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.